import{B as e,D as t,E as n,F as r,H as i,I as a,K as o,O as s,P as c,R as l,T as u,U as d,Y as f,d as p,k as m,l as h,o as g,q as _,v,z as y}from"./CrashPanel-Di_mLyQI.js";var b={en:``,zh_CN:`zh-cn`,zh_TW:`zh-tw`,es:`es`,pt_BR:`pt-br`,de:`de`,fr:`fr`,it:`it`,nl:`nl`,pl:`pl`,ru:`ru`,uk:`uk`,tr:`tr`,ja:`ja`,ko:`ko`,hi:`hi`,id:`id`,th:`th`,vi:`vi`},x=`https://extensionsly.com`,S=`free-ocr-image-to-text`,C=`/bundle/`,w=`/help/`,T=`/feedback/`,E=`ext`;function D(e,t){let n=b[t]??``;return`${x}${n?`/`+n:``}${e}`}async function O(e){return D(e,await p(h))}function k(e,{medium:t,content:n}){let r=new URL(e);return r.searchParams.set(`utm_source`,E),r.searchParams.set(`utm_medium`,t),r.searchParams.set(`utm_campaign`,S),n&&r.searchParams.set(`utm_content`,n),r.toString()}async function A(e,t=C){return k(await O(t),e)}var j={popupFooter:{medium:`footer`},optionsCard:{medium:`card`},welcome:{medium:`bundle`,content:`welcome`},uninstall:{medium:`bundle`,content:`uninstall`}};function M(e){return A(j[e])}function N(){return O(w).then(e=>k(e,{medium:`footer`,content:`help`}))}function P(){return O(T).then(e=>k(e,{medium:`footer`,content:`feedback`}))}var F=m(`<section class="cross svelte-lci0it"><div class="grow svelte-lci0it"><div class="tt svelte-lci0it"> </div> <div class="muted bd svelte-lci0it"> </div></div> <a target="_blank" rel="noopener" class="svelte-lci0it"> </a></section>`),I=m(`<a class="line svelte-lci0it" target="_blank" rel="noopener"> </a>`);function L(p,m){_(m,!0);let h=d(`#`);a(()=>{M(m.spot).then(e=>i(h,e,!0))});var b=s(),x=y(b),S=i=>{var a=F(),o=l(a),s=l(o),u=l(s,!0);f(s);var d=e(s,2),p=l(d,!0);f(d),f(o);var m=e(o,2),_=l(m);f(m),f(a),r((e,t,r)=>{n(u,e),n(p,t),v(m,`href`,c(h)),n(_,`${r??``} ↗`)},[()=>g(`optSameMakerTitle`),()=>g(`optSameMakerBody`),()=>g(`optLearnMore`)]),t(i,a)},C=e=>{var i=I(),a=l(i);f(i),r(e=>{v(i,`href`,c(h)),n(a,`${e??``} ↗`)},[()=>g(`sameMakerLink`)]),t(e,i)};u(x,e=>{m.spot===`optionsCard`?e(S):e(C,-1)}),t(p,b),o()}export{P as n,N as r,L as t};