2026-10-19 17:33:22 +03:00
|
|
|
var K;(function(r){r.Range="range",r.Steps="steps",r.Positions="positions",r.Count="count",r.Values="values"})(K||(K={}));var H;(function(r){r[r.None=-1]="None",r[r.NoValue=0]="NoValue",r[r.LargeValue=1]="LargeValue",r[r.SmallValue=2]="SmallValue"})(H||(H={}));function Ce(r){return rt(r)&&typeof r.from=="function"}function rt(r){return typeof r=="object"&&typeof r.to=="function"}function zt(r){r.parentElement.removeChild(r)}function bt(r){return r!=null}function jt(r){r.preventDefault()}function Ae(r){return r.filter(function(t){return this[t]?!1:this[t]=!0},{})}function ye(r,t){return Math.round(r/t)*t}function Pe(r,t){var s=r.getBoundingClientRect(),u=r.ownerDocument,f=u.documentElement,v=qt(u);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(v.x=0),t?s.top+v.y-f.clientTop:s.left+v.x-f.clientLeft}function j(r){return typeof r=="number"&&!isNaN(r)&&isFinite(r)}function Rt(r,t,s){s>0&&(L(r,t),setTimeout(function(){et(r,t)},s))}function Nt(r){return Math.max(Math.min(r,100),0)}function it(r){return Array.isArray(r)?r:[r]}function Ve(r){r=String(r);var t=r.split(".");return t.length>1?t[1].length:0}function L(r,t){r.classList&&!/\s/.test(t)?r.classList.add(t):r.className+=" "+t}function et(r,t){r.classList&&!/\s/.test(t)?r.classList.remove(t):r.className=r.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function De(r,t){return r.classList?r.classList.contains(t):new RegExp("\\b"+t+"\\b").test(r.className)}function qt(r){var t=window.pageXOffset!==void 0,s=(r.compatMode||"")==="CSS1Compat",u=t?window.pageXOffset:s?r.documentElement.scrollLeft:r.body.scrollLeft,f=t?window.pageYOffset:s?r.documentElement.scrollTop:r.body.scrollTop;return{x:u,y:f}}function ke(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function Ue(){var r=!1;try{var t=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("test",null,t)}catch{}return r}function Me(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function wt(r,t){return 100/(t-r)}function xt(r,t,s){return t*100/(r[s+1]-r[s])}function Oe(r,t){return xt(r,r[0]<0?t+Math.abs(r[0]):t-r[0],0)}function _e(r,t){return t*(r[1]-r[0])/100+r[0]}function J(r,t){for(var s=1;r>=t[s];)s+=1;return s}function Le(r,t,s){if(s>=r.slice(-1)[0])return 100;var u=J(s,r),f=r[u-1],v=r[u],d=t[u-1],w=t[u];return d+Oe([f,v],s)/wt(d,w)}function He(r,t,s){if(s>=100)return r.slice(-1)[0];var u=J(s,t),f=r[u-1],v=r[u],d=t[u-1],w=t[u];return _e([f,v],(s-d)*wt(d,w))}function Fe(r,t,s,u){if(u===100)return u;var f=J(u,r),v=r[f-1],d=r[f];return s?u-v>(d-v)/2?d:v:t[f-1]?r[f-1]+ye(u-r[f-1],t[f-1]):u}var Kt=(function(){function r(t,s,u){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[u||!1],this.xNumSteps=[!1],this.snap=s;var f,v=[];for(Object.keys(t).forEach(function(d){v.push([it(t[d]),d])}),v.sort(function(d,w){return d[0][0]-w[0][0]}),f=0;f<v.length;f++)this.handleEntryPoint(v[f][1],v[f][0]);for(this.xNumSteps=this.xSteps.slice(0),f=0;f<this.xNumSteps.length;f++)this.handleStepPoint(f,this.xNumSteps[f])}return r.prototype.getDistance=function(t){for(var s=[],u=0;u<this.xNumSteps.length-1;u++)s[u]=xt(this.xVal,t,u);return s},r.prototype.getAbsoluteDistance=function(t,s,u){var f=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[f+1];)f++;else t===this.xPct[this.xPct.length-1]&&(f=this.xPct.length-2);!u&&t===this.xPct[f+1]&&f++,s===null&&(s=[]);var v,d=1,w=s[f],E=0,p=0,V=0,D=0;for(u?v=(t-this.xPct[f])/(this.xPct[f+1]-this.xPct[f]):v=(this.xPct[f+1]-t)/(this.xPct[f+1]-this.xPct[f]);w>0;)E=this.xPct[f+1+D]-this.xPct[f+D],s[f+D]*d+100-v*100>100?(p=E*v,d=(w-100*v)/s[f+D],v=1):(p=s[f+D]*E/100*d,d=0),u?(V=V-p,this.xPct.length+D>=1&&D--):(V=V+p,this.xPct.length-D>=1&&D++),w=s[f+D]*d;return t+V},r.prototype.toStepping=function(t){return t=Le(this.xVal,this.xPct,t),
|