PageSourceSearch

https://granatum.solutions/npm.d3-transition.ff1b29573f3a55e7aa40.js

js granatum.solutions collected 2026-10-01 23:53:04 UTC 11,012 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkgranatum_2=self.webpackChunkgranatum_2||[]).push([[3949],{62775:(t,n,e)=>{var r=e(58227),i=e(41089),o=e(70029),u=e(83844),a=(0,i.A)("start","end","cancel","interrupt"),s=[];function l(t,n,e,r,i,l){var f=t.__transition;if(f){if(e in f)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function a(t){e.state=1,e.timer.restart(s,e.delay,e.time),e.delay<=t&&s(t-e.delay)}function s(o){var a,c,h,v;if(1!==e.state)return f();for(a in i)if((v=i[a]).name===e.name){if(3===v.state)return(0,u.A)(s);4===v.state?(v.state=6,v.timer.stop(),v.on.call("interrupt",t,t.__data__,v.index,v.group),delete i[a]):+a<n&&(v.state=6,v.timer.stop(),v.on.call("cancel",t,t.__data__,v.index,v.group),delete i[a])}if((0,u.A)((function(){3===e.state&&(e.state=4,e.timer.restart(l,e.delay,e.time),l(o))})),e.state=2,e.on.call("start",t,t.__data__,e.index,e.group),2===e.state){for(e.state=3,r=new Array(h=e.tween.length),a=0,c=-1;a<h;++a)(v=e.tween[a].value.call(t,t.__data__,e.index,e.group))&&(r[++c]=v);r.length=c+1}}function l(n){for(var i=n<e.duration?e.ease.call(null,n/e.duration):(e.timer.restart(f),e.state=5,1),o=-1,u=r.length;++o<u;)r[o].call(t,i);5===e.state&&(e.on.call("end",t,t.__data__,e.index,e.group),f())}function f(){for(var r in e.state=6,e.timer.stop(),delete i[n],i)return;delete t.__transition}i[n]=e,e.timer=(0,o.O1)(a,0,e.time)}
vendor: 9,637 bytes, line 1
1(t,e,{name:n,index:r,group:i,on:a,tween:s,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:0})}function f(t,n){var e=h(t,n);if(e.state>0)throw new Error("too late; already scheduled");return e}function c(t,n){var e=h(t,n);if(e.state>3)throw new Error("too late; already running");return e}function h(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}var v=e(19587),_=e(47268);function p(t,n){var e,r;return function(){var i=c(this,t),o=i.tween;if(o!==e)for(var u=0,a=(r=e=o).length;u<a;++u)if(r[u].name===n){(r=r.slice()).splice(u,1);break}i.tween=r}}function d(t,n,e){var r,i;if("function"!==typeof e)throw new Error;return function(){var o=c(this,t),u=o.tween;if(u!==r){i=(r=u).slice();for(var a={name:n,value:e},s=0,l=i.length;s<l;++s)if(i[s].name===n){i[s]=a;break}s===l&&i.push(a)}o.tween=i}}function y(t,n,e){var r=t._id;return t.each((function(){var t=c(this,r);(t.value||(t.value={}))[n]=e.apply(this,arguments)})),function(t){return h(t,r).value[n]}}var w=e(46957),m=e(8981),g=e(1848),A=e(67737);function b(t,n){var e;return("number"===typeof n?m.A:n instanceof w.Ay?g.Ay:(e=(0,w.Ay)(n))?(n=e,g.Ay):A.A)(t,n)}function x(t){return function(){this.removeAttribute(t)}}function E(t){return function(){this.removeAttributeNS(t.space,t.local)}}function C(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttribute(t);return u===o?null:u===r?i:i=n(r=u,e)}}function T(t,n,e){var r,i,o=e+"";return function(){var u=this.getAttributeNS(t.space,t.local);return u===o?null:u===r?i:i=n(r=u,e)}}function N(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttribute(t))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttribute(t)}}function S(t,n,e){var r,i,o;return function(){var u,a,s=e(this);if(null!=s)return(u=this.getAttributeNS(t.space,t.local))===(a=s+"")?null:u===r&&a===i?o:(i=a,o=n(r=u,s));this.removeAttributeNS(t.space,t.local)}}function k(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}(t,i)),e}return i._value=n,i}function j(t,n){var e,r;function i(){var i=n.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}(t,i)),e}return i._value=n,i}function P(t,n){return function(){f(this,t).delay=+n.apply(this,arguments)}}function z(t,n){return n=+n,function(){f(this,t).delay=n}}function O(t,n){return function(){c(this,t).duration=+n.apply(this,arguments)}}function q(t,n){return n=+n,function(){c(this,t).duration=n}}var B=e(56541);var I=e(50574);var M=e(80747);var V=r.Ay.prototype.constructor;var $=e(23683);function D(t){return function(){this.style.removeProperty(t)}}var F=0;function G(t,n,e,r){this._groups=t,this._parents=n,this._name=e,this._id=r}function H(){return++F}var J=r.Ay.prototype;G.prototype=function(t){return(0,r.Ay)().transition(t)}.prototype={constructor:G,select:function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=(0,I.A)(t));for(var r=this._groups,i=r.length,o=new Array(i),u=0;u<i;++u)for(var a,s,f=r[u],c=f.length,v=o[u]=new Array(c),_=0;_<c;++_)(a=f[_])&&(s=t.call(a,a.__data__,_,f))&&("__data__"in a&&(s.__data__=a.__data__),v[_]=s,l(v[_],n,e,_,v,h(a,e)));return new G(o,this._parents,n,e)},selectAll:function(t){var n=this._name,e=this._id;"function"!==typeof t&&(t=(0,M.A)(t));for(var r=this._groups,i=r.length,o=[],u=[],a=0;a<i;++a)for(var s,f=r[a],c=f.length,v=0;v<c;++v)if(s=f[v]){for(var _,p=t.call(s,s.__data__,v,f),d=h(s,e),y=0,w=p.length;y<w;++y)(_=p[y])&&l(_,n,e,y,p,d);o.push(p),u.push(s)}return new G(o,u,n,e)},selectChild:J.selectChild,selectChildren:J.selectChildren,filter:function(t){"function"!==typeof t&&(t=(0,B.A)(t));for(var n=this._groups,e=n.length,r=new Array(e),i=0;i<e;++i)for(var o,u=n[i],a=u.length,s=r[i]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new G(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,e=t._groups,r=n.length,i=e.length,o=Math.min(r,i),u=new Array(r),a=0;a<o;++a)for(var s,l=n[a],f=e[a],c=l.length,h=u[a]=new Array(c),v=0;v<c;++v)(s=l[v]||f[v])&&(h[v]=s);for(;a<r;++a)u[a]=n[a];return new G(u,this._parents,this._name,this._id)},selection:function(){return new V(this._groups,this._parents)},transition:function(){for(var t=this._name,n=this._id,e=H(),r=this._groups,i=r.length,o=0;o<i;++o)for(var u,a=r[o],s=a.length,f=0;f<s;++f)if(u=a[f]){var c=h(u,n);l(u,t,e,f,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new G(r,this._parents,t,e)},call:J.call,nodes:J.nodes,node:J.node,size:J.size,empty:J.empty,each:J.each,on:function(t,n){var e=this._id;return arguments.length<2?h(this.node(),e).on.on(t):this.each(function(t,n,e){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?f:c;return function(){var u=o(this,t),a=u.on;a!==r&&(i=(r=a).copy()).on(n,e),u.on=i}}(e,t,n))},attr:function(t,n){var e=(0,_.A)(t),r="transform"===e?v.I:b;return this.attrTween(t,"function"===typeof n?(e.local?S:N)(e,r,y(this,"attr."+t,n)):null==n?(e.local?E:x)(e):(e.local?T:C)(e,r,n))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!==typeof n)throw new Error;var r=(0,_.A)(t);return this.tween(e,(r.local?k:j)(r,n))},style:function(t,n,e){var r="transform"===(t+="")?v.T:b;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=(0,$.j)(this,t),u=(this.style.removeProperty(t),(0,$.j)(this,t));return o===u?null:o===e&&u===r?i:i=n(e=o,r=u)}}(t,r)).on("end.style."+t,D(t)):"function"===typeof n?this.styleTween(t,function(t,n,e){var r,i,o;return function(){var u=(0,$.j)(this,t),a=e(this),s=a+"";return null==a&&(this.style.removeProperty(t),s=a=(0,$.j)(this,t)),u===s?null:u===r&&s===i?o:(i=s,o=n(r=u,a))}}(t,r,y(this,"style."+t,n))).each(function(t,n){var e,r,i,o,u="style."+n,a="end."+u;return function(){var s=c(this,t),l=s.on,f=null==s.value[u]?o||(o=D(n)):void 0;l===e&&i===f||(r=(e=l).copy()).on(a,i=f),s.on=r}}(this._id,t)):this.styleTween(t,function(t,n,e){var r,i,o=e+"";return function(){var u=(0,$.j)(this,t);return u===o?null:u===r?i:i=n(r=u,e)}}(t,r,n),e).on("end.style."+t,null)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!==typeof n)throw new Error;return this.tween(r,function(t,n,e){var r,i;function o(){var o=n.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,n,e){return function(r){this.style.setProperty(t,n.call(this,r),e)}}(t,o,e)),r}return o._value=n,o}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(y(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;return this.tween(n,function(t){var n,e;function r(){var r=t.apply(this,arguments);return r!==e&&(n=(e=r)&&function(t){return function(n){this.textContent=t.call(this,n)}}(r)),n}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=h(this.node(),e).tween,o=0,u=i.length;o<u;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==n?p:d)(e,t,n))},delay:function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?P:z)(n,t)):h(this.node(),n).delay},duration:function(t){var n=this._id;return arguments.length?this.each(("function"===typeof t?O:q)(n,t)):h(this.node(),n).duration},ease:function(t){var n=this._id;return arguments.length?this.each(function(t,n){if("function"!==typeof n)throw new Error;return function(){c(this,t).ease=n}}(n,t)):h(this.node(),n).ease},easeVarying:function(t){if("function"!==typeof t)throw new Error;return this.each(function(t,n){return function(){var e=n.apply(this,arguments);if("function"!==typeof e)throw new Error;c(this,t).ease=e}}(this._id,t))},end:function(){var t,n,e=this,r=e._id,i=e.size();return new Promise((function(o,u){var a={value:u},s={value:function(){0===--i&&o()}};e.each((function(){var e=c(this,r),i=e.on;i!==t&&((n=(t=i).copy())._.cancel.push(a),n._.interrupt.push(a),n._.end.push(s)),e.on=n})),0===i&&o()}))},[Symbol.iterator]:J[Symbol.iterator]};var K={time:null,delay:0,duration:250,ease:e(72101).wq};function L(t,n){for(var e;!(e=t.__transition)||!(e=e[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return e}r.Ay.prototype.interrupt=function(t){return this.each((function(){!function(t,n){var e,r,i,o=t.__transition,u=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(r?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete o[i]):u=!1;u&&delete t.__transition}}(this,t)}))},r.Ay.prototype.transition=function(t){var n,e;t instanceof G?(n=t._id,t=t._name):(n=H(),(e=K).time=(0,o.tB)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,u=0;u<i;++u)for(var a,s=r[u],f=s.length,c=0;c<f;++c)(a=s[c])&&l(a,t,n,c,s,e||L(a,n));return new G(r,this._parents,t,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.