MCPcopy
hub / github.com/HKUDS/OpenHarness / ct

Function ct

docs/autopilot/assets/index-gQnrxco6.js:25–25  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var So;function km(){return So||(So=1,(function(A){function R(p,x){var B=p.length;p.push(x);l:for(;0<B;){var il=B-1>>>1,dl=p[il];if(0<q(dl,x))p[il]=x,p[B]=dl,B=il;else break l}}function X(p){return p.length===0?null:p[0]}function r(p){if(p.length===0)return null;var x=p[0],B=p.pop();if(B!==x){p[0]=B;l:for(var il=0,dl=p.length,o=dl>>>1;il<o;){var E=2*(il+1)-1,O=p[E],N=E+1,Z=p[N];if(0>q(O,B))N<dl&&0>q(Z,O)?(p[il]=Z,p[N]=B,il=N):(p[il]=O,p[E]=B,il=E);else if(N<dl&&0>q(Z,B))p[il]=Z,p[N]=B,il=N;else break l}}return x}function q(p,x){var B=p.sortIndex-x.sortIndex;return B!==0?B:p.id-x.id}if(A.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Y=performance;A.unstable_now=function(){return Y.now()}}else{var G=Date,yl=G.now();A.unstable_now=function(){return G.now()-yl}}var j=[],d=[],_=1,U=null,K=3,ul=!1,Yl=!1,jl=!1,_l=!1,Nl=typeof setTimeout=="function"?setTimeout:null,$t=typeof clearTimeout=="function"?clearTimeout:null,ql=typeof setImmediate<"u"?setImmediate:null;function ct(p){for(var x=X(d);x!==null;){if(x.callback===null)r(d);else if(x.startTime<=p)r(d),x.sortIndex=x.expirationTime,R(j,x);else break;x=X(d)}}function Tt(p){if(jl=!1,ct(p),!Yl)if(X(j)!==null)Yl=!0,Xl||(Xl=!0,Ll());else{var x=X(d);x!==null&&St(Tt,x.startTime-p)}}var Xl=!1,F=-1,Zl=5,Et=-1;function Qa(){return _l?!0:!(A.unstable_now()-Et<Zl)}function At(){if(_l=!1,Xl){var p=A.unstable_now();Et=p;var x=!0;try{l:{Yl=!1,jl&&(jl=!1,$t(F),F=-1),ul=!0;var B=K;try{t:{for(ct(p),U=X(j);U!==null&&!(U.expirationTime>p&&Qa());){var il=U.callback;if(typeof il=="function"){U.callback=null,K=U.priorityLevel;var dl=il(U.expirationTime<=p);if(p=A.unstable_now(),typeof dl=="function"){U.callback=dl,ct(p),x=!0;break t}U===X(j)&&r(j),ct(p)}else r(j);U=X(j)}if(U!==null)x=!0;else{var o=X(d);o!==null&&St(Tt,o.startTime-p),x=!1}}break l}finally{U=null,K=B,ul=!1}x=void 0}}finally{x?Ll():Xl=!1}}}var Ll;if(typeof ql=="function")Ll=function(){ql(At)};else if(typeof MessageChannel<"u"){var pa=new MessageChannel,jt=pa.port2;pa.port1.onmessage=At,Ll=function(){jt.postMessage(null)}}else Ll=function(){Nl(At,0)};function St(p,x){F=Nl(function(){p(A.unstable_now())},x)}A.unstable_IdlePriority=5,A.unstable_ImmediatePriority=1,A.unstable_LowPriority=4,A.unstable_NormalPriority=3,A.unstable_Profiling=null,A.unstable_UserBlockingPriority=2,A.unstable_cancelCallback=function(p){p.callback=null},A.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Zl=0<p?Math.floor(1e3/p):5},A.unstable_getCurrentPriorityLevel=function(){return K},A.unstable_next=function(p){switch(K){case 1:case 2:case 3:var x=3;break;default:x=K}var B=K;K=x;try{return p()}finally{K=B}},A.unstable_requestPaint=function(){_l=!0},A.unstable_runWithPriority=function(p,x){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var B=K;K=p;try{return x()}finally{K=B}},A.unstable_scheduleCallback=function(p,x,B){var il=A.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?il+B:il):B=il,p){case 1:var dl=-1;break;case 2:dl=250;break;case 5:dl=1073741823;break;case 4:dl=1e4;break;default:dl=5e3}return dl=B+dl,p={id:_++,callback:x,priorityLevel:p,startTime:B,expirationTime:dl,sortIndex:-1},B>il?(p.sortIndex=B,R(d,p),X(j)===null&&p===X(d)&&(jl?($t(F),F=-1):jl=!0,St(Tt,B-il))):(p.sortIndex=dl,R(j,p),Yl||ul||(Yl=!0,Xl||(Xl=!0,Ll()))),p},A.unstable_shouldYield=Qa,A.unstable_wrapCallback=function(p){var x=K;return function(){var B=K;K=x;try{return p.apply(this,arguments)}finally{K=B}}}})(sf)),sf}var bo;function Fm(){return bo||(bo=1,ff.exports=km()),ff.exports}var df={exports:{}},Bl={};/**
26 * @license React
27 * react-dom.production.js
28 *

Callers 2

TtFunction · 0.85
AtFunction · 0.85

Calls 3

XFunction · 0.85
rFunction · 0.85
RFunction · 0.85

Tested by

no test coverage detected