PageSourceSearch

https://ds.zopi.io/assets/js/module-CbyKh5Um.js

js zopi.io collected 2026-09-24 09:51:32 UTC 2,505 bytes, 1 lines download raw bytes

1import{_ as $}from"./module-CpA3Gb_i.js";var d;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(d||(d={}));var O=function(n){return n},B="beforeunload",C="popstate";function q(n){n===void 0&&(n={});var c=n,a=c.window,t=a===void 0?document.defaultView:a,i=t.history;function h(){var r=t.location,e=r.pathname,o=r.search,f=r.hash,u=i.state||{};return[u.idx,O({pathname:e,search:o,hash:f,state:u.usr||null,key:u.key||"default"})]}var l=null;function U(){if(l)v.call(l),l=null;else{var r=d.Pop,e=h(),o=e[0],f=e[1];if(v.length){if(o!=null){var u=s-o;u&&(l={action:r,location:f,retry:function(){y(u*-1)}},y(u))}}else m(r)}}t.addEventListener(C,U);var b=d.Pop,k=h(),s=k[0],g=k[1],x=R(),v=R();s==null&&(s=0,i.replaceState($({},i.state,{idx:s}),""));function E(r){return typeof r=="string"?r:K(r)}function L(r,e){return e===void 0&&(e=null),O($({pathname:g.pathname,hash:"",search:""},typeof r=="string"?M(r):r,{state:e,key:D()}))}function A(r,e){return[{usr:r.state,key:r.key,idx:e},E(r)]}function S(r,e,o){return!v.length||(v.call({action:r,location:e,retry:o}),!1)}function m(r){b=r;var e=h();s=e[0],g=e[1],x.call({action:b,location:g})}function T(r,e){var o=d.Push,f=L(r,e);function u(){T(r,e)}if(S(o,f,u)){var p=A(f,s+1),w=p[0],P=p[1];try{i.pushState(w,"",P)}catch{t.location.assign(P)}m(o)}}function _(r,e){var o=d.Replace,f=L(r,e);function u(){_(r,e)}if(S(o,f,u)){var p=A(f,s),w=p[0],P=p[1];i.replaceState(w,"",P),m(o)}}function y(r){i.go(r)}var V={get action(){return b},get location(){return g},createHref:E,push:T,replace:_,go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return x.push(e)},block:function(e){var o=v.push(e);return v.length===1&&t.addEventListener(B,H),function(){o(),v.length||t.removeEventListener(B,H)}}};return V}function H(n){n.preventDefault(),n.returnValue=""}function R(){var n=[];return{get length(){return n.length},push:function(a){return n.push(a),function(){n=n.filter(function(t){return t!==a})}},call:function(a){n.forEach(function(t){return t&&t(a)})}}}function D(){return Math.random().toString(36).substr(2,8)}function K(n){var c=n.pathname,a=c===void 0?"/":c,t=n.search,i=t===void 0?"":t,h=n.hash,l=h===void 0?"":h;return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(a+=l.charAt(0)==="#"?l:"#"+l),a}function M(n){var c={};if(n){var a=n.indexOf("#");a>=0&&(c.hash=n.substr(a),n=n.substr(0,a));var t=n.indexOf("?");t>=0&&(c.search=n.substr(t),n=n.substr(0,t)),n&&(c.pathname=n)}return c}export{d as A,q as a,K as c,M as p};

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.