!function(n){function s(t){for(var i,u,l=t[0],e=t[1],a=t[2],s=0,c=[];s<l.length;s++)u=l[s],f[u]&&c.push(f[u][0]),f[u]=0;for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);for(o&&o(t);c.length;)c.shift()();return r.push.apply(r,a||[]),h()}function h(){for(var e,s,n=0;n<r.length;n++){for(var i=r[n],o=!0,u=1;u<i.length;u++)s=i[u],0!==f[s]&&(o=!1);o&&(r.splice(n--,1),e=t(t.s=i[0]))}return e}function t(i){if(u[i])return u[i].exports;var r=u[i]={i:i,l:!1,exports:{}};return n[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var u={},f={6:0,13:0},r=[],i,c,e,o;for(t.m=n,t.c=u,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",i=window.webpackJsonp=window.webpackJsonp||[],c=i.push.bind(i),i.push=s,i=i.slice(),e=0;e<i.length;e++)s(i[e]);o=c;r.push([129,0,1]);h()}({129:function(n,t,i){i(130);i(131);i(134);i(135);i(9);i(138);i(139);i(140);i(147);i(148);i(149);i(83);i(150);i(152);i(26);i(99);i(175);i(176);i(177);i(178);i(92);i(93);i(179);i(180);i(185)},131:function(n,t,i){"use strict";i.r(t),function(n,t){i(12);window.sparkp.common=function(n,t,i){var f,r,u;return n.rx?n:(f=function(n){return{_next:function(t){n(t)}}},r=function(){var t,n=[];return{subscribe:function(t){return i.isFunction(t)?this.subscribe(f(t)):(-1==n.indexOf(t)&&n.push(t),function(n,t){return{dispose:function(){t.unsubscribe(n)}}}(t,this))},unsubscribe:function(){n.splice(n.indexOf(n),1)},next:function(i){t=i;for(var r=0;r<n.length;r++)n[r]._next(i)},last:function(){return t}}},r.fromEvent=function(n,i){var u=r();return t(n).on(i,function(n){u.next(n)}),u},u={},n.rx={observer:f,observable:r,topic:function(n){return u[n]||(u[n]=r()),u[n]}},n)}(window.sparkp.common||{},n,t)}.call(this,i(0),i(2))},134:function(){var n,t;window.sparkp.common=(n=window.sparkp.common||{},t=window.sparkp.common.rx,n.classToggler=function(n,i,r){var f=!1,u,e;return"string"!=typeof i||r||(r=i,i=n),u=t.observable(),e=function(){i.toggleClass(r);f=i.hasClass(r);u.next(f)},{show:function(){return n.on("click",e),this},value:u,getValue:function(){return f},set:function(n){return n?i.addClass(r):i.removeClass(r),u.next(i.hasClass(r)),this}}},n)},135:function(n,t,i){"use strict";i.r(t),function(n){var t,u,r;i(11);window.sparkp.common=(t=window.sparkp.common||{},u=window.sparkp.common.rx,r=function(){return window.sparkp.common&&window.sparkp.common.combo},t.tabToggler=function(t,i,f,e){i=i||t;var c=u.observable(),o=null,s=null,h=function(i,r){var u=n(i.target),e=u.hasClass("active");t.removeClass("active");(!f||f&&!e)&&u.addClass("active");!0!==r&&(f?c.next({tab:u,value:!e}):c.next(u.data("value")))};return{show:function(){f||h({target:e?t.filter("[data-value='"+e+"']")[0]:t[0]});var u=!1;return i.each(function(i,f){var c=n(f);!u&&r()&&(u=!0,(s=n(c.parents("[data-switch-related]").data("switchRelated"))).length&&((o=r()(s)).show(),o.value.subscribe(function(n){h({target:t.filter("[data-value='"+n+"']")[0]})}),e&&o.set(e,!0)));c.on("click",function(){h({target:t[i]})})}),this},value:c,set:function(n,i){return o?o.set(n,i):h({target:t.filter("[data-value='"+n+"']")[0]},!0),this},visibility:function(i,r){t.each(function(t,u){for(var e=n(u),o=e.data("value"),f=0;f<i.length;f++)if(o==("string"==typeof i[f]&&i[f]||n(i[f]).data("value"))){s&&n('[value="'+e.data("value")+'"]',s).prop("disabled",!r);r?e.show():e.hide();break}});o&&o.update()},getCurrent:function(){return t.filter(".active").data("value")}}},t)}.call(this,i(0))},138:function(n,t,i){(function(n,t){i(22);window.sparkp.common=function(n,i,r){return n.combo=function(n,u,f){var s=i.observable(),e=!1,o={minimumResultsForSearch:1/0},h=function(){if(e)e=!1;else{var t=n.val();s.next(t+"")}},c=function(t,i){n.select2("destroy");t&&n.empty();n.select2(r.defaults(r.extend({},i,f)||{},o))},l=t("option[selected]",n);return l.length&&n.val(l.attr("value")),{show:function(){n.select2(r.defaults(r.extend({},f,{data:u}),o));n.data("sparkCombo")&&n.off("change",n.data("sparkCombo").onChangeCallback);n.on("change",h);n.data("sparkCombo",{onChangeCallback:h})},update:function(t,i){c(t,r.defaults({data:t},o));i&&n.val(i).trigger("change")},set:function(t,i){i&&(e=!0);c();n.val(t).trigger("change")},value:s,getCurrent:function(){return n.val()+""},getText:function(){return t("option:selected",n).text()}}},n}(window.sparkp.common||{},window.sparkp.common.rx,n)}).call(this,i(2),i(0))},139:function(n,t,i){(function(n){var t,i;window.sparkp.common=(t=window.sparkp.common||{},i=window.sparkp.common.rx,t.histogramToggler=function(t,r){var f=i.observable(),u=function(i){var u=n(i.currentTarget);t.removeClass("active");u.addClass("active");r.addClass("hovered");f.next({target:u,value:u.data("value"),valuePercent:u.data("valuepercent")})},e=function(){u({currentTarget:t.last()[0]});r.removeClass("hovered")};return{show:function(){u({currentTarget:t.last()[0]});r.removeClass("hovered");t.on("mouseenter",u);t.on("mouseleave",e)},value:f}},t)}).call(this,i(0))},140:function(n,t,i){"use strict";i.r(t),function(n,t){i(141);i(17);i(20);i(80);i(81);i(73);i(146);window.sparkp.common=function(n,i){var r=function(n){var t,r,u,f,e,o;if(i.isNaN(n))return"-";if(t=i.isNull(n)?"":n.toString(),!i.isNull(t.match(/(\d\W{2})/g)))throw new Error("Должен быть один разделитель!");if(!i.isNull(t.match(/[a-z]/g)))throw new Error("Значение '"+t+"' не должно содержать буквы!");return(r=function(n){var t=n.match(/\d+?\W*?\d*/g),f=parseInt(t[0],10),u=i.isUndefined(t[1])?"":t[1].replace(/0+$/g,""),r=n.match(/\W/);return r=i.isNull(r)?"":r[0],t[0]=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1 "),""===u?t[0]:t[0]+r+u},i.isEmpty(t))?"":("-"==(t=t.replace("-.","-0."))&&(t="-0."),e=t.match(/^\-/),!i.isNull(e))?(o=t.match(/\d+\W*\d*/)[0],"0"===o?"0":e+r(o)):(u=t,f=u.match(/^\W\d+/),i.isNull(f)?r(u):f[0]).replace(".",",")},u=[{min:1e12,rate:"трлн"},{min:1e9,rate:"млрд"},{min:1e6,rate:"млн"},{min:1e3,rate:"тыс."},{min:0,rate:""}];return window.sparkp.common.formatters={numberWithDividers:r,currencyTextToSymbol:function(n){n.addClass("ruble");n.each(function(n,i){var r=t(i);r.text(r.text().replace("руб.",""))})},reduceNumber:function(n,t){var s,h,e,o,f;if(i.isUndefined(t)&&(t=2),i.isNull(n))return{value:"&mdash;",valueNumber:null,rate:void 0};for(e=n,o=0;o<u.length;o++)if(f=u[o],n>=f.min){e=f.min?n/f.min:n;s=f.rate;h=f.min;break}return{value:r(e.toFixed(t)),valueNumber:e,rate:s,pow:h}},padLeft:function(n,t,r){if(i.isUndefined(n)||i.isNull(n)||(i.isString(n)||(n=String(n)),i.isEmpty(n)||i.size(n)>=t))return n;var u=r||"0";return new Array(t-n.length+1).join(u)+n},padRight:function(n,t,r){return i.isUndefined(n)?(console.log("sparkp.common.formatters.padRight: value is undefined!"),n):(i.isString(n)||(n=n.toString()),t>>=0,r=String(r||" "),this.length>t?String(n):((t-=n.length)>r.length&&(r+=r.repeat(t/r.length)),String(n)+r.slice(0,t)))}},n}(window.sparkp.common||{},n)}.call(this,i(2),i(0))},146:function(n,t,i){i(0);i(0),function(){!function(n){"use strict";function a(n){switch(typeof n){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return null===n?"null":"object"}}function v(n){return Object.prototype.toString.call(n).replace(/^\[object *|\]$/g,"")}function u(n){return"function"==typeof n}function h(n){if(null===n||n===i)throw TypeError();return Object(n)}function r(n){return n>>0}function t(n){return n>>>0}function y(n,t){var i=32-t;return n<<i>>i}function p(n,t){var i=32-t;return n<<i>>>i}function rt(n){return[255&n]}function ut(n){return y(n[0],8)}function ft(n){return[255&n]}function b(n){return p(n[0],8)}function et(n){return[(n=it(Number(n)))<0?0:n>255?255:255&n]}function ot(n){return[255&n,n>>8&255]}function st(n){return y(n[1]<<8|n[0],16)}function ht(n){return[255&n,n>>8&255]}function ct(n){return p(n[1]<<8|n[0],16)}function lt(n){return[255&n,n>>8&255,n>>16&255,n>>24&255]}function at(n){return y(n[3]<<24|n[2]<<16|n[1]<<8|n[0],32)}function vt(n){return[255&n,n>>8&255,n>>16&255,n>>24&255]}function yt(n){return p(n[3]<<24|n[2]<<16|n[1]<<8|n[0],32)}function k(n,t,i){function b(n){var t=s(n),i=n-t;return i<.5?t:i>.5?t+1:t%2?t+1:t}var a,r,u,y=(1<<t-1)-1,f,p,h,l,v,w;for(n!=n?(r=(1<<t)-1,u=o(2,i-1),a=0):n===1/0||n===-1/0?(r=(1<<t)-1,u=0,a=n<0?1:0):0===n?(r=0,u=0,a=1/n==-1/0?1:0):(a=n<0,(n=c(n))>=o(2,1-y))?(r=e(s(tt(n)/nt),1023),f=n/o(2,r),f<1&&(r-=1,f*=2),f>=2&&(r+=1,f/=2),p=o(2,i),r+=y,(u=b(f*p)-p)/p>=1&&(r+=1,u=0),r>2*y&&(r=(1<<t)-1,u=0)):(r=0,u=b(n/o(2,1-y-i))),l=[],h=i;h;h-=1)l.push(u%2?1:0),u=s(u/2);for(h=t;h;h-=1)l.push(r%2?1:0),r=s(r/2);for(l.push(a?1:0),l.reverse(),v=l.join(""),w=[];v.length;)w.unshift(parseInt(v.substring(0,8),2)),v=v.substring(8);return w}function d(n,t,i){for(var h,c,e,l,r,s,u,a=[],f=0;f<n.length;++f)for(c=n[f],h=8;h;h-=1)a.push(c%2?1:0),c>>=1;return a.reverse(),e=a.join(""),l=(1<<t-1)-1,r=parseInt(e.substring(0,1),2)?-1:1,s=parseInt(e.substring(1,1+t),2),u=parseInt(e.substring(1+t),2),s===(1<<t)-1?0!==u?NaN:r*(1/0):s>0?r*o(2,s-l)*(1+u/o(2,i)):0!==u?r*o(2,-(l-1))*(u/o(2,i)):r<0?-0:0}function pt(n){return d(n,11,52)}function wt(n){return k(n,11,52)}function bt(n){return d(n,8,23)}function kt(n){return k(n,8,23)}var i=void 0,g=1e5,l,w,nt=Math.LN2,c=Math.abs,s=Math.floor,tt=Math.log,f=Math.max,e=Math.min,o=Math.pow,it=Math.round;l=Object.defineProperty;w=!function(){try{return Object.defineProperty({},"x",{})}catch(n){return!1}}();l&&!w||(Object.defineProperty=function(n,t,i){if(l)try{return l(n,t,i)}catch(n){}if(n!==Object(n))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in i&&Object.prototype.__defineGetter__.call(n,t,i.get),Object.prototype.__defineSetter__&&"set"in i&&Object.prototype.__defineSetter__.call(n,t,i.set),"value"in i&&(n[t]=i.value),n}),function(){function y(n){if((n=r(n))<0)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:n});Object.defineProperty(this,"_bytes",{value:Array(n)});for(var t=0;t<n;t+=1)this._bytes[t]=0}function o(){if(!arguments.length||"object"!=typeof arguments[0])return function(n){if((n=r(n))<0)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:n});Object.defineProperty(this,"byteLength",{value:n*this.BYTES_PER_ELEMENT});Object.defineProperty(this,"buffer",{value:new y(this.byteLength)});Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments);if(arguments.length>=1&&"object"===a(arguments[0])&&arguments[0]instanceof o)return function(n){var i,t;if(this.constructor!==n.constructor)throw TypeError();for(i=n.length*this.BYTES_PER_ELEMENT,Object.defineProperty(this,"buffer",{value:new y(i)}),Object.defineProperty(this,"byteLength",{value:i}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:n.length}),t=0;t<this.length;t+=1)this._setter(t,n._getter(t))}.apply(this,arguments);if(arguments.length>=1&&"object"===a(arguments[0])&&!(arguments[0]instanceof o)&&!(arguments[0]instanceof y||"ArrayBuffer"===v(arguments[0])))return function(n){var i=n.length*this.BYTES_PER_ELEMENT,t,r;for(Object.defineProperty(this,"buffer",{value:new y(i)}),Object.defineProperty(this,"byteLength",{value:i}),Object.defineProperty(this,"byteOffset",{value:0}),Object.defineProperty(this,"length",{value:n.length}),t=0;t<this.length;t+=1)r=n[t],this._setter(t,Number(r))}.apply(this,arguments);if(arguments.length>=1&&"object"===a(arguments[0])&&(arguments[0]instanceof y||"ArrayBuffer"===v(arguments[0])))return function(n,r,u){if((r=t(r))>n.byteLength)throw RangeError("byteOffset out of range");if(r%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(u===i){var f=n.byteLength-r;if(f%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");u=f/this.BYTES_PER_ELEMENT}else f=(u=t(u))*this.BYTES_PER_ELEMENT;if(r+f>n.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:n});Object.defineProperty(this,"byteLength",{value:f});Object.defineProperty(this,"byteOffset",{value:r});Object.defineProperty(this,"length",{value:u})}.apply(this,arguments);throw TypeError();}function l(t,i,r){var u=function(){Object.defineProperty(this,"constructor",{value:u});o.apply(this,arguments),function(t){function r(n){Object.defineProperty(t,n,{get:function(){return t._getter(n)},set:function(i){t._setter(n,i)},enumerable:!0,configurable:!1})}if(!("TYPED_ARRAY_POLYFILL_NO_ARRAY_ACCESSORS"in n)){if(t.length>g)throw RangeError("Array too large for polyfill");for(var i=0;i<t.length;i+=1)r(i)}}(this)},f;return"__proto__"in u?u.__proto__=o:(u.from=o.from,u.of=o.of),u.BYTES_PER_ELEMENT=t,f=function(){},f.prototype=p,u.prototype=new f,Object.defineProperty(u.prototype,"BYTES_PER_ELEMENT",{value:t}),Object.defineProperty(u.prototype,"_pack",{value:i}),Object.defineProperty(u.prototype,"_unpack",{value:r}),u}var p;n.ArrayBuffer=n.ArrayBuffer||y;Object.defineProperty(o,"from",{value:function(n){return new this(n)}});Object.defineProperty(o,"of",{value:function(){return new this(arguments)}});p={};o.prototype=p;Object.defineProperty(o.prototype,"_getter",{value:function(n){if(arguments.length<1)throw SyntaxError("Not enough arguments");if((n=t(n))>=this.length)return i;for(var f=[],r=0,u=this.byteOffset+n*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,u+=1)f.push(this.buffer._bytes[u]);return this._unpack(f)}});Object.defineProperty(o.prototype,"get",{value:o.prototype._getter});Object.defineProperty(o.prototype,"_setter",{value:function(n,i){if(arguments.length<2)throw SyntaxError("Not enough arguments");if(!((n=t(n))>=this.length))for(var f=this._pack(i),r=0,u=this.byteOffset+n*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,u+=1)this.buffer._bytes[u]=f[r]}});Object.defineProperty(o.prototype,"constructor",{value:o});Object.defineProperty(o.prototype,"copyWithin",{value:function(n,u){var b=arguments[2],a=h(this),o=t(a.length),s,v,c,w,k,y,p,l;for(o=f(o,0),v=r(n),s=v<0?f(o+v,0):e(v,o),y=r(u),c=y<0?f(o+y,0):e(y,o),k=(w=b===i?o:r(b))<0?f(o+w,0):e(w,o),l=e(k-c,o-s),c<s&&s<c+l?(p=-1,c=c+l-1,s=s+l-1):p=1;l>0;)a._setter(s,a._getter(c)),c+=p,s+=p,l-=1;return a}});Object.defineProperty(o.prototype,"every",{value:function(n){var f,e,o,r;if(this===i||null===this)throw TypeError();if(f=Object(this),e=t(f.length),!u(n))throw TypeError();for(o=arguments[1],r=0;r<e;r++)if(!n.call(o,f._getter(r),r,f))return!1;return!0}});Object.defineProperty(o.prototype,"fill",{value:function(n){var y=arguments[1],a=arguments[2],c=h(this),u=t(c.length),o,l,v,s;for(u=f(u,0),s=r(y),o=s<0?f(u+s,0):e(s,u),v=(l=a===i?u:r(a))<0?f(u+l,0):e(l,u);o<v;)c._setter(o,n),o+=1;return c}});Object.defineProperty(o.prototype,"filter",{value:function(n){var r,o,e;if(this===i||null===this)throw TypeError();if(r=Object(this),o=t(r.length),!u(n))throw TypeError();for(var s=[],h=arguments[1],f=0;f<o;f++)e=r._getter(f),n.call(h,e,f,r)&&s.push(e);return new this.constructor(s)}});Object.defineProperty(o.prototype,"find",{value:function(n){var f=h(this),c=t(f.length),o,r,e,s;if(!u(n))throw TypeError();for(o=arguments.length>1?arguments[1]:i,r=0;r<c;){if(e=f._getter(r),s=n.call(o,e,r,f),Boolean(s))return e;++r}return i}});Object.defineProperty(o.prototype,"findIndex",{value:function(n){var f=h(this),c=t(f.length),e,r,o,s;if(!u(n))throw TypeError();for(e=arguments.length>1?arguments[1]:i,r=0;r<c;){if(o=f._getter(r),s=n.call(e,o,r,f),Boolean(s))return r;++r}return-1}});Object.defineProperty(o.prototype,"forEach",{value:function(n){var f,e,o,r;if(this===i||null===this)throw TypeError();if(f=Object(this),e=t(f.length),!u(n))throw TypeError();for(o=arguments[1],r=0;r<e;r++)n.call(o,f._getter(r),r,f)}});Object.defineProperty(o.prototype,"indexOf",{value:function(n){var o,u,r,e;if(this===i||null===this)throw TypeError();if((o=Object(this),u=t(o.length),0===u)||(r=0,arguments.length>0&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*s(c(r)))),r>=u))return-1;for(e=r>=0?r:f(u-c(r),0);e<u;e++)if(o._getter(e)===n)return e;return-1}});Object.defineProperty(o.prototype,"join",{value:function(n){if(this===i||null===this)throw TypeError();for(var u=Object(this),f=t(u.length),e=Array(f),r=0;r<f;++r)e[r]=u._getter(r);return e.join(n===i?",":n)}});Object.defineProperty(o.prototype,"lastIndexOf",{value:function(n){var o,u,r,f;if(this===i||null===this)throw TypeError();if(o=Object(this),u=t(o.length),0===u)return-1;for(r=u,arguments.length>1&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*s(c(r)))),f=r>=0?e(r,u-1):u-c(r);f>=0;f--)if(o._getter(f)===n)return f;return-1}});Object.defineProperty(o.prototype,"map",{value:function(n){var f,o,e,s,r;if(this===i||null===this)throw TypeError();if(f=Object(this),o=t(f.length),!u(n))throw TypeError();for(e=[],e.length=o,s=arguments[1],r=0;r<o;r++)e[r]=n.call(s,f._getter(r),r,f);return new this.constructor(e)}});Object.defineProperty(o.prototype,"reduce",{value:function(n){var f,o,e,r;if(this===i||null===this)throw TypeError();if(f=Object(this),o=t(f.length),!u(n))throw TypeError();if(0===o&&1===arguments.length)throw TypeError();for(r=0,e=arguments.length>=2?arguments[1]:f._getter(r++);r<o;)e=n.call(i,e,f._getter(r),r,f),r++;return e}});Object.defineProperty(o.prototype,"reduceRight",{value:function(n){var f,o,e,r;if(this===i||null===this)throw TypeError();if(f=Object(this),o=t(f.length),!u(n))throw TypeError();if(0===o&&1===arguments.length)throw TypeError();for(r=o-1,e=arguments.length>=2?arguments[1]:f._getter(r--);r>=0;)e=n.call(i,e,f._getter(r),r,f),r--;return e}});Object.defineProperty(o.prototype,"reverse",{value:function(){var e;if(this===i||null===this)throw TypeError();for(var n=Object(this),f=t(n.length),o=s(f/2),r=0,u=f-1;r<o;++r,--u)e=n._getter(r),n._setter(r,n._getter(u)),n._setter(u,e);return n}});Object.defineProperty(o.prototype,"set",{value:function(){if(arguments.length<1)throw SyntaxError("Not enough arguments");var i,c,f,o,n,r,u,s,e,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(i=arguments[0],(f=t(arguments[1]))+i.length>this.length)throw RangeError("Offset plus length of array is out of range");if(s=this.byteOffset+f*this.BYTES_PER_ELEMENT,e=i.length*this.BYTES_PER_ELEMENT,i.buffer===this.buffer){for(h=[],n=0,r=i.byteOffset;n<e;n+=1,r+=1)h[n]=i.buffer._bytes[r];for(n=0,u=s;n<e;n+=1,u+=1)this.buffer._bytes[u]=h[n]}else for(n=0,r=i.byteOffset,u=s;n<e;n+=1,r+=1,u+=1)this.buffer._bytes[u]=i.buffer._bytes[r]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw TypeError("Unexpected argument type(s)");if(o=t((c=arguments[0]).length),(f=t(arguments[1]))+o>this.length)throw RangeError("Offset plus length of array is out of range");for(n=0;n<o;n+=1)r=c[n],this._setter(f+n,Number(r))}}});Object.defineProperty(o.prototype,"slice",{value:function(n,u){for(var w,c=h(this),o=t(c.length),l=r(n),s=l<0?f(o+l,0):e(l,o),a=u===i?o:r(u),v=a<0?f(o+a,0):e(a,o),b=v-s,y=new c.constructor(b),p=0;s<v;)w=c._getter(s),y._setter(p,w),++s,++p;return y}});Object.defineProperty(o.prototype,"some",{value:function(n){var f,e,o,r;if(this===i||null===this)throw TypeError();if(f=Object(this),e=t(f.length),!u(n))throw TypeError();for(o=arguments[1],r=0;r<e;r++)if(n.call(o,f._getter(r),r,f))return!0;return!1}});Object.defineProperty(o.prototype,"sort",{value:function(n){if(this===i||null===this)throw TypeError();for(var u=Object(this),f=t(u.length),e=Array(f),r=0;r<f;++r)e[r]=u._getter(r);for(e.sort(function(t,r){return t!=t&&r!=r?0:t!=t?1:r!=r?-1:n!==i?n(t,r):t<r?-1:t>r?1:0}),r=0;r<f;++r)u._setter(r,e[r]);return u}});Object.defineProperty(o.prototype,"subarray",{value:function(n,t){function u(n,t,i){return n<t?t:n>i?i:n}n=r(n);t=r(t);arguments.length<1&&(n=0);arguments.length<2&&(t=this.length);n<0&&(n=this.length+n);t<0&&(t=this.length+t);n=u(n,0,this.length);var i=(t=u(t,0,this.length))-n;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+n*this.BYTES_PER_ELEMENT,i)}});var w=l(1,rt,ut),k=l(1,ft,b),d=l(1,et,b),nt=l(2,ot,st),tt=l(2,ht,ct),it=l(4,lt,at),dt=l(4,vt,yt),gt=l(4,kt,bt),ni=l(8,wt,pt);n.Int8Array=n.Int8Array||w;n.Uint8Array=n.Uint8Array||k;n.Uint8ClampedArray=n.Uint8ClampedArray||d;n.Int16Array=n.Int16Array||nt;n.Uint16Array=n.Uint16Array||tt;n.Int32Array=n.Int32Array||it;n.Uint32Array=n.Uint32Array||dt;n.Float32Array=n.Float32Array||gt;n.Float64Array=n.Float64Array||ni}(),function(){function o(n,t){return u(n.get)?n.get(t):n[t]}function r(n,r,u){if(!(n instanceof ArrayBuffer||"ArrayBuffer"===v(n)))throw TypeError();if((r=t(r))>n.byteLength)throw RangeError("byteOffset out of range");if(r+(u=u===i?n.byteLength-r:t(u))>n.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:n});Object.defineProperty(this,"byteLength",{value:u});Object.defineProperty(this,"byteOffset",{value:r})}function f(n){return function(i,r){if((i=t(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");i+=this.byteOffset;for(var e=new Uint8Array(this.buffer,i,n.BYTES_PER_ELEMENT),u=[],f=0;f<n.BYTES_PER_ELEMENT;f+=1)u.push(o(e,f));return Boolean(r)===Boolean(h)&&u.reverse(),o(new n(new Uint8Array(u).buffer),0)}}function e(n){return function(i,r,u){if((i=t(i))+n.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");for(var s=new n([r]),c=new Uint8Array(s.buffer),e=[],f=0;f<n.BYTES_PER_ELEMENT;f+=1)e.push(o(c,f));Boolean(u)===Boolean(h)&&e.reverse();new Uint8Array(this.buffer,i,n.BYTES_PER_ELEMENT).set(e)}}var s,h=(s=new Uint16Array([4660]),18===o(new Uint8Array(s.buffer),0));Object.defineProperty(r.prototype,"getUint8",{value:f(Uint8Array)});Object.defineProperty(r.prototype,"getInt8",{value:f(Int8Array)});Object.defineProperty(r.prototype,"getUint16",{value:f(Uint16Array)});Object.defineProperty(r.prototype,"getInt16",{value:f(Int16Array)});Object.defineProperty(r.prototype,"getUint32",{value:f(Uint32Array)});Object.defineProperty(r.prototype,"getInt32",{value:f(Int32Array)});Object.defineProperty(r.prototype,"getFloat32",{value:f(Float32Array)});Object.defineProperty(r.prototype,"getFloat64",{value:f(Float64Array)});Object.defineProperty(r.prototype,"setUint8",{value:e(Uint8Array)});Object.defineProperty(r.prototype,"setInt8",{value:e(Int8Array)});Object.defineProperty(r.prototype,"setUint16",{value:e(Uint16Array)});Object.defineProperty(r.prototype,"setInt16",{value:e(Int16Array)});Object.defineProperty(r.prototype,"setUint32",{value:e(Uint32Array)});Object.defineProperty(r.prototype,"setInt32",{value:e(Int32Array)});Object.defineProperty(r.prototype,"setFloat32",{value:e(Float32Array)});Object.defineProperty(r.prototype,"setFloat64",{value:e(Float64Array)});n.DataView=n.DataView||r}()}(self)}.call(window)},147:function(n,t,i){"use strict";i.r(t),function(n,t){i(102);i(51);i(3);window.sparkp.common=function(n,t,i,r,u){return u.sparkp.common.companyMap=function(n,f,e){var w="https://"+(e?"enterprise.":"")+"api-maps.yandex.ru/2.1/",o=null,h=f||[],s=!1,c=t.observable(),a=function(n,t){return e&&(n[t]=e),n},v=function(n){var t,i;if(o.geoObjects.removeAll(),n&&n.length>0)for(t=0;t<n.length;t++)i=n[t],y(i)},y=function(n){o.geoObjects.add(new ymaps.Placemark([parseFloat(n.placeLatitude),parseFloat(n.placeLongitude)],{balloonContentBody:n.placeAddress,balloonContentHeader:n.placeLink,iconCaption:n.placeCaption},{preset:"islands#blueCircleDotIconWithCaption",iconColor:"#0095b6"}))},p=function(t){var u=i.Deferred();return ymaps.ready(function(){var f=ymaps.util.bounds.fromPoints(function(n){return r.map(n,function(n){return[parseFloat(n.placeLatitude),parseFloat(n.placeLongitude)]})}(t)),i=ymaps.util.bounds.getCenterAndZoom(f,[n.width(),n.height()]);o=new ymaps.Map(n[0],{center:i.center,zoom:Math.min(i.zoom,12),autoFitToViewport:"always"},{searchControlProvider:"yandex#search"});u.resolve(o)}),u.promise().then(function(){v(t)})},l={show:function(){if(!s){s=!0;var n=i.Deferred(),t=i.Deferred(),f=n.promise();return u.ymaps?t.resolve():i.getScript(w+"?"+i.param(a({lang:"ru_RU"},"apikey")),function(){t.resolve()}),t.promise().then(function(){var u=[],t=function(n,t){t=t||[];for(var r=[],i=0;i<n.length;i++)isNaN(parseFloat(n[i].placeLongitude))?t.push(n[i]):r.push(n[i]);return r}(h,u),e=!t.length;t.length&&p(t).then(function(t){n.resolve(t)});r.map(u,function(t){(function(n){var t=i.Deferred();if(!n.placeLongitude||!n.placeLatitude||("string"==typeof n.placeLongitude&&(n.placeLongitude=parseFloat(n.placeLongitude)),"string"==typeof n.placeLatitude&&(n.placeLatitude=parseFloat(n.placeLatitude)),isNaN(n.placeLongitude)))return i.get("https://geocode-maps.yandex.ru/1.x/",a({geocode:n.placeAddress,format:"json",results:1},"apikey")).success(function(i){var r=i.response&&i.response.GeoObjectCollection&&i.response.GeoObjectCollection.featureMember,u,f;r||t.reject(n);u=r.length&&r[0]&&r[0].GeoObject&&r[0].GeoObject.Point&&r[0].GeoObject.Point.pos;u?(f=u.split(" "),n.placeLatitude=parseFloat(f[1]),n.placeLongitude=parseFloat(f[0]),t.resolve(n),c.next(n)):t.reject(n)}).fail(function(){t.reject(n)}),t.promise();t.resolve(n)})(t).then(function(t){e&&(e=!1,p([t]).then(function(t){n.resolve(t)}));f.then(function(){y(t)})})})}),f}},hide:function(){s&&(s=!1,o.destroy(),o=null,h=f||[],c=t.observable())},decoded:c};return Object.defineProperty(l,"placemarks",{set:function(n){o?v(n):h=n}}),Object.defineProperty(l,"shown",{get:function(){return s}}),l},n}(window.sparkp.common||{},window.sparkp.common.rx,n,t,window)}.call(this,i(0),i(2))},148:function(n,t,i){"use strict";i.r(t),function(n){var t,r;i(11);i(12);window.sparkp.common=(t=window.sparkp.common||{},r=window.sparkp.common.rx,t.optionsFilter=function(t,i){var u=r.observable(),f="",e;return u.subscribe(function(n){f=(n||"").toLowerCase()}),e=function(){var r=t.val();r?(f&&-1==r.toLowerCase().indexOf(f)&&i.show(),i.filter(function(t,i){return n(i).data().filterValue.toLowerCase().indexOf(r.toLowerCase())<0}).hide(),u.next(r)):i.show()},{show:function(){t.on("keyup",e)},value:u,set:function(n){t.val(n||"");e()}}},t)}.call(this,i(0))},149:function(n,t,i){(function(){var n;window.sparkp.common=(n=window.sparkp.common||{},window,n.collapsedTable=function(n,t){t.on("click",function(){n.removeClass("collapsed");t.hide()})},n)}).call(this,i(0),i(2))},150:function(n,t,i){"use strict";i.r(t),function(n){var u,t,o,f,r,s,h,c,e,l;i(16);i(85);i(51);i(12);f=function(n){var t=["company/","foreign/","physicalperson/","foreignperson/","arbitration-case/","general-case/","patent/","purchase/","inspection/","domain/","phone/","email/"];for(var i in t)if(-1!==n.indexOf(t[i]))return!0;return!1};r=function(n){var t="/"+window.SystemFolder+n;window.location.href=t};s=function(i){var e;(e=window.location.hash&&-1==window.location.hash.indexOf("#_")?window.location.hash:"")&&(window.location.pathname.indexOf("/system")>=0||(f(e)?r("home/card/"+e):r(e)));o.wrap("<a href='/"+window.SystemFolder+"' rel='nofollow' class='btn btn-default btn-sm login-form__logged-btn'><\/a>");t.show();u.hide();n(".js-user-name",t).text(i.Name)};h=function(){var n;window.gaSendEvent("login","submit","ok");n=window.location.hash&&-1==window.location.hash.indexOf("#_")?window.location.hash:"";f(n)?r("home/card/"+n):r(n)};c=function(t){window.gaSendEvent("login","submit","error");var i=t.responseJSON.ResponseStatus.Message;!function(t,i,r){r.hide();var u=window.CultureName;n.get("/system/Content/locales/"+u+"/errors.json",function(u){var f=null;(f=401==t?u.auth[t][i]:403==t?i in u.auth[t]?u.auth[t][i]:u.auth[t].default:u.auth[t])&&(n(".js-error-text-container",r).html(f),r.show())})}(t.status,i,n(".js-login-panel-error"));"InvalidCaptcha"!=i&&"NeedCaptcha"!=i||(e(),"NeedCaptcha"==i&&(document.querySelector("[name=username]").value="",document.querySelector("[name=password]").value=""))};e=function(){n.get("/sapi/captcha?format=json",{}).done(function(t){n(".js-captcha").show();n(".js-captcha-image").attr("src","data:image/jpeg;base64,"+t.Image);n(".js-captcha-text").val(t.Text)}).fail(function(){throw"Get captcha error";})};l=function(){var r,i;t.hide();u.show();r=n(".js-login-form");n(".js-captcha-image").on("click",e);i=!1;r.on("submit",function(){var r;if(i)return!1;window.checkER();i=!0;window.gaSendEvent("login","submit");var t=n(this),f=n.trim(t.find("[name=username]").val()),e=t.find("[name=password]").val(),o=n.trim(t.find(".js-captcha-user-text").val()),s=t.find(".js-captcha-text").val(),u=t.find(".js-login-loader");return u.removeClass("hide"),r=function(){n.ajax("/"+window.SystemFolder+"sapi/auth/credentials?format=json&s_up="+window.sslUpgradeAvailability,{cache:!1,type:"POST",data:{UserName:f,Password:e,RememberMe:!0,Captcha:s,UserCaptcha:o},success:h,error:function(n){u.addClass("hide");c(n)},complete:function(){i=!1}})},window.sslUpgradeAvailabilityPromise?window.sslUpgradeAvailabilityPromise.then(r):r(),!1})};n(function(){var i,r;i="testcookie";r=n(".js-cookie-warning").hide();document.cookie=i;document.cookie&&-1!=!document.cookie.indexOf(i)?document.cookie="":r.show();window.sslUpgradeAvailabilityPromise=function(){var t=n.Deferred(),i;setTimeout(function(){t.resolve()},300);try{"https:"===(window.location.protocol||document.location.protocol||window.location.href.split(":")[0]+":")&&t.resolve("ssl");i=window.location.hostname+(window.location.port?":"+window.location.port:"");n.ajax({url:"https://"+i+"/home/upgrade",dataType:"jsonp",jsonp:!1,jsonpCallback:"sslAvalabilityUpgradeCallback",success:function(){t.resolve("available")},error:function(){t.resolve("unavailable")}})}catch(n){}return t.promise()}().then(function(n){return window.sslUpgradeAvailability=n,n});"checkER"in window||(window.checkER=function(){return!1});"blockER"in window||(window.blockER=function(){return!1});u=n(".js-login-form-container");t=n(".js-logged-in");o=n(".js-login-continue-button");window.Modernizr.boxshadow?n.get({url:"/sapi/profile/usershortinfo?format=json&mode=auth",cache:!1}).done(s).fail(l):(n(".js-old-browser").show(),u.hide(),t.hide())})}.call(this,i(0))},152:function(n,t,i){(function(n){var t,i;t=window.sparkp.common.rx;i=function(n){return{layoutView:function(i){var r=i(n(".js-burger"),n(".js-burger-content"),"active").show(),u=i(n(".js-burger"),n(".js-burger"),"active").show();t.topic("demoPopup").subscribe(function(){r.getValue()&&(r.set(!1),u.set(!1))})}}}(n),function(n,t,i){n(function(){t(i)})}(n,i.layoutView,window.sparkp.common.classToggler)}).call(this,i(0))},175:function(n,t,i){"use strict";i.r(t),function(n){i(12);i(18);n(function(){var t,i,r,u;if(!n.cookie(window.CookieOutdated)){t=n(".js-old-browser-block");t.on("click",".js-old-browser-button-close",function(){t.addClass("hide");n.cookie(window.CookieOutdated,"1",{path:"/"})});i={cookieEnabled:function(){var t,i;return"cookieEnabled"in navigator&&!1===navigator.cookieEnabled?!1:(t=+new Date+"_test",n.cookie(t,"test"),i="test"===n.cookie(t),i&&n.removeCookie(t),i)}};r=[];for(u in i)i.hasOwnProperty(u)&&(i[u]()||r.push(u));r.length&&t.removeClass("hide");r.indexOf("cookieEnabled")<0&&n(".js-old-browser-button-block").removeClass("hide")}})}.call(this,i(0))},176:function(n,t,i){(function(n){i(18);n(function(){var t=n(".js-gdpr-block");t.on("click",".js-gdpr-close-btn",function(){n.cookie("CookieGDPR",!0,{expires:9999999999});t.addClass("hide")});n.cookie("CookieGDPR")||t.removeClass("hide")})}).call(this,i(0))},177:function(n,t,i){"use strict";i.r(t),function(n){i(20);var t=i(9),r=i(99);i(22);i(91);i(113);t.default.setNiceScroll();n(".js-common-select").select2({minimumResultsForSearch:1/0});n(".js-select").select2(),function(){function r(){i>=n(window).scrollTop()?t.addClass("fixed"):t.removeClass("fixed")}var t=n(".js-pane"),i=null;t.length&&(i=t.offset().top-n(window).height()+t.height(),r(),window.onscroll=r)}();n.validator.addMethod("mustbetrue",function(n,t){return t.checked});n.validator.unobtrusive.adapters.addBool("mustbetrue");n.validator.addMethod("validatename",function(n){return!(n.length<2)&&("ru"==window.CultureName?n.match(/^\s*[А-ЯЁа-яё]+[А-ЯЁа-яё\s-]*\s*$/):n.match(/^\s*[A-Za-z]+[A-Za-z\s-]*\s*$/))});n.validator.unobtrusive.adapters.addBool("validatename");n.validator.addMethod("validatefathername",function(n){return!n.length||("ru"==window.CultureName?n.match(/^\s*[А-ЯЁа-яё]+[А-ЯЁа-яё\s-]*\s*$/):n.match(/^\s*[A-Za-z]+[A-Za-z\s-]*\s*$/))});n.validator.unobtrusive.adapters.addBool("validatefathername");n(function(){window.SparkPopupView=new r.default})}.call(this,i(0))},178:function(n,t,i){"use strict";i.r(t),function(n){var t=i(33),r=i(71),u=new(i.n(r).a)({mask:"+7 (999) 999-99-99",insertMode:!1}),f=window.CultureName;n(function(){window.initializePhoneRemoval=function(i){var l;n.getScript("https://www.google.com/recaptcha/api.js?hl="+f);var e=i,a=/^(\+7\s)(\()?\d{3}(\))?(-|\s)?\d{3}\-\d{2}\-\d{2}$/i,s=n("#PersonalNumberRemovalForm");if(s){var o=n("#Phone"),r=n("#PhoneSubmit"),v=n(".js-captcha-error",s),h=!1,c=function(){r.removeAttr("disabled");r.removeClass("disabled")};u.mask(o);o.on("keyup",function(){a.test(o.val())&&h&&!e&&c()});s.on("submit",function(){r.attr("disabled","disabled");r.addClass("disabled")});l=function(){var n=o.val();return a.test(n)};e&&(document.getElementById("PhoneSubmit").innerHTML="Получить код через <span class='timer timer_seconds hide' data-seconds-left="+window.smsResendTimeout+"><\/span> секунд",Object(t.a)(n(".timer"),window.smsResendTimeout,function(){r.html("Получить код");h&&l()&&c();e=!1},!1));window.personalNumberRemovalCaptchaFilled=function(){v.hide();h=!0;l()&&!e&&c()}}};window.initializePhoneRemoval()})}.call(this,i(0))},179:function(n,t,i){"use strict";i.r(t),function(n,t){i(3);window.sparkp.statistics=function(n,t,i){return i.shared||(i.shared={}),i.shared.analysis||(i.shared.analysis={}),i.shared.analysis.exportButton=function(i,r,u,f,e,o){return{show:function(){e.on("click",function(){var e="function"==typeof f?f():f,s,h;e&&(e=e.length&&t.isArray(e[0])?t.map(e,function(n){return n?n.join(", "):n}):e.join(", "));s=t.extend({okato:r,title:e},("function"==typeof u?u():u.last())||{});o&&(s=o(s));h="/EconomicAnalysis/"+i+"?"+n.param(s,!0)+"&export=1";window.location=h})}}},i}(n,t,window.sparkp.statistics||{})}.call(this,i(0),i(2))},18:function(n,t,i){var r,u,f;i(0);i(0),function(){u=[i(0)];void 0===(f="function"==typeof(r=function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return i(t.json?JSON.stringify(n):String(n))}function r(i,r){var f=t.raw?i:function(n){0===n.indexOf('"')&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(n){}}(i);return n.isFunction(r)?r(f):f}var u=/\+/g,t=n.cookie=function(u,e,o){var v,h;if(void 0!==e&&!n.isFunction(e))return"number"==typeof(o=n.extend({},t.defaults,o)).expires&&(v=o.expires,h=o.expires=new Date,h.setTime(+h+864e5*v)),document.cookie=[i(u),"=",f(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");for(var c,l=u?void 0:{},y=document.cookie?document.cookie.split("; "):[],a=0,b=y.length;a<b;a++){var p=y[a].split("="),w=(c=p.shift(),t.raw?c:decodeURIComponent(c)),s=p.join("=");if(u&&u===w){l=r(s,e);break}u||void 0===(s=r(s))||(l[w]=s)}return l};t.defaults={};n.removeCookie=function(t,i){return void 0!==n.cookie(t)&&(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}})?r.apply(t,u):r)||(n.exports=f)}.call(window)},180:function(n,t,i){"use strict";i.r(t),function(n,t){i(16);i(30);i(54);i(3);window.sparkp.statistics=function(n,t,i,r,u){return i.shared||(i.shared={}),i.shared.analysis||(i.shared.analysis={}),i.shared.analysis.periodsCombo=function(n,i,f,e){var h=r.observable(),o=f.length&&u(f),s=u(i),c;return e||(e=function(n){return n.substr(6,4)}),c=function(n){return{id:n.Code,text:n.Name}},{value:h,getCurrent:function(){return{code:o&&o.getCurrent()||s.getCurrent(),year:s.getCurrent()&&e(s.getCurrent()),month:o&&o.getText()}},update:function(i){var u=this.getCurrent(),r,f,h;if(n=i,r=t.map(t.values(n),function(n){return n}).reverse(),s.update(t.map(r,c)),f=n[u.year],o){var l=t.pluck(r,"Children"),a=t.flatten(l),e=t.find(a,function(n){return n.Code==u.code});e||(e=(f=r[0]).Children[0]);o.update(t.map(f.Children,c));o.set(e.Code,!0);s.set(f.Code,!0)}else h=void 0===n[u.year]?r[0]:n[u.year],s.set(h.Code,!0)},show:function(){s.show();o&&o.show();s.value.subscribe(function(i){var l=o&&o.getCurrent(),f=o&&o.getText(),u=e(i),c=s.getText(),a=t.map(n[u].Children||[],function(n){return{id:n.Code,text:n.Name}}),r;l?(r=t.find(n[u].Children,function(n){return n.Name===f}),r||(r=t.find(n[u].Children,function(t){return t.Id==n[u].Id})),o.update(a),o.set(r.Code,!0),h.next({id:r.Id,code:r.Code,year:c,month:f})):h.next({id:n[u].Id,code:i,year:c,month:o&&o.getText()})});o&&o.value.subscribe(function(i){var r=s.getCurrent()&&e(s.getCurrent()),u=r&&t.find(n[r].Children,function(n){return n.Code===i});h.next({id:u&&u.Id,code:i,year:r,month:o.getText()})})}}},i}(0,t,window.sparkp.statistics||{},window.sparkp.common.rx,window.sparkp.common.combo)}.call(this,i(0),i(2))},185:function(n,t,i){"use strict";i.r(t),function(n){var t=i(9);window.sparkp.statistics=function(n,t,i,r){return i.shared||(i.shared={}),i.shared.analysis||(i.shared.analysis={}),i.shared.analysis.table=function(t){return{show:function(){},update:function(i){var u=n(".js-nicescroll-container",t).getNiceScroll();u&&u.remove();t.html(i);r.setNiceScroll("",t)}}},i}(n,0,window.sparkp.statistics||{},t.default)}.call(this,i(0),i(2))},23:function(n,t,i){var r,u,f;i(0);i(0),function(){u=[i(0)];void 0===(f="function"==typeof(r=function(n){var i,t=navigator.userAgent,u=/iphone/i.test(t),f=/chrome/i.test(t),r=/android/i.test(t);n.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"};n.fn.extend({caret:function(n,t){var i;if(0!==this.length&&!this.is(":hidden")&&this.get(0)===document.activeElement)return"number"==typeof n?(t="number"==typeof t?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&((i=this.createTextRange()).collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,e){var l,o,c,h,v,s,a,y;return!t&&this.length>0?(y=n(this[0]).data(n.mask.dataName),y?y():void 0):(e=n.extend({autoclear:n.mask.autoclear,placeholder:n.mask.placeholder,completed:null},e),l=n.mask.definitions,o=[],c=s=t.length,h=null,t=String(t),n.each(t.split(""),function(n,t){"?"==t?(s--,c=n):l[t]?(o.push(new RegExp(l[t])),null===h&&(h=o.length-1),n<c&&(v=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function tt(){if(e.completed){for(var n=h;n<=v;n++)if(o[n]&&p[n]===w(n))return;e.completed.call(y)}}function w(n){return n<e.placeholder.length?e.placeholder.charAt(n):e.placeholder.charAt(0)}function b(n){for(;++n<s&&!o[n];);return n}function it(n,t){var r,i;if(!(n<0)){for(r=n,i=b(t);r<s;r++)if(o[r]){if(!(i<s&&o[r].test(p[i])))break;p[r]=p[i];p[i]=w(i);i=b(i)}d();y.caret(Math.max(h,n))}}function rt(){k();y.val()!=nt&&y.change()}function g(n,t){for(var i=n;i<t&&i<s;i++)o[i]&&(p[i]=w(i))}function d(){y.val(p.join(""))}function k(n){for(var f,r=y.val(),u=-1,t=0,i=0;t<s;t++)if(o[t]){for(p[t]=w(t);i++<r.length;)if(f=r.charAt(i-1),o[t].test(f)){p[t]=f;u=t;break}if(i>r.length){g(t+1,s);break}}else p[t]===r.charAt(i)&&i++,t<c&&(u=t);return n?d():u+1<c?e.autoclear||p.join("")===ut?(y.val()&&y.val(""),g(0,s)):d():(d(),y.val(y.val().substring(0,u+1))),c?t:h}var y=n(this),p=n.map(t.split(""),function(n,t){if("?"!=n)return l[n]?w(t):n}),ut=p.join(""),nt=y.val();y.data(n.mask.dataName,function(){return n.map(p,function(n,t){return o[t]&&n!=w(t)?n:null}).join("")});y.one("unmask",function(){y.off(".mask").removeData(n.mask.dataName)}).on("focus.mask",function(){var n;y.prop("readonly")||(clearTimeout(i),nt=y.val(),n=k(),i=setTimeout(function(){y.get(0)===document.activeElement&&(d(),n==t.replace("?","").length?y.caret(0,n):y.caret(n))},10))}).on("blur.mask",rt).on("keydown.mask",function(n){if(!y.prop("readonly")){var f,t,i,r=n.which||n.keyCode;a=y.val();8===r||46===r||u&&127===r?(f=y.caret(),t=f.begin,(i=f.end)-t==0&&(t=46!==r?function(n){for(;--n>=0&&!o[n];);return n}(t):i=b(t-1),i=46===r?b(i):i),g(t,i),it(t,i-1),n.preventDefault()):13===r?rt.call(this,n):27===r&&(y.val(nt),y.caret(0,k()),n.preventDefault())}}).on("keypress.mask",function(t){if(!y.prop("readonly")){var u,e,h,f=t.which||t.keyCode,i=y.caret();t.ctrlKey||t.altKey||t.metaKey||f<32||f&&13!==f&&(i.end-i.begin!=0&&(g(i.begin,i.end),it(i.begin,i.end-1)),(u=b(i.begin-1))<s&&(e=String.fromCharCode(f),o[u].test(e))&&(function(n){for(var r,u,t=n,i=w(n);t<s;t++)if(o[t]){if(r=b(t),u=p[t],p[t]=i,!(r<s&&o[r].test(u)))break;i=u}}(u),p[u]=e,d(),h=b(u),r?setTimeout(function(){n.proxy(n.fn.caret,y,h)()},0):y.caret(h),i.begin<=v&&tt()),t.preventDefault())}}).on("input.mask paste.mask",function(){y.prop("readonly")||setTimeout(function(){var n=k(!0);y.caret(n);tt()},0)});f&&r&&y.off("input.mask").on("input.mask",function(){var i=y.val(),n=y.caret(),t;if(a&&a.length&&a.length>i.length){for(k(!0);n.begin>0&&!o[n.begin-1];)n.begin--;if(0===n.begin)for(;n.begin<h&&!o[n.begin];)n.begin++;y.caret(n.begin,n.begin)}else k(!0),t=i.charAt(n.begin),n.begin<s&&(o[n.begin]?o[n.begin].test(t)&&n.begin++:(n.begin++,o[n.begin].test(t)&&n.begin++)),y.caret(n.begin,n.begin);tt()});k()}))}})})?r.apply(t,u):r)||(n.exports=f)}.call(window)},26:function(n,t,i){"use strict";i.r(t),function(n){i.d(t,"checkDemoAvailability",function(){return e});i.d(t,"fillDemoForm",function(){return o});i.d(t,"fetchDefaultFormDataOnScroll",function(){return s});var c=i(42),l=i.n(c),u=(i(3),i(17),i(16),i(62),i(8));i(86);i(23);var r,f=[!0,{}],e=function(t,i){if("demo"!==i)return Promise.resolve(f);if(void 0!==r)return Promise.resolve(r);var u=n(t.currentTarget);return u.prop("disabled",!0),new Promise(function(t){n.ajax({url:"/demo/checkavailability",method:"POST",success:function(n){u.prop("disabled",!1);r=n.available?[!0,n.formDefaults]:[!1,n.contacts];t(r)},error:function(){t(f);u.prop("disabled",!1)}})})},o=function(n){y(n)},a={},s=function(n){if(window.IntersectionObserver){var i=new IntersectionObserver(function(t){if(t&&0!==t.length){var i=t[0];i.isIntersecting&&(a[n]||o(i.target))}}),t=document.querySelector(n);t&&i.observe(t)}},h={suggestions:[]},v=n('<div class="hint-suggestion-dropdown__description">Для уточнения поиска укажите адрес компании или часть адреса, либо ИНН (ОГРН)<\/div>'),y=function(t){var i=n(t).find(".hint-autocomplete"),r="?"+n.param({object_types:window.sparkp.demo.demoAccessHintServiceObjectTypes,count:window.sparkp.demo.demoAccessHintServiceResultsCount});i.autocomplete({serviceUrl:window.sparkp.demo.demoAccessHintServiceEndpoint+r,containerClass:"autocomplete-suggestions hint-suggestion-dropdown",noCache:!0,minChars:2,deferRequestBy:200,maxHeight:350,width:"auto",appendTo:t,forceFixPosition:!0,triggerSelectOnValidInput:!1,showNoSuggestionNotice:!0,noSuggestionNotice:"<span>Компаний с таким названием не найдено<\/span>",beforeRender:function(t){n(t).prepend(v)},onSearchStart:function(n){if(!(n&&n.query||"").replace(/[\s|_|(|)|<|>|-|,|.|:|;|'|"]+/g,"").length)return!1},transformResult:function(n,t){if(!n)return h;var i=JSON.parse(n);return i?{suggestions:i.Values.map(function(n){return{data:n,value:n.Name,originalQuery:t}})}:h},formatResult:function(n,t){return p(n,t).prop("outerHTML")},onSelect:function(t){n(this).attr("data-id",t.data.Id);n(this).attr("title",t.data.Name)}})},p=function(t,i){var s=n('<div class="demo-access-item__name"/>').append(Object(u.a)(t.value,i)),f=n("<span/>").append(Object(u.a)(t.data.Address,i)),r=null,e,o;return t.data.LeaderName?(e=n("<span/>").append("&nbsp;&middot;&nbsp;"),o=n("<span/>").append(Object(u.a)(t.data.LeaderName,i)),r=n('<div class="demo-access-item__details"/>').append(f,e,o)):r=n('<div class="demo-access-item__details"/>').append(f),n('<div class="demo-access-item"/>').append(s,r)};n(function(){n("body").on("click","#TermsLink",function(){var i="#"+(n(this).data("form-id")||"demo-order-form"),t=n(this).closest(i).find("#Terms");t.is(":visible")?t.fadeOut():t.fadeIn()});n("body").on("click",".js-scroll-to",function(t){var i,r=n(t.target);return r.data("scroll-to")?(t.preventDefault(),t.stopPropagation(),i=n("#"+n(t.target).data("scroll-to"))):i=n(n(this).attr("href")),(r.hasClass("js-scroll-demo")?e(t,"demo"):Promise.resolve([!0,{}])).then(function(t){var r=l()(t,2),u=r[0],f=r[1];!0!==u&&window.SparkPopupView?window.SparkPopupView.openPopup("demo-unavailable",f):n("html, body").animate({scrollTop:i.offset().top+"px"},{duration:1e3,easing:"swing"})}),!1});n("body").on("click",".js-collapse",function(t){var i=n(t.target).closest(".js-collapse").data("target"),r="[name='\"".concat(i,"\"']");n(r).slideToggle();n(".js-collapse").toggleClass("collapsed")});n("body").on("click",".js-accordion-toggle",function(t){var i=n(t.target).closest(".js-accordion-toggle");i.siblings(".js-accordion-collapse").slideToggle();i.toggleClass("collapsed")})});window.demoSubmit=function(){n(this).find("#DemoSubmit").prop("disabled",!0);var i,r={company:n(this).find("#Company").val(),subjectId:n(this).find(".hint-autocomplete").data("id"),industry:n(this).find("#Industry").val(),name:n(this).find("#Name").val(),surname:n(this).find("#Surname").val(),fatherName:n(this).find("#FatherName").val(),phone:n(this).find("#Phone").val(),email:n(this).find("#Email").val(),__RequestVerificationToken:n(this).find('[name="__RequestVerificationToken"]').val()},t=this;return n.ajax({url:n(t).find("#DemoSubmit").data("url"),method:"POST",async:!1,data:r,success:function(r){r.error?(i=!1,n(t).find("#DemoAccessError").show(),n(t).find("#DemoAccessError").html(r.error),window.gaSendEvent("demo","submit","error")):(n(t).closest("#demo-order-form").attr("id","demo-order-form-for-update"),i=!0,window.gaSendEvent("demo","submit","ok"),"undefined"!=typeof fbq&&window.fbq("track","CompleteRegistration",{value:25,currency:"USD"}))}}),n(t).find("#DemoSubmit").prop("disabled",!1),i};window.completeForm=function(){n(this).closest("#demo-order-form-for-update").attr("id","demo-order-form");n(".js-phone-code").mask("9999");n(".js-phone-code").focus()};window.codeSubmit=function(){n(this).closest("#demo-order-form").attr("id","demo-order-form-for-update-code")};window.completeCodeForm=function(){n(this).closest("#demo-order-form-for-update-code").attr("id","demo-order-form")};window.askQuestionSubmit=function(){n("#ask-question-submit").attr("disabled","disabled")};window.askSupportSubmit=function(){n("#ask-support-submit").attr("disabled","disabled")};s("#demo-order-form")}.call(this,i(0))},33:function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=null,u=function(n,t,i,u){r||(r=(new Date).getTime());var f=Math.floor(((new Date).getTime()-r)/1e3);f<t?n.data("seconds-left",t-f):u&&(r=(new Date).getTime());u||f<t?(n.startTimer({onComplete:i}),n.removeClass("hide")):i()}},44:function(n,t,i){var r=i(0),u=i(0);(function(){u.fn.prettyCheckboxes=function(n){n=u.extend({checkboxWidth:17,checkboxHeight:17,className:"prettyCheckbox",display:"list"},n);r(this).each(function(){$label=r('label[for="'+r(this).attr("id")+'"]');$label.prepend("<span class='holderWrap'><span class='holder'><\/span><\/span>");r(this).is(":checked")&&$label.addClass("checked");$label.addClass(n.className).addClass(r(this).attr("type")).addClass(n.display);$label.find("span.holderWrap").width(n.checkboxWidth).height(n.checkboxHeight);$label.find("span.holder").width(n.checkboxWidth);r(this).addClass("hiddenCheckbox");$label.bind("click",function(){r("input#"+r(this).attr("for")).triggerHandler("click");r("input#"+r(this).attr("for")).is(":checkbox")?(r(this).toggleClass("checked"),r("input#"+r(this).attr("for")).checked=!0,r(this).find("span.holder").css("top",0)):($toCheck=r("input#"+r(this).attr("for")),r('input[name="'+$toCheck.attr("name")+'"]').each(function(){r('label[for="'+r(this).attr("id")+'"]').removeClass("checked")}),r(this).addClass("checked"),$toCheck.checked=!0)});r("input#"+$label.attr("for")).bind("keypress",function(n){if(32==n.keyCode)return r.browser.msie?r('label[for="'+r(this).attr("id")+'"]').toggleClass("checked"):r(this).trigger("click"),!1})})};checkAllPrettyCheckboxes=function(n,t){r(n).is(":checked")?r(t).find("input[type=checkbox]:not(:checked)").each(function(){r('label[for="'+r(this).attr("id")+'"]').trigger("click");r.browser.msie?r(this).attr("checked","checked"):r(this).trigger("click")}):r(t).find("input[type=checkbox]:checked").each(function(){r('label[for="'+r(this).attr("id")+'"]').trigger("click");r.browser.msie?r(this).attr("checked",""):r(this).trigger("click")})}}).call(window)},73:function(n,t,i){i(0);i(0),function(){String.prototype.repeat||(String.prototype.repeat=function(n){"use strict";var t,i;if(null==this)throw new TypeError("can't convert "+this+" to object");if(t=""+this,(n=+n)!=n&&(n=0),n<0)throw new RangeError("repeat count must be non-negative");if(n==1/0)throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0==t.length||0==n)return"";if(t.length*n>=268435456)throw new RangeError("repeat count must not overflow maximum string size");for(i="";1==(1&n)&&(i+=t),0!=(n>>>=1);)t+=t;return i});String.prototype.includes||(String.prototype.includes=function(n,t){return"number"!=typeof t&&(t=0),!(t+n.length>this.length)&&-1!==this.indexOf(n,t)});window.MutationObserver||(window.MutationObserver=window.WebKitMutationObserver||window.MozMutationObserver)}.call(window)},8:function(n,t,i){"use strict";i.d(t,"a",function(){return u});i.d(t,"b",function(){return r});i(39);i(17);var r=function(n){var t=[/<b>/gim,/<\/b>/gim],i=[/<highlight>/gim,/<\/highlight>/gim];return n.replace(t[0],"").replace(t[1],"").replace(i[0],"").replace(i[1],"")},u=function(n,t){var i=[/<b>/gim,/<\/b>/gim],r=[/<highlight>/gim,/<\/highlight>/gim],u;return i[0].test(n)?n=n.replace(i[0],"<span class='highlight'>").replace(i[1],"<\/span>"):r[0].test(n)?n=n.replace(r[0],"<span class='highlight'>").replace(r[1],"<\/span>"):void 0!==t&&(u=new RegExp("("+t+")","gmi"),n=n.replace(u,'<span class="highlight">$1<\/span>')),n}},83:function(n,t,i){(function(n){!function(){function t(t){n(".height").height("auto");n.each(t,function(t,i){var r=0;n('.height[data-height="'+i+'"]').each(function(){n(this).outerHeight()>r&&(r=n(this).outerHeight())});n('.height[data-height="'+i+'"]').outerHeight(r).addClass("heighted")})}window.ids=[];n(document).ready(function(){n(".height").each(function(){var t=n(this).attr("data-height");n.inArray(t,window.ids)&&(window.ids[window.ids.length]=t)});t(window.ids)});n(window).resize(function(){t(window.ids)});n(document).ready(function(){t(window.ids)});window.gaSendEvent=function(){for(var n=[],t=0;t<arguments.length;t++)n[+t]=arguments[t];void 0!==window.yaCounter39749290&&window.yaCounter39749290.reachGoal(n.join("_"));void 0!==window.ga&&(n.unshift("send","event"),window.ga.apply(this,n))}}()}).call(this,i(0))},9:function(n,t,i){"use strict";i.r(t),function(n){i(45);var r={setNiceScroll:function(t,i){t=t||".js-nicescroll-container";n(function(){n(t,i).niceScroll()})}};t.default=r}.call(this,i(0))},92:function(n,t,i){"use strict";i.r(t),function(n){var t=i(33);i(69)(n);n(function(){var i=window.smsResendTimeout;window.startSmsCodeHandler=function(r){var f=document.getElementById("CodeRefresh"),u;null!==f?(Object(t.a)(n(".timer"),i,function(){f.innerHTML="Выслать повторно";f.removeAttribute("disabled");f.classList.remove("disabled")},r),u=document.getElementById("PhoneCode"),u.value="",u.addEventListener("keydown",function(n){if(13===n.keyCode)return n.preventDefault(),!1}),u.addEventListener("keyup",function(){u.value.length>3&&(document.getElementById("CodeSubmit").click(),window.startSmsCodeHandler(!1))})):window.initializePhoneRemoval(!0)}})}.call(this,i(0))},93:function(n,t,i){(function(n){window.sparkp.statistics=function(n,t,i,r,u){return n.regionsList=function(){u(t(".js-regions-list"),t(".js-expand-regions-list"))},n}(window.sparkp.statistics||{},n,0,window,window.sparkp.common.collapsedTable);n(function(){window.sparkp.statistics.regionsList()})}).call(this,i(0),i(2))},99:function(n,t,i){"use strict";i.r(t),function(n,r,u){var c=i(42),l=i.n(c),a=(i(65),i(169),i(71)),v=i.n(a),e=i(26),o,f,s,h;i(22);i(44);o=new v.a({mask:"+7 (999) 999-99-99",insertMode:!1});f=function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};window.capcha_filled=function(){n("#captcha-error").hide()};s=function(t){function i(n){this.template="#"+n.id;n.id="popup-"+n.id;t.call(this,n);this.options=this.options||n}return f(i,t),i.prototype.initialize=function(){this.events={"click .js-popup-close":"onClose","click .js-popup-container":"onFaderClick"}},i.prototype.render=function(){var t=n(this.template).html(),i=u.template(t)(this.options.templateData);return this.$el.html(i),this.onRender(),this},i.prototype.onClose=function(){return this.closePopup(),!1},i.prototype.onFaderClick=function(t){t.target==n(".js-popup-container")[0]&&this.closePopup()},i.prototype.closePopup=function(){var t=this;this.$(".js-popup-container").fadeOut(300,function(){t.remove();t.trigger("close",t);n("body").removeClass("modal-open")})},i.prototype.onRender=function(){this.$(".js-popup-container").fadeIn(300);o.mask(this.$(".js-phone"));this.$(".js-ch").val("1");this.$(".js-select").select2();this.$('input[type="checkbox"]').prettyCheckboxes({checkboxWidth:20,checkboxHeight:20});n("body").addClass("modal-open");this.$("#AntiAutosubmitter").val(Math.random());n.validator.unobtrusive.parse(this.$el)},i}(r.View);h=function(t,i){function r(i){var r=n("body");this.setElement(r);this.popups=[];t.call(this,i)}return f(r,t),r.prototype.initialize=function(){this.events={"click .js-popup-open":"onOpen"};n("#fader").on("click",u.bind(this.onFaderClick,this));var t=(window.CultureName||"ru").toLowerCase();this.listenForDemoHash(t)},r.prototype.listenForDemoHash=function(n){var t=function(){"#demo"===document.location.hash&&(this.openPopup("ru"!==n?"callback":"demo"),document.location.hash="!")}.bind(this);window.addEventListener("hashchange",t);t()},r.prototype.onFaderClick=function(){u.each(this.popups,function(n){n.closePopup()})},r.prototype.onPopupClose=function(n){this.popups=u.without(this.popups,n);0==this.popups.length&&this.closeFader();window.gaSendEvent("popup",n.id,"close")},r.prototype.onOpen=function(t){var i=this,r=n(t.currentTarget).data("popup");return Object(e.checkDemoAvailability)(t,r).then(function(n){var t=l()(n,2),f=t[0],u=t[1];!0===f?i.openPopup(r,u):i.openPopup("demo-unavailable",u)}),!1},r.prototype.openPopup=function(t,r){var f,o,u;i.topic("demoPopup").next();0==this.popups.length&&this.openFader();f=new s({id:t,templateData:r});this.popups.push(f);o=window.CultureName;this.listenTo(f,"close",this.onPopupClose);n("body").append(f.render().el);n.getScript("https://www.google.com/recaptcha/api.js?hl="+o);window.gaSendEvent("popup",t,"open");u=n("form","#popup-"+t);Object(e.fillDemoForm)(u,r);u.length&&u.submit(function(){var i=n(".g-recaptcha-response",u),t,r;return i.length?(t=i.val(),r=n("#captcha-error",u),""!=t&&null!=t&&0!=t.length||(r.show(),!1)):!0})},r.prototype.openFader=function(){n("#fader").stop().fadeTo(300,.5)},r.prototype.closeFader=function(){n("#fader").fadeOut(300)},r}(r.View,window.sparkp.common.rx);t.default=h}.call(this,i(0),i(53),i(2))}})