var e,n,t={exports:{}},a={};function r(){return n||(n=1,t.exports=(e||(e=1,function(e){function n(e,n){var t=e.length;e.push(n);e:for(;0<t;){var a=t-1>>>1,l=e[a];if(!(0<r(l,n)))break e;e[a]=n,e[t]=l,t=a}}function t(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var a=0,l=e.length,i=l>>>1;a<i;){var u=2*(a+1)-1,o=e[u],s=u+1,f=e[s];if(0>r(o,t))s<l&&0>r(f,o)?(e[a]=f,e[s]=t,a=s):(e[a]=o,e[u]=t,a=u);else{if(!(s<l&&0>r(f,t)))break e;e[a]=f,e[s]=t,a=s}}}return n}function r(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var o=[],s=[],f=1,c=null,b=3,p=!1,v=!1,y=!1,d="function"==typeof setTimeout?setTimeout:null,_="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var r=t(s);null!==r;){if(null===r.callback)a(s);else{if(!(r.startTime<=e))break;a(s),r.sortIndex=r.expirationTime,n(o,r)}r=t(s)}}function w(e){if(y=!1,k(e),!v)if(null!==t(o))v=!0,j();else{var n=t(s);null!==n&&E(w,n.startTime-e)}}var x,h=!1,g=-1,T=5,I=-1;function P(){return!(e.unstable_now()-I<T)}function C(){if(h){var n=e.unstable_now();I=n;var r=!0;try{e:{v=!1,y&&(y=!1,_(g),g=-1),p=!0;var l=b;try{n:{for(k(n),c=t(o);null!==c&&!(c.expirationTime>n&&P());){var i=c.callback;if("function"==typeof i){c.callback=null,b=c.priorityLevel;var u=i(c.expirationTime<=n);if(n=e.unstable_now(),"function"==typeof u){c.callback=u,k(n),r=!0;break n}c===t(o)&&a(o),k(n)}else a(o);c=t(o)}if(null!==c)r=!0;else{var f=t(s);null!==f&&E(w,f.startTime-n),r=!1}}break e}finally{c=null,b=l,p=!1}r=void 0}}finally{r?x():h=!1}}}if("function"==typeof m)x=function(){m(C)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=C,x=function(){M.postMessage(null)}}else x=function(){d(C,0)};function j(){h||(h=!0,x())}function E(n,t){g=d((function(){n(e.unstable_now())}),t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,j())},e.unstable_forceFrameRate=function(e){0>e||125<e||(T=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return t(o)},e.unstable_next=function(e){switch(b){case 1:case 2:case 3:var n=3;break;default:n=b}var t=b;b=n;try{return e()}finally{b=t}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=b;b=e;try{return n()}finally{b=t}},e.unstable_scheduleCallback=function(a,r,l){var i=e.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?i+l:i,a){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return a={id:f++,callback:r,priorityLevel:a,startTime:l,expirationTime:u=l+u,sortIndex:-1},l>i?(a.sortIndex=l,n(s,a),null===t(o)&&a===t(s)&&(y?(_(g),g=-1):y=!0,E(w,l-i))):(a.sortIndex=u,n(o,a),v||p||(v=!0,j())),a},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var n=b;return function(){var t=b;b=n;try{return e.apply(this,arguments)}finally{b=t}}}}(a)),a)),t.exports}export{r};
