PageSourceSearch

https://www.farpost.ru/resources/assets/32864.c9f65e5a2a74daba89fd.js

js farpost.ru collected 2026-09-24 09:02:39 UTC 4,805 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[32864],{32864(e,t,r){r.d(t,{kM:()=>h,Iu:()=>p,Y_:()=>l,ZR:()=>c});class n{encode(e){}decode(e){}applyConverter(e,t){return this.convert(e,t)}convert(e,t){return"string"==typeof e?this.applyToString(e,t):Array.isArray(e)?this.applyToArray(e,t):"object"==typeof e?this.applyToObject(e,t):e}applyToString(e,t){return t(e)}applyToArray(e,t){const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];r[n]="string"==typeof o?t(o):o}return r}applyToObject(e,t){const r={};for(const n in e)e.hasOwnProperty(n)&&(r[n]=this.convert(e[n],t));return r}}const o={1026:128,1027:129,8218:130,1107:131,8222:132,8230:133,8224:134,8225:135,8364:136,8240:137,1033:138,8249:139,1034:140,1036:141,1035:142,1039:143,1106:144,8216:145,8217:146,8220:147,8221:148,8226:149,8211:150,8212:151,8482:153,1113:154,8250:155,1114:156,1116:157,1115:158,1119:159,1038:161,1118:162,1032:163,1168:165,1025:168,1028:170,1031:175,1030:178,1110:179,1169:180,1105:184,8470:185,1108:186,1112:188,1029:189,1109:190,1111:191,1040:192,1041:193,1042:194,1043:195,1044
1:196,1045:197,1046:198,1047:199,1048:200,1049:201,1050:202,1051:203,1052:204,1053:205,1054:206,1055:207,1056:208,1057:209,1058:210,1059:211,1060:212,1061:213,1062:214,1063:215,1064:216,1065:217,1066:218,1067:219,1068:220,1069:221,1070:222,1071:223,1072:224,1073:225,1074:226,1075:227,1076:228,1077:229,1078:230,1079:231,1080:232,1081:233,1082:234,1083:235,1084:236,1085:237,1086:238,1087:239,1088:240,1089:241,1090:242,1091:243,1092:244,1093:245,1094:246,1095:247,1096:248,1097:249,1098:250,1099:251,1100:252,1101:253,1102:254,1103:255},s=new class extends n{encode(e){return this.applyConverter(e,this.escapeStringCp1251)}decode(e){return this.applyConverter(e,this.tryDecodeUrlComponent)}escapeStringCp1251(e){let t,r,n,s="";if(null!=e){e+="";for(let i=0;i<e.length;i++)t=e.charAt(i),r=e.charCodeAt(i),n=r<128?" "===t?"+":/[!')(*~]/.test(t)?`%${r.toString(16).toUpperCase()}`:encodeURIComponent(t):r in o?`%${o[r].toString(16).toUpperCase()}`:r<256?`%${r.toString(16).toUpperCase()}`:encodeURIComponent(t),s+=n}return s}unecapeStringCp1251(e){return e.replaceAll("+"," ").replaceAll(/%[0-9A-Fa-f]{2}/g,function(e){const t=Number(`0x${e.substring(1)}`);if(t){if(t<128)return String.fromCharCode(t);for(const e in o)if(o[e]===t)return String.fromCharCode(Number(e));if(t<256)return String.fromCharCode(t)}return e})}tryDecodeUrlComponent(e){let t="";if(e+=""){e=e.replaceAll(/%(0[0-9A-F]|7F)(?=%|$)/gi,"");try{t=this.unecapeStringCp1251(e)}catch(e){t=""}}return t}constructor(){super(),this.escapeStringCp1251=this.escapeStringCp1251.bind(this),this.tryDecodeUrlComponent=this.tryDecodeUrlComponent.bind(this)}},i=new class extends n{encode(e){return this.applyConverter(e,this.encodeUrlUtf8)}decode(e){return this.applyConverter(e,this.decodeUrlUtf8)}encodeUrlUtf8(e){return encodeURIComponent(e).replaceAll(/[!')(*~]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`).replaceAll("%20","+")}decodeUrlUtf8(e){return decodeURIComponent(`${e}`.replaceAll("+","%20"))}constructor(){super(),this.encodeUrlUtf8=this.encodeUrlUtf8.bind(this),this.decodeUrlUtf8=this.decodeUrlUtf8.bind(this)}};class c{static get cp1251(){return s}static get utf8(){return i}}let a;class p{encode(e,t){return this._getConverter(t).encode(e)}decode(e,t){return this._getConverter(t).decode(e)}setTranslitConverter(e,t){this.translitConverters[e]=t}getParamsWithEncodingType(e){return Object.entries(this.encodingConfig).filter(([,t])=>t===e).map(([e])=>e)}_getConverter(e){const t=this.encodingConfig[e]||this.encodingConfig["*"]||"cp1251";switch(t){case"utf8":return c.utf8;case"cp1251":return c.cp1251;case"translit":if(this.translitConverters[e])return this.translitConverters[e];throw new Error(`Translit for "${e}" is not supported`);default:throw new Error(`Unknown encoding "${t}"`)}}static global(){if(!a){const e=JSON.parse(baza.getPageMetaData("encoding-config","{}"));a=new this(e)}return a}constructor(e){this.encodingConfig=e,this.translitConverters={}}}class l extends n{encode(e){return this.applyConverter(e,this._forward)}decode(e){return this.applyConverter(e,this._reverse)}constructor(e){super(),this._forward=t=>e.forward(t)||t,this._reverse=t=>e.reverse(t)||t}}var d=r(51630);class h{forward(e){return this.forwardMap[e]}reverse(e){return this.reverseMap[e]}setMap(e){this.forwardMap=e,this.reverseMap=h._invert(e)}append(e){Object.assign(this.forwardMap,e),Object.assign(this.reverseMap,h._invert(e))}static _invert(e){const t={};for(const[r,n]of Object.entries(e)){if(n in t)throw new Error(`Duplicate value '${n}' found`);t[n]=r}return t}constructor(e){(0,d._)(this,"forwardMap",void 0),(0,d._)(this,"reverseMap",void 0),this.setMap(e)}}}}]);
2//# sourceMappingURL=/resources/source-maps/32864.c9f65e5a2a74daba89fd.js.map

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.