PageSourceSearch

https://any.run/_nuxt/4PA5qT6t.js

js any.run collected 2026-09-24 08:37:52 UTC 7,905 bytes, 1 lines download raw bytes

1import{A as R,a7 as Q,O as p,D as y,x as M,$ as O,ad as ee,U as D,P as H,W as F,X as U,Z as _,a3 as X,f as le,w as f,a as ne,G as te,V as $,e as b,a1 as ie,Y as se}from"./DSN8JwXw.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"c8ed081521c89c0a65d15f8db6c70638d37e1bb7"};var e=new l.Error().stack;e&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[e]="013809fc-720c-4366-8c80-377dfcca3474",l._sentryDebugIdIdentifier="sentry-dbid-013809fc-720c-4366-8c80-377dfcca3474")}catch{}})();const oe=["innerHTML"],re={key:1,class:"vue-ellipsis-native-text"},ue=R({__name:"NativeEllipsis",props:{text:{type:String},visibleLine:{type:Number},ellipsis:{type:Boolean},useInnerHtml:{type:Boolean}},setup(l){const e=l;return(t,s)=>(p(),y("div",{class:se(["vue-ellipsis-native",{ellipsis:e.ellipsis}]),style:ie({webkitLineClamp:e.visibleLine})},[e.useInnerHtml?(p(),y("span",{key:0,innerHTML:e.text,class:"vue-ellipsis-native-html"},null,8,oe)):(p(),y("span",re,_(e.text),1))],6))}}),ae=(l,e)=>{const t=l.__vccOpts||l;for(const[s,o]of e)t[s]=o;return t},pe=ae(ue,[["__scopeId","data-v-e586cf55"]]);function ce(l){return l instanceof RegExp}function V(l){return typeof l=="string"}const I=typeof window<"u"&&typeof document<"u",de=I&&typeof document.body.style.webkitLineClamp<"u",j=I&&typeof ResizeObserver<"u";function S(l,e){return window.getComputedStyle||(window.getComputedStyle=function(t){return this.getPropertyValue=function(s){const o=/(-([a-z]){1})/g;return s==="float"&&(s="styleFloat"),o.test(s)&&(s=s.replace(o,function(){return arguments[2].toUpperCase()})),t.currentStyle&&t.currentStyle[s]?t.currentStyle[s]:null},this}),window.getComputedStyle(l,null).getPropertyValue(e)}function fe(l){const e=S(l,"line-height");if(e==="normal"){const t=document.createElement("span");t.style.width="300px",t.style.position="absolute",t.style.visibility="hidden",t.innerText="ruofee",l.appendChild(t);const s=t.clientHeight;return l.removeChild(t),s*1.1}return parseFloat(e)}function ye(l){const e=S(l,"word-break"),t=S(l,"overflow-wrap");if(e!=="word-break"&&e!=="break-all"&&t!=="break-word"){const s=l.style.wordBreak;return l.style.wordBreak="break-word",s}}function A(l,e){l.style.wordBreak=e}function ve(l,e){return Math.floor((l+e)/2)}function P(l,e,t,s){for(;l<e;){const o=ve(l,e);if(s(l,e,o))break;t(l,e,o)?e=o:l=o}}function me(l){const e=document.createElement("span");return e.className="vue-ellipsis-js-content-text",e.textContent=l,e}function Y(l){var e;!I||(l.nodeType===Node.TEXT_NODE?l.textContent&&((e=l.parentNode)==null||e.replaceChild(me(l.textContent),l)):l.childNodes.forEach(t=>{Y(t)}))}function k(l){return l.clientHeight}function G(){return[]}const he=R({__name:"JsEllipsis",props:{text:{type:String,required:!0},visibleLine:{type:Number,default:1},visibleHeight:{type:Number},maxLine:{type:Number},maxHeight:{type:Number},ellipsis:{type:Boolean},endExcludes:{type:Array,default:G},useInnerHtml:{type:Boolean},reflowOnResize:{type:Boolean},onReflow:{type:Function},onEllipsisClick:{type:Function},onUnellipsisClick:{type:Function}},setup(l){const e=l,t=b(),s=b(),o=b(),x=b(),E=b(),w=b();f(()=>e.text,a),f(()=>e.ellipsis,a),f(()=>e.useInnerHtml,a),f(()=>e.maxLine,a),f(()=>e.visibleLine,a),f(()=>e.maxHeight,a),f(()=>e.visibleHeight,a),f(()=>e.endExcludes,a);function L(n,i){var u;(u=e?.onReflow)==null||u.call(e,n,i)}function J(){var n;(n=e?.onEllipsisClick)==null||n.call(e)}function W(){var n;(n=e?.onUnellipsisClick)==null||n.call(e)}function a(){if(!t.value||!s.value||!o.value||E.value||(o.value.style.display="none",e.useInnerHtml?s.value.innerHTML=e.text:s.value.innerText=e.text,!e.ellipsis))return;const n=fe(t.value),i=ye(s.value),u=typeof e.visibleHeight>"u"?n*e.visibleLine:e.visibleHeight,c=typeof e.maxHeight>"u"?typeof e.maxLine>"u"?u:n*e.maxLine:e.maxHeight;if(k(t.value)<=Math.max(c,u)){L(!1,e.text),V(i)&&A(s.value,i);return}E.value=!0,o.value.style.display="inline",x.value&&(x.value.style.display="none"),e.useInnerHtml?(Y(s.value),T(t.value,s.value,u)):B(t.value,s.value,u),x.value&&(x.value.style.display="inline"),V(i)&&A(s.value,i),E.value=!1}function B(n,i,u){const c=i.innerText||"";let r="";P(0,c.length,(d,v,m)=>{const N=c.slice(d,m);i.innerText=r+N;const h=k(n)>u;return h||(r+=N),h},(d,v,m)=>d===m),r=K(r),i.innerText=r,L(!0,r)}function T(n,i,u){const c=i.childNodes;if(c.length===0)return!1;if(c.length===1){const r=c[0];if(r.nodeType===Node.TEXT_NODE)B(n,i,u);else{const d=r.innerHTML;if(r.innerHTML="",k(n)>u){i.removeChild(r),L(!0,i.innerHTML);return}r.innerHTML=d,T(n,r,u)}}else{const r=[].slice.call(c),d=[];let v=0;P(0,r.length,(m,N,h)=>{i.innerHTML="";const C=r.slice(m,h);d.forEach(g=>{i.appendChild(g)}
1),C.forEach(g=>{i.appendChild(g)});const z=k(n)>u;return z||C.forEach(g=>{d.push(g)}),z},(m,N,h)=>{if(m===h){const C=k(n)>u;return v=h,C||i.appendChild(r[v]),!0}return!1}),i.childNodes[v]&&T(n,i.childNodes[v],u)===!1&&i.removeChild(i.childNodes[v])}}function Z(n){for(const i of e.endExcludes)if(ce(i)){if(i.test(n))return!0}else if(i===n)return!0;return!1}function K(n){for(;n.length&&Z(n[n.length-1]);)n=n.slice(0,-1);return n}return ne(()=>{a(),t.value&&e.reflowOnResize&&(j?(w.value=new ResizeObserver(a),w.value.observe(t.value)):window.addEventListener("resize",a))}),te(()=>{var n,i;j&&w.value?(i=(n=w.value)==null?void 0:n.disconnect)==null||i.call(n):window.removeEventListener("resize",a)}),(n,i)=>(p(),y("div",{ref_key:"aref",ref:t,class:"vue-ellipsis-js"},[$("span",{ref_key:"textRef",ref:s,class:"vue-ellipsis-js-content"},null,512),$("span",{ref_key:"ellipsisRef",ref:o,class:"vue-ellipsis-js-ellipsis",onClick:J},[H(n.$slots,"ellipsisNode")],512),!l.ellipsis&&n.$slots.unellipsisNode?(p(),y("span",{key:0,ref_key:"unellipsisRef",ref:x,class:"vue-ellipsis-js-unellipsis",onClick:W},[H(n.$slots,"unellipsisNode")],512)):X("",!0)],512))}}),q="...",xe={class:"vue-ellipsis"},ge=R({__name:"index",props:{text:{type:String,required:!0},visibleLine:{type:Number,default:1},visibleHeight:{type:Number},maxLine:{type:Number},maxHeight:{type:Number},ellipsis:{type:Boolean,default:!0},ellipsisNode:{type:String,default:q},unellipsisNode:{type:String},endExcludes:{type:Array,default:G},useInnerHtml:{type:Boolean,default:!1},reflowOnResize:{type:Boolean,default:!1},onReflow:{type:Function},onEllipsisClick:{type:Function},onUnellipsisClick:{type:Function}},setup(l){const e=l,t=Q(),s=le(()=>de&&(typeof e.maxLine>"u"||e.maxLine===e.visibleLine)&&e.endExcludes.length===0&&e.ellipsisNode===q&&typeof t.ellipsisNode>"u"&&typeof e.unellipsisNode>"u"&&typeof t.unellipsisNode>"u"&&typeof e.maxHeight>"u"&&typeof e.visibleHeight>"u"&&typeof e.onReflow>"u"&&typeof e.onEllipsisClick>"u"&&typeof e.onUnellipsisClick>"u");return(o,x)=>(p(),y("div",xe,[M(s)?(p(),O(pe,{key:0,text:e.text,"visible-line":e.visibleLine,ellipsis:e.ellipsis,"use-inner-html":e.useInnerHtml},null,8,["text","visible-line","ellipsis","use-inner-html"])):(p(),O(he,{key:1,text:l.text,"use-inner-html":l.useInnerHtml,"visible-line":l.visibleLine,"visible-height":l.visibleHeight,"max-line":l.maxLine,"max-height":l.maxHeight,ellipsis:l.ellipsis,"end-excludes":l.endExcludes,"reflow-on-resize":l.reflowOnResize,"on-reflow":l.onReflow,"on-ellipsis-click":l.onEllipsisClick,"on-unellipsis-click":l.onUnellipsisClick},ee({ellipsisNode:D(()=>[M(t).ellipsisNode?X("",!0):(p(),y(F,{key:0},[U(_(l.ellipsisNode),1)],64)),H(o.$slots,"ellipsisNode")]),_:2},[l.unellipsisNode||o.$slots.unellipsisNode?{name:"unellipsisNode",fn:D(()=>[o.$slots.unellipsisNode?H(o.$slots,"unellipsisNode",{key:0}):(p(),y(F,{key:1},[U(_(l.unellipsisNode),1)],64))]),key:"0"}:void 0]),1032,["text","use-inner-html","visible-line","visible-height","max-line","max-height","ellipsis","end-excludes","reflow-on-resize","on-reflow","on-ellipsis-click","on-unellipsis-click"]))]))}});export{ge as N};

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.