PageSourceSearch

https://newsletter.remoteur.com/assets/Trans-tHiUt0Wm.js

js remoteur.com collected 2026-10-01 23:47:58 UTC 7,901 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c0aa357b-c4ff-5eb7-9589-7205d4f4a708")}catch(e){}}();
3import{n as e,s as t}from"./jsx-runtime-D4ePz0Hl.js";import{t as n}from"./react-BXH-GOAS.js";import{a as r,i,n as a,r as o}from"./useTranslation-xRzBcOIb.js";import{a as s,i as c,t as l}from"./context-BmvuYzDi.js";var u=e(((e,t)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}})),d=t(n()),f=t(u()),p=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function m(e){var t={type:`tag`,name:``,voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(f.default[n[1]]||e.charAt(e.length-2)===`/`)&&(t.voidElement=!0),t.name.startsWith(`!--`))){var r=e.indexOf(`-->`);return{type:`comment`,comment:r===-1?``:e.slice(4,r)}}for(var i=new RegExp(p),a=null;(a=i.exec(e))!==null;)if(a[0].trim())if(a[1]){var o=a[1].trim(),s=[o,``];o.indexOf(`=`)>-1&&(s=o.split(`=`)),t.attrs[s[0]]=s[1],i.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var h=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,g=/^\s*$/,_=Object.create(null);function v(e,t){switch(t.type){case`text`:return e+t.content;case`tag`:return e+=`<`+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+`="`+e[n]+`"`);return t.length?` `+t.join(` `):``}(t.attrs):``)+(t.voidElement?`/>`:`>`),t.voidElement?e:e+t.children.reduce(v,``)+`</`+t.name+`>`;case`comment`:return e+`<!--`+t.comment+`-->`}}var y={parse:function(e,t){t||={},t.components||=_;var n,r=[],i=[],a=-1,o=!1;if(e.indexOf(`<`)!==0){var s=e.indexOf(`<`);r.push({type:`text`,content:s===-1?e:e.substring(0,s)})}return e.replace(h,function(s,c){if(o){if(s!==`</`+n.name+`>`)return;o=!1}var l,u=s.charAt(1)!==`/`,d=s.startsWith(`<!--`),f=c+s.length,p=e.charAt(f);if(d){var h=m(s);return a<0?(r.push(h),r):((l=i[a]).children.push(h),r)}if(u&&(a++,(n=m(s)).type===`tag`&&t.components[n.name]&&(n.type=`component`,o=!0),n.voidElement||o||!p||p===`<`||n.children.push({type:`text`,content:e.slice(f,e.indexOf(`<`,f))}),a===0&&r.push(n),(l=i[a-1])&&l.children.push(n),i[a]=n),(!u||n.voidElement)&&(a>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(a--,n=a===-1?r:i[a]),!o&&p!==`<`&&p)){l=a===-1?r:i[a].children;var _=e.indexOf(`<`,f),v=e.slice(f,_===-1?void 0:_);g.test(v)&&(v=` `),(_>-1&&a+l.length>=0||v!==` `)&&l.push({type:`text`,content:v})}}),r},stringify:function(e){return e.reduce(function(e,t){return e+v(``,t)},``)}},b=(e,t)=>{if(!e)return!1;let n=e.props?e.props.children:e.children;return t?n.length>0:!!n},x=e=>{if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?C(t):t},S=e=>Array.isArray(e)&&e.every(d.isValidElement),C=e=>Array.isArray(e)?e:[e],w=(e,t)=>{let n={...t};return n.props=Object.assign(e.props,t.props),n},T=(e,t)=>{if(!e)return``;let n=``,r=C(e),s=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return r.forEach((e,r)=>{if(o(e))n+=`${e}`;else if((0,d.isValidElement)(e)){let{props:i,type:a}=e,c=Object.keys(i).length,l=s.indexOf(a)>-1,u=i.children;if(!u&&l&&!c)n+=`<${a}/>`;else if(!u&&(!l||c)||i.i18nIsDynamicList)n+=`<${r}></${r}>`;else if(l&&c===1&&o(u))n+=`<${a}>${u}</${a}>`;else{let e=T(u,t);n+=`<${r}>${e}</${r}>`}}else if(e===null)i(`Trans: the passed in value is invalid - seems you passed in a null child.`);else if(a(e)){let{format:t,...r}=e,a=Object.keys(r);if(a.length===1){let e=t?`${a[0]}, ${t}`:a[0];n+=`{{${e}}}`}else i(`react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.`,e)}else i(`Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.`,e)}),n},E=(e,t,n,r,i,s)=>{if(t===``)return[];let c=r.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(c.map(e=>`<${e}`).join(`|`)).test(t);if(!e&&!l&&!s)return[t];let u={},f=e=>
3{C(e).forEach(e=>{o(e)||(b(e)?f(x(e)):a(e)&&!(0,d.isValidElement)(e)&&Object.assign(u,e))})};f(e);let p=y.parse(`<0>${t}</0>`),m={...u,...i},h=(e,t,n)=>{let r=x(e),i=_(r,t.children,n);return S(r)&&i.length===0||e.props&&e.props.i18nIsDynamicList?r:i},g=(e,t,n,r,i)=>{e.dummy?(e.children=t,n.push((0,d.cloneElement)(e,{key:r},i?void 0:t))):n.push(...d.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,d.createElement)(e.type,{...n,key:r,ref:e.ref},i?null:t)}))},_=(t,i,u)=>{let f=C(t);return C(i).reduce((t,i,p)=>{let v=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,m,n.language);if(i.type===`tag`){let s=f[parseInt(i.name,10)];u.length===1&&!s&&(s=u[0][i.name]),s||={};let y=Object.keys(i.attrs).length===0?s:w({props:i.attrs},s),x=(0,d.isValidElement)(y),S=x&&b(i,!0)&&!i.voidElement,C=l&&a(y)&&y.dummy&&!x,T=a(e)&&Object.hasOwnProperty.call(e,i.name);if(o(y)){let e=n.services.interpolator.interpolate(y,m,n.language);t.push(e)}else if(b(y)||S)g(y,h(y,i,u),t,p);else if(C)g(y,_(f,i.children,u),t,p);else if(Number.isNaN(parseFloat(i.name)))if(T)g(y,h(y,i,u),t,p,i.voidElement);else if(r.transSupportBasicHtmlNodes&&c.indexOf(i.name)>-1)if(i.voidElement)t.push((0,d.createElement)(i.name,{key:`${i.name}-${p}`}));else{let e=_(f,i.children,u);t.push((0,d.createElement)(i.name,{key:`${i.name}-${p}`},e))}else if(i.voidElement)t.push(`<${i.name} />`);else{let e=_(f,i.children,u);t.push(`<${i.name}>${e}</${i.name}>`)}else if(a(y)&&!x){let e=i.children[0]?v:null;e&&t.push(e)}else g(y,v,t,p,i.children.length!==1||!v)}else if(i.type===`text`){let e=r.transWrapTextNodes,a=s?r.unescape(n.services.interpolator.interpolate(i.content,m,n.language)):n.services.interpolator.interpolate(i.content,m,n.language);e?t.push((0,d.createElement)(e,{key:`${i.name}-${p}`},a)):t.push(a)}return t},[])};return x(_([{dummy:!0,children:e||[]}],p,C(e||[]))[0])};function D(e){let{children:t,count:n,parent:i,i18nKey:a,context:l,tOptions:u={},values:f,defaults:p,components:m,ns:h,i18n:g,t:_,shouldUnescape:v,...y}=e,b=g||c();if(!b)return r(`You will need to pass in an i18next instance by using i18nextReactModule`),t;let x=_||b.t.bind(b)||(e=>e),S={...s(),...b.options&&b.options.react},C=h||x.ns||b.options&&b.options.defaultNS;C=o(C)?[C]:C||[`translation`];let w=T(t,S),D=p||w||S.transEmptyNodeValue||a,{hashTransKey:O}=S,k=a||(O?O(w||D):w||D);b.options&&b.options.interpolation&&b.options.interpolation.defaultVariables&&(f=f&&Object.keys(f).length>0?{...f,...b.options.interpolation.defaultVariables}:{...b.options.interpolation.defaultVariables});let A=f||n!==void 0||!t?u.interpolation:{interpolation:{...u.interpolation,prefix:`#$?`,suffix:`?$#`}},j={...u,context:l||u.context,count:n,...f,...A,defaultValue:D,ns:C},M=k?x(k,j):D;m&&Object.keys(m).forEach(e=>{let t=m[e];if(typeof t.type==`function`||!t.props||!t.props.children||M.indexOf(`${e}/>`)<0&&M.indexOf(`${e} />`)<0)return;function n(){return(0,d.createElement)(d.Fragment,null,t)}m[e]=(0,d.createElement)(n)});let N=E(m||t,M,b,S,j,v),P=i===void 0?S.defaultTransParent:i;return P?(0,d.createElement)(P,y,N):N}function O(e){let{children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o={},values:s,defaults:u,components:f,ns:p,i18n:m,t:h,shouldUnescape:g,..._}=e,{i18n:v,defaultNS:y}=(0,d.useContext)(l)||{},b=m||v||c(),x=h||b&&b.t.bind(b);return D({children:t,count:n,parent:r,i18nKey:i,context:a,tOptions:o,values:s,defaults:u,components:f,ns:p||x&&x.ns||y||b&&b.options&&b.options.defaultNS,i18n:b,t:h,shouldUnescape:g,..._})}export{O as t};
4//# sourceMappingURL=Trans-tHiUt0Wm.js.map
5//# debugId=c0aa357b-c4ff-5eb7-9589-7205d4f4a708

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.