PageSourceSearch

https://uzbektourism-uz.vercel.app/assets/react-i18next-baeb6880.js

js uzbektourism-uz.vercel.app collected 2026-10-03 07:58:23 UTC 4,616 bytes, 1 lines download raw bytes

vendor: 4,616 bytes, line 1
1import{r as f}from"./react-19955b0b.js";function z(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const E={};function I(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&E[e[0]]||(typeof e[0]=="string"&&(E[e[0]]=new Date),z(...e))}const v=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}};function T(t,e,n){t.loadNamespaces(e,v(t,n))}function R(t,e,n,d){typeof n=="string"&&(n=[n]),n.forEach(o=>{t.options.ns.indexOf(o)<0&&t.options.ns.push(o)}),t.loadLanguages(e,v(t,d))}function P(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=e.languages[0],o=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(d.toLowerCase()==="cimode")return!0;const l=(b,x)=>{const a=e.services.backendConnector.state[`${b}|${x}`];return a===-1||a===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!l(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(d,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||l(d,t)&&(!o||l(s,t)))}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(I("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(o,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!s(o.isLanguageChangingTo,t))return!1}}):P(t,e,n)}const $=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,j={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},k=t=>j[t],A=t=>t.replace($,k);let w={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:A};function B(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w={...w,...t}}function O(){return w}let F;function U(t){F=t}function q(){return F}const Y={type:"3rdParty",init(t){B(t.options.react),U(t)}},J=f.createContext();class M{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const W=(t,e)=>{const n=f.useRef();return f.useEffect(()=>{n.current=e?n.current:t},[t,e]),n.current};function G(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:d,defaultNS:o}=f.useContext(J)||{},s=n||d||q();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new M),!s){I("You will need to pass in an i18next instance by using initReactI18next");const r=(c,i)=>typeof i=="string"?i:i&&typeof i=="object"&&typeof i.defaultValue=="string"?i.defaultValue:Array.isArray(c)?c[c.length-1]:c,u=[r,{},!1];return u.t=r,u.i18n={},u.ready=!1,u}s.options.react&&s.options.react.wait!==void 0&&I("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...O(),...s.options.react,...e},{useSuspense:b,keyPrefix:x}=l;let a=t||o||s.options&&s.options.defaultNS;a=typeof a=="string"?[a]:a||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(a);const p=(s.isInitialized||s.initializedStoreOnce)&&a.every(r=>H(r,s,l));function m(){return s.getFixedT(e.lng||null,l.nsMode==="fallback"?a:a[0],x)}const[C,h]=f.useState(m);let N=a.join();e.lng&&(N=`${e.lng}${N}`);const S=W(N),g=f.useRef(!0);f.useEffect(()=>{const{bindI18n:r,bindI18nStore:u}=l;g.current=!0,!p&&!b&&(e.lng?R(s,e.lng,a,()=>{g.current&&h(m)}):T(s,a,()=>{g.current&&h(m)})),p&&S&&S!==N&&g.current&&h(m);function c(){g.current&&h(m)}return r&&s&&s.on(r,c),u&&s&&s.store.on(u,c),()=>{g.current=!1,r&&s&&r.split(" ").forEach(i=>s.off(i,c)),u&&s&&u.split(" ").forEach(i=>s.store.off(i,c))}},[s,N]);const L=f.useRef(!0);f.useEffect(()=>{g.current&&!L.current&&h(m),L.current=!1},[s,x]);const y=[C,s,p];if(y.t=C,y.i18n=s,y.ready=p,p||!p&&!b)return y;throw new Promise(r=>{e.lng?R(s,e.lng,a,()=>r()):T(s,a,()=>r())})}export{Y as i,G as u};

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.