PageSourceSearch

https://008-27.vip/assets/theme-0/stats-points.impl.CwY8cucK.js

js 008-27.vip collected 2026-10-09 04:33:40 UTC 2,860 bytes, 11 lines download raw bytes

1const __vite__fileDeps=["assets/vendors/vendor-swiper.BqvbXe0X.css","assets/theme-0/commonChunk.DukCAJCj.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2import{_ as b}from"./vendorChunk.BdsO83GQ.js";import{K as x,e1 as $,qH as D,I,qI as h,R as O}from"./commonChunk.Dhe5lqYh.js";import{H as P,K as S}from"../vendors/vendor-stable.B8ub4Ug6.js";import"../vendors/vendor-swiper.T_wbf2QY.js";class E{static log(t,...a){x.info(`stats@${t}`,...a)}static enable(){return $.getInstances()[D.Sensors]}static debug(){return I()["mock.statsPoints"]}static initial(t){var o;const a=(o=h.get("statsPoints"))!=null?o:{};a[t]=[],h.set("statsPoints",a)}static get(t){var a;return(a=h.get("statsPoints"))==null?void 0:a[t]}static set(t,a){var r;const o=this.get(t),g={date:Date.now(),action:a},i=o?[...o,g]:[g],c=(r=h.get("statsPoints"))!=null?r:{};h.set("statsPoints",{...c,[t]:i})}static stats(t,a){a==="start"&&this.initial(t),this.set(t,a)}static checkActionName(t,a){let o=0;const[g,i]=t.split("_");return i&&(o=+i),a[t]?(o++,this.checkActionName(`${g}_${o}`,a)):t}static payload(t,a,o){var g;try{if(!this.enable())return this.log(t,"disabled"),{};const i=(g=this.get(t))!=null?g:[],c=i.shift(),r=i.pop();if(!c||!r)return this.log(t,"invalid","first",c,"last",r),{};if(!i.length)return this.log(t,"invalid","not sources",i),{};if(i.length%2!==0)return this.log(t,"invalid","illegal source length",i),{};if(!c.date||!r.date)return this.log(t,"invalid","illegal first or last",c,r),{};if(c.action!=="start"||r.action!=="end")return this.log(t,"invalid","illegal first or last",c,r),{};const u=r.date-c.date;if(u<=0)return this.log(t,"invalid","illegal date",c,r),{};const d=[];for(let s=0;s<i.length;s+=2){const[e,l]=[i[s],i[s+1]];if(e.action!==l.action)return this.log(t,"invalid","illegal sources",[e,l],i),{};d.push({date:[e.date,l.date],action:e.action})}const n={statsTotalTime:u},p=[];let f=0;for(const s of d){const e=this.checkActionName(s.action,n),l=s.date[1]-s.date[0];if(l<0)return this.log(t,"invalid","illegal group",s,i),{};f+=l,n[e]=l,p.push([s.action,l])}const m=p.map(([s,e])=>`${s}: ${e}`).join(" -> "),_=Object.keys(n).map(s=>`${s}: ${n[s]}`).join(`\r
3`);if(this.debug()){let s="";s+=m,s+=`\r
4\r
5 ------------- \r
6\r
7`,s+=_,s+=`\r
8\r
9 ------------- \r
10\r
11`,s+=`statsOtherTime: ${u-f}`,O(()=>b(()=>import("./commonChunk.Dhe5lqYh.js").then(e=>e.xV),__vite__mapDeps([0,1])))().then(e=>{var l;(l=e.Dialog)!=null&&l.showDialog&&e.Dialog.showDialog({message:s,overlayStyle:{zIndex:99999},closeOnRouteChange:!1})})}if(this.log(t,"stats",i,d,n,p),n.statsSteps=m,n.statsOtherTime=u-f,a==="include"){if(!(o!=null&&o.length))return[];const s={};return o.forEach(e=>P(s,e,S(n,e))),s}if(a==="exclude"){if(!(o!=null&&o.length))return n;const s=n;return o.forEach(e=>P(s,e,void 0)),s}return n}catch(i){return this.log(t,"error",i),{}}}}export{E as StatsPoints};

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.