PageSourceSearch

https://rutrip.ru/chunk-M6TQA4BL.js

js rutrip.ru collected 2026-10-07 23:04:32 UTC 3,197 bytes, 1 lines download raw bytes

1function g(r){return Array.isArray(r)?r:[r]}function l(r){return typeof r=="string"?r.split(".").filter(Boolean):[String(r)]}function s(r,e){return typeof e=="function"?e(r):l(e).reduce((o,u)=>{if(o!=null&&!(typeof o!="object"&&typeof o!="function"))return o[u]},r)}function p(r){if(r!=null){if(r instanceof Date||typeof r=="number"||typeof r=="string"||typeof r=="boolean")return r;if(typeof r=="object"){let e=r.valueOf?.();if(e&&e!==r)return p(e)}return String(r)}}function d(r,e){let n=p(r),t=p(e);return n===t?0:n===void 0?-1:t===void 0?1:n instanceof Date&&t instanceof Date?n.getTime()-t.getTime():typeof n=="number"&&typeof t=="number"?n-t:typeof n=="string"&&typeof t=="string"?n.localeCompare(t):typeof n=="boolean"&&typeof t=="boolean"?Number(n)-Number(t):String(n).localeCompare(String(t))}function A(r,e,n){let t=g(e),o=n?g(n):[];return[...r].sort((f,i)=>{for(let c=0;c<t.length;c+=1){let m=t[c],b=o[c]??"asc",a=d(s(f,m),s(i,m));if(a!==0)return b==="desc"?-a:a}return 0})}function B(r,e){return A(r,e,"asc")}function k(r,e){return r.reduce((n,t)=>{let o=String(e(t));return n[o]||(n[o]=[]),n[o].push(t),n},{})}function j(r,e){return r.reduce((n,t)=>n+(Number(s(t,e))||0),0)}function w(r,e){let n=[];return Array.from(r).forEach((t,o,u)=>{let f=e(t,o,u);Array.isArray(f)?n.push(...f):f!==void 0&&n.push(f)}),n}function D(r,e){if(r.length)return r.reduce((n,t)=>{let o=s(t,e),u=s(n,e);return d(o,u)<0?t:n})}function E(r,e){if(r.length)return r.reduce((n,t)=>{let o=s(t,e),u=s(n,e);return d(o,u)>0?t:n})}function O(r){if(r.length)return r.reduce((e,n)=>n<e?n:e,r[0])}function S(r){if(r.length)return r.reduce((e,n)=>n>e?n:e,r[0])}function C(r,e){let n=new Map;return r.forEach(t=>{let o=s(t,e);n.has(o)||n.set(o,t)}),Array.from(n.values())}function M(r,e=1){return e<=0?[]:r.slice(0,e)}function P(r,e=1){return e<=0?[]:e>=r.length?[...r]:r.slice(r.length-e)}function T(r,e){return r.reduce((n,t)=>(n[String(e(t))]=t,n),{})}function q(r,e,n=1){let t=r,o=e;o===void 0&&(o=t,t=0);let u=[];if(n===0)return Array(Math.max(Math.ceil(o-t||0),0)).fill(t);let f=n>0;!f&&o>t&&([t,o]=[o,t]);for(let i=t;f?i<o:i>o;i+=n)u.push(i);return u}function N(...r){let e=r.pop();if(typeof e!="function")throw new Error("unionBy requires an iteratee function as the last argument");let n=e,t=r,o=new Map;return t.forEach(u=>{u?.forEach(f=>{let i=n(f);o.has(i)||o.set(i,f)})}),Array.from(o.values())}function y(r){return typeof r=="object"&&r!==null}function x(r){if(!y(r))return r;if(r instanceof Date)return new Date(r.getTime());if(Array.isArray(r))return r.map(n=>x(n));let e={};return Object.keys(r).forEach(n=>{e[n]=x(r[n])}),e}function h(r,e){if(r===e)return!0;if(r instanceof Date&&e instanceof Date)return r.getTime()===e.getTime();if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;for(let n=0;n<r.length;n+=1)if(!h(r[n],e[n]))return!1;return!0}if(y(r)&&y(e)){let n=Object.keys(r),t=Object.keys(e);if(n.length!==t.length)return!1;for(let o of n)if(!Object.prototype.hasOwnProperty.call(e,o)||!h(r[o],e[o]))return!1;return!0}return!1}var K=()=>{};export{A as a,B as b,k as c,j as d,w as e,D as f,E as g,O as h,S as i,C as j,M as k,P as l,T as m,q as n,N as o,x as p,h as q,K as r};

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.