f0001b290236224d4f38b452183e7a22f71b9dc9254fd7529e8eeae0629cab2e

Source Code:

!function(e){function t(t){for(var n,o,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)o=i[c],r[o]&&u.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={3:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,o){n=r[e]=[t,o]});t.push(n[2]=i);var a,c=document.getElementsByTagName("head")[0],s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(e){return o.p+""+({0:"grid-10",1:"grid-12",2:"grid-6"}[e]||e)+".en."+{0:"a5831a24e0e6e904ab04",1:"5339e36380f0b381888b",2:"ae35aa1d0f71faecc56e"}[e]+".js"}(e),a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src,a=new Error("Loading chunk "+e+" failed.\n("+o+": "+i+")");a.type=o,a.request=i,n[1](a)}r[e]=void 0}};var u=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,c.appendChild(s)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var c=0;c<i.length;c++)t(i[c]);var s=a;o(o.s=678)}([function(e,t){e.exports=React},function(e,t,n){e.exports=n(305)()},function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(351).origin,a=n(355);function c(e){return!!e&&"yes"}var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=a({preset:{Render:function(){var e=[].slice.call(arguments);return e[1]=s({"data-lego":"react"},e[1]),r.createElement.apply(r,e)},Base:r.Component,classAttribute:"className",PropTypes:o},naming:i});r.Component.bool2string=c,e.exports=u.Bem,e.exports.decl=u.decl,e.exports.declMod=u.declMod,e.exports.bool2string=c},function(e,t){var n={TILE:"tile",WOW:"wow"},r=Object.assign({},n,{ICONS:"icons",LIST:"list"});e.exports={RESOURCE_VIEWS:{NONE:"",ERROR:"error",DIR:"dir",ALBUM:"album",IMAGE:"image",VIDEO:"video",AUDIO:"audio",PREVIEW:"preview",ICON:"icon"},SOCIAL:{MAIL:"mail",VK:"vkontakte",FB:"facebook",OK:"odnoklassniki",MOIMIR:"moimir",GOOGLE:"google",INSTAGRAM:"instagram",QR:"qr"},SERVICES:{DISK:"disk",SEARCH:"search",CALENDAR:"calendar",TELEMOST:"telemost",MAIL:"mail",MONEY:"money",IMAGES:"images",NEWS:"news",MAPS:"maps",MARKET:"market",WEATHER:"pogoda",TV:"tv",MUSIC:"music",AFISHA:"afisha",BROWSER:"browser",METRIKA:"metrika",DIRECT:"direct",NOTES:"notes"},KEYS:{ENTER:13,ESC:27,BACKSPACE:8,DELETE:46,RIGHT:39,LEFT:37,UP:38,DOWN:40,SHIFT:16,SPACE:32},THROTTLE_DELAY:300,DOUBLE_CLICK_DELAY:500,PHOTO_GRID_TYPES:n,LISTING_TYPES:r,PHOTO_GRID_COVER_THRESHOLD:200}},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(340),i=n(347),a=function(){function e(e,t,n){void 0===n&&(n="origin"),this.naming={stringify:t(i[n])},this.entity={block:e},this.entityMods={},this.entityMixes=[]}return e.prototype.e=function(e){return this.entity.elem=e,this},e.prototype.m=function(e){return this.entityMods=r({},this.entityMods,e),this},e.prototype.mix=function(e){return this.entityMixes=this.entityMixes.concat(e&&e.length?e:Array.prototype.slice.call(arguments,0)),this},e.prototype.entities=function(){var t=this,n=Object.keys(this.entityMods).reduce(function(e,n){return t.entityMods[n]&&e.push({block:t.entity.block,elem:t.entity.elem,mod:{name:n,val:t.entityMods[n]}}),e},[this.entity]);return this.entityMixes.reduce(function(t,n){return"string"==typeof n?t.concat(n):n instanceof e?t.concat(n.entities()):t},n)},e.prototype.stringify=function(){var e=this;return this.entities().map(function(t){return"string"==typeof t?t:e.naming.stringify(t)}).join(" ")},e.prototype.toString=function(){return this.stringify()},e.prototype.valueOf=function(){return this.stringify()},e}();t.default=function(e){return function(t){return new a(t,o,e)}}},function(e,t,n){"use strict";var r=n(189),o=n(309);e.exports={setTankerProjectId:r.setTankerProjectId,addTranslation:r.addTranslation,i18n:r.getKey,I18N:o}},function(e,t,n){"use strict";var r=n(8),o={copy:function(e,t){var n;t?(n=document.createElement("span")).appendChild(document.createTextNode(e)):(n=document.createElement("input")).value=e,n.style.position="absolute",n.style.top="-999px",n.style.left="-999px",n.style.opacity="0",document.body.appendChild(n);var r=!1;try{if(t){var o=document.createRange();o.selectNodeContents(n);var i=window.getSelection();i&&i.removeAllRanges(),i&&i.addRange(o)}else n.select();r=document.execCommand("copy")}catch(e){r=!1}return document.body.removeChild(n),r},isSupported:function(){return"undefined"!=typeof window&&Boolean(document.queryCommandSupported("copy"))}},i=n(29),a=n(9),c=n(22),s=n(18),u=n(15),l=n(10),f=n(5),p=n(7),h=n(17),d=n(3),y=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/monitoring.txt")+"/?"+function(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}(e);"function"==typeof navigator.sendBeacon?navigator.sendBeacon(t):(new Image).src=t};n.d(t,"e",function(){return m}),n.d(t,"L",function(){return b}),n.d(t,"J",function(){return v}),n.d(t,"E",function(){return _}),n.d(t,"H",function(){return g}),n.d(t,"M",function(){return O}),n.d(t,"G",function(){return w}),n.d(t,"D",function(){return E}),n.d(t,"y",function(){return k}),n.d(t,"K",function(){return x}),n.d(t,"F",function(){return R}),n.d(t,"I",function(){return j}),n.d(t,"c",function(){return P}),n.d(t,"g",function(){return C}),n.d(t,"B",function(){return T}),n.d(t,"v",function(){return I}),n.d(t,"k",function(){return D}),n.d(t,"w",function(){return A}),n.d(t,"l",function(){return M}),n.d(t,"r",function(){return z}),n.d(t,"j",function(){return L}),n.d(t,"q",function(){return N}),n.d(t,"i",function(){return H}),n.d(t,"h",function(){return U}),n.d(t,"o",function(){return B}),n.d(t,"p",function(){return V}),n.d(t,"C",function(){return W}),n.d(t,"m",function(){return G}),n.d(t,"N",function(){return Y}),n.d(t,"n",function(){return q}),n.d(t,"d",function(){return K}),n.d(t,"t",function(){return X}),n.d(t,"u",function(){return Z}),n.d(t,"x",function(){return $}),n.d(t,"s",function(){return J}),n.d(t,"b",function(){return Q}),n.d(t,"a",function(){return ee}),n.d(t,"z",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"A",function(){return re});var m=function(e,t,n,o){return"string"==typeof n&&(o=n,n=!1),{type:r.CALL_API,method:e,params:t,needAuth:n,origin:o}},b=function(e){return{type:r.UPDATE_USER,user:e}},v=function(e){return{type:r.UPDATE_SETTINGS,settings:e}},_=function(e){return{type:r.UPDATE_CURRENT_RESOURCE_ID,id:e}},g=function(e,t){return{type:r.UPDATE_RESOURCES,payload:{resources:e,replaceChildren:t}}},O=function(e){return{type:r.UPDATE_WOW_GRID,payload:{currentResourceId:e[0].id,resources:e.slice(1),completed:e[0].completed}}},w=function(e,t){return{type:r.UPDATE_ONE_RESOURCE,payload:{resourceId:e,resource:t}}},E=function(){return function(e,t){var n=Object(i.b)(t().url);if(location.href!==n){var r=t(),o=r.currentResourceId,a=r.overlays,c=a.sliderResourceId,s=a.activePane;window.history.pushState({currentResourceId:o,sliderResourceId:c,activePane:s},"",n)}}},S=function(e){return{type:r.ADD_QUERY_PARAMS,params:e}},k=function(e){return function(t){t(function(e){return{type:r.REMOVE_QUERY_PARAMS,params:e}}(e)),t(E())}},x=function(){return function(e,t){var n=t(),o=n.resources,i=n.currentResourceId,a=n.overlays.sliderResourceId,c=n.url,s=a?o[a]:o[i];if(s){var u=c.pathname.match(/^\/[dia]\/[^\/]+/);if(u){var f=s.parent&&o[s.parent],p=f&&Object(l.d)(f)?"/"+s.albumItemId:(s.parent?s.path||s.hash:"").split(":").slice(1).join(":"),h=u[0]+p;e(function(e){return{type:r.UPDATE_PATHNAME,pathname:e}}(h=h.split("/").map(function(e){return encodeURIComponent(e)}).join("/")))}else c.query.hash&&e(S({hash:s.path||s.hash}));e(E())}}},R=function(e){return{type:r.UPDATE_ENVIRONMENT,environment:e}},j=function(e){return{type:r.UPDATE_SERVICES,services:e}},P=function(e,t){return{type:r.ADD_WAITING_AUTH_ACTION,name:e,value:t}},C=function(){return{type:r.CLEAR_WAITING_AUTH_ACTIONS}},T=function(e){return{type:r.SET_SELECTED_RESOURCES,selectedResources:e}},I=function(e){return function(t){t({type:r.OPEN_PANE,pane:e}),t(function(e){return function(t){t(S(e)),t(E())}}({pane:e.type}))}},D=function(){return function(e){e({type:r.CLOSE_PANE}),e(k(["pane"]))}},A=function(e,t){return function(n,o){var i=o().resources;t&&Object(h.a)(i[e])===d.RESOURCE_VIEWS.VIDEO&&n(v({videoAutoPlayId:e})),n(function(e){return{type:r.OPEN_SLIDER,resourceId:e}}(e)),n(x())}},M=function(){return function(e,t){t().settings.videoAutoPlayId&&e(v({videoAutoPlayId:null})),e({type:r.CLOSE_SLIDER}),e(x())}},z=function(e){return{type:r.OPEN_DOWNLOAD_VIRUS_DIALOG,resourceId:e}},L=function(){return{type:r.CLOSE_DOWNLOAD_VIRUS_DIALOG}},N=function(e){return{type:r.OPEN_DOWNLOAD_BIGFOLDER_DIALOG,resourceId:e}},H=function(){return{type:r.CLOSE_DOWNLOAD_BIGFOLDER_DIALOG}},U=function(){return{type:r.CLOSE_APP_DIALOG}},B=function(e){return function(t,n){var r=n(),o=r.services.docviewer,i=r.resources[e].dvSearch;o&&i&&window.open(o+"/"+i,"_blank")}},V=function(e){return function(t,n){var r=n(),o=r.resources,i=r.overlays.sliderResourceId;o[e].virus||(t(B(e)),e===i&&Object(p.i)("open in DV"))}},F=function(e){var t=Object(l.c)(e),n=t.meta.short_url;return Object(u.c)(e)&&Object(l.g)(t)&&(n+=(n.includes("?")?"&":"?")+"w=1"),n},W=function(){return function(e,t){var n,r,o=t(),i=Object(l.c)(o),a=i.name;Object(l.d)(i)?(n=Object(f.i18n)("en","actions","ufo_send_album_mail_subject",{name:a}),r=Object(f.i18n)("en","actions","ufo_send_album_mail_body",{name:a})):Object(l.f)(i)?(n=Object(f.i18n)("en","actions","ufo_send_folder_mail_subject",{name:a}),r=Object(f.i18n)("en","actions","ufo_send_folder_mail_body",{name:a})):(n=Object(f.i18n)("en","actions","ufo_send_file_mail_subject",{name:a}),r=Object(f.i18n)("en","actions","ufo_send_file_mail_body",{name:a})),navigator.share({url:F(o),title:n,text:r})}},G=function(){return function(e,t){var n=t();e(o.copy(F(n),n.ua.isIosSafari)?Object(c.c)({mode:a.c.TEXT,text:Object(f.i18n)("en","entities","ufo_copy_link_success")}):Object(c.c)({mode:a.c.ERROR_TEXT,text:Object(f.i18n)("en","entities","ufo_copy_link_failed")}))}},Y=function(e){var t=e.operation,n=e.resourceId,o=e.state,i=e.params;return{type:r.UPSERT_OPERATION,operation:t,resourceId:n,state:o,params:i}},q=function(e,t){return function(n,r){var o=r(),a=o.url,c=o.services.passport,s=Object(i.b)(a),u=Object(i.b)({host:c.replace(/^https?:\/\//,""),pathname:t||"/auth",query:Object.assign({retpath:s},e||{})});return location.assign(u),Promise.resolve()}},K=function(){return function(e,t){var n=t(),r=n.ua.isMobile,o=n.user,i=o.loading,a=o.auth,c=r?"touch":"web";return i?e(P("auth",{noAuth:!0})):a?void 0:e(q({origin:"disk_public_".concat(c,"_signin")}))}},X=function(e){return function(t,n){var r=n(),o=r.user,i=o.loginMd5,a=o.id,c=r.ua.OSFamily,s=r.operations.save,u=r.environment.iosAppMetrikaParams,l=s&&s[e];if(["Android","iOS"].includes(c)&&l){var f=l.path.split("/");f.pop();var p,h=encodeURIComponent(f.join("/")),d=encodeURIComponent(l.name);p="Android"===c?"https://redirect.appmetrica.yandex.com/serve/96639634120940843?user=".concat(i,"&uid=").concat(a,"&path=").concat(h,"&file=").concat(d):"https://".concat(u.appId,".redirect.appmetrica.yandex.com/open_dir?path=").concat(h,"&file=").concat(d,"&uid=").concat(a,"&appmetrica_tracking_id=").concat(u.trackId),window.open(p,"_blank")}}},Z=function(e){return function(t,n){var r=n(),o=r.services.disk,i=r.operations.save,a=i&&i[e];if(a){var c,s=encodeURIComponent(a.path);if("folder"===a.type){var u=a.path.split("/").slice(0,-1).join("/");c="".concat(u,"?dialog=select&idDialog=").concat(s)}else c="/recent?dialog=select&idDialog=".concat(s);window.open("".concat(o,"/client").concat(c,"&skip-promo=1"),"_blank")}}},$=function(e){return function(t,n){var r=n(),o=r.services.disk,i=r.operations.save,a=i&&i[e];if(a){var c;if("folder"===a.type){var s=a.path.split("/").slice(0,-1).join("/");c="".concat(o,"/client").concat(s)}else c="".concat(o,"/client/recent?idResourceDownload=").concat(encodeURIComponent(a.path));location.assign(c)}}},J=function(e){return function(t,n){var o=n().ua.OSFamily;t("Android"===o||"iOS"===o?function(e){return{type:r.OPEN_APP_DIALOG,resourceId:e}}(e):Z(e))}},Q=function(e){return{type:r.ADD_NOTIFICATION,notification:e}},ee=function(e){return{type:r.CHANGE_NOTIFICATIONS_STATE,state:e}},te=function(e){return{type:r.SET_ACTION_BARS_VISIBILITY,state:e}},ne=function(e){return function(t,n){var o=n();Object(u.b)(o)?t(function(e){return{type:r.SET_WOW_LISTING_TYPE,wowListingType:e}}(e)):t(function(e){return{type:r.SET_LISTING_TYPE,listingType:e}}(e));var i=Object(l.d)(Object(l.c)(o));Object(p.b)(i,"change view",e),Object(u.c)(o)&&t(Object(s.i)({key:Object(u.b)(o)?"typeListingWowPublic":"typeListingPublic",value:e},!0))}},re=function(e,t){return function(n,r){var o=Object(l.c)(r());n(w(o.id,{errorCode:e})),y({event:"errorPage",reason:e,error:t},"/public/monitoring.txt")}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,i=function(e){var t=!1;if("undefined"==typeof window){var n=function(){};return{countObj:n,count:n}}var o=null,i=[function(){t=function(e){var t=location.search.match(/[&?]debug=([^&]+)/);if(t){var n=t[1];return"all"===n||n.split(",").includes(e)}return!1}("metrika"),o=new window.Ya.Metrika(e)}],a=function e(t){o?o.params(t):i.push(function(){return e(t)})};return window.Ya&&window.Ya.Metrika?i.forEach(function(e){return e()}):window.yandex_metrika_callbacks=window.yandex_metrika_callbacks?window.yandex_metrika_callbacks.concat(i):i,{countObj:a,count:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=n.length,c=n[i-1],s=i-2;s>=0;s--)c=r({},n[s],c);a(c),t&&console.log("%c "+n.join(" -> "),"color: #4233ff; font-weight: bold")}}},a=n(10);n.d(t,"n",function(){return c}),n.d(t,"f",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"g",function(){return d}),n.d(t,"b",function(){return y}),n.d(t,"m",function(){return m}),n.d(t,"a",function(){return b}),n.d(t,"i",function(){return v}),n.d(t,"j",function(){return _}),n.d(t,"h",function(){return g}),n.d(t,"e",function(){return O}),n.d(t,"k",function(){return E}),n.d(t,"l",function(){return S});var c=function(e){o=i(Object.assign({id:15011071,clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,ut:"noindex",tns:{account:"yandex_ru",tmsec:"yandex_disk"}},e))},s="window public",u="window viewer",l="window goto Disk",f=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=o).count.apply(e,[s].concat(n))},p=function(e){f("header",e)},h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f.apply(void 0,["footer"].concat(t))},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f.apply(void 0,["menu"].concat(t))},y=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];f.apply(void 0,[e?"album":"folder"].concat(n))},m=function(e){f("video player",e)},b=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f.apply(void 0,["big folder"].concat(t))},v=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=o).count.apply(e,[u].concat(n))},_=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v.apply(void 0,["menu"].concat(t))},g=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=o).count.apply(e,[l].concat(n))},O=function(e){o.count("window info",e)},w=function(e){return e&&"0"!==e?"1":"0"},E=function(e,t){var n=e.user,r=n.id,i=n.hasDisk,c=n.paid,s=n.hosted,u=n.b2b,l=(e.ua,e.resources),f=e.rootResourceId,p=e.environment,h=p.antiFileSharing,d=p.awaps,y=p.noAdv,m=p.experiments,b=p.version,v=l[f],_=v.errorCode,g=v.blocked,O=v.meta.mediatype;if(!_||404===_){var E,S,k;E=r&&"0"!==r?i&&"0"!==i?"auth with Disk":"auth no Disk":t?"auth check aborted":"noauth",S=g?"blocked":404===_?"notfound":Object(a.f)(v)?h?"antiFO folder":"folder":Object(a.d)(v)?"album":h?{"antiFO file":O}:{file:O};var x=Boolean(_||g);k=y?"disable":d&&"banner"===d.type&&!x?"fullpromo":"direct";var R={stat:{stat:{b2b:w(u),has_disk:w(i),paid:w(c),pdd:w(s),uid:r},auth:E,"page type":S,ad:k,version:b}};0,m&&m.flags&&Object.keys(m.flags).length&&(R.experiments=m.flags),o.countObj(R)}},S=function(e,t){o.count("time-info",e*t/1e3)}},function(e,t,n){"use strict";n.r(t),n.d(t,"CALL_API",function(){return r}),n.d(t,"UPDATE_UA",function(){return o}),n.d(t,"SET_URL",function(){return i}),n.d(t,"UPDATE_PATHNAME",function(){return a}),n.d(t,"ADD_QUERY_PARAMS",function(){return c}),n.d(t,"REMOVE_QUERY_PARAMS",function(){return s}),n.d(t,"UPDATE_ENVIRONMENT",function(){return u}),n.d(t,"UPDATE_SERVICES",function(){return l}),n.d(t,"UPDATE_USER",function(){return f}),n.d(t,"UPDATE_USERS",function(){return p}),n.d(t,"UPDATE_AUTH_ORIGINS",function(){return h}),n.d(t,"OPEN_PANE",function(){return d}),n.d(t,"CLOSE_PANE",function(){return y}),n.d(t,"OPEN_SLIDER",function(){return m}),n.d(t,"CLOSE_SLIDER",function(){return b}),n.d(t,"OPEN_DOWNLOAD_VIRUS_DIALOG",function(){return v}),n.d(t,"CLOSE_DOWNLOAD_VIRUS_DIALOG",function(){return _}),n.d(t,"OPEN_DOWNLOAD_BIGFOLDER_DIALOG",function(){return g}),n.d(t,"CLOSE_DOWNLOAD_BIGFOLDER_DIALOG",function(){return O}),n.d(t,"OPEN_APP_DIALOG",function(){return w}),n.d(t,"CLOSE_APP_DIALOG",function(){return E}),n.d(t,"ADD_WAITING_AUTH_ACTION",function(){return S}),n.d(t,"CLEAR_WAITING_AUTH_ACTIONS",function(){return k}),n.d(t,"UPSERT_OPERATION",function(){return x}),n.d(t,"CHANGE_NOTIFICATIONS_STATE",function(){return R}),n.d(t,"ADD_NOTIFICATION",function(){return j}),n.d(t,"UPDATE_ROOT_RESOURCE_ID",function(){return P}),n.d(t,"UPDATE_CURRENT_RESOURCE_ID",function(){return C}),n.d(t,"UPDATE_RESOURCES",function(){return T}),n.d(t,"UPDATE_ONE_RESOURCE",function(){return I}),n.d(t,"SET_SELECTED_RESOURCES",function(){return D}),n.d(t,"FETCH_RESOURCES_LIST_START",function(){return A}),n.d(t,"FETCH_RESOURCES_LIST_SUCCESS",function(){return M}),n.d(t,"FETCH_RESOURCES_LIST_ERROR",function(){return z}),n.d(t,"UPDATE_WOW_GRID",function(){return L}),n.d(t,"SET_ACTION_BARS_VISIBILITY",function(){return N}),n.d(t,"SET_LISTING_TYPE",function(){return H}),n.d(t,"SET_WOW_LISTING_TYPE",function(){return U}),n.d(t,"UPDATE_SETTINGS",function(){return B});var r="CALL_API",o="UPDATE_UA",i="SET_URL",a="UPDATE_PATHNAME",c="ADD_QUERY_PARAMS",s="REMOVE_QUERY_PARAMS",u="UPDATE_ENVIRONMENT",l="UPDATE_SERVICES",f="UPDATE_USER",p="UPDATE_USERS",h="UPDATE_AUTH_ORIGINS",d="OPEN_PANE",y="CLOSE_PANE",m="OPEN_SLIDER",b="CLOSE_SLIDER",v="OPEN_DOWNLOAD_VIRUS_DIALOG",_="CLOSE_DOWNLOAD_VIRUS_DIALOG",g="OPEN_DOWNLOAD_BIGFOLDER_DIALOG",O="CLOSE_DOWNLOAD_BIGFOLDER_DIALOG",w="OPEN_APP_DIALOG",E="CLOSE_APP_DIALOG",S="ADD_WAITING_AUTH_ACTION",k="CLEAR_WAITING_AUTH_ACTIONS",x="UPSERT_OPERATION",R="CHANGE_NOTIFICATIONS_STATE",j="ADD_NOTIFICATION",P="UPDATE_ROOT_RESOURCE_ID",C="UPDATE_CURRENT_RESOURCE_ID",T="UPDATE_RESOURCES",I="UPDATE_ONE_RESOURCE",D="SET_SELECTED_RESOURCES",A="FETCH_RESOURCES_LIST_START",M="FETCH_RESOURCES_LIST_SUCCESS",z="FETCH_RESOURCES_LIST_ERROR",L="UPDATE_WOW_GRID",N="SET_ACTION_BARS_VISIBILITY",H="SET_LISTING_TYPE",U="SET_WOW_LISTING_TYPE",B="UPDATE_SETTINGS"},function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return c});var r={WAITING_AUTH:"WAITING_AUTH",IN_PROGRESS:"IN_PROGRESS",DONE:"DONE",FAILED:"FAILED"},o={OPENED:"OPENED",OPENING:"OPENING",CLOSED:"CLOSED",CLOSING:"CLOSING"},i={TEXT:"TEXT",TEXT_BUTTON:"TEXT_BUTTON",ERROR_TEXT:"ERROR_TEXT"},a={SAVE_TO_DISK_SUCCESS:"SAVE_TO_DISK_SUCCESS",SAVE_TO_DISK_ERROR:"SAVE_TO_DISK_ERROR",SAVE_TO_DISK_ERROR_SPACE:"SAVE_TO_DISK_ERROR_SPACE"},c={RESOURCES_ACTION_BAR:"resources-action-bar",SLIDER:"slider"}},function(e,t,n){"use strict";n.d(t,"i",function(){return a}),n.d(t,"e",function(){return c}),n.d(t,"j",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"a",function(){return l}),n.d(t,"h",function(){return f}),n.d(t,"f",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"g",function(){return d}),n.d(t,"b",function(){return y});var r=n(3),o=n(17),i=n(5),a=function(e){return Date.now()-e.timestamp>126e5},c=function(e,t){var n=e.resources,r=e.environment.nda,o=e.ua.BrowserName,i=n[t],a=i.type,c=i.meta,s=c.size,u=c.files_count;return"dir"===a&&(s>=(r||"Firefox"===o?53687091200:5368709120)||u>=(r||"Firefox"===o?1e4:500))},s=function(e){var t=e.environment.antiFileSharing,n=e.ua.isSmartphone;return t&&!n},u=function(e){return e.resources[e.rootResourceId]},l=function(e){return e.resources[e.currentResourceId]},f=function(e){return Object(o.a)(u(e))===r.RESOURCE_VIEWS.ERROR},p=function(e){return Object(o.a)(e)===r.RESOURCE_VIEWS.DIR},h=function(e){return Object(o.a)(e)===r.RESOURCE_VIEWS.ALBUM},d=function(e){return p(e)||h(e)},y=function(e){switch(Object(o.a)(e)){case r.RESOURCE_VIEWS.DIR:return Object(i.i18n)("en","entities","info_about_folder");case r.RESOURCE_VIEWS.ALBUM:return Object(i.i18n)("en","entities","info_about_album");default:return Object(i.i18n)("en","entities","info_about_file")}}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=n(0),i=n.n(o),a=n(1),c=n.n(a),s=c.a.shape({trySubscribe:c.a.func.isRequired,tryUnsubscribe:c.a.func.isRequired,notifyNestedSubs:c.a.func.isRequired,isSubscribed:c.a.func.isRequired}),u=c.a.shape({subscribe:c.a.func.isRequired,dispatch:c.a.func.isRequired,getState:c.a.func.isRequired});i.a.forwardRef;var l=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(a,t);var i=a.prototype;function a(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:u.isRequired,children:c.a.element.isRequired},i.childContextTypes=((t={})[e]=u.isRequired,t[n]=s,t),i}();function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var d=n(252),y=n.n(d),m=n(124),b=n.n(m),v=n(167),_=null,g={notify:function(){}};var O=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=g}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=_,e=_},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==_&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=g)},e}(),w=void 0!==i.a.forwardRef,E=0,S={};function k(){}function x(e,t){var n,i;void 0===t&&(t={});var a=t,c=a.getDisplayName,l=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,d=a.methodName,m=void 0===d?"connectAdvanced":d,_=a.renderCountProp,g=void 0===_?void 0:_,x=a.shouldHandleStateChanges,R=void 0===x||x,j=a.storeKey,P=void 0===j?"store":j,C=a.withRef,T=void 0!==C&&C,I=h(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),D=P+"Subscription",A=E++,M=((n={})[P]=u,n[D]=s,n),z=((i={})[D]=s,i);return function(t){b()(Object(v.isValidElementType)(t),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=l(n),a=p({},I,{getDisplayName:l,methodName:m,renderCountProp:g,shouldHandleStateChanges:R,storeKey:P,withRef:T,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){var r;return(r=n.call(this,e,t)||this).version=A,r.state={},r.renderCount=0,r.store=e[P]||t[P],r.propsMode=Boolean(e[P]),r.setWrappedInstance=r.setWrappedInstance.bind(f(f(r))),b()(r.store,'Could not find "'+P+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+P+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(c,n);var s=c.prototype;return s.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[D]=t||this.context[D],e},s.componentDidMount=function(){R&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.componentWillReceiveProps=function(e){this.selector.run(e)},s.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=k,this.store=null,this.selector.run=k,this.selector.shouldComponentUpdate=!1},s.getWrappedInstance=function(){return b()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},s.setWrappedInstance=function(e){this.wrappedInstance=e},s.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},s.initSubscription=function(){if(R){var e=(this.propsMode?this.props:this.context)[D];this.subscription=new O(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(S)):this.notifyNestedSubs()},s.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},s.addExtraProps=function(e){if(!(T||g||this.propsMode&&this.subscription))return e;var t=p({},e);return T&&(t.ref=this.setWrappedInstance),g&&(t[g]=this.renderCount++),this.propsMode&&this.subscription&&(t[D]=this.subscription),t},s.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(o.createElement)(t,this.addExtraProps(e.props))},c}(o.Component);return w&&(c.prototype.UNSAFE_componentWillReceiveProps=c.prototype.componentWillReceiveProps,delete c.prototype.componentWillReceiveProps),c.WrappedComponent=t,c.displayName=i,c.childContextTypes=z,c.contextTypes=M,c.propTypes=M,y()(c,t)}}var R=Object.prototype.hasOwnProperty;function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!R.call(t,n[o])||!j(e[n[o]],t[n[o]]))return!1;return!0}var C=n(50);function T(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function I(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function D(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=I(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=I(o),o=r(t,n)),o},r}}var A=[function(e){return"function"==typeof e?D(e):void 0},function(e){return e?void 0:T(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?T(function(t){return Object(C.b)(e,t)}):void 0}];var M=[function(e){return"function"==typeof e?D(e):void 0},function(e){return e?void 0:T(function(){return{}})}];function z(e,t,n){return p({},n,e,t)}var L=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,c){var s=e(t,n,c);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return z}}];function N(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function H(e,t,n,r,o){var i,a,c,s,u,l=o.areStatesEqual,f=o.areOwnPropsEqual,p=o.areStatePropsEqual,h=!1;function d(o,h){var d=!f(h,a),y=!l(o,i);return i=o,a=h,d&&y?(c=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(c,s,a)):d?(e.dependsOnOwnProps&&(c=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(c,s,a)):y?function(){var t=e(i,a),r=!p(t,c);return c=t,r&&(u=n(c,s,a)),u}():u}return function(o,l){return h?d(o,l):function(o,l){return c=e(i=o,a=l),s=t(r,a),u=n(c,s,a),h=!0,u}(o,l)}}function U(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=h(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),c=r(e,i),s=o(e,i);return(i.pure?H:N)(a,c,s,e,i)}function B(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function V(e,t){return e===t}var F=function(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?x:n,o=t.mapStateToPropsFactories,i=void 0===o?M:o,a=t.mapDispatchToPropsFactories,c=void 0===a?A:a,s=t.mergePropsFactories,u=void 0===s?L:s,l=t.selectorFactory,f=void 0===l?U:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,s=a.pure,l=void 0===s||s,d=a.areStatesEqual,y=void 0===d?V:d,m=a.areOwnPropsEqual,b=void 0===m?P:m,v=a.areStatePropsEqual,_=void 0===v?P:v,g=a.areMergedPropsEqual,O=void 0===g?P:g,w=h(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),E=B(e,i,"mapStateToProps"),S=B(t,c,"mapDispatchToProps"),k=B(n,u,"mergeProps");return r(f,p({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:k,pure:l,areStatesEqual:y,areOwnPropsEqual:b,areStatePropsEqual:_,areMergedPropsEqual:O},w))}}();n.d(t,"a",function(){return l}),n.d(t,"b",function(){return F})},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=(n(194),n(4)),s=n.n(c);function u(e){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return function(){var t,n=p(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=p(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(){return s()()("ufo-icon")},y={s:12,m:16,l:24,xl:32,xxl:48,xxxl:64},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(n,i["Component"]);var t=f(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(n,[{key:"_getClassName",value:function(){var e=this.props,t=e.size,n=e.mix,r=e.cls,o=d().m({size:t}).mix("icon");if(n){var i=n.filter(Boolean).map(function(e){return s()()(e.block).e(e.elem).m(e.mods)});o=o.mix(i)}var a=this.getClassName;return a&&(o=a(o)),r?o.mix(String(r)):o}},{key:"getContentSVG",value:function(){throw"Should be implemented"}},{key:"_getContent",value:function(){if(this.getContent)return this.getContent();var e=this._getDefaultSize&&y[this._getDefaultSize()]||y.m,t=this.props.iconSize&&y[this.props.iconSize]||e,n=this.getViewBox&&this.getViewBox()||"0 0 ".concat(e," ").concat(e);return a.a.createElement("svg",{className:d().e("icon"),width:t,height:t,onClick:this.props.onClick,viewBox:n},this.getContentSVG())}},{key:"render",value:function(){return a.a.createElement("span",{className:this._getClassName()},this._getContent())}}]),n}();m.propTypes={iconSize:o.a.oneOf(Object.keys(y)),onClick:o.a.func},m.defaultProps={onClick:function(){}},m.displayName="icon",t.a=m},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=(n(166),n(0)),a=n.n(i),c=n(2);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=Object(c.decl)({block:"button2",elem:"control",tag:"input",attrs:function(e){var t=e.type,n=e.id,r=e.name,o=e.value,i=e.disabled,a=e.tabIndex,c=e.attrs;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({autoComplete:"off",disabled:i,"aria-disabled":i&&"true",type:t,id:n,name:r,value:o,tabIndex:a},c)}});n(359);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=l.applyDecls();Object(c.declMod)(function(e){return e.hasControl},{block:"button2",tag:"span",mods:function(){return d({},this.__base.apply(this,arguments),{"has-control":"yes"})},attrs:function(){return d({},this.__base.apply(this,arguments),{type:void 0,name:void 0,value:void 0,id:void 0,tabIndex:void 0,disabled:void 0,"aria-disabled":void 0,autoComplete:void 0})},content:function(e){var t=e.id,n=e.name,r=e.value,o=e.tabIndex,i=e.disabled,c=e.control,s=void 0===c?{}:c,u=s.attrs,l=s.type,h=s.mix,y={};return["checkbox","radio"].indexOf(l)>=0&&(y={"aria-checked":this.state.checked||void 0,defaultChecked:this.state.checked||!1}),[].concat(p(this.__base.apply(this,arguments)),[a.a.createElement(m,f({id:t,name:n,value:r,disabled:i,mix:h,attrs:d({},u,{},y),type:l},{tabIndex:o,key:"control"}))])}}),Object(c.declMod)({type:"check"},{block:"button2",onClick:function(e){this.__base.apply(this,arguments),this.setState({checked:!this.state.checked})}},{propTypes:{checked:o.a.bool,type:o.a.string}}),n(87),Object(c.declMod)({type:"radio"},{block:"button2",onClick:function(e){this.__base.apply(this,arguments),this.setState({checked:!0})}},{propTypes:{type:o.a.string}});function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=Object(c.declMod)({type:"submit"},{block:"button2",attrs:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(n,!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{type:"submit"})}}),g=(n(144),n(145),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(195),n(378),n(379),n(196),n(380),n(381),n(382),n(197),n(198),n(383),n(384),n(385),n(199),n(200),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),_.applyDecls());n(356);function O(e){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t,n){return(E="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function S(e){return function(){var t,n=k(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=k(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(n,g);var t=S(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&w(e.prototype,t),n&&w(e,n)}(n,[{key:"mods",value:function(e){return Object.assign({"centered-icon":Object(c.bool2string)(e.centeredIcon)},E(k(n.prototype),"mods",this).call(this,e))}}]),n}();R.propTypes=Object.assign(g.propTypes,{size:o.a.oneOf(["ns","xs","s","m","l","n","head","ufo-xxl","ufo-xxxl"])});t.a=R},function(e,t,n){"use strict";var r=n(5),o=n(0),i=n.n(o);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e){return function(){var t,n=l(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=l(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(n,o["Component"]);var t=u(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&s(e.prototype,t),n&&s(e,n)}(n,[{key:"render",value:function(){return i.a.createElement(r.I18N,c({lang:"en"},this.props))}}]),n}();t.a=p},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return u});var r=n(10),o=function(e){var t=e.environment.experiments;return"1"===e.url.query.w||t&&t.flags&&t.flags.disk_public_wow_grid_exp&&!t.flags.disk_public_wow_grid_control},i=function(e){var t=Object(r.c)(e);return Object(r.d)(t)||o(e)},a=function(e){var t=Object(r.a)(e);return Object(r.d)(t)||o(e)&&Object(r.f)(t)&&t.containsOnlyImageAndVideo},c=function(e){var t=e.ua,n=t.isSmartphone,o=t.OSFamily;return n&&!Object(r.h)(e)&&!(Object(r.d)(Object(r.c)(e))&&"Android"===o)},s=function(e){return c(e)&&i(e)},u=function(e){return a(e)?e.wowListingType:e.listingType}},function(e,t,n){"use strict";n(170);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(48),s=n(2),u=n(117);n(218);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=c.a.applyDecls(),h=u.a.applyDecls(),d=Object(s.declMod)({pseudo:!0},{block:"link",mods:function(e){var t=e.pseudo,n=this.state.pressed;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{pseudo:Object(s.bool2string)(t),pressed:n})},content:function(e){var t=e.inner,n=this.__base.apply(this,arguments);return t?n:o.a.createElement(h,{key:"inner"},n)},onClick:function(e){e.preventDefault(),this.props.onClick&&this.props.onClick(e)},onKeyDown:function(e){p.is(e.which,"ENTER","SPACE")&&(e.which===p.SPACE&&e.preventDefault(),this.setState({pressed:!0}))},onKeyUp:function(e){p.is(e.which,"ENTER","SPACE")&&this.setState({pressed:!1})}},{propTypes:{inner:a.a.bool}}),y=(n(219),n(220),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(221),n(222),n(502),n(503),d.applyDecls());n(491);function m(e){"@babel/helpers - typeof";return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function _(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,y);var t=_(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&b(e.prototype,t),n&&b(e,n)}(n,[{key:"mods",value:function(e){return Object.assign({"text-color-icon":Object(s.bool2string)(e.textColorIcon)},v(g(n.prototype),"mods",this).call(this,e))}}]),n}();t.a=w},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return c});var r=n(172),o=n(3),i=n(71),a=function(e){if(!e)return o.RESOURCE_VIEWS.NONE;if(e.errorCode||e.blocked)return o.RESOURCE_VIEWS.ERROR;if("album"===e.type)return o.RESOURCE_VIEWS.ALBUM;if("dir"===e.type)return o.RESOURCE_VIEWS.DIR;if(e.virus)return o.RESOURCE_VIEWS.ICON;var t=e.meta;if(t){if("image"===t.mediatype&&t.hasPreview)return o.RESOURCE_VIEWS.IMAGE;if("video"===t.mediatype&&!e.videoStreamsFetchError&&e.isAvialableForVideoPlayer)return o.RESOURCE_VIEWS.VIDEO;if("audio"===t.mediatype&&Object(i.a)(t.mimetype))return o.RESOURCE_VIEWS.AUDIO;if(t.hasPreview)return o.RESOURCE_VIEWS.PREVIEW}return o.RESOURCE_VIEWS.ICON},c=Object(r.createSelectorCreator)(r.defaultMemoize,function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})})},function(e,t,n){"use strict";n.d(t,"e",function(){return m}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return g}),n.d(t,"i",function(){return O}),n.d(t,"h",function(){return w}),n.d(t,"g",function(){return E}),n.d(t,"f",function(){return S});var r=n(6),o=n(107),i=n(9),a=n(7),c=n(22),s=n(5),u=n(23),l=n.n(u),f=n(10),p=n(21),h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e?a.i.apply(void 0,["save status"].concat(n)):a.f.apply(void 0,["save status"].concat(n))},d=function(e,t){window.__ufo_download__||(window.__ufo_download__=function(e){window.location.assign(e)}),t?window.__ufo_download__(e):Object(o.a)(e)},y=function(e,t){var n=e.resources,r=e.rootResourceId,o=e.url,i=n[t],a=n[r],c=o.pathname.match(/^\/[di]\/[^\/]+/);return i&&{url:window.location.protocol+"//"+window.location.host+(c?c[0]:"/public?hash="+a.hash),name:i.name,path:i.path&&i.path.split(":").pop()||""}||{}},m=function(e){return e.path||e.hash},b=function(e){return function(t,n){var o=n(),i=o.resources,a=o.user.auth,c=o.rootResourceId,s=i[e],u=i[c],l=Object(f.d)(u);return t(r.e(l?"album-download-url":"download-url",l?{hash:m(u),itemId:e!==c?s.albumItemId:null}:{hash:m(s)},a)).then(function(e){var t=e.error,n=e.data;return t||!n?Promise.reject():n.url})}},v=function(e){return function(t,n){var o=n(),i=o.user.auth;return t(r.e("download-url-scheme",y(o,e),i))}},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){var o=n(),i=o.user.auth,a={};return e.downloadFolder&&Object.assign(a,{addDownloadUrlScheme:!0},y(o,e.downloadFolder)),t(r.e("get-link-app",a,i)).then(function(e){return e.error||!e.url?Promise.reject():e.url})}},g=function(e){return function(t,n){t(r.N({operation:"download",resourceId:e,state:i.e.IN_PROGRESS}));var o=n(),u=o.ua,l=u.isMobile,h=u.BrowserName,y=o.resources,m=o.environment.nda,v=y[e],_=Object(f.d)(v),g=Object(f.f)(v),O=g&&!m&&"Firefox"!==h;O&&Object(a.a)("click download folder");var w=O&&t(Object(p.c)(e))||Promise.resolve();return t(b(e)).then(function(u){if(O){var p=new Promise(function(e){return setTimeout(function(){return e()},500)});Promise.race([w,p]).then(function(){void 0===n().resources[e].meta.size&&Object(a.a)("folder size is undefined"),Object(f.e)(n(),e)?(Object(a.a)("folder is big"),t(r.q(e))):d(u,l),t(r.N({operation:"download",resourceId:e,state:i.e.DONE}))})}else Object(f.e)(o,e)?(t(r.N({operation:"download",resourceId:e,state:i.e.FAILED})),t(Object(c.c)({mode:i.c.ERROR_TEXT,text:Object(s.i18n)("en","view-aside-public","ufo_cant_download_folder_too_large")}))):(d(u,l),t(r.N({operation:"download",resourceId:e,state:i.e.DONE})))}).catch(function(){t(r.N({operation:"download",resourceId:e,state:i.e.FAILED})),t(Object(c.c)({mode:i.c.ERROR_TEXT,text:_?Object(s.i18n)("en","view-aside-public","ufo_cant_download_album"):g?Object(s.i18n)("en","view-aside-public","ufo_cant_download_folder"):Object(s.i18n)("en","view-aside-public","ufo_cant_download")}))})}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o){var i=o().user;if(!i.auth){if(!t)return Promise.resolve();var a=new Date;a.setFullYear(a.getFullYear()+1),l.a.set(e.key,e.value,{expires:a})}return n(r.e("set-setting",e,i.auth))}},w=function(e,t){return function(n,o){var a=o(),u=a.ua.isMobile,p=a.resources,d=a.rootResourceId,y=a.user,b=y.loading,v=y.auth,_=y.id,g=y.hasPassword,O=a.environment,w=O.antiFileSharing,E=O.currentLang,S=p[e],k=p[d],x=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.error,u=o.extra;n(r.N({operation:"save",resourceId:e,state:i.e.FAILED}));var l,f=Object(s.i18n)("en","view-public","ufo_save_error"),p=i.d.SAVE_TO_DISK_ERROR,d=a&&(a.message||a.title)||"unknown";if(a&&a.code)switch(d=a.code+" / "+d,a.code){case 85:case 59:f=Object(s.i18n)("en","view-aside-public","ufo_aside_public_save_failed_nospace_2"),p=i.d.SAVE_TO_DISK_ERROR_SPACE,l={tariff:u&&u.minSpaceTariff}}n(Object(c.c)({mode:i.c.ERROR_TEXT,resourceId:e,text:f,type:p,extraData:l})),h(t,"error",d)},R=u?"touch":"web";if(b)return n(r.N({operation:"save",resourceId:e,state:i.e.WAITING_AUTH})),n(r.c("save",{auth:!0,noAuth:!0,noPassword:!0,resourceId:e}));if(!v||!g){var j=new Date;j.setHours(j.getHours()+1),l.a.set("save-to-disk",e,{expires:j});var P="/auth",C={origin:"disk_public_".concat(R,"_copy").concat(w?"_limit":"")};return v&&!g&&(P="/passport",C=Object.assign(C,{mode:"postregistration",from:"cloud",create_login:1,create_password:1,uid:_})),n(r.n(C,P)).catch(x)}h(t,"start"),n(r.N({operation:"save",resourceId:e,state:i.e.IN_PROGRESS}));var T=Object(f.g)(S);if(T){var I=T?Object(s.i18n)("en","view-aside-public","ufo_aside_public_save_async"):Object(s.i18n)("en","view-public","ufo_saving_progress");n(Object(c.c)({mode:i.c.TEXT,text:I}))}var D=Object(f.d)(k);return n(r.e("save",{hash:m(D?k:S),name:S.name,lang:E,source:"public_".concat(R,"_copy").concat(w?"_limit":""),isAlbum:D,itemId:D&&e!==d?S.albumItemId:null},!0)).then(function(t){var o=t.error,a=t.data;if(o)return Promise.reject({error:{code:a.code},extra:a.extra});var c=a.oid,s=a.path,u=a.name;return T&&n(r.N({operation:"save",resourceId:e,state:i.e.DONE,params:{type:"folder",path:s,name:u}})),new Promise(function(e,t){!function o(){n(r.e("get-save-operation-status",{oid:c,lang:E},!0)).then(function(n){switch(n.data.status){case"WAITING":case"EXECUTING":setTimeout(o,1e3);break;case"DONE":e({path:n.data.resource?n.data.resource.path:s,name:n.data.resource?n.data.resource.name:u});break;case"FAILED":t(n.data);break;default:t()}}).catch(t)}()})}).then(function(o){var a=o.path,u=o.name;n(r.N({operation:"save",resourceId:e,state:i.e.DONE,params:{type:T?"folder":"file",path:a,name:u}})),n(Object(c.c)({mode:i.c.TEXT_BUTTON,text:Object(s.i18n)("en","view-public","ufo_save_success"),type:i.d.SAVE_TO_DISK_SUCCESS,buttonText:Object(s.i18n)("en","view-public","ufo_goto"),buttonAction:"OPEN_APP",resourceId:e,resourceName:u,isSaveAlbum:Object(f.d)(S),isEternal:T})),h(t,"saved")}).catch(x)}},E=function(){return function(e,t){var n,o=t(),a=o.rootResourceId,u=o.resources,l=o.waitingAuthActions,f=o.user,p=f.auth,h=f.hasPassword,d=o.ua.isSmartphone,y=o.environment.experiments.flags.disk_public_antifo_touch_notify_exp;if(n=p?h?"auth":"noPassword":"noAuth",l.save&&l.save[n]&&e(w(l.save.resourceId)),l.auth&&l.auth[n]&&e(r.d()),l.antiFileSharing&&d){var m=!1;if(p?p&&!l.save?m=!0:p&&l.save&&l.save.resourceId!==l.antiFileSharing.resourceId&&(m=!0):m=!0,m){var b=u[a].type;e(Object(c.c)({mode:i.c.TEXT,text:y?"dir"===b?Object(s.i18n)("en","view-aside-public","ufo_warning_save_and_download_folder_blocked_touch"):Object(s.i18n)("en","view-aside-public","ufo_warning_save_and_download_blocked_touch"):Object(s.i18n)("en","view-aside-public","ufo_aside_public_warning_download_blocked")}))}}e(r.g())}},S=function(e){return function(t,n){var o=n(),i=o.resources[e];if(i&&!i.videoStreams&&!i.videoStreamsFetchError){var a=Object(f.c)(o),c=Object(f.d)(a);t(r.e("get-video-streams",c?{hash:m(a),itemId:i.albumItemId}:{hash:m(i)})).then(function(n){if(n.error||!n.data)return Promise.reject();t(r.G(e,{videoStreams:n.data}))}).catch(function(){return t(r.G(e,{videoStreamsFetchError:!0}))})}}}},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return i});var r="js-prevent-deselect",o="js-prevent-mouse-selection",i="prevent-double-click"},function(e,t,n){"use strict";n.d(t,"e",function(){return b}),n.d(t,"g",function(){return v}),n.d(t,"d",function(){return _}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return O}),n.d(t,"c",function(){return E}),n.d(t,"f",function(){return S});var r=n(8),o=n(6),i=n(10),a=n(15),c=n(18),s=n(71),u=n(255),l=n.n(u),f=n(256),p=n.n(f);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y={},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return function(s,u){var f=u(),d=f.resources,m=d[e];n&&(y={});var b=Object(i.d)(m),v=b?d[m.children[m.children.length-1]].albumItemId:null,_=b?v:t;if(y[e]=y[e]||{},!y[e][_]){s({type:r.FETCH_RESOURCES_LIST_START,id:e});var g=Object(c.e)(m),O=Object(a.c)(f),w=Object(i.f)(m),E=[s(b?Object(o.e)("fetch-album-list",{hash:g,lastItemId:v}):Object(o.e)("fetch-list",{hash:g,offset:t,withSizes:O}))],S=w&&0===t&&O;S&&E.push(s(Object(o.e)("check-folder-media",{hash:g})).catch(function(){return null})),y[e][_]=Promise.all(E).then(function(t){var c=h(t,2),f=c[0],d=f.error,y=f.completed,v=f.resources,_=c[1];if(d)return Promise.reject();var g=v;if(b&&(g=[Object.assign({},m,{completed:y})].concat(v)),S&&(v[0].containsOnlyImageAndVideo=l()(_,"data.only_image_and_video")&&p()(g)||!1),s(Object(o.H)(g,n)),Object(a.b)(u())){if(g.slice(1).some(function(e){return Object(i.f)(e)}))return void location.reload();s(Object(o.M)(g))}s({type:r.FETCH_RESOURCES_LIST_SUCCESS,id:e})}).catch(function(){delete y[e][_],s({type:r.FETCH_RESOURCES_LIST_ERROR,id:e})})}return y[e][_]}},b=function(e){return function(t,n){var r=n().resources[e],i=Object(c.e)(r);return t(Object(o.e)("fetch-public-info",{hash:i})).then(function(n){var r=n.error,i=n.resources;if(r||!i||!i.length)return Promise.reject();t(Object(o.G)(e,i[0]))})}},v=function(e){return function(t,n){var r=n().resources[e];return t(Object(o.B)([])),t(Object(o.E)(e)),t(Object(o.K)()),!r.isFirstPortionLoaded||Object(i.i)(r)?t(m(e,0,!0)):Promise.resolve()}},_=function(e){return function(t,n){var r=n().resources[e];return t(m(e,r.children.length+(r.countBlockedItems||0)))}},g=function e(t){return function(n,r){var o=r(),a=o.resources,c=o.currentResourceId;if(t&&!a[t]){var s=a[c];return s&&Object(i.g)(s)&&!s.completed?n(_(c)).then(function(){return n(e(t))}):Promise.reject()}return Promise.resolve()}},O=function(){return function(e,t){var n=t().overlays.sliderResourceId;return e(g(n)).then(function(){},function(){return e(Object(o.l)())})}},w={},E=function(e){return function(t,n){var r=n().resources[e];if(w[e])return w[e];var i=t(o.e("get-dir-size",{hash:Object(c.e)(r)}));return w[e]=i,i.then(function(n){var r=n.error,i=n.data;delete w[e],!r&&i&&t(o.G(e,{meta:{size:i.size,files_count:i.files_count}}))},function(){delete w[e]}),i}},S=function(){return function(e,t){var n=t(),r=n.overlays.sliderResourceId,i=n.resources;if("dir"===i[n.rootResourceId].type){var a=i[i[r].parent],c=a.children.indexOf(r),u=i[a.children[c+1]];u&&"audio"===u.meta.mediatype&&Object(s.a)(u.meta.mimetype)&&e(o.w(u.id))}}}},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return l});var r=n(9),o=n(6),i=2e3;function a(){return u(r.b.CLOSING)}var c=null;function s(){return function(e,t){var n=t().notifications;n.items.length&&(n.state!==r.b.OPENED||c||(c=setTimeout(function(){var n=t().notifications;n.state===r.b.OPENED&&n.items.length&&e(a()),c=null},i)),n.state===r.b.CLOSED&&(clearTimeout(c),c=null,e(u(r.b.OPENING))))}}function u(e){return function(t){t(Object(o.a)(e)),t(s())}}function l(e){return function(t){t(Object(o.b)(e)),t(s())}}},function(e,t,n){var r,o;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=i(),!!0){var a=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=a,c}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in i)i[s]&&(c+="; "+s,!0!==i[s]&&(c+="="+i[s].split(";")[0]));return document.cookie=t+"="+n+c}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var c=i[a].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var u=t(c[0]);if(s=(r.read||r)(s,u)||t(s),n)try{s=JSON.parse(s)}catch(e){}if(o[u]=s,e===u)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}(function(){})})},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(){var e;function t(n,r,o){if(1===arguments.length)return function(e,r){return t(n,e,r)};if(!e)throw Error("i18n need to be filled with data");var i=e[n]&&e[n][r];return void 0===i?n+":"+r:"string"==typeof i?i:i.call(t,o,t)}return t.decl=function(t){if(!e)return e=t,this;for(var n in t){var r=e[n]||(e[n]={}),o=t[n];for(var i in o)r[i]=o[i]}return this},t}},function(e,t,n){var r=n(125)("wks"),o=n(90),i=n(27).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(115),o=(n(216),n(474),n(475),n(476),n(477),n(217),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),r.a.applyDecls());t.a=o},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return i});var r=function(e){var t="https://"+e.host+e.pathname,n=e.query||{},r=Object.keys(n).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])});return t+=r.length?"?"+r.join("&"):""},o=function(e){return e&&e.hash&&(e.hash=e.hash.replace(/ /g,"+")),e},i=function(e){return e.replace(/^https?:\/\//,"")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(190),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(17),o=n(3),i=function(e){var t=e.ua.isMobile,n=e.environment.noAdv,i=e.resources,a=e.rootResourceId;return![o.RESOURCE_VIEWS.VIDEO,o.RESOURCE_VIEWS.IMAGE].includes(Object(r.a)(i[a]))&&t&&!n},a=function(e){var t=e.currentResourceId,n=e.resources[t];return!n||n.completed}},function(e,t,n){var r=n(27),o=n(79),i=n(80),a=n(92),c=n(55),s=function(e,t,n){var u,l,f,p,h=e&s.F,d=e&s.G,y=e&s.S,m=e&s.P,b=e&s.B,v=d?r:y?r[t]||(r[t]={}):(r[t]||{}).prototype,_=d?o:o[t]||(o[t]={}),g=_.prototype||(_.prototype={});for(u in d&&(n=t),n)f=((l=!h&&v&&void 0!==v[u])?v:n)[u],p=b&&l?c(f,r):m&&"function"==typeof f?c(Function.call,f):f,v&&a(v,u,f,e&s.U),_[u]!=f&&i(_,u,p),m&&g[u]!=f&&(g[u]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){e.exports={user2:{"add-account":"Add account","edit-accounts":"Edit accounts",enter:"Log in",exit:"Log out",help:"Help",mail:function(e){return n(642)({count:e.count,one:"new message",some:"new messages",many:"",none:""})},mail_compose:"Compose message",passport:"Account management",settings:"Settings",upload_files:"My Disk",ya_plus:"Get Yandex.Plus",ya_plus_on:"active"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",d:"M21 5.421L19.579 4 12.5 11.079 5.421 4 4 5.421l7.079 7.079L4 19.579 5.421 21l7.079-7.079L19.579 21 21 19.579 13.921 12.5z"})}}]),n}()},function(e,t,n){"use strict";n(40),n(70);var r=n(1),o=n.n(r),i=n(19),a=n(2),c=n(257),s=n.n(c);n(102),n(57);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(a.declMod)({hiding:"*",target:"anchor"},{block:"popup2",willInit:function(){this.__base.apply(this,arguments),this._anchorParents=[],this._updateIsAnchorVisible=s()(this._updateIsAnchorVisible,this.__self.UPDATE_TARGET_VISIBILITY_THROTTLING_INTERVAL),this._onAnchorParentsScroll=this._onAnchorParentsScroll.bind(this)},mods:function(e){var t=e.hiding;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{hiding:Object(a.bool2string)(t)})},willReceiveProps:function(e){var t=e.visible,n=e.anchor;this.__base.apply(this,arguments),t&&!this.props.visible?this._bindToAnchorParents(n):this.props.visible&&!t&&this._unbindFromAnchorParents()},didMount:function(){this.__base.apply(this,arguments),this.props.visible&&this.props.anchor&&this._bindToAnchorParents(this.props.anchor)},willUnmount:function(){this.__base.apply(this,arguments),this._unbindFromAnchorParents()},_bindToAnchorParents:function(e){var t=this;this._anchorParents=this._getAnchorParents(e),this._anchorParents.forEach(function(e){e.addEventListener("scroll",t._onAnchorParentsScroll)})},_unbindFromAnchorParents:function(){var e=this;this._anchorParents.forEach(function(t){t.removeEventListener("scroll",e._onAnchorParentsScroll)})},_getAnchorParents:function(e){for(var t=[],n={anchor:e},r=this.context.parentPopup;r&&r.anchor;)r=(n=r).instance.context.parentPopup;for(var o=this._getAnchorDomNode(n.anchor),a=Object(i.findDOMNode)(o);a.parentNode&&"BODY"!==a.parentNode.tagName;)t.push(a.parentNode),a=a.parentNode;return t},_calcBestDrawingParams:function(e){var t=e.anchor,n=this.__base.apply(this,arguments);return void 0===this._isAnchorVisible&&(this._isAnchorVisible=this._calcIsAnchorVisible(t,n.direction)),this._style.popup.display=this._isAnchorVisible?"":"none",n},_checkDirection:function(e,t){return e.indexOf(t)>=0},_onAnchorParentsScroll:function(){this._updateIsAnchorVisible(),this.forceUpdate()},_updateIsAnchorVisible:function(){var e=this._calcIsAnchorVisible(this.props.anchor,this._direction);e!==this._isAnchorVisible&&(this._isAnchorVisible=e,null!==this.containerRef.current&&(this.containerRef.current.style.display=this._isAnchorVisible?"":"none"))},_calcIsAnchorVisible:function(e,t){for(var n=this._anchorParents.length,r=0;r<n;r++){var o=this._anchorParents[r],a=window.getComputedStyle(o),c=/scroll|hidden|auto/,s=c.test(a["overflow-y"]),u=c.test(a["overflow-x"]);if(s||u){var l=o.getBoundingClientRect(),f=Math.floor(l.top),p=Object(i.findDOMNode)(this._getAnchorDomNode(e)),h=p.getBoundingClientRect(),d=h.left,y=h.top,m=Math.floor(this._checkDirection(t,"top")?y:y+p.offsetHeight);if(m<f||f+o.offsetHeight<m)return!1;var b=Math.floor(l.left),v=Math.floor(this._checkDirection(t,"left")?d:d+p.offsetWidth);return v>=b&&b+o.offsetWidth>=v}}return!0},_checkWindowOffset:function(){for(var e=this._anchorParents.length,t=0;t<e;t++){var n=this._anchorParents[t];if("fixed"===window.getComputedStyle(n).position)return!1}return!0}},{propTypes:{anchor:o.a.oneOfType([o.a.func,o.a.object]),hiding:o.a.bool}}),Object(a.declMod)({motionless:!0},{block:"popup2",didMount:function(){this.__base(),window.removeEventListener("scroll",this._onWinScrollAndResize),window.removeEventListener("resize",this._onWinScrollAndResize)},willReceiveProps:function(){this.__base.apply(this,arguments),window.removeEventListener("scroll",this._onWinScrollAndResize),window.removeEventListener("resize",this._onWinScrollAndResize)},_onWinScrollAndResize:function(){}}),n(202);var f=n(59),p=(n(402),n(203),n(85),n(204),n(205),n(206),n(207),n(403),n(208),n(209),n(210),f.a.applyDecls()),h=n(72);function d(e){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e){return function(){var t,n=v(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(n,p);var t=b(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n)}(n,[{key:"toggleWatchAutoClosableEvents",value:function(e){m(v(n.prototype),"toggleWatchAutoClosableEvents",this).call(this,e),e?(window.addEventListener("contextmenu",this._onOutsideClick,!0),window.addEventListener("touchstart",this._onOutsideClick),window.addEventListener("mousedown",this._onOutsideClick)):(window.removeEventListener("contextmenu",this._onOutsideClick,!0),window.removeEventListener("touchstart",this._onOutsideClick),window.removeEventListener("mousedown",this._onOutsideClick))}},{key:"_onOutsideClick",value:function(e){"click"===e.type&&(2===e.button||e.ctrlKey&&this.props.isMacSafari)||m(v(n.prototype),"_onOutsideClick",this).call(this,e)}}]),n}();t.a=Object(h.a)(g)},function(e,t,n){e.exports=!n(81)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n.n(r),i=n(19),a=n(2),c=n.n(a),s=n(1),u=n.n(s),l=n(109);n(201);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=l.a.applyDecls(),m=["bottom-left","bottom-center","bottom-right","top-left","top-center","top-right","right-top","right-center","right-bottom","left-top","left-center","left-bottom"];Object(a.decl)({block:"popup2",getChildContext:function(){return{registerChildPopup:this._registerChildPopup,unRegisterChildPopup:this._unRegisterChildPopup,parentPopup:{anchor:this.props.anchor,instance:this},zIndexGroupLevel:this._zIndexGroupLevel,tailStyles:this._style.tail,setTailRef:this.setTailRef}},willInit:function(){this.__base.apply(this,arguments),this.state={scope:this.normalizeScope(this.props.scope)},this._isMounted=!1,this.defaultMainOffset=0,this.defaultViewportOffset=0,this.drawn=!1,this.containerRef={current:null},this._style={popup:{},tail:{}},this._childPopups=[],this._hasOpenedChildPopups=!1,this._zIndex=null,this._zIndexGroupLevel=null,this._onWinScrollAndResize=this._onWinScrollAndResize.bind(this),this._registerChildPopup=this._registerChildPopup.bind(this),this._unRegisterChildPopup=this._unRegisterChildPopup.bind(this),this.toggleWatchBaseEvents=this.toggleWatchBaseEvents.bind(this),this.setTailRef=this.setTailRef.bind(this),this.attachContainerRef=this.attachContainerRef.bind(this)},didMount:function(){var e=this;this._isMounted=!0,"function"==typeof this.context.registerChildPopup&&this.context.registerChildPopup(this),this.forceUpdate(),this.props.visible&&(requestAnimationFrame(function(){return e.forceUpdate()}),this.toggleWatchBaseEvents(!0))},willReceiveProps:function(e){var t=this,n=this.normalizeScope(this.props.scope),r=this.normalizeScope(e.scope);n!==r&&this.setState({scope:r}),this.props.visible!==e.visible&&(e.visible||this._releaseZIndex(),e.visible&&requestAnimationFrame(function(){t._isMounted&&t.forceUpdate()}),this.toggleWatchBaseEvents(e.visible))},willUnmount:function(){this._isMounted=!1,"function"==typeof this.context.unRegisterChildPopup&&this.context.unRegisterChildPopup(this),this.toggleWatchBaseEvents(!1)},render:function(){var e=this;if("undefined"==typeof window||!this._isMounted)return null;var t=this.state.scope,n=this.props,r=n.hasTail,a=n.tailSize;if(n.visible&&null!==this.containerRef.current){var s=this._calcBestDrawingParams(this.props),u=s.tail,l=s.direction,f=d(s,["tail","direction"]),h=t.getBoundingClientRect(),m=this._getScopeOffsetByWindow(),b=m.pageXOffset,v=m.pageYOffset,_=f.left-(h.left+b),g=f.top-(h.top+v);!this.drawn&&this.props.visible&&(this._captureZIndex(),this.drawn=!0),this.props.calcPossible&&this._calcPossibleDrawingParams(this.props),this._direction=l,this._style.popup=p({},this._style.popup,{left:_,top:g},this.props.style),this._style.tail=p({},u,{width:a,height:a})}return Object(i.createPortal)(o.a.createElement(c.a,{cls:this.cls(this.props),tag:this.tag(this.props),block:this.block,mods:this.mods(this.props),mix:this.mix(this.props),attrs:p({style:p({},this._style.popup)},this.attrs(this.props))},r&&o.a.createElement(y,{style:p({},this._style.tail),ref:function(t){return e.domElementTail=Object(i.findDOMNode)(t)}}),this.content(this.props)),t)},mods:function(e){var t=e.theme,n=e.visible,r=(e.direction,e.view),o=e.tone,i=e.nonvisual;return{view:r,tone:o,theme:t,direction:this._direction,nonvisual:Object(a.bool2string)(i),visible:Object(a.bool2string)(n)}},attrs:function(e){var t=e.onClick,n=e.onMouseOver,r=e.onMouseLeave;return p({},this.__base.apply(this,arguments),{onMouseOver:n,onMouseLeave:r,onClick:t,ref:this.attachContainerRef})},toggleWatchBaseEvents:function(e){e?(window.addEventListener("scroll",this._onWinScrollAndResize),window.addEventListener("resize",this._onWinScrollAndResize)):(window.removeEventListener("scroll",this._onWinScrollAndResize),window.removeEventListener("resize",this._onWinScrollAndResize))},normalizeScope:function(e){return"function"!=typeof e?e:e()},attachContainerRef:function(e){this.containerRef.current=e},_registerChildPopup:function(e){this._childPopups.push(e)},_unRegisterChildPopup:function(e){var t=this._childPopups.indexOf(e);-1!==t&&this._childPopups.splice(t,1)},isElementInsideChildPopups:function(e){return this._childPopups.some(function(t){return null!==t.containerRef.current&&(t.containerRef.current.contains(e)||t.isElementInsideChildPopups(e))})},_onWinScrollAndResize:function(){this.forceUpdate()},_calcPossibleDrawingParams:function(e){var t=this,n=this._calcTargetDimensions(e),r=this._calcViewportDimensions(),o=this._calcOffsets(),i=this.props.directions.map(function(e){var i={direction:e,width:0,height:0,left:0,top:0};return t._checkMainDirection(e,"bottom")?(i.top=n.top+n.height+o.main,i.height=r.bottom-i.top-o.viewport):t._checkMainDirection(e,"top")?(i.height=n.top-r.top-o.main-o.viewport,i.top=n.top-i.height-o.main):(t._checkSecondaryDirection(e,"center")?(i.height=r.bottom-r.top-2*o.viewport,i.top=n.top+(n.height-i.height)/2):t._checkSecondaryDirection(e,"bottom")?(i.height=n.top+n.height-r.top-o.secondary-o.viewport,i.top=n.top+n.height-i.height-o.secondary):t._checkSecondaryDirection(e,"top")&&(i.top=n.top+o.secondary,i.height=r.bottom-i.top-o.viewport),t._checkMainDirection(e,"left")?(i.width=n.left-r.left-o.main-o.viewport,i.left=n.left-i.width-o.main):(i.left=n.left+n.width+o.main,i.width=r.right-i.left-o.viewport)),t._checkSecondaryDirection(e,"right")?(i.width=n.left+n.width-r.left-o.secondary-o.viewport,i.left=n.left+n.width-i.width-o.secondary):t._checkSecondaryDirection(e,"left")?(i.left=n.left+o.secondary,i.width=r.right-i.left-o.viewport):t._checkSecondaryDirection(e,"center")&&t._checkMainDirection(e,"top","bottom")&&(i.width=r.right-r.left-2*o.viewport,i.left=n.left+n.width/2-i.width/2),i});this.props.calcPossible(i)},_calcBestDrawingParams:function(e){for(var t,n,r,o,i,a,c=this._calcPopupDimensions(),s=this._calcTargetDimensions(e),u=this._calcViewportDimensions(),l=e.directions,f=l.length,p=0;p<f&&(t=l[p],n=this._calcPos(t,s,c),r=this._calcViewportFactor(n,u,c),(0===p||r>a||!a&&e.direction===t)&&(o=t,a=r,i=n),!(a>this.__self.VIEWPORT_ACCURACY_FACTOR));p++);return{direction:o,left:i.left,top:i.top,tail:this._calcTailPos(o,s,c,i)}},_calcPopupDimensions:function(){if(null===this.containerRef.current)return{width:0,height:0,popupWidth:0,popupHeight:0,area:0};var e=this.containerRef.current,t=e.clientWidth,n=e.clientHeight,r=this.containerRef.current.getBoundingClientRect(),o=r.width,i=r.height;return{width:Math.round(o),height:Math.round(i),popupWidth:t,popupHeight:n,area:t*n}},_calcTargetDimensions:function(e){var t=e.target,n=e.position;return t||n?p({},n,{width:0,height:0}):{left:0,top:0,width:0,height:0}},_calcTailDimension:function(){return this.props.tailSize?this.props.tailSize:this.domElementTail&&"none"!==this.domElementTail.style.display?this.domElementTail.offsetWidth:0},_calcViewportDimensions:function(){var e=window.pageYOffset,t=window.pageXOffset,n=window.innerWidth;return{top:e,left:t,bottom:e+window.innerHeight,right:t+n}},_calcPos:function(e,t,n){var r={},o=this._calcOffsets();return this._checkMainDirection(e,"bottom")?r.top=t.top+t.height+o.main:this._checkMainDirection(e,"top")?r.top=t.top-n.height-o.main:this._checkMainDirection(e,"left")?r.left=t.left-n.width-o.main:this._checkMainDirection(e,"right")&&(r.left=t.left+t.width+o.main),this._checkSecondaryDirection(e,"right")?r.left=t.left+t.width-n.width-o.secondary:this._checkSecondaryDirection(e,"left")?r.left=t.left+o.secondary:this._checkSecondaryDirection(e,"bottom")?r.top=t.top+t.height-n.height-o.secondary:this._checkSecondaryDirection(e,"top")?r.top=t.top+o.secondary:this._checkSecondaryDirection(e,"center")&&(this._checkMainDirection(e,"top","bottom")?r.left=t.left+t.width/2-n.width/2:this._checkMainDirection(e,"left","right")&&(r.top=t.top+t.height/2-n.height/2)),r},_calcViewportFactor:function(e,t,n){var r=this.props.viewportOffset||this.defaultViewportOffset,o=Math.max(e.left,t.left+r),i=Math.min(e.left+n.width,t.right-r),a=Math.max(e.top,t.top+r),c=Math.min(e.top+n.height,t.bottom-r);return o<i&&a<c?(i-o)*(c-a)/n.area:0},_calcTailPos:function(e,t,n,r){var o={},i=this._calcTailDimension()/2,a=this.props.tailOffset;return this._checkMainDirection(e,"bottom")?o.top=-i:this._checkMainDirection(e,"top")?o.top=Math.floor(n.popupHeight-i):this._checkMainDirection(e,"left")?o.left=Math.floor(n.popupWidth-i):this._checkMainDirection(e,"right")&&(o.left=-i),this._checkSecondaryDirection(e,"right")?o.left=n.popupWidth-Math.ceil(Math.min(n.popupWidth,t.width)/2)-i-a:this._checkSecondaryDirection(e,"left")?o.left=Math.ceil(Math.min(n.popupWidth,t.width)/2)-i+a:this._checkSecondaryDirection(e,"bottom")?o.top=n.popupHeight-Math.ceil(Math.min(n.popupHeight,t.height)/2)-i-a:this._checkSecondaryDirection(e,"top")?o.top=Math.ceil(Math.min(n.popupHeight,t.height)/2)-i+a:this._checkSecondaryDirection(e,"center")&&(this._checkMainDirection(e,"top","bottom")?o.left=Math.ceil(n.popupWidth/2)-i+a:o.top=Math.ceil(n.popupHeight/2)-i+a),o},_calcOffsets:function(){var e=this._calcTailDimension(),t=void 0===this.props.mainOffset?this.defaultMainOffset:this.props.mainOffset;return{main:t>=0&&e>0?Math.max(t,Math.round(e*Math.SQRT1_2)):t,secondary:this.props.secondaryOffset,viewport:this.props.viewportOffset||this.defaultViewportOffset}},_checkMainDirection:function(e,t,n){return 0===e.indexOf(t)||n&&0===e.indexOf(n)},_checkSecondaryDirection:function(e,t){return e.indexOf("-"+t)>0},_checkDirection:function(e,t){return e.indexOf(t)>=0},_calcZIndexGroupLevel:function(){return this.props.zIndexGroupLevel||this.context.zIndexGroupLevel||0},_captureZIndex:function(){null===this._zIndexGroupLevel&&(this._zIndexGroupLevel=this._calcZIndexGroupLevel());var e=this.__self._visiblePopupsZIndexes,t=this._zIndexGroupLevel,n=this._zIndex,r=e[t];r||(r=e[t]=[(t+1)*this.__self.ZINDEX_FACTOR]),this._zIndex=r[r.length-1]+1,r.push(this._zIndex),this._zIndex!==n&&(this._style.popup.zIndex=this._zIndex)},_releaseZIndex:function(){var e=this.__self._visiblePopupsZIndexes[this._zIndexGroupLevel];e&&e.length>1&&(this.drawn&&e.splice(e.indexOf(this._zIndex),1),this.drawn=!1)},setTailRef:function(e){this.domElementTail=e},_getScopeOffsetByWindow:function(){var e=this._checkWindowOffset();return{pageXOffset:e?window.pageXOffset:0,pageYOffset:e?window.pageYOffset:0}},_checkWindowOffset:function(){return!0}},{propTypes:{theme:u.a.string,target:u.a.oneOf(["anchor","position"]).isRequired,view:u.a.oneOf(["classic","default"]),tone:u.a.string,hiding:u.a.bool,hasTail:u.a.bool,tailSize:u.a.number,position:u.a.object,autoclosable:u.a.bool,visible:u.a.bool,directions:u.a.array,mainOffset:u.a.number,zIndexGroupLevel:u.a.number,secondaryOffset:u.a.number,viewportOffset:u.a.number,tailOffset:u.a.number,onMouseOver:u.a.func,onMouseLeave:u.a.func,calcPossible:u.a.func},defaultProps:{view:"classic",target:"anchor",directions:m,secondaryOffset:0,tailOffset:0,zIndexGroupLevel:0,scope:function(){return"undefined"==typeof document?null:document.body}},_visiblePopupsZIndexes:{},ZINDEX_FACTOR:1e3,VIEWPORT_ACCURACY_FACTOR:.99,UPDATE_TARGET_VISIBILITY_THROTTLING_INTERVAL:100,contextTypes:{registerChildPopup:u.a.func,unRegisterChildPopup:u.a.func,zIndexGroupLevel:u.a.number,parentPopup:u.a.object},childContextTypes:{registerChildPopup:u.a.func,unRegisterChildPopup:u.a.func,zIndexGroupLevel:u.a.number,parentPopup:u.a.object,tailStyles:u.a.object,setTailRef:u.a.func}})},function(e,t,n){var r=n(39),o=n(565),i=n(566),a="Expected a function",c=Math.max,s=Math.min;e.exports=function(e,t,n){var u,l,f,p,h,d,y=0,m=!1,b=!1,v=!0;if("function"!=typeof e)throw new TypeError(a);function _(t){var n=u,r=l;return u=l=void 0,y=t,p=e.apply(r,n)}function g(e){var n=e-d;return void 0===d||n>=t||n<0||b&&e-y>=f}function O(){var e=o();if(g(e))return w(e);h=setTimeout(O,function(e){var n=t-(e-d);return b?s(n,f-(e-y)):n}(e))}function w(e){return h=void 0,v&&u?_(e):(u=l=void 0,p)}function E(){var e=o(),n=g(e);if(u=arguments,l=this,d=e,n){if(void 0===h)return function(e){return y=e,h=setTimeout(O,t),m?_(e):p}(d);if(b)return clearTimeout(h),h=setTimeout(O,t),_(d)}return void 0===h&&(h=setTimeout(O,t)),p}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(b="maxWait"in n)?c(i(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==h&&clearTimeout(h),y=0,u=d=l=h=void 0},E.flush=function(){return void 0===h?p:w(o())},E}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(0),a=n.n(i),c=n(52),s=n(4),u=n.n(s);n(432);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return h(e)}(this,t)}}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(){return u()()("hover-tooltip")},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(n,i["Component"]);var t=p(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onOpen=r._onOpen.bind(h(r)),r._onClose=r._onClose.bind(h(r)),r.state={visible:!1},r}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(n,[{key:"_onOpen",value:function(){this.setState({visible:!0})}},{key:"_onClose",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){var e=this.props,t=e.text,n=e.children,r=e.theme,o=e.size,i=e.to,s=e.cls,u=e.clsText,l=e.zIndexGroupLevel,f=e.showDelay,p=e.disabled,h=e.tooltipCls,d=e.mainOffset,y={cls:h,theme:r,size:o,to:i,zIndexGroupLevel:l,visible:this.state.visible,mainOffset:d};return a.a.createElement(c.a,{visible:this.state.visible&&!p,cls:s,onOpen:this._onOpen,onClose:this._onClose,showDelay:f},a.a.createElement(c.a.Anchor,null,a.a.createElement("div",{className:m().e("tooltip-anchor")},n)),t&&a.a.createElement(c.a.Tooltip,y,a.a.createElement("span",{className:m().e("tooltip-text").mix(u)},t)))}}]),n}();b.propTypes={cls:o.a.object,clsText:o.a.object,showDelay:o.a.number,text:o.a.string,theme:o.a.string,size:o.a.string,disabled:o.a.bool,zIndexGroupLevel:o.a.number,to:o.a.array},b.defaultProps={text:"",theme:"normal",size:"xs",disabled:!1,zIndexGroupLevel:20,to:["bottom"],showDelay:1200},t.a=b},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.096 5.73c-.322-.176-.659-.362-1.012-.558-1.875-1.042-3.75-1.695-6.345-.62C6.145 5.627 5.287 7.41 4.7 9.472c-.11.387-.216.757-.318 1.109C5.967 9.469 7.87 8.43 9.984 7.555c2.118-.878 4.202-1.49 6.112-1.824m-1.883 12.032c-7.082 2.934-12.2 2.06-13.065-.028-1.01-2.437 3.257-6.246 9.41-8.795 6.154-2.55 11.864-2.872 12.874-.436.865 2.09-2.137 6.326-9.219 9.259m-.549-1.326c3.133-1.298 5.33-3.178 4.906-4.2-.423-1.021-3.306-.797-6.439.5-3.133 1.298-5.329 3.178-4.906 4.2.423 1.02 3.306.797 6.44-.5"})}}]),n}()},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=(n(101),n(47)),u=Object(c.decl)({block:"radiobox",elem:"box",tag:"span"}),l=(n(450),Object(c.decl)({block:"radiobox",elem:"control",tag:"input",attrs:function(e){var t=e.id,n=e.name,r=e.value,o=e.onChange,i=e.checked,a=e.disabled,c=e.tabIndex;return{id:t,name:n,value:r,checked:i,disabled:a,onChange:a?void 0:o,type:"radio",tabIndex:a?-1:c}}})),f=(n(451),Object(c.decl)({block:"radiobox",elem:"text",tag:"span"}));function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=s.a.applyDecls(),m=u.applyDecls(),b=l.applyDecls(),v=f.applyDecls(),_=Object(c.decl)(y,{block:"radiobox",elem:"radio",tag:"label",attrs:function(e){var t=e.id,n=void 0===t?this.generateId():t;return h({},this.__base.apply(this,arguments),{htmlFor:n})},mods:function(e){var t=e.disabled,n=e.mainDisabled,r=e.value,o=e.mainValue,i=e.checked;return h({},this.__base.apply(this,arguments),{disabled:Object(c.bool2string)(t||n),checked:Object(c.bool2string)(this._isChecked(r,o,i))})},content:function(e){var t=e.id,n=void 0===t?this.generateId():t,r=e.name,i=e.mainDisabled,a=e.disabled,c=e.value,s=e.checked,u=e.mainValue,l=e.children,f=e.tabIndex;return[o.a.createElement(m,{key:"box"},o.a.createElement(b,{name:r,id:n,value:c,checked:this._isChecked(c,u,s),onChange:this.props.onChange,disabled:a||i,tabIndex:f})),o.a.createElement(v,{key:"text"},l)]},_isChecked:function(e,t,n){return n||void 0!==e&&e===t}},{propTypes:{disabled:a.a.bool,name:a.a.string,id:a.a.string,mainDisabled:a.a.bool,checked:a.a.bool,mainValue:a.a.oneOfType([a.a.string,a.a.number]),tabIndex:a.a.number}});n(452);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=_.applyDecls();Object(c.decl)({block:"radiobox",tag:"span",willInit:function(){this.__base.apply(this,arguments),this.onChange=this.onChange.bind(this)},attrs:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.attrs)},mods:function(e){return{theme:e.theme,size:e.size,view:e.view,tone:e.tone}},content:function(e){var t=this,n=e.disabled,o=e.value,i=e.name,a=e.children;return r.Children.map(a,function(e,a){return"function"==typeof e.type?Object(r.cloneElement)(e,{name:i,key:a,mainValue:o,mainDisabled:n,onChange:n?void 0:t.onChange}):e})},onChange:function(e){this.props.onChange&&this.props.onChange(e)}},{Radio:w,propTypes:{theme:a.a.string,size:a.a.string,view:a.a.oneOf(["classic","default"]),tone:a.a.string,disabled:a.a.bool,value:a.a.oneOfType([a.a.string,a.a.number])},defaultProps:{view:"classic"}});function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=Object(c.declMod)({view:"default"},{block:"radiobox",mods:function(e){var t=e.tone;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(n,!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{tone:t})}},{propTypes:{tone:a.a.oneOf(["default","red","grey","dark"])},defaultProps:{tone:"default"}}),x=(n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),k.applyDecls());n(449),t.a=x},function(e,t,n){var r=n(30);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=Object(i.decl)({block:"control",willInit:function(e){var t=e.hovered;this.__base.apply(this,arguments),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.state.hovered=t},willReceiveProps:function(e){var t=e.disabled;this.__base.apply(this,arguments),t&&this.setState({hovered:!1})},mods:function(){var e=this.state,t=e.hovered,n=e.disabled;return c({},this.__base.apply(this,arguments),{hovered:n?void 0:Object(i.bool2string)(t)})},attrs:function(){var e=this.state.disabled;return c({},this.__base.apply(this,arguments),{onMouseEnter:e?void 0:this.onMouseEnter,onMouseLeave:e?void 0:this.onMouseLeave})},onMouseEnter:function(e){this.setState({hovered:!0}),this.props.onMouseEnter&&this.props.onMouseEnter(e)},onMouseLeave:function(e){this.setState({hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)}},{propTypes:{hovered:o.a.bool,onMouseEnter:o.a.func,onMouseLeave:o.a.func}})},function(e,t,n){"use strict";var r=n(2);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a={BACKSPACE:8,TAB:9,ENTER:13,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DELETE:46};t.a=Object(r.decl)({block:"keycodes"},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},a,{list:function(){return Object.keys(a)},is:function(e,t){return(Array.isArray(t)?t:Array.prototype.slice.call(arguments,1)).some(function(t){return this[t]===e},this)}}))},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(19),a=n(2),c=n.n(a),s=n(40),u=n(59);n(57),n(85);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=u.a.applyDecls();Object(a.decl)(h,{block:"modal",willInit:function(e){var t=e.zIndexGroupLevel;this.__base.apply(this,arguments),this._zIndexGroupLevel=t||20},attrs:function(e){var t=e.style,n=this._style.popup.zIndex;return f({},this.__base.apply(this,arguments),{style:f({zIndex:n},t)})},mods:function(e){var t=e.autoclosable,n=e.theme,r=e.visible;return{autoclosable:Object(a.bool2string)(t),visible:Object(a.bool2string)(r),theme:n}},content:function(e){var t=this,n=e.children,r=e.verticalAlign;return o.a.createElement(c.a,{block:"modal",elem:"table"},o.a.createElement(c.a,{block:"modal",elem:"cell",attrs:{style:{verticalAlign:r}}},o.a.createElement(c.a,{block:"modal",elem:"content",attrs:{ref:function(e){return t._contentElement=Object(i.findDOMNode)(e)}}},n)))}},{defaultProps:{target:"position",position:{left:0,top:0},theme:"normal",directions:s.a,mainOffset:0,secondaryOffset:0,viewportOffset:0,zIndexGroupLevel:0}}),n(70),Object(a.declMod)(function(e){var t=e.autoclosable,n=e.onOutsideClick;return t||n},{block:"modal",_isElementOutside:function(e){return this.containerRef.current.contains(e)&&!this._contentElement.contains(e)}});function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m,b,v=Object(a.declMod)({theme:"normal"},{block:"modal",didMount:function(){this.__base.apply(this,arguments),this.props.visible&&(this._onceShown=!0)},willReceiveProps:function(e){var t=e.visible;this.__base.apply(this,arguments),t&&(this._onceShown=!0)},mods:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{js:this._onceShown?"inited":void 0,"has-animation":"yes"})}}),_=(n(399),n(400),n(401),v.applyDecls()),g=n(1),O=n.n(g),w=0,E=!1,S=function(e){w&&!E&&(!function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){var e=window.innerWidth-document.documentElement.clientWidth;e>0&&(b=document.body.style.paddingRight,document.body.style.paddingRight="".concat(e,"px"))}m=document.body.style.overflow,document.body.style.overflow="hidden"}(e),E=!0),!w&&E&&(void 0!==b&&(document.body.style.paddingRight=b,b=void 0),void 0!==m&&(document.body.style.overflow=m,m=void 0),E=!1)},k=n(72);n(398);function x(e){"@babel/helpers - typeof";return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t,n){return(j="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=T(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function P(e){return function(){var t,n=T(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=T(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;return C(e)}(this,t)}}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D=function(e){return e.preventDefault()},A=[],M=27,z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(n,_);var t=P(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onTouchMove=e._onTouchMove.bind(C(e)),e._onTouchStart=e._onTouchStart.bind(C(e)),e._resetContentScroll=e._resetContentScroll.bind(C(e)),e._onceShown=e.props.visible,e}return function(e,t,n){t&&R(e.prototype,t),n&&R(e,n)}(n,[{key:"toggleWatchAutoClosableEvents",value:function(e){j(T(n.prototype),"toggleWatchAutoClosableEvents",this).call(this,e),e?window.addEventListener("touchstart",this._onOutsideClick,{passive:!1}):window.removeEventListener("touchstart",this._onOutsideClick,{passive:!1})}},{key:"_onOutsideClick",value:function(e){j(T(n.prototype),"_onOutsideClick",this).call(this,e),"touchstart"===e.type&&e.target.classList.contains("modal__cell")&&D(e)}},{key:"componentDidMount",value:function(){for(var e,t=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];j(T(n.prototype),"componentDidMount",this)&&(e=j(T(n.prototype),"componentDidMount",this)).call.apply(e,[this].concat(o)),this.props.visible&&requestAnimationFrame(function(){t._onModalOpen()}),this.props.setRef&&this.props.setRef(this)}},{key:"componentDidUpdate",value:function(e){var t;this.props.visible&&!e.visible&&this._onModalOpen();for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];j(T(n.prototype),"componentDidUpdate",this)&&(t=j(T(n.prototype),"componentDidUpdate",this)).call.apply(t,[this,e].concat(o))}},{key:"componentWillReceiveProps",value:function(e){for(var t,r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];j(T(n.prototype),"componentWillReceiveProps",this)&&(t=j(T(n.prototype),"componentWillReceiveProps",this)).call.apply(t,[this,e].concat(o)),e.visible&&(this._onceShown=!0),!e.visible&&this.props.visible&&this._onModalClose()}},{key:"componentWillUnmount",value:function(){var e,t=this.props,r=t.autoclosable,o=t.visible;r&&o&&window.removeEventListener("touchstart",this._onOutsideClick,{passive:!1}),o&&this._onModalClose(),this.props.setRef&&this.props.setRef(null);for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];j(T(n.prototype),"componentWillUnmount",this)&&(e=j(T(n.prototype),"componentWillUnmount",this)).call.apply(e,[this].concat(a))}},{key:"_onModalOpen",value:function(){if(A.push(this),this.props.isIosSafari){var e=this.containerRef.current;e.addEventListener("touchmove",this._onTouchMove),e.addEventListener("touchstart",this._onTouchStart)}else!function(e){w++,S(e)}()}},{key:"_onDocKeyDown",value:function(e){if(A.length&&e.keyCode===M&&A[A.length-1]===this){var t=this.props.onClose||this.props.onOutsideClick;t&&t(e)}}},{key:"_onModalClose",value:function(){if(A.splice(A.indexOf(this),1),this.props.isIosSafari){var e=this.containerRef.current;e.removeEventListener("touchmove",this._onTouchMove),e.removeEventListener("touchstart",this._onTouchStart)}else w--,S();"mobile-pane"===this.props.theme&&this._contentElement.scrollTop>0&&this._contentElement.addEventListener("animationend",this._resetContentScroll)}},{key:"_resetContentScroll",value:function(e){e.target===this._contentElement&&(this._contentElement.scrollTop=0,this._contentElement.removeEventListener("animationend",this._resetContentScroll))}},{key:"_onTouchStart",value:function(e){1===e.targetTouches.length&&(this._initialClientY=e.targetTouches[0].clientY)}},{key:"_onTouchMove",value:function(e){1===e.targetTouches.length&&this._handleScroll(e)}},{key:"_handleScroll",value:function(e){var t=e.targetTouches[0].clientY-this._initialClientY;return!(0===this._contentElement.scrollTop&&t>0||this._contentElement.scrollHeight-this._contentElement.scrollTop<=this._contentElement.clientHeight&&t<0)||D(e)}},{key:"mods",value:function(e){return Object.assign({js:this._onceShown?"inited":void 0},j(T(n.prototype),"mods",this).call(this,e))}}]),n}();z.propTypes=Object.assign({},_.propTypes,{isIosSafari:O.a.bool}),z.defaultProps=Object.assign({},_.defaultProps,{isIosSafari:!1});t.a=Object(k.a)(z)},function(e,t,n){"use strict";var r=n(254),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,c=a.hasOwnProperty,s=a.toString,u=i?i.toStringTag:void 0;var l=function(e){var t=c.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[u]=n:delete e[u]),o},f=Object.prototype.toString;var p=function(e){return f.call(e)},h="[object Null]",d="[object Undefined]",y=i?i.toStringTag:void 0;var m=function(e){return null==e?void 0===e?d:h:y&&y in Object(e)?l(e):p(e)};var b=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var v=function(e){return null!=e&&"object"==typeof e},_="[object Object]",g=Function.prototype,O=Object.prototype,w=g.toString,E=O.hasOwnProperty,S=w.call(Object);var k=function(e){if(!v(e)||m(e)!=_)return!1;var t=b(e);if(null===t)return!0;var n=E.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&w.call(n)==S},x=n(171),R={INIT:"@@redux/INIT"};function j(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(j)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],c=a,s=!1;function u(){c===a&&(c=a.slice())}function l(){return i}function f(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),c.push(e),function(){if(t){t=!1,u();var n=c.indexOf(e);c.splice(n,1)}}}function p(e){if(!k(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(s)throw new Error("Reducers may not dispatch actions.");try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=c,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:R.INIT}),(r={dispatch:p,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:R.INIT})}})[x.a]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[x.a]=function(){return this},e},r}function P(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function C(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n);var a=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:R.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+R.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},c=0;c<i.length;c++){var s=i[c],u=n[s],l=e[s],f=u(l,t);if(void 0===f){var p=P(s,t);throw new Error(p)}o[s]=f,r=r||f!==l}return r?o:e}}function T(e,t){return function(){return t(e.apply(void 0,arguments))}}function I(e,t){if("function"==typeof e)return T(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=T(a,t))}return r}function D(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function M(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),c=a.dispatch,s={getState:a.getState,dispatch:function(e){return c(e)}};return i=t.map(function(e){return e(s)}),c=D.apply(void 0,i)(a.dispatch),A({},a,{dispatch:c})}}}n.d(t,"e",function(){return j}),n.d(t,"c",function(){return C}),n.d(t,"b",function(){return I}),n.d(t,"a",function(){return M}),n.d(t,"d",function(){return D})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=(n(251),n(213),n(2));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(i.declMod)({type:"check"},{block:"menu",willInit:function(e){var t=e.val;this.__base.apply(this,arguments),this.state.val=this._prepareVal(t),this.onClick=this.onClick.bind(this)},attrs:function(e){var t=e.tabIndex,n=void 0===t?0:t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{"aria-multiselectable":"true",role:"listbox",tabIndex:n})},onClick:function(e,t){if(null!==t){var n=this.state.val,r=n.slice(),o=n.indexOf(t);-1===o?r.push(t):r.splice(o,1),this.setState({val:r}),this._onChange(r,n)}this.props.onClick&&this.props.onClick(e,t)}}),n(168);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(i.declMod)({type:"radio"},{block:"menu",willInit:function(e){var t=e.val;this.__base.apply(this,arguments),this.state.val=void 0===t?[]:[Array.isArray(t)?t[0]:t],this.onClick=this.onClick.bind(this)},attrs:function(e){var t=e.tabIndex,n=void 0===t?0:t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{role:"listbox",tabIndex:n})},onClick:function(e,t){if(null!==t&&this.state.val[0]!==t){var n=this._prepareVal(t),r=this.state.val;this.setState({val:n}),this._onChange(n,r)}this.props.onClick&&this.props.onClick(e,t)}});function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(i.declMod)({type:"radiocheck"},{block:"menu",willInit:function(e){var t=e.val;this.__base.apply(this,arguments),this.state.val=void 0===t?[]:[Array.isArray(t)?t[0]:t],this.onClick=this.onClick.bind(this)},attrs:function(e){var t=e.tabIndex,n=void 0===t?0:t;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{role:"listbox",tabIndex:n})},onClick:function(e,t){if(null!==t){var n=this._prepareVal(t===this.state.val[0]?void 0:t),r=this.state.val;this.setState({val:n}),this._onChange(n,r)}this.props.onClick&&this.props.onClick(e,t)}});var p=n(1),h=n.n(p);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=Object(i.declMod)({view:"default"},{block:"menu",mods:function(e){var t=e.tone,n=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{tone:t||"default",size:n||"n"})}},{propTypes:{tone:h.a.string}}),b=(n(214),n(435),n(436),n(437),n(438),n(215),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),m.applyDecls()),v=n(42),_=n(4),g=n.n(_);n(433);function O(e){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function k(e,t,n){return(k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=R(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function x(e){return function(){var t,n=R(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=R(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var C=function(){return g()()("menu")},T=function(e){j(n,b);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return S(n,[{key:"mods",value:function(e){return Object.assign({wide:Object(i.bool2string)(e.wide),paddingless:Object(i.bool2string)(e.paddingless)},k(R(n.prototype),"mods",this).call(this,e))}}]),n}(),I=function(e){j(n,b.Item);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return S(n,[{key:"mods",value:function(e){return Object.assign({highlighted:Object(i.bool2string)(e.highlighted),type:e.type},k(R(n.prototype),"mods",this).call(this,e))}}]),n}(),D=function(e){j(n,b.Group);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return S(n,[{key:"mods",value:function(e){return Object.assign({paddingless:Object(i.bool2string)(e.paddingless)},k(R(n.prototype),"mods",this).call(this,e))}}]),n}(),A=function(e){j(n,I);var t=x(n);function n(){return w(this,n),t.apply(this,arguments)}return S(n,[{key:"render",value:function(){var e=o.a.createElement(I,this.props);return o.a.createElement(v.a,{text:this.props.tooltipText,cls:C().e("hover-tooltip"),tooltipCls:String(C().e("hover-tooltip-tooltip")),to:["left","right"]},e)}}]),n}();T.Item=I,T.ItemWithTooltip=A,T.Group=D;t.a=T},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(19),s=n.n(c),u=n(36),l=n(76),f=n(4),p=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function v(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return _(e)}(this,t)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E=function(e){O(n,r["Component"]);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){return this.props.children}}]),n}(),S=function(e){O(n,r["Component"]);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){return this.props.children}}]),n}(),k=function(e){O(n,r["Component"]);var t=v(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){return this.props.children}}]),n}();var x=function(e){O(n,r["Component"]);var t=v(n);function n(e){var r;y(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onAnchorMouseEnter=r._onAnchorMouseEnter.bind(_(r)),r._onAnchorMouseLeave=r._onAnchorMouseLeave.bind(_(r)),r._onPopupMouseEnter=r._onPopupMouseEnter.bind(_(r)),r._onPopupMouseLeave=r._onPopupMouseLeave.bind(_(r)),r._bindPopupEvents=r._bindPopupEvents.bind(_(r)),r}return b(n,[{key:"componentDidMount",value:function(){this._bindAnchorEvents(),this.props.visible&&requestAnimationFrame(this._bindPopupEvents)}},{key:"componentDidUpdate",value:function(e){!e.visible&&this.props.visible&&requestAnimationFrame(this._bindPopupEvents)}},{key:"componentWillUnmount",value:function(){this._clearTimer(),this._unbindAnchorEvents(),this._unbindPopupEvents()}},{key:"_bindAnchorEvents",value:function(){this._anchor&&(this._anchor.addEventListener("mouseenter",this._onAnchorMouseEnter),this._anchor.addEventListener("mouseleave",this._onAnchorMouseLeave))}},{key:"_unbindAnchorEvents",value:function(){this._anchor&&(this._anchor.removeEventListener("mouseenter",this._onAnchorMouseEnter),this._anchor.removeEventListener("mouseleave",this._onAnchorMouseLeave))}},{key:"_bindPopupEvents",value:function(){if(!this._popupEventsBound&&this._popup){var e=this._popup.current;e&&e.addEventListener("mouseenter",this._onPopupMouseEnter),e&&e.addEventListener("mouseleave",this._onPopupMouseLeave),this._popupEventsBound=!0}}},{key:"_unbindPopupEvents",value:function(){if(this._popup){var e=this._popup.current;e&&e.removeEventListener("mouseenter",this._onPopupMouseEnter),e&&e.removeEventListener("mouseleave",this._onPopupMouseLeave),this._popupEventsBound=!1}}},{key:"_clearTimer",value:function(){this._hideTimer&&clearTimeout(this._hideTimer),this._showTimer&&clearTimeout(this._showTimer),this._hideTimer=null,this._showTimer=null}},{key:"_deferClosePopup",value:function(){var e=this;this._hideTimer=setTimeout(function(){e._hideTimer=null,e.props.onClose(),e._unbindPopupEvents()},200)}},{key:"_onAnchorMouseLeave",value:function(){this._showTimer&&clearTimeout(this._showTimer),this._deferClosePopup()}},{key:"_onAnchorMouseEnter",value:function(){var e=this;this._hideTimer?this._clearTimer():this.props.showDelay?(this._showTimer&&clearTimeout(this._showTimer),this._showTimer=setTimeout(function(){e.props.onOpen()},this.props.showDelay)):this.props.onOpen()}},{key:"_onPopupMouseEnter",value:function(){this._clearTimer()}},{key:"_onPopupMouseLeave",value:function(){this._deferClosePopup()}},{key:"render",value:function(){var e=this,t=null,n=null;return o.a.Children.forEach(this.props.children,function(r){(function(e){return e&&"function"==typeof e.type&&e.type===E})(r)&&(t=o.a.createElement(E,h({ref:function(t){e._anchor=s.a.findDOMNode(t)}},r.props))),!function(e){return e&&"function"==typeof e.type&&e.type===S}(r)?function(e){return e&&"function"==typeof e.type&&e.type===k}(r)&&(n=o.a.createElement(l.a,h({},r.props,{visible:e.props.visible,anchor:function(){return e._anchor},setRef:function(t){e._popup=t&&t._popupRef.containerRef}}))):n=o.a.createElement(u.a,h({},r.props,{visible:e.props.visible,anchor:function(){return e._anchor},setRef:function(t){e._popup=t&&t.containerRef}}))}),o.a.createElement("span",{className:p()()("hover-dropdown").mix(this.props.cls)},t,n)}}]),n}();x.propTypes={visible:a.a.bool,showDelay:a.a.number,onOpen:a.a.func,onClose:a.a.func},x.defaultProps={showDelay:0,onOpen:function(){},onClose:function(){}},x.Anchor=E,x.Popup=S,x.Tooltip=k,t.a=x},function(e,t,n){"use strict";var r=function(e,t,n){for(var r=0,o=e.length;r<o;){var i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r};e.exports={sortedIndex:r,sortedFind:function(e,t,n){var o=r(e,t,n);return o<e.length&&0===n(e[o],t)?o:-1}}},function(e,t){e.exports={default:"blank",virus:"virus",folderDefault:"dir",folderTypes:["dir_plus","dir_back","dir_gray","dir_root","dir_screenshots","dir_shared","dir_trash","dir_trash-full","dir_yateamnda"],mediatypes:{image:"image",audio:"audio",video:"video",archive:"archive",text:"text",book:"book",development:"development",executable:"executable",font:"font",mail:"mail",compressed:"archive"},extnames:{".7z":"7z",".cab":"archive",".gz":"archive",".gzip":"archive",".rar":"rar",".tar":"archive",".zip":"zip",".zipx":"zip",".aud":"audio",".flac":"audio",".iff":"audio",".m3u":"audio",".m3u8":"audio",".m4a":"audio",".m4b":"audio",".m4r":"audio",".mp3":"audio",".pls":"audio",".ogg":"audio",".wav":"audio",".wma":"audio",".asf":"video",".avi":"video",".flv":"video",".mov":"video",".mp4":"video",".mpeg":"video",".mkv":"video",".mpg":"video",".srt":"video",".swf":"video",".vob":"video",".wmv":"video",".ai":"ai",".cur":"image",".bmp":"image",".dng":"image",".djvu":"djvu",".ico":"image",".gif":"image",".jpg":"image",".jpeg":"image",".png":"image",".psd":"psd",".pcx":"image",".mng":"image",".sketch":"sketch",".tif":"image",".tiff":"image",".xcf":"image",".epub":"epub",".fb2":"fb2",".csv":"table",".doc":"doc",".docx":"doc",".dot":"doc",".dotx":"doc",".indd":"text",".key":"text",".odt":"odt",".odp":"odp",".pdf":"pdf",".pps":"text",".ppsm":"text",".ppsx":"text",".ppt":"ppt",".pptx":"ppt",".ods":"ods",".rtf":"rtf",".txt":"txt",".xls":"xls",".xlsb":"xls",".xlsx":"xls",".xltm":"xls",".xltx":"xls",".xps":"text",".css":"css",".htm":"html",".html":"html",".js":"js",".xhtml":"html",".ini":"ini",".xml":"xml",".exe":"exe",".dll":"dll",".vcf":"vcf"}}},function(e,t,n){var r=n(93);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(319),o=n(322);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=Object(i.decl)({block:"icon",tag:"span",mods:function(e){return{type:e.type,action:e.action,direction:e.direction,glyph:e.glyph,size:e.size,disabled:e.disabled}},attrs:function(e){var t=e.url,n=e.id,r=e.alt,o=e.style,i=void 0===o?{}:o,s=e.attrs;return void 0!==t&&(i.backgroundImage="url('".concat(t,"')")),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({id:n,alt:r,style:i},s)}},{propTypes:{id:o.a.string,url:o.a.string,style:o.a.object,direction:o.a.string,glyph:o.a.string,size:o.a.oneOf(["ns","xs","s","m","n","l","head"])},isIcon:function(e){return e&&"function"==typeof e.type&&("icon"===e.type.displayName||"Icon"===e.type.displayName||"x-icon"===e.type.displayName)}})},function(e,t,n){"use strict";var r=n(2);t.a=Object(r.declMod)({theme:"normal"},{block:"popup2",willInit:function(){this.__base.apply(this,arguments),this.defaultMainOffset=5,this.defaultViewportOffset=5}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M0 0h4v4H0V0zm0 6h4v4H0V6zm0 6h4v4H0v-4zM6 0h4v4H6V0zm0 6h4v4H6V6zm0 6h4v4H6v-4zm6-12h4v4h-4V0zm0 6h4v4h-4V6zm0 6h4v4h-4v-4z",fill:"currentColor"})}}]),n}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M5 1h11v2H5V1zm0 6h11v2H5V7zm0 6h11v2H5v-2zM0 1h3v2H0V1zm0 6h3v2H0V7zm0 6h3v2H0v-2z",fill:"currentColor"})}}]),n}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M0 7h7V0H0v7zm9 0h7V0H9v7zm-9 9h7V9H0v7zm9 0h7V9H9v7z",fill:"currentColor"})}}]),n}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M0 0h10v7H0V4zm6 9h10v7H6v-7zm6-9h4v7h-4V4zM0 9h4v7H0v-7z",fill:"currentColor"})}}]),n}()},function(e,t,n){var r=n(45),o=n(173),i=n(174),a=Object.defineProperty;t.f=n(37)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(38),o=n(310),i=n(313),a=n(337);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(69),o=n(311),i=n(312),a="[object Null]",c="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?c:a:s&&s in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(31).Symbol;e.exports=r},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(19),a=n(2),c=n(48).a.applyDecls();t.a=Object(a.declMod)(function(e){var t=e.autoclosable,n=e.onOutsideClick,r=e.onClose;return t||n||r},{block:"popup2",willInit:function(){this.__base.apply(this,arguments),this._onDocKeyDown=this._onDocKeyDown.bind(this),this._onOutsideClick=this._onOutsideClick.bind(this),this.toggleWatchAutoClosableEvents=this.toggleWatchAutoClosableEvents.bind(this)},didMount:function(){var e=this;this.__base(),this.props.visible&&setTimeout(function(){return e.toggleWatchAutoClosableEvents(!0)},0)},willReceiveProps:function(e){var t=this,n=e.visible;this.__base.apply(this,arguments),this.props.visible!==n&&setTimeout(function(){return t.toggleWatchAutoClosableEvents(n)},0)},willUnmount:function(){this.__base(),this.toggleWatchAutoClosableEvents(!1)},toggleWatchAutoClosableEvents:function(e){e?(window.addEventListener("keydown",this._onDocKeyDown),window.addEventListener("click",this._onOutsideClick)):(window.removeEventListener("keydown",this._onDocKeyDown),window.removeEventListener("click",this._onOutsideClick))},_anchor:function(){var e=this.props.anchor;return e&&e.call?e():e},_isElementOutside:function(e){if(null===e.parentNode)return!1;if(null!==this.containerRef.current&&(this.containerRef.current.contains(e)||this.isElementInsideChildPopups(e)))return!1;var t=Object(i.findDOMNode)(this._anchor());return!(t&&t.contains(e))},_onOutsideClick:function(e){if(this._isElementOutside(e.target)){var t=this.props.onClose||this.props.onOutsideClick;t&&t(e)}},_onDocKeyDown:function(e){if(e.keyCode===c.ESC&&!this._hasOpenedChildPopups){var t=this.props.onClose||this.props.onOutsideClick;t&&t(e)}}},{propTypes:{onClose:function(e){return(e.autoclosable?o.a.func.isRequired:o.a.func).apply(void 0,arguments)}}})},function(e,t,n){"use strict";var r;t.a=function(e,t){return"function"!=typeof Audio?"":(r||(r=new Audio),r.canPlayType(e+(t?'; codecs="'.concat(t,'"'):"")))}},function(e,t,n){"use strict";var r=n(0),o=n.n(r);function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=l(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=l(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;return u(e)}(this,t)}}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}t.a=function(e){return function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(i,r["Component"]);var n=s(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return(t=n.call.apply(n,[this,e].concat(o))).state={renderPopup:t.props.visible,isPopupMounted:t.props.visible},t._setRef=t._setRef.bind(u(t)),t}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(i,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;!this.state.renderPopup&&e.visible&&this.setState({renderPopup:!0},function(){t.setState({isPopupMounted:!0})})}},{key:"_setRef",value:function(e){this.props.setRef&&this.props.setRef(e)}},{key:"render",value:function(){if(!this.state.renderPopup)return null;var t=this.state.isPopupMounted&&this.props.visible;return o.a.createElement(e,a({},this.props,{visible:t,ref:this._setRef}))}}]),i}()}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t=e.ua.BrowserName;return["MSIE","Edge"].includes(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 3.714l8.842-1.557v9.272H1V3.714zm9.947-1.767L22 0v11.429H10.947V1.947zM1 20.157v-7.715h8.842v9.272L1 20.157zm9.947 1.896v-9.581H22V24l-11.053-1.947z"})}}]),n}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M20.56 18.795a12.642 12.642 0 0 1-1.34 2.28c-.705.95-1.282 1.608-1.727 1.974-.69.6-1.428.907-2.22.924-.567 0-1.252-.153-2.05-.463-.799-.308-1.534-.461-2.206-.461-.705 0-1.46.153-2.27.461-.809.31-1.461.472-1.96.488-.759.03-1.515-.285-2.27-.95-.481-.397-1.084-1.078-1.805-2.043-.775-1.031-1.411-2.226-1.91-3.589C.268 15.944 0 14.519 0 13.139c0-1.58.361-2.944 1.084-4.086a6.194 6.194 0 0 1 2.27-2.173 6.372 6.372 0 0 1 3.07-.82c.603 0 1.393.177 2.375.523.98.348 1.608.524 1.883.524.206 0 .905-.206 2.089-.617 1.12-.381 2.064-.539 2.838-.477 2.098.16 3.674.943 4.722 2.352-1.876 1.075-2.804 2.581-2.786 4.513.017 1.505.594 2.758 1.728 3.752A5.719 5.719 0 0 0 21 17.7c-.139.38-.285.744-.44 1.094zM16 .507c0 1.267-.434 2.45-1.298 3.545-1.044 1.302-2.306 2.054-3.674 1.936a4.207 4.207 0 0 1-.028-.48c0-1.217.496-2.519 1.377-3.583.44-.54 1-.987 1.678-1.345.677-.352 1.318-.547 1.92-.58.018.17.025.339.025.507z"})}}]),n}()},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=n.n(c),u=(n(40),n(59),n(102),n(202),n(70)),l=(n(57),n(85),n(203),n(209),n(210),n(204),n(206),n(207),n(208),n(205),Object(c.decl)({block:"tooltip",elem:"corner",mods:function(e){var t=e.mods;return t}},{propTypes:{mods:a.a.object}})),f=(n(404),n(405),n(406),n(407),n(408),n(409),Object(c.decl)({block:"tooltip",elem:"description"})),p=Object(c.decl)({block:"tooltip",elem:"buttons"});function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=n(25)().decl(n(410))("tooltip__close"),m=Object(c.decl)({block:"tooltip",elem:"close",willInit:function(){this.__base.apply(this,arguments),this._onClick=this._onClick.bind(this)},attrs:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{onClick:this._onClick,title:y("close")})},_onClick:function(e){this.props.onClick&&this.props.onClick(e)}},{propTypes:{onClick:a.a.func}}),b=(n(411),n(412),n(109));n(201),n(413),n(211),n(212);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=u.a.applyDecls(),w=l.applyDecls(),E=f.applyDecls(),S=p.applyDecls(),k=m.applyDecls(),x=b.a.applyDecls();Object(c.decl)({block:"tooltip",willInit:function(){this.state={hovered:!1},this.onMouseOver=this.onMouseOver.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this._setInnerReference=this._setInnerReference.bind(this)},mods:function(e){var t=e.size,n=e.theme,r=e.view,o=e.tone,i=e.autoclosable,a=e.visible;return _({},this.__base.apply(this,arguments),{size:t,view:r,tone:o,theme:n,autoclosable:i,shown:Object(c.bool2string)(a),hovered:Object(c.bool2string)(this.state.hovered)})},render:function(){var e=this.block,t=this.props,n=t.anchor,r=t.autoclosable,i=t.popupProps,a=t.visible,c=t.view,u=t.tone,l=t.theme,f=t.children,p=t.secondaryOffset,h=t.tailOffset,d=t.scope,y=t.tail,m=t.cls,b=t.onOutsideClick,v=t.zIndexGroupLevel,g=void 0===this.props.mainOffset?this.props.offset:this.props.mainOffset,w=[].concat(this.props.to).map(function(e){return e.indexOf("-")<0&&(e+="-center"),e});return o.a.createElement(O,_({view:c,tone:u,mix:[].concat({block:e,mods:this.mods(this.props)},this.mix(this.props)||[]),cls:m,onMouseOver:this.onMouseOver,onMouseLeave:this.state.hovered?this.onMouseLeave:void 0,theme:"normal",target:"anchor",onOutsideClick:b,visible:a,mainOffset:g,secondaryOffset:"promo"===l?-30:p,tailOffset:"promo"===l?30:h,directions:w,autoclosable:r,anchor:n,scope:d,zIndexGroupLevel:v,ref:this._setInnerReference,getTailRef:this.getTailRef},i),o.a.createElement(s.a,{block:"tooltip",elem:"backdrop"},y&&o.a.createElement(x,null)),o.a.createElement(s.a,{block:"tooltip",elem:"content"},f))},onMouseOver:function(e){this.setState({hovered:!0}),this.props.onMouseOver&&this.props.onMouseOver(e)},onMouseLeave:function(e){this.setState({hovered:!1}),this.props.onMouseLeave&&this.props.onMouseLeave(e)},_setInnerReference:function(e){this._popupRef=e}},{Corner:w,Description:E,Buttons:S,Close:k,propTypes:{anchor:a.a.oneOfType([a.a.func,a.a.object]),autoclosable:a.a.bool,visible:a.a.bool,view:a.a.oneOf(["classic","default"]),tone:a.a.string,to:a.a.oneOfType([a.a.array,a.a.string]),offset:a.a.number,mainOffset:a.a.number,secondaryOffset:a.a.number,tailOffset:a.a.number,size:a.a.oneOf(["xs","s","m","l","n"]),theme:a.a.oneOf(["normal","error","success","white","promo"]),tail:a.a.bool,zIndexGroupLevel:a.a.number,onMouseOver:a.a.func,onMouseLeave:a.a.func,onOutsideClick:a.a.func,cls:a.a.string,popupProps:a.a.object},defaultProps:{to:["right-center","bottom-center","top-center","left-center"],tail:!0,view:"classic"}});function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P=Object(c.declMod)({view:"default"},{block:"tooltip",mods:function(e){var t=e.tone,n=e.pulsingTail;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(n,!0).forEach(function(t){j(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{tone:t,"pulsing-tail":Object(c.bool2string)(n)})}},{propTypes:{tone:a.a.string,pulsingTail:a.a.bool},defaultProps:{tone:"default",size:"n"}}),C=(n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),P.applyDecls()),T=n(72);function I(e){"@babel/helpers - typeof";return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t,n){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=L(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function M(e){return function(){var t,n=L(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=L(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;return z(e)}(this,t)}}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(n,C);var t=M(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onOutsideTouch=e._onOutsideTouch.bind(z(e)),e}return function(e,t,n){t&&D(e.prototype,t),n&&D(e,n)}(n,[{key:"componentWillUpdate",value:function(e,t){A(L(n.prototype),"componentWillUpdate",this)&&A(L(n.prototype),"componentWillUpdate",this).call(this,e,t),this.props.autoclosable&&this.props.onClose&&e.visible!==this.props.visible&&(e.visible?window.addEventListener("touchstart",this._onOutsideTouch):window.removeEventListener("touchstart",this._onOutsideTouch))}},{key:"_onOutsideTouch",value:function(e){e.target.closest(".tooltip")||this.props.onClose()}}]),n}();H.propTypes=Object.assign(C.propTypes,{cls:a.a.oneOfType([a.a.object,a.a.string])});var U=Object(T.a)(H);U.Description=C.Description,U.Buttons=C.Buttons;t.a=U},function(e,t,n){"use strict";function r(e){return e<10?"0"+e:String(e)}e.exports=function(e,t,n,o,i){void 0===t&&(t="DD.MM.YYYY HH:mm");var a=e instanceof Date?e:new Date(e);return t.replace(/([MDEYHhpms])\1{0,3}/g,function(e){switch(e){case"M":return a.getMonth()+1;case"MM":return r(a.getMonth()+1);case"MMMM":if(!n||!n.length)throw new TypeError("helpers/date/date-to-string::monthsNominative must be defined for MMMM format");return n[a.getMonth()];case"mmmm":if(!o||!o.length)throw new TypeError("helpers/date/date-to-string::monthsGenitive must be defined for mmmm format");return o[a.getMonth()];case"D":return a.getDate();case"DD":return r(a.getDate());case"E":if(!i||!i.length)throw new TypeError("helpers/date/date-to-string::weekDays must be defined for E format");return i[a.getDay()];case"YY":return a.getFullYear()%100;case"YYYY":return a.getFullYear();case"H":return a.getHours();case"HH":return r(a.getHours());case"h":return a.getHours()%12||12;case"p":return a.getHours()<12?"am":"pm";case"m":return a.getMinutes();case"mm":return r(a.getMinutes());case"s":return a.getSeconds();case"ss":return r(a.getSeconds());default:return e}})}},function(e,t,n){"use strict";var r=n(3),o=[r.SOCIAL.VK,r.SOCIAL.FB,r.SOCIAL.MAIL,r.SOCIAL.OK],i=[r.SOCIAL.FB,r.SOCIAL.MAIL],a=[r.SERVICES.DISK,r.SERVICES.SEARCH,r.SERVICES.CALENDAR,r.SERVICES.MAIL,r.SERVICES.MONEY,r.SERVICES.IMAGES,r.SERVICES.NEWS,r.SERVICES.MAPS,r.SERVICES.MARKET,r.SERVICES.WEATHER,r.SERVICES.TV,r.SERVICES.MUSIC,r.SERVICES.AFISHA,r.SERVICES.BROWSER,r.SERVICES.METRIKA,r.SERVICES.DIRECT],c=[r.SERVICES.DISK,r.SERVICES.SEARCH,r.SERVICES.CALENDAR,r.SERVICES.MAIL,r.SERVICES.IMAGES,r.SERVICES.NEWS,r.SERVICES.MAPS,r.SERVICES.WEATHER,r.SERVICES.AFISHA,r.SERVICES.BROWSER,r.SERVICES.METRIKA,r.SERVICES.DIRECT],s=[r.SERVICES.MAIL,r.SERVICES.CALENDAR];t.a={am:{shareServices:o,burgerServices:a,inlineHeaderServices:s},az:{shareServices:o,burgerServices:a,inlineHeaderServices:s},by:{shareServices:o,burgerServices:a,inlineHeaderServices:s},ee:{shareServices:o,burgerServices:a,inlineHeaderServices:s},com:{shareServices:i,burgerServices:c,inlineHeaderServices:s},fr:{shareServices:i,burgerServices:c,inlineHeaderServices:s},ge:{shareServices:o,burgerServices:a,inlineHeaderServices:s},il:{shareServices:i,burgerServices:c,inlineHeaderServices:s},kg:{shareServices:o,burgerServices:a,inlineHeaderServices:s},kz:{shareServices:o,burgerServices:a,inlineHeaderServices:s},lt:{shareServices:o,burgerServices:a,inlineHeaderServices:s},lv:{shareServices:o,burgerServices:a,inlineHeaderServices:s},md:{shareServices:o,burgerServices:a,inlineHeaderServices:s},ru:{shareServices:o,burgerServices:a,inlineHeaderServices:s},tj:{shareServices:o,burgerServices:a,inlineHeaderServices:s},tm:{shareServices:o,burgerServices:a,inlineHeaderServices:s},tr:{shareServices:i,burgerServices:c,inlineHeaderServices:s},ua:{shareServices:o,burgerServices:a,inlineHeaderServices:s},uz:{shareServices:o,burgerServices:a,inlineHeaderServices:s}}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(64),o=n(128);e.exports=n(37)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(129),o=n(130);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){},function(e,t){},function(e,t,n){var r=n(148),o=n(224);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var c=-1,s=t.length;++c<s;){var u=t[c],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=Object(i.declMod)({type:"link"},{block:"button2",tag:"a",willInit:function(){this.__base.apply(this,arguments),this.defaultPressKeys=["ENTER"]},attrs:function(e){var t=e.target,n=e.url,r=e.rel,o=e.tabIndex,i=void 0===o?0:o,s=this.state.disabled;return"_blank"===t&&r&&-1===r.indexOf("noopener")&&(r="".concat(r," noopener")),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{rel:r,target:t,type:void 0,autoComplete:void 0,href:s?void 0:n,disabled:void 0,tabIndex:s?-1:i})}},{propTypes:{url:o.a.string,target:o.a.string,type:o.a.string,rel:o.a.string}})},function(e,t,n){"use strict";function r(e){return e<10?"0"+e:String(e)}e.exports=function(e,t){var n=e<0;t=t||":",n&&(e=Math.abs(e));var o=Math.floor(e/3600),i=r(Math.floor(e%3600/60)),a=r(e%60);return(n?"-":"")+(o?o+t:"")+i+t+a}},function(e,t,n){var r=n(26)("unscopables"),o=Array.prototype;void 0==o[r]&&n(80)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports={}},function(e,t,n){var r=n(27),o=n(80),i=n(65),a=n(90)("src"),c=n(266),s=(""+c).split("toString");n(79).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(64).f,o=n(65),i=n(26)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(68),o=n(46),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){var r=n(56)(Object,"create");e.exports=r},function(e,t,n){var r=n(327),o=n(328),i=n(329),a=n(330),c=n(331);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(142);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(333);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(95),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(i.decl)({block:"control",willInit:function(e){var t=e.disabled,n=e.focused,r=e.pressed;this.state={disabled:t,focused:n,pressed:r},this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onClick=this.onClick.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.docOnMouseUp=this.docOnMouseUp.bind(this)},willReceiveProps:function(e){var t=e.disabled;t!==this.props.disabled&&this.setState({disabled:t}),t&&this.setState({focused:!1,pressed:!1})},mods:function(){var e=this.state,t=e.pressed,n=e.disabled,r=e.focused;return{disabled:Object(i.bool2string)(n),focused:n?void 0:Object(i.bool2string)(r),pressed:n?void 0:Object(i.bool2string)(t)}},attrs:function(){var e=this.state.disabled;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({onFocus:e?void 0:this.onFocus,onBlur:e?void 0:this.onBlur,onMouseDown:e?void 0:this.onMouseDown,onMouseUp:e?void 0:this.onMouseUp,onKeyUp:e?void 0:this.onKeyUp,onKeyDown:e?void 0:this.onKeyDown,onClick:e?void 0:this.onClick},this._getControlAttrs.apply(this,arguments))},_getControlAttrs:function(e){return e.controlAttrs},onMouseDown:function(e){3!==e.nativeEvent.which&&(this.setState({pressed:!0}),this.props.onMouseDown&&this.props.onMouseDown(e),this.docOnMouseDown())},onMouseUp:function(e){this.setState({pressed:!1}),this.props.onMouseUp&&this.props.onMouseUp(e)},onClick:function(e){this.props.onClick&&this.props.onClick(e)},onKeyDown:function(e){this.props.onKeyDown&&this.props.onKeyDown(e)},onKeyUp:function(e){this.props.onKeyUp&&this.props.onKeyUp(e)},onFocus:function(e){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},onBlur:function(e){this.setState({focused:!1}),this.props.onBlur&&this.props.onBlur(e)},docOnMouseDown:function(){document.addEventListener("mouseup",this.docOnMouseUp),document.addEventListener("dragend",this.docOnMouseUp)},docOnMouseUp:function(){this.setState({pressed:!1}),document.removeEventListener("mouseup",this.docOnMouseUp),document.removeEventListener("dragend",this.docOnMouseUp)}},{propTypes:{disabled:o.a.bool,focused:o.a.bool,pressed:o.a.bool,onFocus:o.a.func,onBlur:o.a.func,onMouseDown:o.a.func,onMouseUp:o.a.func,controlAttrs:o.a.object}})},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(19),a=n(2);Object(a.declMod)({target:"anchor"},{block:"popup2",willInit:function(){this.__base.apply(this,arguments),this._onDocumentChange=this._onDocumentChange.bind(this)},toggleWatchBaseEvents:function(e){this.__base.apply(this,arguments),e?document.addEventListener("documentchange",this._onDocumentChange):document.removeEventListener("documentchange",this._onDocumentChange)},_onDocumentChange:function(){this.forceUpdate()},_getAnchorDomNode:function(e){return"function"==typeof e?e():e},_calcBestDrawingParams:function(e){var t=e.anchor,n=this.__base.apply(this,arguments);t=Object(i.findDOMNode)(this._getAnchorDomNode(t));var r=this._getFirstFixedParent(t);if(r){var o=0,a=0,c=this._getFirstFixedParent(this._scope);if(c){var s=c.getBoundingClientRect();o=s.left,a=s.top}n.left-=window.pageXOffset-o,n.top-=window.pageYOffset-a}return this._style.popup.position=r?"fixed":"",n},_getFirstFixedParent:function(e){for(;e;){if(1===e.nodeType&&"fixed"===getComputedStyle(e).getPropertyValue("position"))return e;e=e.parentNode}},_calcTargetDimensions:function(e){var t=e.anchor;if(this.__base.apply(this,arguments),void 0===t||null===t)return{left:0,top:0,width:0,height:0};var n=Object(i.findDOMNode)(this._getAnchorDomNode(t)),r=n.getBoundingClientRect(),o=r.left,a=r.top;return{left:o+window.pageXOffset,top:a+window.pageYOffset,width:n.offsetWidth,height:n.offsetHeight}}},{propTypes:{anchor:o.a.oneOfType([o.a.func,o.a.object])}})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(527),o=n(143),i=n(528),a=n(236),c=n(529),s=n(68),u=n(192),l=u(r),f=u(o),p=u(i),h=u(a),d=u(c),y=s;(r&&"[object DataView]"!=y(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=y},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=Object(i.decl)({block:"menu",elem:"item",willUpdate:function(e,t){!this.state.hovered&&t.hovered&&(this.context.removeHover(),this.context.hoverItem(this))},attrs:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{onFocus:this.onFocus,onBlur:this.onBlur})},onFocus:function(e){if(this.context.isIE)e.stopPropagation();else{if(this.state.disabled)return!1;this.setState({hovered:!0}),this.props.onFocus&&this.props.onFocus(e)}},onBlur:function(e){if(this.context.isIE)e.stopPropagation();else{if(this.state.disabled)return!1;this.setState({hovered:!1}),this.props.onBlur&&this.props.onBlur(e)}},onMouseLeave:function(e){this.__base.apply(this,arguments),this.context.removeHover()}},{contextTypes:{hoverItem:o.a.func,removeHover:o.a.func,registerItem:o.a.func,unregisterItem:o.a.func,isIE:o.a.bool}})},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n(41),c=n.n(a),s=n(3),u=(n(605),n(16)),l=n(5),f=n(73),p=n(15),h=n(1),d=n.n(h),y=n(4),m=n.n(y);n(606);function b(e){"@babel/helpers - typeof";return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return function(){var t,n=O(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=O(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;return g(e)}(this,t)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E=function(){return m()()("direct")},S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(n,r["Component"]);var t=_(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onReceiveMessage=r._onReceiveMessage.bind(g(r)),r}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(n,[{key:"_getSearchParams",value:function(){var e=this.props,t=e.blockId,n=e.alignCenter,r=e.justifyCenter,o=e.useAdfox,i=e.adfoxOwnerId,a=e.adfoxParameters;return"?"+["blockId="+t,n&&"alignCenter=1",r&&"justifyCenter=1",o&&"useAdfox=1",i&&"ownerId="+i,a].filter(Boolean).join("&")}},{key:"_onReceiveMessage",value:function(e){var t=e.data||{},n=t.id,r=t.type,o=t.contentHeight;n===this._getSearchParams()&&this._iframe&&("click"===r?(this._iframe.click(),this.props.onClick(t)):"onRender"===r&&(this.props.fitHeight&&(this._iframe.style.height=o+"px"),this.props.onRenderAds(t)))}},{key:"componentDidMount",value:function(){window.addEventListener("message",this._onReceiveMessage)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this._onReceiveMessage)}},{key:"render",value:function(){var e=this,t=this.props,n=t.cls,r=t.iframeUrl,i=null;return t.blockId&&(i=o.a.createElement("iframe",{className:E().e("iframe"),ref:function(t){e._iframe=t},scrolling:"no",src:"".concat(r).concat(this._getSearchParams())})),o.a.createElement("div",{className:E().mix(n),ref:function(t){e._container=t,"function"==typeof e.props.refNode&&e.props.refNode(t)}},i)}}]),n}();S.propTypes={alignCenter:d.a.bool,justifyCenter:d.a.bool,blockId:d.a.string,cls:d.a.oneOfType([d.a.object,d.a.string]),iframeUrl:d.a.string.isRequired,refNode:d.a.func,fitHeight:d.a.bool,useAdfox:d.a.bool,adfoxOwnerId:d.a.number,adfoxParameters:d.a.string};var k=function(){};S.defaultProps={onClick:k,onRenderAds:k,fitHeight:!0};var x=S;function R(e){"@babel/helpers - typeof";return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e){return function(){var t,n=I(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=I(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;return T(e)}(this,t)}}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var A=function(){return m()()("direct-public")},M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(n,r["Component"]);var t=C(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={blockId:null,rightSubBlockId:null,adfoxParameters:null},e._setRightSubBlockId=e._setRightSubBlockId.bind(T(e)),e._onResizeDebounced=c()(e._onResize.bind(T(e)),250),e._onScroll=e._onScroll.bind(T(e)),e._setRightDirectBoxRef=e._setRightDirectBoxRef.bind(T(e)),e._directRef=null,e}return function(e,t,n){t&&P(e.prototype,t),n&&P(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.isMsieOrEdge&&window.addEventListener("scroll",this._onScroll)}},{key:"_setRightSubBlockId",value:function(e){if("right"===this.props.position){var t=null;e.contentHeight<310&&(t="R-I-104220-45"),this.setState({rightSubBlockId:t})}}},{key:"_getDirectBlockId",value:function(e){var t=this.props,n=t.directTouchNewAdsExperiment,r=t.position,o=t.platform,i=t.view,a=(e||{}).height,c="mobile"===o;switch(r){case"top":return c?n&&n.topDirectId||"R-I-267060-4":[s.RESOURCE_VIEWS.IMAGE,s.RESOURCE_VIEWS.VIDEO].includes(i)?"R-I-104220-28":"D-I-104220-5";case"right":return a>=900?"R-I-104220-3":a>=600?"R-I-104220-2":"R-I-104220-31";case"bottom":return c?n&&n.bottomDirectId||"R-I-267060-5":"R-I-104220-29";default:return"D-I-104220-8"}}},{key:"_getAdfoxOptions",value:function(){switch(this.props.position){case"bottom":return{blockId:"adfox_1565684006395383",adfoxParameters:"p1=cfnpr&p2=glsa"};case"right":return{blockId:"adfox_15656837779456205",adfoxParameters:"p1=cfnpq&p2=glrz"}}}},{key:"_isBlockCentered",value:function(){var e=this.props,t=e.position,n=e.view;return"top"===t&&[s.RESOURCE_VIEWS.DIR,s.RESOURCE_VIEWS.ALBUM,s.RESOURCE_VIEWS.IMAGE,s.RESOURCE_VIEWS.VIDEO].includes(n)}},{key:"_isBlockCenterJustified",value:function(){var e=this.props,t=e.position,n=e.view;return e.shouldUseAdfox&&"bottom"===t&&n===s.RESOURCE_VIEWS.ERROR}},{key:"_onResize",value:function(){if(!this.state.blockId&&this._directRef){var e=this._directRef.getBoundingClientRect();e.width>0&&(this._setBlockOptions(e),window.removeEventListener("resize",this._onResizeDebounced))}}},{key:"_onScroll",value:function(){this._rightDirectRef&&(window.pageYOffset>this._directTop?(this._rightDirectRef.style.position="fixed",this._rightDirectRef.style.top=0):this._rightDirectRef.style.position="static")}},{key:"_setBlockOptions",value:function(e){this.props.shouldUseAdfox?this.setState(this._getAdfoxOptions()):this.setState({blockId:this._getDirectBlockId(e)})}},{key:"_setRightDirectBoxRef",value:function(e){!this._rightDirectRef&&this.props.isMsieOrEdge&&(this._directTop=e.getBoundingClientRect().top),this._rightDirectRef=e}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.apiPrefix,i=n.platform,a=n.position,c=n.view,f=n.services,p=n.shouldUseAdfox,h=n.isWowExp,d=this.state,y=d.blockId,m=d.adfoxParameters,b=r+"/public/direct",v=o.a.createElement(x,{alignCenter:this._isBlockCentered(),justifyCenter:this._isBlockCenterJustified(),blockId:y,cls:A().m((e={platform:i,position:a},j(e,c,[s.RESOURCE_VIEWS.DIR,s.RESOURCE_VIEWS.ALBUM,s.RESOURCE_VIEWS.IMAGE,s.RESOURCE_VIEWS.VIDEO,s.RESOURCE_VIEWS.ERROR].includes(c)),j(e,"adfox",p),j(e,"wow",h),e)),refNode:function(e){if(e){var n=e.getBoundingClientRect();t._directRef=e,t.state.blockId||(0===n.width?window.addEventListener("resize",t._onResizeDebounced):t._setBlockOptions(n))}},onRenderAds:this._setRightSubBlockId,iframeUrl:b,fitHeight:"top"!==a,useAdfox:p,adfoxOwnerId:316011,adfoxParameters:m});return"bottom"===a?o.a.createElement("div",{className:A().e("bottom-direct-wrapper")},v,o.a.createElement(u.a,{cls:A().e("purchase"),target:"_blank",theme:"clear",url:"".concat(f.disk,"/tuning")},Object(l.i18n)("en","view-direct","ufo_remove_ads"))):"right"===a?o.a.createElement("div",{className:A().e("right-direct-wrapper").m({stretch:![s.RESOURCE_VIEWS.DIR,s.RESOURCE_VIEWS.ALBUM,s.RESOURCE_VIEWS.VIDEO].includes(c),wow:this.props.isWowExp})},o.a.createElement("div",{className:A().e("sticky-box"),ref:this._setRightDirectBoxRef},v,this.state.rightSubBlockId&&!p&&o.a.createElement(x,{blockId:this.state.rightSubBlockId,cls:A().m(j({position:a,exp_right:!0,platform:i},c,[s.RESOURCE_VIEWS.DIR,s.RESOURCE_VIEWS.ALBUM,s.RESOURCE_VIEWS.IMAGE,s.RESOURCE_VIEWS.VIDEO,s.RESOURCE_VIEWS.ERROR].includes(c))),iframeUrl:b}))):v}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._onResizeDebounced),window.removeEventListener("scroll",this._onScroll)}}]),n}();t.default=Object(i.b)(function(e,t){var n=t.position,r=e.ua.isMobile,o=e.environment,i=o.apiPrefix,a=o.experiments.flags.ad_public_touch_top_adaptive,c=o.useAdfox,s=e.services;return{platform:r?"mobile":"desktop",apiPrefix:i,services:s,directTouchNewAdsExperiment:a,shouldUseAdfox:c&&"top"!==n,isMsieOrEdge:Object(f.a)(e),isWowExp:Object(p.c)(e)}})(M)},function(e,t,n){"use strict";t.a=function(e,t){t?window.location.assign(e):(function(){var e=document.getElementById("download-iframe");return e||((e=document.createElement("iframe")).id="download-iframe",e.style.display="none",document.body.appendChild(e)),e}()).src=e}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("g",{fill:"currentColor"},o.a.createElement("circle",{cx:"8",cy:"2",r:"2"}),o.a.createElement("circle",{cx:"8",cy:"8",r:"2"}),o.a.createElement("circle",{cx:"8",cy:"14",r:"2"}))}}]),n}()},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);t.a=Object(i.decl)({block:"popup2",elem:"tail",attrs:function(e){var t=e.style,n=this.context,r=n.tailStyles,o=n.setTailRef;return{style:Object.keys(t)>0?t:r,ref:o}},content:function(e){return e.children}},{propTypes:{style:o.a.object},defaultProps:{style:{}},contextTypes:{tailStyles:o.a.object.isRequired,setTailRef:o.a.func.isRequired}})},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.a=Object(i.declMod)({type:"link"},{block:"menu",elem:"item",tag:"a",attrs:function(e){var t=e.url,n=e.target;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(n,!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{role:"link",href:t,target:n})}},{propTypes:{target:o.a.string,url:o.a.string}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=n.n(c);t.a=Object(c.decl)({block:"menu",elem:"group",tag:function(e){return e.isNavigation?"ul":this.__base()},attrs:function(){return{role:"group"}},content:function(e){var t=e.title,n=e.children,r=[];return t&&r.push(o.a.createElement(s.a,{block:this.block,elem:"title",attrs:{"aria-hidden":"true"}},t)),[].concat(r,n).map(function(e,t){return o.a.cloneElement(e,{key:"in-group-".concat(t)})})}},{propTypes:{title:a.a.string},isGroup:function(e){return e&&"function"==typeof e.type&&"menu__group"===e.type.displayName}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"currentColor",d:"M7 7h2v5H7zM7 4h2v2H7z"}),o.a.createElement("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"2"}))}}]),n}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("g",{fill:"currentColor",fillRule:"evenodd"},o.a.createElement("path",{d:"M13 6l-5 5-5-5z"}),o.a.createElement("path",{d:"M6 2h4v5H6zM3 12h10v2H3z"}))}}]),n}()},function(e,t,n){e.exports=n(681)},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(2);t.a=Object(i.decl)({block:"spin2",mods:function(e){var t=e.size,n=e.progress,r=e.position;return{size:t,view:e.view,tone:e.tone,position:r,progress:Object(i.bool2string)(n)}}},{propTypes:{view:o.a.string,tone:o.a.string,size:o.a.oneOf(["xxs","xs","s","m","l"]),progress:o.a.bool,position:o.a.oneOf(["center"])},defaultProps:{view:"default",tone:"default"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M6 2l17 10L6 22z"})}}]),n}()},function(e,t,n){"use strict";var r=n(2);t.a=Object(r.decl)({block:"link",elem:"inner",tag:"span"})},function(e,t,n){var r=n(568);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n.n(r),i=n(12);function a(e){"@babel/helpers - typeof";return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return function(){var t,n=u(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=u(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,i["a"]);var t=s(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&c(e.prototype,t),n&&c(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",d:"M16 7H3.8l5.6-5.6L8 0 0 8l8 8 1.4-1.4L3.8 9H16z"})}}]),n}()},function(e,t,n){var r=n(41),o=n(39),i="Expected a function";e.exports=function(e,t,n){var a=!0,c=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,c="trailing"in n?!!n.trailing:c),r(e,t,{leading:a,maxWait:t,trailing:c})}},function(e,t,n){"use strict";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=1073741824,i=[1,1024,1048576,o,1099511627776],a={};a.getSpaceObject=function(e,t,n,a){if(!t.length||t.length<i.length)throw new Error("helpers/space::units must be an array with minimum "+i.length+" items");a=a||{},"string"==typeof e&&(e=parseInt(e,10)),(e<0||e>r||isNaN(e))&&(e=0);var c=function(e){for(var t=i.length;t>=0;t--)if(e>=i[t])return t;return 0}(e),s=i[c],u=(e/s).toString().split("."),l=u[0],f=u[1],p=a.precision;a.length&&(p=a.length>l.length?a.length-l.length:0),p||0===p||(p=1048576===s?1:s>=o?2:0);var h=l;return p>0&&f&&(f.length>p&&(f=f.substr(0,p)),(f=f.replace(/0+$/,""))&&(h+=n+f)),{number:h,unit:t[c]}},a.getSpaceString=function(e,t,n,r){var o=this.getSpaceObject(e,t,n,r);return o.number+" "+o.unit},e.exports=a},function(e,t,n){"use strict";var r=n(11),o=n(0),i=n.n(o),a=n(6),c=n(21),s=n(18),u=n(17),l=n(10),f=n(15),p=n(3),h=n(5),d=n(1),y=n.n(d),m=n(4),b=n.n(m),v=n(49),_=n(51),g=n(44);n(470);function O(e){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e){return function(){var t,n=S(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=S(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x=function(){return b()()("menu-pane")},R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,o["Component"]);var t=E(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&w(e.prototype,t),n&&w(e,n)}(n,[{key:"_getMenu",value:function(e){return i.a.createElement(_.a,{size:"n",theme:"normal",view:"default",tone:"default",width:"max",paddingless:!0,wide:!0},e.map(function(e,t){return i.a.createElement(_.a.Item,{key:t,cls:e.cls,onClick:e.onClick},e.icon,e.text)}))}},{key:"_getRadioBox",value:function(e,t){return i.a.createElement(g.a,{key:t,value:e.value,view:"default",theme:"normal",size:"n",onChange:e.onChange,cls:x().e("radiobox")},e.items.map(function(e,t){return i.a.createElement(g.a.Radio,{key:t,value:e.value,cls:x().e("radio").mix(e.cls)},e.text)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cls,r=t.visible,o=t.items,a=t.isIosSafari,c=t.onClose;return i.a.createElement(v.a,{cls:x().mix(n),theme:"mobile-pane",visible:r,onClose:c,isIosSafari:a,autoclosable:!0},i.a.createElement("div",{className:x().e("content")},o.map(function(t,n){return"menu"===t.type||"radiobox"===t.type?i.a.createElement("div",{key:n,className:x().e("group")},t.name&&i.a.createElement("div",{className:x().e("group-name")},t.name),"radiobox"===t.type?e._getRadioBox(t,n):e._getMenu(t.items)):t.content})))}}]),n}();R.propTypes={cls:y.a.oneOfType([y.a.string,y.a.object]),visible:y.a.bool,items:y.a.array,isIosSafari:y.a.bool,onClose:y.a.func},R.defaultProps={onClose:function(){}};var j=R,P=n(60),C=n(61),T=n(62),I=n(63),D=(n(471),function(){return b()()("file-menu-pane")}),A=function(e){var t=e.menuItems,n=e.visible,r=e.onClose,o=e.isIosSafari,a=e.listingType,c=e.isDirOrAlbum,s=e.onListingTypeChange,u=e.closeMenu,l=e.isWowGridAvailable,f=function(e){return function(){s(e),u(!0)}},p=[{val:"menu-items-list-view",text:Object(h.i18n)("en","view-toolset","ufo_toolset_list_touch"),icon:i.a.createElement(C.a,null),cls:D().e("item").m({list:!0,inactive:"list"!==a}),onClick:f("list")},{val:"menu-item-icons-view",text:Object(h.i18n)("en","view-toolset","ufo_toolset_icons_touch"),icon:i.a.createElement(P.a,null),cls:D().e("item").m({icons:!0,inactive:"icons"!==a}),onClick:f("icons")},{val:"menu-item-tile-view",text:Object(h.i18n)("en","view-toolset","ufo_toolset_tiles_touch"),icon:i.a.createElement(T.a,null),cls:D().e("item").m({tile:!0,inactive:"tile"!==a}),onClick:f("tile")}];return l&&p.push({val:"menu-items-wow-view",text:Object(h.i18n)("en","view-toolset","ufo_toolset_wow_touch"),icon:i.a.createElement(I.a,null),cls:D().e("item").m({wow:!0,inactive:"wow"!==a}),onClick:f("wow")}),i.a.createElement(j,{visible:n,onClose:r,isIosSafari:o,cls:D(),items:[].concat(c?{type:"menu",items:p}:[]).concat({type:"menu",items:t})})};A.propTypes={listingType:y.a.string,onListingTypeChange:y.a.func,closeMenu:y.a.func.isRequired,isDirOrAlbum:y.a.bool};var M=A,z=n(36);function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N(e){e.preventDefault()}var H=function(e){return i.a.createElement(z.a,L({},e,{autoclosable:!0}),i.a.createElement("div",{onTouchMove:N},i.a.createElement(_.a,{cls:"file-menu",theme:"normal",size:"n",items:e.menuItems,view:"default",tone:"default"})))};H.propTypes={target:y.a.oneOf(["anchor","position"]),position:y.a.shape({left:y.a.number,top:y.a.number})},H.defaultProps={theme:"normal",target:"anchor",anchor:null,position:{left:0,top:0},directions:["bottom-right"]};var U=H,B=n(112),V=n(12);function F(e){"@babel/helpers - typeof";return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e){return function(){var t,n=Y(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Y(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(n,V["a"]);var t=G(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&W(e.prototype,t),n&&W(e,n)}(n,[{key:"getContentSVG",value:function(){return i.a.createElement("path",{fill:"currentColor",d:"M7 14h7V7H7v7zM5 5h11v11H5V5zm4-2v1-1zm1-3H0v10V0h10zM0 10v1h4-4v-1zM10 0h1v4-4h-1zM3 9h1-1zM0 0h11v4H9V2H2v7h2v2H0V0z"})}}]),n}(),X=n(113);function Z(e){"@babel/helpers - typeof";return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e){return function(){var t,n=Q(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Q(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Z(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(n,V["a"]);var t=J(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&$(e.prototype,t),n&&$(e,n)}(n,[{key:"getContentSVG",value:function(){return i.a.createElement("path",{d:"M2 4v10H0V2h5v2H2zm10 10H0v2h14v-5h-2v3zm2-10.737V8h2V0H8v2h4.435L6 8.435l1.414 1.414L14 3.262v.001z",fill:"currentColor"})}}]),n}();function ne(e){"@babel/helpers - typeof";return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e){return function(){var t,n=ie(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ie(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ce=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}(n,V["a"]);var t=oe(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&re(e.prototype,t),n&&re(e,n)}(n,[{key:"getContentSVG",value:function(){return this.props.isAndroid?i.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.702 4.237L4.97 7.104a2.518 2.518 0 0 1-.042.998l5.862 3.576a2.5 2.5 0 1 1-.736 1.308L4.145 9.382a2.5 2.5 0 1 1 .152-3.62l5.734-2.866a2.5 2.5 0 1 1 .671 1.341z"}):i.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 8h2v8H0V8h1.999v6H14V8zM8 0l4 5H9v7H7V5H3.999l4-5z"})}}]),n}();ce.propTypes=Object.assign({isAndroid:y.a.bool.isRequired},V.a.propTypes);var se=ce,ue=n(43);function le(e){"@babel/helpers - typeof";return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(){return(fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e){return function(){var t,n=de(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=de(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===le(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var me=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ye(e,t)}(n,o["Component"]);var t=he(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&pe(e.prototype,t),n&&pe(e,n)}(n,[{key:"_getMenuItems",value:function(){var e=this,t=this.props,n=t.resourceId,r=t.resourceView,o=t.infoTitle,a=t.countMenuFn,c=t.closeMenu,s=t.openPane,u=t.openDV,f=t.copyShortUrl,d=t.shareLink,y=t.download,m=t.save,v=t.needShowSaveAndDowloadButton,_=t.fetchPublicInfo,g=t.isMobile,O=t.isSmartphone,w=t.isAndroid,E=t.antiFileSharing,S=this.props.resources[n],k=S.meta.original,x=S.dvSearch,R=!S.parent,j="undefined"!=typeof navigator&&"function"==typeof navigator.share;return[{key:"open-original",text:Object(h.i18n)("en","entity-resource","ufo_resource__full_size"),icon:i.a.createElement(te,{iconSize:"m"}),visible:r===p.RESOURCE_VIEWS.IMAGE&&k,action:function(){if(Object(l.i)(e.props.resources[n])){var t=window.open("about:blank","_blank");_(n).then(function(){var r=e.props.resources[n].meta.original;t.document.location=r,t.focus()},function(){t.close()})}else window.open(k,"_blank")}},{key:"open-dv",text:Object(h.i18n)("en","actions","ufo_open"),icon:i.a.createElement(te,{iconSize:"m"}),visible:Boolean(x)&&r!==p.RESOURCE_VIEWS.IMAGE,action:function(){u(n)}},{key:"save-and-download-root",text:Object(h.i18n)("en","actions","ufo_save_and_download_disk"),icon:i.a.createElement(ue.a,{iconSize:"m"}),visible:v,action:function(){m(n,!0)}},{key:"copy-link",text:Object(h.i18n)("en","entities","ufo_copy_link"),icon:i.a.createElement(K,{iconSize:"m"}),visible:"undefined"!=typeof document&&document.queryCommandSupported("copy")&&R&&!j,action:f},{key:"share-link",text:Object(h.i18n)("en","actions","ufo_share_link"),icon:i.a.createElement(se,{isAndroid:w,iconSize:"m"}),visible:j&&R,action:d},{key:"save-and-download",text:Object(h.i18n)("en","actions","ufo_save_yadisk"),icon:i.a.createElement(ue.a,{iconSize:"m"}),visible:!R&&O&&E,action:function(){m(n,!0)}},{key:"download",text:Object(h.i18n)("en","actions","ufo_download"),icon:i.a.createElement(X.a,{iconSize:"m"}),visible:!R&&!E,action:function(){y(n)}},{key:"file-info",text:o,icon:i.a.createElement(B.a,{iconSize:"m"}),visible:!0,action:function(){s({type:"file-info",resourceId:n})}}].filter(function(e){return e.visible}).map(function(e){return{val:e.key,text:e.text,icon:g?e.icon:void 0,cls:b()()("file-menu").e(e.key).m(e.modifier),onClick:function(){!1!==e.action()&&(c(),a(e.key))}}})}},{key:"render",value:function(){var e=this._getMenuItems();return this.props.isMobile?i.a.createElement(M,fe({},this.props,{menuItems:e})):i.a.createElement(U,fe({},this.props,{menuItems:e}))}}]),n}();t.a=Object(r.b)(function(e,t){var n=t.resourceId,r=e.user.id,o=e.resources,i=e.rootResourceId,a=e.operations,c=e.ua,s=c.isIosSafari,p=c.isMobile,h=c.isSmartphone,d=c.OSFamily,y=e.environment,m=y.antiFileSharing,b=y.experiments.flags.disk_public_antifo_no_save_exp,v=o[n];return{resources:o,isOwner:o[i].uid===r,resourceView:Object(u.a)(v),isDirOrAlbum:Object(l.g)(v),infoTitle:Object(l.b)(v),isMobile:p,isSmartphone:h,isIosSafari:s,isAndroid:"Android"===d,antiFileSharing:m,isWowGridAvailable:Object(f.b)(e),needShowSaveAndDowloadButton:i===n&&!(a.save&&a.save[i])&&m&&p&&b}},{openPane:a.v,shareLink:a.C,openDV:a.o,copyShortUrl:a.m,download:s.a,save:s.h,fetchPublicInfo:c.e})(me)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(11),a=n(108),c=n(12);function s(e){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=f(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,c["a"]);var t=l(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("defs",null,o.a.createElement("g",{id:"more-shape"},o.a.createElement("circle",{cx:"12",cy:"6",r:"2"}),o.a.createElement("circle",{cx:"12",cy:"12",r:"2"}),o.a.createElement("circle",{cx:"12",cy:"18",r:"2"})),o.a.createElement("filter",{id:"more-shadow",width:"400%",height:"175%",x:"-150%",y:"-37.5%",filterUnits:"objectBoundingBox"},o.a.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),o.a.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"2"}),o.a.createElement("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}))),o.a.createElement("use",{fill:"#000",filter:"url(#more-shadow)",xlinkHref:"#more-shape"}),o.a.createElement("use",{fill:"#FFF",xlinkHref:"#more-shape"}))}}]),n}(),d=n(13),y=n(17),m=n(15),b=n(10),v=n(122),_=n(7),g=n(6),O=n(3);function w(e){"@babel/helpers - typeof";return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e){return function(){var t,n=x(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=x(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(n,r["Component"]);var t=k(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={menu:!1},e}return function(e,t,n){t&&S(e.prototype,t),n&&S(e,n)}(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.resourceId,r=t.listingType,i=t.isWowPublic,c=t.showMobileToolbar,s=t.isDirOrAlbum,u=t.resourceView,l=t.isMobile,f=t.cls,p=t.changeListingType,y=[O.RESOURCE_VIEWS.VIDEO,O.RESOURCE_VIEWS.IMAGE].includes(u),m=function(t){return function(){e.setState({menu:!1}),t&&Object(_.g)("close menu")}},b=i&&s&&!l?{theme:"raised",view:"default",tone:"default"}:{theme:"clear"};return o.a.createElement(o.a.Fragment,null,o.a.createElement(d.a,E({size:i?"n":"m",cls:f+" more-button"},b,{onClick:function(){e.setState({menu:!e.state.menu}),Object(_.g)(e.state.menu?"close menu":"open menu")},ref:function(t){e._infoButton=t}}),y&&!c?o.a.createElement(h,null):o.a.createElement(a.a,null)),o.a.createElement(v.a,{visible:this.state.menu,resourceId:n,onClose:m(!0),anchor:function(){return e._infoButton},closeMenu:m(),countMenuFn:_.g,listingType:r,onListingTypeChange:p}))}}]),n}();t.a=Object(i.b)(function(e){var t=e.rootResourceId,n=e.ua.isMobile,r=e.resources[t];return{resourceId:t,isMobile:n,listingType:Object(m.a)(e),resourceView:Object(y.a)(r),isWowPublic:Object(m.c)(e),isDirOrAlbum:Object(b.g)(r),showMobileToolbar:Object(m.e)(e)}},{openPane:g.v,changeListingType:g.f})(j)},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,c){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],l=0;(s=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){var r=n(79),o=n(27),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(126)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var r=n(30),o=n(27).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(83);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var r=n(269),o=n(179);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(133),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(125)("keys"),o=n(90);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(130);e.exports=function(e){return Object(r(e))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(55),o=n(286),i=n(287),a=n(45),c=n(132),s=n(288),u={},l={};(t=e.exports=function(e,t,n,f,p){var h,d,y,m,b=p?function(){return e}:s(e),v=r(n,f,t?2:1),_=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(i(b)){for(h=c(e.length);h>_;_++)if((m=t?v(a(d=e[_])[0],d[1]):v(e[_]))===u||m===l)return m}else for(y=b.call(e);!(d=y.next()).done;)if((m=o(y,v,d.value,t))===u||m===l)return m}).BREAK=u,t.RETURN=l},function(e,t,n){var r=n(92);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(67),o=n(100);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(316),o=n(332),i=n(334),a=n(335),c=n(336);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(56)(n(31),"Map");e.exports=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(2);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(r.declMod)({glyph:"*"},{block:"icon",mods:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{"has-glyph":"yes"})}})},function(e,t){},function(e,t,n){var r=n(224),o=n(142),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(226),o=n(517),i=n(229);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(514),o=n(46),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=s},function(e,t,n){(function(e){var r=n(31),o=n(515),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;e.exports=s}).call(this,n(103)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(190),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=c}).call(this,n(103)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(525),o=n(231),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(228)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(237);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=n(19),u=(n(101),n(47)),l=(n(58),n(146),Object(c.declMod)({glyph:"type-check"},{block:"icon",content:function(){return o.a.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",viewBox:"0 0 16 10"},o.a.createElement("path",{d:"M7.207 7.506L3.629 3.81 2.343 4.939l4.841 5.002 8.462-8.428L14.382.362z"}))}})),f=(n(84),n(147),n(434),Object(c.decl)({block:"menu",elem:"icon",render:function(){var e=this.block,t=this.elem,n=this.props,r=n.mix,i=n.children,a=n.size;return o.a.cloneElement(i,{size:a,mix:[].concat(r,{block:e,elem:t})})}})),p=Object(c.decl)({block:"menu",elem:"text",tag:"span"}),h=Object(c.decl)({block:"menu",elem:"list-item",tag:"li"});function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=u.a.applyDecls(),v=l.applyDecls(),_=f.applyDecls(),g=p.applyDecls(),O=h.applyDecls();Object(c.decl)(b,{block:"menu",elem:"item",didMount:function(){this.context.registerItem(this)},willUnmount:function(){this.context.unregisterItem(this)},attrs:function(e){var t=e.title,n=this.state,r=n.disabled,o=n.checked;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(n,!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{title:t,"aria-selected":!!o&&"true","aria-disabled":!!r&&"true"})},mods:function(){return this.__base.apply(this,arguments)},render:function(){return this.props.isNavigation?o.a.createElement(O,null,this.__base.apply(this,arguments)):this.__base.apply(this,arguments)},content:function(e){var t=e.size,n=e.icon,r=e.children,i=e.needIconGlyph,a=[];return(n?[n]:[]).concat(r).forEach(function(e,n){v.isIcon(e)&&0===n?a.push(o.a.createElement(_,d({size:t,key:"icon"},{mix:e.props.mix}),e)):a.push(o.a.createElement(g,{key:"text-".concat(n)},e))}),i&&a.unshift(o.a.createElement(v,{key:"check-icon",glyph:"type-check"})),a},getText:function(){return Object(s.findDOMNode)(this).textContent.trim()}},{isItem:function(e){return e&&"function"==typeof e.type&&"menu__item"===e.type.displayName},propTypes:{title:a.a.string,onClick:a.a.func},contextTypes:{registerItem:a.a.func,unregisterItem:a.a.func}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=(n(101),n(47)),u=n(58),l=(n(84),n(48)),f=Object(c.decl)({block:"button2",elem:"text",tag:"span",attrs:function(e){return e.attrs}}),p=(n(357),Object(c.decl)({block:"button2",elem:"icon",render:function(){var e=this.block,t=this.elem,n=this.props,o=n.children,i=n.side,a=n.size;return Object(r.cloneElement)(o,{size:a,mix:[].concat(o.props.mix,{block:e,elem:t,mods:{side:i}})})}}));n(358);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=s.a.applyDecls(),b=u.a.applyDecls(),v=l.a.applyDecls(),_=f.applyDecls(),g=p.applyDecls();Object(c.decl)(m,{block:"button2",willInit:function(e){var t=e.checked,n=e.progress;this.__base.apply(this,arguments),this.defaultPressKeys=["SPACE","ENTER"],this.defaultPrvntKeys=[],this.state.checked=t,n&&(this.state.disabled=n),this.onKeyPress=this.onKeyPress.bind(this),this.setReference=this.setReference.bind(this)},tag:function(e){return e.tag||"button"},willReceiveProps:function(e){var t=e.disabled,n=e.checked,r=e.progress,o=e.pressed,i=e.focused;this.__base.apply(this,arguments),r!==this.props.progress&&this.setState({disabled:t||r}),t||o===this.props.pressed||this.setState({pressed:o}),i!==this.props.focused&&this.setState({focused:i,pressed:i&&o}),n!==this.props.checked&&this.setState({checked:n})},willUpdate:function(e){this.__base.apply(this,arguments),this.control&&e.focused&&!this.state.focused&&this.control.focus()},mods:function(e){var t=e.view,n=e.tone,r=e.size,o=e.theme,i=e.pin,a=e.pale,s=e.width,u=e.progress,l=e.action,f=e.baseline,p=this.state,h=p.disabled,y=p.checked;return d({},this.__base.apply(this,arguments),{view:t,tone:n,size:r,theme:o,pin:i,width:s,action:Object(c.bool2string)(l),baseline:Object(c.bool2string)(f),pale:Object(c.bool2string)(a),checked:Object(c.bool2string)(y),disabled:Object(c.bool2string)(h),progress:Object(c.bool2string)(u)})},attrs:function(e){var t=e.title,n=e.id,r=e.name,o=e.val,i=e.tabIndex,a=e.style,c=e.attrs,s=(e.progress,this.state),u=s.disabled,l=s.checked;return d({},this.__base.apply(this,arguments),{id:n,title:t,name:r,style:a,disabled:u,value:o,type:"button",autoComplete:"off","aria-pressed":l,tabIndex:u?void 0:i,"aria-disabled":u,onKeyPress:u?void 0:this.onKeyPress,ref:this.setReference},c)},content:function(e){var t=e.size,n=e.textAttrs,i=e.text,a=e.icon,c=e.iconLeft,s=e.iconRight,u=e.children,l=[],f=[];return r.Children.forEach(u,function(e,i){1===r.Children.count(u)&&b.isIcon(e)?l.unshift(o.a.createElement(g,{key:"only-icon",size:t,children:e})):b.isIcon(e)&&0===i?l.unshift(o.a.createElement(g,{key:"icon-left",side:"left",size:t,children:e})):b.isIcon(e)&&l.length?l.unshift(o.a.createElement(g,{key:"icon-right",side:"right",size:t,children:e})):e&&(f.length||l.push(o.a.createElement(_,{key:"text",attrs:n},f)),f.push(e))}),i&&(f.length||l.push(o.a.createElement(_,{key:"text",attrs:n},f)),f.push(i)),a&&l.unshift(o.a.createElement(g,{key:"only-icon",size:t,children:b.isIcon(a)?a:o.a.createElement(b,a.mods)})),s&&l.unshift(o.a.createElement(g,{key:"icon-right",side:"right",size:t,children:b.isIcon(s)?s:o.a.createElement(b,s.mods)})),c&&l.unshift(o.a.createElement(g,{key:"icon-left",side:"left",size:t,children:b.isIcon(c)?c:o.a.createElement(b,c.mods)})),l},onKeyDown:function(e){v.is(e.keyCode,this.props.pressKeys||this.defaultPressKeys)&&(this.setState({pressed:!0}),v.is(e.keyCode,this.props.prvntKeys||this.defaultPrvntKeys)&&e.preventDefault()),this.__base.apply(this,arguments)},onKeyUp:function(e){v.is(e.keyCode,this.props.prvntKeys||this.defaultPrvntKeys)&&e.preventDefault(),v.is(e.keyCode,this.props.pressKeys||this.defaultPressKeys)&&this.setState({pressed:!1}),this.__base.apply(this,arguments)},onKeyPress:function(e){this.props.onKeyPress&&this.props.onKeyPress(e)},onClick:function(e){this.control&&this.control.focus(),this.__base.apply(this,arguments)},setReference:function(e){this.control=e,this.props.innerRef&&this.props.innerRef(e)},onMouseDown:function(e){this.__base.apply(this,arguments),e.preventDefault()}},{propTypes:{baseline:a.a.bool,theme:a.a.string.isRequired,size:a.a.oneOf(["ns","xs","s","m","l","n","head"]),id:a.a.string,name:a.a.string,title:a.a.string,tabIndex:a.a.number,text:a.a.string,type:a.a.string,iconLeft:a.a.object,iconRight:a.a.object,onClick:a.a.func,progress:a.a.bool,action:a.a.bool,pale:a.a.bool,checked:a.a.bool,innerRef:a.a.func,pressKeys:a.a.arrayOf(a.a.oneOf(v.list())),prvntKeys:a.a.arrayOf(a.a.oneOf(v.list()))},defaultProps:{view:"classic"}})},function(e,t,n){"use strict";e.exports=n(307)},function(e,t,n){"use strict";var r=n(2);t.a=Object(r.declMod)({type:"navigation"},{block:"menu",tag:"ul"})},function(e,t,n){"use strict";n.r(t);n(664);var r=n(0),o=n.n(r),i=n(11),a=n(5),c=n(14),s=n(16),u=n(1),l=n.n(u),f=n(36),p=n(51),h=n(12);function d(e){"@babel/helpers - typeof";return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return function(){var t,n=b(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=b(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(n,h["a"]);var t=m(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n)}(n,[{key:"getViewBox",value:function(){switch(this.props.type){case"be":case"ka":case"az":case"uz":case"hy":case"ro":case"kk":return"0 0 640 480";default:return null}}},{key:"getContentSVG",value:function(){switch(this.props.type){case"en":return o.a.createElement("g",null,o.a.createElement("path",{d:"M0 2h16v12H0z",fill:"#003671"}),o.a.createElement("path",{fill:"#FFF",d:"M15.982 2.01h-1.945l-3.995 2.985V2H5.959v3.01l-4.01-2.998H.02v1.456l3.372 2.536H.02V10h3.372L.02 12.535v1.457h1.929l4.01-2.998v3.01h4.083v-2.995l3.995 2.985h1.945v-1.457l-3.388-2.535h3.388V6.006h-3.388l3.388-2.536z"}),o.a.createElement("g",{fill:"#DC2F34"},o.a.createElement("path",{d:"M15.418 13.99l-5.314-3.992h1.845l4.03 3.04v.952zM.582 13.99l5.314-3.992H4.051l-4.03 3.04v.952zM5.896 6L.557 2.005H.018v.954L4.07 6zM10.1 5.995L15.438 2h.54v.954l-4.052 3.041z"}),o.a.createElement("path",{d:"M15.982 6.958h-6.94V2.001H6.917v4.957H.018v2.126h6.899V14h2.125V9.084h6.94z"})));case"ru":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#FFF",d:"M0 2h16v4H0z"}),o.a.createElement("path",{fill:"#E03A3E",d:"M0 10h16v4H0z"}),o.a.createElement("path",{fill:"#00539F",d:"M0 6h16v4H0z"}));case"tr":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#E62126",d:"M0 2h16v12H0z"}),o.a.createElement("g",{fill:"#FFF"},o.a.createElement("path",{d:"M7.856 9.565a2.968 2.968 0 0 1-2.518 1.389 2.96 2.96 0 0 1-2.966-2.953 2.96 2.96 0 0 1 2.966-2.954 2.97 2.97 0 0 1 2.518 1.389 2.266 2.266 0 0 0-1.634-.693 2.263 2.263 0 0 0-2.268 2.258 2.263 2.263 0 0 0 2.268 2.258 2.262 2.262 0 0 0 1.634-.693"}),o.a.createElement("path",{d:"M7.583 7.92l1.353-1.353 1.352 1.352-1.353 1.353z"})));case"uk":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#FFF200",d:"M0 8h16v6H0z"}),o.a.createElement("path",{fill:"#007CC3",d:"M0 2h16v6H0z"}));case"tt":return o.a.createElement("g",null,o.a.createElement("rect",{fill:"#008000",width:"16",height:"6",y:"1"}),o.a.createElement("rect",{fill:"#FFF",width:"16",height:"2",y:"7"}),o.a.createElement("rect",{fill:"#F00",width:"16",y:"9",height:"6"}));case"be":return o.a.createElement("g",null,o.a.createElement("defs",null,o.a.createElement("clipPath",{id:"by-flag"},o.a.createElement("path",{fillOpacity:".7",d:"M0 0h682.6v512H0z"}))),o.a.createElement("g",{fillRule:"evenodd",clipPath:"url(#by-flag)",transform:"scale(.9376 .9375)"},o.a.createElement("path",{fill:"#b20000",d:"M0 0h1024v340.1H0z"}),o.a.createElement("path",{fill:"#429f00",d:"M0 340.1h1024V512H0z"}),o.a.createElement("path",{fill:"#fff",d:"M0 0h113.4v512H0z"}),o.a.createElement("g",{fill:"#b20000",strokeWidth:"1pt"},o.a.createElement("path",{d:"M5.4 8.7h5.4v8.7H5.4zm16.2 0h16.2v8.7H21.6zM27 0h5.4v8.7H27zm27 0h5.4v8.7H54zm21.6 8.7h16.2v8.7H75.6zM81 0h5.4v8.7H81zM16.2 17.4H27V26H16.2zm16.2 0h10.8V26H32.4zm37.8 0H81V26H70.2zm16.2 0h10.8V26H86.4zM10.8 26h10.8v8.7H10.8zm27 0h10.8v8.7H37.8zm27 0h10.8v8.7H64.8zm27 0h10.8v8.7H91.8zm10.8-17.3h5.4v8.7h-5.4zm-97.2 26h10.8v8.7H5.4zm37.8 0H54v8.7H43.2zm54 0H108v8.7H97.2zm-86.4 26h10.8v8.7H10.8zm5.4 8.7H27v8.7H16.2zm21.6-8.6h10.8v8.6H37.8zm-5.4 8.6h10.8v8.7H32.4zm-10.8 8.7h16.2v8.7H21.6z"}),o.a.createElement("path",{d:"M27 86.8h5.4v8.7H27zm37.8-26h10.8v8.6H64.8zm5.4 8.6H81v8.7H70.2zm21.6-8.6h10.8v8.6H91.8zm-5.4 8.6h10.8v8.7H86.4zm-10.8 8.7h16.2v8.7H75.6zm5.4 8.7h5.4v8.7H81zM54 78h5.4v8.7H54zM0 78h5.4v8.7H0zm108 0h5.4v8.7H108zm-81 43.4h5.4v8.7H27zm-5.4 8.8h16.2v8.6H21.6zm-5.4 8.6h27v8.7h-27zM81 121.5h5.4v8.7H81zm-5.4 8.7h16.2v8.6H75.6zm-5.4 8.6h27v8.7h-27zm5.4 43.4h27v8.7h-27zm-10.8-34.7h37.8v8.7H64.8zm-54 0h37.8v8.7H10.8zm5.4 43.4h16.2v8.7H16.2zm-5.4-8.7h27v8.7h-27zM86.4 165h27v8.7h-27zM81 191h16.2v8.7H81z"}),o.a.createElement("path",{d:"M21.6 199.6H27v8.7h-5.4zm64.8 0h5.4v8.7h-5.4zM0 164.9h27v8.7H0zm48.6 17.3h16.2v8.7H48.6zM54 191h5.4v8.7H54zm-16.2-26h37.8v8.7H37.8zM59.4 34.7h10.8v8.7H59.4zm-10.8 8.7h16.2v8.7H48.6zm-5.4 8.7H54v8.6H43.2zm16.2 0h10.8v8.6H59.4zM0 43.4h10.8v8.7H0zm5.4 8.7h10.8v8.6H5.4zm97.2-8.7h10.8V52h-10.8zM97.2 52H108v8.6H97.2zM0 130h5.4v8.7H0zm108 0h5.4v8.7H108zm-59.4 69.5h16.2v8.7H48.6zm-5.4 8.7H54v8.6H43.2zm16.2 0h10.8v8.6H59.4zm-21.6 8.6h10.8v8.7H37.8zm27 0h10.8v8.7H64.8zm-32.4 8.7h10.8v8.7H32.4zm37.8 0H81v8.7H70.2zM27 234.3h10.8v8.7H27zm48.6 0h10.8v8.7H75.6zM16.2 243h16.2v8.7H16.2zm64.8 0h16.2v8.7H81zm10.8-8.7h10.8v8.7H91.8zm5.4-8.7H108v8.7H97.2zm5.4-8.7h10.8v8.7h-10.8zm-91.8 17.4h10.8v8.7H10.8zm-5.4-8.7h10.8v8.7H5.4zM0 217h10.8v8.7H0zm21.6 34.8H27v8.6h-5.4zm64.8 0h5.4v8.6h-5.4zm-32.4-26h5.4v8.6H54zm-16.2 26h5.4v8.6h-5.4zm32.4 0h5.4v8.6h-5.4zm-16.2 0h5.4v8.6H54zm-54 0h5.4v8.6H0zm108 0h5.4v8.6H108zM54 130.2h5.4v8.6H54zM27 43.4h5.4v8.7H27zm54 0h5.4v8.7H81zm-32.4 60.7h16.2v8.7H48.6zm-10.8 8.7H54v8.7H37.8zm5.4 8.7h5.4v8.7h-5.4zm-10.8-17.4h10.8v8.7H32.4zm5.4-8.6H54v8.6H37.8zm5.4-8.7h5.4v8.7h-5.4zm16.2 8.7h16.2v8.6H59.4zm5.4-8.7h5.4v8.7h-5.4zm5.4 17.3H81v8.7H70.2zm-10.8 8.7h16.2v8.7H59.4zm5.4 8.7h5.4v8.7h-5.4zm21.6-17.4h10.8v8.7H86.4zm5.4-8.6H108v8.6H91.8zm10.8 8.6h10.8v8.7h-10.8zm-10.8 8.7H108v8.7H91.8zm5.4 8.7h5.4v8.7h-5.4zm0-34.7h5.4v8.7h-5.4zM0 104h10.8v8.7H0zm5.4-8.6h16.2v8.6H5.4zm10.8 8.6H27v8.7H16.2zm-10.8 8.7h16.2v8.7H5.4z"}),o.a.createElement("path",{d:"M10.8 121.5h5.4v8.7h-5.4zm0-34.7h5.4v8.7h-5.4zm-5.4 69.4H27v8.7H5.4zm27 0H54v8.7H32.4zm27 0H81v8.7H59.4zm27 0H108v8.7H86.4zm-43.2 17.4h27v8.6h-27zm-37.8 0h27v8.6h-27zm75.6 0h27v8.6H81zm27 34.7h5.4v8.6H108zm-108 0h5.4v8.6H0zm5.4 295h5.4v-8.6H5.4zm16.2 0h16.2v-8.6H21.6zM27 512h5.4v-8.7H27zm27 0h5.4v-8.7H54zm21.6-8.7h16.2v-8.7H75.6zM81 512h5.4v-8.7H81zm-64.8-17.4H27V486H16.2zm16.2 0h10.8V486H32.4zm37.8 0H81V486H70.2zm16.2 0h10.8V486H86.4zM37.8 486h10.8v-8.7H37.8zm27 0h10.8v-8.7H64.8zm27 0h10.8v-8.7H91.8zm10.8 17.3h5.4v-8.7h-5.4zm-97.2-26h10.8v-8.7H5.4zm37.8 0H54v-8.7H43.2zm54 0H108v-8.7H97.2zm-86.4-26h10.8v-8.7H10.8zm5.4-8.7H27v-8.7H16.2zm21.6 8.7h10.8v-8.7H37.8zm-5.4-8.7h10.8v-8.7H32.4zm-10.8-8.7h16.2v-8.7H21.6zm5.4-8.7h5.4v-8.6H27zm37.8 26h10.8v-8.6H64.8zm5.4-8.6H81v-8.7H70.2zm21.6 8.7h10.8v-8.7H91.8zm-5.4-8.7h10.8v-8.7H86.4zm-10.8-8.7h16.2v-8.7H75.6zm5.4-8.7h5.4v-8.6H81zM54 434h5.4v-8.7H54zm-54 0h5.4v-8.7H0zm108 0h5.4v-8.7H108zm-81-43.4h5.4v-8.7H27zm-5.4-8.8h16.2v-8.6H21.6zm-5.4-8.6h27v-8.7h-27zM81 390.5h5.4v-8.7H81z"}),o.a.createElement("path",{d:"M75.6 381.8h16.2v-8.6H75.6zm-5.4-8.6h27v-8.7h-27zm5.4-43.4h27V321h-27zm-10.8 34.7h37.8v-8.7H64.8zm-54 0h37.8v-8.7H10.8zm5.4-43.4h16.2v-8.7H16.2zm-5.4 8.7h27V321h-27zM86.4 347h27v-8.7h-27zM81 321h16.2v-8.7H81zM0 347h27v-8.7H0zm48.6-17.3h16.2V321H48.6zM54 321h5.4v-8.7H54zm-16.2 26h37.8v-8.7H37.8zm21.6 130.2h10.8v-8.7H59.4zm-10.8-8.7h16.2V460H48.6zm-5.4-8.7H54v-8.7H43.2zm16.2 0h10.8v-8.7H59.4zM0 468.6h10.8V460H0zm5.4-8.7h10.8v-8.6H5.4zm97.2 8.7h10.8V460h-10.8zm-5.4-8.7H108v-8.6H97.2zM0 382h5.4v-8.7H0zm108 0h5.4v-8.7H108zm-64.8-78.2H54v-8.6H43.2zm16.2 0h10.8v-8.6H59.4zm-21.6-8.6h10.8v-8.7H37.8zm27 0h10.8v-8.7H64.8zm-32.4-8.7h10.8v-8.7H32.4zm37.8 0H81v-8.7H70.2zM27 277.7h10.8V269H27zm48.6 0h10.8V269H75.6zM16.2 269h16.2v-8.7H16.2zm64.8 0h16.2v-8.7H81zm10.8 8.7h10.8V269H91.8zm5.4 8.7H108v-8.7H97.2zm5.4 8.7h10.8v-8.7h-10.8zm-91.8-17.4h10.8V269H10.8zm-5.4 8.7h10.8v-8.7H5.4zM0 295h10.8v-8.7H0zm21.6-34.8H27v-8.6h-5.4zm32.4 26h5.4v-8.6H54zm0 95.5h5.4v-8.6H54zm-27 86.8h5.4V460H27zm54 0h5.4V460H81zM48.6 408h16.2v-8.7H48.6zm-10.8-8.7H54v-8.7H37.8zm5.4-8.7h5.4v-8.7h-5.4zM32.4 408h10.8v-8.7H32.4zm5.4 8.5H54V408H37.8zm5.4 8.7h5.4v-8.6h-5.4zm16.2-8.7h16.2V408H59.4zm5.4 8.7h5.4v-8.6h-5.4zm5.4-17.3H81v-8.7H70.2zm-10.8-8.7h16.2v-8.7H59.4zm5.4-8.7h5.4v-8.7h-5.4zM86.4 408h10.8v-8.7H86.4zm5.4 8.5H108V408H91.8zm10.8-8.6h10.8v-8.7h-10.8zm-10.8-8.7H108v-8.7H91.8zm5.4-8.7h5.4v-8.7h-5.4zm0 34.7h5.4v-8.6h-5.4zM0 408h10.8v-8.7H0zm5.4 8.5h16.2V408H5.4z"}),o.a.createElement("path",{d:"M16.2 407.9H27v-8.7H16.2zm-10.8-8.7h16.2v-8.7H5.4zm5.4-8.7h5.4v-8.7h-5.4zm0 34.7h5.4v-8.6h-5.4zm-5.4-69.4H27v-8.7H5.4zm27 0H54v-8.7H32.4zm27 0H81v-8.7H59.4zm27 0H108v-8.7H86.4zm-43.2-17.4h27v-8.6h-27zm-37.8 0h27v-8.6h-27zm75.6 0h27v-8.6H81zm27-34.6h5.4V295H108zm-108 0h5.4V295H0zm48.6-43.5H54v8.7h-5.4zm10.8 0h5.4v8.7h-5.4zm0-17.3h5.4v8.7h-5.4zm-10.8 0H54v8.7h-5.4zM10.8 477.3h10.8v8.7H10.8zm75.6-164.9h5.4v-8.7h-5.4zm-64.8 0H27v-8.7h-5.4zm27-8.7h16.2v8.7H48.6z"}))));case"ka":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#fff",d:"M0 0h640v480H0z"}),o.a.createElement("path",{fill:"red",d:"M272 0h96v480h-96z"}),o.a.createElement("path",{fill:"red",d:"M0 192h640v96H0z"}),o.a.createElement("path",{fill:"red",fillRule:"evenodd",d:"M146.8 373.1c1-16.8 4-31.1 4-31.1s-9.8 1-14.8 1c-4.9 0-14.8-1-14.8-1s3 14.3 4 31.2c-16.9-1-31.2-4-31.2-4s1 7.4 1 14.8-1 14.8-1 14.8 14.3-3 31.2-4c-1 16.9-4 31.2-4 31.2s7.4-1 14.8-1 14.8 1 14.8 1-3-14.3-4-31.2c16.9 1 31.2 4 31.2 4s-1-9.8-1-14.8c0-4.9 1-14.8 1-14.8s-14.3 3-31.1 4zm368-288c1-16.8 4-31.1 4-31.1s-9.8 1-14.8 1c-4.9 0-14.8-1-14.8-1s3 14.3 4 31.1c-16.9-1-31.2-3.9-31.2-3.9s1 7.4 1 14.8-1 14.8-1 14.8 14.3-3 31.2-4c-1 16.9-4 31.2-4 31.2s7.4-1 14.8-1 14.8 1 14.8 1-3-14.3-4-31.1c16.9 1 31.2 4 31.2 4s-1-10-1-14.9 1-14.8 1-14.8-14.3 3-31.2 4zm-368 0c1-16.8 4-31.1 4-31.1s-9.8 1-14.8 1c-4.9 0-14.8-1-14.8-1s3 14.3 4 31.2c-16.9-1-31.2-4-31.2-4s1 7.4 1 14.8-1 14.8-1 14.8 14.3-3 31.2-4c-1 16.9-4 31.2-4 31.2s7.4-1 14.8-1 14.8 1 14.8 1-3-14.3-4-31.2c16.9 1 31.2 4 31.2 4s-1-9.8-1-14.8c0-4.9 1-14.8 1-14.8s-14.3 3-31.1 4zm368 288c1-16.8 4-31.1 4-31.1s-9.8 1-14.8 1c-4.9 0-14.8-1-14.8-1s3 14.3 4 31.2c-16.9-1-31.2-4-31.2-4s1 7.4 1 14.8-1 14.8-1 14.8 14.3-3 31.2-4c-1 16.9-4 31.2-4 31.2s7.4-1 14.8-1 14.8 1 14.8 1-3-14.3-4-31.2c16.9 1 31.2 4 31.2 4s-1-9.8-1-14.8c0-4.9 1-14.8 1-14.8s-14.3 3-31.2 4z"}));case"az":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#3f9c35",d:"M.1 0h640v480H.1z"}),o.a.createElement("path",{fill:"#ed2939",d:"M.1 0h640v320H.1z"}),o.a.createElement("path",{fill:"#00b9e4",d:"M.1 0h640v160H.1z"}),o.a.createElement("circle",{cx:"304",cy:"240",r:"72",fill:"#fff"}),o.a.createElement("circle",{cx:"320",cy:"240",r:"60",fill:"#ed2939"}),o.a.createElement("path",{fill:"#fff",d:"M384 200l7.7 21.5 20.6-9.8-9.8 20.7L424 240l-21.5 7.7 9.8 20.6-20.6-9.8L384 280l-7.7-21.5-20.6 9.8 9.8-20.6L344 240l21.5-7.7-9.8-20.6 20.6 9.8L384 200z"}));case"uz":return o.a.createElement("g",null,o.a.createElement("path",{fill:"#1eb53a",d:"M0 320h640v160H0z"}),o.a.createElement("path",{fill:"#0099b5",d:"M0 0h640v160H0z"}),o.a.createElement("path",{fill:"#ce1126",d:"M0 153.6h640v172.8H0z"}),o.a.createElement("path",{fill:"#fff",d:"M0 163.2h640v153.6H0z"}),o.a.createElement("circle",{cx:"134.4",cy:"76.8",r:"57.6",fill:"#fff"}),o.a.createElement("circle",{cx:"153.6",cy:"76.8",r:"57.6",fill:"#0099b5"}),o.a.createElement("g",{fill:"#fff",transform:"matrix(1.92 0 0 1.92 261.1 122.9)"},o.a.createElement("g",{id:"uz-e"},o.a.createElement("g",{id:"uz-d"},o.a.createElement("g",{id:"uz-c"},o.a.createElement("g",{id:"uz-b"},o.a.createElement("path",{id:"uz-a",d:"M0-6L-1.9-.3 1 .7"}),o.a.createElement("use",{width:"100%",height:"100%",transform:"scale(-1 1)",xlinkHref:"#uz-a"})),o.a.createElement("use",{width:"100%",height:"100%",transform:"rotate(72)",xlinkHref:"#uz-b"})),o.a.createElement("use",{width:"100%",height:"100%",transform:"rotate(-72)",xlinkHref:"#uz-b"}),o.a.createElement("use",{width:"100%",height:"100%",transform:"rotate(144)",xlinkHref:"#uz-c"})),o.a.createElement("use",{width:"100%",height:"100%",y:"-24",xlinkHref:"#uz-d"}),o.a.createElement("use",{width:"100%",height:"100%",y:"-48",xlinkHref:"#uz-d"})),o.a.createElement("use",{width:"100%",height:"100%",x:"24",xlinkHref:"#uz-e"}),o.a.createElement("use",{width:"100%",height:"100%",x:"48",xlinkHref:"#uz-e"}),o.a.createElement("use",{width:"100%",height:"100%",x:"-48",xlinkHref:"#uz-d"}),o.a.createElement("use",{width:"100%",height:"100%",x:"-24",xlinkHref:"#uz-d"}),o.a.createElement("use",{width:"100%",height:"100%",x:"-24",y:"-24",xlinkHref:"#uz-d"})));case"hy":return o.a.createElement("g",null,o.a.createElement("path",{fill:"red",d:"M0 0h640v160H0z"}),o.a.createElement("path",{fill:"#00f",d:"M0 160h640v160H0z"}),o.a.createElement("path",{fill:"orange",d:"M0 320h640v160H0z"}));case"ro":return o.a.createElement("g",{fillRule:"evenodd",strokeWidth:"1pt"},o.a.createElement("path",{fill:"#00319c",d:"M0 0h213.3v480H0z"}),o.a.createElement("path",{fill:"#ffde00",d:"M213.3 0h213.4v480H213.3z"}),o.a.createElement("path",{fill:"#de2110",d:"M426.7 0H640v480H426.7z"}));case"kk":return o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{fill:"#6fdcff",d:"M0 0h640v480H0z"}),o.a.createElement("g",{fill:"#ffe400"},o.a.createElement("path",{d:"M60.2 467c3.3 3.2 2.2 8.5 11.3 7.8 13.8 0 14.2-8.4 14.2-14.3S65 446.4 64 437.7c-1-8.7 4.8-11 9.6-11 4.7 0 8 2.7 8 5.1S79.4 435 76 435s1.5-1.7-1.4-3-4.8 2-4.8 4c0 2.2 7.2 2.8 12 1.3 1 4.7 1.4 5-5.3 13 4.8-3.1 5.2-3.8 10.5-2-5.3-4.6-1.3-13.8-1.2-16.1s-1-5.1-3-6.5c-3.9-3.5-12.2-3.7-17.2-1.4-7.3 3.2-7.7 12.8-5.8 16L80 460.7c1.4 2.4 2 9.2-6.6 9.5-9 .7-12.2-11.6-13.8-15.7-2.1 4.5-4.5 16.8-13.6 16.1-8.6-.3-10.2-7-8.8-9.5l20.7-21c2-3.2 1.6-12.8-5.7-16-5-2.3-13.3-2-17.1 1.4-2.2 1.4-3.4 4.1-3.2 6.5s4.1 11.5-1.1 16c5.2-1.7 5.7-1 10.5 2-6.7-7.9-6.2-8.2-5.3-13 4.8 1.6 12 1 12-1.1s-2-5.6-4.9-4.2c-2.8 1.4 2 3.1-1.4 3.1-3.3 0-5.7-.7-5.7-3s3.3-5.3 8.1-5.3 10.5 2.4 9.5 11.1-22 18.1-22 24c0 6 1.4 13.1 15.2 13.1 9 .7 10.1-4.6 13.4-7.8z"}),o.a.createElement("path",{d:"M59.1 343.3c3.3-3.2 6-12.6 15-12 13.8 0 19 7.7 19 13.6 0 5.9-28 54-29 62.7-1 8.7 4.8 11.1 9.5 11.1 4.8 0 8.1-2.7 8.1-5.2s-2.4-3-5.7-3 1.4 1.7-1.4 3-4.8-2-4.8-4.1c0-2.1 7.2-2.8 12-1.2.9-4.7 1.3-5-5.3-13 4.8 3 5.2 3.8 10.5 2-5.3 4.6-1.4 13.7-1.2 16s-1 5.2-3.1 6.6c-3.8 3.5-12.2 3.6-17.2 1.4-7.2-3.3-7.6-12.8-5.7-16L87 346.6c1.5-2.4-2.3-10.4-10.9-10.7-9-.7-12.1 8.8-13.7 12.9l12.3-1s.5 2 0 3.2a110 110 0 0 0-12.3 1.6l-.5 6.2h6l-.4 2.8s-5.1-.4-5.6 0c-.5.3-1 6.2-1 6.2s-1 .4-2 .4-2-.4-2-.4-.4-5.9-.9-6.2c-.5-.4-5.6 0-5.6 0l-.5-2.8H56l-.5-6.2s-6-1.2-12.3-1.6c-.4-1.2 0-3.1 0-3.1l12.3.9c-1.6-4.1-4.7-13.6-13.7-13-8.6.4-12.4 8.4-11 10.8L58 405.2c1.9 3.1 1.5 12.7-5.7 16-5 2.2-13.4 2-17.2-1.4-2.1-1.4-3.3-4.2-3.1-6.5s4-11.6-1.2-16c5.3 1.7 5.8 1 10.5-2.1-6.6 8-6.2 8.3-5.2 13 4.7-1.6 11.9-1 11.9 1.2 0 2-2 5.5-4.8 4.1-2.8-1.4 2-3-1.4-3-3.3 0-5.7.6-5.7 3s3.3 5.2 8 5.2 10.5-2.4 9.6-11c-1-8.7-29-57-29-62.8 0-6 5.2-13.5 19-13.5 9-.7 12.3 8.7 15.5 11.9z"}),o.a.createElement("path",{d:"M59.1 319.4c3.3 3.2 6 12.6 15 12 13.8 0 19-7.7 19-13.6 0-5.9-28-54-29-62.7-1-8.7 4.8-11.1 9.5-11.1 4.8 0 8.1 2.7 8.1 5.2s-2.4 3-5.7 3 1.4-1.6-1.4-3-4.8 2-4.8 4.1c0 2.1 7.2 2.8 12 1.2.9 4.7 1.3 5-5.3 13 4.8-3 5.2-3.8 10.5-2-5.3-4.6-1.4-13.7-1.2-16s-1-5.2-3.1-6.6c-3.8-3.4-12.2-3.6-17.2-1.4-7.2 3.3-7.6 12.8-5.7 16L87 316c1.5 2.4-2.3 10.4-10.9 10.7-9 .7-12.1-8.8-13.7-12.9l12.3 1s.5-2 0-3.2a110 110 0 0 1-12.3-1.6l-.5-6.2h6l-.4-2.8s-5.1.4-5.6 0c-.5-.3-1-6.2-1-6.2s-1-.4-2-.4-2 .4-2 .4-.4 5.9-.9 6.2c-.5.4-5.6 0-5.6 0l-.5 2.8H56l-.5 6.2s-6 1.2-12.3 1.6c-.4 1.2 0 3.1 0 3.1l12.3-.9c-1.6 4.1-4.7 13.6-13.7 13-8.6-.4-12.4-8.4-11-10.8L58 257.5c1.9-3.2 1.5-12.7-5.7-16-5-2.2-13.4-2-17.2 1.4-2.1 1.4-3.3 4.2-3.1 6.5s4 11.5-1.2 16c5.3-1.7 5.8-1 10.5 2.1-6.6-8-6.2-8.3-5.2-13 4.7 1.6 11.9 1 11.9-1.2 0-2-2-5.5-4.8-4.1-2.8 1.4 2 3-1.4 3-3.3 0-5.7-.6-5.7-3s3.3-5.2 8-5.2 10.5 2.4 9.6 11c-1 8.7-29 57-29 62.8 0 6 5.2 13.5 19 13.5 9 .7 12.3-8.7 15.5-11.9z"}),o.a.createElement("path",{d:"M59.1 160.6c3.3-3.2 6-12.6 15-12 13.8 0 19 7.7 19 13.6 0 5.9-28 54-29 62.8-1 8.6 4.8 11 9.5 11 4.8 0 8.1-2.7 8.1-5.1s-2.4-3.2-5.7-3.2 1.4 1.8-1.4 3.2-4.8-2.1-4.8-4.2c0-2 7.2-2.8 12-1.2.9-4.7 1.3-5-5.3-13 4.8 3.1 5.2 3.8 10.5 2-5.3 4.6-1.4 13.8-1.2 16s-1 5.2-3.1 6.6c-3.8 3.5-12.2 3.6-17.2 1.4-7.2-3.3-7.6-12.8-5.7-16L87 164c1.5-2.4-2.3-10.4-10.9-10.7-9-.7-12.1 8.8-13.7 12.9l12.3-1s.5 2 0 3.2c-6.4.4-12.3 1.6-12.3 1.6l-.5 6.2h6l-.4 2.8s-5.1-.3-5.6 0-1 6.3-1 6.3-1 .3-2 .3-2-.3-2-.3-.4-6-.9-6.3c-.5-.3-5.6 0-5.6 0l-.5-2.8H56l-.5-6.2s-6-1.2-12.3-1.6c-.4-1.2 0-3.1 0-3.1l12.3.9c-1.6-4.1-4.7-13.6-13.7-13-8.6.4-12.4 8.4-11 10.8L58 222.5c1.9 3.2 1.5 12.7-5.7 16-5 2.2-13.4 2-17.2-1.4-2.1-1.4-3.3-4.2-3.1-6.5s4-11.5-1.2-16c5.3 1.7 5.8 1 10.5-2.1-6.6 8-6.2 8.3-5.2 13 4.7-1.6 11.9-.9 11.9 1.2 0 2-2 5.5-4.8 4.1-2.8-1.3 2-3-1.4-3-3.3 0-5.7.6-5.7 3s3.3 5.2 8 5.2 10.5-2.4 9.6-11c-1-8.7-29-56.9-29-62.8 0-5.9 5.2-13.5 19-13.5 9-.7 12.3 8.7 15.5 12z"}),o.a.createElement("path",{d:"M59.1 136.7c3.3 3.2 6 12.7 15 12 13.8 0 19-7.7 19-13.6 0-5.9-28-54-29-62.7-1-8.7 4.8-11.1 9.5-11.1 4.8 0 8.1 2.8 8.1 5.2s-2.4 3.1-5.7 3.1 1.4-1.7-1.4-3.1-4.8 2-4.8 4.1c0 2.1 7.2 2.8 12 1.2.9 4.7 1.3 5-5.3 13 4.8-3 5.2-3.8 10.5-2-5.3-4.5-1.4-13.7-1.2-16s-1-5.2-3.1-6.6c-3.8-3.4-12.2-3.6-17.2-1.3-7.2 3.2-7.6 12.8-5.7 15.9L87 133.4c1.5 2.4-2.3 10.4-10.9 10.8-9 .6-12.1-8.8-13.7-13l12.3 1s.5-2 0-3.2a111.5 111.5 0 0 1-12.3-1.5l-.5-6.3h6l-.4-2.8s-5.1.4-5.6 0c-.5-.3-1-6.2-1-6.2s-1-.4-2-.4-2 .4-2 .4-.4 5.9-.9 6.2c-.5.4-5.6 0-5.6 0l-.5 2.8H56l-.5 6.3s-6 1.1-12.3 1.5c-.4 1.3 0 3.2 0 3.2l12.3-1c-1.6 4.2-4.7 13.6-13.7 13-8.6-.4-12.4-8.4-11-10.8L58 74.8c1.9-3.1 1.5-12.7-5.7-16-5-2.2-13.4-2-17.2 1.4-2.1 1.4-3.3 4.2-3.1 6.5s4 11.6-1.2 16c5.3-1.7 5.8-1 10.5 2.1-6.6-8-6.2-8.3-5.2-13 4.8 1.6 11.9 1 11.9-1.2 0-2-2-5.5-4.8-4.1-2.8 1.4 2 3.1-1.4 3.1-3.3 0-5.7-.7-5.7-3.1s3.3-5.2 8-5.2 10.6 2.4 9.6 11c-1 8.7-29 57-29 62.8 0 6 5.2 13.6 19 13.6 9 .7 12.3-8.8 15.5-12z"}),o.a.createElement("path",{d:"M60.2 13c3.3-3.2 2.2-8.5 11.3-7.8 13.8 0 14.2 8.4 14.2 14.3S65 33.6 64 42.3c-1 8.7 4.8 11 9.6 11 4.7 0 8-2.7 8-5.1S79.4 45 76 45s1.5 1.7-1.4 3-4.8-2-4.8-4c0-2.2 7.2-2.9 12-1.3 1-4.7 1.4-5-5.3-13 4.8 3.1 5.2 3.8 10.5 2-5.3 4.6-1.3 13.8-1.2 16.1s-1 5.1-3 6.5c-4 3.7-12.3 3.7-17.3 1.5-7.3-3.2-7.7-12.8-5.8-16L80 19.3c1.4-2.4 2-9.2-6.6-9.5-9-.7-12.2 11.6-13.8 15.7C57.5 21 55.1 8.6 46 9.3c-8.6.3-10.2 7-8.8 9.5l20.7 21c2 3.2 1.6 12.8-5.7 16-5 2.3-13.3 2.1-17.1-1.4-2.2-1.4-3.4-4.1-3.2-6.5s4.1-11.5-1.1-16c5.2 1.7 5.7 1 10.4-2-6.6 7.9-6.1 8.2-5.2 13 4.8-1.6 12-1 12 1.1s-2 5.6-4.9 4.2c-2.8-1.4 2-3.1-1.4-3.1-3.3 0-5.7.7-5.7 3s3.3 5.3 8.1 5.3 10.5-2.4 9.5-11.1-22-18.1-22-24c0-6 1.4-13.1 15.2-13.1 9-.7 10.1 4.6 13.4 7.8z"})),o.a.createElement("g",{fill:"#ffe400",transform:"translate(-194.7 8.3) scale(1.0673)"},o.a.createElement("rect",{width:"170.2",height:"161.3",x:"425.9",y:"104.5",rx:"85.1",ry:"80.7"}),o.a.createElement("path",{d:"M507 56.4c-.8 0-4.6 26.8-6 32.8-1.4 13.5 18 13 14.8-.5L507 56.3zm6.8 259.8c.7 0 6.5-26.5 8.4-32.4 2.3-13.3-17.1-14-15-.4l6.6 32.8zM378.2 184.6c0 .7 27.9 6.3 34.1 8.1 14 2.3 15-16 .6-14l-34.7 6zm271.7 3.2c0-.7-28.2-5.3-34.5-6.9-14.1-1.7-14.2 16.6 0 14.1l34.5-7.2zM406.8 99.6c-.5.5 17.9 21.3 21.6 26.4 9.6 10 22.3-4 9.6-10.8l-31.2-15.5zm211.1 171c.5-.5-19.7-19.7-23.9-24.4-10.5-9.2-21.8 5.7-8.6 11.5l32.5 13zm-169-200c-.6.3 8 26.1 9.4 32.2 4.8 12.7 22.2 4.4 13.2-6.5L449 70.6zM572 303c.7-.3-6-26.6-6.9-32.7-3.9-13-21.8-6-13.7 5.6l20.7 27zm30.3-214.4c-.6-.5-22.8 16.6-28.2 20-10.7 9 3.8 21.2 11.2 9.3l17-29.3zm-183 193.7c.5.5 24-15 29.6-18.1 11.3-8.2-2.2-21.4-10.5-10l-19 28.1zm-35-144.1c-.3.6 24 14.7 29.3 18.4 12.5 6.5 19.8-10.5 5.5-13.2l-34.8-5.2zM638 236.6c.3-.6-23-16.3-28-20.3-12-7.4-20.5 9.1-6.4 12.7l34.4 7.6zM557.4 63.7c-.7-.2-14.6 23.4-18.3 28.5a7.8 7.8 0 0 0 14 4.7l4.3-33.2zM463.5 308c.7.3 16.3-22.4 20.3-27.3 7.3-11.6-10.4-19-13.7-5.6l-6.6 32.9zM386 238.7c.3.6 28-6 34.5-7 13.6-3.8 6-20.6-6-12.8L386 238.7zM638.1 136c-.2-.6-28.3 4.1-34.8 4.7-14 2.9-7.5 20.2 5 13.2l29.8-17.9z"}),o.a.createElement("path",{d:"M534.6 58.1c-.7-.1-10.1 25.4-12.9 31-4.1 13 15 16.2 14.7 2.4L534.7 58zM486.1 314c.7.2 12-24.7 15.2-30.2 5-12.6-13.8-17-14.5-3.3L486 314zm-9.7-253.4c-.7.2 1.9 27.2 1.9 33.4 1.9 13.3 20.6 8.7 14.4-3.7l-16.3-29.7zm68 251.9c.7-.1 0-27.2.5-33.4-.9-13.5-20-10.1-14.6 2.7l14 30.7zM428.2 83c-.6.4 12.7 24.3 15.2 30 7.2 11.7 22.7.7 11.8-8.6l-27-21.4zM593 290.9c.6-.4-11-25.2-13-31-6.3-12.1-22.5-2.1-12.4 7.8l25.4 23.2zM393 116.6c-.4.6 21.1 18.4 25.6 23 11.1 8.4 21.4-7.2 7.8-12.1L393 116.6zm234.2 139.7c.4-.6-19.7-19.8-23.9-24.6-10.4-9.1-21.8 5.8-8.6 11.6l32.5 13zm-249.6-97.8c-.2.7 26.3 10.8 32.1 13.7 13.4 4.5 17.7-13.4 3.1-13.8l-35.2.1zM645 216.3c.3-.6-25.4-12.4-31-15.7-13-5.4-18.7 12.2-4.2 13.6l35.2 2.1zM376.7 210c.1.6 28.7.2 35.2.7 14.2-.7 10.8-18.8-2.8-13.9L376.7 210zm270.2-45c0-.7-28.6-2.2-35-3.1-14.3-.2-12.2 18.1 1.7 14l33.3-11zm-245.7 98.4c.4.6 26-11.6 32-13.9 12.4-6.5 1-21.4-8.9-11.3l-23.1 25.2zm222.3-152.3c-.4-.6-26.7 9.9-33 11.8-12.9 5.7-2.6 21.3 8 11.9l25-23.7zM442.8 298.8c.6.3 18.9-20.5 23.5-24.9 8.7-10.7-8-20-12.9-7l-10.6 31.9zM582.5 75c-.5-.4-20.3 19.1-25.2 23.2-9.4 10.1 6.6 20.5 12.4 7.9L582.4 75z"}),o.a.createElement("g",{transform:"matrix(2.1824 0 0 2.0629 -405 -272.6)"},o.a.createElement("path",{d:"M360.1 247.9c.7 2.5.8 16.5 14.9 30 14 13.4 38 16.4 38 16.4s.1 1.9-1.6 2c-1.7.2-9.9-1.5-14-2.8-4-1.2-7.6-3.4-8-3.3-.5.2-1.3 1.6-2.5 1.4s-7-6.2-9.6-7.8a80.6 80.6 0 0 1-13.7-15.3c-2.8-4.5-3.5-7.5-4.4-7.5s-4.2 2.2-4.2 2.2-3-4.5-5.6-11.7c-2.7-7.2-2.4-11.4-1.8-11.7.7-.3.7 5.3 2.7 10.4 2 5.2 4.8 6.8 4.8 6.8s-1.8-2.7-3.2-9.4-2-13.2-1-15.2 1.9-2.6 2-2.5c.2.2-1.7 3.1-.4 10.8s4.8 14.2 5.6 13.9c.8-.3-.5-1.9-1-6.4s.5-7.3 1.6-7.7c.5-.4 1.3 5 1.4 7.4zm-9.8 12.8c-2.7-2.5-6.9-11.2-7.8-10.8-1 .5 6.8 13 7 14 .2 1.2 1.9 4.6.6 4.1s-10.6-10.3-9.5-8.4 8.1 10.5 7.7 11-5.8-4.8-6-4.1c-.1.6 5.3 5.8 5.2 6.4s-3.5-3.3-3.5-2.5 3.5 4.7 3.5 5.3-3-2.8-2-1c.9 2 3.5 3.7 3.4 4.3s-2.2-.8-2.2-.5c0 .3 3.9 1.7 4.8 2.8 1 1.1 7.4 8.5 12.2 12.2s18.6 10.2 19.6 10.2c.9 0 2.3-2 2-2.8-.3-.8-13.8-5.4-17.5-8.8-3.8-3.4-13-11.6-13.8-12-.7-.5-2.8-.3-2.8-.8s2.7.3 2.5 0c-.1-.3-3.7-1.9-3.6-2.2.2-.3 2.5.6 2.5.3s-4.2-2.6-4-3.1c.1-.5 3.1 1.4 3.1 1 0-.2-4-3-3.9-3.5.1-.5 3.1 2.2 3 1.6s-2.4-4-2.4-4.4c0-.5 3.6 3.4 4 2.6.2-.7-1.3-7.2-1.2-7.3s2.7 1.4 3.1.5c.5-1-1.8-2.3-4-4.1zm46.1 49.2c-1.9.3-2.8-.4-1.7-2 1.5 0 5.5-1.3 6.9-1.9s2.9-1.4 4.1-2.5c1.2-1.3 2 .7 1.3 1.8-.5.7-2.8 2-4.5 2.7-2.5.8-4.7 2-6.1 1.9zm12.5-5.1c-1.3-1.4-.2-2.4 1.7-3.5 2.8-1.5 2-3.6 5.6-5.3 1.6-1 24-10 31.3-14.8s27.8-20.3 33.3-31c5.4-10.6 2.8-11.4 3.6-11.8.7-.5 1.5 1.5 1.4 3.9-.2 2.3-2 9.3-1.4 10s8.2-5.5 11.4-13 5.6-15.3 7.1-15.3c1.6 0-2.6 12.8-5.3 17.8-2.6 5-5.7 7.5-5 8.6.8 1 8.6-5.5 11.3-10.3 2.6-4.9 5.1-9.2 5.6-8.3a34 34 0 0 1-6.7 16.1c-4.2 4.8-9.2 8.3-8.4 9 .7.8 6.4 1.6 12.3-2.4 6-4.1 6.6-10 7.3-9.7.8.3-.7 8.4-6.4 13.4s-13.2 5.5-13 6.6c.4 1 16.3-4.6 16-3.3-.3 1.2-20.6 9.2-20.8 10 0 .6 3.5.8 9-.5 5.4-1.2 10.6-5.5 11.3-4.5.2 1.4-3.9 4.8-10.1 6.4-6.3 1.6-9.4 3.7-9.6 4.2-.1.5 11.2-1.4 11.2-.8s-14.8 3.5-14.9 4.3c-.2.7 14-2.9 13.8-2-.4.7-19.3 6.3-19.1 6.6.1.4 15.8-3.4 15.5-2.8-.4.7-26.4 8-26.6 8.5-.2.4 23-5.2 22.8-4.7s-12 3.4-12 3.7c0 .3 9.5-1.5 9.3-1-.1.4-24 6.5-24.5 7.4-.5 1 12.4-2.5 12.2-.7s-27.7 11-27.8 9.3c-.2-1.7 16.7-6 16.6-6.5-.2-.5-9.7 1-9.9.1-.1-1 6.3-3 5.8-3.4-.5-.5-5.3 1.4-4.9.3.5-1.1 9.6-5.3 9.4-5.6-.1-.3-3.3 1-3 0 .4-1.1 19.7-6.7 19.4-7.4-.3-.6-8.9 1.4-9.7 1.6-.3-.6 12-5.2 11.8-6-.4-.7-6.6 2.7-7 1.8-.2-1 10.9-5.3 10.2-6s-5.7 1.8-6.4 1.1 10.5-8.4 8.8-8.6c-1.7-.1-3.8 2.4-4 .8.2-2 8.7-5.3 6.8-6.9-3-.9-13.1.7-17.3 3.2s-18.2 16.4-21.6 18.6c-3.4 2.1-15 7-17.2 8-3.4 1.2-4 3-7.5 4.8-6.3 1.7-6.2 3.6-9.2 4.7-1.1.3-12.4 5.7-12.5 5.3zm-15.8 7c-1.9 1-3.6 3.4-2.5 4.4.6 1.2 2.5-2.7 4-2.5l8 .4c4.3.3 6.4-.9 8.8-.7s7.7-1.3 10.2-1.3 3 .3 3.2-.8c.3-1-7.8-.3-11.4-.4-3.6-.2-8.1.7-10.8.7-2.5-.1-6.8-.9-9.5.2z"}),o.a.createElement("rect",{width:"3.4",height:"3",x:"401.7",y:"309.1",rx:"1.7",ry:"1.5"}),o.a.createElement("path",{d:"M445 307.7c1.7-.3 6.3 1.3 9.5 2 5.8 2.3 16.6 1.2 16.6 2.3s-.7 2.4-3.2 2.6-8.8-1-8.6-1 5 2.3 3.6 2.9-5.5-1.3-6.2-.8 3.8 1.4 3 1.7c-.6.3-3.7-.4-4.7-.3-1 .2.8 1.3-.4 1.7-1.2.5-3.2-.6-4-.3-.9.3 1.8 2 .6 2.2-1.2.2-4-.8-5.6-1-1.6 0 1.5 1.6.5 1.8-1 .1-3.8-1.3-4.5-1.3s0 2-1 2-2.2-1.7-2.8-1.7 0 2-1 2-1.4-2.1-2.2-2c-1 .2 0 2.7-1.4 2.5-1.3-.1-1.5-2.6-2.6-2.5-1 .2.2 2.5-.8 2.5s-1.2-2.3-2.2-2.5c-1-.1-.6 2.2-1.2 2.2s-1.2-2.2-1.6-2.2c-.3 0 0 2.2-1.2 2s-1.2-2.4-1.5-2.3c-.4.2-.4 1.8-1.2 1.8s-.9-1.6-1.2-1.4c-.4.1-1.6 2.1-2.4 1.8-.9-.3.2-1.9-.2-1.9s-1.4 1.1-2 1 0-1.4-.2-1.4-1.7.8-2.4.8-2.6 1-3.1.1c-.5-1 1.3-1 1.7-1.9.3-.9-1-3.6.4-4.5 1.3-1 5.6 1.3 12-.3 11.6-3.1 20.6-6.7 21.5-6.6z"}))));default:return null}}}]),n}();_.propTypes=Object.assign({type:l.a.oneOf(["en","ru","tr","uk","be","ka","az","uz","hy","ro","kk","tt"])},h.a.propTypes);var g=_,O=n(4),w=n.n(O);n(665);function E(e){"@babel/helpers - typeof";return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e){return function(){var t,n=R(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=R(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;return x(e)}(this,t)}}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var P=function(){return w()()("lang-select")},C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(n,r["Component"]);var t=k(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={popupVisible:!1},r._togglePopup=r._togglePopup.bind(x(r)),r._closePopup=r._closePopup.bind(x(r)),r}return function(e,t,n){t&&S(e.prototype,t),n&&S(e,n)}(n,[{key:"_togglePopup",value:function(){this.state.popupVisible||this.props.onOpen(),this.setState({popupVisible:!this.state.popupVisible})}},{key:"_closePopup",value:function(){this.setState({popupVisible:!1})}},{key:"_getTuneLink",value:function(e){var t=this.props,n=t.yandexLink,r=t.sk,o=t.retpath;return"".concat(n,"/portal/set/lang/?intl=").concat(e,"&sk=").concat(r,"&retpath=").concat(encodeURIComponent(o))}},{key:"_getItems",value:function(){var e=this;return this.props.langs.filter(function(t){return e.props.current!==t}).map(function(t){return o.a.createElement(p.a.Item,{key:t,type:"link",url:e._getTuneLink(t),onClick:e.props.onLangClick?e.props.onLangClick.bind(null,t):void 0},o.a.createElement(g,{type:t}),t.toUpperCase())})}},{key:"render",value:function(){var e=this,t=this._getItems();return o.a.createElement("span",{className:P().mix(this.props.cls)},o.a.createElement(s.a,{disabled:!t.length||this.props.disabled,ref:function(t){e._toggler=t},onClick:this._togglePopup,onClose:this._closePopup,pseudo:!0,theme:"ghost"},o.a.createElement(g,{type:this.props.current}),this.props.current.toUpperCase()),o.a.createElement(f.a,{anchor:function(){return e._toggler},autoclosable:!0,directions:["top-center","top-right"],onClose:this._closePopup,target:"anchor",theme:"normal",visible:this.state.popupVisible},o.a.createElement(p.a,{cls:P().e("menu"),size:"s",theme:"normal",type:"navigation",wide:!0},t)))}}]),n}();C.propTypes={current:l.a.string.isRequired,langs:l.a.arrayOf(l.a.string).isRequired,sk:l.a.string,retpath:l.a.string.isRequired,yandexLink:l.a.string.isRequired,disabled:l.a.bool,onLangClick:l.a.func,onOpen:l.a.func},C.defaultProps={onOpen:function(){}};var T=C,I=(n(666),function(){return w()()("footer")}),D=function(e){return o.a.createElement("footer",{className:I().mix(e.cls)},o.a.createElement("div",{className:I().e("left")},e.links.map(function(e,t){return o.a.createElement(s.a,{key:t,cls:I().e("link").mix(e.clsMix),url:e.url,target:"_blank",theme:"ghost",onClick:e.onClick},e.text)})),o.a.createElement("div",{className:I().e("right")},o.a.createElement("span",{className:I().e("copyright")},e.copyright),o.a.createElement(T,{cls:I().e("language-switcher"),langs:e.langs,current:e.currentLang,sk:e.sk,yandexLink:e.yandexLink,retpath:e.retpath,onOpen:e.onLangSelectOpen,onLangClick:e.onLangClick,disabled:e.languageSwitcherDisabled})))},A=n(29),M=n(7),z=n(23),L=n.n(z);function N(e){"@babel/helpers - typeof";return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function U(e){return function(){var t,n=V(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=V(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===N(t)||"function"==typeof t))return t;return B(e)}(this,t)}}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var W=(new Date).getFullYear(),G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(n,r["Component"]);var t=U(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onLangClick=e._onLangClick.bind(B(e)),e}return function(e,t,n){t&&H(e.prototype,t),n&&H(e,n)}(n,[{key:"_onLangClick",value:function(e){L.a.set("lang",e,{expires:30}),this.props.sk||location.reload()}},{key:"_getLinks",value:function(){var e=this.props,t=e.services,n=e.b2b,r=[{text:Object(a.i18n)("en","view-footer","ufo_footer__link_help"),url:t.support+(n?"/connect-disk/":"/disk/"),onClick:function(){return Object(M.c)("help")}},{text:Object(a.i18n)("en","view-footer","ufo_footer__link_abuse"),url:t.support+"/abuse/troubleshooting/disk/list.html",onClick:function(){return Object(M.c)("abuse")}}];return"ru"===this.props.servicesTld&&r.push({text:Object(a.i18n)("en","view-footer","ufo_footer__take_part_in_research"),url:t.www+"/jobs/usability",onClick:function(){return Object(M.c)("usability")}}),r}},{key:"render",value:function(){var e=this.props,t=e.checkingAuth,n=e.currentLang,r=e.availableLangs,i=e.services,u=e.url,l=e.sk,f=Object(a.i18n)("en","entities","ufo_yandex");return o.a.createElement(D,{links:this._getLinks(),copyright:o.a.createElement(c.a,{keyset:"entities",loc:"ufo_copyright"},o.a.createElement("span",{"data-ref":"current-copyright-year"},W),o.a.createElement(s.a,{"data-ref":"portal-link",url:i.www,theme:"ghost"},f)),langs:r,currentLang:n,sk:l,retpath:Object(A.b)(Object.assign({},u,{host:Object(A.c)(i.disk),pathname:"/auth/retpath"+u.pathname})),onLangSelectOpen:function(){return Object(M.c)("language")},onLangClick:this._onLangClick,languageSwitcherDisabled:t,yandexLink:i.www})}}]),n}();t.default=Object(i.b)(function(e){var t=e.user,n=t.loading,r=t.b2b,o=e.environment,i=o.currentLang,a=o.availableLangs,c=o.externalSk,s=o.servicesTld;return{checkingAuth:n,currentLang:i,availableLangs:a,services:e.services,url:e.url,b2b:r,sk:c,servicesTld:s}})(G)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2),s=n(58),u=(n(84),n(101),n(47)),l=n(117),f=(n(218),Object(c.decl)({block:"link",elem:"icon",render:function(){var e=this.block,t=this.elem,n=this.props,o=n.side,i=n.children;return Object(r.cloneElement)(i,{mix:[].concat(i.props.mix,{block:e,elem:t,mods:{side:o}})})}}));n(492);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=s.a.applyDecls(),m=u.a.applyDecls(),b=l.a.applyDecls(),v=f.applyDecls();t.a=Object(c.decl)(m,{block:"link",tag:function(e){return e.url?"a":"span"},mods:function(e){var t=e.size,n=e.theme,r=e.nonvisual,o=e.inner;return h({},this.__base.apply(this,arguments),{size:t,theme:n,inner:Object(c.bool2string)(o),nonvisual:Object(c.bool2string)(r)})},attrs:function(e){var t=e.id,n=e.name,r=e.title,o=e.target,i=e.rel,a=e.tabIndex,c=e.style,s=e.url,u=e.attrs,l=this.state.disabled;return"_blank"===o&&i&&-1===i.indexOf("noopener")&&(i="".concat(i," noopener")),h({},this.__base.apply(this,arguments),{id:t,name:n,title:r,style:c,target:o,rel:i,href:s,role:s?void 0:"button",tabIndex:l?s?-1:void 0:a,"aria-disabled":l?"true":void 0},u)},content:function(e){var t=e.text,n=e.icon,i=e.iconLeft,a=e.iconRight,c=e.children,s=[],u=[],l=this._hasIconFromContent(this.props),f=[n,i,a].filter(Boolean),p=t||f.length>1;if(r.Children.forEach(c,function(e,t){if(y.isIcon(e)){var n=1===r.Children.count(c)?"":0===t?"left":"right";s.push(o.a.createElement(v,{key:"icon-"+t,side:n,children:e}))}else e&&(u.length||s.push(l?o.a.createElement(b,{key:"inner"},u):u),u.push(e))}),s.length)return s;if(n&&s.unshift(o.a.createElement(v,{key:"icon-default",side:p?"left":"",children:y.isIcon(n)?n:o.a.createElement(y,n)})),i&&s.unshift(o.a.createElement(v,{key:"icon-side-left",side:p?"left":"",children:y.isIcon(i)?i:o.a.createElement(y,i)})),t){if(!u.length){var h=this._hasIconFromFields(this.props);s.push(h?o.a.createElement(b,{key:"inner"},u):u)}u.push(t)}return a&&s.push(o.a.createElement(v,{key:"icon-side-right",side:p?"right":"",children:y.isIcon(a)?a:o.a.createElement(y,a)})),s},_hasIconFromContent:function(e){var t=e.children;return r.Children.toArray(t).some(function(e){return y.isIcon(e)})},_hasIconFromFields:function(e){var t=e.icon,n=e.iconLeft,r=e.iconRight;return t||n||r}},{propTypes:{theme:a.a.string.isRequired,pseudo:a.a.bool,nonvisual:a.a.bool,id:a.a.string,url:a.a.string,target:a.a.string,title:a.a.string,name:a.a.string,tabIndex:a.a.string,text:a.a.string,icon:a.a.object,iconLeft:a.a.object,iconRight:a.a.object,onClick:a.a.func,rel:a.a.string},defaultProps:{onClick:function(){},tabIndex:"0"}})},function(e,t,n){"use strict";(function(e,r){var o,i=n(253);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(66),n(308)(e))},function(e,t,n){"use strict";function r(e,t){return e===t}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}(t,n,arguments)||(o=e.apply(null,arguments)),n=arguments,o}}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=0,c=r.pop(),s=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),u=e.apply(void 0,[function(){return a++,c.apply(null,arguments)}].concat(n)),l=o(function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return u.apply(null,e)});return l.resultFunc=c,l.recomputations=function(){return a},l.resetRecomputations=function(){return a=0},l}}t.__esModule=!0,t.defaultMemoize=o,t.createSelectorCreator=i,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})};var a=t.createSelector=i(o)},function(e,t,n){e.exports=!n(37)&&!n(81)(function(){return 7!=Object.defineProperty(n(127)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(30);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(126),o=n(33),i=n(92),a=n(80),c=n(91),s=n(267),u=n(94),l=n(271),f=n(26)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,d,y,m,b){s(n,t,d);var v,_,g,O=function(e){if(!p&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",E="values"==y,S=!1,k=e.prototype,x=k[f]||k["@@iterator"]||y&&k[y],R=x||O(y),j=y?E?O("entries"):R:void 0,P="Array"==t&&k.entries||x;if(P&&(g=l(P.call(new e)))!==Object.prototype&&g.next&&(u(g,w,!0),r||"function"==typeof g[f]||a(g,f,h)),E&&x&&"values"!==x.name&&(S=!0,R=function(){return x.call(this)}),r&&!b||!p&&!S&&k[f]||a(k,f,R),c[t]=R,c[w]=h,y)if(v={values:E?R:O("values"),keys:m?R:O("keys"),entries:j},b)for(_ in v)_ in k||i(k,_,v[_]);else o(o.P+o.F*(p||S),t,v);return v}},function(e,t,n){var r=n(45),o=n(268),i=n(179),a=n(134)("IE_PROTO"),c=function(){},s=function(){var e,t=n(127)("iframe"),r=i.length;for(t.style.display="none",n(180).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(82),o=n(132),i=n(270);e.exports=function(e){return function(t,n,a){var c,s=r(t),u=o(s.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(27).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(55),o=n(129),i=n(135),a=n(132),c=n(273);e.exports=function(e,t){var n=1==e,s=2==e,u=3==e,l=4==e,f=6==e,p=5==e||f,h=t||c;return function(t,c,d){for(var y,m,b=i(t),v=o(b),_=r(c,d,3),g=a(v.length),O=0,w=n?h(t,g):s?h(t,0):void 0;g>O;O++)if((p||O in v)&&(m=_(y=v[O],O,b),e))if(n)w[O]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return O;case 2:w.push(y)}else if(l)return!1;return f?-1:u||l?l:w}}},function(e,t,n){var r=n(83),o=n(26)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r,o,i,a=n(55),c=n(290),s=n(180),u=n(127),l=n(27),f=l.process,p=l.setImmediate,h=l.clearImmediate,d=l.MessageChannel,y=l.Dispatch,m=0,b={},v=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},_=function(e){v.call(e.data)};p&&h||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++m]=function(){c("function"==typeof e?e:Function(e),t)},r(m),m},h=function(e){delete b[e]},"process"==n(83)(f)?r=function(e){f.nextTick(a(v,e,1))}:y&&y.now?r=function(e){y.now(a(v,e,1))}:d?(i=(o=new d).port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in u("script")?function(e){s.appendChild(u("script")).onreadystatechange=function(){s.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:p,clear:h}},function(e,t,n){"use strict";var r=n(93);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){"use strict";var r=n(27),o=n(64),i=n(37),a=n(26)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(26)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){var r=n(90)("meta"),o=n(30),i=n(65),a=n(64).f,c=0,s=Object.isExtensible||function(){return!0},u=!n(81)(function(){return s(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&s(e)&&!i(e,r)&&l(e),e}}},function(e,t,n){var r=n(30);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";var r="",o={};e.exports={setTankerProjectId:function(e){return r=e},getKey:function(e,t,n,r){return o[e][t][n](r)},addTranslation:function(e,t){return o[e]=t[r]}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(66))},function(e,t,n){var r=n(68),o=n(39),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==c||t==i||t==s}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(2);n(40),n(59),n(57),n(85),Object(r.declMod)({target:"position"},{block:"popup2",willInit:function(){this.__base.apply(this,arguments),this.defaultMainOffset=0,this.defaultViewportOffset=0},_calcTargetDimensions:function(e){var t=e.position;return{left:t.left,top:t.top,width:0,height:0}}})},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n.n(o),a=n(19);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(n,!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(48).a.applyDecls();Object(r.decl)({block:"menu",willInit:function(e){e.val;this.__base.apply(this,arguments),this.onKeyDown=this.onKeyDown.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.hoverItem=this.hoverItem.bind(this),this.removeHover=this.removeHover.bind(this),this.scrollToItem=this.scrollToItem.bind(this),this._isNav=this._isNav.bind(this)},getChildContext:function(){return s({},this.__base.apply(this,arguments),{hoverItem:this.hoverItem,removeHover:this.removeHover})},attrs:function(e){var t=e.disabled;return s({onFocus:t?void 0:this.onFocus,onBlur:t?void 0:this.onBlur,onKeyDown:t?void 0:this.onKeyDown,onKeyPress:t?void 0:this.onKeyPress,onKeyUp:t?void 0:this.onKeyUp},this.__base.apply(this,arguments))},onFocus:function(e){this._hoveredItem||!this.items[0]||this._isNav()||(this.hoverItem(this.items[0]),this.scrollToItem(this._hoveredItem)),this.props.onFocus&&this.props.onFocus(e)},onBlur:function(e){this.removeHover(),this.props.onBlur&&this.props.onBlur(e)},onKeyDown:function(e){if(this._isNav())return!1;var t=e.keyCode;l.is(t,"SPACE")&&e.preventDefault(),l.is(t,"UP","DOWN")&&(e.preventDefault(),this.hoverNext(l.is(t,"UP")),this._dropSearchCache())},onKeyUp:function(e){if(l.is(e.keyCode,"ENTER","SPACE")){var t=this._hoveredItem;if(!t)return;var n=void 0===t.props.val?null:t.props.val;t.props.onClick&&t.props.onClick(e,n)}},onKeyPress:function(e){var t=Number(new Date),n=e.charCode,r=String.fromCharCode(n).toLowerCase(),o=r===this._lastChar&&1===this._searchTerm.length,i=this._hoveredItem,a=this.items,c=a.indexOf(i);if(n<=l.SPACE||e.ctrlKey||e.altKey||e.metaKey)this._lastTime=t;else{t-this._lastTime>this.SEARCH_TIMEOUT||o?this._searchTerm=r:this._searchTerm=(this._searchTerm||"")+r,this._lastChar=r,this._lastTime=t,c=c>=0?c:0;var s=i?i.getText():"";o&&0===this._normalizeText(s).indexOf(this._searchTerm)&&(c=c>=a.length-1?0:c+1),this.hoverText(this._searchTerm,c)}},hoverItem:function(e){this._hoveredItem!==e&&(this._hoveredItem&&this._hoveredItem.setState({hovered:!1}),!e.props.disabled&&e.setState({hovered:!0}),this._hoveredItem=e)},removeHover:function(){this._hoveredItem&&(this._hoveredItem.setState({hovered:!1}),this._hoveredItem=null)},hoverNext:function(e){var t,n=this.items.slice();n=e?n.reverse():n;for(var r,o=0,i=!1;r=n[o];o++)if(!r.props.disabled)if(r.state.hovered)i=!0;else{if(i){t=r;break}t||(t=r)}t&&(this.removeHover(),this.hoverItem(t),this.scrollToItem(t))},hoverText:function(e,t){if(this.items.length)for(var n,r=this.items,o=this._normalizeText(e),i=r.length,a=t||0;a<i;){if(!(n=r[a]).props.disabled&&0===this._normalizeText(n.getText()).indexOf(o))return this.removeHover(),this.hoverItem(n),void this.scrollToItem(n);++a===r.length&&(a=0,i=t)}},scrollToItem:function(e){var t=Object(a.findDOMNode)(e),n=Object(a.findDOMNode)(this),r=n.getBoundingClientRect().top,o=t.getBoundingClientRect().top,i=0;o<r?i=o-r:(i=o+t.offsetHeight-r-n.offsetHeight)<0&&(i=0),n.scrollTop=n.scrollTop+i},_normalizeText:function(e){return(e||"").toLowerCase().replace(/ё/,"е")},_dropSearchCache:function(){this._lastTime=this._lastChar=this._searchTerm=void 0},_isNav:function(){return"navigation"===this.props.type},SEARCH_TIMEOUT:1500},{childContextTypes:{hoverItem:i.a.func,removeHover:i.a.func,registerItem:i.a.func,unregisterItem:i.a.func}})},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(97),o=n(506),i=n(507),a=n(508),c=n(509),s=n(510);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=c,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(225);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(56),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(513),o=n(150),i=n(38),a=n(151),c=n(152),s=n(227),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&s(e),h=n||l||f||p,d=h?r(e.length,String):[],y=d.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||c(m,y))||d.push(m);return d}},function(e,t,n){var r=n(516),o=n(154),i=n(155),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(191),o=n(153);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(226),o=n(520),i=n(229);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(158),o=n(159),i=n(157),a=n(231),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t,n){var r=n(234),o=n(157),i=n(149);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(158),o=n(38);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(234),o=n(232),i=n(230);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(56)(n(31),"Set");e.exports=r},function(e,t,n){var r=n(31).Uint8Array;e.exports=r},function(e,t,n){var r=n(548),o=n(551),i=n(553);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t){},function(e,t,n){var r=n(241),o=n(572),i=n(242),a=1,c=2;e.exports=function(e,t,n,s,u,l){var f=n&a,p=e.length,h=t.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var y=-1,m=!0,b=n&c?new r:void 0;for(l.set(e,t),l.set(t,e);++y<p;){var v=e[y],_=t[y];if(s)var g=f?s(_,v,y,t,e,l):s(v,_,y,e,t,l);if(void 0!==g){if(g)continue;m=!1;break}if(b){if(!o(t,function(e,t){if(!i(b,t)&&(v===e||u(v,e,n,s,l)))return b.push(t)})){m=!1;break}}else if(v!==_&&!u(v,_,n,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(141),o=n(570),i=n(571);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n(16),c=n(14),s=n(4),u=n.n(s);n(614);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return function(){var t,n=h(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,r["Component"]);var t=p(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(n,[{key:"render",value:function(){var e=this.props.tariff;return o.a.createElement(a.a,{cls:u()()("notification").e("link"),target:"_blank",theme:"strong",url:this.props.diskLink+"/tuning/"+e.periods.month.product_id},o.a.createElement(c.a,{keyset:"view-aside-public",loc:"ufo_aside_public_buy_tariff"},o.a.createElement("span",{"data-ref":"tariff-size"},e.display_space," ",e.display_space_units),o.a.createElement("span",{"data-ref":"tariff-price"},e.periods.month.price," ","RUB"===e.currency?"₽":"$")))}}]),n}();t.default=Object(i.b)(function(e){return{diskLink:e.services.disk}})(y)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(2);n(165),n(105);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(n,!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object(c.declMod)({type:"option"},{block:"menu",elem:"item",attrs:function(){return u({},this.__base.apply(this,arguments),{role:"option"})},mods:function(e){var t=e.checked;return u({},this.__base.apply(this,arguments),{checked:Object(c.bool2string)(t)})}});var f=n(110),p=n(111);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=f.a.applyDecls(),b=p.a.applyDecls();Object(c.decl)({block:"menu",willInit:function(e){e.val;this.__base.apply(this,arguments),this.state={val:[]},this._provideClick=this._provideClick.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.items=[],this._registerItem=this._registerItem.bind(this),this._unregisterItem=this._unregisterItem.bind(this),this._onChange=this._onChange.bind(this)},willReceiveProps:function(e){var t=e.val;this.__base.apply(this,arguments),this.setState({val:this._prepareVal(t)})},getChildContext:function(){return{registerItem:this._registerItem,unregisterItem:this._unregisterItem}},attrs:function(e){var t=e.tabIndex,n=e.disabled;return{style:e.style,disabled:n,"aria-disabled":!!n&&"true",onMouseUp:n?void 0:this.onMouseUp,onMouseDown:n?void 0:this.onMouseDown,tabIndex:n?void 0:null===t?void 0:t}},mods:function(e){var t=e.size,n=e.view,r=e.theme,o=e.width,i=e.disabled;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{size:t,width:o,theme:r,view:n,disabled:Object(c.bool2string)(i)})},content:function(e){var t=e.type,n=e.size,i=e.view,a=e.nowrap,c=e.items,s=e.children,u=this.state.val,l="navigation"===t,f="default"===i&&-1!==["check","radio","radiocheck"].indexOf(t);return c&&(s=c.map(this.__self.normalizeItem)),r.Children.map(s,function e(i,c){if(!1!==i&&null!==i&&void 0!==i)return m.isItem(i)?i=-1!==["check","radio","radiocheck"].indexOf(t)?Object(r.cloneElement)(i,{size:n,needIconGlyph:f,type:"option",key:"option-".concat(c),checked:-1!==u.indexOf(i.props.val),onClick:i.props.disabled?void 0:this._provideClick(void 0===i.props.val?null:i.props.val,i.props.onClick)}):l?Object(r.cloneElement)(i,{size:n,needIconGlyph:f,type:i.props.url?"link":void 0,isNavigation:l,key:"link-".concat(c)}):Object(r.cloneElement)(i,{onClick:i.props.disabled?void 0:this._provideClick(void 0===i.props.val?null:i.props.val,i.props.onClick)}):b.isGroup(i)?i=Object(r.cloneElement)(i,{isNavigation:l,key:"group-".concat(c),children:[].concat(i.props.children).map(e,this)}):a||(i=o.a.createElement(m,{needIconGlyph:f},i)),i},this)},_provideClick:function(e,t){var n=this;return function(r){n.onClick(r,e),t&&t(r,e)}},onMouseUp:function(e){this.props.onMouseUp&&this.props.onMouseUp(e)},onMouseDown:function(e){this.props.onMouseDown&&this.props.onMouseDown(e)},onClick:function(e,t){this.props.onClick&&this.props.onClick(e,t)},_onChange:function(e,t){this.props.onChange&&this.props.onChange(e,t)},_prepareVal:function(e){return void 0===e?[]:[].concat(e)},_registerItem:function(e){this.items.push(e)},_unregisterItem:function(e){return this._hoveredItem===e&&(this._hoveredItem=null),this.items.splice(this.items.indexOf(e),1)}},{normalizeItem:v,Item:m,Group:b,propTypes:{theme:a.a.string.isRequired,val:a.a.oneOfType([a.a.string,a.a.array,a.a.number]),size:a.a.oneOf(["xs","s","m","n"]),type:a.a.string,nowrap:a.a.bool,tabIndex:a.a.string,view:a.a.oneOf(["classic","default"]),tone:a.a.string,onMouseDown:a.a.func,onMouseUp:a.a.func,onClick:a.a.func,onChange:a.a.func},defaultProps:{view:"classic"},childContextTypes:{registerItem:a.a.func,unregisterItem:a.a.func}});function v(e,t){return"string"==typeof e?_({text:e},t):e.items?function(e){return o.a.createElement(b,{title:e.title},e.items.map(v))}(e):_(e,t)}function _(e,t){var n=Object(e.elemMods).disabled;return o.a.createElement(m,h({key:"item-".concat(t),disabled:"yes"===n||n},e),e.text)}},function(e,t,n){"use strict";var r=n(167),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function s(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(d){var o=h(n);o&&o!==d&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var c=s(t),y=s(n),m=0;m<a.length;++m){var b=a[m];if(!(i[b]||r&&r[b]||y&&y[b]||c&&c[b])){var v=p(n,b);try{u(t,b,v)}catch(e){}}}}return t}},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(66))},function(e,t,n){var r=n(140);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(3).PHOTO_GRID_COVER_THRESHOLD;e.exports=function(e){var t=e.slice(1);if(!t.length)return!1;return!(t.some(function(e){var t=e.meta;return!t||!["image","video"].includes(t.mediatype)})||t.filter(function(e){var t=e.width,n=e.height;return!t||t<r||!n||n<r}).length/t.length>=.5)}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,y=Math.min,m=function(){return p.Date.now()};function b(e,t,r){var o,i,a,c,s,u,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=o,r=i;return o=i=void 0,l=t,c=e.apply(r,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-l>=a}function O(){var e=m();if(g(e))return w(e);s=setTimeout(O,function(e){var n=t-(e-u);return p?y(n,a-(e-l)):n}(e))}function w(e){return s=void 0,h&&o?b(e):(o=i=void 0,c)}function E(){var e=m(),n=g(e);if(o=arguments,i=this,u=e,n){if(void 0===s)return function(e){return l=e,s=setTimeout(O,t),f?b(e):c}(u);if(p)return s=setTimeout(O,t),b(u)}return void 0===s&&(s=setTimeout(O,t)),c}return t=_(t)||0,v(r)&&(f=!!r.leading,a=(p="maxWait"in r)?d(_(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),E.cancel=function(){void 0!==s&&clearTimeout(s),l=0,o=u=i=s=void 0},E.flush=function(){return void 0===s?c:w(m())},E}function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return v(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),b(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n(66))},function(e,t,n){var r=n(193),o=n(505),i=n(542),a=n(67),c=n(86),s=n(546),u=n(238),l=n(235),f=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,function(t){return t=a(t,e),u||(u=t.length>1),t}),c(e,l(e),n),u&&(n=o(n,7,s));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){var r=n(580),o=n(238)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t,n){var r=n(587);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t){e.exports=function(e){var t=!1;return{promise:new Promise(function(n,r){e.then(function(e){return t?r({isCanceled:!0}):n(e)},function(e){return r(t?{isCanceled:!0}:e)})}),cancel:function(){t=!0}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(673)).default.applyDecls();t.default=r},function(e,t){!function(e,t){"use strict";if("IntersectionObserver"in e&&"IntersectionObserverEntry"in e&&"intersectionRatio"in e.IntersectionObserverEntry.prototype)"isIntersecting"in e.IntersectionObserverEntry.prototype||Object.defineProperty(e.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var n=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},o.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},o.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(e,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in e&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(e,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),n=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,a=s(i),c=this._rootContainsTarget(i),u=o.entry,l=t&&c&&this._computeTargetAndRootIntersection(i,n),f=o.entry=new r({time:e.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:n,intersectionRect:l});u?t&&c?this._hasCrossedThreshold(u,f)&&this._queuedEntries.push(f):u&&u.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,r){if("none"!=e.getComputedStyle(n).display){for(var o=s(n),i=l(n),a=!1;!a;){var u=null,f=1==i.nodeType?e.getComputedStyle(i):{};if("none"==f.display)return;if(i==this.root||i==t?(a=!0,u=r):i!=t.body&&i!=t.documentElement&&"visible"!=f.overflow&&(u=s(i)),u&&!(o=c(u,o)))break;i=l(i)}return o}},o.prototype._getRootRect=function(){var e;if(this.root)e=s(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},o.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},o.prototype._rootIsInDom=function(){return!this.root||u(t,this.root)},o.prototype._rootContainsTarget=function(e){return u(this.root||t,e)},o.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},o.prototype._unregisterInstance=function(){var e=n.indexOf(this);-1!=e&&n.splice(e,1)},e.IntersectionObserver=o,e.IntersectionObserverEntry=r}function r(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function o(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout(function(){e(),n=null},t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function i(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function a(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),r=Math.min(e.bottom,t.bottom),o=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-o,c=r-n;return a>=0&&c>=0&&{top:n,bottom:r,left:o,right:i,width:a,height:c}}function s(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e,t){for(var n=t;n;){if(n==e)return!0;n=l(n)}return!1}function l(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t}}(window,document)},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},o=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=c(e),t=s(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[c(e)]},l.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},l.prototype.set=function(e,t){this.map[c(e)]=s(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),u(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),u(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];v.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=m,e.Response=v,e.fetch=function(e,n){return new Promise(function(r,o){var i=new m(e,n),a=new XMLHttpRequest;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:function(e){var t=new l;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var t="response"in a?a.response:a.responseText;r(new v(t,e))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},e.fetch.polyfill=!0}function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function h(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=p(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(e,t){var n=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=function(e){var t=e.toUpperCase();return i.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function b(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";var r=n(89),o=n(175),i=n(91),a=n(82);e.exports=n(176)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){e.exports=n(125)("native-function-to-string",Function.toString)},function(e,t,n){"use strict";var r=n(177),o=n(128),i=n(94),a={};n(80)(a,n(26)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(64),o=n(45),i=n(131);e.exports=n(37)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,s=0;c>s;)r.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var r=n(65),o=n(82),i=n(178)(!1),a=n(134)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),s=0,u=[];for(n in c)n!=a&&r(c,n)&&u.push(n);for(;t.length>s;)r(c,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(133),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(65),o=n(135),i=n(134)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(33),o=n(181)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(89)("find")},function(e,t,n){var r=n(274);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(30),o=n(275),i=n(26)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(83);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(33),o=n(178)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(89)("includes")},function(e,t,n){"use strict";var r=n(33),o=n(181)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(89)(i)},function(e,t,n){var r=n(33);r(r.S+r.F,"Object",{assign:n(279)})},function(e,t,n){"use strict";var r=n(37),o=n(131),i=n(280),a=n(136),c=n(135),s=n(129),u=Object.assign;e.exports=!u||n(81)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=c(e),u=arguments.length,l=1,f=i.f,p=a.f;u>l;)for(var h,d=s(arguments[l++]),y=f?o(d).concat(f(d)):o(d),m=y.length,b=0;m>b;)h=y[b++],r&&!p.call(d,h)||(n[h]=d[h]);return n}:u},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(33),o=n(282)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(37),o=n(131),i=n(82),a=n(136).f;e.exports=function(e){return function(t){for(var n,c=i(t),s=o(c),u=s.length,l=0,f=[];u>l;)n=s[l++],r&&!a.call(c,n)||f.push(e?[n,c[n]]:c[n]);return f}}},function(e,t,n){var r=n(33);r(r.P,"String",{repeat:n(284)})},function(e,t,n){"use strict";var r=n(133),o=n(130);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";var r,o,i,a,c=n(126),s=n(27),u=n(55),l=n(182),f=n(33),p=n(30),h=n(93),d=n(137),y=n(138),m=n(289),b=n(183).set,v=n(291)(),_=n(184),g=n(292),O=n(293),w=n(294),E=s.TypeError,S=s.process,k=S&&S.versions,x=k&&k.v8||"",R=s.Promise,j="process"==l(S),P=function(){},C=o=_.f,T=!!function(){try{var e=R.resolve(1),t=(e.constructor={})[n(26)("species")]=function(e){e(P,P)};return(j||"function"==typeof PromiseRejectionEvent)&&e.then(P)instanceof t&&0!==x.indexOf("6.6")&&-1===O.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},D=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,c=o?t.ok:t.fail,s=t.resolve,u=t.reject,l=t.domain;try{c?(o||(2==e._h&&z(e),e._h=1),!0===c?n=r:(l&&l.enter(),n=c(r),l&&(l.exit(),a=!0)),n===t.promise?u(E("Promise-chain cycle")):(i=I(n))?i.call(n,s,u):s(n)):u(r)}catch(e){l&&!a&&l.exit(),u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&A(e)})}},A=function(e){b.call(s,function(){var t,n,r,o=e._v,i=M(e);if(i&&(t=g(function(){j?S.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=j||M(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},z=function(e){b.call(s,function(){var t;j?S.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},L=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=I(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,u(N,r,1),u(L,r,1))}catch(e){L.call(r,e)}}):(n._v=e,n._s=1,D(n,!1))}catch(e){L.call({_w:n,_d:!1},e)}}};T||(R=function(e){d(this,R,"Promise","_h"),h(e),r.call(this);try{e(u(N,this,1),u(L,this,1))}catch(e){L.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(139)(R.prototype,{then:function(e,t){var n=C(m(this,R));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=j?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(N,e,1),this.reject=u(L,e,1)},_.f=C=function(e){return e===R||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!T,{Promise:R}),n(94)(R,"Promise"),n(185)("Promise"),a=n(79).Promise,f(f.S+f.F*!T,"Promise",{reject:function(e){var t=C(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(c||!T),"Promise",{resolve:function(e){return w(c&&this===a?R:this,e)}}),f(f.S+f.F*!(T&&n(186)(function(e){R.all(e).catch(P)})),"Promise",{all:function(e){var t=this,n=C(t),r=n.resolve,o=n.reject,i=g(function(){var n=[],i=0,a=1;y(e,!1,function(e){var c=i++,s=!1;n.push(void 0),a++,t.resolve(e).then(function(e){s||(s=!0,n[c]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=C(t),r=n.reject,o=g(function(){y(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(45);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(91),o=n(26)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(182),o=n(26)("iterator"),i=n(91);e.exports=n(79).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(45),o=n(93),i=n(26)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(27),o=n(183).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,s="process"==n(83)(a);e.exports=function(){var e,t,n,u=function(){var r,o;for(s&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var l=c.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var f=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),n=function(){p.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(27).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(45),o=n(30),i=n(184);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(33);r(r.S,"Math",{sign:n(296)})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(298),o=n(188);e.exports=n(299)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(64).f,o=n(177),i=n(139),a=n(55),c=n(137),s=n(138),u=n(176),l=n(175),f=n(185),p=n(37),h=n(187).fastKey,d=n(188),y=p?"_s":"size",m=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){c(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=r&&s(r,n,e[u],e)});return i(l.prototype,{clear:function(){for(var e=d(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[y]=0},delete:function(e){var n=d(this,t),r=m(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[y]--}return!!r},forEach:function(e){d(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(d(this,t),e)}}),p&&r(l.prototype,"size",{get:function(){return d(this,t)[y]}}),l},def:function(e,t,n){var r,o,i=m(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[y]++,"F"!==o&&(e._i[o]=i)),e},getEntry:m,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=d(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var r=n(27),o=n(33),i=n(92),a=n(139),c=n(187),s=n(138),u=n(137),l=n(30),f=n(81),p=n(186),h=n(94),d=n(300);e.exports=function(e,t,n,y,m,b){var v=r[e],_=v,g=m?"set":"add",O=_&&_.prototype,w={},E=function(e){var t=O[e];i(O,e,"delete"==e?function(e){return!(b&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof _&&(b||O.forEach&&!f(function(){(new _).entries().next()}))){var S=new _,k=S[g](b?{}:-0,1)!=S,x=f(function(){S.has(1)}),R=p(function(e){new _(e)}),j=!b&&f(function(){for(var e=new _,t=5;t--;)e[g](t,t);return!e.has(-0)});R||((_=t(function(t,n){u(t,_,e);var r=d(new v,t,_);return void 0!=n&&s(n,m,r[g],r),r})).prototype=O,O.constructor=_),(x||j)&&(E("delete"),E("has"),m&&E("get")),(j||k)&&E(g),b&&O.clear&&delete O.clear}else _=y.getConstructor(t,e,m,g),a(_.prototype,n),c.NEED=!0;return h(_,e),w[e]=_,o(o.G+o.W+o.F*(_!=v),w),b||y.setStrong(_,e,m),_}},function(e,t,n){var r=n(30),o=n(301).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){var r=n(30),o=n(45),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(55)(Function.call,n(302).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r=n(136),o=n(128),i=n(82),a=n(174),c=n(65),s=n(173),u=Object.getOwnPropertyDescriptor;t.f=n(37)?u:function(e,t){if(e=i(e),t=a(t,!0),s)try{return u(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){!function(e){"function"!=typeof e.matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof e.closest&&(e.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window.Element.prototype)},function(e,t){var n=document.createElement("div");if(n.classList.add("t"),!0!==n.classList.toggle("t",!0)||!n.classList.contains("t")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){if(!0===t)this.add(e);else{if(!1!==t)return r.call(this,e);this.remove(e)}return this.contains(e)}}},function(e,t,n){"use strict";var r=n(306);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,y=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,_=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,O=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case s:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case b:case m:case u:return e;default:return t}}case i:return t}}}function E(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=h,t.Fragment=a,t.Lazy=b,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||w(e)===f},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===b},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===s||e===c||e===d||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===_||e.$$typeof===g||e.$$typeof===O||e.$$typeof===v)},t.typeOf=w},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(0),o=n(189);e.exports=function(e){var t=o.getKey(e.lang,e.keyset,e.loc,e),n={};r.Children.forEach(e.children,function(e){var t=e.props["data-ref"]||e.ref;"string"==typeof t&&(n[t]=e)});var i=function e(t,n,o){for(var i=/<(x-([\w-]+))(?:(\/>)|>(.*?)<\/\1>)/g,a=[],c=void 0,s=0;c=i.exec(o);){if(c.index>s){var u=o.substr(s,c.index-s);a.push(u)}s=c.index+c[0].length;var l=c[2],f=!!c[3],p=c[4];if(!n[l])throw console.error("LOC keyset `%s` key `%s` child `%s` not found",t.keyset,t.loc,l),"LOC child "+l+" not found";var h=[n[l],{key:l}];f||h.push(e(t,n,p)),a.push(r.cloneElement.apply(r,h))}if(s<o.length){var d=o.substr(s);a.push(d)}return a}(e,n,t);if(!e.tag&&1===i.length&&r.isValidElement(i[0]))return i[0];var a=e.tag||"span",c=e.className?{className:e.className}:null;return r.createElement(a,c,i)}},function(e,t,n){var r=n(38),o=n(95),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(69),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=n(314)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=i},function(e,t,n){var r=n(315),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(141),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(317),o=n(97),i=n(143);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(318),o=n(323),i=n(324),a=n(325),c=n(326);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(96);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(191),o=n(320),i=n(39),a=n(192),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:c).test(a(e))}},function(e,t,n){var r=n(321),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(31)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(96),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(96),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(96),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(98),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(98);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(98);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(98);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(99);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(99);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(99);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(99);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(338);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(69),o=n(193),i=n(38),a=n(95),c=1/0,s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-c?"-0":n}},function(e,t){},function(e,t,n){"use strict";var r=n(341);e.exports=function(e){return r(e.delims&&e.delims.elem&&e.delims.mod,"@bem/sdk.naming.entity.stringify: convention should be an instance of BemNamingEntityConvention"),function(t){return function(e,t){if(!e||!e.block)return"";var n=e.block;e.elem&&(n+=t.elem+e.elem);var r=e.mod,o=("string"==typeof r?r:r&&r.name)||!e.__isBemEntityName__&&e.modName;if(o){var i=r&&r.hasOwnProperty("val")||e.hasOwnProperty("modVal"),a=r&&r.val||!e.__isBemEntityName__&&e.modVal;!a&&0!==a&&i||(n+=t.mod.name+o),a&&!0!==a&&(n+=t.mod.val+a)}return n}(t,e.delims)}}},function(e,t,n){"use strict";(function(t){var r=n(342);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */function o(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(343),c=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function f(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var p=e.exports=v,h=/\s*function\s+([^\(\s]*)\s*/;function d(e){if(a.isFunction(e)){if(u)return e.name;var t=e.toString().match(h);return t&&t[1]}}function y(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!a.isFunction(e))return a.inspect(e);var t=d(e);return"[Function"+(t?": "+t:"")+"]"}function b(e,t,n,r,o){throw new p.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:o})}function v(e,t){e||b(e,!0,t,"==",p.ok)}function _(e,t,n,r){if(e===t)return!0;if(i(e)&&i(t))return 0===o(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var c=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==c&&c===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var o=g(e),i=g(t);if(o&&!i||!o&&i)return!1;if(o)return e=s.call(e),t=s.call(t),_(e,t,n);var c,u,l=E(e),f=E(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),u=l.length-1;u>=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(c=l[u],!_(e[c],t[c],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function g(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function O(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,n,r){var o;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),o=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!o&&b(o,n,"Missing expected exception"+r);var i="string"==typeof r,c=!e&&a.isError(o),s=!e&&o&&!n;if((c&&i&&O(o,n)||s)&&b(o,n,"Got unwanted exception"+r),e&&o&&n&&!O(o,n)||!e&&o)throw o}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return y(m(e.actual),128)+" "+e.operator+" "+y(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,o=d(t),i=r.indexOf("\n"+o);if(i>=0){var a=r.indexOf("\n",i+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(p.AssertionError,Error),p.fail=b,p.ok=v,p.equal=function(e,t,n){e!=t&&b(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&b(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){_(e,t,!1)||b(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){_(e,t,!0)||b(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){_(e,t,!1)&&b(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function e(t,n,r){_(t,n,!0)&&b(t,n,r,"notDeepStrictEqual",e)},p.strictEqual=function(e,t,n){e!==t&&b(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&b(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){w(!0,e,t,n)},p.doesNotThrow=function(e,t,n){w(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r(function e(t,n){t||b(t,!0,n,"==",e)},p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var E=Object.keys||function(e){var t=[];for(var n in e)c.call(e,n)&&t.push(n);return t}}).call(this,n(66))},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))o.call(n,u)&&(c[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(c[a[l]]=n[a[l]])}}return c}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])y(s)||!g(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),o=!0}return n.apply(this,arguments)}};var i,a={};function c(e,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),l(r,e,r.depth)}function s(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&E(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=l(e,o,r)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),w(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(E(n)){var s=n.name?": "+n.name:"";return e.stylize("[Function"+s+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var u,g="",S=!1,k=["{","}"];(h(n)&&(S=!0,k=["[","]"]),E(n))&&(g=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(g=" "+RegExp.prototype.toString.call(n)),O(n)&&(g=" "+Date.prototype.toUTCString.call(n)),w(n)&&(g=" "+f(n)),0!==a.length||S&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=S?function(e,t,n,r,o){for(var i=[],a=0,c=t.length;a<c;++a)R(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))}),i}(e,n,r,c,a):a.map(function(t){return p(e,n,r,c,t,S)}),e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,g,k)):k[0]+g+k[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,c,s;if((s=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(c=e.stylize("[Setter]","special")),R(r,o)||(a="["+o+"]"),c||(e.seen.indexOf(s.value)<0?(c=y(n)?l(e,s.value,null):l(e,s.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return"   "+e}).join("\n")):c=e.stylize("[Circular]","special")),v(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function _(e){return g(e)&&"[object RegExp]"===S(e)}function g(e){return"object"==typeof e&&null!==e}function O(e){return g(e)&&"[object Date]"===S(e)}function w(e){return g(e)&&("[object Error]"===S(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=_,t.isObject=g,t.isDate=O,t.isError=w,t.isFunction=E,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(345);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[k(e.getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(346),t._extend=function(e,t){if(!t||!g(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,r){e?n(e):t(r)});try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=j,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};t.apply(this,n).then(function(t){e.nextTick(a,null,t)},function(t){e.nextTick(P,t,a)})}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(344))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?u=s.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=c(p);l=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new d(e,t)),1!==u.length||l||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";e.exports={origin:n(348),react:n(349),"two-dashes":n(350)}},function(e,t,n){"use strict";e.exports={delims:{elem:"__",mod:{name:"_",val:"_"}},fs:{pattern:"${layer}.blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*"}},function(e,t,n){"use strict";e.exports={delims:{elem:"-",mod:{name:"_",val:"_"}},fs:{delims:{elem:""},pattern:"${layer?${layer}.}blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+"}},function(e,t,n){"use strict";e.exports={delims:{elem:"__",mod:{name:"--",val:"_"}},fs:{pattern:"${layer}.blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*"}},function(e,t,n){"use strict";e.exports.origin=n(352),e.exports.react=n(353),e.exports["two-dashes"]=n(354)},function(e,t,n){"use strict";e.exports={delims:{elem:"__",mod:{name:"_",val:"_"}},fs:{pattern:"${layer}.blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*"}},function(e,t,n){"use strict";e.exports={delims:{elem:"-",mod:{name:"_",val:"_"}},fs:{delims:{elem:""},pattern:"${layer?${layer}.}blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+"}},function(e,t,n){"use strict";e.exports={delims:{elem:"__",mod:{name:"--",val:"_"}},fs:{pattern:"${layer}.blocks/${entity}.${tech}",scheme:"nested"},wordPattern:"[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*"}},function(e,t,n){"use strict";(function(t){var n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){!function(t){var n=function(){return"_"}.toString().indexOf("_")>-1,r=function(){},o=Object.prototype.hasOwnProperty,i=Object.create||function(e){var t=function(){};return t.prototype=e,new t},a=Object.keys||function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t},c=function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e},s=Object.prototype.toString,u=Array.isArray||function(e){return"[object Array]"===s.call(e)},l=function(e){return"[object Function]"===s.call(e)},f=function(){},p=!0,h={toString:""};for(var d in h)h.hasOwnProperty(d)&&(p=!1);var y=p?["toString","valueOf"]:null;function m(e,t,r){for(var o,i,c=function(e){var t=a(e);if(p)for(var n,r=0;n=y[r++];)e.hasOwnProperty(n)&&t.push(n);return t}(r),s=0,u=c.length;s<u;)"__self"!==(o=c[s++])&&(i=r[o],!l(i)||i.prototype&&i.prototype.__self||n&&!(i.toString().indexOf(".__base")>-1)?t[o]=i:t[o]=function(n,r){var o=e[n]?e[n]:"__constructor"===n?t.__self.__parent:f,i=function e(){var t=this.__base;this.__base=e.__base;var n=r.apply(this,arguments);return this.__base=t,n};return i.__base=o,i}(o,i))}function b(e,t){for(var n,r=1;n=e[r++];)t?l(n)?v.self(t,n.prototype,n):v.self(t,n):t=l(n)?v(e[0],n.prototype,n):v(e[0],n);return t||e[0]}function v(){var e=arguments,t=u(e[0]),n=t||l(e[0]),o=n?t?b(e[0]):e[0]:r,a=e[n?1:0]||{},s=e[n?2:1],f=a.__constructor||n&&o.prototype&&o.prototype.__constructor?function(){return this.__constructor.apply(this,arguments)}:n?function(){return o.apply(this,arguments)}:function(){};if(!n)return f.prototype=a,f.prototype.__self=f.prototype.constructor=f,c(f,s);c(f,o),f.__parent=o;var p=o.prototype,h=f.prototype=i(p);return h.__self=h.constructor=f,a&&m(p,h,a),s&&m(o,f,s),f}v.self=function(){var e=arguments,t=u(e[0])?b(e[0],e[0][0]):e[0],n=e[1],r=e[2],o=t.prototype;return n&&m(o,o,n),r&&m(t,t,r),t};var _=!0;e.exports=v,_=!1,"object"==typeof modules&&"function"==typeof modules.define&&(modules.define("inherit",function(e){e(v)}),_=!1),_&&(t.inherit=v)}(n)}),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=0,a=function(){},c=function(e){return function(t){return t[e]}};
/*!
 * node-inherit
 * Copyright(c) 2011 Dmitry Filatov <dfilatov@yandex-team.ru>
 * MIT Licensed
 */var s=function(e){return console.assert(e.delims&&e.delims.elem&&e.delims.mod,"@bem/sdk.naming.entity.stringify: convention should be an instance of BemNamingEntityConvention"),function(t){return function(e,t){if(!e||!e.block)return"";var n=[e.block];void 0!==e.elem&&n.push(t.elem,e.elem);var r=e.mod;if(void 0!==r){var o=r.val;"string"==typeof r?n.push(t.mod.name,r):!o&&"val"in r||(n.push(t.mod.name,r.name),o&&!0!==o&&n.push(t.mod.val,o))}return n.join("")}(t,e.delims)}},u="$";function l(e){var t=e.block,n=e.elem;return""+t+u+n}function f(e){var t=e.split(u);return{block:t[0],elem:"undefined"===t[1]?void 0:t[1]}}var p={block:1,elem:1,addBemClassName:1,tag:1,attrs:1,mods:1,mix:1,cls:1};function h(e){var t=e.preset,n=e.naming,i=t.Base,a=t.classAttribute,c=t.Render,u=t.typeField,h=t.attrsField,d=function(e){return e.elem&&e.elemMods||e.mods||{}};return r(i,{__constructor:function(){this.__base.apply(this,arguments),this.__cnb||(this.__cnb=function(e){var t=s(e.__self.__dangerouslySetNaming||n);return function(n){var r=n.addBemClassName,i=void 0===r||r,a=n.block,c=n.mods,s=n.elem,p=n.elemMods,y=n.mix,m=n.cls;if(i){var b=d({block:a,mods:c,elem:s,elemMods:p}),v=(e.__self.bases||[]).map(function(e){return{block:e}}).concat({block:a,elem:s});if(b){var _=b.__entities||{};for(var g in b)if("__entities"!==g){var O=b[g];if(0===O||O)if("boolean"!=typeof O&&(O=String(O)),_[g])for(var w in _[g])w=f(w),v.push({block:w.block,elem:w.elem,mod:{name:g,val:O}});else v.push({block:a,elem:s,mod:{name:g,val:O}})}}if(y){var E={},S=function(e){e.mods=d(e);var t=l(e);E[t]?E[t].mods=o(d(o({},e,E[t])),e.mods):E[t]=e};!function e(t){var n=[].concat(t),r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;if(a){if("function"==typeof a[u]){var c=a[h],s=new a[u](c);a={block:s.block,elem:s.elem,mods:s.mods(c),mix:[s.mix(c),s.addMix(c)]}}S(a),a.mix&&e(a.mix)}}}(y),Object.keys(E).forEach(function(e){var t=E[e],n=t.mods,r=t.block||a,o=t.elem;v.push({block:r,elem:o}),n&&Object.keys(n).forEach(function(e){if("__entities"!==e){var t=n[e];t&&v.push({block:r,elem:o,mod:{name:e,val:t}})}})})}return m&&v.push(m.toString()),v.map(function(e){return"string"==typeof e?e:t(e)}).join(" ")}}}(this))},getChildContext:function(){var e=this.block||this.props.block,t=this.elem||this.props.elem,n=this.context&&this.context.bemBlock;return e&&!t&&n!==e||void 0===n?{bemBlock:e}:{}},render:function(){var e=o({},this.props),t=this.context.bemBlock;if(!e.elem&&!e.block&&t)throw Error("Prop elem must be specified");var n=typeof e.block;if("undefined"===n?e.block=t:"object"===n?e.block=block.block:"function"===n&&(e.block=block.prototype.block),!e.block)throw Error("Can't get block from context");return this.__render(e)},__render:function(e){return c(e.tag||"div",function(e,t){var n,r=o({},t.attrs,t,((n={})[a]=e.__cnb(t),n));return Object.keys(r).reduce(function(e,t){return p[t]||(e[t]=r[t]),e},Object.create(null))}(this,e))}},{displayName:"Bem",childContextTypes:{bemBlock:function(){return null}},contextTypes:{bemBlock:function(){return null}},__displayName:function(e){var t=e.block,r=e.elem;return this.__cnb||(this.__cnb=s(this.__dangerouslySetNaming||n)),this.__cnb({block:t,elem:r})}})}e.exports=function(e){var t=h(e),n=function(e){return r(e,{__constructor:function(){this.__base.apply(this,arguments),this.willInit(this.props)},addBemClassName:function(){return!0},willInit:a,tag:a,attrs:a,style:a,mods:a,addMix:a,cls:c("cls"),mix:c("mix"),content:c("children"),wrap:function(e,t,n){return n},render:function(){var e=this.props,t=this.state,n=this.attrs(e,t)||{},r=this.style(e,t)||{},i=this.__render({addBemClassName:this.addBemClassName(e,t),tag:this.tag(e,t),attrs:o({},n,{style:o({},n.style,r)}),block:this.block,elem:this.elem,mods:this.mods(e,t),mix:[].concat(this.mix(e,t),this.addMix(e,t)),cls:this.cls(e,t),children:this.content(e,t)}),a=this.replace&&this.replace(e,t)||i;return this.wrap(e,t,a)},generateId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniq";return this.__uniqId=this.__uniqId||{},this.__uniqId[e]?this.__uniqId[e]:this.__uniqId[e]=""+e+ ++i}})}(t),s=function(e){if(!e.block)throw new Error("Declaration must specify block field")},u=n.__displayName.bind(n),f={},p=function(e){return"number"==typeof e?e.toString():e},d={didCatch:"componentDidCatch",willMount:"componentWillMount",didMount:"componentDidMount",willReceiveProps:"componentWillReceiveProps",shouldUpdate:"shouldComponentUpdate",willUpdate:"componentWillUpdate",didUpdate:"componentDidUpdate",willUnmount:"componentWillUnmount"},y=function(e){return function e(t,n){if(Array.isArray(n))n.forEach(function(n){return e(t,n)});else if(t.hasOwnProperty(n)){var r=t[n];"function"!=typeof r&&(t[n]=function(){return r})}return t}(e,["addBemClassName","tag","attrs","style","content","cls","mods","mix","addMix","wrap"])},m=function(e){if("function"==typeof e)return e;var t=Object.keys(e);if(1===t.length){var n=t[0],r=e[n];return"function"==typeof r?r:"*"===(r=p(r))?function(e){return!!p(e[n])}:function(e){return e[n]===r}}return function(n){var r=this;return t.every(function(t){var o=e[t];return"function"==typeof o?o.call(r,n):"*"===o?!!p(n[t]):p(o)===p(n[t])})}},b=function(e){if("function"!=typeof e){var t=Object.keys(e);if(1===t.length){var n=t[0];return function(e){var t;return o({},this.__base.apply(this,arguments),((t={})[n]=e[n],t))}}return function(e){return o({},this.__base.apply(this,arguments),t.reduce(function(t,n){return t[n]=e[n],t},{}))}}},v=function(e,t,n){return function(){var r=void 0;return t.call(this,this.props,this.state)?r=e:n&&n!==e&&(r=this.__base),r&&r.apply(this,arguments)}},_=function(e,t){if(e)for(var n in t)e[n]&&o(t[n],e[n])},g=function(e){for(var t in d)e[t]&&(e[d[t]]=e[t],delete e[t]);return e},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["propTypes","defaultProps","contextTypes","childContextTypes"].reduce(function(t,n){return t[n]=o({},e[n]),t},{})},w=function(){var e=this,t=e.cls;function i(t,n){for(var i=t.prototype,a=O(t),c=e.appliedModDeclsCount,s=void 0;s=n[c++];){var u=s,l=u.predicate,f=u.fields,p=u.staticFields,h=m(l),d=b(l);for(var y in d&&r.self(t,{mods:v(d,h,i.mods)}),f){var g=f[y];"function"==typeof g&&(f[y]=v(g,h,i[y]))}_(p,a),r.self(t,f,p)}return o(t,a)}!t&&e.decls&&(t=e.cls=e.decls.reduce(function(t,a){return Array.isArray(a)?i(t,a):function(t,i){var a=i.staticFields,c=i.fields,s=O(t);return[].concat(t,a).forEach(function(e){return _(e,s)}),a=o({},a,s,{displayName:u(c)}),t!==n?r.self(t,c,a):r(n,c,o({},a,{bases:e.bases}))}(t,a)},n)),t&&e.modDecls&&(i(t,e.modDecls),e.appliedModDeclsCount=e.modDecls.length),t&&e.declWrappers&&(e.wrappedCls=e.declWrappers.reduce(function(e,t){return t(e)},t),e.declWrappers=null);var a=e.wrappedCls||t;return a&&(a.default=a),a},E=function(e){return f[e]||(f[e]={cls:null,base:null,decls:null,modDecls:null,appliedModDeclsCount:0,applyDecls:w})};return{Bem:t,decl:function(e,t,n,r){"function"==typeof e||Array.isArray(e)||(r=n,n=t,t=e,e=void 0),"function"==typeof n&&(r=n,n=void 0),s(t),g(t),y(t);var o=u(t),i=E(o),a=i.bases||(i.bases=[]),c=i.decls||(i.decls=[]),f=i.declaredBases||(i.declaredBases={});return function(e){if(e.hasOwnProperty("mods")){var t=e.mods;e.mods=function(){var n=[t,this.__base][0].apply(this,arguments)||{},r=n.__entities||(n.__entities={});for(var o in n)"__entities"!==o&&((r[o]||(r[o]={}))[l(e)]=!0);return n}}}(t),e&&(Array.isArray(e)?e:[e]).forEach(function(e){var t=e.displayName;if(!f[t]){var n=E(t);(n.bases||[]).forEach(function(e){return a.push(e)}),a.push(t),c.push.apply(c,n.decls),c.push(n.modDecls||(n.modDecls=[])),f[t]=!0}}),c.push({fields:t,staticFields:n}),r&&(i.declWrappers||(i.declWrappers=[])).push(r),i},declMod:function(e,t,n){s(t),g(t),y(t);var r=E(u(t));return(r.modDecls||(r.modDecls=[])).push({predicate:e,fields:t,staticFields:n}),r}}}}).call(this,n(66))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports={tooltip__close:{close:"Close"}}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(223),o=n(511),i=n(148),a=n(512),c=n(519),s=n(522),u=n(523),l=n(524),f=n(526),p=n(233),h=n(235),d=n(104),y=n(530),m=n(531),b=n(536),v=n(38),_=n(151),g=n(538),O=n(39),w=n(540),E=n(149),S=1,k=2,x=4,R="[object Arguments]",j="[object Function]",P="[object GeneratorFunction]",C="[object Object]",T={};T[R]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[C]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[j]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,I,D,A,M){var z,L=n&S,N=n&k,H=n&x;if(I&&(z=A?I(t,D,A,M):I(t)),void 0!==z)return z;if(!O(t))return t;var U=v(t);if(U){if(z=y(t),!L)return u(t,z)}else{var B=d(t),V=B==j||B==P;if(_(t))return s(t,L);if(B==C||B==R||V&&!A){if(z=N||V?{}:b(t),!L)return N?f(t,c(z,t)):l(t,a(z,t))}else{if(!T[B])return A?t:{};z=m(t,B,L)}}M||(M=new r);var F=M.get(t);if(F)return F;M.set(t,z),w(t)?t.forEach(function(r){z.add(e(r,n,I,r,t,M))}):g(t)&&t.forEach(function(r,o){z.set(o,e(r,n,I,o,t,M))});var W=H?N?h:p:N?keysIn:E,G=U?void 0:W(t);return o(G||t,function(r,o){G&&(r=t[o=r]),i(z,o,e(r,n,I,o,t,M))}),z}},function(e,t,n){var r=n(97);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(97),o=n(143),i=n(141),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var c=n.__data__;if(!o||c.length<a-1)return c.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(c)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(86),o=n(149);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(68),o=n(46),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(68),o=n(153),i=n(46),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(156),o=n(518),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(228)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(86),o=n(230);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(39),o=n(156),i=n(521),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var c in e)("constructor"!=c||!t&&a.call(e,c))&&n.push(c);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(31),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,c=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=c?c(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(103)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(86),o=n(157);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(86),o=n(232);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(56)(n(31),"DataView");e.exports=r},function(e,t,n){var r=n(56)(n(31),"Promise");e.exports=r},function(e,t,n){var r=n(56)(n(31),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(160),o=n(532),i=n(533),a=n(534),c=n(535),s="[object Boolean]",u="[object Date]",l="[object Map]",f="[object Number]",p="[object RegExp]",h="[object Set]",d="[object String]",y="[object Symbol]",m="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",_="[object Float64Array]",g="[object Int8Array]",O="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]";e.exports=function(e,t,n){var R=e.constructor;switch(t){case m:return r(e);case s:case u:return new R(+e);case b:return o(e,n);case v:case _:case g:case O:case w:case E:case S:case k:case x:return c(e,n);case l:return new R;case f:case d:return new R(e);case p:return i(e);case h:return new R;case y:return a(e)}}},function(e,t,n){var r=n(160);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(69),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(160);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(537),o=n(159),i=n(156);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(39),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(539),o=n(154),i=n(155),a=i&&i.isMap,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(104),o=n(46),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(541),o=n(154),i=n(155),a=i&&i.isSet,c=a?o(a):r;e.exports=c},function(e,t,n){var r=n(104),o=n(46),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(67),o=n(543),i=n(544),a=n(100);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(140),o=n(545);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(547);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(68),o=n(159),i=n(46),a="[object Object]",c=Function.prototype,s=Object.prototype,u=c.toString,l=s.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(549);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(158),o=n(550);e.exports=function e(t,n,i,a,c){var s=-1,u=t.length;for(i||(i=o),c||(c=[]);++s<u;){var l=t[s];n>0&&i(l)?n>1?e(l,n-1,i,a,c):r(c,l):a||(c[c.length]=l)}return c}},function(e,t,n){var r=n(69),o=n(150),i=n(38),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(552),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,c=o(i.length-t,0),s=Array(c);++a<c;)s[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(s),r(e,this,u)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(554),o=n(557)(r);e.exports=o},function(e,t,n){var r=n(555),o=n(225),i=n(556),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){e.exports=function(e){return e}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),c=r-(a-i);if(i=a,c>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){},function(e,t){},function(e,t,n){var r;
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */
/*! Hammer.JS - v2.0.7 - 2016-04-22
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */
!function(o,i,a,c){"use strict";var s,u=["","webkit","Moz","MS","ms","o"],l=i.createElement("div"),f="function",p=Math.round,h=Math.abs,d=Date.now;function y(e,t,n){return setTimeout(w(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(b(e,n[t],n),!0)}function b(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==c)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}s="function"!=typeof Object.assign?function(e){if(e===c||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==c&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var _=v(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===c)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),g=v(function(e,t){return _(e,t,!0)},"merge","Use `assign`.");function O(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&s(r,n)}function w(e,t){return function(){return e.apply(t,arguments)}}function E(e,t){return typeof e==f?e.apply(t&&t[0]||c,t):e}function S(e,t){return e===c?t:e}function k(e,t,n){b(P(t),function(t){e.addEventListener(t,n,!1)})}function x(e,t,n){b(P(t),function(t){e.removeEventListener(t,n,!1)})}function R(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function j(e,t){return e.indexOf(t)>-1}function P(e){return e.trim().split(/\s+/g)}function C(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function I(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];C(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort(function(e,n){return e[t]>n[t]}):r.sort()),r}function D(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<u.length;){if((r=(n=u[i])?n+o:t)in e)return r;i++}return c}var A=1;function M(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var z="ontouchstart"in o,L=D(o,"PointerEvent")!==c,N=z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),H=25,U=1,B=2,V=4,F=8,W=1,G=2,Y=4,q=8,K=16,X=G|Y,Z=q|K,$=X|Z,J=["x","y"],Q=["clientX","clientY"];function ee(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){E(e.options.enable,[e])&&n.handler(t)},this.init()}function te(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=t&U&&r-o==0,a=t&(V|F)&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=ne(t));o>1&&!n.firstMultiple?n.firstMultiple=ne(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,s=a?a.center:i.center,u=t.center=re(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=ce(s,u),t.distance=ae(s,u),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};t.eventType!==U&&i.eventType!==V||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=ie(t.deltaX,t.deltaY);var l=oe(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=h(l.x)>h(l.y)?l.x:l.y,t.scale=a?function(e,t){return ae(t[0],t[1],Q)/ae(e[0],e[1],Q)}(a.pointers,r):1,t.rotation=a?function(e,t){return ce(t[1],t[0],Q)+ce(e[1],e[0],Q)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(t.eventType!=F&&(s>H||a.velocity===c)){var u=t.deltaX-a.deltaX,l=t.deltaY-a.deltaY,f=oe(s,u,l);r=f.x,o=f.y,n=h(f.x)>h(f.y)?f.x:f.y,i=ie(u,l),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var f=e.element;R(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function ne(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:p(e.pointers[n].clientX),clientY:p(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:re(t),deltaX:e.deltaX,deltaY:e.deltaY}}function re(e){var t=e.length;if(1===t)return{x:p(e[0].clientX),y:p(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:p(n/t),y:p(r/t)}}function oe(e,t,n){return{x:t/e||0,y:n/e||0}}function ie(e,t){return e===t?W:h(e)>=h(t)?e<0?G:Y:t<0?q:K}function ae(e,t,n){n||(n=J);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function ce(e,t,n){n||(n=J);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}ee.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(M(this.element),this.evWin,this.domHandler)}};var se={mousedown:U,mousemove:B,mouseup:V},ue="mousedown",le="mousemove mouseup";function fe(){this.evEl=ue,this.evWin=le,this.pressed=!1,ee.apply(this,arguments)}O(fe,ee,{handler:function(e){var t=se[e.type];t&U&&0===e.button&&(this.pressed=!0),t&B&&1!==e.which&&(t=V),this.pressed&&(t&V&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var pe={pointerdown:U,pointermove:B,pointerup:V,pointercancel:F,pointerout:F},he={2:"touch",3:"pen",4:"mouse",5:"kinect"},de="pointerdown",ye="pointermove pointerup pointercancel";function me(){this.evEl=de,this.evWin=ye,ee.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(de="MSPointerDown",ye="MSPointerMove MSPointerUp MSPointerCancel"),O(me,ee,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=pe[r],i=he[e.pointerType]||e.pointerType,a="touch"==i,c=C(t,e.pointerId,"pointerId");o&U&&(0===e.button||a)?c<0&&(t.push(e),c=t.length-1):o&(V|F)&&(n=!0),c<0||(t[c]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(c,1))}});var be={touchstart:U,touchmove:B,touchend:V,touchcancel:F},ve="touchstart",_e="touchstart touchmove touchend touchcancel";function ge(){this.evTarget=ve,this.evWin=_e,this.started=!1,ee.apply(this,arguments)}O(ge,ee,{handler:function(e){var t=be[e.type];if(t===U&&(this.started=!0),this.started){var n=function(e,t){var n=T(e.touches),r=T(e.changedTouches);t&(V|F)&&(n=I(n.concat(r),"identifier",!0));return[n,r]}.call(this,e,t);t&(V|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var Oe={touchstart:U,touchmove:B,touchend:V,touchcancel:F},we="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=we,this.targetIds={},ee.apply(this,arguments)}O(Ee,ee,{handler:function(e){var t=Oe[e.type],n=function(e,t){var n=T(e.touches),r=this.targetIds;if(t&(U|B)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=T(e.changedTouches),c=[],s=this.target;if(i=n.filter(function(e){return R(e.target,s)}),t===U)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;o=0;for(;o<a.length;)r[a[o].identifier]&&c.push(a[o]),t&(V|F)&&delete r[a[o].identifier],o++;if(!c.length)return;return[I(i.concat(c),"identifier",!0),c]}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var Se=2500,ke=25;function xe(){ee.apply(this,arguments);var e=w(this.handler,this);this.touch=new Ee(this.manager,e),this.mouse=new fe(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Re(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)},Se)}}O(xe,ee,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)(function(e,t){e&U?(this.primaryTouch=t.changedPointers[0].identifier,Re.call(this,t)):e&(V|F)&&Re.call(this,t)}).call(this,t,n);else if(o&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=ke&&a<=ke)return!0}return!1}.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var je=D(l.style,"touchAction"),Pe=je!==c,Ce="auto",Te="manipulation",Ie="none",De="pan-x",Ae="pan-y",Me=function(){if(!Pe)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!t||o.CSS.supports("touch-action",n)}),e}();function ze(e,t){this.manager=e,this.set(t)}ze.prototype={set:function(e){"compute"==e&&(e=this.compute()),Pe&&this.manager.element.style&&Me[e]&&(this.manager.element.style[je]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return b(this.manager.recognizers,function(t){E(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(j(e,Ie))return Ie;var t=j(e,De),n=j(e,Ae);if(t&&n)return Ie;if(t||n)return t?De:Ae;if(j(e,Te))return Te;return Ce}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=j(r,Ie)&&!Me[Ie],i=j(r,Ae)&&!Me[Ae],a=j(r,De)&&!Me[De];if(o){var c=1===e.pointers.length,s=e.distance<2,u=e.deltaTime<250;if(c&&s&&u)return}if(!a||!i)return o||i&&n&X||a&&n&Z?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Le=1,Ne=2,He=4,Ue=8,Be=Ue,Ve=16;function Fe(e){this.options=s({},this.defaults,e||{}),this.id=A++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=Le,this.simultaneous={},this.requireFail=[]}function We(e){return e&Ve?"cancel":e&Ue?"end":e&He?"move":e&Ne?"start":""}function Ge(e){return e==K?"down":e==q?"up":e==G?"left":e==Y?"right":""}function Ye(e,t){var n=t.manager;return n?n.get(e):e}function qe(){Fe.apply(this,arguments)}function Ke(){qe.apply(this,arguments),this.pX=null,this.pY=null}function Xe(){qe.apply(this,arguments)}function Ze(){Fe.apply(this,arguments),this._timer=null,this._input=null}function $e(){qe.apply(this,arguments)}function Je(){qe.apply(this,arguments)}function Qe(){Fe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function et(e,t){return(t=t||{}).recognizers=S(t.recognizers,et.defaults.preset),new tt(e,t)}Fe.prototype={defaults:{},set:function(e){return s(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ye(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)?this:(e=Ye(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===C(t,e=Ye(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=Ye(e,this);var t=C(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<Ue&&r(t.options.event+We(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=Ue&&r(t.options.event+We(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Le)))return!1;e++}return!0},recognize:function(e){var t=s({},e);if(!E(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Be|Ve|32)&&(this.state=Le),this.state=this.process(t),this.state&(Ne|He|Ue|Ve)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},O(qe,Fe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=t&(Ne|He),o=this.attrTest(e);return r&&(n&F||!o)?t|Ve:r||o?n&V?t|Ue:t&Ne?t|He:Ne:32}}),O(Ke,qe,{defaults:{event:"pan",threshold:10,pointers:1,direction:$},getTouchAction:function(){var e=this.options.direction,t=[];return e&X&&t.push(Ae),e&Z&&t.push(De),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(t.direction&X?(o=0===i?W:i<0?G:Y,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?W:a<0?q:K,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return qe.prototype.attrTest.call(this,e)&&(this.state&Ne||!(this.state&Ne)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Ge(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),O(Xe,qe,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Ne)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),O(Ze,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ce]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(V|F)&&!o)this.reset();else if(e.eventType&U)this.reset(),this._timer=y(function(){this.state=Be,this.tryEmit()},t.time,this);else if(e.eventType&V)return Be;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Be&&(e&&e.eventType&V?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),O($e,qe,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ie]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Ne)}}),O(Je,qe,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|Z,pointers:1},getTouchAction:function(){return Ke.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(X|Z)?t=e.overallVelocity:n&X?t=e.overallVelocityX:n&Z&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&V},emit:function(e){var t=Ge(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),O(Qe,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Te]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),e.eventType&U&&0===this.count)return this.failTimeout();if(r&&o&&n){if(e.eventType!=V)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||ae(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=y(function(){this.state=Be,this.tryEmit()},t.interval,this),Ne):Be}return 32},failTimeout:function(){return this._timer=y(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Be&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),et.VERSION="2.0.7",et.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[$e,{enable:!1}],[Xe,{enable:!1},["rotate"]],[Je,{direction:X}],[Ke,{direction:X},["swipe"]],[Qe],[Qe,{event:"doubletap",taps:2},["tap"]],[Ze]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function tt(e,t){this.options=s({},et.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(L?me:N?Ee:z?xe:fe))(e,te)}(this),this.touchAction=new ze(this,this.options.touchAction),nt(this,!0),b(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function nt(e,t){var n,r=e.element;r.style&&(b(e.options.cssProps,function(o,i){n=D(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}tt.prototype={set:function(e){return s(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&o.state&Be)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&n.state&(Ne|He|Ue)&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof Fe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=C(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==c&&t!==c){var n=this.handlers;return b(P(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==c){var n=this.handlers;return b(P(e),function(e){t?n[e]&&n[e].splice(C(n[e],t),1):delete n[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&nt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},s(et,{INPUT_START:U,INPUT_MOVE:B,INPUT_END:V,INPUT_CANCEL:F,STATE_POSSIBLE:Le,STATE_BEGAN:Ne,STATE_CHANGED:He,STATE_ENDED:Ue,STATE_RECOGNIZED:Be,STATE_CANCELLED:Ve,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:G,DIRECTION_RIGHT:Y,DIRECTION_UP:q,DIRECTION_DOWN:K,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:Z,DIRECTION_ALL:$,Manager:tt,Input:ee,TouchAction:ze,TouchInput:Ee,MouseInput:fe,PointerEventInput:me,TouchMouseInput:xe,SingleTouchInput:ge,Recognizer:Fe,AttrRecognizer:qe,Tap:Qe,Pan:Ke,Swipe:Je,Pinch:Xe,Rotate:$e,Press:Ze,on:k,off:x,each:b,merge:g,extend:_,assign:s,inherit:O,bindFn:w,prefixed:D}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=et,(r=function(){return et}.call(t,n,t,e))===c||(e.exports=r)}(window,document)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(31);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(39),o=n(95),i=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):c.test(e)?i:+e}},function(e,t){},function(e,t,n){var r=n(569),o=n(46);e.exports=function e(t,n,i,a,c){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,c))}},function(e,t,n){var r=n(223),o=n(240),i=n(573),a=n(575),c=n(104),s=n(38),u=n(151),l=n(227),f=1,p="[object Arguments]",h="[object Array]",d="[object Object]",y=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,b,v){var _=s(e),g=s(t),O=_?h:c(e),w=g?h:c(t),E=(O=O==p?d:O)==d,S=(w=w==p?d:w)==d,k=O==w;if(k&&u(e)){if(!u(t))return!1;_=!0,E=!1}if(k&&!E)return v||(v=new r),_||l(e)?o(e,t,n,m,b,v):i(e,t,O,n,m,b,v);if(!(n&f)){var x=E&&y.call(e,"__wrapped__"),R=S&&y.call(t,"__wrapped__");if(x||R){var j=x?e.value():e,P=R?t.value():t;return v||(v=new r),b(j,P,n,m,v)}}return!!k&&(v||(v=new r),a(e,t,n,m,b,v))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(69),o=n(237),i=n(142),a=n(240),c=n(574),s=n(161),u=1,l=2,f="[object Boolean]",p="[object Date]",h="[object Error]",d="[object Map]",y="[object Number]",m="[object RegExp]",b="[object Set]",v="[object String]",_="[object Symbol]",g="[object ArrayBuffer]",O="[object DataView]",w=r?r.prototype:void 0,E=w?w.valueOf:void 0;e.exports=function(e,t,n,r,w,S,k){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case g:return!(e.byteLength!=t.byteLength||!S(new o(e),new o(t)));case f:case p:case y:return i(+e,+t);case h:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case d:var x=c;case b:var R=r&u;if(x||(x=s),e.size!=t.size&&!R)return!1;var j=k.get(e);if(j)return j==t;r|=l,k.set(e,t);var P=a(x(e),x(t),r,w,S,k);return k.delete(e),P;case _:if(E)return E.call(e)==E.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(233),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,c,s){var u=n&o,l=r(e),f=l.length;if(f!=r(t).length&&!u)return!1;for(var p=f;p--;){var h=l[p];if(!(u?h in t:i.call(t,h)))return!1}var d=s.get(e);if(d&&s.get(t))return d==t;var y=!0;s.set(e,t),s.set(t,e);for(var m=u;++p<f;){var b=e[h=l[p]],v=t[h];if(a)var _=u?a(v,b,h,t,e,s):a(b,v,h,e,t,s);if(!(void 0===_?b===v||c(b,v,n,a,s):_)){y=!1;break}m||(m="constructor"==h)}if(y&&!m){var g=e.constructor,O=t.constructor;g!=O&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof O&&O instanceof O)&&(y=!1)}return s.delete(e),s.delete(t),y}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(581),o=n(583);e.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},function(e,t,n){var r=n(140),o=n(582),i=n(67);e.exports=function(e,t,n){for(var a=-1,c=t.length,s={};++a<c;){var u=t[a],l=r(e,u);n(l,u)&&o(s,i(u,e),l)}return s}},function(e,t,n){var r=n(148),o=n(67),i=n(152),a=n(39),c=n(100);e.exports=function(e,t,n,s){if(!a(e))return e;for(var u=-1,l=(t=o(t,e)).length,f=l-1,p=e;null!=p&&++u<l;){var h=c(t[u]),d=n;if(u!=f){var y=p[h];void 0===(d=s?s(y,h,p):void 0)&&(d=a(y)?y:i(t[u+1])?[]:{})}r(p,h,d),p=p[h]}return e}},function(e,t,n){var r=n(584),o=n(585);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(67),o=n(150),i=n(38),a=n(152),c=n(153),s=n(100);e.exports=function(e,t,n){for(var u=-1,l=(t=r(t,e)).length,f=!1;++u<l;){var p=s(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=l?f:!!(l=null==e?0:e.length)&&c(l)&&a(p,l)&&(i(e)||o(e))}},function(e,t){},function(e,t,n){var r=n(241),o=n(588),i=n(593),a=n(242),c=n(594),s=n(161),u=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],y=d;if(n)h=!1,f=i;else if(p>=u){var m=t?null:c(e);if(m)return s(m);h=!1,f=a,y=new r}else y=t?[]:d;e:for(;++l<p;){var b=e[l],v=t?t(b):b;if(b=n||0!==b?b:0,h&&v==v){for(var _=y.length;_--;)if(y[_]===v)continue e;t&&y.push(v),d.push(b)}else f(y,v,n)||(y!==d&&y.push(v),d.push(b))}return d}},function(e,t,n){var r=n(589);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(590),o=n(591),i=n(592);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(236),o=n(24),i=n(161),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(624),n(16)),a=n(4),c=n.n(a),s=function(){return c()()("awaps")};t.default=function(e){var t=e.type,n=e.src,r=e.link,a=e.bnCounts,c=[];return"banner"===t&&c.push(o.a.createElement(i.a,{key:"link",cls:s().e("banner"),url:r,target:"_blank",theme:"normal",style:{backgroundImage:'url("'.concat(n,'")')}})),(a||[]).forEach(function(e,t){c.push(o.a.createElement("img",{key:"pixel-"+t,className:s().e("pixel"),src:e}))}),c.length?o.a.createElement("span",null,c):null}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports={ticker__text:{notifications:"Notifications"}}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports={"i-services":{404:"404",adresa:"Addresses",advertising:"Advertising",afisha:"Afisha",all:"All services",api:"API",appmetrica:"AppMetrica",appsearch:"Apps",audience:"Audience",auto:"Auto",autoru:"auto.ru",avia:"Flights",aziada:"Азиада",ba:"Bayan",backapv:"Партнер Я.Карт",balance:"Balance",bar:"Bar","bar-ie":"Бар для ИЕ","bar-ie9":"Бар для ИЕ9",bayan:"Баннеры Яндекса",blogs:"Blogs",books:"Books",browser:"Browser",calendar:"Calendar",captcha:"ой...",catalogwdgt:"Каталог виджетов",chrome:"Хром с поиском Яндекса",city:"Cities",cityday:"City Day",clickhouse:"ClickHouse",collection:"Collection",company:"Company",contest:"Contest",delivery:"Delivery",desktop:"Персональный поиск",direct:"Direct","direct.market":"Market",disk:"Disk",display:"Display",ege:"Russian Grade School State Exams",ether:"Efir",expert:"Эксперт",feedback:"Contact us",feedback2:"Contact us",ff:"ФФ с поиском Яндекса",fotki:"Photos",fresh:"Recent",games:"Games",geocontext:"Геоконтекст",goroda:"Города",help:"Help",i:"Мои сервисы",ie:"ИЕ с поиском Яндекса",images:"Images","images-com":"Images",interests:"Interests",internet:"Интернет",kassa:"Payment Solution",keyboard:"Клавиатура",kraski:"Краски",kuda:"Where",large:"Яндекс для слабовидящих",legal:"Legal documents",lenta:"Feeds",libra:"Library",literacy:"Неделя борьбы за грамотность",local:"Local Network",lost:"Незабудки",love:"День взаимного тяготения — 13 августа",mail:"Mail",maps:"Maps","maps-wiki":"Народная карта",market:"Market","market.advertising":"Market",master:"Yandex.Master",metrika:"Metrica",metro:"Метро",mirror:"Mirror",mobile:"Mobile",moikrug:"Moi Krug",money:"Money",museums:"Дни исторического и культурного наследия",music:"Music","music-partner":"Музыка: статистика",nahodki:"My Findings",nano:"Nano",newhire:"Newhire",news:"News",notifications:"Notifications panel",oauth:"OAuth",online:"Online",openid:"OpenID",opera:"Opera Software",opinion:"Цитаты",partners:"Advertising Network",partnersearch:"Поиск для партнеров",passport:"Passport",pdd:"Mail for Domains",peoplesearch:"People search",perevod:"Translate",plus:"Plus",probki:"Пробки",pulse:"блоги: пульс",punto:"Punto switcher",pvo:"Ask",rabota:"Jobs",radar:"Radar",ramazan:"",rasp:"Timetables",realty:"Недвижимость",referats:"Рефераты",rk:"Есть вопросы?",root:"Yandex.Olympiad for Unix administrators",school:"Школа",search:"Web",server:"Server",shtrafi:"Штрафы",site:"Site search",slovari:"Dictionaries",so:"Самооборона",social:"Социализм",soft:"Programs",sport:"Sport",sprav:"Directory",start:"Стартовая страница",stat:"Статистика",subs:"Subscriptions",taxi:"Taxi",telephony:"Телефония",terms:"Разговорник",tests:"Тесты и опросы",tickets:"Tickets",time:"Yandex.Time",toloka:"Yandex.Toloka",toster:"Тосты",translate:"Translate",tune:"Tune",tv:"TV",ugc:"Reviews",uslugi:"Services",video:"Video","video-com":"Video",vno:"ZNO",wdgt:"Widgets",weather:"Weather",webmaster:"Webmaster","webmaster-api":"Webmaster API",widgets:"Widgets",wordstat:"Statistics",wow:"Ya.ru",www:"Web",xmlsearch:"XML",yaca:"Catalog",yamb:"Media Banners",zakladki:"Bookmarks"}}},function(e,t){e.exports=function(e){var t=isNaN(parseInt(e.count))?0:e.count;return 0===t?e.none:1===t?e.one:e.some}},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(16),s=n(4),u=n.n(s),l=n(78);n(662);function f(e){"@babel/helpers - typeof";return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(){return u()()("icons-services-menu")},b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(n,r["Component"]);var t=h(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(n,[{key:"_getItems",value:function(){var e,t=this;e=this.props.items?this.props.items.map(function(e){return t._getItem(e.id,e)}):(l.a[this.props.tld]||l.a.ru).burgerServices.filter(function(e){return Boolean(t.props.services[e])}).map(function(e){return t._getItem(e,t.props.services[e])});for(var n=[],r=0;r<3;r++)n.push(o.a.createElement("span",{key:r,className:m().e("service-link").m({dummy:!0})}));return e.concat(n)}},{key:"_getItem",value:function(e,t){var n=this,r={className:m().e("service-icon")};return t.icon?(r.style={backgroundImage:"url(".concat(t.icon,")")},this.props.nonce&&(r.nonce=this.props.nonce)):r.className=r.className.m({type:e}),o.a.createElement(c.a,{cls:m().e("service-link"),key:e,url:t.url,theme:"pseudo",onClick:this.props.onLinkClick?function(){return n.props.onLinkClick(e)}:void 0},o.a.createElement("span",r),o.a.createElement("span",{className:m().e("service-title")},t.text))}},{key:"render",value:function(){return o.a.createElement("div",{className:m().m({"fit-to-height":this.props.fitToHeight}).mix(this.props.cls)},o.a.createElement("div",{className:m().e("items-wrap")},o.a.createElement("div",{className:m().e("items")},this._getItems())),o.a.createElement("div",{className:m().e("all-services-link-wrapper")},o.a.createElement(c.a,{cls:m().e("all-services-link"),theme:"dark",url:this.props.allServicesLink},this.props.allServicesText)))}}]),n}();b.propTypes={tld:a.a.string.isRequired,fitToHeight:a.a.bool,allServicesText:a.a.string,allServicesLink:a.a.string,services:a.a.object,onLinkClick:a.a.func,items:a.a.array,nonce:a.a.string,cls:a.a.oneOfType([a.a.object,a.a.string])},b.defaultProps={fitToHeight:!1,services:{},nonce:""},t.default=b},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n(0),i=n.n(o),a=n(1),c=n.n(a),s=n(106),u=n(169),l=n(32),f=n(4),p=n.n(f),h=(n(670),function(){return p()()("mobile-bottom")}),d=function(e){var t=e.visible,n=e.enabled,r=e.isTablet?i.a.createElement(u.default,null):null;return n?i.a.createElement("div",{className:h()},i.a.createElement("div",{className:h().e("direct").m({visible:t})},i.a.createElement(s.default,{position:"bottom"})),r):r};d.propTypes={enabled:c.a.bool,visible:c.a.bool,isTablet:c.a.bool},t.default=Object(r.b)(function(e){return{enabled:Object(l.a)(e),visible:Object(l.b)(e),isTablet:e.ua.isTablet}})(d)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(2).decl)({block:"pointerfocus",willInit:function(){this.state={block:"utilityfocus"},this.timeoutId=0,this.isPointer=!1,this.onMouseDown=this.onMouseDown.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.setIsPointerOnTabFocus=this.setIsPointerOnTabFocus.bind(this)},onKeyDown:function(e){clearTimeout(this.timeoutId),this.isPointer=!1},onMouseDown:function(e){var t=this;this.isPointer=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){t.isPointer=!1},600)},onFocus:function(e){this.isPointer?(document.body.classList.add("pointerfocus"),document.body.classList.remove("utilityfocus")):(document.body.classList.add("utilityfocus"),document.body.classList.remove("pointerfocus")),this.setState({block:this.isPointer?"pointerfocus":"utilityfocus"})},onBlur:function(e){window.addEventListener("focus",this.setIsPointerOnTabFocus,!0)},setIsPointerOnTabFocus:function(){var e=this;window.removeEventListener("focus",this.setIsPointerOnTabFocus,!0),"pointerfocus"===this.state.block&&(this.isPointer=!0,setTimeout(function(){e.isPointer=!1}))},didMount:function(){document.addEventListener("keydown",this.onKeyDown),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mouseup",this.onMouseDown),document.addEventListener("focus",this.onFocus,!0),window.addEventListener("blur",this.onBlur),document.body.classList.add("utilityfocus")},willUnmount:function(){document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mouseup",this.onMouseDown),document.removeEventListener("focus",this.onFocus,!0),window.removeEventListener("blur",this.onBlur)},render:function(){return null}});t.default=r},function(e,t,n){(function(e){!function(){var t=t||{};t.tanker=t.tanker||{},t.tanker.dynamic={gender:function(e){return function(e){return e[e.gender]}(e)},plural:function(e){return function(e){return 1==(isNaN(parseInt(e.count))?0:e.count)?e.one:e.some}(e)},plural_adv:function(e){return function(e){return 0===(isNaN(parseInt(e.count))?0:e.count)?e.none:t.tanker.dynamic.plural({count:e.count,one:e.one,some:e.some})}(e)},toggle:function(e){return function(e){return Boolean(e.condition)?e.true:e.false}(e)}},t.yandex_disk_web=t.yandex_disk_web||{},t.yandex_disk_web.actions={ufo_cancel:function(e){return"Cancel"},ufo_close:function(e){return"Close"},ufo_download:function(e){return"Download"},ufo_download_all:function(e){return"Download all"},ufo_enter:function(e){return"Log in"},ufo_og_description_album:function(e){return"View album on Yandex.Disk"},ufo_open:function(e){return"Open"},ufo_open_with:function(e){return"Open with..."},ufo_open_yadisk_after_save:function(e){return"Open in Yandex.Disk"},ufo_resource_view:function(e){return"View"},ufo_save_and_download_disk:function(e){return"Save to Disk and download"},ufo_save_and_download_yadisk:function(e){return"Save to Yandex.Disk and download"},ufo_save_yadisk:function(e){return"Save to Yandex.Disk"},ufo_send_album_mail_body:function(e){return'View album "'+e.name+'"'},ufo_send_album_mail_subject:function(e){return'Link to album "'+e.name+'" on Yandex.Disk'},ufo_send_file_mail_body:function(e){return"View or download the file '"+e.name+"'"},ufo_send_file_mail_subject:function(e){return"Link to '"+e.name+"' on Yandex.Disk"},ufo_send_folder_mail_body:function(e){return"View or download the folder '"+e.name+"'"},ufo_send_folder_mail_subject:function(e){return"Link to the folder '"+e.name+"' on Yandex.Disk"},ufo_share_link:function(e){return"Share link"},ufo_view_and_download_from_disk:function(e){return"View and download from Yandex.Disk"}},t.yandex_disk_web.entities={info_about_album:function(e){return"Album information"},info_about_file:function(e){return"File information"},info_about_folder:function(e){return"Folder information"},ufo_copy_link:function(e){return"Copy link"},ufo_copy_link_failed:function(e){return"Copy link failed"},ufo_copy_link_success:function(e){return"Link copied"},ufo_copyright:function(e){return"© <x-portal-link/> 2012—<x-current-copyright-year/>"},ufo_disk:function(e){return"Disk"},ufo_downloads:function(e){return"Downloads"},ufo_error:function(e){return"Error"},"ufo_format_date-month-year":function(e){return"MM/DD/YYYY"},"ufo_format_date-month-year-time":function(e){return"MM/DD/YYYY h:mm p"},"ufo_format_hour-minute":function(e){return"h:mm p"},ufo_hours_short:function(e){return e.hours+" hr"},ufo_n_times:function(e){return e.count+" "+t.tanker.dynamic.plural({count:" "+e.count+" ",one:"times",some:"times",many:"times"})},ufo_number_separator:function(e){return"."},ufo_owner:function(e){return"Owner"},ufo_service_afisha:function(e){return"Afisha"},ufo_service_all:function(e){return"All services"},ufo_service_browser:function(e){return"Browser"},ufo_service_calendar:function(e){return"Calendar"},ufo_service_direct:function(e){return"Direct"},ufo_service_images:function(e){return"Images"},ufo_service_mail:function(e){return"Mail"},ufo_service_maps:function(e){return"Maps"},ufo_service_market:function(e){return"Market"},ufo_service_metrika:function(e){return"Metrica"},ufo_service_money:function(e){return"Money"},ufo_service_music:function(e){return"Music"},ufo_service_news:function(e){return"News"},ufo_service_pogoda:function(e){return"Weather"},ufo_service_search:function(e){return"Search"},ufo_service_tv:function(e){return"TV Program"},ufo_yadisk:function(e){return"Yandex.Disk"},ufo_yadisk_for_mobile:function(e){return"Yandex.Disk for mobile devices:"},ufo_yandex:function(e){return"Yandex"}},t.yandex_disk_web["entity-resource"]={ufo_album_has_no_files:function(e){return"Album is empty"},ufo_folder__property_mtime:function(e){return"Modified"},ufo_folder_has_no_files:function(e){return"Folder is empty"},ufo_resource__full_size:function(e){return"Original size"},ufo_resource__name:function(e){return"Name"},ufo_resource__property_download_file:function(e){return"Downloaded"},ufo_resource__property_download_folder:function(e){return"Downloaded"},ufo_resource__property_etime:function(e){return"Image date"},ufo_resource__property_mtime:function(e){return"Modified"},ufo_resource__property_size:function(e){return"Size"},ufo_resource__virused:function(e){return"This file may harm your computer"}},t.yandex_disk_web.lists={sizes:function(e){return"bytes|KB|MB|GB|TB"}},t.yandex_disk_web["public-error-pages"]={ufo_blocked__caption:function(e){return"Link blocked"},ufo_blocked__description:function(e){return"This file has been reported. \nAccess to it is blocked."},ufo_error_server:function(e){return"Server is temporarily unavailable.\nPlease try refreshing the page."},ufo_not_found__caption:function(e){return"Nothing found"},ufo_not_found__description:function(e){return"The owner either removed the files or restricted access,\nor there's a typo in the link."}},t.yandex_disk_web["view-aside-public"]={ufo_aside_public_blocked_about:function(e){return"More info"},ufo_aside_public_buy_tariff:function(e){return"Add <x-tariff-size/> for <x-tariff-price/> per month"},ufo_aside_public_save_async:function(e){return"Saving the folder. This may take a few minutes."},ufo_aside_public_save_failed:function(e){return"<x-resource-name/>\nunable to save file to Yandex.Disk"},ufo_aside_public_save_failed_nospace_2:function(e){return"Not enough space on the Disk"},ufo_aside_public_saved:function(e){return"<x-resource-name/>\nsaved to <x-downloads/>"},ufo_aside_public_warning_download_blocked:function(e){return"Download limit reached"},ufo_cant_download:function(e){return"Unable to download file. Please try again later."},ufo_cant_download_album:function(e){return"Couldn't download album. Try again later."},ufo_cant_download_folder:function(e){return"Download failed. Please try again later."},ufo_cant_download_folder_too_large:function(e){return"The folder is too big. Try downloading it in parts or use the Yandex.Disk application."},ufo_drweb_ok:function(e){return"No viruses found"},ufo_warning_save_and_download_blocked:function(e){return"Download limit exceeded. You can save the file to Yandex.Disk and download it from there."},ufo_warning_save_and_download_blocked_touch:function(e){return"To download a file, save it to Yandex.Disk and download it from there"},ufo_warning_save_and_download_folder_blocked:function(e){return"Download limit exceeded. You can save the folder to Yandex.Disk and download it from there."},ufo_warning_save_and_download_folder_blocked_touch:function(e){return"To download a folder, save it to Yandex.Disk and download it from there"}},t.yandex_disk_web["view-aside"]={ufo_aside__files_count:function(e){return"Number of files"},ufo_aside__install_disk_for:function(e){return"Install Yandex.Disk for "+e.platform},ufo_aside__install_disk_for_tooltip:function(e){return"Get files and folders on your computer as quickly as possible.\nSimply install Yandex.Disk for "+e.platform+"."}},t.yandex_disk_web["view-confirmation"]={ufo_conf_download_virused_file:function(e){return"This file may harm your computer. Are you sure you wish to download it?"},ufo_conf_virused_file_title:function(e){return"Virus found"}},t.yandex_disk_web["view-dialog-download-big-folder"]={ufo_dialog_download_big_folder_about_app:function(e){return"More"},ufo_dialog_download_big_folder_button_install_app:function(e){return"Install Yandex.Disk"},ufo_dialog_download_big_folder_button_install_app_and_download:function(e){return"Install Yandex.Disk and download the folder"},ufo_dialog_download_big_folder_desc:function(e){return"You can't download the entire folder through the browser, but you can download separate files."},ufo_dialog_download_big_folder_desc_no_app:function(e){return"The folder is too large. You can't download the entire folder through the browser.\nCouldn't find the program on your computer. Please install the program, and the download will begin automatically."},ufo_dialog_download_big_folder_desc_no_info_app:function(e){return"The folder is too large. You can't download the entire folder through the browser.\nYandex.Disk for desktop will open in a moment and start downloading. If you don't have it on your computer, please install it."},ufo_dialog_download_big_folder_desc_save_download:function(e){return"You can't download the entire folder through the browser. Save the folder to Yandex.Disk and download it through the computer program."},ufo_dialog_download_big_folder_desc_start_app:function(e){return"The folder is too large. You can't download the entire folder through the browser. \nThe Yandex.Disk computer program will open automatically, and the download will begin"},ufo_dialog_download_big_folder_title:function(e){return"The folder is too large"},ufo_dialog_download_big_folder_title_download:function(e){return"The folder will be downloaded through Yandex.Disk for computer"}},t.yandex_disk_web["view-direct"]={ufo_remove_ads:function(e){return"Disable ads"}},t.yandex_disk_web["view-footer"]={ufo_footer__link_abuse:function(e){return"Report"},ufo_footer__link_help:function(e){return"Help"},ufo_footer__take_part_in_research:function(e){return"Participate in our research"}},t.yandex_disk_web["view-notification"]={ufo_notification_play_file_failed:function(e){return"Unable to play file"}},t.yandex_disk_web["view-promo-banner"]={ufo_promo_banner_desktop_button_text:function(e){return"Install Yandex.Disk"},ufo_promo_banner_desktop_description:function(e){return"It's faster to upload and download your files\nto and from the cloud"},ufo_promo_banner_desktop_title:function(e){return"Install Yandex.Disk on your computer"}},t.yandex_disk_web["view-public"]={ufo_goto:function(e){return"open"},ufo_install_app:function(e){return"Install app"},ufo_open_in_app:function(e){return"Open in app"},ufo_open_in_browser:function(e){return"Open in browser"},ufo_save_error:function(e){return"Unable to save file"},ufo_save_success:function(e){return"Saved to Downloads"},ufo_saving_progress:function(e){return"Saving to your Yandex.Disk..."},ufo_views:function(e){return"Views"}},t.yandex_disk_web["view-toolset"]={ufo_toolset_icons_touch:function(e){return"Tiles"},ufo_toolset_list_touch:function(e){return"List"},ufo_toolset_tiles_touch:function(e){return"Large tiles"},ufo_toolset_wow_touch:function(e){return"Smart tiles"}},e&&e.exports?e.exports=t:(window.i18n=window.i18n||{},window.i18n.en=t)}()}).call(this,n(103)(e))},function(e,t){!function(){"use strict";var e,t=[];function n(){var n=Ya.Rum.getSetting("clck"),r=t.join("\r\n");if((t=[],e=null,n)&&!(navigator.sendBeacon&&Ya.Rum.getSetting("beacon")&&navigator.sendBeacon(n,r))){var o=new XMLHttpRequest;o.open("POST",n),o.send(r)}}Ya.Rum.send=function(r,o,i,a,c,s,u){clearTimeout(e);var l=function(e,t,n,r,o,i){var a=Ya.Rum.getSetting("slots");return[i?"/"+i.join("/"):"","/path="+t,a?"/slots="+a.join(";"):"",n?"/vars="+n:"","/cts="+(new Date).getTime(),"/*"]}(0,o,i,0,0,u);t.push("/reqid="+Ya.Rum.getSetting("reqid")+l.join("")),t.length<42?e=setTimeout(n,15):n()}}()},function(e,t){!function(){"use strict";var e=Ya.Rum;if(!e)throw new Error("Rum: interface is not included");!function(){if(!e.enabled){var t=function(){};return e.getSetting=function(){return""},e.getVarsList=function(){return[]},e.getResourceTimings=t,e.pushConnectionTypeTo=t,e.pushTimingTo=t,e.normalize=t,e.sendCounter=t,e.sendDelta=t,e.sendTimeMark=t,e.sendResTiming=t,e.sendTTI=t,e.makeSubPage=t,e.sendFirstPaint=t,void(e.sendHeroElement=t)}e.getSetting=function(t){return e._settings[t]||""},e.getVarsList=function(){var t=e._vars;return Object.keys(t).map(function(e){return e+"="+t[e]})};var n="690.1033",r="690.2096.207",o="690.2096.2877",i="690.2096.2044",a="690.2096.2748",c="690.2096.2335.1822",s=10,u=3e3,l=2e4,f={connectEnd:2116,connectStart:2114,decodedBodySize:2886,domComplete:2124,domContentLoadedEventEnd:2131,domContentLoadedEventStart:2123,domInteractive:2770,domLoading:2769,domainLookupEnd:2113,domainLookupStart:2112,duration:2136,encodedBodySize:2887,entryType:2888,fetchStart:2111,initiatorType:2889,loadEventEnd:2126,loadEventStart:2125,nextHopProtocol:2890,redirectCount:1385,redirectEnd:2110,redirectStart:2109,requestStart:2117,responseEnd:2120,responseStart:2119,secureConnectionStart:2115,startTime:2322,transferSize:2323,type:76,unloadEventEnd:2128,unloadEventStart:2127,workerStart:2137},p={visible:1,hidden:2,prerender:3},h={bluetooth:2064,cellular:2065,ethernet:2066,none:1229,wifi:2067,wimax:2068,other:861,unknown:836,0:836,1:2066,2:2067,3:2070,4:2071,5:2768},d={"first-paint":2793,"first-contentful-paint":2794},y=e.getTime,m=window.performance||{},b=m.timing||{},v=m.navigation||{},_=navigator.connection,g={},O=e._deltaMarks,w=document.createElement("link"),E="function"==typeof m.getEntriesByType,S=b.navigationStart,k=b.responseStart-S,x=b.domainLookupStart-S,R=e.getVarsList().concat("1042="+encodeURIComponent(navigator.userAgent)),j=R.concat(["143.2129="+S,"143.2112="+x,"143.2119="+k]);if(e.ajaxStart=0,e.ajaxComplete=0,window.PerformanceObserver)try{new PerformanceObserver(function(e,t){var n=e.getEntriesByType("navigation")[0];if(n){t.disconnect();var r=[];B(r,n),N(r),F("690.2096.2892",R.concat(r))}}).observe({entryTypes:["navigation"]})}catch(e){}function P(){removeEventListener("DOMContentLoaded",P),removeEventListener("load",P),S&&setTimeout(function(){e.sendTimeMark=T,e.sendResTiming=M,e.timeEnd=D;for(var t=e._defRes;t.length;){var n=t.shift();M(n[0],n[1])}for(var r=e._defTimes;r.length;){var o=r.shift();T(o[0],o[1],!1,o[2])}Object.keys(O).forEach(A),C(),function(){if(!E||e.isVisibilityChanged())return;for(var t=m.getEntriesByType("paint"),n=0;n<t.length;n++){var r=t[n],o=d[r.name];o&&T("1926."+o,r.startTime)}}(),function(){var e=document.createElement("script");e.src="https://yastatic.net/nearest.js",e.async=!0,e.crossOrigin="",e.onload=function(){var e=window.YaStaticRegion;e&&F(c,R.concat("1822="+e))},document.head.appendChild(e)}(),L(),E&&("complete"===document.readyState?z():addEventListener("load",z))},0)}function C(){var t=b.domContentLoadedEventStart,r=b.domContentLoadedEventEnd;if(0!==t||0!==r){var o=function(){if(e.isVisibilityChanged())return;if(window.chrome&&"function"==typeof window.chrome.loadTimes)return 1e3*window.chrome.loadTimes().firstPaintTime;if(b.msFirstPaint)return b.msFirstPaint}(),i=R.concat(["2129="+S,"1036="+(b.domainLookupStart-S),"1037="+(b.domainLookupEnd-b.domainLookupStart),"1038="+(b.connectEnd-b.connectStart),b.secureConnectionStart&&"1383="+(b.connectEnd-b.secureConnectionStart),"1039="+(b.responseStart-b.connectEnd),"1040="+(b.responseEnd-b.responseStart),"1040.906="+(b.responseEnd-b.domainLookupStart),"1310.2084="+(b.domLoading-b.responseStart),"1310.2085="+(b.domInteractive-b.responseStart),"1310.1309="+(r-t),"1310.1007="+(t-b.responseStart),"2299="+history.length]);e.mark("1039 ttfb",b.responseStart-b.connectEnd),e.mark("1310.1007 dom.loaded",b.domContentLoadedEventStart-b.responseStart),o&&(i.push("2130="+(o-S),"1041="+(o-b.responseStart),"1041.906="+(o-b.domainLookupStart)),e.mark("1041.906 ttfp",o-b.domainLookupStart)),Object.keys(f).forEach(function(e){e in b&&b[e]&&i.push(f[e]+"="+V(b[e],S))}),e.vsStart&&(i.push("1484="+(p[e.vsStart]||2771)),e.vsChanged&&i.push("1484.719=1")),v&&(v.redirectCount&&i.push("1384.1385="+v.redirectCount),1!==v.type&&2!==v.type||i.push("770.76="+v.type)),N(i),F(n,i,["dtype=stred","pid=1","cid=72202"])}else setTimeout(C,50)}function T(t,n,o,i){void 0===n&&(n=y()),void 0!==o&&!0!==o||e.mark(t,n);var a=U(t);a.push("207="+V(n)),I(a,i)&&(F(r,a),g[t]=g[t]||[],g[t].push(n))}function I(e,t){if(t){if(t.isCanceled&&t.isCanceled())return!1;Object.keys(t).forEach(function(n){"function"!=typeof t[n]&&e.push(n+"="+t[n])})}return!0}function D(e){var t=O[e];t&&0!==t.length&&(t.push(y()),A(e))}function A(t,n,r){var i,a,c=O[t];if(void 0!==n){var s=e.getTime();i=s-n,a=s}else c&&(i=c[0],a=c[1]);if(void 0!==i&&void 0!==a){var u=U(t);u.push("207.2154="+V(i),"207.1428="+V(a),"2877="+V(a-i)),I(u,r)&&(F(o,u),delete O[t])}}function M(e,t){H(t,function(t){if(t){var n=U(e);B(n,t[0]),F(i,n)}})}function z(){if(removeEventListener("load",z),E){var e=m.getEntriesByType("resource").reduce(function(e,t){var n,r=t.name.match(/^https?:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return r&&((n=r[1])in e||(e[n]={count:0,size:0}),e[n].count++,t.transferSize&&(e[n].size+=t.transferSize)),e},{}),t="2748=";Object.keys(e).forEach(function(n){t+=n+"!"+e[n].count+"!"+(e[n].size||"")+";"}),F(a,R.concat(t))}}function L(t,n,r){if(e._tti){var o=y(),i=function(e,t,i){var a={2796.2797:function(e,t){return e=e||[],t=t||0,e.filter(function(e){return e.startTime-t>=-50}).map(function(e){var t=e.name?e.name.split("-").map(function(e){return e[0]}).join(""):"u",n=Math.floor(e.startTime);return t+"-"+n+"-"+Math.floor(n+e.duration)}).join(".")}(i,n),689.2322:V(o)};r&&Object.keys(r).forEach(function(e){a[e]=r[e]}),T(e||"2795",t,!0,a)},a=function(){var r,c=n||o,s=y(),f=e._tti.events||[],p=f.length;0!==p&&(r=f[p-1],c=Math.max(c,Math.floor(r.startTime+r.duration))),s-c>=u?i(t,c,f):s-c>=l?i(t,(n||o)+l,f):setTimeout(a,1e3)};a()}}function N(e){_&&e.push("2437="+(h[_.type]||2771),_.downlinkMax&&"2439="+_.downlinkMax,_.effectiveType&&"2870="+_.effectiveType)}function H(e,t){if(!E)return t(null);w.href=e;var n=w.href,r=0,o=100;setTimeout(function e(){var i=m.getEntriesByName(n);if(i.length)return t(i);r++<s?(setTimeout(e,o),o+=o):t(null)},0)}function U(t){return j.concat(["1701="+t,e.ajaxStart&&"1201.2154="+V(e.ajaxStart),e.ajaxComplete&&"1201.2052="+V(e.ajaxComplete)])}function B(e,t){Object.keys(f).forEach(function(n){if(n in t){var r=t[n];(r||0===r)&&e.push(f[n]+"="+V(r))}})}function V(e,t){return"string"==typeof e?encodeURIComponent(e):Math.round(1e3*(e-(t||0)))/1e3}function F(t,n,r,o){var i=n.filter(Boolean).join(","),a=o?{href:o}:null;e.send(a,t,i,null,null,null,r)}"loading"===document.readyState?(addEventListener("DOMContentLoaded",P),addEventListener("load",P)):P(),e.getTimeMarks=function(){return g},e.sendTTI=L,e.sendFirstPaint=function(e){window.requestAnimationFrame?requestAnimationFrame(function(){T("2130",e)}):T("2130",e)},e.sendHeroElement=function(e){T("2876",e)},e._subpages={},e.makeSubPage=function(t){var n=e._subpages[t];e._subpages[t]=void 0===n?n=0:++n;var r=!1;return{689.2322:V(Ya.Rum.getTime()),2924:t,2925:n,isCanceled:function(){return r},cancel:function(){r=!0}}},e.getResourceTimings=H,e.pushConnectionTypeTo=N,e.pushTimingTo=B,e.normalize=V,e.sendCounter=F,e.sendDelta=A}()}()},function(e,t){Ya.Rum.enabled&&addEventListener("load",function e(){removeEventListener("load",e),Ya.Rum.sendTimeMark("1724");for(var t=document.querySelectorAll("script[data-rCid], div[data-rCid]"),n=0,r=t.length;n<r;n++){var o=t[n],i=o.src;if(!i){var a=getComputedStyle(o).backgroundImage;if(a){var c=a.match(/^url\(["']?(.*?)["']?\)$/);c&&(i=c[1])}}i&&Ya.Rum.sendResTiming(o.getAttribute("data-rCid"),i)}})},function(e,t,n){"use strict";n.r(t);n(263),n(264),n(265),n(272),n(276),n(277),n(278),n(281),n(283),n(285),n(295),n(297),n(303),n(304);var r=n(0),o=n.n(r),i=n(19),a=n.n(i),c=n(11),s=n(680).default,u=n(4),l=n.n(u),f=(n(473),function(e){var t=e.name;return o.a.createElement("div",{className:l()()("file-name")},t)}),p=n(114),h=n.n(p),d=n(1),y=n.n(d),m=(n(488),function(e){var t=e.name,n=e.cls;return o.a.createElement("div",{className:l()()("resource-name").mix(n)},t)}),b=n(54),v=n.n(b);n(489);function _(e){"@babel/helpers - typeof";return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e){return function(){var t,n=w(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=w(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(n,r["Component"]);var t=O(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&g(e.prototype,t),n&&g(e,n)}(n,[{key:"_getClassName",value:function(e){var t=this.props,n=t.size,r=t.cls,o=t.shadow,i=[];return r&&i.push(String(r)),l()()("file-icon").m(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({size:n,shadow:o},e,!0)).mix(i)}},{key:"render",value:function(){var e,t=this.props,n=t.ext,r=t.type,i=t.mediatype;return e="album"===r||r===v.a.virus?r:/^dir/.test(r)?function(e){return e!==v.a.folderDefault&&-1!==v.a.folderTypes.indexOf(e)?e:v.a.folderDefault}(r):function(e,t){return"."!==(e=e?e.toLowerCase():"")[0]&&(e="."+e),t=t?t.toLowerCase():"",v.a.extnames[e]||v.a.mediatypes[t]||v.a.default}(n,i),o.a.createElement("span",{className:this._getClassName(e)})}}]),n}();S.propTypes={size:y.a.oneOf(["xs","s","m","l","xl"]),shadow:y.a.bool},S.defaultProps={size:"s",shadow:!1};var k=S,x=n(13),R=n(116),j=n(12);function P(e){"@babel/helpers - typeof";return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e){return function(){var t,n=I(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=I(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(n,j["a"]);var t=T(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&C(e.prototype,t),n&&C(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",d:"M4 2h5v20H4V2zm11 0h5v20h-5V2z"})}}]),n}(),M=n(88),z=n.n(M),L=n(71),N=function(e){var t,n,r,o,i=e.scope?e.scope:e.scopeSelector?document.querySelector(e.scopeSelector):document,a=function(e){return e?{start:"touchstart",move:"touchmove",end:"touchend"}:{start:"mousedown",move:"mousemove",end:"mouseup"}}(e.isTouch),c=e.scrollBorder||{width:0,height:0},s=!1,u=function(t){return e.isTouch?{x:t.touches[0].pageX,y:t.touches[0].pageY,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{x:t.pageX,y:t.pageY,clientX:t.clientX,clientY:t.clientY}},l=function e(t){t.preventDefault(),n.removeEventListener("dragstart",e)},f=function(r){if(!(function(t){return!e.isTouch&&0!==t.button||e.isTouch&&1!==t.touches.length}(r)||e.startFilter&&e.startFilter(r))){e.isTouch||(n=r.target)&&n.addEventListener("dragstart",l),document.addEventListener(a.move,d,e.isTouch&&{passive:!1}),!e.isTouch&&document.addEventListener("scroll",y),document.addEventListener(a.end,p);var o=document.getSelection();o&&o.removeAllRanges(),t=u(r),e.onBeforeStart&&e.onBeforeStart(t,r),document.body.classList.add("no-user-select")}},p=function t(o,i){document.body.classList.remove("no-user-select"),document.removeEventListener(a.move,d),e.isTouch||(document.removeEventListener("scroll",y),n.removeEventListener("dragstart",l)),document.removeEventListener(a.end,t),s&&e.onEnd&&e.onEnd(o,i),s=!1,r=null},h=function(n,o){if(!s){if(e.startThreshold){var i=n.x-t.x,a=n.y-t.y;Math.sqrt(i*i+a*a)>e.startThreshold&&(s=!0)}else s=!0;s&&e.onStart&&e.onStart(t)}if(s){if(e.scroll){var u=document.scrollingElement||document.documentElement;if(n.x=Math.min(n.x,u.scrollWidth-c.width),n.y=Math.min(n.y,u.scrollHeight-c.height),n.clientY<0)window.scrollBy(0,n.clientY);else{var l=window.innerHeight-n.clientY-30;l<0&&window.scrollBy(0,-l)}}e.onMove&&e.onMove(t,n,o)}r=n},d=function(e){e.preventDefault(),h(u(e),e)},y=function(e){r&&(clearTimeout(o),o=setTimeout(function(){var t=Object.assign({},r);t.x=window.window.pageXOffset+t.clientX,t.y=window.window.pageYOffset+t.clientY,h(t,e)},0))};return i&&i.addEventListener(a.start,f),{clearListeners:function(){i&&i.removeEventListener(a.start,f),document.body.classList.remove("no-user-select")},cancel:function(){s&&p({},!0)}}};n(490);function H(e){"@babel/helpers - typeof";return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e){return function(){var t,n=F(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=F(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;return V(e)}(this,t)}}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var G=function(){return l()()("audio-player")},Y=null,q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&W(e,t)}(n,r["Component"]);var t=B(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={isPlaying:!1,requestingUrl:!1,isReady:!1,error:!1,hidePlayButton:!1,canPlay:!r.props.detectPlayability,currentTime:0},r._onPlayPauseButtonClick=r._onPlayPauseButtonClick.bind(V(r)),r._onAudioCanPlay=r._onAudioCanPlay.bind(V(r)),r._onAudioTimeUpdate=r._onAudioTimeUpdate.bind(V(r)),r._onAudioEnded=r._onAudioEnded.bind(V(r)),r._onProgressDown=r._onProgressDown.bind(V(r)),r._onProgressMove=r._onProgressMove.bind(V(r)),r._onError=r._onError.bind(V(r)),r}return function(e,t,n){t&&U(e.prototype,t),n&&U(e,n)}(n,[{key:"componentDidMount",value:function(){if(this.props.detectPlayability){var e=Boolean(Object(L.a)(this.props.mimetype));if(this.setState({canPlay:e}),!e)return}this._audioElement=document.createElement("audio"),this._audioElement.className=G().e("audio-element"),document.body.appendChild(this._audioElement),this._audioElement.addEventListener("canplay",this._onAudioCanPlay),this._audioElement.addEventListener("timeupdate",this._onAudioTimeUpdate),this._audioElement.addEventListener("ended",this._onAudioEnded),this._audioElement.addEventListener("error",this._onError),this._documentPointerListener=N({isTouch:this.props.isTouch,scope:this._progress,onBeforeStart:this._onProgressDown,onMove:this._onProgressMove}),this.props.autoplay?this._requestAndPlay():this.props.preloadMeta&&(this._audioElement.preload="metadata",this._updateUrl())}},{key:"componentDidUpdate",value:function(e){this.state.isPlaying||(this.props.autoplay&&!e.autoplay?this._requestAndPlay():this.props.preloadMeta&&!e.preloadMeta&&this._audioElement&&(this._audioElement.preload="metadata",this._updateUrl()))}},{key:"componentWillUnmount",value:function(){this._audioElement&&(this._pause(),document.body.removeChild(this._audioElement),this._documentPointerListener&&this._documentPointerListener.clearListeners(),this._audioElement.removeEventListener("canplay",this._onAudioCanPlay),this._audioElement.removeEventListener("timeupdate",this._onAudioTimeUpdate),this._audioElement.removeEventListener("ended",this._onAudioEnded),this._audioElement.removeEventListener("error",this._onError))}},{key:"toggleIsPlaying",value:function(e){void 0===e&&(e=!this.state.isPlaying),this.state.isPlaying!==e&&(this.props.onPlayStateChange({isPlaying:e}),e?this._audioUrl?this._play():this._requestAndPlay():(this._pause(),this._playOnReady=!1))}},{key:"maybeResetCurrentTime",value:function(){this._audioElement&&isFinite(this._audioElement.duration)&&(this._audioElement.currentTime=0,this.setState({currentTime:0}))}},{key:"_setCurrentTimeFromPoint",value:function(e){if(this._progressRect&&this._audioElement){var t=Math.max(this._progressRect.left,e.clientX||0);t=Math.min(this._progressRect.right,t);var n=(t-=this._progressRect.left)/this._progressRect.width*this._audioElement.duration;this._audioElement.currentTime=n,this.setState({currentTime:n})}}},{key:"_onProgressDown",value:function(e){this._progressRect=this._progress&&this._progress.getBoundingClientRect(),this._setCurrentTimeFromPoint(e)}},{key:"_onProgressMove",value:function(e,t){this._setCurrentTimeFromPoint(t)}},{key:"_onAudioCanPlay",value:function(){this.setState({isReady:!0,requestingUrl:!1}),this._playOnReady&&this.toggleIsPlaying(!0)}},{key:"_onAudioTimeUpdate",value:function(){this._audioElement&&this.setState({currentTime:this._audioElement.currentTime})}},{key:"_onAudioEnded",value:function(){this.setState({isPlaying:!1}),this.props.onAudioEnded()}},{key:"_onError",value:function(){this.setState({error:!0}),this.props.preloadMeta||(this.setState({isPlaying:!1,canPlay:!1,hidePlayButton:!0}),this.props.onPlayError())}},{key:"_updateUrl",value:function(){var e=this;return this.props.requestAudioUrl().then(function(t){e._audioUrl=t,e._audioElement&&(e._audioElement.src=t)})}},{key:"_requestAndPlay",value:function(){var e=this;this.setState({requestingUrl:!0}),this._updateUrl().then(function(){e._audioElement&&e._audioElement.load(),e._playOnReady=!0})}},{key:"_onPlayPauseButtonClick",value:function(){this.state.hidePlayButton||this.toggleIsPlaying(!this.state.isPlaying)}},{key:"_play",value:function(){if(this.state.error)return this.setState({isPlaying:!1,canPlay:!1,hidePlayButton:!0}),void this.props.onPlayError();this.setState({isPlaying:!0}),Y&&Y!==this&&Y.toggleIsPlaying(!1),Y=this,this._audioElement&&this._audioElement.play()}},{key:"_pause",value:function(){this.setState({isPlaying:!1}),this._audioElement&&this._audioElement.pause(),Y===this&&(Y=null)}},{key:"_getTimeLine",value:function(){var e=this,t=this._audioElement&&isFinite(this._audioElement.duration),n=0,r=null;return this._audioElement&&t&&(n=this.state.currentTime/this._audioElement.duration*100,r=z()(Math.round(this._audioElement.duration))),o.a.createElement("div",{className:G().e("time-line")},o.a.createElement("div",{className:G().e("time").m({current:!0})},z()(Math.round(this.state.currentTime))),o.a.createElement("div",{className:G().e("progress"),ref:function(t){e._progress=t}},o.a.createElement("div",{className:G().e("progress-percent"),style:{width:n.toFixed(2)+"%"}})),o.a.createElement("div",{className:G().e("time").m({duration:!0})},r))}},{key:"render",value:function(){return o.a.createElement("div",{className:G().m({ready:this.state.isReady,play:this.state.isPlaying,preload:this.props.preloadMeta,"hide-play":this.state.hidePlayButton,"detect-playability":this.props.detectPlayability,"can-play":this.state.canPlay,theme:this.props.theme})},o.a.createElement("div",{className:G().e("resource"),onClick:this._onPlayPauseButtonClick},o.a.createElement(k,{cls:G().e("resource-icon"),size:"l",mediatype:"audio",shadow:!0}),o.a.createElement(x.a,{view:"default",tone:"dark",theme:"normal",pin:"circle-circle",size:"ufo-xxl",cls:G().e("play-pause-button")},this.state.isPlaying||this.state.requestingUrl?o.a.createElement(A,null):o.a.createElement(R.a,null))),o.a.createElement(m,{name:this.props.resourceName,cls:G().e("resource-name")}),this._getTimeLine())}}]),n}();q.propTypes={autoplay:y.a.bool,theme:y.a.string,resourceName:y.a.string.isRequired,requestAudioUrl:y.a.func.isRequired,isTouch:y.a.bool,preloadMeta:y.a.bool,detectPlayability:y.a.bool,mimetype:y.a.string,onPlayStateChange:y.a.func,onPlayError:y.a.func,onAudioEnded:y.a.func};var K=function(){};q.defaultProps={isTouch:!1,theme:"light",preloadMeta:!1,onPlayStateChange:K,onPlayError:K,onAudioEnded:K};var X=q,Z=n(6),$=n(18),J=n(21),Q=n(22),ee=n(5),te=n(9);function ne(e){"@babel/helpers - typeof";return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e){return function(){var t,n=ae(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ae(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ne(t)||"function"==typeof t))return t;return ie(e)}(this,t)}}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(n,r["Component"]);var t=oe(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onPlayStateChange=e._onPlayStateChange.bind(ie(e)),e._onAudioEnded=e._onAudioEnded.bind(ie(e)),e}return function(e,t,n){t&&re(e.prototype,t),n&&re(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.countMetrika("show")}},{key:"UNSAFE_componentWillUpdate",value:function(e){!e.isVisible&&this.props.isVisible&&(this._preventUpdateEnvironment=!0,this._audioPlayer.toggleIsPlaying(!1),this._preventUpdateEnvironment=!1)}},{key:"_onPlayStateChange",value:function(e){var t=e.isPlaying;this.props.isVisible&&(t&&this.props.countMetrika("play"),this._preventUpdateEnvironment||this.props.updateEnvironment({autoplayAudio:t}))}},{key:"_onAudioEnded",value:function(){this.props.playNextAudio()}},{key:"render",value:function(){var e=this,t=this.props,n=t.resourceName,r=t.resourceId,i=t.mimetype,a=t.detectPlayability,c=t.theme,s=t.isMobile,u=t.autoplay,l=t.getDownloadUrl,f=t.notify,p=t.isVisible;return o.a.createElement(X,{ref:function(t){e._audioPlayer=t},resourceName:n,requestAudioUrl:function(){return l(r)},theme:c,isTouch:s,onPlayStateChange:this._onPlayStateChange,preloadMeta:p,detectPlayability:a,mimetype:i,onPlayError:function(){return f({mode:te.c.ERROR_TEXT,text:Object(ee.i18n)("en","view-notification","ufo_notification_play_file_failed")})},autoplay:u&&p,onAudioEnded:this._onAudioEnded})}}]),n}();se.defaultProps={isVisible:!0};var ue=Object(c.b)(function(e,t){var n=e.resources,r=e.ua.isMobile,o=e.environment.autoplayAudio,i=t.resourceId,a=n[i];return{resourceId:i,resourceName:a&&a.name,mimetype:a&&a.meta.mimetype,isMobile:r,autoplay:o}},{getDownloadUrl:$.b,playNextAudio:J.f,updateEnvironment:Z.F,notify:Q.c})(se),le=n(16);function fe(e){"@babel/helpers - typeof";return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pe(){return(pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function he(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e){return function(){var t,n=me(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=me(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;return ye(e)}(this,t)}}function ye(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(n,r["Component"]);var t=de(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onImageLoadError=e._onImageLoadError.bind(ye(e)),e}return function(e,t,n){t&&he(e.prototype,t),n&&he(e,n)}(n,[{key:"componentDidMount",value:function(){if(this._previewNode)if(this._previewNode.complete&&0===this._previewNode.naturalWidth)this._onImageLoadError();else if("MSIE"===this.props.ua.BrowserName){var e=new Image;e.addEventListener("error",this._onImageLoadError),e.src=this.props.src}}},{key:"_onImageLoadError",value:function(){this.props.updateOneResource(this.props.resource.id,{meta:{previewLoadFailed:!0}})}},{key:"render",value:function(){var e=this,t=this.props.resource.meta,n=t.previewLoadFailed,r=t.mediatype,i=t.ext;if(n)return o.a.createElement(k,{ext:i,mediatype:r,shadow:!0,size:"l"});var a=Object.assign({},this.props);return delete a.resource,delete a.updateOneResource,delete a.resourceId,delete a.ua,o.a.createElement("img",pe({},a,{ref:function(t){e._previewNode=t},onError:this._onImageLoadError}))}}]),n}(),_e=Object(c.b)(function(e,t){var n=e.resources;return{ua:e.ua,resource:n[t.resourceId]}},{updateOneResource:Z.G})(ve);n(504);function ge(e){"@babel/helpers - typeof";return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e){return function(){var t,n=Se(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Se(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;return Ee(e)}(this,t)}}function Ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(e){return(Se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xe=function(){return l()()("document-preview")},Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(n,r["Component"]);var t=we(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onClick=e._onClick.bind(Ee(e)),e}return function(e,t,n){t&&Oe(e.prototype,t),n&&Oe(e,n)}(n,[{key:"_onClick",value:function(){this.props.openDocument(this.props.resource.id)}},{key:"render",value:function(){var e=this.props.resource,t=e.id,n=e.meta,r=n.ext,i=n.mediatype,a=n.defaultPreview,c=e.dvSearch,s=e.virus,u=a&&!s?o.a.createElement(_e,{resourceId:t,className:xe().m({image:!0}),src:a+"&size=500x500"}):o.a.createElement(k,{cls:xe().m({icon:!0}),ext:r,mediatype:i,shadow:!0,size:"l",type:s?"virus":""});return c?o.a.createElement(le.a,{onClick:this._onClick,theme:"normal"},u):u}}]),n}(),je=Object(c.b)(function(e,t){return{resource:e.resources[t.resourceId]}},{openDocument:Z.p})(Re),Pe=n(258),Ce=n.n(Pe),Te=function(e){var t=e.previewBaseUrl,n=e.defaultPreview,r=e.width,o=e.height,i=e.crop,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"size={{width}}x{{height}}";if(!r||!o)return n;var c=Math.max(window.devicePixelRatio||1,1),s=r*c,u=o*c,l=a.replace("{{width}}",String(Math.floor(s))).replace("{{height}}",String(Math.floor(u))),f="".concat(t,"&").concat(l);return i&&(f+="&crop=1"),f};n(558);function Ie(e){"@babel/helpers - typeof";return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(){return(De=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e){return function(){var t,n=Le(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Le(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ie(t)||"function"==typeof t))return t;return ze(e)}(this,t)}}function ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var He=function(){return l()()("scalable-preview")},Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(n,r["Component"]);var t=Me(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={renderFallback:r.props.shouldRenderFallback&&!r.props.previewBaseUrl},r._onLoadError=r._onLoadError.bind(ze(r)),r}return function(e,t,n){t&&Ae(e.prototype,t),n&&Ae(e,n)}(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.state.renderFallback&&this._getPreviewUrl()!==this._getPreviewUrl(e)&&this.setState({renderFallback:!1})}},{key:"_onLoadError",value:function(){this.setState({renderFallback:!0})}},{key:"_getSizeFormat",value:function(){return this.context.sizeFormat||"size={{width}}x{{height}}"}},{key:"_getPreviewUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return Te(e,this._getSizeFormat())}},{key:"_getPreview",value:function(){var e=this.props,t=e.onLoad,n=e.onError,r=e.active,i=e.previewBaseUrl,a=e.nonce,c=e.srcSet,s=e.srcSetFallback,u=e.shouldRenderFallback,l=e.cover,f={onLoad:t,onError:u?this._onLoadError:n,className:He().e("image").m({cover:l})},p="undefined"==typeof window;if(c)return o.a.createElement("img",De({srcSet:c,src:s},f));if(p){var h=[o.a.createElement("img",De({key:"image",src:""},f))];return r&&h.push(o.a.createElement("script",{key:"script",nonce:a,dangerouslySetInnerHTML:{__html:function(e,t){return"\nvar preview = document.querySelector('.scalable-preview_active .scalable-preview__image');\nif (preview) {\n  var drp = Math.max(window.devicePixelRatio || 1, 1);\n  var width = document.documentElement.clientWidth * drp;\n  var height = document.documentElement.clientHeight * drp;\n  preview.src = '".concat(e,"&' + '").concat(t,"'.replace('{{width}}', Math.floor(width)).replace('{{height}}', Math.floor(height));\n}")}(i,this._getSizeFormat())}})),h}return o.a.createElement("img",De({src:this._getPreviewUrl()},f))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.onClick,r=e.active,i=e.fitToWidth,a=e.style,c=this.state.renderFallback;return o.a.createElement("div",{className:He().m({active:r,"fit-to-width":Boolean(i)}).mix(t),onClick:n,style:a},c?o.a.createElement("div",{className:He().e("fallback")}):this._getPreview())}}]),n}();Ue.propTypes={previewBaseUrl:y.a.string,defaultPreview:y.a.string,width:y.a.number,height:y.a.number,active:y.a.bool,onLoad:y.a.func,srcSet:y.a.string,srcSetFallback:y.a.string,crop:y.a.bool,shouldRenderFallback:y.a.bool,cover:y.a.bool},Ue.contextTypes={sizeFormat:y.a.string};var Be=Ue;function Ve(e){"@babel/helpers - typeof";return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function We(e){return function(){var t,n=Ge(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ge(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ye(e,t)}(n,r["Component"]);var t=We(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Fe(e.prototype,t),n&&Fe(e,n)}(n,[{key:"_getItems",value:function(){var e=this.props,t=e.limit,n=e.activeItemIndex,r=e.items,o=e.createItem,i=Math.floor(t/2),a=Math.max(n-i,0),c=Math.min(n+i,r.length-1);return r.map(function(e,t){return o(t,t>=a&&t<=c)}).filter(Boolean)}},{key:"render",value:function(){return o.a.createElement("div",{className:this.props.className,ref:this.props.itemsListRef},this._getItems())}}]),n}();qe.propTypes={limit:y.a.number.isRequired,items:y.a.array.isRequired,activeItemIndex:y.a.number.isRequired,createItem:y.a.func.isRequired,itemsListRef:y.a.func};var Ke=qe;function Xe(e){"@babel/helpers - typeof";return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e){return function(){var t,n=Je(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Je(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xe(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var et=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qe(e,t)}(n,j["a"]);var t=$e(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Ze(e.prototype,t),n&&Ze(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M9.6 4l-4 4 4 4 .8-.8L7.2 8l3.2-3.2z",fill:"currentColor"})}}]),n}();function tt(e){"@babel/helpers - typeof";return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e){return function(){var t,n=ot(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ot(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function it(e,t){return(it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var at=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&it(e,t)}(n,j["a"]);var t=rt(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&nt(e.prototype,t),n&&nt(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M6.4 12l4-4-4-4-.8.8L8.8 8l-3.2 3.2z",fill:"currentColor"})}}]),n}();n(559);function ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var st={left:et,right:at},ut=function(e){var t,n=e.direction,r=e.hidden,i=e.theme,a=void 0===i?"dark":i,c=e.buttonSize,s=void 0===c?"ufo-xxxl":c,u=e.iconSize,f=void 0===u?"xxl":u,p=e.onClick,h=st[n];return o.a.createElement(x.a,{size:s,theme:"clear",cls:l()()("switch-arrow-button").m((t={},ct(t,n,!0),ct(t,"theme",a),ct(t,"hidden",r),t)),onClick:p},o.a.createElement(h,{iconSize:f}))};ut.propTypes={direction:y.a.string,hidden:y.a.bool,theme:y.a.oneOf(["dark","light"]),buttonSize:y.a.oneOf(["ns","xs","s","m","l","n","head","ufo-xxl","ufo-xxxl"]),iconSize:y.a.oneOf(["s","m","l","xl","xxl","xxxl"]),onClick:y.a.func};var lt=ut;function ft(e){"@babel/helpers - typeof";return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e){return function(){var t,n=yt(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=yt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ft(t)||"function"==typeof t))return t;return dt(e)}(this,t)}}function dt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bt="keyboard",vt="button",_t=["input","textarea","select","option"],gt=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mt(e,t)}(i,r.Component);var n=ht(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return(t=n.call.apply(n,[this,e].concat(o)))._onPreviousArrowClick=t._onPreviousArrowClick.bind(dt(t)),t._onNextArrowClick=t._onNextArrowClick.bind(dt(t)),t._onKeyDown=t._onKeyDown.bind(dt(t)),t}return function(e,t,n){t&&pt(e.prototype,t),n&&pt(e,n)}(i,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this._onKeyDown)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this._onKeyDown)}},{key:"_canUseArrows",value:function(){return!(!this.props.enableKeyboardControl||this.props.disabledOnFormControls&&document.activeElement&&_t.includes(document.activeElement.nodeName.toLowerCase()))}},{key:"_onKeyDown",value:function(e){if(this._canUseArrows())switch(e.keyCode){case 37:case 38:this.props.onPrevious(bt),e.preventDefault();break;case 39:case 40:case 32:this.props.onNext(bt),e.preventDefault()}}},{key:"_onPreviousArrowClick",value:function(){this.props.onPrevious(vt)}},{key:"_onNextArrowClick",value:function(){this.props.onNext(vt)}},{key:"render",value:function(){var t=Object.assign({},this.props),n=(t.children||[]).slice();return t.showArrowLeft&&n.push(o.a.createElement(lt,{direction:"left",key:"previous",onClick:this._onPreviousArrowClick})),t.showArrowRight&&n.push(o.a.createElement(lt,{direction:"right",key:"next",onClick:this._onNextArrowClick})),delete t.children,delete t.showArrowLeft,delete t.showArrowRight,delete t.onPrevious,delete t.onNext,o.a.createElement(e,t,n)}}]),i}();return t.propTypes={enableKeyboardControl:y.a.bool,onPrevious:y.a.func,onNext:y.a.func,showArrowLeft:y.a.bool,showArrowRight:y.a.bool,disabledOnFormControls:y.a.bool},t.defaultProps={enableKeyboardControl:!0,disabledOnFormControls:!0},t},Ot=n(28),wt=n(3),Et=n.n(wt),St=function(e){e.preventDefault()},kt=function(e){return e.resources.indexOf(e.activeResource)};function xt(){return(xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rt(e){"@babel/helpers - typeof";return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ct(e,t,n){return t&&Pt(e.prototype,t),n&&Pt(e,n),e}function Tt(e){return function(){var t,n=Dt(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Dt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Rt(t)||"function"==typeof t))return t;return It(e)}(this,t)}}function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function At(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mt(e,t)}function Mt(e,t){return(Mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var zt=function(){return l()()("slider")},Lt=function(e){return{resources:e.resources,activeResource:e.activeResource}},Nt=gt(function(e){At(n,r["PureComponent"]);var t=Tt(n);function n(e){var r;jt(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={itemsLimit:1},r._getSliderItem=r._getSliderItem.bind(It(r)),r._onFirstActivePreviewLoad=r._onFirstActivePreviewLoad.bind(It(r)),r._onKeyDown=r._onKeyDown.bind(It(r)),r._itemsRefs={},r._isFirstPreviewLoaded=!1,r}return Ct(n,[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this._onKeyDown),this.props.activeResource.content&&this._onFirstActivePreviewLoad(),this.props.containerRef&&this.props.containerRef(this._rootRef),this.props.itemsContainerRef&&this.props.itemsContainerRef(this._itemsContainerRef),this.props.itemsRefs&&this.props.itemsRefs(this._itemsRefs),this._maybeFetchResources()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this._onKeyDown)}},{key:"componentDidUpdate",value:function(e){e.activeResource.id!==this.props.activeResource.id&&this._maybeFetchResources()}},{key:"_maybeFetchResources",value:function(){var e=this;if(!this._isFetching){var t=this.props,n=t.possiblyHasPrevious,r=t.possiblyHasNext,o=t.fetchResourcesThreshold,i=[-1,1].filter(function(t){return function(e,t){var n=kt(e),r=e.fetchResourcesThreshold||10;return-1===t?n<r&&Boolean(e.possiblyHasPrevious):n>e.resources.length-r-1&&Boolean(e.possiblyHasNext)}(Object.assign(Lt(e.props),{possiblyHasPrevious:n,possiblyHasNext:r,fetchResourcesThreshold:o}),t)});if(i.length){var a=this.props.fetchResources(i);if(a instanceof Promise){this._isFetching=!0;var c=function(){e._isFetching=!1};a.then(c,c)}}}}},{key:"_getSliderItems",value:function(){var e=this;return o.a.createElement(Ke,{className:zt().e("items"),itemsListRef:function(t){e._itemsContainerRef=t},limit:this.state.itemsLimit,items:this.props.resources,activeItemIndex:kt(Lt(this.props)),createItem:this._getSliderItem})}},{key:"_onFirstActivePreviewLoad",value:function(){this.setState({itemsLimit:5})}},{key:"_getPreview",value:function(e){var t=this,n=this.props.resources[e],r=n===this.props.activeResource;if(n.content){var i="function"==typeof n.content?n.content(this.props.sliderApi):n.content;return o.a.createElement("div",{className:zt().e("content")},n.background?o.a.createElement("div",{className:zt().e("content-background"),style:{backgroundImage:"url(".concat(n.background,")")}}):null,i)}var a={onError:function(e){return t.props.onImageError(n,e)},className:zt().e("preview"),active:r,nonce:this.props.nonce,fitToWidth:n.fitToWidth};if(r&&this.state.isZoomed)a.previewBaseUrl=a.defaultPreview=n.originalUrl;else if(this.props.useSrcSet)a.srcSet=n.srcSet,a.srcSetFallback=n.srcSetFallback;else{var c=this.props.viewportSize,s=c.width,u=c.height;Object.assign(a,{defaultPreview:n.originalUrl,previewBaseUrl:n.previewBaseUrl,width:s,height:u})}return!this._isFirstPreviewLoaded&&r&&(a.onLoad=this._onFirstActivePreviewLoad),o.a.createElement(Be,a)}},{key:"_getSliderItem",value:function(e,t){var n=this,r=this.props.resources[e],i=r===this.props.activeResource;return o.a.createElement("div",{className:zt().e("item").m({active:i}),key:r.id||e,ref:function(t){n._itemsRefs[e]=t}},i||t?this._getPreview(e):null)}},{key:"_getToolbar",value:function(){var e=this,t=this.props,n=t.toolbarChildren,r=t.waitResource;return n?o.a.createElement("div",{className:zt().e("toolbar").m({visible:this.props.toolbarVisible}),onTouchMove:St,onTransitionEnd:function(){return e.props.onToolbarAnimationEnd(e.props.toolbarVisible)}},"function"==typeof n?n(r):n):null}},{key:"_onKeyDown",value:function(e){this.props.enableKeyboardControl&&e.keyCode===Et.a.KEYS.ESC&&this.props.onClose(bt)}},{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:zt().m({zoomed:this.state.isZoomed}).mix(this.props.cls),ref:function(t){e._rootRef=t}},this._getSliderItems(),this._getToolbar(),this.props.children)}}]),n}()),Ht=function(e){At(n,r["PureComponent"]);var t=Tt(n);function n(e){var r;jt(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={waitPrevious:!1,waitNext:!1},r._setItemsRefs=r._setItemsRefs.bind(It(r)),r.switchToPrevious=r.switchToPrevious.bind(It(r)),r.switchToNext=r.switchToNext.bind(It(r)),r._itemsRefs={},r}return Ct(n,[{key:"componentDidUpdate",value:function(e){var t=kt(Lt(this.props)),n=this.props,r=n.resources,o=n.possiblyHasPrevious,i=n.possiblyHasNext,a=n.onActiveResourceChange,c=r!==e.resources;(this.state.waitPrevious&&(c||o!==e.possiblyHasPrevious)||this.state.waitNext&&(c||i!==e.possiblyHasNext))&&(this.state.waitPrevious&&(t>0?(a(r[t-1],-1),this.setState({waitPrevious:!1})):o||this.setState({waitPrevious:!1})),this.state.waitNext&&(t<r.length-1?(a(r[t+1],1),this.setState({waitNext:!1})):i||this.setState({waitNext:!1})))}},{key:"switchToPrevious",value:function(e){var t=kt(Lt(this.props));this.props.possiblyHasPrevious&&0===t&&this.setState({waitPrevious:!0}),this.state.waitNext?this.setState({waitNext:!1}):t>0&&this.props.onActiveResourceChange(this.props.resources[t-1],-1,e)}},{key:"switchToNext",value:function(e){var t=kt(Lt(this.props));this.props.possiblyHasNext&&t===this.props.resources.length-1&&this.setState({waitNext:!0}),this.state.waitPrevious?this.setState({waitPrevious:!1}):t<this.props.resources.length-1&&this.props.onActiveResourceChange(this.props.resources[t+1],1,e)}},{key:"_getFakeItem",value:function(e,t){var n=this.props.viewportSize,r=n.width,i=n.height;return{id:"fake-wait-"+e,content:o.a.createElement(Ot.a,{progress:!0,size:"m",cls:zt().e("fake-item-spin")}),background:this.props.showBackgroundWhileLoadNext&&t.previewBaseUrl&&Te({previewBaseUrl:t.previewBaseUrl,width:r,height:i})}}},{key:"_getResources",value:function(){var e,t,n=this.props.resources.slice(),r=this.props.activeResource;return this.props.possiblyHasPrevious&&(e=this._getFakeItem("previous",this.props.resources[0]),n.unshift(e),this.state.waitPrevious&&(r=e)),this.props.possiblyHasNext&&(t=this._getFakeItem("next",this.props.resources[this.props.resources.length-1]),n.push(t),this.state.waitNext&&(r=t)),{resources:n,activeResource:r}}},{key:"isCurrentResourceAnImage",value:function(){return!this.state.waitPrevious&&!this.state.waitNext&&!this.props.activeResource.content}},{key:"_setItemsRefs",value:function(e){this._itemsRefs=e}},{key:"getItemsRefs",value:function(){var e;return this.state.waitPrevious?e=0:this.state.waitNext?e=this._itemsRefs.length-1:(e=kt(Lt(this.props)),this.props.possiblyHasPrevious&&e++),{current:this._itemsRefs[e],next:this._itemsRefs[e+1],prev:this._itemsRefs[e-1]}}},{key:"render",value:function(){var e=kt(Lt(this.props)),t=this.props.showSwitchArrows&&this.props.toolbarVisible,n=t&&(e>0||0===e&&this.props.possiblyHasPrevious&&!this.state.waitPrevious),r=t&&(e<this.props.resources.length-1||e===this.props.resources.length-1&&this.props.possiblyHasNext&&!this.state.waitNext);return o.a.createElement(Nt,xt({showArrowLeft:n,showArrowRight:r,waitResource:this.state.waitPrevious||this.state.waitNext,onPrevious:this.switchToPrevious,onNext:this.switchToNext,itemsRefs:this._setItemsRefs},this.props,this._getResources()))}}]),n}();Ht.propTypes={cls:y.a.oneOfType([y.a.object,y.a.string]),showSwitchArrows:y.a.bool,resources:y.a.array.isRequired,possiblyHasPrevious:y.a.bool,possiblyHasNext:y.a.bool,fetchResourcesThreshold:y.a.number,fetchResources:y.a.func,toolbarChildren:y.a.oneOfType([y.a.node,y.a.func]),activeResource:y.a.object,enableKeyboardControl:y.a.bool,viewportSize:y.a.shape({width:y.a.number,height:y.a.number}).isRequired,onActiveResourceChange:y.a.func,onClose:y.a.func,onImageError:y.a.func,toolbarVisible:y.a.bool,useSrcSet:y.a.bool,sliderApi:y.a.object,onToolbarAnimationEnd:y.a.func};var Ut=function(){};Ht.defaultProps={fetchResourcesThreshold:10,fetchResources:Ut,enableKeyboardControl:!0,onActiveResourceChange:Ut,onClose:Ut,onImageError:Ut,onToolbarAnimationEnd:Ut,toolbarVisible:!0,sliderApi:{}},Ht.ToolbarLeft=function(e){return o.a.createElement("div",{className:zt().e("toolbar-left")},e.children)},Ht.ToolbarRight=function(e){return o.a.createElement("div",{className:zt().e("toolbar-right")},e.children)};var Bt=Ht;var Vt=function(e,t){Object.keys(t).forEach(function(n){"x"!==n&&"y"!==n&&"scale"!==n&&(e.style[n]=t[n])});var n="";void 0===t.x&&void 0===t.y||(n+="translate3d(".concat(t.x||0,"px, ").concat(t.y||0,"px, 0)")),void 0!==t.scale&&(n+=" scale(".concat(t.scale,")")),n&&(e.style.webkitTransform=e.style.transform=n)};function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wt=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._viewportSize=t,this._elements=n,this._elementsSize=r}return function(e,t,n){t&&Ft(e.prototype,t),n&&Ft(e,n)}(e,[{key:"start",value:function(e,t){this._initialData=t,this._currentData=this._extractTransformData(e),this._toggleElementsTransform(!0)}},{key:"move",value:function(e){this._currentData=this._extractTransformData(e),this._onMove(),this._applyChangesToElements(this._currentData)}},{key:"end",value:function(){var e=this,t=this._isTransformComplete(),n=t?this._getCompleteTransformValues():this._getInitialTransformValues(),r=Object.keys(this._currentData).some(function(t){return e._currentData[t]!==n[t]})?200:void 0;return Promise.resolve(this._applyChangesToElements(n,r)).then(function(){return e._finishTransform(),t?e._getTransformResult():Promise.reject(!1)})}},{key:"_onMove",value:function(){}},{key:"_extractTransformData",value:function(e){}},{key:"isExternalFinishTransform",value:function(){return!1}},{key:"_finishTransform",value:function(){this.isExternalFinishTransform()||this._toggleElementsTransform(!1)}},{key:"finishTransform",value:function(){this._toggleElementsTransform(!1)}},{key:"_getCompleteTransformValues",value:function(){}},{key:"_getInitialTransformValues",value:function(){return{}}},{key:"_getTransformResult",value:function(){}},{key:"_isTransformComplete",value:function(){return!1}},{key:"_calculateElementStyles",value:function(e){}},{key:"_applyChangesToElements",value:function(e,t){var n=this,r=[];if(this._eachElement(function(o){var i=n._setStylesToElement(o,n._calculateElementStyles(e),t);t&&r.push(i)}),t)return Promise.all(r)}},{key:"_setStylesToElement",value:function(e,t,n){if(n)return new Promise(function(r){var o=function t(){r(),e.removeEventListener("transitionend",t),e.removeEventListener("webkitTransitionEnd",t),Vt(e,{transition:""})},i=Object.assign({},t,{transition:"".concat(n,"ms ease")});e.addEventListener("transitionend",o),e.addEventListener("webkitTransitionEnd",o),Vt(e,i)});Vt(e,t)}},{key:"_toggleElementsTransform",value:function(e){this._eachElement(function(t){t.classList.toggle("new-composite-layer",e),e||(t.style.transform="",t.style.opacity="")})}},{key:"_eachElement",value:function(e){var t=this;this._elements instanceof Element?e.call(this,this._elements):Object.keys(this._elements).forEach(function(n){t._elements[n]&&e.call(t,t._elements[n],n)})}}]),e}();function Gt(e){"@babel/helpers - typeof";return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e){return function(){var t,n=Kt(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Kt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Gt(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){return(Xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xt(e,t)}(n,Wt);var t=qt(n);function n(e,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e,r))._elements=r,o._neighbourName="",o}return function(e,t,n){t&&Yt(e.prototype,t),n&&Yt(e,n)}(n,[{key:"isExternalFinishTransform",value:function(){return!0}},{key:"_extractTransformData",value:function(e){return{deltaX:e.deltaX}}},{key:"_isTransformComplete",value:function(){var e=Math.abs(this._currentData.deltaX)/this._viewportSize.width;return Boolean(e>.3&&this._elements[this._neighbourName])}},{key:"_getCompleteTransformValues",value:function(){return{deltaX:this._viewportSize.width*Math.sign(this._currentData.deltaX)}}},{key:"_getInitialTransformValues",value:function(){return{deltaX:0}}},{key:"_onMove",value:function(){this._neighbourName=this._currentData.deltaX<0?"next":"prev"}},{key:"_applyChangesToElements",value:function(e,t){var n=[this._setStylesToElement(this._elements.current,this._calculateMainItemStyles(e),t)];if(this._elements[this._neighbourName]){var r=this._setStylesToElement(this._elements[this._neighbourName],this._calculateNeighbourItemStyles(e),t);n.push(r)}return Promise.all(n)}},{key:"_getTransformResult",value:function(){return-Math.sign(this._currentData.deltaX)}},{key:"_calculateMainItemStyles",value:function(e){var t=Math.abs(e.deltaX)/this._viewportSize.width;return 0===e.deltaX?{x:0,opacity:1,scale:1}:e.deltaX<0?{x:e.deltaX,opacity:1-t,scale:1}:{x:0,opacity:1-t,scale:1-.2*t}}},{key:"_calculateNeighbourItemStyles",value:function(e){var t=Math.abs(e.deltaX)/this._viewportSize.width;return{x:"prev"===this._neighbourName?e.deltaX-this._viewportSize.width:0,opacity:t,scale:.8+.2*t}}}]),n}();function $t(e){"@babel/helpers - typeof";return($t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qt(e){return function(){var t,n=en(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=en(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(n,Wt);var t=Qt(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Jt(e.prototype,t),n&&Jt(e,n)}(n,[{key:"isExternalFinishTransform",value:function(){return!0}},{key:"_extractTransformData",value:function(e){return{deltaY:e.deltaY}}},{key:"_getTransformResult",value:function(){return!0}},{key:"_getInitialTransformValues",value:function(){return{deltaY:0}}},{key:"_getCompleteTransformValues",value:function(){return{deltaY:Math.sign(this._currentData.deltaY)*this._viewportSize.height}}},{key:"_isTransformComplete",value:function(){return Math.abs(this._currentData.deltaY/this._viewportSize.height)>.2}},{key:"_calculateElementStyles",value:function(e){var t=Math.abs(e.deltaY/this._viewportSize.height);return{y:e.deltaY,opacity:1-t}}}]),n}();function rn(e){"@babel/helpers - typeof";return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function an(e){return function(){var t,n=cn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=cn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===rn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function cn(e){return(cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sn(e,t){return(sn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var un=function(e,t,n,r,o){return(Math.min(Math.max(r,e),t)-e-n/2)*o},ln=function(e,t,n,r,o){return(Math.min(Math.max(r,e),t)-e-n/2)*o},fn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sn(e,t)}(n,Wt);var t=an(n);function n(e,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(i=t.call(this,e,r,o))._elementsSize=o,i}return function(e,t,n){t&&on(e.prototype,t),n&&on(e,n)}(n,[{key:"_extractTransformData",value:function(e){var t=this._currentData||this._initialData;this.dx=this.dx||0,this.dy=this.dy||0;var n=Math.min(e.scale*this._initialData.scale,10),r=n/t.scale-1,o=t.scale/this._initialData.scale,i=o*this._elementsSize.width,a=o*this._elementsSize.height,c=this._elementsSize.left+(this._elementsSize.width-i)/2-this.dx,s=this._elementsSize.top+(this._elementsSize.height-a)/2-this.dy,u=un(c,c+i,i,e.center.x,r),l=ln(s,s+a,a,e.center.y,r);return this.dx+=u,this.dy+=l,{scale:n,x:t.x-u,y:t.y-l}}},{key:"_calculateElementStyles",value:function(e){return e}}]),n}();function pn(e){"@babel/helpers - typeof";return(pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dn(e){return function(){var t,n=yn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=yn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===pn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mn(e,t){return(mn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mn(e,t)}(n,Wt);var t=dn(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&hn(e.prototype,t),n&&hn(e,n)}(n,[{key:"_extractTransformData",value:function(e){return{velocityX:e.velocityX,velocityY:e.velocityY,x:this._initialData.x+e.deltaX,y:this._initialData.y+e.deltaY,scale:this._initialData.scale}}},{key:"_calculateElementStyles",value:function(e){return e}}]),n}();function vn(e){"@babel/helpers - typeof";return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gn(e,t,n){return(gn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wn(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function On(e){return function(){var t,n=wn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=wn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===vn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function En(e,t){return(En=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Sn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&En(e,t)}(n,fn);var t=On(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&_n(e.prototype,t),n&&_n(e,n)}(n,[{key:"start",value:function(e,t){this._reset=t.scale>1,t.scale>1?this._currentData={x:0,y:0,scale:1}:(e=Object.assign({},e,{scale:5}),gn(wn(n.prototype),"start",this).call(this,e,t))}},{key:"end",value:function(){var e=this,t=this._applyChangesToElements(this._currentData,200);return t?t.then(function(){return e._currentData}):Promise.reject()}}]),n}();n(561);function kn(e){"@babel/helpers - typeof";return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xn(){return(xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t,n){return(Pn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=In(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Cn(e){return function(){var t,n=In(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=In(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===kn(t)||"function"==typeof t))return t;return Tn(e)}(this,t)}}function Tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Dn(e,t){return(Dn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var An=null;function Mn(e){e instanceof Error&&setTimeout(function(){throw e},0)}"undefined"!=typeof window&&(An=n(560));var zn={SWIPE_TO_CLOSE:"SWIPE_TO_CLOSE",SWIPE_TO_CHANGE:"SWIPE_TO_CHANGE",DOUBLE_TAP_TO_ZOOM:"DOUBLE_TAP_TO_ZOOM",PINCH_TO_ZOOM:"PINCH_TO_ZOOM",MOVE_ZOOMED:"MOVE_ZOOMED",WHEEL_TO_ZOOM:"WHEEL_TO_ZOOM"},Ln=Object.assign({GESTURE:"gesture"},Bt.ACTION_SOURCE),Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dn(e,t)}(n,r["Component"]);var t=Cn(n);function n(e){var r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];return(o=t.call.apply(t,[this,e].concat(a))).state={isZoomed:!1,toolbarVisible:!0},o._onPanH=o._onPanH.bind(Tn(o)),o._onPanV=o._onPanV.bind(Tn(o)),o._onPinch=o._onPinch.bind(Tn(o)),o._onPan=o._onPan.bind(Tn(o)),o._onDbTap=o._onDbTap.bind(Tn(o)),o._onTap=o._onTap.bind(Tn(o)),o._onWheel=o._onWheel.bind(Tn(o)),o._setZoomedState=o._setZoomedState.bind(Tn(o)),o._setToolbarVisible=o._setToolbarVisible.bind(Tn(o)),o._setRef=o._setRef.bind(Tn(o)),o._setContainerRef=o._setContainerRef.bind(Tn(o)),o._setItemsContainerRef=o._setItemsContainerRef.bind(Tn(o)),o.sliderApi={setToolbarVisible:o._setToolbarVisible},o._gesturesToRecognizers=(Rn(r={},zn.SWIPE_TO_CLOSE,"verticalPan"),Rn(r,zn.SWIPE_TO_CHANGE,"horizontalPan"),Rn(r,zn.DOUBLE_TAP_TO_ZOOM,"dbtap"),Rn(r,zn.PINCH_TO_ZOOM,"pinch"),Rn(r,zn.MOVE_ZOOMED,"pan"),r),o}return function(e,t,n){t&&jn(e.prototype,t),n&&jn(e,n)}(n,[{key:"setState",value:function(e,t){var r=this.state.toolbarVisible;Pn(In(n.prototype),"setState",this).call(this,e,t),"boolean"==typeof e.toolbarVisible&&e.toolbarVisible!==r&&this.props.onToolbarVisibilityChange(e.toolbarVisible)}},{key:"componentDidMount",value:function(){this._mountTimestamp=Date.now(),this._bindGestures(),this._resetZoomedState()}},{key:"componentWillUnmount",value:function(){this._unbindGestures()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){!this.state.toolbarVisible&&e.activeResource&&this.props.activeResource&&e.activeResource.id!==this.props.activeResource.id&&e.shouldSetToolbarVisible&&this.setState({toolbarVisible:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props.activeResource||{},n=e.activeResource||{},r=t.id!==n.id,o=this._getItemsRefs().current;r&&(this._toggleZoomGestures(!this.props.activeResource.content),this._currentTransform&&this._currentTransform.isExternalFinishTransform()&&(this._currentTransform._elements.next===o||this._currentTransform._elements.prev===o)&&this._currentTransform.finishTransform())}},{key:"_getItemsRefs",value:function(){return this._sliderBaseRef.getItemsRefs()}},{key:"_getActiveImageRef",value:function(){return this._getItemsRefs().current.querySelector("img")}},{key:"_bindGestures",value:function(){this._hammerManager=new An.Manager(this._itemsContainerRef,{cssProps:Ce()(An.defaults,["touchCallout"])}),this._hammerRecognisers={horizontalPan:new An.Pan({event:"panh",direction:An.DIRECTION_HORIZONTAL}),verticalPan:new An.Pan({event:"panv",threshold:20,direction:An.DIRECTION_VERTICAL}),pinch:new An.Pinch,pan:new An.Pan({enable:!1}),dbtap:new An.Tap({event:"dbtap",taps:2,threshold:20,posThreshold:20}),tap:new An.Tap},this._hammerManager.add([this._hammerRecognisers.pinch,this._hammerRecognisers.horizontalPan,this._hammerRecognisers.verticalPan,this._hammerRecognisers.pan,this._hammerRecognisers.dbtap,this._hammerRecognisers.tap]),this._hammerRecognisers.verticalPan.requireFailure(this._hammerRecognisers.pinch),this._hammerRecognisers.horizontalPan.requireFailure(this._hammerRecognisers.pinch),this._hammerManager.on("panhstart panhmove panhend panhcancel",this._onPanH),this._hammerManager.on("panvstart panvmove panvend panvcancel",this._onPanV),this._hammerManager.on("pinchstart pinchmove pinchend pinchcancel",this._onPinch),this._hammerManager.on("panstart panmove panend pancancel",this._onPan),this._hammerManager.on("dbtap",this._onDbTap),this._hammerRecognisers.tap.requireFailure(this._hammerRecognisers.dbtap),this._hammerManager.on("tap",this._onTap),this._toggleGestures(Object.values(zn),!0),this._toggleZoomGestures(!this.props.activeResource.content),this._itemsContainerRef&&this._itemsContainerRef.addEventListener("dragstart",St)}},{key:"_unbindGestures",value:function(){this._hammerManager.destroy(),this._itemsContainerRef&&(this._itemsContainerRef.removeEventListener("touchend",St),this._itemsContainerRef.removeEventListener("wheel",this._onWheel),this._itemsContainerRef.removeEventListener("dragstart",St))}},{key:"_onWheel",value:function(e){var t=this;St(e);var n=e.wheelDeltaY||e.wheelDelta||-120*Math.sign(e.deltaY)||0;if(0!==n){var r=n/1e3,o=this._getActiveImageRef();if(o){var i=o.getBoundingClientRect(),a=this._zoomedValues.scale,c=a+r;c=Math.max(c,1);var s=(c=Math.min(c,10))/a-1,u=un(i.left,i.right,i.width,e.clientX,s),l=ln(i.top,i.bottom,i.height,e.clientY,s);this._setZoomedState({scale:c,x:this._zoomedValues.x-u,y:this._zoomedValues.y-l}),Vt(o,this._zoomedValues),this._timer&&clearTimeout(this._timer),this._timer=setTimeout(function(){return t._resetImagePosition()},200)}}}},{key:"_resetImagePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._getActiveImageRef();if(t){if(this._zoomedValues.scale>1&&!e){var n=t.getBoundingClientRect(),r=window.innerHeight-n.bottom,o=window.innerWidth-n.right,i=!0;if(n.height<innerHeight?this._zoomedValues.y=0:n.top>0?this._zoomedValues.y-=n.top:r>0?this._zoomedValues.y+=r:i=!1,n.width<innerWidth?(this._zoomedValues.x=0,i=!0):n.left>0?(this._zoomedValues.x-=n.left,i=!0):o>0&&(this._zoomedValues.x+=o,i=!0),!i)return}else this._resetZoomedState();!function(e,t,n){if(n)return new Promise(function(r){var o=function t(){r(),e.removeEventListener("transitionend",t),e.removeEventListener("webkitTransitionEnd",t),Vt(e,{transition:"all 0s ease 0s"})},i=Object.assign({},t,{transition:"".concat(n,"ms ease")});e.addEventListener("transitionend",o),e.addEventListener("webkitTransitionEnd",o),Vt(e,i)});Vt(e,t)}(t,this._zoomedValues,200)}}},{key:"_toggleZoomGestures",value:function(e){if(this._toggleGestures([zn.PINCH_TO_ZOOM,zn.DOUBLE_TAP_TO_ZOOM],e),this._toggleGestures([zn.MOVE_ZOOMED],this.state.isZoomed&&e),this._itemsContainerRef){var t=this.props.enabledGestures.includes(zn.WHEEL_TO_ZOOM);e?(this._itemsContainerRef.addEventListener("touchend",St),t&&this._itemsContainerRef.addEventListener("wheel",this._onWheel)):(this._itemsContainerRef.removeEventListener("touchend",St),t&&this._itemsContainerRef.removeEventListener("wheel",this._onWheel))}}},{key:"_onActiveResourceChange",value:function(e,t,n){if(this._sliderBaseRef){var r=this._sliderBaseRef.isCurrentResourceAnImage(),o=e&&!e.content;r!==o&&this._toggleZoomGestures(o),t<0?this._sliderBaseRef.switchToPrevious(n):this._sliderBaseRef.switchToNext(n)}}},{key:"_toggleGestures",value:function(e,t){var n=this;e.forEach(function(e){var r=n._gesturesToRecognizers[e];if(r&&n._hammerRecognisers){var o=n.props.enabledGestures.includes(e);n._hammerRecognisers[r].set({enable:t&&o})}})}},{key:"_setZoomedState",value:function(e){this.props.onZoomStateChange(e),this._zoomedValues=e;var t=e.scale>1;this._toggleIsZoomed(t),this.setState({toolbarVisible:!t}),this._toggleGestures([zn.SWIPE_TO_CHANGE,zn.SWIPE_TO_CLOSE],!t),this._toggleGestures([zn.MOVE_ZOOMED],t)}},{key:"_resetZoomedState",value:function(){this._setZoomedState({scale:1,x:0,y:0})}},{key:"_toggleIsZoomed",value:function(e){e=void 0===e?!this.state.isZoomed:e,this.setState({isZoomed:e})}},{key:"_onPanH",value:function(e){var t=this;if("panhstart"===e.type||this._currentTransform instanceof Zt){var n=kt(Lt(this.props));"panhstart"===e.type?(this._currentTransform=new Zt(this.props.viewportSize,this._getItemsRefs()),this._currentTransform.start(e)):"panhmove"===e.type||"panhcancel"===e.type?this._currentTransform&&this._currentTransform.move(e):"panhend"===e.type&&this._currentTransform&&this._currentTransform.end().then(function(e){t._onActiveResourceChange(t.props.resources[n+e],e,Ln.GESTURE)}).catch(Mn)}}},{key:"_onPanV",value:function(e){var t=this;if("panvstart"===e.type||this._currentTransform instanceof nn)switch(e.type){case"panvstart":this._container&&(this._currentTransform=new nn(this.props.viewportSize,this._container),this._currentTransform.start(e));break;case"panvmove":this._currentTransform&&this._currentTransform.move(e);break;case"panvend":case"panvcancel":this._currentTransform&&this._currentTransform.end().then(function(){t.props.onClose(Ln.GESTURE)}).catch(Mn)}}},{key:"_onPinch",value:function(e){switch(e.type){case"pinchstart":var t=this._getActiveImageRef();if(!t)return;var n=t.getBoundingClientRect();this._currentTransform=new fn(this.props.viewportSize,t,n),this._currentTransform.start(e,this._zoomedValues),this._setZoomedState(this._currentTransform._extractTransformData(e));break;case"pinchmove":this._currentTransform&&this._currentTransform.move(e);break;case"pinchend":case"pinchcancel":this._currentTransform&&(this._setZoomedState(this._currentTransform._currentData),this._resetImagePosition())}}},{key:"_onPan",value:function(e){switch(e.type){case"panstart":var t=this._getActiveImageRef();if(t){var n=t.getBoundingClientRect();this._currentTransform=new bn(this.props.viewportSize,t,{width:n.width,height:n.height}),this._currentTransform.start(e,this._zoomedValues)}break;case"panmove":this._currentTransform&&this._currentTransform.move(e);break;case"panend":case"pancancel":this._currentTransform&&(this._setZoomedState(this._currentTransform._currentData),this._resetImagePosition())}}},{key:"_onDbTap",value:function(e){var t=this._getActiveImageRef();if(t){var n=t.getBoundingClientRect();this._currentTransform=new Sn(this.props.viewportSize,t,n),this._currentTransform.start(e,this._zoomedValues),this._currentTransform.end(),this._setZoomedState(this._currentTransform._currentData)}}},{key:"_setToolbarVisible",value:function(e){this.setState({toolbarVisible:e})}},{key:"_shouldHandleTap",value:function(e){var t=e.target;return!(!this._mountTimestamp||e.timeStamp-this._mountTimestamp<300)&&(!(!this._container||!this._container.contains(t))&&(!this.props.disableTapOnSelectors.length||!this.props.disableTapOnSelectors.some(function(e){return t.closest(e)})))}},{key:"_onTap",value:function(e){this._shouldHandleTap(e)&&this._setToolbarVisible(!this.state.toolbarVisible)}},{key:"_setRef",value:function(e){this._sliderBaseRef=e}},{key:"_setContainerRef",value:function(e){this._container=e}},{key:"_setItemsContainerRef",value:function(e){this._itemsContainerRef=e}},{key:"render",value:function(){return o.a.createElement(Bt,xn({},this.props,{toolbarVisible:this.state.toolbarVisible,sliderApi:this.sliderApi,ref:this._setRef,containerRef:this._setContainerRef,itemsContainerRef:this._setItemsContainerRef}))}}]),n}();Nn.propTypes=Object.assign({enabledGestures:y.a.arrayOf(y.a.oneOf([zn.SWIPE_TO_CLOSE,zn.SWIPE_TO_CHANGE,zn.DOUBLE_TAP_TO_ZOOM,zn.PINCH_TO_ZOOM,zn.MOVE_ZOOMED,zn.WHEEL_TO_ZOOM])),onZoomStateChange:y.a.func,onToolbarVisibilityChange:y.a.func,onToolbarAnimationEnd:y.a.func,disableTapOnSelectors:y.a.array,shouldSetToolbarVisible:y.a.bool},Bt.propTypes);var Hn=function(){};Nn.defaultProps=Object.assign({enabledGestures:[zn.SWIPE_TO_CLOSE,zn.SWIPE_TO_CHANGE,zn.DOUBLE_TAP_TO_ZOOM,zn.PINCH_TO_ZOOM,zn.MOVE_ZOOMED,zn.WHEEL_TO_ZOOM],onZoomStateChange:Hn,onToolbarVisibilityChange:Hn,onToolbarAnimationEnd:Hn,disableTapOnSelectors:[],shouldSetToolbarVisible:!1},Bt.defaultProps),Nn.ToolbarLeft=Bt.ToolbarLeft,Nn.ToolbarRight=Bt.ToolbarRight;var Un=Nn,Bn=n(14);n(562);function Vn(e){"@babel/helpers - typeof";return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wn(e){return function(){var t,n=Gn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Gn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Vn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Gn(e){return(Gn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yn(e,t){return(Yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qn={xs:"xs",s:"xs",m:"s",n:"xs",l:"m",head:"m","ufo-xl":"l"},Kn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yn(e,t)}(n,j["a"]);var t=Wn(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Fn(e.prototype,t),n&&Fn(e,n)}(n,[{key:"getContent",value:function(){return o.a.createElement(Ot.a,{size:this.props.spinSize||qn[this.props.size],progress:!0,cls:l()()("spin-wrapper").m({white:this.props.white})})}}]),n}(),Xn=n(43);function Zn(e){"@babel/helpers - typeof";return(Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jn(e){return function(){var t,n=Qn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Qn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Zn(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Qn(e){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e,t){return(er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&er(e,t)}(n,j["a"]);var t=Jn(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&$n(e.prototype,t),n&&$n(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("g",null,o.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM6.74 9.42L4.65 7.58a.95.95 0 0 0-1.3.04l.02-.02a.87.87 0 0 0 .01 1.25l3.36 3.2L12.24 6a.87.87 0 0 0-.08-1.25l-.1-.09a.9.9 0 0 0-1.27.1L6.74 9.41z"}))}}]),n}(),nr=n(10);function rr(e){"@babel/helpers - typeof";return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(){return(or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ar(e){return function(){var t,n=sr(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=sr(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;return cr(e)}(this,t)}}function cr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ur(e,t){return(ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lr=function(){return l()()("save-button")},fr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ur(e,t)}(n,r["Component"]);var t=ar(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onSaveButtonClick=e._onSaveButtonClick.bind(cr(e)),e._onOpenFileButtonClick=e._onOpenFileButtonClick.bind(cr(e)),e}return function(e,t,n){t&&ir(e.prototype,t),n&&ir(e,n)}(n,[{key:"_onSaveButtonClick",value:function(){this.props.save(this.props.resourceId,this.props.isFrom===te.a.SLIDER),this.props.onSaveClick()}},{key:"_onOpenFileButtonClick",value:function(){this.props.openFileInDisk(this.props.resourceId),this.props.onOpenFileClick()}},{key:"render",value:function(){if(this.props.isDiskPublicAntiFONoSaveExp)return null;var e=this.props,t=e.resourceId,n=e.operations,r=e.isDirOrAlbum,i=e.antiFileSharing,a=(e.sliderResourceId,e.isSaveButtonHidden,e.virus),c=e.hasIcon,s=e.hasText,u=e.cls,l=e.theme,f=e.size,p=e.view,h=e.toneOpen,d=e.isMobile,y=e.isFrom,m=a?"default":this.props.toneSave,b={size:f,theme:l,view:p,disabled:a,pale:a};switch((n.save&&n.save[t]||{}).state){case te.e.DONE:return i&&!d&&this.props.redirectToResourceAndDownload(t),r&&i||y!==te.a.RESOURCES_ACTION_BAR||!d?o.a.createElement(x.a,or({},b,{cls:lr().m({open:!0}).mix(u),tone:h,onClick:this._onOpenFileButtonClick}),c?o.a.createElement(tr,{iconSize:"m"}):null,o.a.createElement(Bn.a,{keyset:"actions",loc:"ufo_open_yadisk_after_save"})):null;case te.e.IN_PROGRESS:case te.e.WAITING_AUTH:b.progress=!0}var v=[];return b.progress&&(y===te.a.SLIDER||y===te.a.RESOURCES_ACTION_BAR&&!s)?v.push(o.a.createElement(Kn,{white:!0,key:"spin"})):(c&&v.push(o.a.createElement(Xn.a,{key:"icon",iconSize:"m"})),s&&v.push(i?o.a.createElement(Bn.a,{key:"text",keyset:"actions",loc:"ufo_save_and_download_yadisk"}):o.a.createElement(Bn.a,{key:"text",keyset:"actions",loc:"ufo_save_yadisk"}))),o.a.createElement(x.a,or({},b,{cls:lr().m({"save-and-download":i,save:!i}).mix(u),tone:m,action:!0,onClick:this._onSaveButtonClick}),v)}}]),n}();fr.defaultProps={hasText:!0};var pr=Object(c.b)(function(e,t){var n=e.rootResourceId,r=e.resources,o=e.operations,i=e.overlays,a=i.sliderResourceId,c=i.isActionBarsHidden,s=e.ua.isMobile,u=e.environment,l=u.antiFileSharing,f=u.experiments.flags.disk_public_antifo_no_save_exp,p=t.resourceId,h=r[n],d=r[p].virus,y=o.save&&o.save[p]&&o.save[p].state;return{resourceId:p,isDirOrAlbum:Object(nr.g)(h),virus:d,antiFileSharing:l,operations:o,sliderResourceId:a,isDiskPublicAntiFONoSaveExp:p===n&&y!==te.e.DONE&&l&&s&&f,isSaveButtonHidden:Boolean(c),isMobile:s}},{save:$.h,openFileInDisk:Z.s,redirectToResourceAndDownload:Z.x})(fr),hr=n(113);function dr(e){"@babel/helpers - typeof";return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yr(){return(yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function br(e){return function(){var t,n=_r(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=_r(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===dr(t)||"function"==typeof t))return t;return vr(e)}(this,t)}}function vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gr(e,t){return(gr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Or=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;return function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gr(e,t)}(a,r.Component);var i=br(a);function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=i.call.apply(i,[this,e].concat(r)))._onClick=t._onClick.bind(vr(t)),t.state={isTimer:!1},t}return function(e,t,n){t&&mr(e.prototype,t),n&&mr(e,n)}(a,[{key:"componentWillUnmount",value:function(){this._timerId&&clearTimeout(this._timerId)}},{key:"_onClick",value:function(){var e,n=this;this.setState({isTimer:!0}),this._timerId=setTimeout(function(){n.setState({isTimer:!1})},t),(e=this.props).onClick.apply(e,arguments)}},{key:"render",value:function(){var t=this.state.isTimer||this.props.disabled;return o.a.createElement(e,yr({},this.props,{disabled:t,onClick:this._onClick}))}}]),a}()};n(563);function wr(e){"@babel/helpers - typeof";return(wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sr(e){return function(){var t,n=xr(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=xr(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===wr(t)||"function"==typeof t))return t;return kr(e)}(this,t)}}function kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xr(e){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rr(e,t){return(Rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jr=Or(x.a,3e4),Pr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rr(e,t)}(n,r["Component"]);var t=Sr(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onClick=e._onClick.bind(kr(e)),e}return function(e,t,n){t&&Er(e.prototype,t),n&&Er(e,n)}(n,[{key:"_onClick",value:function(){this.props.isVirus?this.props.openDownloadVirusDialog(this.props.resourceId):(this.props.download(this.props.resourceId),this.props.onClick())}},{key:"_buttonText",value:function(){return this.props.isRootResource&&this.props.isFolder||this.props.isAlbum?Object(ee.i18n)("en","actions","ufo_download_all"):Object(ee.i18n)("en","actions","ufo_download")}},{key:"render",value:function(){if(this.props.antiFileSharing)return null;var e=this.props,t=e.resourceId,n=e.operations,r=e.hasIcon,i=e.hasText,a=e.theme,c=e.size,s=e.view,u=e.tone,f=e.cls,p=e.isFrom,h=e.isAlbum,d=e.isFolder,y=e.isBigFolder,m=(n.download&&n.download[t]||{}).state===te.e.IN_PROGRESS,b=h||d&&!y?jr:x.a,v=[];return!i&&m&&p===te.a.RESOURCES_ACTION_BAR?v.push(o.a.createElement(Kn,{white:!0,key:"spin"})):(r&&v.push(o.a.createElement(hr.a,{key:"icon",iconSize:"m"})),i&&v.push(this._buttonText())),o.a.createElement(b,{key:t,theme:a,size:c,view:s,tone:u,onClick:this._onClick,disabled:m,cls:l()()("download-button").m({"without-text":!i}).mix(f)},v)}}]),n}();Pr.defaultProps={hasIcon:!1,hasText:!0,onClick:function(){}};var Cr=Object(c.b)(function(e,t){var n=t.resourceId,r=e.rootResourceId,o=e.resources,i=e.operations,a=e.environment.antiFileSharing,c=o[n];return{isVirus:c.virus,isFolder:Object(nr.f)(c),isAlbum:Object(nr.d)(c),isRootResource:r===n,isBigFolder:Object(nr.e)(e,n),resourceId:n,operations:i,antiFileSharing:a}},{download:$.a,openDownloadVirusDialog:Z.r})(Pr),Tr=n(35),Ir=n(108),Dr=n(122),Ar={};function Mr(e){"@babel/helpers - typeof";return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lr(e){return function(){var t,n=Hr(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Hr(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Mr(t)||"function"==typeof t))return t;return Nr(e)}(this,t)}}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ur(e,t){return(Ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Br=function(){},Vr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ur(e,t)}(n,r["PureComponent"]);var t=Lr(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onLoad=r._onLoad.bind(Nr(r)),r._onError=r._onError.bind(Nr(r)),r}return function(e,t,n){t&&zr(e.prototype,t),n&&zr(e,n)}(n,[{key:"componentDidMount",value:function(){if(this._isImageLoaded())this._onLoad();else{var e=new Image;e.addEventListener("load",this._onLoad),e.addEventListener("error",this._onError),e.src=this.props.src}}},{key:"_isImageLoaded",value:function(){return this._imageNode&&this._imageNode.naturalWidth>0}},{key:"_onLoad",value:function(e){this.props.rumId&&function(e,t){Ar[e]||(Ar[e]=0),window.Ya.Rum&&Ar[e]<20&&(window.Ya.Rum.sendResTiming([e,85+Ar[e]].join("."),t),Ar[e]++)}(this.props.rumId,this.props.src),this.props.onLoad(this.props.id,e)}},{key:"_onError",value:function(e){this.props.onError(this.props.id,e)}},{key:"render",value:function(){var e=this;return o.a.createElement("img",{className:l()()("resource-image").mix(this.props.cls),ref:function(t){e._imageNode=t},src:this.props.src,onLoad:this._onLoad,onError:this._onError})}}]),n}();Vr.propTypes={onError:y.a.func,onLoad:y.a.func,src:y.a.string.isRequired,rumId:y.a.number},Vr.defaultProps={onError:Br,onLoad:Br};var Fr=Vr;n(564);function Wr(e){"@babel/helpers - typeof";return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gr(){return(Gr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qr(e){return function(){var t,n=Kr(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Kr(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Wr(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zr=function(){return l()()("resource-preview")},$r=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}(n,r["PureComponent"]);var t=qr(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Yr(e.prototype,t),n&&Yr(e,n)}(n,[{key:"_getImageOrIcon",value:function(){var e=this.props,t=e.resource,n=t.defaultPreview,r=t.meta,i=r.mediatype,a=r.previewLoadFailed,c=t.ext,s=t.virus,u=e.iconSize,l=e.imageSize,f=e.nonce,p=e.onImageLoadError,h=e.onImageLoadSuccess,d="undefined"==typeof window,y=function(){return o.a.createElement(Fr,{key:"image",cls:Zr().e("image"),onError:p,onLoad:h,src:"".concat(n,"&size=").concat(l,"x").concat(l)})};return!n||a||s?o.a.createElement(k,{ext:c,mediatype:i,shadow:!0,size:u,type:s?"virus":""}):d&&f?[y(),o.a.createElement("script",{key:"script",nonce:f,dangerouslySetInnerHTML:{__html:function(e){return"\nvar preview = document.querySelector('.resource-preview__image');\nif (preview) {\n  var drp = Math.max(window.devicePixelRatio || 1, 1);\n  var imageSize = Math.min(document.documentElement.clientWidth - 80, document.documentElement.clientHeight);\n  preview.src = '".concat(e,"&' + 'size={{imageSize}}x{{imageSize}}'.replace('{{imageSize}}', imageSize).replace('{{imageSize}}', imageSize);\n}")}(n)}})]:y()}},{key:"render",value:function(){var e=this._getImageOrIcon();return this.props.openWith&&(e=o.a.createElement(le.a,Gr({theme:"normal"},this.props.openWith),e),this.props.openButtonPosition&&(e=o.a.createElement("div",{className:Zr().m({"button-position":this.props.openButtonPosition,"button-visible":this.props.openButtonVisible})},e,o.a.createElement("div",{className:Zr().e("overlay")}),o.a.createElement("div",{className:Zr().e("button-wrap")},o.a.createElement(x.a,Gr({theme:"raised",size:"n",view:"default",tone:"default",pin:"circle-circle",cls:Zr().e("open-button")},this.props.openWith),this.props.openButtonText))))),e}}]),n}();$r.propTypes={nonce:y.a.string,cls:y.a.string,iconSize:y.a.oneOf(["s","m","l","xl"]),imageSize:y.a.number,onImageLoadError:y.a.func,onImageLoadSuccess:y.a.func,openWith:y.a.shape({onClick:y.a.func,url:y.a.string}),openButtonPosition:y.a.oneOf(["bottom","center"]),openButtonVisible:y.a.bool,openButtonText:y.a.string,resource:y.a.shape({defaultPreview:y.a.string,virus:y.a.bool,ext:y.a.string,meta:y.a.shape({mediatype:y.a.string}).isRequired}).isRequired},$r.defaultProps={iconSize:"l",imageSize:400};var Jr=$r,Qr=n(17),eo=n(7),to=n(41),no=n.n(to);n(567);function ro(e){"@babel/helpers - typeof";return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function io(e){return function(){var t,n=co(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=co(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ro(t)||"function"==typeof t))return t;return ao(e)}(this,t)}}function ao(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function so(e,t){return(so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var uo=function(){return l()()("slider")},lo=function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}},fo=function(e){return Object(eo.i)("video player",e)},po=function(e){return Object(eo.i)("audio player",e)},ho=function(){return Object(eo.i)("save")},yo=function(){return Object(eo.i)("goto Disk")},mo=function(){return Object(eo.i)("download")},bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&so(e,t)}(n,r["Component"]);var t=io(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={shouldSetToolbarVisible:!1,viewport:lo(),menu:!1},e._updateViewport=no()(function(){e.setState({viewport:lo()})},250),e._onMoreClick=e._onMoreClick.bind(ao(e)),e._changeActive=e._changeActive.bind(ao(e)),e._onSliderToolbarVisibilityChange=e._onSliderToolbarVisibilityChange.bind(ao(e)),e}return function(e,t,n){t&&oo(e.prototype,t),n&&oo(e,n)}(n,[{key:"componentDidMount",value:function(){window.addEventListener("orientationchange",this._updateViewport),window.addEventListener("resize",this._updateViewport)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.sliderResourceId!==this.props.sliderResourceId&&e.sliderResourceView===wt.RESOURCE_VIEWS.VIDEO;t!==this.state.shouldSetToolbarVisible&&this.setState({shouldSetToolbarVisible:t}),this.props.sliderResourceId&&!e.sliderResourceId&&this.setState({menu:!1})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.sliderResourceId,r=t.sliderResourceView,o=t.resources;if(n&&n!==e.sliderResourceId){var i=o[n].meta.mediatype;Object(eo.i)("show",i),r===wt.RESOURCE_VIEWS.VIDEO&&fo("show")}}},{key:"componentWillUnmount",value:function(){window.removeEventListener("orientationchange",this._updateViewport),window.removeEventListener("resize",this._updateViewport)}},{key:"_mapSliderResource",value:function(e){var t=this,n=e.id,r=e.name,i=e.meta,a=i.mediatype,c=i.hasPreview,s=e.virus,u=e.dvSearch,l=Object(Qr.a)(e),f=n===this.props.sliderResourceId,p={id:n,mediatype:a,hasPreview:c};switch(l){case wt.RESOURCE_VIEWS.IMAGE:p.previewBaseUrl=e.meta.defaultPreview,p.originalUrl=e.meta.xxxlPreview;break;case wt.RESOURCE_VIEWS.VIDEO:p.content=function(e){var t=e.setToolbarVisible;return o.a.createElement(h.a,{isVisible:f,fitTo:"height",displayType:"preview",resourceId:n,onPlaybackStateChange:function(e){e&&fo("play"),t(!e)}})};break;case wt.RESOURCE_VIEWS.AUDIO:p.content=o.a.createElement(ue,{isVisible:f,resourceId:n,theme:"dark",countMetrika:po});break;default:var d=!s&&Boolean(u);e.defaultPreview=e.meta.defaultPreview;var y={imageSize:Math.min(this.state.viewport.width-80,this.state.viewport.height),resource:e,nonce:this.props.nonce,onImageLoadError:function(){t.props.updateOneResource(e.id,{meta:{previewLoadFailed:!0}})}};d&&Object.assign(y,{openWith:{onClick:function(){t.props.openDocument(e.id),t._countMetrika("view in DV",a)}},openButtonPosition:"bottom",openButtonVisible:!0,openButtonText:Object(ee.i18n)("en","actions","ufo_resource_view")}),p.content=o.a.createElement("div",null,o.a.createElement(Jr,y),o.a.createElement(m,{name:r}))}return p}},{key:"_onSliderToolbarVisibilityChange",value:function(e){this.props.setActionBarsVisibility(e)}},{key:"_onMoreClick",value:function(){this.setState({menu:!this.state.menu}),Object(eo.j)(this.state.menu?"close menu":"open menu")}},{key:"_changeActive",value:function(e,t){this.props.openSlider(e.id),Object(eo.i)(t>0?"next":"prev")}},{key:"_setAutoplayFalse",value:function(){this.props.updateEnvironment({autoplayAudio:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.sliderResourceId,i=n.sliderResourceView,a=n.closeSlider,c=n.resources,s=n.currentResourceId,u=n.rootResourceId,l=n.getVideoStreams,f=n.enabledGestures,p=n.isMobile,h=n.isSmartphone,d=n.antiFileSharing,y=function(){a(),Object(eo.i)("close"),t._setAutoplayFalse()};if(!r)return null;if(!c[r]){var m={content:o.a.createElement(Ot.a,{size:"l",progress:!0})};return o.a.createElement(Un,{showSwitchArrows:!p,resources:[m],activeResource:m,onClose:y,viewportSize:this.state.viewport,enabledGestures:f})}var b=c[u];Object(nr.g)(b)?e=c[s].children.map(function(e){return c[e]}).filter(function(e){return"file"===e.type}).map(this._mapSliderResource,this):e=[b].map(this._mapSliderResource,this);var v=e.filter(function(e){return e.id===r})[0];i===wt.RESOURCE_VIEWS.VIDEO&&l(v.id);var _=function(e){return function(){t.setState({menu:!1}),e&&Object(eo.j)("close menu")}},g=null;return(g=[o.a.createElement(Un.ToolbarRight,{key:"right"},o.a.createElement(pr,{resourceId:t.props.sliderResourceId,size:"m",cls:uo().e("button").m({save:!0}),theme:"clear-inverse",onSaveClick:ho,onOpenFileClick:yo,hasIcon:!0,hasText:!(h&&d),isFrom:te.a.SLIDER}),o.a.createElement(Cr,{resourceId:r,size:"m",cls:uo().e("button").m({download:!0}),theme:"clear-inverse",onClick:mo,hasIcon:!0,isFrom:te.a.SLIDER}),o.a.createElement(x.a,{size:"m",cls:uo().e("button").m({more:!0}),theme:"clear-inverse",onClick:t._onMoreClick,ref:function(e){t._infoButton=e}},o.a.createElement(Ir.a,null)),o.a.createElement(x.a,{size:"m",cls:uo().e("button").m({close:!0}),theme:"clear-inverse",onClick:y},o.a.createElement(Tr.a,null)))]).push(o.a.createElement(Dr.a,{key:"info-popup",visible:this.state.menu,resourceId:r,onClose:_(!0),anchor:function(){return t._infoButton},closeMenu:_(),countMenuFn:eo.j})),o.a.createElement(Un,{showSwitchArrows:!p,nonce:this.props.nonce,resources:e,activeResource:v,onActiveResourceChange:this._changeActive,toolbarChildren:g,onClose:y,viewportSize:this.state.viewport,enabledGestures:f,onToolbarVisibilityChange:void 0,disableTapOnSelectors:[".video-player__touch-overlay"],shouldSetToolbarVisible:this.state.shouldSetToolbarVisible})}}]),n}(),vo=Object(c.b)(function(e){var t=e.ua,n=t.isMobile,r=t.isSmartphone,o=e.currentResourceId,i=e.rootResourceId,a=e.resources,c=e.operations,s=e.overlays.sliderResourceId,u=e.environment,l=u.nonce;return{isMobile:n,isSmartphone:r,antiFileSharing:u.antiFileSharing,resources:a,currentResourceId:o,rootResourceId:i,operations:c,sliderResourceId:s,sliderResourceView:Object(Qr.a)(a[s]),nonce:l}},{getVideoStreams:$.f,openSlider:Z.w,closeSlider:Z.l,setActionBarsVisibility:Z.z,updateEnvironment:Z.F,openDocument:Z.p,updateOneResource:Z.G})(bo),_o=n(24),go=n.n(_o);n(239);function Oo(){return(Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var wo=function(e){var t,n=e.resource,r=e.cls,i=e.size,a=n.name.split(".").pop();return t="dir"===n.type?{type:"dir"+(n.iconType?"_"+n.iconType:""),cls:l()()("listing-item").e("dir-icon").mix(r)}:{ext:a,mediatype:n.meta&&n.meta.mediatype,type:n.iconType,cls:r},o.a.createElement(k,Oo({size:i},t))},Eo=n(118),So=n.n(Eo),ko=function(e){return"row"===e},xo={row:40,m:80,l:145,default:40},Ro={row:"m",tile:"m"},jo=function(e){var t=e.id,n=e.defaultPreview,r=e.iconType,i=e.onImageLoadError,a=e.onImageLoadSuccess,c=e.previewLoadFailed,s=e.theme,u=e.useRealDevicePixelRatio,f=e.previewRumId,p=e.size||Ro[s],h=Boolean(n&&!r),d={theme:s,size:p,img:h},y=l()()("resource-icon-preview").m(d).mix(e.cls);return h&&!c?o.a.createElement(Fr,{id:t,cls:y,onError:i,onLoad:a,src:function(e,t,n,r){var o=r&&window.devicePixelRatio||1,i=xo[n]||xo[t]||xo.default;i=Math.floor(i*o);var a="".concat(e,"&size=").concat(i,"x").concat(i);return ko(n)&&(a+="&crop=1"),a}(n,p,s,u),rumId:f}):o.a.createElement(wo,{cls:y,size:p,resource:e})};function Po(e){"@babel/helpers - typeof";return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function To(e){return function(){var t,n=Io(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Io(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Po(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Io(e){return(Io=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ao=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(n,j["a"]);var t=To(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Co(e.prototype,t),n&&Co(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",d:"m1 0v16l14-8"})}}]),n}(),Mo=function(e){for(var t=[],n=0;n<e.length;n++){55296==(63488&e.charCodeAt(n))?(t.push(e.slice(n,n+2)),n++):t.push(e[n])}return t};n(576);function zo(e){"@babel/helpers - typeof";return(zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lo(e){return function(e){if(Array.isArray(e))return No(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return No(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return No(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function No(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Uo(e){return function(){var t,n=Bo(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Bo(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===zo(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Bo(e){return(Bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vo(e,t){return(Vo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Fo=[".",",",":",";","!","?","…",")","]","}","»"," ",'"',"'"],Wo=["(","[","{","«"," ",'"',"'"],Go=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vo(e,t)}(n,o.a.PureComponent);var t=Uo(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={text:e.text},r}return function(e,t,n){t&&Ho(e.prototype,t),n&&Ho(e,n)}(n,[{key:"componentDidMount",value:function(){this._createContext(this.props.font),this._updateText(this.props)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this._updateContext(e.font),this._updateText(e)}},{key:"_createContext",value:function(e){this._context=document.createElement("canvas").getContext("2d"),this._updateContext(e)}},{key:"_updateContext",value:function(e){this._context&&(this._context.font=e)}},{key:"_updateText",value:function(e){this.setState({text:this._getText(e)})}},{key:"_getTextWidth",value:function(e){return this._context?this._context.measureText(e.join("").trim()).width+.5:0}},{key:"_getText",value:function(e){var t=e.numberOfRows,n=e.text,r=e.width;if(this._text=n.replace("\n"," "),this._text.normalize&&(this._text=this._text.normalize()),!r)return this._text;for(var o=[],i=0;i<t;i++){var a={characters:Mo(this._text.slice(o.join("").length)),width:r,currentRowNumber:i},c=i===t-1?this._getTextRowWithFiller(a):this._getTextRow(a);if(o.push(c),o.join("")===this._text)break}return o.map(function(e){return e.trim()}).join("\n")}},{key:"_getTextRow",value:function(e){var t=e.characters,n=e.width,r=e.currentRowNumber,o=this._getTextWidth(t),i=o/t.length,a=this._getMaximumBreakableLengthFromPosition({characters:t,position:Math.floor((o-n)/i)}),c=this._getUnbreakableSequenceLength(t,r);return o>n&&t.length>3?this._getTextRow({characters:this._trimRight({characters:t,trimBy:c||a>2&&a||1}),width:n,currentRowNumber:r}):t.join("")}},{key:"_getTextRowWithFiller",value:function(e){var t=e.characters,n=e.beginCharacters,r=e.endCharacters,o=e.width,i=n&&r,a=i?[].concat(Lo(n),[this.props.filler],Lo(r)):t,c=this._getTextWidth(a);if(c>o&&a.length>3){if(i){var s=n.length>=r.length;return this._getTextRowWithFiller({beginCharacters:this._trimRight({characters:n,trimBy:s?1:0}),endCharacters:this._trimLeft({characters:r,trimBy:s?0:1}),width:o})}var u=c/t.length,l=Math.floor((c-o)/u/2),f=.5*t.length+(l>1?l:0);return this._getTextRowWithFiller({beginCharacters:this._trimRight({characters:t,trimBy:f}),endCharacters:this._trimLeft({characters:t,trimBy:f}),width:o})}return a.join("")}},{key:"_trimRight",value:function(e){var t=e.characters,n=e.trimBy;return t.slice(0,t.length-n)}},{key:"_trimLeft",value:function(e){var t=e.characters,n=e.trimBy;return t.slice(-t.length+n)}},{key:"_getUnbreakableSequenceLength",value:function(e,t){var n=(e.join("").match(/\.\w{2,}$/g)||[])[0];if(n)return n.length-1;if(!this.props.breakWordsInFirstRow&&0===t){var r=e.lastIndexOf(" ");if(r>0)return e.length-r}var o=e[e.length-1],i=e[e.length-2];return Fo.indexOf(o)>-1&&Fo.indexOf(i)<0&&Wo.indexOf(i)<0||Fo.indexOf(o)<0&&Wo.indexOf(o)<0&&Wo.indexOf(i)>-1?2:0}},{key:"_getMaximumBreakableLengthFromPosition",value:function(e){var t=e.characters,n=e.position;if(n<2)return n;var r=t[t.length-n],o=t[t.length-n+1];return Wo.indexOf(r)>-1&&Fo.indexOf(o)<0&&Wo.indexOf(o)<0?n-2:Fo.indexOf(r)>-1?n-1:n}},{key:"render",value:function(){var e={className:l()()("clamped-text"),style:{font:this.props.font,maxWidth:this.props.width||"auto"}};return this._text!==this.state.text&&(e.title=this._text),o.a.createElement("span",e,this.state.text)}}]),n}();Go.defaultProps={filler:"…",font:"normal normal 400 normal 15px / normal Arial, sans-serif",numberOfRows:1,text:"",width:0,breakWordsInFirstRow:!1},Go.propTypes={filler:y.a.string,font:y.a.string,numberOfRows:y.a.number,text:y.a.string,width:y.a.number,breakWordsInFirstRow:y.a.bool};var Yo=Go,qo=n(20);function Ko(e){"@babel/helpers - typeof";return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xo(){return(Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $o(e){return function(){var t,n=Qo(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Qo(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ko(t)||"function"==typeof t))return t;return Jo(e)}(this,t)}}function Jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ei(e,t){return(ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ti=function(){},ni=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ei(e,t)}(a,r.Component);var i=$o(a);function a(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var r=arguments.length,o=new Array(r>1?r-1:0),c=1;c<r;c++)o[c-1]=arguments[c];return(n=i.call.apply(i,[this,e].concat(o)))._ignoreClicksSelector=[t,n.props.ignoreClicksSelector].filter(Boolean).join(","),n._wrappedComponentRef=null,n._setWrappedComponentRef=n._setWrappedComponentRef.bind(Jo(n)),n._handleLongTouch=n._handleLongTouch.bind(Jo(n)),n._onContextMenu=n._onContextMenu.bind(Jo(n)),n._onDoubleClick=n._onDoubleClick.bind(Jo(n)),n._onTouchStart=n._onTouchStart.bind(Jo(n)),n._onTouchMove=n._onTouchMove.bind(Jo(n)),n._onTouchEnd=n._onTouchEnd.bind(Jo(n)),n._onClick=n._onClick.bind(Jo(n)),n}return function(e,t,n){t&&Zo(e.prototype,t),n&&Zo(e,n)}(a,[{key:"_setWrappedComponentRef",value:function(e){this._wrappedComponentRef=e}},{key:"_getId",value:function(){return this._wrappedComponentRef&&this._wrappedComponentRef.getSelectionId?this._wrappedComponentRef.getSelectionId():this.props.id}},{key:"_handleLongTouch",value:function(e){e.cancelable&&e.preventDefault(),e.stopPropagation(),this.props.onSelect(this._getId(),this.props.selectOnClick,e)}},{key:"_onTouchStart",value:function(e){var t=this;e.persist();var n=e.touches[0],r=n.pageX,o=n.pageY;this._touchStartPosition={pageX:r,pageY:o},this._touchStartTime=Date.now(),this._touchTimer=setTimeout(function(){t._handleLongTouch(e)},300)}},{key:"_onTouchMove",value:function(e){if(this._touchStartPosition){var t=e.touches[0],n=t.pageX,r=t.pageY,o=n-this._touchStartPosition.pageX,i=r-this._touchStartPosition.pageY;Math.sqrt(o*o+i*i)>8&&(this._touchTimer&&clearTimeout(this._touchTimer),this._isSwipe=!0)}}},{key:"_onTouchEnd",value:function(e){var t=this._isSwipe;this._touchTimer&&clearTimeout(this._touchTimer),this._isSwipe=!1,this._ignoreClicksSelector&&e.target.closest(this._ignoreClicksSelector)||(e.preventDefault(),this._touchStartTime&&Date.now()-this._touchStartTime<300&&!t&&(this.props.selectOnClick?this.props.onSelect(this._getId(),!0,e):this.props.onOpen(this._getId(),e)))}},{key:"_onClick",value:function(e){if(!(this._ignoreClicksSelector&&e.target&&e.target.closest(this._ignoreClicksSelector)||2===e.button||e.ctrlKey&&this.props.isMacSafari)){var t=e.detail<2;this.props.openOnSingleClick?this.props.onOpen(this._getId(),e):!t&&this.props.supportDoubleClick||this.props.onSelect(this._getId(),this.props.selectOnClick,e)}}},{key:"_onDoubleClick",value:function(e){e.target.closest(".".concat(qo.b))||2!==e.button&&this.props.onOpen(this._getId(),e)}},{key:"_onContextMenu",value:function(e){var t;this.props.onContextMenu&&(t=this.props.onContextMenu(this._getId(),e)),t&&t.noPreventDefault||e.preventDefault()}},{key:"render",value:function(){return o.a.createElement(e,Xo({},this.props,{ref:this._setWrappedComponentRef,onClick:this._onClick,onDoubleClick:this.props.supportDoubleClick?this._onDoubleClick:void 0,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,onContextMenu:this._onContextMenu}))}}]),a}();return n.propTypes={id:y.a.oneOfType([y.a.string,y.a.number,y.a.object]),onOpen:y.a.func,onSelect:y.a.func,onContextMenu:y.a.func,selectOnClick:y.a.bool,openOnSingleClick:y.a.bool,ignoreClicksSelector:y.a.string,supportDoubleClick:y.a.bool,isMacSafari:y.a.bool},n.defaultProps={selectOnClick:!1,onOpen:ti,onSelect:ti,onContextMenu:ti,openOnSingleClick:!1,supportDoubleClick:!0},n};n(577);function ri(e){"@babel/helpers - typeof";return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(){return(ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ci(e){return function(){var t,n=ui(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ui(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ri(t)||"function"==typeof t))return t;return si(e)}(this,t)}}function si(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ui(e){return(ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function li(e,t){return(li=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fi=function(){return l()()("listing-item")},pi="ALWAYS_RIGHT",hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&li(e,t)}(n,r["PureComponent"]);var t=ci(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._setRef=r._setRef.bind(si(r)),r}return function(e,t,n){t&&ai(e.prototype,t),n&&ai(e,n)}(n,[{key:"componentWillUnmount",value:function(){this.props.resourceRef(this.props.id,null)}},{key:"_getIcon",value:function(){var e=this.props,t=e.listingMods,n=e.type,r=e.defaultPreview,i=e.noIcon,a=e.iconType,c=e.canPlayVideo,s=e.theme;if(i)return null;var u=r&&!a?{type:"preview"}:{type:"icon",resource:n},l=[o.a.createElement(jo,ii({key:"icon-preview"},this.props))];return ko(s)||(l.push(o.a.createElement("div",{className:fi().e("fields"),key:"fields"},this._getAdditionalData())),l=o.a.createElement("div",{className:fi().e("icon-wrapper").m({"with-shadow":Boolean(c)}).mix(t["with-drag-and-drop"]&&t["with-mouse-selection"]&&qo.c)},l)),o.a.createElement("div",{className:fi().e("icon").m(u)},l)}},{key:"_getColumns",value:function(e,t){var n=this.props.theme,r=ko(n)?"column":"field";return e.filter(function(e){return(!e.themes||e.themes.includes(n))&&t&&t(e)}).map(function(e,t){var n=e.type,i=e.content,a=e.mix;return o.a.createElement("div",{className:fi().e(r).m(oi({},n,!0)).mix(a),key:"".concat(n,"_").concat(t)},i)})}},{key:"_getAdditionalData",value:function(){var e=this.props,t=e.id,n=e.additionalFields,r=e.theme,i=e.onPlayVideoClick,a=e.canPlayVideo,c=n||[];return a&&i&&c.push({type:"play-video",themes:["tile"],content:o.a.createElement(Ao,{iconSize:"l",onClick:function(){return i(t)}})}),this._getColumns(c,function(e){return!(ko(r)&&e.position===pi)})}},{key:"_getRightColumn",value:function(){var e=this.props,t=e.additionalFields,n=e.theme;return ko(n)&&t?this._getColumns(t,function(e){return e.position===pi}):null}},{key:"_getTitle",value:function(){var e=this,t=this.props,n=t.name,r=t.titleOverflow,i=t.theme,a=t.size,c=t.isTouch,s=n;if("clamp"===r)s=o.a.createElement(Yo,{font:"".concat(c?"15px/16px":"13px/14px",' "yandex-sans", Arial, sans-serif'),numberOfRows:"tile"===i?2:1,text:n,width:this.props.titleWidth});else if("length-limit"===r&&"tile"===i){var u="l"===a?23:16;s=s.length>u?s.slice(0,u).trim()+"…":s}return o.a.createElement("div",{className:fi().e("title").m({overflow:r}),ref:function(t){e.props.titleNodeRef&&e.props.titleNodeRef(t)}},s)}},{key:"_setRef",value:function(e){var t=this.props,n=t.resourceRef,r=t.id;this._ref=e,n(r,e)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.modifier,i=n.theme,a=n.size,c=n.type,s=n.noIcon,u=n.selected,l=n.highlighted,f=n.virus,p=n.listingMods,h=n.isDisabled,d=n.isMacSafari;if("tile-empty"===i)return o.a.createElement("div",{className:fi().m({theme:i,size:a})});var y=h(this.props),m={ref:this._setRef,className:fi().m((e={},oi(e,r,!!r),oi(e,"theme",i),oi(e,"size",a),oi(e,"type",c),oi(e,"no-icon",s),oi(e,"selected",u),oi(e,"highlighted",l),oi(e,"disabled",y),oi(e,"virus",f),oi(e,"isMacSafari",d),oi(e,"listening-long-tap",Boolean(this.props.onLongTap)),e)).mix(this.props.cls).mix(ko(i)&&p["with-drag-and-drop"]&&p["with-mouse-selection"]&&qo.c)};y||["onClick","onDoubleClick","onTouchEnd","onTouchStart","onTouchMove","onContextMenu"].forEach(function(e){m[e]=t.props[e]});var b=this._getRightColumn();return o.a.createElement("div",m,this._getIcon(),o.a.createElement("div",{className:fi().e("info")},this._getTitle(),ko(i)?this._getAdditionalData():null),b&&b.length>0&&o.a.createElement("div",{className:fi().e("right")},b))}}]),n}();hi.propTypes={name:y.a.string,id:y.a.string,type:y.a.string,noIcon:y.a.bool,iconType:y.a.string,meta:y.a.shape({mediatype:y.a.string}),modifier:y.a.oneOf(["current"]),virus:y.a.bool,isDisabled:y.a.func,defaultPreview:y.a.string,selected:y.a.bool,additionalFields:y.a.array,onContextMenu:y.a.func,onSelect:y.a.func,onOpen:y.a.func,onImageLoadError:y.a.func,onImageLoadSuccess:y.a.func,previewLoadFailed:y.a.bool,canPlayVideo:y.a.bool,onPlayVideoClick:y.a.func,isTouch:y.a.bool,cls:y.a.oneOfType([y.a.string,y.a.object]),theme:y.a.oneOf(["row","tile","tile-empty"]),size:y.a.oneOf(["s","m","l"]),isMacSafari:y.a.bool};hi.defaultProps={theme:"row",size:"m",selected:!1,virus:!1,isDisabled:function(e){var t=e.state;return Boolean(t&&t.disabled)},listingMods:{},resourceRef:go.a,onContextMenu:go.a};var di=ni(hi),yi=n(119),mi=n(120),bi=n.n(mi);n(578);function vi(e){"@babel/helpers - typeof";return(vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _i(){return(_i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oi(e){return function(){var t,n=Ei(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ei(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===vi(t)||"function"==typeof t))return t;return wi(e)}(this,t)}}function wi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ei(e){return(Ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Si(e,t){return(Si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ki=function(){return l()()("load-portions")},xi=function(){return!1},Ri=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=function(i){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Si(e,t)}(c,r.Component);var a=Oi(c);function c(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return(t=a.call.apply(a,[this,e].concat(i)))._spinNode=o.a.createRef(),t._wrappedComponentRef=o.a.createRef(),t._checkBottomThrottled=bi()(t._checkBottom,500).bind(wi(t)),n.forEach(function(e){t[e]=function(){var n;return t._wrappedComponentRef.current&&(n=t._wrappedComponentRef.current)[e].apply(n,arguments)}}),t}return function(e,t,n){t&&gi(e.prototype,t),n&&gi(e,n)}(c,[{key:"componentDidMount",value:function(){this._scrollingElement=this.props.scrollingElementSelector?document.querySelector(this.props.scrollingElementSelector):window,this._bindCheckBottom()}},{key:"componentWillUnmount",value:function(){this.props.completed||this._unbindCheckBottom()}},{key:"componentDidUpdate",value:function(e){t(e,this.props)&&this._checkBottom(),this.props.completed!==e.completed&&(this.props.completed?this._unbindCheckBottom():this._bindCheckBottom())}},{key:"_bindCheckBottom",value:function(){this._scrollingElement.addEventListener("scroll",this._checkBottomThrottled),window.addEventListener("resize",this._checkBottomThrottled),this._checkBottom()}},{key:"_unbindCheckBottom",value:function(){this._scrollingElement.removeEventListener("scroll",this._checkBottomThrottled),window.removeEventListener("resize",this._checkBottomThrottled)}},{key:"_checkBottom",value:function(){!this.props.completed&&this._spinNode.current&&this._spinNode.current.getBoundingClientRect().top<=2*(this._scrollingElement===window?window.innerHeight:this._scrollingElement.clientHeight)&&this._fetchNextPortion()}},{key:"_fetchNextPortion",value:function(){var e=this.props,t=e.loading;e.completed||t||this.props.requestFetchNext()}},{key:"_getSpin",value:function(){var e=this.props,t=e.loading;return e.completed?null:o.a.createElement("div",{className:ki().e("spin-wrapper"),ref:this._spinNode},o.a.createElement(Ot.a,{size:"m",progress:t,cls:ki().e("spin")}))}},{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(e,_i({ref:this._wrappedComponentRef},this.props)),this._getSpin())}}]),c}();return i.propTypes={completed:y.a.bool,loading:y.a.bool,scrollingElementSelector:y.a.string,requestFetchNext:y.a.func.isRequired},i};n(579);function ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||Ii(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e){"@babel/helpers - typeof";return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ci(){return(Ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ti(e){return function(e){if(Array.isArray(e))return Di(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ii(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ii(e,t){if(e){if("string"==typeof e)return Di(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Di(e,t):void 0}}function Di(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ai(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zi(e,t,n){return t&&Mi(e.prototype,t),n&&Mi(e,n),e}function Li(e){return function(){var t,n=Hi(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Hi(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Pi(t)||"function"==typeof t))return t;return Ni(e)}(this,t)}}function Ni(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hi(e){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ui(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bi(e,t)}function Bi(e,t){return(Bi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vi=function(){return l()()("listing")},Fi=function(e){Ui(n,r["PureComponent"]);var t=Li(n);function n(){return Ai(this,n),t.apply(this,arguments)}return zi(n,[{key:"_getEmptyItems",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single",n=[];e;)n.push(o.a.createElement(di,{theme:"tile-empty",size:this.props.size,key:"".concat(t,"-").concat(e)})),e--;return n}},{key:"render",value:function(){for(var e=this.props,t=e.getGroup,n=e.resources,r=e.theme,i=e.getItemProps,a=e.renderItem,c=null,s=[],u=0;u<n.length;u++){var l=n[u];if(t){var f=t(l);c&&c.id===f.id||(c&&"tile"===r&&s.push.apply(s,Ti(this._getEmptyItems(15,c.id))),s.push(o.a.createElement("h2",{key:"group-".concat(f.id),className:Vi().e("group-title")},o.a.createElement("span",{className:qo.c},f.title))),c=f)}var p=i(l,u),h=a?a(p):o.a.createElement(di,Ci({key:p.id},p));s.push(h)}return"tile"===r&&s.push.apply(s,Ti(this._getEmptyItems(15))),o.a.createElement("div",{className:Vi().e("items")},s)}}]),n}(),Wi=function(e,t){return t.theme!==e.theme||t.size!==e.size||t.resources.length!==e.resources.length},Gi=function(e){Ui(n,r["PureComponent"]);var t=Li(n);function n(e){var r;Ai(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={titleWidth:r._getTitleWidth()},r._itemsRefs=new Map,r._getItemProps=r._getItemProps.bind(Ni(r)),r._resourceRef=r._resourceRef.bind(Ni(r)),r._onOpenResource=r._onOpenResource.bind(Ni(r)),r._updateTitleSize=r._updateTitleSize.bind(Ni(r)),r._setContainerRef=r._setContainerRef.bind(Ni(r)),r._onSelectResource=r._onSelectResource.bind(Ni(r)),r._onContextMenu=r._onContextMenu.bind(Ni(r)),r._isDoubleClick=!1,r}return zi(n,[{key:"componentDidMount",value:function(){"clamp"===this.props.titleOverflow&&this._initClamp(),this._updateResourcesCoordinates()}},{key:"componentWillUnmount",value:function(){"clamp"===this.props.titleOverflow&&window.removeEventListener("resize",this._updateTitleSize)}},{key:"componentDidUpdate",value:function(e){Wi(e,this.props)&&this._updateResourcesCoordinates(),"clamp"===this.props.titleOverflow?"clamp"===e.titleOverflow&&this.props.theme===e.theme&&this.props.size===e.size&&this.props.resources.length===e.resources.length||(this._wasClampInited=!1,this._initClamp()):"clamp"===e.titleOverflow&&(window.removeEventListener("resize",this._updateTitleSize),this._wasClampInited=!1),this.props.resources.length&&"clamp"===this.props.titleOverflow&&!this._wasClampInited&&this._initClamp()}},{key:"_setContainerRef",value:function(e){this._containerRef=e,this.props.containerRef&&this.props.containerRef(e)}},{key:"_updateResourcesCoordinates",value:function(){this.props.withMouseSelection&&Ti(this._itemsRefs.entries()).forEach(function(e){var t=ji(e,2)[1],n=t.ref;t.coordinates=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,o=t.right,i=t.bottom;return{top:n+=window.pageYOffset,left:r+=window.pageXOffset,right:o+=window.pageXOffset,bottom:i+=window.pageYOffset}}(n)})}},{key:"_initClamp",value:function(){var e=this;if(this.props.resources.length){if(this._updateTitleSize(),this.props.animatedContainerSelector){var t=document.querySelector(this.props.animatedContainerSelector);if(t){t.addEventListener("animationend",function n(){e._updateTitleSize(),t.removeEventListener("animationend",n)})}}window.addEventListener("resize",this._updateTitleSize),this._wasClampInited=!0}}},{key:"_getTitleWidth",value:function(){var e=this._firstItemTitleNode&&this._firstItemTitleNode.getBoundingClientRect().width;return e||(this.state&&this.state.titleWidth?this.state.titleWidth:"tile"===this.props.theme?"l"===this.props.size?145:90:0)}},{key:"_updateTitleSize",value:function(){var e=this._getTitleWidth();this.state.titleWidth!==e&&this.setState({titleWidth:e})}},{key:"updateItemsInfo",value:function(){this._updateResourcesCoordinates()}},{key:"getItemInfo",value:function(e){return this._itemsRefs.get(e)}},{key:"getItemsInfo",value:function(){return this._itemsRefs}},{key:"_getInteractedItemParams",value:function(e){var t=this.props.resources.findIndex(function(t){return t.id===e});if("tile"===this.props.theme){var n=Math.floor(this._containerRef.clientWidth/this.getItemInfo(e).ref.clientWidth);return{columnsCount:n,row:Math.floor(t/n)+1,column:t%n+1}}if("row"===this.props.theme)return{position:t+1}}},{key:"_resourceRef",value:function(e,t){t?this._itemsRefs.has(e)||this._itemsRefs.set(e,{ref:t,coordinates:{}}):this._itemsRefs.has(e)&&this._itemsRefs.delete(e)}},{key:"_onSelectResource",value:function(e){var t=this,n=this.props,r=n.onSelectResource,o=n.onResourceAction;this._isDoubleClick=!1;for(var i=arguments.length,a=new Array(i>1?i-1:0),c=1;c<i;c++)a[c-1]=arguments[c];r.apply(void 0,[e].concat(a)),o&&setTimeout(function(){t._isDoubleClick||o(e,"resource-select",t._getInteractedItemParams(e))},wt.DOUBLE_CLICK_DELAY)}},{key:"_onOpenResource",value:function(e,t){var n=this.props,r=n.onResourceOpen,o=n.onResourceAction;this._isDoubleClick=!0,r(e,t),o&&o(e,"resource-open",this._getInteractedItemParams(e))}},{key:"_onContextMenu",value:function(e){for(var t=this.props,n=t.onResourceContextMenu,r=t.onResourceAction,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];n.apply(void 0,[e].concat(i)),r&&r(e,"resource-context-menu",this._getInteractedItemParams(e))}},{key:"_getItemProps",value:function(e,t){var n=this;if(!e)return null;var r=this.props,o=r.mods,i=r.theme,a=r.size,c=r.isTouch,s=r.titleOverflow,u=r.currentResource,l=r.onPlayVideoClick,f=r.useRealDevicePixelRatio,p=r.getAdditionalFields,h=r.getResourceClassName,d=r.previewRumId,y=r.onImageLoadSuccess,m=r.onImageLoadError,b=r.openOnSingleClick,v=r.ignoreClicksSelector,_=r.highlightedResources,g=r.isResourceDisabled,O=r.isMacSafari,w=Object.assign({},e,{listingMods:o,additionalFields:p(e),cls:h(e),theme:i,size:a,titleOverflow:s,useRealDevicePixelRatio:f,isTouch:c,resourceRef:this._resourceRef,onPlayVideoClick:l,previewRumId:d,onImageLoadSuccess:y,onImageLoadError:m,openOnSingleClick:b,ignoreClicksSelector:v,isDisabled:g,isMacSafari:O}),E=e.state&&e.state.disabled;return w.cls=[w.cls,qo.a].filter(Boolean).join(" "),u&&u.id===e.id?(w.onClick=this.props.onCurrentResourceClick,w.modifier="current"):(w.onOpen=this._onOpenResource,this.props.isSelectable&&(w.selectOnClick=c&&this.props.isSelectable&&this.props.selectedResources.length>0,w.onSelect=this._onSelectResource),this.props.onContextMenu&&!c&&(w.onContextMenu=this._onContextMenu),w.selected=!E&&this.props.selectedResources.includes(e.id),w.highlighted=_&&_.includes(e.id)),"clamp"===s&&(w.titleWidth=this.state.titleWidth,0===t&&(w.titleNodeRef=function(e){n._firstItemTitleNode=e})),w}},{key:"render",value:function(){var e=this.props,t=e.resources,n=e.selectedResources,r=e.highlightedResources,i=e.theme,a=e.size,c=e.completed,s=e.mods,u=e.getGroup,l=e.renderItem,f=this._getItemProps(this.props.currentResource),p={resources:t,theme:i,size:a,getGroup:u,renderItem:l,selectedResources:n,highlightedResources:r};return o.a.createElement("div",{className:Vi().m(Object.assign({},s,{theme:i,completed:c})).mix(this.props.cls),ref:this._setContainerRef},f&&o.a.createElement(di,f),o.a.createElement(Fi,Ci({},p,{getItemProps:this._getItemProps,titleWidth:this.state.titleWidth})))}}]),n}();Gi.propTypes={cls:y.a.oneOfType([y.a.string,y.a.object]),mods:y.a.object,resources:y.a.arrayOf(y.a.shape({title:y.a.string,id:y.a.string,type:y.a.string,defaultPreview:y.a.string,meta:y.a.shape({mediatype:y.a.string})})),isResourceDisabled:y.a.func,getAdditionalFields:y.a.func,getResourceClassName:y.a.func,currentResource:y.a.object,selectedResources:y.a.arrayOf(y.a.string.isRequired),completed:y.a.bool,loading:y.a.bool,useRealDevicePixelRatio:y.a.bool,onCurrentResourceClick:y.a.func,onResourceOpen:y.a.func,onPlayVideoClick:y.a.func,isSelectable:y.a.bool,isMultiSelectable:y.a.bool,enableDeselectOnOutsideClick:y.a.bool,onImageLoadSuccess:y.a.func,onImageLoadError:y.a.func,onResourceAction:y.a.func,theme:y.a.oneOf(["row","tile"]),isTouch:y.a.bool.isRequired,size:y.a.oneOf(["s","m","l"]),titleOverflow:y.a.oneOf(["line-clamp","length-limit","clamp"]),requestFetchNext:y.a.func,getGroup:y.a.func,previewRumId:y.a.number,onContextMenu:y.a.func,renderItem:y.a.func,containerRef:y.a.func,isMacSafari:y.a.bool,animatedContainerSelector:y.a.string};var Yi=function(){};Gi.defaultProps={theme:"row",size:"m",isSelectable:!1,isMultiSelectable:!0,selectedResources:[],getAdditionalFields:Yi,getResourceClassName:Yi,requestFetchNext:Yi,onResourceOpen:Yi,onSelectionChanged:Yi,onCurrentResourceClick:Yi,onImageLoadSuccess:Yi,onImageLoadError:Yi};var qi=Ri(Gi,Wi,["getItemsInfo","getItemInfo","updateItemsInfo"]),Ki=n(121),Xi=n.n(Ki),Zi=n(77),$i=n.n(Zi),Ji=n(259),Qi=n.n(Ji),ea=function(e){var t=Qi()(e,["id","name","type","parent","modified","loading","completed","dvSearch","meta.size","meta.mediatype","meta.hasPreview"]);return t.ext=e.meta.ext,t.defaultPreview=e.meta.defaultPreview,"file"===e.type&&(t.canPlayVideo=Object(Qr.a)(e)===wt.RESOURCE_VIEWS.VIDEO),t},ta=Object(Qr.b)(function(e){var t=e.resources,n=e.currentResourceId;return t[n].children.map(function(e){return t[e]})},function(e){return e.map(ea)}),na=function(e){var t=e.resources[e.currentResourceId];return ea(t)},ra=n(15),oa=n(73),ia=n(53);function aa(e){"@babel/helpers - typeof";return(aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ca(){return(ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sa(e){return function(e){if(Array.isArray(e))return ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function la(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fa(e){return function(){var t,n=ha(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ha(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===aa(t)||"function"==typeof t))return t;return pa(e)}(this,t)}}function pa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ha(e){return(ha=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function da(e,t){return(da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ya=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&da(e,t)}(n,r["Component"]);var t=fa(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._shiftKeyPressed=!1,r._selectionRanges=[],r._anchor=0,r._anchorSelectionIndex=null,r._wrappedComponentRef=null,r._selectedResources=e.selectedResources,r._onWindowKeyUp=r._onWindowKeyUp.bind(pa(r)),r._onWindowKeyDown=r._onWindowKeyDown.bind(pa(r)),r._onToggleSelected=r._onToggleSelected.bind(pa(r)),r._onSelectResource=r._onSelectResource.bind(pa(r)),r._onDeselectAllClick=r._onDeselectAllClick.bind(pa(r)),r._onSelectionChanged=r._onSelectionChanged.bind(pa(r)),r._onResourceContextMenu=r._onResourceContextMenu.bind(pa(r)),r._setWrappedComponentRef=r._setWrappedComponentRef.bind(pa(r)),r._shouldUpdateSelectionRanges=!1,r._shouldCreateSelectionRanges=!1,r._shouldTriggerSelectionChangeAction=!1,r}return function(e,t,n){t&&la(e.prototype,t),n&&la(e,n)}(n,[{key:"componentDidMount",value:function(){this._selectedResources.length&&this._createSelectionRanges(this._getSelectedResourcesFromProps(this.props)),window.addEventListener("keyup",this._onWindowKeyUp),window.addEventListener("keydown",this._onWindowKeyDown),this.props.deselectAllOnOutsideClick&&window.addEventListener("click",this._onDeselectAllClick,!0)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this._updateChangeFlags(e),this._shouldUpdateSelectionRanges&&this._updateSelectionRanges(e),this._shouldCreateSelectionRanges&&this._createSelectionRanges(this._getSelectedResourcesFromProps(e))}},{key:"componentDidUpdate",value:function(e){this._shouldTriggerSelectionChangeAction&&this._triggerSelectionChangeAction()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keyup",this._onWindowKeyUp),window.removeEventListener("keydown",this._onWindowKeyDown),this.props.deselectAllOnOutsideClick&&window.removeEventListener("click",this._onDeselectAllClick,!0)}},{key:"_setWrappedComponentRef",value:function(e){this._wrappedComponentRef=e,this.proxyMethods()}},{key:"proxyMethods",value:function(){}},{key:"_onWindowKeyDown",value:function(e){e.which===Et.a.KEYS.SHIFT&&(this._shiftKeyPressed=!0,this.props.selectedResources.length>0&&document.body.classList.add("no-user-select"))}},{key:"_onWindowKeyUp",value:function(e){e.which===Et.a.KEYS.SHIFT&&(this._shiftKeyPressed=!1,document.body.classList.remove("no-user-select"))}},{key:"_updateChangeFlags",value:function(e){this._shouldUpdateSelectionRanges=!1,this._shouldTriggerSelectionChangeAction=!1,this._shouldCreateSelectionRanges=this._selectedResources!==e.selectedResources}},{key:"_updateSelectionRanges",value:function(e){this._reindexSelections(e),this._mergeAdjacentSelections(),this._findAnchor()}},{key:"_onSelectResource",value:function(e,t,n){var r="MacOS"===this.props.OSFamily?n.metaKey:n.ctrlKey;this.props.isMultiSelectable?n.shiftKey?this._selectRange(e):r||t?this._toggleSelected(e):this._setSelected(e):this._setSelected(e)}},{key:"_onResourceContextMenu",value:function(e,t){var n,r;if(this._isContextMenuEnabled()){if(this._isResourceSelected(e))n=sa(this.props.selectedResources);else{var o=this._getResourceIndex(e);this._resetSelectionRanges(),this._addSingleSelection(o),n=r=this._getSelectedResources()}this.props.onContextMenu(n,t,r)}}},{key:"_onToggleSelected",value:function(e){this.props.isMultiSelectable&&this._shiftKeyPressed?this._selectRange(e):this._toggleSelected(e)}},{key:"_onDeselectAllClick",value:function(e){e.target&&!e.target.closest("."+qo.a)&&this._selectionRanges.length&&(this._resetSelectionRanges(),this._triggerSelectionChangeAction())}},{key:"_resetSelectionRanges",value:function(){this._selectionRanges=[],this._updateAnchor()}},{key:"_setSelected",value:function(e){var t=this._getResourceIndex(e);this._resetSelectionRanges(),this._addSingleSelection(t),this._triggerSelectionChangeAction()}},{key:"_toggleSelected",value:function(e){var t=this._getResourceIndex(e);this._isResourceSelected(e)?this._removeSingleSelection(t):this._addSingleSelection(t),this._triggerSelectionChangeAction()}},{key:"_createSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Math.min(e,t),r=Math.max(e,t);return{start:n,end:r,size:r-n+1}}},{key:"_mergeSelections",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t[0],o=r.start,i=r.end,a=0;a<t.length;a++)o=Math.min(o,t[a].start),i=Math.max(i,t[a].end);return this._createSelection(o,i)}},{key:"_mergeAdjacentSelections",value:function(){for(var e=0;e<this._selectionRanges.length-1;){var t=this._selectionRanges[e],n=this._selectionRanges[e+1];n.start-t.end<=1?this._selectionRanges.splice(e,2,this._mergeSelections(t,n)):e++}}},{key:"_splitSelectionAt",value:function(e,t){return t===e.start?[this._createSelection(e.start+1,e.end)]:t===e.end?[this._createSelection(e.start,e.end-1)]:[this._createSelection(e.start,t-1),this._createSelection(t+1,e.end)]}},{key:"_subtractIndicesFromSelection",value:function(e,t,n){var r=Math.min(e,t),o=Math.max(e,t);return r===n.start&&o===n.end?[]:r===n.start?[this._createSelection(o+1,n.end)]:o===n.end?[this._createSelection(n.start,r-1)]:[this._createSelection(n.start,r-1),this._createSelection(o+1,n.end)]}},{key:"_addSingleSelection",value:function(e){var t=this._createSelection(e),n=Object(ia.sortedIndex)(this._selectionRanges,t,function(e,t){return e.start-t.start}),r=n>0&&e-this._selectionRanges[n-1].end==1,o=this._selectionRanges[n]&&this._selectionRanges[n].start-e==1;o&&r?this._changeSelections(n-1,2,this._mergeSelections(this._selectionRanges[n-1],this._selectionRanges[n])):r?this._changeSelections(n-1,1,this._mergeSelections(this._selectionRanges[n-1],t)):o?this._changeSelections(n,1,this._mergeSelections(t,this._selectionRanges[n])):this._changeSelections(n,0,t),r?this._updateAnchor(e,n-1):this._updateAnchor(e,n)}},{key:"_removeSingleSelection",value:function(e){var t=ba(this._selectionRanges,e);if(t>-1){var n=this._selectionRanges[t];1===n.size?this._changeSelections(t,1):this._changeSelections.apply(this,[t,1].concat(sa(this._splitSelectionAt(n,e)))),this._findNextAnchor(e)}}},{key:"_removeMultiSelection",value:function(e){var t=ba(this._selectionRanges,e);if(!(t<0)){var n=this._subtractIndicesFromSelection(this._anchor,e,this._selectionRanges[t]);this._changeSelections.apply(this,[t,1].concat(sa(n))),this._findNextAnchor(e)}}},{key:"_findAnchor",value:function(){if(!this._selectionRanges.length)return this._updateAnchor();var e=this._getAnchorResourceId();if(!e)return this._moveAnchorToNextSelection();var t=this._getAnchorResourceIndex(e);if(-1===t)return this._moveAnchorToNextSelection();var n=ba(this._selectionRanges,t);if(-1===n)return this._moveAnchorToNextSelection();this._updateAnchor(t,n)}},{key:"_updateAnchor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this._anchor=e,this._anchorSelectionIndex=t}},{key:"_findNextAnchor",value:function(e){var t=Object(ia.sortedIndex)(this._selectionRanges,e,function(e,t){return e.start-t});if(t===this._selectionRanges.length)if(this._selectionRanges.length){var n=this._selectionRanges.length-1;this._updateAnchor(this._selectionRanges[n].end,n)}else this._updateAnchor();else this._updateAnchor(this._selectionRanges[t].start,t)}},{key:"_moveAnchorToNextSelection",value:function(){var e=this._anchorSelectionIndex||0;if(this._selectionRanges[e])this._updateAnchor(this._selectionRanges[e].start,e);else{var t=this._selectionRanges.length-1;this._updateAnchor(this._selectionRanges[t].end,t)}}},{key:"_getResourceIndex",value:function(e){throw"Should be implemented"}},{key:"_isResourceSelected",value:function(e){throw"Should be implemented"}},{key:"_getSelectedResources",value:function(){throw"Should be implemented"}},{key:"_reindexSelections",value:function(e){throw"Should be implemented"}},{key:"_getSelectedResourcesFromProps",value:function(e){return e.selectedResources}},{key:"_buildNewSelectionRangesFromResources",value:function(e){throw"Should be implemented"}},{key:"_createSelectionRanges",value:function(e){this._resetSelectionRanges(),e.length&&(this._buildNewSelectionRangesFromResources(e),this._selectionRanges.length&&this._updateAnchor(this._selectionRanges[0].start,0))}},{key:"_getAnchorResourceId",value:function(){throw"Should be implemented"}},{key:"_getAnchorResourceIndex",value:function(e){throw"Should be implemented"}},{key:"_isContextMenuEnabled",value:function(){return!this.props.maxActionableSize||this.props.selectedResources.length<=this.props.maxActionableSize}},{key:"_selectRange",value:function(e){this._addMultiSelection(this._getResourceIndex(e)),this._triggerSelectionChangeAction()}},{key:"_onSelectionChanged",value:function(e){this._createSelectionRanges(e),this._triggerSelectionChangeAction()}},{key:"_addMultiSelection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._createSelection(this._anchor,e),r=function(e,t){var n=Object(ia.sortedIndex)(t,e,function(e,t){return e.start-t.start}),r=n-1,o=t[n],i=t[r],a=o&&va(o,e),c=i&&_a(i,e),s=i&&va(i,e);if(c||s)return{index:r,isIntersected:s,isAdjacent:c};return{index:n,isIntersected:a,isAdjacent:!1}}(n,this._selectionRanges),o=r.index,i=r.isIntersected,a=r.isAdjacent,c=function(e,t){var n=Object(ia.sortedIndex)(t,e,function(e,t){return e.end-t.end}),r=n-1,o=t[n],i=t[r],a=o&&va(o,e),c=o&&_a(o,e),s=i&&va(i,e);if(!o||c||a)return{index:n,isIntersected:a,isAdjacent:c};return i?{index:r,isIntersected:s,isAdjacent:!1}:{index:0,isIntersected:!1,isAdjacent:!1}}(n,this._selectionRanges),s=c.index,u=c.isIntersected,l=c.isAdjacent,f=s-o+(a||i?1:0)+(l||u?1:0),p=[n];(a||!t&&i)&&p.push(this._selectionRanges[o]),(l||!t&&u)&&p.push(this._selectionRanges[s]);var h=this._mergeSelections.apply(this,p);this._changeSelections(o,f,h),this._updateAnchor(this._anchor,o)}},{key:"_changeSelections",value:function(e,t){for(var n,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];(n=this._selectionRanges).splice.apply(n,[e,t].concat(o))}},{key:"_triggerSelectionChangeAction",value:function(){this.props.onSelectionChanged(this._getSelectedResources())}},{key:"_render",value:function(e,t){return o.a.createElement(e,ca({},this.props,t,{ref:this._setWrappedComponentRef,onToggleSelected:this._onToggleSelected,onSelectResource:this._onSelectResource,onResourceContextMenu:this.props.onContextMenu&&this._onResourceContextMenu,onSelectionChanged:this._onSelectionChanged}))}},{key:"size",get:function(){return this._selectionRanges.reduce(function(e,t){return e+t.size},0)}}]),n}();ya.propTypes={OSFamily:y.a.string.isRequired,onSelectionChanged:y.a.func.isRequired,selectedResources:y.a.arrayOf(y.a.string).isRequired,isMultiSelectable:y.a.bool,deselectAllOnOutsideClick:y.a.bool},ya.defaultProps={isMultiSelectable:!0};var ma=ya;function ba(e,t){return Object(ia.sortedFind)(e,t,function(e,t){return t<e.start?1:t>e.end?-1:0})}function va(e,t){return Math.max(e.start,t.start)<=Math.min(e.end,t.end)}function _a(e,t){return e.start-t.end==1||t.start-e.end==1}function ga(e){"@babel/helpers - typeof";return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wa(e,t,n){return(wa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Sa(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Ea(e){return function(){var t,n=Sa(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Sa(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===ga(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Sa(e){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ka(e,t){return(ka=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xa(e,t){return t.findIndex(function(t){return t.id===e})}n(586);function Ra(e){"@babel/helpers - typeof";return(Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pa(e){return function(){var t,n=Ta(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ta(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Ra(t)||"function"==typeof t))return t;return Ca(e)}(this,t)}}function Ca(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ta(e){return(Ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ia(e,t){return(Ia=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Da=function(){return l()()("public-listing")},Aa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ka(e,t)}(o,ma);var r=Ea(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),r.apply(this,arguments)}return function(e,t,n){t&&Oa(e.prototype,t),n&&Oa(e,n)}(o,[{key:"proxyMethods",value:function(){var e=this;t.forEach(function(t){e[t]=function(){var n;return e._wrappedComponentRef&&(n=e._wrappedComponentRef)[t].apply(n,arguments)}})}},{key:"_updateChangeFlags",value:function(e){wa(Sa(o.prototype),"_updateChangeFlags",this).call(this,e),this._shouldUpdateSelectionRanges=this._shouldTriggerSelectionChangeAction=Boolean(this._selectionRanges.length)&&e.resources!==this.props.resources}},{key:"_reindexSelections",value:function(e){this._selectionRanges=[],this._buildNewSelectionRangesFromResources(e.selectedResources,e.resources)}},{key:"_buildNewSelectionRangesFromResources",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.resources,n=e.reduce(function(e,t){return e.set(t,!0)},new Map),r=null,o=null,i=0;i<t.length;i++){var a=t.length-i==1,c=t[i].id;n.has(c)&&null===r?r=i:n.has(c)||null===r||(o=i-1),a&&null!==r&&null===o&&(o=i),null!==r&&null!==o&&(this._selectionRanges.push(this._createSelection(r,o)),r=null,o=null)}}},{key:"_getAnchorResourceId",value:function(){return this.props.resources[this._anchor]&&this.props.resources[this._anchor].id}},{key:"_getAnchorResourceIndex",value:function(e){return xa(e,this.props.resources)}},{key:"_getResourceIndex",value:function(e){return xa(e,this.props.resources)}},{key:"_isResourceSelected",value:function(e){return this.props.selectedResources.includes(e)}},{key:"_getSelectedResources",value:function(){var e=this;return this._selectedResources=this._selectionRanges.reduce(function(t,n){var r=n.start,o=n.end;return t.concat(e.props.resources.slice(r,o+1).filter(e.props.isSelectableResource).map(function(e){return e.id}))},[]),this._selectedResources}},{key:"render",value:function(){return this._render(e)}}]),o}();return n.propTypes=Object.assign({},ma.propTypes,{resources:y.a.arrayOf(y.a.object),isSelectableResource:y.a.func.isRequired,scrollToResource:y.a.object}),n.defaultProps=Object.assign({},ma.defaultProps,{resources:[]}),n}(qi,["getItemsInfo","getItemInfo","updateItemsInfo"]),Ma=Da().e("listing-wrapper"),za=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ia(e,t)}(n,r["Component"]);var t=Pa(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onResourceOpen=e._onResourceOpen.bind(Ca(e)),e._requestFetchNext=e._requestFetchNext.bind(Ca(e)),e._onSelectionChanged=e._onSelectionChanged.bind(Ca(e)),e._getAdditionalFields=e._getAdditionalFields.bind(Ca(e)),e}return function(e,t,n){t&&ja(e.prototype,t),n&&ja(e,n)}(n,[{key:"componentDidUpdate",value:function(e){if(this.props.sliderResourceId&&this.props.sliderResourceId!==e.sliderResourceId){var t=this._listing.getItemInfo(this.props.sliderResourceId).ref;window.scrollTo(0,window.pageYOffset+t.getBoundingClientRect().top+0)}e.currentResource.id!==this.props.currentResource.id&&((document.scrollingElement||document.documentElement).scrollTop=0)}},{key:"_requestFetchNext",value:function(){this.props.fetchNextPortion(this.props.currentResource.id)}},{key:"_onResourceOpen",value:function(e){var t=this.props.resources.find(function(t){return t.id===e}),n=this.props,r=n.isMobile,o=n.isAlbum;"dir"===t.type?this.props.setCurrentResource(e):!r&&t.dvSearch&&Object(Qr.a)(t)!==wt.RESOURCE_VIEWS.IMAGE?this.props.openDV(e):this.props.openSlider(e,!0),Object(eo.b)(o,"click","dir"===t.type?"folder":"file")}},{key:"_onSelectionChanged",value:function(e){this.props.setSelectedResources(e)}},{key:"_getAdditionalFields",value:function(e){var t="";if("dir"!==e.type&&e.meta&&e.meta.size){var n=Object(ee.i18n)("en","lists","sizes").split("|");t=Xi.a.getSpaceString(e.meta.size,n,Object(ee.i18n)("en","entities","ufo_number_separator"))}var r=1e3*e.modified;return[{type:"date",themes:["row"],content:$i()(r,Object(ee.i18n)("en","entities","ufo_format_date-month-year"))},{type:"time",themes:["row"],content:$i()(r,Object(ee.i18n)("en","entities","ufo_format_hour-minute"))},{type:"size",themes:["row"],content:t}]}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.resources,i=n.currentResource,a=n.selectedResources,c=n.isMobile,s=n.OSFamily,u=n.isMsieOrEdge,l=n.listingType,f=n.isWowPublic;switch(l){case"tile":e={theme:"tile",size:"l"};break;case"icons":e={theme:"tile",size:"m"};break;default:e={theme:"row"}}var p=Object.assign({titleOverflow:"clamp",onResourceOpen:this._onResourceOpen,onSelectionChanged:this._onSelectionChanged,isSelectable:!0,isMultiSelectable:!1,selectedResources:a,isTouch:c,OSFamily:s,requestFetchNext:this._requestFetchNext,loading:i.loading,completed:i.completed,resources:r,getAdditionalFields:this._getAdditionalFields,onPlayVideoClick:this._onResourceOpen,scrollingElementSelector:u?"."+Ma:void 0,deselectAllOnOutsideClick:!0,isSelectableResource:function(){return!0},ref:function(e){t._listing=e}},e);return o.a.createElement("div",{className:Da().m(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},f?"wow":"simple",!0))},o.a.createElement("div",{className:Ma},o.a.createElement(Aa,p)))}}]),n}(),La=Object(c.b)(function(e){var t=e.selectedResources,n=e.overlays.sliderResourceId,r=e.ua,o=r.isMobile,i=r.OSFamily,a=na(e);return{sliderResourceId:n,resources:ta(e),selectedResources:t,currentResource:a,isMobile:o,OSFamily:i,isMsieOrEdge:Object(oa.a)(e),listingType:Object(ra.a)(e),isWowPublic:Object(ra.c)(e),isAlbum:Object(nr.d)(a)}},{openSlider:Z.w,openDV:Z.o,fetchNextPortion:J.d,setCurrentResource:J.g,setSelectedResources:Z.B,changeListingType:Z.f})(za);function Na(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ha,Ua={CLUSTER:"cluster",RESOURCE:"resource",INDEX_PATH:"indexPath"},Ba=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._setOptions(t),this._scrollSpeed=0,this._clustersAbsoluteTop={},this._slowScrollCallbacks=[],this._groups=[],this._canDecreaseItemSize=!1}return function(e,t,n){t&&Na(e.prototype,t),n&&Na(e,n)}(e,[{key:"_setOptions",value:function(e){this._options=Object.assign({itemsInGroup:50,renderGroups:3},this._options,e),this._options.noTitles&&(this._options.titleHeight=0)}},{key:"getClusterAbsoluteTop",value:function(e){return this._clustersAbsoluteTop[e]+this._options.offset.y}},{key:"getGroups",value:function(){return this._groups}},{key:"isGridComplete",value:function(){return!this._maxHeightExceeded}},{key:"getHeight",value:function(){return this._totalHeight}},{key:"setScrollSpeed",value:function(e){var t=!this.isFastScrolling(e)&&this.isFastScrolling();this._scrollSpeed=e,t&&(this._slowScrollCallbacks.forEach(function(e){e()}),this._slowScrollCallbacks=[])}},{key:"isFastScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._scrollSpeed;return Math.abs(e)>this._options.scrollSpeedThreshold}},{key:"addSlowScrollCallback",value:function(e){this._slowScrollCallbacks.includes(e)||this._slowScrollCallbacks.push(e)}},{key:"removeSlowScrollCallback",value:function(e){var t=this._slowScrollCallbacks.indexOf(e);-1!==t&&this._slowScrollCallbacks.splice(t,1)}},{key:"isBiggerThanViewport",value:function(){return this._totalHeight>0&&this._totalHeight+this._options.offset.y>this._options.viewportHeight}},{key:"getCurrentClusterIndex",value:function(e){for(var t,n=this.getGroupsToRender(e),r=n.start,o=n.end,i=r;i<=o;i++)for(var a=0;a<this._groups[i].items.length;a++){var c=this._groups[i].items[a];if("title"===c.type){if(c.absoluteTop+this._options.offset.y>e)return void 0!==t?t:c.clusterIndexes.to;t=c.clusterIndexes.to}}return t||this._groups[r].start.clusterIndex}},{key:"eachGroup",value:function(e,t,n){for(var r=[],o=e;o<=Math.min(t,this._groups.length-1);o++)r.push(n(this._groups[o],o));return r}},{key:"getGroupsToRender",value:function(e){for(var t=e,n=e+this._options.viewportHeight,r=0,o=this._groups.length-1,i=0;r<=o;){i=Math.floor((r+o)/2);var a=this._groups[i];if(a.top>n)o=i;else{if(!(a.top+a.height<t))break;r=i+1}}var c=this._groups[i],s=c.top+c.height;if(s>=t&&s<n&&i<this._groups.length-1){var u=s-t;n-this._groups[i+1].top>u&&(i+=1)}else if(c.top<=n&&c.top>t&&i>0){var l=n-c.top,f=this._groups[i-1];f.top+f.height-t>l&&(i-=1)}var p=Math.floor(this._options.renderGroups/2);return{start:Math.max(0,i-p),end:Math.min(i+p,this._groups.length-1)}}},{key:"_calcVisibleItemsDelta",value:function(e,t,n,r){if("cluster"===n){if(![Ua.RESOURCE,Ua.CLUSTER].includes(t.countedBy)&&e.clusters.length){var o=e.clusters.find(function(e){return e.id===r.id});if(o)return{delta:r.absoluteTop-o.absoluteTop,countedBy:Ua.CLUSTER}}}else if("item"===n){if(!e.items.length||t.countedBy===Ua.RESOURCE)return t;for(var i=0;i<e.items.length;i++){var a=e.items[i];if(a.id&&a.id===r.id)return{delta:r.absoluteTop-a.absoluteTop,countedBy:Ua.RESOURCE};if(![Ua.CLUSTER,Ua.INDEX_PATH].includes(t.countedBy)&&a.clusterIndex===r.clusterIndex&&a.resourceIndex===r.resourceIndex)return{delta:r.absoluteTop-a.absoluteTop,countedBy:Ua.INDEX_PATH}}}return t}},{key:"_onBeforeRebuild",value:function(){}},{key:"_onAfterRebuild",value:function(){}},{key:"_getClusters",value:function(){throw"Should be implemented"}},{key:"_getNextSetHeight",value:function(e,t){throw"Should be implemented"}},{key:"_getClusterItem",value:function(e,t,n,r){throw"Should be implemented"}},{key:"_getClusterAbsoluteTop",value:function(e,t){throw"Should be implemented"}},{key:"rebuild",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{clusters:[],items:[]};this._setOptions(e),this._groups=[],this._totalHeight=0;var r,o=0,i=0;this._maxHeightExceeded=!1;var a={};this._onBeforeRebuild();for(var c=this._getClusters(),s=function(e){var s=c[e].cluster,u=t._getClusterAbsoluteTop(e,o);if(t._clustersAbsoluteTop[s.id]=u,(s.isCombined?s.clusters.map(function(e){return e.id}):[s.id]).forEach(function(e){a=t._calcVisibleItemsDelta(n,a,"cluster",{id:e,absoluteTop:u})}),r||(r={top:u,items:[],start:{clusterIndex:c[e].indexFrom,resourceIndex:0}}),!t._options.noTitles){var l={type:"title",absoluteTop:u,top:u-r.top,left:0,height:t._options.titleHeight,width:t._options.containerWidth,clusterIndexes:{from:c[e].indexFrom,to:c[e].indexTo}};r.items.push(l)}for(var f=0;f<s.size;f++){var p=t._getClusterItem(e,f,o,i),h=p.item,d=p.setIndex,y=p.isLastInSet,m=p.rowsInSet;i++;var b=s.items&&s.items[f];a=t._calcVisibleItemsDelta(n,a,"item",Object.assign({id:b&&b.id,absoluteTop:h.absoluteTop},h.index));var v=Object.assign(b?{originalWidth:b.width,originalHeight:b.height}:{},h);r?r.items.push(v):(r={top:v.absoluteTop,items:[v],start:v.index},s.isCombined&&c[e].indexFrom<v.index.clusterIndex&&(r.extraClusters=[[c[e].indexFrom,v.index.clusterIndex-1]])),v.top=v.absoluteTop-r.top;var _=v.absoluteTop+v.height+t._options.itemsMargin-r.top;if(y&&(o+=m||1),y&&!t._canDecreaseItemSize&&t._options.maxHeight&&t._options.hardHeightLimit){var g=t._getNextSetHeight(e,d);t._maxHeightExceeded=t._totalHeight+_+g>=t._options.maxHeight}if(r.items.length>t._options.itemsInGroup&&_>=t._options.viewportHeight&&y||t._maxHeightExceeded||e===c.length-1&&f===s.size-1){var O=Object.assign({},r,{height:_,end:v.index});if(s.isCombined&&c[e].indexTo>v.index.clusterIndex&&(O.extraClusters=(r.extraClusters||[]).concat([[v.index.clusterIndex+1,c[e].indexTo]])),t._groups.push(O),t._totalHeight+=O.height,r=void 0,t._maxHeightExceeded)break}}if(t._maxHeightExceeded)return"break"},u=0;u<c.length;u++){if("break"===s(u))break}return this._totalHeight=Math.ceil(this._totalHeight),this._onAfterRebuild(),{visibleItemsDelta:a.delta||0}}}]),e}(),Va=n(260),Fa=n.n(Va);function Wa(e){"@babel/helpers - typeof";return(Wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ga(e){return function(e){if(Array.isArray(e))return Qa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Ja(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qa(e){return function(){var t,n=Ka(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ka(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Wa(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Ka(e){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xa(e,t){return(Xa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||Ja(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ja(e,t){if(e){if("string"==typeof e)return Qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qa(e,t):void 0}}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ec,tc={SQUARE:"s",HORIZONTAL:"h",VERTICAL:"v",PANORAMA:"-"},nc=function(e){return 6===e},rc=function(e){var t=$a(e,4);return t[2]*t[3]},oc={layoutHeight:3,layoutWidth:(Ha={},Za(Ha,tc.SQUARE,2),Za(Ha,tc.HORIZONTAL,3),Za(Ha,tc.VERTICAL,2),Za(Ha,tc.PANORAMA,4),Ha)},ic=function(e){var t=$a(e,4);return{layoutX:t[0],layoutY:t[1],layoutWidth:t[2],layoutHeight:t[3]}},ac=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xa(e,t)}(n,Ba);var t=qa(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e))._layouts={},r._prevColumns=r._options.columns,r._combinedClusters=[],r._combinedClustersHashMap={},r._clusterToCombinedHashMap={},r._cachedClusterItemStrings={},r.rebuild(),r}return function(e,t,n){t&&Ya(e.prototype,t),n&&Ya(e,n)}(n,[{key:"_convertClusterIdToCombinedClusterId",value:function(e,t){var n=Boolean(this._clusterToCombinedHashMap[e]),r=n?this._clusterToCombinedHashMap[e]:e,o=t;if(n)for(var i=this._combinedClustersHashMap[r],a=0;a<i.clusters.length&&i.clusters[a].id!==e;a++)o+=i.clusters[a].size;return{combinedClusterId:r,isCombined:n,resourceIndex:o}}},{key:"_getItemByIndex",value:function(e,t){var n=this._layouts[e].layouts,r=Object(ia.sortedFind)(n,t,function(e,t){var n=e.indexFrom,r=e.layout;return t<n?1:t>=n+r.length?-1:0}),o=n[r],i=t-o.indexFrom;return{item:o.layout[i],layoutIndex:r,itemIndexInLayout:i}}},{key:"getItemAbsoluteTop",value:function(e,t){var n=this._convertClusterIdToCombinedClusterId(e,t),r=n.combinedClusterId,o=n.resourceIndex,i=this._getItemByIndex(r,o),a=i.item,c=i.layoutIndex,s=this._layouts[r].layouts.slice(0,c).reduce(function(e,t){return e+t.height},0)+a.layoutY,u=this._getCellSize();return this._clustersAbsoluteTop[r]+this._options.titleHeight+this._options.offset.y+s*u.height+(s-1)*this._options.itemsMargin}},{key:"_getItemAbsoluteTop",value:function(e,t){var n=this._getCellSize();return e*this._options.titleHeight+t*(n.height+this._options.itemsMargin)}},{key:"_calcCellSize",value:function(){var e=this._options,t=e.itemsMargin,n=e.containerWidth,r=e.columns,o=(n-t*(r-1))/r;return{width:o,height:Math.round(3*o/4)}}},{key:"_getCellSize",value:function(){return this._cellSize||(this._cellSize=this._calcCellSize()),this._cellSize}},{key:"_getItemType",value:function(e){var t=e.width,n=e.height;if(!t||!n)return tc.HORIZONTAL;var r=t/n;return r>=.9&&r<=1.1?tc.SQUARE:r>1.1&&r<=2?tc.HORIZONTAL:r>2?tc.PANORAMA:tc.VERTICAL}},{key:"_getTypesString",value:function(e){return e.map(this._getItemType).join("")}},{key:"_getRowLayoutFallback",value:function(e,t){for(var n=0,r=[],o=0,i=[],a=0,c=0;c<e;c++){var s={layoutHeight:oc.layoutHeight,layoutWidth:oc.layoutWidth[this._getItemType(t?t[c]:{})]};if(o+s.layoutWidth>this._options.columns){var u=!0;if(o<this._options.columns){var l=oc.layoutWidth[tc.HORIZONTAL];if(1===i.length&&this._options.columns===2*l)i[0].layoutWidth=l,o=l,s.layoutWidth=l,u=!1;else for(var f=this._options.columns-o,p=i.slice().sort(function(e,t){return t.layoutWidth-e.layoutWidth}),h=0;f>0;){var d=p[h];d.layoutWidth++;for(var y=i.indexOf(d)+1;y<i.length;)i[y].layoutX++,y++;h=h===i.length-1?0:h+1,f--}}u&&(r.push({height:n,layout:i,indexFrom:a}),o=0,i=[],n=0,a=c)}var m={layoutX:o,layoutY:0,layoutWidth:s.layoutWidth,layoutHeight:s.layoutHeight};i.push(m),o+=s.layoutWidth,n=s.layoutHeight}return i.length&&r.push({height:n,layout:i,indexFrom:a}),r}},{key:"_getDefaultLayout",value:function(e,t){var n=this._options.layouts.defaultLayouts,r=tc.HORIZONTAL.repeat(e),o=n[r],i=this._options.layouts[r][o].map(ic),a=i[i.length-1];return{height:a.layoutY+a.layoutHeight,layout:i,indexFrom:t}}},{key:"_getWithoutSizeFallback",value:function(e){var t=this._options.layouts.defaultLayouts,n=t.maxLength,r=t.minLength,o=void 0===r?Math.ceil(n/2):r;if(e<=n)return[this._getDefaultLayout(e,0)];for(var i=[],a=0;a<e;){var c=n;if(a+n+o>e){var s=e-a;c=s<=n?s:s-o}i.push(this._getDefaultLayout(c,a)),a+=c}return i}},{key:"_calculateBestLayoutsForItems",value:function(e){var t=this,n=e.map(function(e){return e.beauty}).filter(function(e){return"number"==typeof e}),r=n.length>0?n.reduce(function(e,t){return e+t},0)/n.length:0,o=new Array(e.length+1);o[0]={weight:0,layout:[],height:0};for(var i=function(n){for(var i=function(i){var a=e.slice(i,n+1),c=!1,s=t._options.layouts[t._getTypesString(a)],u=o[i];s||(s=t._options.layouts[tc.HORIZONTAL.repeat(a.length)],c=!0),s&&u&&s.forEach(function(e){var i=u.weight+t._getWeight(r,e,a,u,c);(!o[n+1]||i>o[n+1].weight)&&(o[n+1]={weight:i,isFallback:c,layout:e,height:e.reduce(function(e,t){var n=$a(t,4),r=n[1],o=n[3];return Math.max(e,r+o)},0),prev:u})})},a=Math.max(0,n-t._options.maxPhotosInLayout);a<=n;a++)i(a)},a=0;a<e.length;a++)i(a);for(var c=o[e.length],s=[];c;)s.unshift({height:c.height,layout:c.layout.map(ic)}),c=c.prev;var u=0;return s.forEach(function(e){e.indexFrom=u,u+=e.layout.length}),s}},{key:"_getClusterLayouts",value:function(e){var t=this._clusterToCombinedHashMap[e.id]?this._combinedClustersHashMap[this._clusterToCombinedHashMap[e.id]]:e,n=t.size,r=t.items,o=this._cachedClusterItemStrings[t.id],i=this._layouts[t.id];if(!i||n!==i.size||r&&(i.isDefault||i.itemTypesString!==o)){if(this._isSmallClusterSize(t.size))return this._layouts[t.id]={isDefault:!r,items:r,size:n,itemTypesString:o,layouts:this._getRowLayoutFallback(n,r)},this._layouts[t.id];if(!r)return this._layouts[t.id]={isDefault:!0,items:r,size:n,layouts:this._getWithoutSizeFallback(n)},this._layouts[t.id];if(i&&n>i.size&&!this._isSmallClusterSize(n-i.size)&&i.items&&r.slice(0,i.size).every(function(e,t){return e===i.items[t]})){var a=r.slice(i.size),c=this._calculateBestLayoutsForItems(a).filter(function(e){return e.layout.length>0}).map(function(e){return e.indexFrom+=i.size,e});return this._layouts[t.id]={size:n,itemTypesString:o,items:r,layouts:[].concat(Ga(i.layouts),Ga(c))},this._layouts[t.id]}this._layouts[t.id]={size:n,items:r,itemTypesString:o,layouts:this._calculateBestLayoutsForItems(r)}}return this._layouts[t.id]}},{key:"_getWeight",value:function(e,t,n,r,o){for(var i=this._options.coefficients,a=t.length,c=Fa()(t,function(e,t){var n=$a(e,4),r=n[2],o=n[3],i=$a(t,4),a=i[2],c=i[3];return r===a&&o===c}).length,s=n.map(function(t){return Math.min(Math.max(t.beauty||e,-5),5)}).map(function(n,r){return(n-e)*(rc(t[r])-i.normalPhotoSize)}).reduce(function(e,t){return e+t},0),u=n.map(function(e,n){return-Math.abs(rc(t[n])-i.normalPhotoSize)}).reduce(function(e,t){return e+t},0),l=c*c,f=a*a,p=t.reduce(function(e,t){return Math.max(e,t[1]+t[3])},0),h=i.sameLayoutPrevCount,d=0,y=r;y&&y.height&&h>0&&0===d;)So()(t,y.layout)&&(d=h),y=y.prev,h--;return-p+i.normalSizeK*u+i.beautyK*s+i.sizeDiffK*l+i.photosInBlockK*f+(1===a?i.singlePhotoK:0)+(o?i.fallbackGridItemK*n.length:0)+d*i.sameLayoutK}},{key:"getItemSize",value:function(e,t){var n=this._convertClusterIdToCombinedClusterId(e,t),r=n.combinedClusterId,o=n.resourceIndex,i=this._getItemByIndex(r,o).item;return this._getItemRect(i)}},{key:"_getItemRect",value:function(e){var t=e.layoutX,n=e.layoutY,r=e.layoutWidth,o=e.layoutHeight,i=this._getCellSize(),a=this._options.itemsMargin;return{top:n*(i.height+a),left:t*(i.width+a),height:o*i.height+(o-1)*a,width:r*i.width+(r-1)*a}}},{key:"getFastScrollOffset",value:function(){return 2*this._getCellSize().height}},{key:"_isSmallClusterSize",value:function(e){return e<this._options.minWowClusterSize}},{key:"_canCombine",value:function(e,t){var n=new Date(e),r=new Date(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()}},{key:"_maybeCombine",value:function(e,t,n){var r=this,o=t&&this._canCombine(e.from,t.to),i=n&&this._canCombine(n.from,e.to);if(o||i){var a,c=(a=o&&i?e.from-n.to<t.from-e.to?[e,n]:[t,e]:i?[e,n]:[t,e])[0].id+","+a[1].id,s=(a[0].isCombined?a[0].clusters:[a[0]]).concat(a[1].isCombined?a[1].clusters:[a[1]]);this._combinedClustersHashMap[c]={id:c,isCombined:!0,clusters:s,items:a[0].items&&a[1].items?a[0].items.concat(a[1].items):null,size:a[0].size+a[1].size,from:a[1].from,to:a[0].to},a.forEach(function(e){e.isCombined?(e.clusters.forEach(function(e){r._clusterToCombinedHashMap[e.id]=c}),delete r._combinedClustersHashMap[e.id]):r._clusterToCombinedHashMap[e.id]=c})}}},{key:"_combineSmallClusters",value:function(){this._combinedClustersHashMap={},this._clusterToCombinedHashMap={};for(var e=0;e<this._options.items.length;e++){var t=this._options.items[e],n=this._options.items[e-1];this._clusterToCombinedHashMap[t.id]&&(t=this._combinedClustersHashMap[this._clusterToCombinedHashMap[t.id]],n=this._options.items[e-t.clusters.length]),n&&this._clusterToCombinedHashMap[n.id]&&(n=this._combinedClustersHashMap[this._clusterToCombinedHashMap[n.id]]);var r=this._options.items[e+1];!this._options.disableCombineSmallClusters&&this._isSmallClusterSize(t.size)&&this._maybeCombine(t,n,r)}this._combinedClusters=[];for(var o=0;o<this._options.items.length;o++){var i=this._options.items[o];if(this._clusterToCombinedHashMap[i.id]){var a=this._combinedClustersHashMap[this._clusterToCombinedHashMap[i.id]];this._combinedClusters.push({cluster:a,indexFrom:o,indexTo:o+a.clusters.length-1}),o+=a.clusters.length-1}else this._combinedClusters.push({cluster:i,indexFrom:o,indexTo:o})}}},{key:"_onBeforeRebuild",value:function(){var e=this;this._cellSize=this._calcCellSize(),this._prevColumns!==this._options.columns&&(this._layouts={},this._prevColumns=this._options.columns),this._combineSmallClusters(),this._cachedClusterItemStrings={},this._combinedClusters.forEach(function(t){var n=t.cluster,r=n.id,o=n.items;o&&(e._cachedClusterItemStrings[r]=e._getTypesString(o))})}},{key:"_getClusters",value:function(){return this._combinedClusters}},{key:"_getClusterAbsoluteTop",value:function(e,t){var n=this._getCellSize();return e*this._options.titleHeight+t*(n.height+this._options.itemsMargin)}},{key:"getClusterAbsoluteTop",value:function(e){var t=this._clusterToCombinedHashMap[e]||e;return this._clustersAbsoluteTop[t]+this._options.offset.y}},{key:"_getClusterItem",value:function(e,t,n){var r=this._combinedClusters[e],o=r.cluster,i=r.indexFrom,a=this._getClusterLayouts(o).layouts,c=this._getItemByIndex(o.id,t),s=c.item,u=c.layoutIndex,l=c.itemIndexInLayout,f=this._getItemAbsoluteTop(e+1,n),p=this._getItemRect(s),h=i,d=t;if(o.isCombined)for(var y=0;y<o.clusters.length&&d>=o.clusters[y].size;y++)d-=o.clusters[y].size,h++;var m=l===a[u].layout.length-1;return{item:Object.assign({type:"item",index:{clusterIndex:h,resourceIndex:d},absoluteTop:f+p.top},p),setIndex:u,isLastInSet:m,rowsInSet:a[u].height}}},{key:"_getNextSetHeight",value:function(e,t){var n,r=this._combinedClusters[e].cluster,o=this._getClusterLayouts(r).layouts,i=0;return t<o.length-1?n=o[t+1]:e<this._combinedClusters.length-1&&(n=this._getClusterLayouts(this._combinedClusters[e+1].cluster).layouts[0]),i+=n?n.height:0}}]),n}(),cc={},sc=function(e){return cc[e]?Promise.resolve(cc[e]):function(e){switch(e){case 6:return n.e(2).then(n.t.bind(null,688,3));case 10:return n.e(0).then(n.t.bind(null,689,3));case 12:return n.e(1).then(n.t.bind(null,690,3));default:return Promise.reject()}}(e).then(function(t){return cc[e]=t,t})},uc=function(e){return cc[e]},lc=[],fc=!1,pc=0,hc=0,dc=0,yc=Date.now(),mc=0,bc=function(e){hc=fc?dc:window.pageYOffset,fc&&window.scrollTo(0,dc);var t=Date.now();pc=(hc-mc)/(t-yc),mc=hc,yc=t,lc.forEach(function(t){t(Object.assign({scrollTop:hc,scrollSpeed:pc,isManual:fc},e))})},vc=function(e){bc(e),ec=requestAnimationFrame(function(){bc(Object.assign({isLast:!0},e))})},_c=function(e){cancelAnimationFrame(ec),e.throttle?ec=requestAnimationFrame(function(){vc(e)}):vc(e)},gc=function(){fc?fc=!1:_c({throttle:!0})};n(595);function Oc(e){"@babel/helpers - typeof";return(Oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ec(e){return function(){var t,n=kc(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=kc(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Oc(t)||"function"==typeof t))return t;return Sc(e)}(this,t)}}function Sc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kc(e){return(kc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xc(e,t){return(xc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rc=function(){return l()()("virtual-grid")},jc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xc(e,t)}(n,r["Component"]);var t=Ec(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={groupsToRender:[],height:0,viewportHeight:0},r._onWindowScroll=r._onWindowScroll.bind(Sc(r)),r._onDocumentChange=r._onDocumentChange.bind(Sc(r)),r._onWindowResizeThrottled=bi()(r._onWindowResize.bind(Sc(r)),500),r._gridContainerRef=r._gridContainerRef.bind(Sc(r)),r._lastPageYOffset=0,r._containerOffset={},r}return function(e,t,n){t&&wc(e.prototype,t),n&&wc(e,n)}(n,[{key:"componentDidMount",value:function(){this._buildGrid(),window.addEventListener("resize",this._onWindowResizeThrottled),document.addEventListener("documentchange",this._onDocumentChange),function(e){lc.length||window.addEventListener("scroll",gc),lc.includes(e)||lc.push(e)}(this._onWindowScroll)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;e.GridType!==this.props.GridType&&this._buildGrid(e);var n=(e.rebuildOnPropsChange||[]).some(function(n){return t.props[n]!==e[n]});this._grid&&n&&this._rebuild(!1,e)}},{key:"componentWillUnmount",value:function(){!function(e){(lc=lc.filter(function(t){return t!==e})).length||window.removeEventListener("scroll",gc)}(this._onWindowScroll),window.removeEventListener("resize",this._onWindowResizeThrottled),document.removeEventListener("documentchange",this._onDocumentChange)}},{key:"_buildGrid",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this._grid=new t.GridType(this._getGridOptions(!0,t));var n=this._getGroupsToRender();this.setState({height:this._grid.getHeight(),groupsToRender:n},function(){t.onBuildDone(e._grid)})}},{key:"_getGroupsToRender",value:function(){var e=this._grid.getGroupsToRender(window.pageYOffset),t=e.start,n=e.end;return this._grid.getGroups().slice(t,n+1)}},{key:"_rebuild",value:function(e,t){var n=window.pageYOffset?this._findVisibleItems():void 0,r=this._getGridOptions(e,t),o=this._grid.rebuild(r,n).visibleItemsDelta,i={groupsToRender:this._getGroupsToRender()},a=this._grid.getHeight();a!==this.state.height&&Object.assign(i,{height:a}),r.viewportHeight&&r.viewportHeight!==this.state.viewportHeight&&Object.assign(i,{viewportHeight:r.viewportHeight});var c=window.pageYOffset;this.setState(i,function(){var e=o+c;e-window.pageYOffset&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fc=!0,dc=e,_c(t)}(e,{silent:!0})})}},{key:"_getGridOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=Object.assign({items:t.items,maxHeight:t.maxHeight},t.gridOptions);if(e&&this._gridContainer){var r=this._gridContainer.getBoundingClientRect(),o=r.left,i=r.top,a=r.width;if(!a)return n;this._containerOffset={x:o+pageXOffset,y:i+pageYOffset},Object.assign(n,{containerWidth:a,viewportHeight:window.innerHeight,offset:this._containerOffset})}return n}},{key:"_onWindowScroll",value:function(e){var t=this,n=e.scrollTop,r=e.scrollSpeed;this._grid.isGridComplete()||this._checkIfScrolledToTheEnd(n,window.innerHeight),this._lastPageYOffset=pageYOffset,this._grid.setScrollSpeed(r);var o=this._getGroupsToRender();(o.length!==this.state.groupsToRender.length||o.some(function(e,n){return e!==t.state.groupsToRender[n]}))&&(this.setState({groupsToRender:o}),this.props.onVisibleGroupsChange())}},{key:"_isVisibleInViewport",value:function(e){return e+this._containerOffset.y>=this._lastPageYOffset&&e+this._containerOffset.y<=this._lastPageYOffset+window.innerHeight}},{key:"_findVisibleItems",value:function(){var e=this,t=[],n=[];return this.state.groupsToRender.forEach(function(r){for(var o=r.items,i=0;i<o.length;i++){var a=o[i];if("title"===a.type&&e._isVisibleInViewport(a.absoluteTop))for(var c=a.clusterIndexes.from;c<=a.clusterIndexes.to;c++){var s=e.props.items[c].id,u=a.absoluteTop;n.push({id:s,absoluteTop:u})}if("item"===a.type&&e._isVisibleInViewport(a.absoluteTop)){var l=a.index,f=l.clusterIndex,p=l.resourceIndex;if(e.props.items[f].items){var h=e.props.items[f].items[p];t.push({id:h&&h.id,absoluteTop:a.absoluteTop})}else t.push({clusterIndex:f,resourceIndex:p,absoluteTop:a.absoluteTop})}if(a.absoluteTop>=e._lastPageYOffset+window.innerHeight)return{clusters:n,items:t}}}),{clusters:n,items:t}}},{key:"_onWindowResize",value:function(){this._rebuild(!0)}},{key:"_onDocumentChange",value:function(){this._rebuild(!0)}},{key:"_checkIfScrolledToTheEnd",value:function(e,t){this.state.height-(e+t)<=0&&this.props.onScrollLimitReached()}},{key:"getGroups",value:function(e){return e?this.state.groupsToRender:this._grid.getGroups()}},{key:"_getGrid",value:function(){var e=this;if(!this._grid)return null;var t=this.state.groupsToRender.map(function(t){return e.props.renderGroup({geometry:{top:t.top,height:t.height},start:t.start,end:t.end,extraClusters:t.extraClusters,items:t.items,grid:e._grid})});return o.a.createElement("div",{className:Rc().e("groups")},t)}},{key:"_getAdditionalChildren",value:function(){return this._grid&&this.props.renderAdditionalChildren?this.props.renderAdditionalChildren({grid:this._grid,height:this.state.height,viewportHeight:this.state.viewportHeight,containerOffset:this._containerOffset}):null}},{key:"_gridContainerRef",value:function(e){this._gridContainer=e}},{key:"getContainerOffset",value:function(){return this._containerOffset}},{key:"render",value:function(){return o.a.createElement("div",{className:Rc(),style:{height:this.state.height+"px"},ref:this._gridContainerRef},this._getGrid(),this._getAdditionalChildren())}}]),n}();jc.propTypes={GridType:y.a.func.isRequired,gridOptions:y.a.object,renderGroup:y.a.func.isRequired,structureVersion:y.a.number.isRequired,onScrollLimitReached:y.a.func,renderAdditionalChildren:y.a.func};var Pc=function(){return null};jc.defaultProps={onScrollLimitReached:Pc,onVisibleGroupsChange:Pc,onBuildDone:Pc};var Cc=jc;function Tc(e){"@babel/helpers - typeof";return(Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ic(){return(Ic=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Dc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e){return function(){var t,n=zc(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=zc(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Tc(t)||"function"==typeof t))return t;return Mc(e)}(this,t)}}function Mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zc(e){return(zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lc(e,t){return(Lc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Nc=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lc(e,t)}(i,r.Component);var n=Ac(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return(t=n.call.apply(n,[this,e].concat(o))).state={wowColumns:0},t._onResizeDebounced=no()(t._maybeFetchLayoutAndUpdateWowColumns.bind(Mc(t)),250),t}return function(e,t,n){t&&Dc(e.prototype,t),n&&Dc(e,n)}(i,[{key:"componentDidMount",value:function(){this.props.photoView===wt.PHOTO_GRID_TYPES.WOW&&(this._maybeFetchLayoutAndUpdateWowColumns(),window.addEventListener("resize",this._onResizeDebounced))}},{key:"componentDidUpdate",value:function(e){this.props.photoView===wt.PHOTO_GRID_TYPES.WOW&&e.photoView!==wt.PHOTO_GRID_TYPES.WOW?(this._maybeFetchLayoutAndUpdateWowColumns(),window.addEventListener("resize",this._onResizeDebounced)):this.props.photoView!==wt.PHOTO_GRID_TYPES.WOW&&e.photoView===wt.PHOTO_GRID_TYPES.WOW&&window.removeEventListener("resize",this._onResizeDebounced)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._onResizeDebounced)}},{key:"_maybeFetchLayoutAndUpdateWowColumns",value:function(){var e=this,t=function(e,t){return e?t>440?10:6:t>=1366?12:10}(this.props.isMobile,window.innerWidth);uc(t)&&this.state.wowColumns===t||sc(t).then(function(){e.setState({wowColumns:t})})}},{key:"render",value:function(){return o.a.createElement(e,Ic({},this.props,{columns:this.state.wowColumns,isLayoutLoading:this.props.photoView===wt.PHOTO_GRID_TYPES.WOW&&!uc(this.state.wowColumns)}))}}]),i}();return t.propTypes={isMobile:y.a.bool.isRequired,photoView:y.a.oneOf([wt.PHOTO_GRID_TYPES.TILE,wt.PHOTO_GRID_TYPES.WOW])},t},Hc=(n(596),function(){return l()()("photo-grid-preview")}),Uc=function(e){var t=e.previewBaseUrl,n=e.width,r=e.height,i=e.originalWidth,a=e.originalHeight,c=e.style,s=e.isVideo,u=e.videoDuration,l=e.getHoursI18N,f=e.videoInfoStyle,p=(!i||i>=wt.PHOTO_GRID_COVER_THRESHOLD)&&(!a||a>=wt.PHOTO_GRID_COVER_THRESHOLD);return o.a.createElement(o.a.Fragment,null,o.a.createElement(Be,{previewBaseUrl:t,width:n,height:r,style:c,cover:p,className:Hc().m({video:Boolean(s)}),crop:!0,shouldRenderFallback:!0}),s?o.a.createElement("div",{className:Hc().e("video-info"),style:f},function(e,t){var n=e&&Math.floor(e/1e3);return void 0===n?"":n>=3600?t(Math.round(n/3600)):z()(n)}(u,l)):null)};n(597);function Bc(e){"@babel/helpers - typeof";return(Bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fc(e){return function(){var t,n=Wc(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Wc(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Bc(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gc(e,t){return(Gc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yc=function(){return l()()("public-grid-item-preview")},qc=function(e){var t=e.resource,n=e.height;return o.a.createElement("div",{className:Yc().e("overlay")},t.meta.hasPreview?null:o.a.createElement(k,{cls:Yc().e("icon").m({"with-bottom-shift":n>=201}),ext:t.meta.ext,mediatype:t.meta.mediatype,size:"l"}),o.a.createElement("div",{className:Yc().e("title")},t.name))},Kc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gc(e,t)}(n,r["Component"]);var t=Fc(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Vc(e.prototype,t),n&&Vc(e,n)}(n,[{key:"render",value:function(){var e=this.props,t=e.resource,n=e.width,r=e.height,i=e.originalWidth,a=e.originalHeight,c=e.onClick,s=e.setRef,u=e.style,l=["image","video"].includes(t.meta.mediatype);return o.a.createElement("div",{className:Yc(),title:t.name,style:u,onClick:c,ref:s},l||t.meta.hasPreview?o.a.createElement(Uc,{previewBaseUrl:t.meta.defaultPreview,width:n,height:r,originalWidth:i,originalHeight:a,isVideo:Object(Qr.a)(t)===wt.RESOURCE_VIEWS.VIDEO,videoDuration:t.meta.videoDuration,getHoursI18N:function(e){return Object(ee.i18n)("en","entities","ufo_hours_short",{hours:e})}}):null,l?null:o.a.createElement(qc,{resource:t,height:r}))}}]),n}();n(598);function Xc(e){"@babel/helpers - typeof";return(Xc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $c(e){return function(){var t,n=Qc(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Qc(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Xc(t)||"function"==typeof t))return t;return Jc(e)}(this,t)}}function Jc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qc(e){return(Qc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function es(e,t){return(es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ts=ni(Kc),ns=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&es(e,t)}(n,r["Component"]);var t=$c(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e))._renderItem=r._renderItem.bind(Jc(r)),r}return function(e,t,n){t&&Zc(e.prototype,t),n&&Zc(e,n)}(n,[{key:"_renderItem",value:function(e){var t={top:e.top+"px",left:e.left+"px",width:e.width+"px",height:e.height+"px"},n=this.props,r=n.clusters,i=n.onOpenResource,a=e.index,c=a.clusterIndex,s=a.resourceIndex,u=r[c].items[s];return o.a.createElement(ts,{id:u.id,key:c+"_"+s,resource:u,style:t,width:e.width,height:e.height,originalWidth:e.originalWidth,originalHeight:e.originalHeight,onOpen:i,openOnSingleClick:!0})}},{key:"render",value:function(){var e=this.props.geometry,t=e.top,n=e.height;return o.a.createElement("div",{className:l()()("public-grid-group"),style:{height:n+"px",top:t+"px"}},this.props.items.map(this._renderItem,this))}}]),n}();n(599);function rs(e){"@babel/helpers - typeof";return(rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function os(){return(os=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function as(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cs(e,t,n){return t&&as(e.prototype,t),n&&as(e,n),e}function ss(e){return function(){var t,n=ls(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ls(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===rs(t)||"function"==typeof t))return t;return us(e)}(this,t)}}function us(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ls(e){return(ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fs(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ps(e,t)}function ps(e,t){return(ps=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hs=Ri(Nc(function(e){fs(n,r["Component"]);var t=ss(n);function n(e){var r;return is(this,n),(r=t.call(this,e))._renderGroup=r._renderGroup.bind(us(r)),r._getGrid=r._getGrid.bind(us(r)),r._onOpenResource=r._onOpenResource.bind(us(r)),r}return cs(n,[{key:"_onOpenResource",value:function(e){this.props.openSlider(e,!0),Object(eo.b)(this.props.isAlbum,"click","file")}},{key:"_renderGroup",value:function(e){return o.a.createElement(ns,os({key:e.start.resourceIndex,clusters:this.props.clusters,onOpenResource:this._onOpenResource},e))}},{key:"_getGrid",value:function(){var e=this.props,t=e.columns,n=e.clusters,r=nc(t);return o.a.createElement(Cc,{GridType:ac,rebuildOnPropsChange:["structureVersion","columns"],gridOptions:{itemsMargin:2,renderGroups:3,itemsInGroup:20,scrollSpeedThreshold:5,columns:t,layouts:uc(t),noTitles:!0,coefficients:function(e){return nc(e)?{normalPhotoSize:8,normalSizeK:2,beautyK:6,sizeDiffK:40,photosInBlockK:.25,singlePhotoK:-1e5,fallbackGridItemK:-1e3,sameLayoutK:-1e3,sameLayoutPrevCount:4}:{normalPhotoSize:16,normalSizeK:10,beautyK:6,sizeDiffK:100,photosInBlockK:400,singlePhotoK:-1e5,fallbackGridItemK:-1e3,sameLayoutK:-1e3,sameLayoutPrevCount:4}}(t),maxPhotosInLayout:r?6:9,minWowClusterSize:r?6:9},structureVersion:this.props.structureVersion,columns:t,items:n,renderGroup:this._renderGroup,onScrollLimitReached:this.props.onScrollLimitReached,onVisibleGroupsChange:this.props.onVisibleGroupsChange})}},{key:"render",value:function(){var e=this.props,t=e.clusters,n=e.columns,r=null;return t.length>0&&n>0&&(r=this._getGrid()),r}}]),n}()),function(e,t){return e.clusters.length!==t.clusters.length}),ds=function(e){fs(n,r["Component"]);var t=ss(n);function n(e){var r;return is(this,n),(r=t.call(this,e))._fetchNextPortion=r._fetchNextPortion.bind(us(r)),r}return cs(n,[{key:"_fetchNextPortion",value:function(){this.props.fetchNextPortion(this.props.currentResource.id)}},{key:"render",value:function(){var e=this.props,t=e.clusters,n=e.structureVersion,r=e.currentResource,i=e.openSlider,a=e.isAlbum;return o.a.createElement("div",{className:l()()("public-grid")},o.a.createElement(hs,{isMobile:!1,photoView:wt.LISTING_TYPES.WOW,requestFetchNext:this._fetchNextPortion,clusters:t,structureVersion:n,openSlider:i,loading:r.loading,completed:r.completed,isAlbum:a}))}}]),n}(),ys=Object(c.b)(function(e){var t=e.photoGrid.structureVersion,n=Object(nr.a)(e);return{clusters:function(e){var t=e.resources,n=e.currentResourceId,r=e.photoGrid.byResource;return r[n]?r[n].clusters.map(function(e,n){return{id:n,size:e.length,items:e.map(function(e){return t[e]})}}):[]}(e),structureVersion:t,currentResource:n,isAlbum:Object(nr.d)(n)}},{fetchNextPortion:J.d,openSlider:Z.w})(ds),ms=n(76);n(600);function bs(e){"@babel/helpers - typeof";return(bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _s(e){return function(){var t,n=Os(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Os(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===bs(t)||"function"==typeof t))return t;return gs(e)}(this,t)}}function gs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Os(e){return(Os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ws(e,t){return(ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Es=function(){return l()()("action-buttons")},Ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ws(e,t)}(n,r["Component"]);var t=_s(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._saveButtonRef=null,e._actionButtonsRef=null,e._onSaveButtonClick=e._onSaveButtonClick.bind(gs(e)),e._onOpenInDiskClick=e._onOpenInDiskClick.bind(gs(e)),e._onDownloadButtonClick=e._onDownloadButtonClick.bind(gs(e)),e._forceUpdateOnDocumentChange=e._forceUpdateOnDocumentChange.bind(gs(e)),e._setActionButtonsRef=e._setActionButtonsRef.bind(gs(e)),e._setSaveButtonRef=e._setSaveButtonRef.bind(gs(e)),e.state={antiFileSharingTooltipVisible:!1},e}return function(e,t,n){t&&vs(e.prototype,t),n&&vs(e,n)}(n,[{key:"componentDidMount",value:function(){this.setState({antiFileSharingTooltipVisible:this.props.showAntiFileSharingTooltip}),this.props.showAntiFileSharingTooltip&&(document.addEventListener("documentchange",this._forceUpdateOnDocumentChange),document.addEventListener("visibilitychange",this._forceUpdateOnDocumentChange))}},{key:"componentWillUnmount",value:function(){document.removeEventListener("documentchange",this._forceUpdateOnDocumentChange),document.removeEventListener("visibilitychange",this._forceUpdateOnDocumentChange)}},{key:"_onSaveButtonClick",value:function(){this.setState({antiFileSharingTooltipVisible:!1}),Object(eo.f)("save")}},{key:"_onOpenInDiskClick",value:function(){Object(eo.f)("save status","goto Disk","from button")}},{key:"_onDownloadButtonClick",value:function(){Object(eo.f)("download")}},{key:"_getSaveButton",value:function(){return o.a.createElement(pr,{resourceId:this.props.resourceId,size:"n",theme:"raised",view:"default",toneOpen:"default",toneSave:"default",ref:this._setSaveButtonRef,hasIcon:this.props.hasIcons,cls:Es().e("button").m({save:!0}),onSaveClick:this._onSaveButtonClick,onOpenFileClick:this._onOpenInDiskClick})}},{key:"_getAntiFileSharingTooltip",value:function(){var e=this.props,t=e.selectedResources,n=e.isDirOrAlbum;return this.state.antiFileSharingTooltipVisible&&o.a.createElement(ms.a,{theme:"normal",size:"s",cls:Es().e("antifo-tooltip"),anchor:this._saveButtonRef,scope:n?this._actionButtonsRef:void 0,to:"right",visible:!(n&&t.length),zIndexGroupLevel:-1,mainOffset:20},n?o.a.createElement(Bn.a,{className:Es().e("antifo-tooltip-text"),keyset:"view-aside-public",loc:"ufo_warning_save_and_download_folder_blocked"}):o.a.createElement(Bn.a,{className:Es().e("antifo-tooltip-text"),keyset:"view-aside-public",loc:"ufo_warning_save_and_download_blocked"}))}},{key:"_getDownloadButton",value:function(){return o.a.createElement(Cr,{resourceId:this.props.resourceId,size:"n",theme:"raised",view:"default",tone:"default",hasIcon:this.props.hasIcons,cls:Es().e("button").m({download:!0}),onClick:this._onDownloadButtonClick})}},{key:"_setActionButtonsRef",value:function(e){this._actionButtonsRef=e}},{key:"_setSaveButtonRef",value:function(e){this._saveButtonRef=e}},{key:"_forceUpdateOnDocumentChange",value:function(){var e=this;"visible"===document.visibilityState&&requestAnimationFrame(function(){e.forceUpdate()})}},{key:"render",value:function(){return this.props.hideOnSliderOrPaneOpen&&(this.props.activePaneType||this.props.sliderResourceId)?null:o.a.createElement("div",{className:Es().m({wow:this.props.isWowPublic}),ref:this._setActionButtonsRef},this._getSaveButton(),this._getAntiFileSharingTooltip(),this._getDownloadButton())}}]),n}();Ss.propTypes={activePaneType:y.a.string,hasIcons:y.a.bool,resourceId:y.a.string,showAntiFileSharingTooltip:y.a.bool,hideOnSliderOrPaneOpen:y.a.bool,sliderResourceId:y.a.string,selectedResources:y.a.array};var ks=Object(c.b)(function(e,t){var n=t.hasAntiFileSharingTooltip,r=e.rootResourceId,o=e.overlays,i=o.activePane,a=o.sliderResourceId,c=e.resources,s=e.selectedResources;return{showAntiFileSharingTooltip:n&&Object(nr.j)(e),isDirOrAlbum:Object(nr.g)(c[r]),resourceId:r,activePaneType:i.type,sliderResourceId:a,selectedResources:s,isWowPublic:Object(ra.c)(e)}})(Ss);n(601);function xs(e){"@babel/helpers - typeof";return(xs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rs(){return(Rs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ps(e){return function(){var t,n=Ts(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ts(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===xs(t)||"function"==typeof t))return t;return Cs(e)}(this,t)}}function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ts(e){return(Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Is(e,t){return(Is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ds=function(){return l()()("folder-content")},As=function(){},Ms=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Is(e,t)}(n,r["Component"]);var t=Ps(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={contextMenu:{resourceId:e.props.rootResource.id,visible:!1,headerHeight:0}},e._onBackClick=e._onBackClick.bind(Cs(e)),e._getHeader=e._getHeader.bind(Cs(e)),e._setHeaderRef=e._setHeaderRef.bind(Cs(e)),e._onResizeDebounced=no()(e._updateHeaderHeight.bind(Cs(e)),250),e}return function(e,t,n){t&&js(e.prototype,t),n&&js(e,n)}(n,[{key:"componentDidMount",value:function(){this._updateHeaderHeight(),window.addEventListener("resize",this._onResizeDebounced);var e=[];this.props.isWowPublic&&!this.props.isAlbum&&e.push(this.props.rootResource.containsOnlyImageAndVideo?"photo & video":"mixed"),eo.b.apply(void 0,[this.props.isAlbum,"show"].concat(e,[this.props.listingType]))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._onResizeDebounced)}},{key:"_updateHeaderHeight",value:function(){this._headerRef&&this.setState({headerHeight:this._headerRef.clientHeight})}},{key:"_onBackClick",value:function(){this.props.setCurrentResource(this.props.currentResource.parent),Object(eo.b)(this.props.isAlbum,"click","back")}},{key:"_getContent",value:function(){var e=this.props,t=e.listingType,n=e.isEmpty,r=e.isAlbum,i=e.isWowPublic;if(n&&i){var a=r?Object(ee.i18n)("en","entity-resource","ufo_album_has_no_files"):Object(ee.i18n)("en","entity-resource","ufo_folder_has_no_files");return o.a.createElement("div",{className:Ds().e("empty")},a)}return t===wt.LISTING_TYPES.WOW?o.a.createElement(ys,null):o.a.createElement(La,null)}},{key:"_setHeaderRef",value:function(e){this._headerRef=e}},{key:"_getHeader",value:function(){var e=this.props,t=e.listingType,n=e.isWowPublic,r=e.isAlbum,i=e.isRoot,a=e.currentResource,c=e.isSmartphone,u=e.isAndroid,l=e.isMsieOrEdge,f=!i;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ds().e("header").m({"short-name":n&&a.name.length<=16}),ref:this._setHeaderRef},n&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ds().e("header-name")},!i&&o.a.createElement(x.a,{theme:"clear-black",onClick:f?this._onBackClick:As,size:"l",cls:Ds().e("back-button")},o.a.createElement(yi.a,null)),o.a.createElement("h1",null,a.name)),o.a.createElement("div",{className:Ds().e("buttons")},o.a.createElement(ks,{hasIcons:!0,hasAntiFileSharingTooltip:!0}),(!c||r&&u)&&o.a.createElement(s,{listingType:t}))),!n&&o.a.createElement(s,{listingType:t}),!n&&o.a.createElement(o.a.Fragment,null,o.a.createElement(di,Rs({cls:Ds().e("current").m({root:Boolean(i)}),modifier:"current",theme:"row",resourceRef:As},a,{noIcon:r,iconType:f?"back":"gray",onSelect:f?this._onBackClick:As,onOpen:f?this._onBackClick:As})),o.a.createElement(ks,{hasIcons:!0,hasAntiFileSharingTooltip:!0}))),!c&&!l&&o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:Ds().e("header-shadow"),style:{top:this.state.headerHeight-1+"px"}}),o.a.createElement("div",{className:Ds().e("header-shadow-overlay")})))}},{key:"render",value:function(){return o.a.createElement("div",{className:Ds().m({wow:this.props.isWowPublic,"android-album":this.props.isAlbum&&this.props.isAndroid}).mix(this.props.cls||"")},this._getHeader(),this._getContent(),o.a.createElement(vo,{enabledGestures:this.props.isMobile?[zn.SWIPE_TO_CLOSE,zn.SWIPE_TO_CHANGE,zn.DOUBLE_TAP_TO_ZOOM,zn.PINCH_TO_ZOOM,zn.MOVE_ZOOMED]:[zn.MOVE_ZOOMED,zn.WHEEL_TO_ZOOM]}))}}]),n}(),zs=Object(c.b)(function(e){var t=e.ua,n=t.isMobile,r=t.isSmartphone,o=t.OSFamily,i=e.resources,a=e.currentResourceId,c=e.rootResourceId,s=i[c],u=i[a];return{isMobile:n,isSmartphone:r,isAndroid:"Android"===o,isRoot:a===c,rootResource:s,currentResource:na(e),allResources:i,isWowPublic:Object(ra.c)(e),listingType:Object(ra.a)(e),isEmpty:u.completed&&!u.children.length,isAlbum:Object(nr.d)(s),isMsieOrEdge:Object(oa.a)(e)}},{setCurrentResource:J.g})(Ms),Ls=n(32),Ns=function(){var e;"function"==typeof Event?e=new Event("documentchange"):(e=document.createEvent("HTMLevents")).initEvent("documentchange",!0,!0),document.dispatchEvent(e)};n(602);function Hs(e){"@babel/helpers - typeof";return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bs(e){return function(){var t,n=Fs(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Fs(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hs(t)||"function"==typeof t))return t;return Vs(e)}(this,t)}}function Vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fs(e){return(Fs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ws(e,t){return(Ws=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Gs=function(){return l()()("content")},Ys=function(e){return Object(eo.f)("audio player",e)},qs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ws(e,t)}(n,r["Component"]);var t=Bs(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={hideToolbar:!1,slider:!1},r._onVideoPlaybackStateChange=r._onVideoPlaybackStateChange.bind(Vs(r)),r}return function(e,t,n){t&&Us(e.prototype,t),n&&Us(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.view===wt.RESOURCE_VIEWS.VIDEO&&Object(eo.m)("show"),this.props.virus&&this.props.notify({mode:te.c.ERROR_TEXT,text:Object(ee.i18n)("en","entity-resource","ufo_resource__virused")})}},{key:"render",value:function(){switch(this.props.view){case wt.RESOURCE_VIEWS.DIR:case wt.RESOURCE_VIEWS.ALBUM:return o.a.createElement(zs,{cls:Gs().m({other:!0,dir:!0,"with-mobile-bottom-direct":this.props.withMobileBottomDirect,"wow-public":this.props.isWowPublic})});case wt.RESOURCE_VIEWS.VIDEO:return this._getVideo();case wt.RESOURCE_VIEWS.IMAGE:return this._getImage();default:return this._getAudioOrDocument()}}},{key:"_getPreviewAndName",value:function(){var e=this.props,t=e.isMobile,n=e.name,r=e.resourceId,i=e.canOpenInDV,a=e.openDV,c=!t&&i,s=function(){Object(eo.f)("open in DV"),a(r)};return[c?o.a.createElement(le.a,{cls:Gs().e("hover"),target:"_blank",theme:"normal",onClick:s,key:"hover"}):null,o.a.createElement("div",{className:Gs().e("preview-wrapper"),key:"preview"},c?o.a.createElement(x.a,{theme:"raised",size:"n",view:"default",tone:"default",pin:"circle-circle",cls:Gs().e("view-button"),onClick:s},o.a.createElement(Bn.a,{keyset:"actions",loc:"ufo_resource_view"})):null,o.a.createElement(je,{resourceId:r})),o.a.createElement(f,{name:n,key:"filename"})]}},{key:"_getAudioOrDocument",value:function(){var e=this.props,t=e.view,n=e.resourceId;return o.a.createElement("div",{className:Gs().m({other:!0,"with-mobile-bottom-direct":this.props.withMobileBottomDirect})},o.a.createElement(s,null),o.a.createElement("div",{className:Gs().e("centered")},o.a.createElement("div",{className:Gs().e("hover-wrapper")},"audio"===t?o.a.createElement(ue,{resourceId:n,detectPlayability:!0,countMetrika:Ys}):this._getPreviewAndName()),o.a.createElement(ks,{hasIcons:!0,hasAntiFileSharingTooltip:!0})))}},{key:"_getImage",value:function(){var e,t=this.props,n=t.withMobileBottomDirect,r=t.noAdv,i=this.props,a=i.isMobile,c=i.resourceId,u=i.xxxlPreview,l=i.defaultPreview,p=i.previewLoadFailed,h=i.openSlider,d=i.name,y=function(){return h(c)};return e=[o.a.createElement("div",{className:Gs().e("image-wrapper").m({"preview-failed":p}),key:"preview"},o.a.createElement("div",{className:Gs().e("gradient"),onClick:y}),o.a.createElement(_e,{resourceId:c,className:Gs().e("image-preview"),src:a?u:l+"&size=2048x2048",onClick:y}),o.a.createElement(s,null)),o.a.createElement(f,{key:"filename",name:d}),o.a.createElement(ks,{hasIcons:!0,key:"action-buttons",hasAntiFileSharingTooltip:!0}),this._getSingleResourceSlider()],o.a.createElement("div",{className:Gs().m({image:!0,"with-mobile-bottom-direct":n,ads:!r})},e)}},{key:"_getVideo",value:function(){var e,t=this.props,n=t.resourceId,r=t.name,i=t.isSmartphone,a=t.withMobileBottomDirect,c=t.noAdv,u=i?"width":"height";return e=[o.a.createElement(h.a,{key:"video",fitTo:u,cls:Gs().e("video-player").m({"fit-to":u}),resourceId:n,onPlaybackStateChange:this._onVideoPlaybackStateChange,toolbar:[o.a.createElement("div",{key:"gradient",className:Gs().e("gradient")}),o.a.createElement(s,{key:"toolbar"})],onPlayerResize:Ns,displayType:"preview"}),o.a.createElement(f,{key:"filename",name:r}),o.a.createElement(ks,{hasIcons:!0,key:"action-buttons",hasAntiFileSharingTooltip:!0})],o.a.createElement("div",{className:Gs().m({video:!0,"hide-toolbar":this.state.hideToolbar,"with-mobile-bottom-direct":a,ads:!c})},e)}},{key:"_getSingleResourceSlider",value:function(){var e=this.props.isMobile,t={key:"slider",enabledGestures:e?[zn.DOUBLE_TAP_TO_ZOOM,zn.PINCH_TO_ZOOM,zn.MOVE_ZOOMED]:[zn.MOVE_ZOOMED,zn.WHEEL_TO_ZOOM]};return e&&t.enabledGestures.push(zn.SWIPE_TO_CLOSE),o.a.createElement(vo,t)}},{key:"_onVideoPlaybackStateChange",value:function(e){this.state.hideToolbar!==e&&this.setState({hideToolbar:e}),e&&Object(eo.m)("play")}}]),n}(),Ks=Object(c.b)(function(e){var t=e.ua,n=t.isMobile,r=t.isSmartphone,o=e.environment.noAdv,i=e.resources,a=e.rootResourceId,c=i[a],s=c.meta,u=s.xxxlPreview,l=s.defaultPreview,f=s.previewLoadFailed,p=c.name,h=c.dvSearch,d=c.virus;return{isMobile:n,isSmartphone:r,resourceId:a,withMobileBottomDirect:Object(Ls.a)(e)&&Object(Ls.b)(e),virus:d,xxxlPreview:u,defaultPreview:l,previewLoadFailed:f,canOpenInDV:!!h,name:p,noAdv:o,isWowPublic:Object(ra.c)(e)}},{openSlider:Z.w,openDV:Z.o,notify:Q.c})(qs);n(603);var Xs=function(){return l()()("error")},Zs=function(e){var t=e.cls,n=e.errorType,r=e.title,i=e.description,a=e.linkComponent,c=e.directComponent;return o.a.createElement("div",{className:Xs().mix(t)},o.a.createElement("div",{className:Xs().e("icon").m(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,!0))}),r?o.a.createElement("div",{className:Xs().e("title")},r):null,o.a.createElement("div",{className:Xs().e("description")},i),a,c)};Zs.propTypes={cls:y.a.object,errorType:y.a.oneOf(["blocked","broken-link","warning"]).isRequired,title:y.a.oneOfType([y.a.string,y.a.object]),description:y.a.oneOfType([y.a.string,y.a.object]).isRequired,linkComponent:y.a.element,directComponent:y.a.element};var $s=Zs;n(604);function Js(e){"@babel/helpers - typeof";return(Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eu(e){return function(){var t,n=tu(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=tu(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Js(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function tu(e){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nu(e,t){return(nu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ru=n(106).default,ou=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nu(e,t)}(n,r["Component"]);var t=eu(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Qs(e.prototype,t),n&&Qs(e,n)}(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.errorCode,n=e.blocked?"blocked":404===t?"removed":t;Object(eo.f)("error",n)}},{key:"render",value:function(){var e,t,n,r=this.props,i=r.errorCode,a=r.blocked,c=r.legal,s=r.noAdv,u=r.isMobile,f=404===i;return a?(e="blocked",t=o.a.createElement(Bn.a,{keyset:"public-error-pages",loc:"ufo_blocked__caption"}),n=o.a.createElement(Bn.a,{keyset:"public-error-pages",loc:"ufo_blocked__description"})):f?(e="broken-link",t=o.a.createElement(Bn.a,{keyset:"public-error-pages",loc:"ufo_not_found__caption"}),n=o.a.createElement(Bn.a,{keyset:"public-error-pages",loc:"ufo_not_found__description"})):(e="warning",n=o.a.createElement(Bn.a,{keyset:"public-error-pages",loc:"ufo_error_server"})),o.a.createElement($s,{cls:l()()("error-page"),errorType:e,title:t,description:n,linkComponent:a?o.a.createElement(le.a,{target:"_blank",theme:"normal",url:c+"/ugc_takedown/",rel:"noopener noreferrer"},o.a.createElement(Bn.a,{keyset:"view-aside-public",loc:"ufo_aside_public_blocked_about"})):null,directComponent:s||u?null:o.a.createElement(ru,{view:wt.RESOURCE_VIEWS.ERROR,position:"bottom"})})}}]),n}(),iu=Object(c.b)(function(e){var t=e.resources,n=e.rootResourceId,r=e.services.legal,o=e.environment.noAdv,i=e.ua.isMobile,a=t[n];return{errorCode:a.errorCode,blocked:a.blocked,legal:r,noAdv:o,isMobile:i}})(ou);n(607);function au(e){"@babel/helpers - typeof";return(au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function su(e){return function(){var t,n=lu(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=lu(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===au(t)||"function"==typeof t))return t;return uu(e)}(this,t)}}function uu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lu(e){return(lu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e,t){return(fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var pu=function(){return l()()("pane")},hu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fu(e,t)}(n,r["Component"]);var t=su(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._pane=null,e._callOpenOnTransitionEnd=!1,e._callCloseOnTransitionEnd=!1,e._onTransitionEnd=e._onTransitionEnd.bind(uu(e)),e}return function(e,t,n){t&&cu(e.prototype,t),n&&cu(e,n)}(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.active!==this.props.active&&(e.active?this._callOpenOnTransitionEnd=!0:this._callCloseOnTransitionEnd=!0)}},{key:"_onTransitionEnd",value:function(e){e.target===this._pane&&(this._callOpenOnTransitionEnd&&(this.props.onOpen(),this._callOpenOnTransitionEnd=!1),this._callCloseOnTransitionEnd&&(this.props.onClose(),this._callCloseOnTransitionEnd=!1))}},{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:pu().m({type:this.props.type,active:this.props.active,scrollable:this.props.scrollable}),onTransitionEnd:this._onTransitionEnd,ref:function(t){e._pane=t}},"open-app"===this.props.type?null:o.a.createElement("div",{className:pu().e("head")},o.a.createElement("div",{className:pu().e("title")},this.props.title),o.a.createElement(x.a,{cls:pu().e("close-button"),theme:"clear",size:"m",onClick:this.props.requestClose},o.a.createElement(Tr.a,null))),o.a.createElement("div",{className:pu().e("content")},this.props.children))}}]),n}();n(608);function du(e){"@babel/helpers - typeof";return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mu(e){return function(){var t,n=bu(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=bu(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===du(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function bu(e){return(bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vu(e,t){return(vu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _u=function(){return l()()("info-pane")},gu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vu(e,t)}(n,r["Component"]);var t=mu(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&yu(e.prototype,t),n&&yu(e,n)}(n,[{key:"componentDidMount",value:function(){Object(eo.e)("show")}},{key:"componentWillUnmount",value:function(){Object(eo.e)("close")}},{key:"render",value:function(){var e=this.props,t=e.isMobile,n=e.resource,r=e.owner,i=e.isFromTopbar,a=n.name,c=n.modified,s=n.meta,u=s.size,l=s.files_count,f=s.views_counter,p=s.download_counter,h=s.drweb,d=s.etime,y=Object(ee.i18n)("en","lists","sizes").split("|"),m=Xi.a.getSpaceString(u,y,Object(ee.i18n)("en","entities","ufo_number_separator")),b=$i()(1e3*c,Object(ee.i18n)("en","entities","ufo_format_date-month-year-time")),v=d&&$i()(1e3*d,Object(ee.i18n)("en","entities","ufo_format_date-month-year-time")),_=Object(Qr.a)(n)===wt.RESOURCE_VIEWS.DIR;return o.a.createElement("div",{className:_u().m({tooltip:i&&!t})},i&&t&&o.a.createElement("div",{className:_u().e("title")},Object(nr.b)(n)),o.a.createElement("div",{className:_u().e("row").m({name:!0})},o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__name"}),":",o.a.createElement("span",{className:_u().e("value")},a)),r?o.a.createElement("div",{className:_u().e("row").m({owner:!0})},o.a.createElement(Bn.a,{keyset:"entities",loc:"ufo_owner"}),":",o.a.createElement("span",{className:_u().e("value")},r)):null,u||0===u?o.a.createElement("div",{className:_u().e("row").m({size:!0})},o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__property_size"}),":",o.a.createElement("span",{className:_u().e("value")},m)):null,l||0===l?o.a.createElement("div",{className:_u().e("row").m({"file-count":!0})},o.a.createElement(Bn.a,{keyset:"view-aside",loc:"ufo_aside__files_count"}),":",o.a.createElement("span",{className:_u().e("value")},l)):null,o.a.createElement("div",{className:_u().e("row").m({modified:!0})},_?o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_folder__property_mtime"}):o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__property_mtime"}),":",o.a.createElement("span",{className:_u().e("value")},b)),d?o.a.createElement("div",{className:_u().e("row").m({etime:!0})},o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__property_etime"}),":",o.a.createElement("span",{className:_u().e("value")},v)):null,f||0===f?o.a.createElement("div",{className:_u().e("row").m({views:!0})},o.a.createElement(Bn.a,{keyset:"view-public",loc:"ufo_views"}),":",o.a.createElement("span",{className:_u().e("value")},f)):null,p||0===p?o.a.createElement("div",{className:_u().e("row").m({downloads:!0})},_?o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__property_download_folder"}):o.a.createElement(Bn.a,{keyset:"entity-resource",loc:"ufo_resource__property_download_file"}),":",o.a.createElement("span",{className:_u().e("value")},o.a.createElement(Bn.a,{keyset:"entities",loc:"ufo_n_times",count:p}))):null,1===h?o.a.createElement("div",{className:_u().e("row").m({virus:!0})},o.a.createElement(Bn.a,{keyset:"view-aside-public",loc:"ufo_drweb_ok"})):null)}}]),n}(),Ou=Object(c.b)(function(e,t){var n=e.ua.isMobile,r=e.rootResourceId,o=e.resources,i=e.users,a=t.resourceId,c=o[a];return{isMobile:n,resource:c,owner:r===a?i[c.uid].displayName:""}})(gu);n(609);function wu(e){"@babel/helpers - typeof";return(wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Su(e){return function(){var t,n=xu(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=xu(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===wu(t)||"function"==typeof t))return t;return ku(e)}(this,t)}}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e){return(xu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ru(e,t){return(Ru=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ju=function(){return l()()("panes")},Pu={CLOSED:"CLOSED",OPENING:"OPENING",OPENED:"OPENED",CLOSING:"CLOSING"},Cu={"file-info":{title:function(e){return Object(nr.b)(e)},scrollable:!0,content:function(e,t){return o.a.createElement(Ou,{resourceId:t.id})}}},Tu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ru(e,t)}(n,r["Component"]);var t=Su(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={paneState:Pu.CLOSED},e._overlayClickEnabled=!1,e._onOpenPane=e._onOpenPane.bind(ku(e)),e._onClosePane=e._onClosePane.bind(ku(e)),e._onRequestClosePane=e._onRequestClosePane.bind(ku(e)),e}return function(e,t,n){t&&Eu(e.prototype,t),n&&Eu(e,n)}(n,[{key:"componentDidUpdate",value:function(e){var t=this;this.props.paneType!==e.paneType&&(document.body.classList.toggle("has-overlay",Boolean(this.props.paneType)),setTimeout(function(){t.setState({paneState:Boolean(t.props.paneType)?Pu.OPENING:Pu.CLOSING})}))}},{key:"_onRequestClosePane",value:function(){this._overlayClickEnabled&&(this.setState({paneState:Pu.CLOSING}),this._overlayClickEnabled=!1)}},{key:"_onClosePane",value:function(){var e=Cu[this.props.paneType];this.setState({paneState:Pu.CLOSED}),e.onClose&&e.onClose(this.props),this.props.closePane()}},{key:"_onOpenPane",value:function(){this._overlayClickEnabled=!0,this.setState({paneState:Pu.OPENED})}},{key:"_getPane",value:function(){var e=this.props,t=e.paneType,n=e.resource;if(Boolean(t)){var r=Cu[t];return o.a.createElement(hu,{type:t,active:[Pu.OPENING,Pu.OPENED].includes(this.state.paneState),scrollable:r.scrollable,title:r.title&&r.title(n),requestClose:this._onRequestClosePane,onOpen:this._onOpenPane,onClose:this._onClosePane},r.content(this.state.paneState,n))}return null}},{key:"render",value:function(){return o.a.createElement("div",{className:ju().m({active:Boolean(this.props.paneType)})},o.a.createElement("div",{className:ju().e("overlay").m({visible:[Pu.OPENING,Pu.OPENED].includes(this.state.paneState)}),onClick:this._onRequestClosePane}),this._getPane())}}]),n}(),Iu=Object(c.b)(function(e){var t=e.resources,n=e.overlays.activePane,r=n.type,o=n.resourceId;return{paneType:r,resource:o?t[o]:null}},{closePane:Z.k,removeQueryParams:Z.y})(Tu),Du=n(49);n(610);function Au(e){"@babel/helpers - typeof";return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zu(e){return function(){var t,n=Nu(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Nu(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Au(t)||"function"==typeof t))return t;return Lu(e)}(this,t)}}function Lu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nu(e){return(Nu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hu(e,t){return(Hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Uu=function(){return l()()("dialog")},Bu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hu(e,t)}(n,r["Component"]);var t=zu(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={top:null},r._textInputs=[],r._setRef=r._setRef.bind(Lu(r)),r._setTop=r._setTop.bind(Lu(r)),r}return function(e,t,n){t&&Mu(e.prototype,t),n&&Mu(e,n)}(n,[{key:"componentDidMount",value:function(){var e=this;this.props.isIosSafari&&this.props.visible&&requestAnimationFrame(function(){e._bindIosSafariHandlers()})}},{key:"componentDidUpdate",value:function(e){this.props.isIosSafari&&this.props.visible!==e.visible&&this._bindIosSafariHandlers()}},{key:"_bindIosSafariHandlers",value:function(){var e=this;this.props.visible?(this._setTop(),window.addEventListener("resize",this._setTop),this._popupElement&&this._popupElement.current&&(this._textInputs=Array.prototype.slice.call(this._popupElement.current.querySelectorAll(".textinput__control"),0),this._textInputs.forEach(function(t){t.addEventListener("blur",e._setTop)}))):(window.removeEventListener("resize",this._setTop),this._textInputs.forEach(function(t){t.removeEventListener("blur",e._setTop)}))}},{key:"_setTop",value:function(){this.setState({top:(document.scrollingElement||document.documentElement).scrollTop})}},{key:"_setRef",value:function(e){var t=this.props.modalRef;this._popupElement=e&&e.containerRef,"function"==typeof t&&t(this._popupElement)}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.visible,r=e.children,i=e.isIosSafari,a=e.cls,c=e.zIndexGroupLevel,s=e.noCloseButton,u=e.onClose;return o.a.createElement(Du.a,{cls:Uu().m({"ios-safari":i}).mix(a),theme:this.props.theme,onClose:this.props.preventCloseOnOutsideClick?void 0:u,visible:n,autoclosable:!0,setRef:this._setRef,zIndexGroupLevel:c,isIosSafari:i,style:i?{top:(this.state.top||0)+"px"}:{}},o.a.createElement("div",{className:Uu().e("wrap")},t?o.a.createElement("div",{className:Uu().e("title")},t):null,s?null:o.a.createElement(x.a,{theme:"clear",size:"s",cls:Uu().e("close"),onClick:u},o.a.createElement(Tr.a,null)),o.a.createElement("div",{className:Uu().e("body")},r)))}}]),n}();Bu.propTypes={title:y.a.oneOfType([y.a.string,y.a.element]),visible:y.a.bool.isRequired,isIosSafari:y.a.bool,onClose:y.a.func,modalRef:y.a.func,zIndexGroupLevel:y.a.number,preventCloseOnOutsideClick:y.a.bool,theme:y.a.string,noCloseButton:y.a.bool},Bu.defaultProps={theme:"normal",visible:!1,onClose:function(){}};var Vu=Bu;n(611);function Fu(e){"@babel/helpers - typeof";return(Fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wu(){return(Wu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yu(e){return function(){var t,n=Ku(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ku(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Fu(t)||"function"==typeof t))return t;return qu(e)}(this,t)}}function qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ku(e){return(Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xu(e,t){return(Xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zu=function(){return l()()("confirmation-dialog")},$u={view:"default",tone:"default",theme:"raised",size:"n"},Ju=Object.assign({action:!0},$u),Qu=function(e){return"_".concat(e,"Ref")},el=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xu(e,t)}(n,r["Component"]);var t=Yu(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onShow=r._onShow.bind(qu(r)),r}return function(e,t,n){t&&Gu(e.prototype,t),n&&Gu(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.visible&&this._onShow()}},{key:"componentDidUpdate",value:function(e){!e.visible&&this.props.visible&&this._onShow()}},{key:"_onShow",value:function(){var e=this;document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this.props.autofocusButton&&requestAnimationFrame(function(){var t=Qu(e.props.actionButton);e[t]&&!e[t].control.disabled&&e[t].control.focus()})}},{key:"_setButtonRef",value:function(e,t){this[Qu(e)]=t}},{key:"render",value:function(){var e=this.props,t=e.submitButtonText,n=e.submitDisabled,r=e.extraButtonText,i=e.cancelButtonText,a=e.actionButton,c=e.progress,s=e.children,u=e.onSubmit,l=e.onExtraButtonClick,f=e.onCancel,p=this.props.submitButtonProps||("submit"===a?Ju:$u),h=this.props.extraButtonProps||("extra"===a?Ju:$u),d=this.props.cancelButtonProps||("cancel"===a?Ju:$u);return o.a.createElement(Vu,Wu({},this.props,{cls:Zu().mix(this.props.cls||"")}),o.a.createElement("div",{className:Zu().e("content")},s),o.a.createElement("div",{className:Zu().e("footer")},i?o.a.createElement(x.a,Wu({ref:this._setButtonRef.bind(this,"cancel")},Object.assign({onClick:f,disabled:c,cls:Zu().e("button").m({cancel:!0}).mix(d.cls||"")},d)),i):null,r?o.a.createElement(x.a,Wu({ref:this._setButtonRef.bind(this,"extra")},Object.assign({onClick:l,cls:Zu().e("button").m({extra:!0}).mix(h.cls||"")},h)),r):null,t?o.a.createElement(x.a,Wu({ref:this._setButtonRef.bind(this,"submit")},Object.assign({onClick:u,progress:c,disabled:n,cls:Zu().e("button").m({submit:!0}).mix(p.cls||"")},p)),t):null))}}]),n}();el.propTypes=Object.assign({},Vu.propTypes,{submitButtonText:y.a.string,submitButtonProps:y.a.object,extraButtonText:y.a.string,extraButtonProps:y.a.object,cancelButtonText:y.a.string,cancelButtonProps:y.a.object,actionButton:y.a.oneOf(["submit","cancel","extra","none"]),autofocusButton:y.a.bool,progress:y.a.bool,submitDisabled:y.a.bool,onSubmit:y.a.func,onExtraButtonClick:y.a.func,onCancel:y.a.func}),el.defaultProps=Object.assign({},Vu.defaultProps,{actionButton:"submit",autofocusButton:!0,onExtraButtonClick:go.a,onSubmit:go.a,onCancel:go.a});var tl=el;n(612);function nl(e){"@babel/helpers - typeof";return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ol(e){return function(){var t,n=al(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=al(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===nl(t)||"function"==typeof t))return t;return il(e)}(this,t)}}function il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function al(e){return(al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cl(e,t){return(cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sl=function(){return l()()("virus-download-dialog")},ul=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cl(e,t)}(n,r["Component"]);var t=ol(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onCloseVirusPopup=e._onCloseVirusPopup.bind(il(e)),e._onSubmit=e._onSubmit.bind(il(e)),e}return function(e,t,n){t&&rl(e.prototype,t),n&&rl(e,n)}(n,[{key:"_onCloseVirusPopup",value:function(){this.props.closeDownloadVirusDialog()}},{key:"_onSubmit",value:function(){var e=this.props,t=e.download,n=e.downloadVirusFileId,r=e.closeDownloadVirusDialog;t(n),r()}},{key:"render",value:function(){return this.props.downloadVirusFileId?o.a.createElement(tl,{cls:sl(),title:Object(ee.i18n)("en","view-confirmation","ufo_conf_virused_file_title"),submitButtonText:Object(ee.i18n)("en","actions","ufo_download"),submitButtonProps:{size:"n",theme:"raised"},cancelButtonText:Object(ee.i18n)("en","actions","ufo_cancel"),cancelButtonProps:{size:"n",theme:"raised"},actionButton:"none",onSubmit:this._onSubmit,onCancel:this._onCloseVirusPopup,onClose:this._onCloseVirusPopup,visible:!0},o.a.createElement("div",{className:sl().e("body")},o.a.createElement("div",{className:sl().e("image")},o.a.createElement(k,{size:"l",type:"virus"})),o.a.createElement("div",{className:sl().e("description")},Object(ee.i18n)("en","view-confirmation","ufo_conf_download_virused_file")))):null}}]),n}(),ll=Object(c.b)(function(e){return{downloadVirusFileId:e.overlays.downloadVirusFileId}},{download:$.a,closeDownloadVirusDialog:Z.j})(ul),fl=n(74),pl=n(75),hl=!0,dl=function(){hl=!1},yl=function(){var e=document.getElementById("url-scheme-iframe");return e||((e=document.createElement("iframe")).id="url-scheme-iframe",e.style.display="none",document.body.appendChild(e)),e},ml=function(e,t){return hl=!0,window.addEventListener("blur",dl),new Promise(function(n){if(t){var r=yl();r.contentWindow&&r.contentWindow.location.assign(e)}else window.location.assign(e);setTimeout(function(){n({info:!0,hasApp:!hl}),window.removeEventListener("blur",dl)},2e3)})},bl=function(e){var t=yl();return t.contentWindow&&t.contentWindow.location.assign(e),new Promise(function(e){setTimeout(function(){e({info:!1})},5e3)})};var vl=function(e,t,n){return"Firefox"===t?bl(e):ml(e,n)},_l=n(261),gl=n.n(_l),Ol=n(107);n(613);function wl(e){"@babel/helpers - typeof";return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sl(e){return function(){var t,n=xl(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=xl(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===wl(t)||"function"==typeof t))return t;return kl(e)}(this,t)}}function kl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xl(e){return(xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var jl=function(){return l()()("download-big-folder-dialog")},Pl=function(){},Cl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rl(e,t)}(n,r["Component"]);var t=Sl(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];(r=t.call.apply(t,[this,e].concat(i)))._onClose=r._onClose.bind(kl(r)),r._onDownloadApp=r._onDownloadApp.bind(kl(r)),r._onLinkAboutAppClick=r._onLinkAboutAppClick.bind(kl(r)),r.state={checked:!1};var c=["YandexBrowser","Chrome"].includes(r.props.browserName),s="Windows"===r.props.osFamily;return r._tryDownloadWithApp=s&&c,r._osHasApp=["Windows","MacOS"].includes(r.props.osFamily),r._title=r.props.title,r._tryDownloadWithApp&&(r._title=r.props.titleTryDownload),r._description=r.props.description,r._tryDownloadWithApp?r._description=r.props.descriptionTryDownload:r._osHasApp&&(r._description=r.props.descriptionOsHasApp),r._buttonText=r.props.buttonText,"Windows"===r.props.osFamily&&(r._buttonText=r.props.buttonTextWindows),r}return function(e,t,n){t&&El(e.prototype,t),n&&El(e,n)}(n,[{key:"componentDidMount",value:function(){var e=this,t="without buttons";if(this._tryDownloadWithApp?t="with loader":this._osHasApp&&(t="download through app"),this.props.countMetrika("open popup",t),this._tryDownloadWithApp){var n=this.props.getDownloadUrlScheme(this.props.folderId);this._timerGoToCustomUrlScheme=setTimeout(function(){e.props.countMetrika("try open url scheme"),n.then(function(t){e._promiseGoToCustomUrlScheme=gl()(vl(t,e.props.browserName)),e._promiseGoToCustomUrlScheme.promise.then(function(t){t.info?e.setState({checked:!0,info:!0,hasApp:t.hasApp}):e.setState({checked:!0,info:!1}),e.props.countMetrika(t.info?t.hasApp?"successed open url scheme":"failed open url scheme":"could not check url scheme")}).catch(function(){})})},2e3)}}},{key:"componentWillUnmount",value:function(){this._timerGoToCustomUrlScheme&&clearTimeout(this._timerGoToCustomUrlScheme),this._promiseGoToCustomUrlScheme&&this._promiseGoToCustomUrlScheme.cancel()}},{key:"_onClose",value:function(){this.props.onClose()}},{key:"_onDownloadApp",value:function(){this.props.getLinkApp("Windows"===this.props.osFamily?{downloadFolder:this.props.folderId}:{}).then(function(e){Object(Ol.a)(e)}),this.props.countMetrika("click download app",this.props.osFamily),this.props.onClose()}},{key:"_getButtons",value:function(){if(!["Windows","MacOS"].includes(this.props.osFamily))return null;var e="Windows"===this.props.osFamily?fl.a:pl.a;return o.a.createElement(x.a,{cls:jl().e("button"),view:"default",tone:"default",theme:!this._tryDownloadWithApp||this.state.checked&&(!this.state.checked||!this.state.hasApp&&this.state.info)?"action":"raised",size:"n",onClick:this._onDownloadApp},o.a.createElement(e,{key:"icon",iconSize:"m"}),this._buttonText)}},{key:"_getSpinner",value:function(){return!this._tryDownloadWithApp||this.state.checked?null:o.a.createElement(Ot.a,{progress:!0,size:"xxs"})}},{key:"_getLinkAboutApp",value:function(){return this._tryDownloadWithApp||!this._osHasApp?null:o.a.createElement(le.a,{target:"_blank",theme:"normal",url:this.props.linkAboutApp,onClick:this._onLinkAboutAppClick},this.props.linkAboutAppText)}},{key:"_onLinkAboutAppClick",value:function(){this.props.countMetrika("click link about app")}},{key:"_getDescription",value:function(){var e=this._description;return this._tryDownloadWithApp&&this.state.checked&&(this.state.info?this.state.hasApp||(e=this.props.descriptionNoApp):e=this.props.descriptionNoInfoApp),o.a.createElement("div",{className:jl().e("description")},e,this._getLinkAboutApp(),this._getSpinner())}},{key:"render",value:function(){return o.a.createElement(Vu,{cls:jl().mix(qo.a),title:this._title,onClose:this._onClose,visible:!0},this._getDescription(),this._getButtons())}}]),n}();Cl.propTypes={title:y.a.string,titleTryDownload:y.a.string,buttonText:y.a.string,buttonTextWindows:y.a.string,description:y.a.string,descriptionTryDownload:y.a.string,descriptionOsHasApp:y.a.string,descriptionNoApp:y.a.string,descriptionNoInfoApp:y.a.string,linkAboutAppText:y.a.string,folderId:y.a.string,linkAboutApp:y.a.string,osFamily:y.a.string,browserName:y.a.string,onClose:Pl,getDownloadUrlScheme:Pl,getLinkApp:Pl,countMetrika:Pl};var Tl=Cl;function Il(e){"@babel/helpers - typeof";return(Il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Al(e){return function(){var t,n=Ml(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ml(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Il(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Ml(e){return(Ml=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zl(e,t){return(zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zl(e,t)}(n,r["Component"]);var t=Al(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Dl(e.prototype,t),n&&Dl(e,n)}(n,[{key:"render",value:function(){return this.props.downloadFolderId?o.a.createElement(Tl,{title:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_title"),titleTryDownload:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_title_download"),buttonText:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_button_install_app"),buttonTextWindows:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_button_install_app_and_download"),description:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_desc"),descriptionTryDownload:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_desc_start_app"),descriptionOsHasApp:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_desc_save_download"),descriptionNoApp:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_desc_no_app"),descriptionNoInfoApp:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_desc_no_info_app"),linkAboutAppText:Object(ee.i18n)("en","view-dialog-download-big-folder","ufo_dialog_download_big_folder_about_app"),folderId:this.props.downloadFolderId,osFamily:this.props.osFamily,browserName:this.props.browserName,linkAboutApp:this.props.linkAboutApp,tryDownloadWithApp:this.props.tryDownloadWithApp,needInstallAppToDownload:this.props.needInstallAppToDownload,onClose:this.props.closeDownloadBigFolderDialog,getDownloadUrlScheme:this.props.getDownloadUrlScheme,getLinkApp:this.props.getLinkApp,countMetrika:eo.a}):null}}]),n}(),Nl=Object(c.b)(function(e){var t=e.ua,n=t.BrowserName,r=t.OSFamily,o=e.overlays.downloadFolderId,i=e.services.support;return{osFamily:r,browserName:n,downloadFolderId:o,linkAboutApp:"".concat(i,"/disk/share/sharing-to-me.html#download-big-folder")}},{closeDownloadBigFolderDialog:Z.i,getDownloadUrlScheme:$.c,getLinkApp:$.d})(Ll);function Hl(e){"@babel/helpers - typeof";return(Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bl(e){return function(){var t,n=Vl(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Vl(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hl(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Vl(e){return(Vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fl(e,t){return(Fl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wl,Gl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fl(e,t)}(n,j["a"]);var t=Bl(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Ul(e.prototype,t),n&&Ul(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"m3.7 3.7 8.5 8.5m-8.5 0 8.5-8.5",strokeWidth:"2",stroke:"currentColor"})}}]),n}();n(615);function Yl(e){"@babel/helpers - typeof";return(Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ql(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kl(e){return function(){var t,n=Xl(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Xl(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Yl(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Xl(e){return(Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Zl(e,t){return(Zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Wl=n(243).default;var $l,Jl=function(){return l()()("notification")},Ql=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}(n,r["Component"]);var t=Kl(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&ql(e.prototype,t),n&&ql(e,n)}(n,[{key:"_getNotificationIcon",value:function(e){var t=this.props.resources[e.resourceId];switch(t&&e.type){case te.d.SAVE_TO_DISK_SUCCESS:case te.d.SAVE_TO_DISK_ERROR:case te.d.SAVE_TO_DISK_ERROR_SPACE:return t.meta.defaultPreview?o.a.createElement("img",{className:Jl().e("preview"),src:t.meta.defaultPreview+"&size=80x80"}):o.a.createElement(k,{cls:Jl().e("preview"),ext:t.meta.ext,mediatype:t.meta.mediatype,size:"m",type:Object(Qr.a)(t)===wt.RESOURCE_VIEWS.ALBUM?wt.RESOURCE_VIEWS.DIR:t.type});default:return null}}},{key:"_getResourceName",value:function(e,t){var n,r="";if("file"===t){var i=e.split(".");r=i.pop(),n=i.join(".")+"."}else n=e;return o.a.createElement("span",{"data-ref":"resource-name",className:Jl().e("resource-name")},o.a.createElement("span",{className:Jl().e("resource-name-main")},n),o.a.createElement("span",{className:Jl().e("resource-name-ext")},r))}},{key:"_getNotificationText",value:function(e){var t=this.props.resources[e.resourceId];if(!t)return e.text;var n=t.type,r=e.resourceName||t.name,i=Jl().e("text");switch(e.type){case te.d.SAVE_TO_DISK_SUCCESS:var a=e.isSaveAlbum?Object(ee.i18n)("en","entities","ufo_disk"):Object(ee.i18n)("en","entities","ufo_downloads");return o.a.createElement(Bn.a,{className:i,keyset:"view-aside-public",loc:"ufo_aside_public_saved"},this._getResourceName(r,n),o.a.createElement("b",{"data-ref":"downloads"},a));case te.d.SAVE_TO_DISK_ERROR:return o.a.createElement(Bn.a,{className:i,keyset:"view-aside-public",loc:"ufo_aside_public_save_failed"},this._getResourceName(r,n));case te.d.SAVE_TO_DISK_ERROR_SPACE:return o.a.createElement("span",{className:i},o.a.createElement(Bn.a,{keyset:"view-aside-public",loc:"ufo_aside_public_save_failed_nospace_2"},this._getResourceName(r,n)),o.a.createElement("br",null),o.a.createElement(Wl,{tariff:e.extraData.tariff}));default:return o.a.createElement("span",{className:i},e.text)}}},{key:"render",value:function(){var e=this.props,t=e.notification,n=e.onCloseClick,r=e.onClick,i=this._getNotificationIcon(t);return o.a.createElement("div",{className:Jl().m({error:t.mode===te.c.ERROR_TEXT,active:"function"==typeof r}).mix(qo.a)},o.a.createElement("div",{className:Jl().e("body"),onClick:r},i&&o.a.createElement("span",{className:Jl().e("icon")},i),this._getNotificationText(t)),o.a.createElement(x.a,{size:"m",cls:Jl().e("button-close"),theme:"clear",tone:"dark",view:"default",onClick:n},o.a.createElement(Gl,null)))}}]),n}(),ef=Object(c.b)(function(e){return{resources:e.resources,diskLink:e.services.disk}})(Ql);n(616);function tf(e){"@babel/helpers - typeof";return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function af(e){return function(){var t,n=sf(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=sf(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===tf(t)||"function"==typeof t))return t;return cf(e)}(this,t)}}function cf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sf(e){return(sf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function uf(e,t){return(uf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}$l=n(243).default;var lf=function(){return l()()("bottom-toolbar")},ff=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uf(e,t)}(n,r["Component"]);var t=af(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._bindSnackbarEvents=e._bindSnackbarEvents.bind(cf(e)),e._unbindSnackbarEvents=e._unbindSnackbarEvents.bind(cf(e)),e._hideSnackbar=e._hideSnackbar.bind(cf(e)),e._onAnimationEnd=e._onAnimationEnd.bind(cf(e)),e._onClickOutside=e._onClickOutside.bind(cf(e)),e._onSnackbarButtonClick=e._onSnackbarButtonClick.bind(cf(e)),e._onIntersect=e._onIntersect.bind(cf(e)),e._notificationTimer=null,e.state={position:"bottom"},e}return function(e,t,n){t&&of(e.prototype,t),n&&of(e,n)}(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.antiFileSharing,n=e.resourceId,r=e.addWaitingAuthAction,o=e.sticky;t&&r("antiFileSharing",{resourceId:n}),o&&this._observeIntersections()}},{key:"componentWillUnmount",value:function(){this._intersectionObserver&&this._intersectionObserver.disconnect()}},{key:"componentDidUpdate",value:function(e){switch(this.props.notifications.state){case te.b.OPENED:this._bindSnackbarEvents();break;case te.b.CLOSING:this._unbindSnackbarEvents()}this.props.sticky&&!e.sticky&&this._observeIntersections()}},{key:"_observeIntersections",value:function(){var e=document.querySelector("."+lf().e("holder"));this._intersectionObserver=new IntersectionObserver(this._onIntersect,{threshold:1}),this._intersectionObserver.observe(e)}},{key:"_onIntersect",value:function(e){var t=nf(e,1)[0],n=t.boundingClientRect,r=t.rootBounds;n.bottom>r.bottom?this.setState({position:"bottom"}):this.setState({position:"static"})}},{key:"_bindSnackbarEvents",value:function(){this._unbindSnackbarEvents(),this.props.notifications.current.isEternal||(this._notificationTimer=setTimeout(this._hideSnackbar,7e3)),document.body.addEventListener("touchstart",this._onClickOutside)}},{key:"_unbindSnackbarEvents",value:function(){null!==this._notificationTimer&&(clearTimeout(this._notificationTimer),this._notificationTimer=null),document.body.removeEventListener("touchstart",this._onClickOutside)}},{key:"_onClickOutside",value:function(e){this._snackbarNode&&!this._snackbarNode.contains(e.target)&&this._snackbarNode!==e.target&&this._hideSnackbar()}},{key:"_hideSnackbar",value:function(){this._unbindSnackbarEvents(),this.props.hideNotification()}},{key:"_onAnimationEnd",value:function(){switch(this.props.notifications.state){case te.b.OPENING:this.props.changeNotificationsState(te.b.OPENED);break;case te.b.CLOSING:this.props.changeNotificationsState(te.b.CLOSED)}}},{key:"_getSnackbar",value:function(){var e=this,t=this.props.notifications.current;return o.a.createElement("div",{className:lf().e("snackbar").m({type:this.props.notifications.current&&this.props.notifications.current.mode.toLowerCase().replace("_","-")}),ref:function(t){e._snackbarNode=t},onAnimationEnd:this._onAnimationEnd},this._getSnackbarContent(t))}},{key:"_onSnackbarButtonClick",value:function(){var e=this.props.notifications.current;switch(e.buttonAction){case"OPEN_APP":this.props.openFileInDisk(e.resourceId),Object(eo.f)("save status","goto Disk","from toast"),this.props.hideNotification()}}},{key:"_getNotification",value:function(e){var t=this.props,n=t.rootResourceView,r=t.sliderResourceId,i=n===wt.RESOURCE_VIEWS.VIDEO,a=n===wt.RESOURCE_VIEWS.IMAGE||!!r,c=[wt.RESOURCE_VIEWS.DIR,wt.RESOURCE_VIEWS.ALBUM].includes(n)&&!a;return o.a.createElement("div",{key:"notification",className:lf().e("notification-wrapper").m({other:!i&&!a&&!c,dir:c,video:i,image:a})},o.a.createElement(ef,{key:"notification",notification:e,onCloseClick:this._hideSnackbar,onClick:e.mode===te.c.TEXT_BUTTON?this._onSnackbarButtonClick:void 0}))}},{key:"_getSnackbarContent",value:function(e){if(!e)return null;switch(e.mode){case te.c.TEXT:case te.c.ERROR_TEXT:return[this._getNotification(e),o.a.createElement("span",{key:"text",className:lf().e("snackbar-text")},e.text,e.type===te.d.SAVE_TO_DISK_ERROR_SPACE&&[o.a.createElement("br",{key:1}),o.a.createElement($l,{key:2,tariff:e.extraData.tariff})])];case te.c.TEXT_BUTTON:return[this._getNotification(e),o.a.createElement("span",{key:"text",className:lf().e("snackbar-text")},e.text),o.a.createElement(x.a,{key:"button",theme:"clear-inverse",type:"link",size:"m",onClick:this._onSnackbarButtonClick,cls:lf().e("snackbar-button")},e.buttonText)]}}},{key:"render",value:function(){var e=this.props.notifications.state;return e=[te.b.OPENING,te.b.OPENED,te.b.CLOSING].includes(e)?e.toLowerCase():"",o.a.createElement("div",{className:lf().m({sticky:this.props.sticky,"with-mobile-bottom-direct":this.props.withMobileBottomDirect,position:this.state.position,notification:e})},o.a.createElement(ks,{hideOnSliderOrPaneOpen:!0}),this._getSnackbar())}}]),n}();ff.Holder=function(){return o.a.createElement("div",{className:lf().e("holder")})};var pf=Object(c.b)(function(e){var t=e.rootResourceId,n=e.resources,r=e.notifications,o=e.overlays.sliderResourceId,i=e.environment.antiFileSharing,a=n[t];return{resourceId:t,antiFileSharing:i,notifications:r,rootResourceView:Object(Qr.a)(a),sliderResourceId:o,withMobileBottomDirect:Object(Ls.a)(e)&&Object(Ls.b)(e)}},{addWaitingAuthAction:Z.c,openFileInDisk:Z.s,changeNotificationsState:Q.a,hideNotification:Q.b})(ff),hf=n(42);n(617);function df(e){"@babel/helpers - typeof";return(df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mf(e){return function(){var t,n=vf(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=vf(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===df(t)||"function"==typeof t))return t;return bf(e)}(this,t)}}function bf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vf(e){return(vf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _f(e,t){return(_f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gf=function(){return l()()("resources-action-bar")},Of=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_f(e,t)}(n,r["PureComponent"]);var t=mf(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onWindowKeyUp=r._onWindowKeyUp.bind(bf(r)),r}return function(e,t,n){t&&yf(e.prototype,t),n&&yf(e,n)}(n,[{key:"getChildContext",value:function(){return{visible:this.props.visible,onClose:this.props.onClose}}},{key:"componentDidMount",value:function(){window.addEventListener("keyup",this._onWindowKeyUp)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keyup",this._onWindowKeyUp)}},{key:"_onWindowKeyUp",value:function(e){e.keyCode&&27===e.keyCode&&this.props.onClose()}},{key:"_renderCloseButton",value:function(){var e=o.a.createElement(x.a,{cls:gf().e("close"),onClick:this.props.onClose,size:"n",theme:"clear-inverse"},o.a.createElement(Tr.a,null));return this.props.isMobile?e:o.a.createElement(hf.a,{text:this.props.closeButtonText,disabled:this.props.isMobile,to:["left"]},e)}},{key:"render",value:function(){var e=this.props,t=e.visible,n=e.fixed,r=e.delay,i=e.theme,a=e.setRef,c=e.onTransitionEnd,s=o.a.Children.toArray(this.props.children).filter(Boolean);return o.a.createElement("div",{ref:a,className:gf().m({visible:t,fixed:n,delay:r,theme:i}).mix(qo.a).mix(this.props.cls),onTransitionEnd:c},o.a.createElement("div",{className:gf().e("body")},s),this._renderCloseButton())}}]),n}();Of.childContextTypes={visible:y.a.bool,onClose:y.a.func},Of.Left=function(e){var t=e.children;return o.a.createElement("div",{className:gf().e("side-left")},t)},Of.Left.displayName="ResourcesActionBar.Left",Of.Right=function(e){var t=e.children;return o.a.createElement("div",{className:gf().e("side-right")},t)},Of.Right.displayName="ResourcesActionBar.Right",Of.propTypes={isMobile:y.a.bool,fixed:y.a.bool,visible:y.a.bool,delay:y.a.bool,theme:y.a.oneOf(["blue","black"]),closeButtonText:y.a.string,onClose:y.a.func,onTransitionEnd:y.a.func},Of.defaultProps={onClose:function(){},onTransitionEnd:function(){},theme:"blue"};var wf=Of,Ef=n(112),Sf=n(36);n(618);function kf(){return(kf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xf(e){"@babel/helpers - typeof";return(xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pf(e,t,n){return t&&jf(e.prototype,t),n&&jf(e,n),e}function Cf(e){return function(){var t,n=If(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=If(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===xf(t)||"function"==typeof t))return t;return Tf(e)}(this,t)}}function Tf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function If(e){return(If=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Df(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Af(e,t)}function Af(e,t){return(Af=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Mf=function(){return l()()("resources-info-dropdown")},zf=function(e){Df(n,r["PureComponent"]);var t=Cf(n);function n(e){var r;Rf(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onTogglePopup=r._onTogglePopup.bind(Tf(r)),r}return Pf(n,[{key:"_onTogglePopup",value:function(){this.props.visible?this.props.onClose():this.props.onOpen()}},{key:"_getButton",value:function(){var e=this;return o.a.createElement(x.a,{ref:function(t){e._popupAnchor=t},onClick:this._onTogglePopup,theme:this.props.theme,size:"n"},o.a.createElement(Ef.a,{cls:Mf().e("icon")}))}},{key:"_getButtonWithTooltip",value:function(){return o.a.createElement("div",{className:Mf().e("icon-wrap")},o.a.createElement(hf.a,{text:this.props.buttonName,to:["bottom","right"],disabled:this.props.isMobile||!this.props.buttonName||this.props.visible},this._getButton()))}},{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:Mf()},this.props.name&&this._getButtonWithTooltip()||this._getButton(),this.props.isMobile?o.a.createElement(Du.a,{autoclosable:!0,cls:qo.a,isIosSafari:this.props.isIosSafari,onClose:this.props.onClose,theme:"mobile-pane",visible:this.props.visible},this.props.children):o.a.createElement(Sf.a,{autoclosable:!0,theme:"normal",cls:qo.a,visible:this.props.visible,target:"anchor",anchor:function(){return e._popupAnchor},onClose:this.props.onClose,directions:this.props.directions},o.a.createElement("div",{className:Mf().e("popup")},this.props.children)),this.props.name&&o.a.createElement("div",{className:Mf().e("text-wrap")},o.a.createElement(hf.a,{text:this.props.fullName,to:["bottom","right"],disabled:this.props.isMobile},o.a.createElement("span",{className:Mf().e("name")},this.props.name))))}}]),n}(),Lf=function(e){Df(n,r["PureComponent"]);var t=Cf(n);function n(e){var r;Rf(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={visible:!1},r._onOpen=r._onOpen.bind(Tf(r)),r._onClose=r._onClose.bind(Tf(r)),r.maybeClose=r.maybeClose.bind(Tf(r)),r}return Pf(n,[{key:"_onOpen",value:function(){this.setState({visible:!0}),this.props.onOpen()}},{key:"_onClose",value:function(){this.setState({visible:!1}),this.props.onClose()}},{key:"maybeClose",value:function(){this.state.visible&&this._onClose()}},{key:"render",value:function(){return o.a.createElement(zf,kf({},this.props,{visible:this.state.visible,onOpen:this._onOpen,onClose:this._onClose}))}}]),n}();zf.Content=Lf.Content=function(e){var t=e.cls,n=e.content,r=(Array.isArray(n)?n:[n]).filter(Boolean).map(function(e,t){return o.a.createElement("div",{key:t,className:Mf().e("row")},e)});return o.a.createElement("div",{className:Mf().e("content").mix(t)},r)},zf.Footer=Lf.Footer=function(e){var t=e.cls,n=e.children;return o.a.createElement("div",{className:Mf().e("footer").mix(t)},n)},Lf.propTypes={name:y.a.oneOfType([y.a.string,y.a.element]),buttonName:y.a.string,isIosSafari:y.a.bool,onClose:y.a.func,onOpen:y.a.func},Lf.defaultProps={name:"",onClose:function(){},onOpen:function(){}};var Nf=Lf;function Hf(e){"@babel/helpers - typeof";return(Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bf(e){return function(){var t,n=Vf(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Vf(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Hf(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Vf(e){return(Vf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ff(e,t){return(Ff=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wf=function(e,t,n,i){var a=Array.isArray(t)?t.slice():[t],c=a.map(function(e){return"saved"+e[0].toUpperCase()+e.slice(1)}),s=Array.isArray(t)?i:[i],u=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ff(e,t)}(u,r.Component);var i=Bf(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];t=i.call.apply(i,[this,e].concat(o));var f=n(t.props);return t.state=a.reduce(function(e,n,r){return e[c[r]]=f?t.props[n]:s[r],e},{}),t}return function(e,t,n){t&&Uf(e.prototype,t),n&&Uf(e,n)}(u,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(n(e)){var t=a.reduce(function(t,n,r){return t[c[r]]=e[n],t},{});this.setState(t)}}},{key:"render",value:function(){var t=Object.assign({},this.state,this.props);return o.a.createElement(e,t)}}]),u}();return u.displayName="WithSavedProps(".concat(e.displayName||e.name,")"),u},Gf=n(52);n(619);function Yf(e){"@babel/helpers - typeof";return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qf(){return(qf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xf(e){return function(){var t,n=$f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=$f(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Yf(t)||"function"==typeof t))return t;return Zf(e)}(this,t)}}function Zf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $f(e){return($f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jf(e,t){return(Jf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qf=function(){return l()()("crumbs2")},ep=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jf(e,t)}(n,r["Component"]);var t=Xf(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={isShrunk:!1,isHoverDropdownVisible:!1},r._shrinkIfNeeded=function(e,t){var n;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){return e.apply(r,i)},t)}}(r._shrinkIfNeeded,100).bind(Zf(r)),r._onHoverDropdownOpen=r._onHoverDropdownOpen.bind(Zf(r)),r._onHoverDropdownClose=r._onHoverDropdownClose.bind(Zf(r)),r}return function(e,t,n){t&&Kf(e.prototype,t),n&&Kf(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.full&&(window.addEventListener("resize",this._shrinkIfNeeded),this._shrinkIfNeeded())}},{key:"componentDidUpdate",value:function(){this.props.full&&this._shrinkIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.full&&window.removeEventListener("resize",this._shrinkIfNeeded)}},{key:"_getItems",value:function(){var e=this.props,t=e.root,n=e.items;return t?[Object.assign({},n[0],t)].concat(n.slice(1)):n}},{key:"_shrinkIfNeeded",value:function(){if(this._tail&&this._wrapper){var e=this._tail.getBoundingClientRect().width>this._wrapper.getBoundingClientRect().width;this.state.isShrunk!==e&&this.setState({isShrunk:e})}}},{key:"_getHeadCrumb",value:function(){var e=this._getItems();return this._getCrumb(e[0],0,e)}},{key:"_getTailCrumbs",value:function(){var e=this;return this.props.items.slice(1).map(function(t,n,r){return e._getCrumb(t,n,r)},this)}},{key:"_getAllCrumbs",value:function(){return this._getItems().map(this._getCrumb,this)}},{key:"_onCrumbClick",value:function(e){this._onHoverDropdownClose(),this.props.onItemClick(e)}},{key:"_getCrumb",value:function(e,t,n){var r,i,a=t===n.length-1;if("string"==typeof e)i=e,r=o.a.createElement("span",{className:Qf().e("item-inner")},e);else{i=e.id;var c={theme:"normal",cls:Qf().e("item-inner"),onClick:this._onCrumbClick.bind(this,e.id),children:e.name};r=this.props.getCrumbsItem?this.props.getCrumbsItem(e,c):o.a.createElement(le.a,qf({},c,{theme:"normal"}))}return o.a.createElement("div",{key:i,className:Qf().e("item").m({last:a})},r)}},{key:"_onHoverDropdownOpen",value:function(){!this.state.isShrunk&&this.props.full||this.setState({isHoverDropdownVisible:!0})}},{key:"_onHoverDropdownClose",value:function(){this.setState({isHoverDropdownVisible:!1})}},{key:"_getHoverDropdown",value:function(e){return o.a.createElement(Gf.a,{cls:Qf().e("hover-dropdown"),showDelay:500,onOpen:this._onHoverDropdownOpen,onClose:this._onHoverDropdownClose,visible:this.state.isHoverDropdownVisible},o.a.createElement(Gf.a.Anchor,null,e),o.a.createElement(Gf.a.Tooltip,{theme:"normal",cls:Qf().e("tooltip"),to:this.props.tooltipDirections,hasTail:!0},o.a.createElement("div",{className:Qf().e("tooltip-crumbs")},this._getAllCrumbs())))}},{key:"render",value:function(){var e,t=this;if(this.props.full)e=[o.a.createElement("div",{key:"head",className:Qf().e("head")},this._getHeadCrumb()),o.a.createElement("div",{key:"crumbs",className:Qf().e("crumbs-wrapper"),ref:function(e){t._wrapper=e}},this._getHoverDropdown(o.a.createElement("div",{className:Qf().e("fade")})),o.a.createElement("div",{className:Qf().e("crumbs-tail"),ref:function(e){t._tail=e}},this._getTailCrumbs()))];else{var n=this._getItems();n.length>2&&(n=[n[0],"...",n[n.length-1]]),e=this._getHoverDropdown(o.a.createElement("div",{className:Qf().e("short-wrapper")},n.map(this._getCrumb,this)))}return o.a.createElement("div",{className:Qf().m({shrunk:this.state.isShrunk,full:this.props.full}).mix(this.props.cls)},e)}}]),n}();ep.propTypes={full:y.a.bool,items:y.a.array.isRequired,onItemClick:y.a.func.isRequired,root:y.a.object,tooltipDirections:y.a.array},ep.defaultProps={tooltipDirections:["bottom-left"]};var tp=ep;n(620);function np(e){"@babel/helpers - typeof";return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function op(e){return function(){var t,n=ap(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=ap(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===np(t)||"function"==typeof t))return t;return ip(e)}(this,t)}}function ip(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ap(e){return(ap=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cp(e,t){return(cp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var sp=function(){return l()()("resources-action-bar")},up=Wf(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cp(e,t)}(n,r["Component"]);var t=op(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(e=t.call.apply(t,[this].concat(i))).state={shouldRenderAntiFileSharingTooltip:e.props.showAntiFileSharingTooltip,isAntiFileSharingTooltipVisible:!1},e._infoDropdown=o.a.createRef(),e._saveButtonRef=null,e._resourcesActionBar=null,e._countTopbarMenu=e._countTopbarMenu.bind(ip(e)),e._onSaveButtonClick=e._onSaveButtonClick.bind(ip(e)),e._onDownloadButtonClick=e._onDownloadButtonClick.bind(ip(e)),e._onCloseActionBar=e._onCloseActionBar.bind(ip(e)),e._onOpenFileInDisk=e._onOpenFileInDisk.bind(ip(e)),e._onCrumbsClick=e._onCrumbsClick.bind(ip(e)),e._onSetSaveButtonRef=e._onSetSaveButtonRef.bind(ip(e)),e._onTransitionEnd=e._onTransitionEnd.bind(ip(e)),e._onSetResourcesActionBarRef=e._onSetResourcesActionBarRef.bind(ip(e)),e._onResourceInfoDropdownOpen=e._onResourceInfoDropdownOpen.bind(ip(e)),e}return function(e,t,n){t&&rp(e.prototype,t),n&&rp(e,n)}(n,[{key:"_countTopbarMenu",value:function(e){Object(eo.b)(this.props.isAlbum,"topbar menu",e)}},{key:"_onSaveButtonClick",value:function(){this.setState({shouldRenderAntiFileSharingTooltip:!1}),this._countTopbarMenu("save")}},{key:"_onDownloadButtonClick",value:function(){this._countTopbarMenu("download")}},{key:"_onOpenFileInDisk",value:function(){this._countTopbarMenu("goto Disk")}},{key:"_onCloseActionBar",value:function(){this._countTopbarMenu("close"),this.props.setSelectedResources([])}},{key:"_onSetSaveButtonRef",value:function(e){this._saveButtonRef=e}},{key:"_renderSaveButton",value:function(e){return o.a.createElement(pr,{resourceId:this.props.savedSelectedResources[0],hasText:!e,size:"n",theme:e?"clear-inverse":"normal",view:e?void 0:"default",toneSave:e?void 0:"transparent",toneOpen:e?void 0:"transparent",hasIcon:!0,ref:e?void 0:this._onSetSaveButtonRef,onSaveClick:this._onSaveButtonClick,onOpenFileClick:this._onOpenFileInDisk,isFrom:te.a.RESOURCES_ACTION_BAR})}},{key:"_renderAntiFileSharingTooltip",value:function(){var e=this.props,t=e.resources,n=e.selectedResources,r=this.state,i=r.shouldRenderAntiFileSharingTooltip,a=r.isAntiFileSharingTooltipVisible,c=Boolean(n.length)&&t[n[0]].type===wt.RESOURCE_VIEWS.DIR;return i&&o.a.createElement(ms.a,{theme:"normal",size:"s",cls:sp().e("antifo-tooltip"),anchor:this._saveButtonRef,to:"bottom",visible:Boolean(n.length)&&a,zIndexGroupLevel:-1,mainOffset:20},c?o.a.createElement(Bn.a,{className:sp().e("antifo-tooltip-text"),keyset:"view-aside-public",loc:"ufo_warning_save_and_download_folder_blocked"}):o.a.createElement(Bn.a,{className:sp().e("antifo-tooltip-text"),keyset:"view-aside-public",loc:"ufo_warning_save_and_download_blocked"}))}},{key:"_renderDownloadButton",value:function(e){return o.a.createElement(Cr,{resourceId:this.props.savedSelectedResources[0],hasText:!e,size:"n",theme:e?"clear-inverse":"normal",view:e?void 0:"default",tone:e?void 0:"transparent",hasIcon:!0,onClick:this._onDownloadButtonClick,isFrom:te.a.RESOURCES_ACTION_BAR})}},{key:"_onCrumbsClick",value:function(e){this.props.setCurrentResource(e)}},{key:"_onResourceInfoDropdownOpen",value:function(){this._countTopbarMenu("info")}},{key:"componentDidUpdate",value:function(e){if(0===e.selectedResources.length&&this.props.selectedResources.length>0&&this._countTopbarMenu("open"),1===this.props.selectedResources.length&&e.selectedResources[0]!==this.props.selectedResources[0]){var t=this.props.resources[this.props.selectedResources[0]];t.type===wt.RESOURCE_VIEWS.DIR&&this.props.fetchDirSize(t.id)}e.selectedResources.length>0&&0===this.props.selectedResources.length&&this._infoDropdown.current.maybeClose()}},{key:"componentDidMount",value:function(){this.props.selectedResources.length>0&&this._countTopbarMenu("open")}},{key:"_renderResourcesActionBarRight",value:function(){return this.props.savedSelectedResources.length?o.a.createElement(o.a.Fragment,null,this._renderSaveButton(),this._renderAntiFileSharingTooltip(),this._renderDownloadButton(),this._renderSaveButton(!0),this._renderDownloadButton(!0)):null}},{key:"_onSetResourcesActionBarRef",value:function(e){this._resourcesActionBar=e}},{key:"_onTransitionEnd",value:function(e){if(e.target===this._resourcesActionBar){var t=this.props.selectedResources,n=this.state.isAntiFileSharingTooltipVisible;Boolean(t.length)!==n&&this.setState({isAntiFileSharingTooltipVisible:!n})}}},{key:"render",value:function(){var e,t=!1,n=[],r=this.props.selectedResources.length>0,i="";if(this.props.savedSelectedResources.length>0){var a=this.props.resources[this.props.savedSelectedResources[0]],c=a.name,s=a.parent,u=a.type;e=a.id,i=c,t=u===wt.RESOURCE_VIEWS.DIR;for(var l=s;l&&this.props.resources[l];){var f=this.props.resources[l];n.unshift({id:l,name:f.name}),l=f.parent}}var p=t?Object(ee.i18n)("en","entities","info_about_folder"):Object(ee.i18n)("en","entities","info_about_file"),h=Object(ee.i18n)("en","actions","ufo_close");return o.a.createElement(wf,{visible:r,cls:qo.a,onClose:this._onCloseActionBar,closeButtonText:h,isMobile:this.props.isMobile,theme:"black",fixed:!0,delay:!0,onTransitionEnd:this._onTransitionEnd,setRef:this._onSetResourcesActionBarRef},o.a.createElement(wf.Left,null,o.a.createElement(Nf,{ref:this._infoDropdown,key:"resource-info-dropdown-"+e,theme:"clear-inverse",name:i,fullName:i,buttonName:p,onOpen:this._onResourceInfoDropdownOpen,isMobile:this.props.isMobile,isIosSafari:this.props.isIosSafari},o.a.createElement(Nf.Content,{content:e?o.a.createElement(Ou,{resourceId:e,isFromTopbar:!0}):null}),!this.props.isMobile&&o.a.createElement(Nf.Footer,null,o.a.createElement(tp,{items:n,onItemClick:this._onCrumbsClick})))),o.a.createElement(wf.Right,null,this._renderResourcesActionBarRight()))}}]),n}(),"selectedResources",function(e){return e.selectedResources.length},[]),lp=Object(c.b)(function(e){var t=e.rootResourceId,n=e.resources,r=e.selectedResources,o=e.operations,i=e.ua,a=i.isMobile,c=i.isIosSafari,s=n[t];return{rootResource:s,resources:n,selectedResources:r,operations:o,isMobile:a,isIosSafari:c,showAntiFileSharingTooltip:Object(nr.j)(e),isAlbum:Object(nr.d)(s)}},{setSelectedResources:Z.B,setCurrentResource:J.g,fetchDirSize:J.c})(up),fp=n(262),pp=n.n(fp);n(621);function hp(e){"@babel/helpers - typeof";return(hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yp(e){return function(){var t,n=bp(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=bp(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===hp(t)||"function"==typeof t))return t;return mp(e)}(this,t)}}function mp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bp(e){return(bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vp(e,t){return(vp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _p=function(){return l()()("open-app-dialog")},gp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vp(e,t)}(n,r["Component"]);var t=yp(n);function n(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=t.call(this,e))._onClose=r._onClose.bind(mp(r)),r}return function(e,t,n){t&&dp(e.prototype,t),n&&dp(e,n)}(n,[{key:"_onClose",value:function(){this.props.closeAppDialog(),Object(eo.h)("close")}},{key:"_onClick",value:function(e){var t=this.props,n=t.resourceId,r=t.openFileInDiskApp,o=t.openFileInDiskBrowser;e?r(n):o(n),Object(eo.h)("click",e?"application":"web"),this._onClose()}},{key:"render",value:function(){var e=this.props,t=e.isIosSafari,n=e.visible,r=e.isWowPublic;return o.a.createElement(Du.a,{cls:_p().m({wow:r}),theme:"mobile-pane",visible:n,onClose:this._onClose,isIosSafari:t,autoclosable:!0},o.a.createElement(x.a,{theme:"raised",action:!0,tone:"default",view:"default",size:"n",cls:_p().e("button").m({"open-in-app":!0}),centeredIcon:!0,onClick:this._onClick.bind(this,!0)},o.a.createElement(Xn.a,null),o.a.createElement(Bn.a,{keyset:"view-public",loc:"ufo_open_in_app"})),o.a.createElement(x.a,{theme:"clear",size:"n",cls:_p().e("button").m({"open-in-browser":!0}),onClick:this._onClick.bind(this,!1)},o.a.createElement(Bn.a,{keyset:"view-public",loc:"ufo_open_in_browser"})))}}]),n}(),Op=Object(c.b)(function(e){var t=e.ua.isIosSafari,n=e.overlays.openAppDialogResourceId;return{isIosSafari:t,resourceId:n,visible:Boolean(n),isWowPublic:Object(ra.c)(e)}},{closeAppDialog:Z.h,openFileInDiskApp:Z.t,openFileInDiskBrowser:Z.u})(gp);n(622);function wp(e){"@babel/helpers - typeof";return(wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ep(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sp(e){return function(){var t,n=kp(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=kp(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===wp(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function kp(e){return(kp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xp(e,t){return(xp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rp,jp,Pp,Cp,Tp,Ip,Dp,Ap,Mp=function(){return l()()("public")};Rp=n(623).default,jp=n(687).default,Pp=n(679).default,Cp=n(169).default,Ip=n(106).default,Tp=n(685).default,Dp=n(669).default,Ap=n(684).default;var zp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xp(e,t)}(n,r["Component"]);var t=Sp(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Ep(e.prototype,t),n&&Ep(e,n)}(n,[{key:"componentDidMount",value:function(){Object(eo.f)("show page"),this.props.syncUrl(!0)}},{key:"componentDidCatch",value:function(e){this.props.setCriticalError("react-catch",e),setTimeout(function(){throw e})}},{key:"render",value:function(){var e=this.props,t=e.awaps,n=e.isMobile,r=e.isSmartphone,i=e.hasAwapsBanner,a=e.hasDirect,c=e.showPromoBanner,s=e.rootResourceView,u=e.isMobileBottomDirectEnabled,l=e.hasRightDirect,f=e.isImageOrVideo,p=e.isError,h=e.useAdfox,d=e.isWowPublic,y=e.showMobileBanner,m=e.isRootDirOrAlbum,b=Mp().e("root");i&&(b=b.mix("has-awaps")),l&&(b=b.mix("has-right-direct")),u&&(b=b.mix("with-mobile-bottom-direct")),d&&(b=b.mix("wow-public"));var v=d&&m;return o.a.createElement("div",{className:b},o.a.createElement(pp.a,null),o.a.createElement(Rp,t||{}),a&&n&&o.a.createElement(Ip,{position:"top",view:s}),o.a.createElement("header",{className:Mp().e("header")},o.a.createElement(Pp,null),m&&o.a.createElement(lp,null)),y?o.a.createElement(Tp,null):null,!a||n||p&&h?null:o.a.createElement(Ip,{position:"top",view:s}),o.a.createElement("div",{className:Mp().e("main").m({"top-margin":!(a||r||f||v)&&(m?"s":"l")})},p?o.a.createElement(iu,null):o.a.createElement("div",{className:Mp().e("main-content")},c?o.a.createElement(Ap,{view:s}):null,o.a.createElement(Ks,{view:s}),o.a.createElement(pf,{sticky:u}),u?o.a.createElement(pf.Holder,null):null,o.a.createElement(Iu,null),o.a.createElement(Op,null),o.a.createElement(ll,null),o.a.createElement(Nl,null),r||f?null:o.a.createElement(jp,null)),l?o.a.createElement(Ip,{position:"right",view:s}):null),!n&&o.a.createElement(Cp,null),o.a.createElement(Dp,null))}}]),n}(),Lp=Object(c.b)(function(e){var t=e.resources,n=e.rootResourceId,r=e.ua,o=r.isSmartphone,i=r.isMobile,a=e.environment,c=a.awaps,s=a.noPromoBanner,u=a.noAdv,l=a.useAdfox,f=t[n],p=Object(Qr.a)(f),h=p===wt.RESOURCE_VIEWS.ERROR,d=c&&"banner"===c.type&&!u&&!h,y=[wt.RESOURCE_VIEWS.VIDEO,wt.RESOURCE_VIEWS.IMAGE].includes(p),m=!(y||d||s||h);return{isSmartphone:o,isMobile:i,showPromoBanner:m,hasDirect:!m&&!d&&!u,hasRightDirect:!(d||u||o||[wt.RESOURCE_VIEWS.IMAGE,wt.RESOURCE_VIEWS.ERROR].includes(p)),hasAwapsBanner:d,rootResourceView:p,awaps:c,isMobileBottomDirectEnabled:Object(Ls.a)(e),isImageOrVideo:y,isError:h,useAdfox:l,isWowPublic:Object(ra.c)(e),isRootDirOrAlbum:Object(nr.g)(f),showMobileBanner:Object(ra.d)(e)}},{syncUrl:Z.D,setCriticalError:Z.A})(zp),Np=function(e){var t=e.store,n=e.lang;return o.a.createElement(c.a,{store:t},o.a.createElement(Lp,{lang:n}))},Hp=n(23),Up=n.n(Hp),Bp=function(e,t,n){var r=[],o=[],i=Object.keys(e);return i.forEach(function(n){o.push(function(e,t){return t(Z.e("check-auth",{},e)).catch(function(){return{user:{auth:!1}}})}(e[n],t))}),Promise.all(o).then(function(e){return e.find(function(e,t){return r.push(Object.assign({user:{auth:!1},lang:n},{authTld:i[t]},e)),e.user.auth}),r})},Vp=function(){return function(e,t){var n=t(),r=Up.a.get("save-to-disk");r&&e(Object(J.a)(r)).then(function(){var n=t().user,o=n.auth,i=n.loading;o?e(Object($.h)(r)):i&&e(Z.c("save",{auth:!0,resourceId:r}))},function(){}).then(function(){Up.a.remove("save-to-disk")});var o=n.authOrigins;if(!n.environment.isYadiSk||!o||!o.length)return e(Object($.g)()),void Object(eo.k)(n);var i=function(){Object(eo.k)(t(),!0)};window.addEventListener("beforeunload",i),function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Bp(t[n],r,o).then(function(a){return!a.find(function(e){return i[e.authTld]=e,e.user.auth})&&n<t.length-1?e(t,n+1,r,o,i):i})}(o,0,e,n.environment.currentLang).then(function(r){var o=Object.keys(r).find(function(e){return r[e].user.auth}),a=o?r[o]:r[n.environment.servicesTld],c={authSk:a.sk,externalSk:a.externalSk,yandexuid:a.yandexuid,servicesTld:a.authTld},s=new Date;s.setFullYear(s.getFullYear()+1),a.yandexuid&&(Up.a.remove("yandexuid"),Up.a.set("yandexuid",a.yandexuid,{expires:s,domain:".yadi.sk",secure:!0,sameSite:n.ua.SameSiteSupport?"None":""}),c.sk=a.skUsingOnlyYu),e(Z.F(c)),a.user.auth?(e(Z.L(Object.assign({loading:!1},a.user))),e(Z.I(a.services)),Up.a.set("tld",a.authTld,{expires:s}),Up.a.set("uid",a.user.id,{expires:s})):(e(Z.L({loading:!1})),Up.a.remove("uid"),Up.a.set("tld",n.environment.servicesTld,{expires:s})),a.lang&&Up.a.set("lang",a.lang,{expires:30}),e(Object($.g)()),Object(eo.k)(t()),window.removeEventListener("beforeunload",i)})}},Fp=n(50),Wp=n(8),Gp=n(29),Yp=function(e,t){var n=e&&e.meta||{},r=t&&t.meta||{};return Object.assign({children:[],completed:!1,parent:null},e,t,{meta:Object.assign({},n,r)})};function qp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kp=n(8),Xp=Kp.OPEN_PANE,Zp=Kp.CLOSE_PANE,$p=Kp.OPEN_SLIDER,Jp=Kp.CLOSE_SLIDER,Qp=Kp.SET_ACTION_BARS_VISIBILITY,eh=Kp.OPEN_DOWNLOAD_VIRUS_DIALOG,th=Kp.CLOSE_DOWNLOAD_VIRUS_DIALOG,nh=Kp.OPEN_DOWNLOAD_BIGFOLDER_DIALOG,rh=Kp.CLOSE_DOWNLOAD_BIGFOLDER_DIALOG,oh=Kp.OPEN_APP_DIALOG,ih=Kp.CLOSE_APP_DIALOG;function ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ch(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sh(e){return function(e){if(Array.isArray(e))return uh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return uh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lh,fh=n(8).UPDATE_WOW_GRID,ph={byResource:{},structureVersion:0},hh=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,o=arguments.length>1?arguments[1]:void 0;return o.type!==e?r:o[t]}},dh=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return r.type!==e?n:Object.assign({},n,r[t])}},yh=hh(Wp.UPDATE_UA,"ua",{}),mh=dh(Wp.UPDATE_SETTINGS,"settings"),bh=hh(Wp.UPDATE_AUTH_ORIGINS,"authOrigins"),vh=hh(Wp.UPDATE_CURRENT_RESOURCE_ID,"id"),_h=hh(Wp.UPDATE_ROOT_RESOURCE_ID,"id"),gh=hh(Wp.SET_SELECTED_RESOURCES,"selectedResources",[]),Oh=dh(Wp.UPDATE_USER,"user"),wh=dh(Wp.UPDATE_ENVIRONMENT,"environment"),Eh=dh(Wp.UPDATE_SERVICES,"services"),Sh=hh(Wp.SET_LISTING_TYPE,"listingType",wt.LISTING_TYPES.LIST),kh=hh(Wp.SET_WOW_LISTING_TYPE,"wowListingType",wt.LISTING_TYPES.WOW),xh=Object(Fp.c)({ua:yh,url:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.SET_URL:return Object.assign({},t.url,{query:Object(Gp.a)(t.url.query)});case Wp.UPDATE_PATHNAME:return Object.assign({},e,{pathname:t.pathname});case Wp.ADD_QUERY_PARAMS:var n=e.query||{},r=Object.assign({},e.query||{},t.params);return Object(Gp.a)(r),Object.keys(r).some(function(e){return n[e]!==r[e]})||Object.keys(n).some(function(e){return n[e]!==r[e]})?Object.assign({},e,{query:r}):e;case Wp.REMOVE_QUERY_PARAMS:var o=Object.assign({},e.query),i=!1;return t.params.forEach(function(e){o[e]&&(i=!0,delete o[e])}),i?Object.assign({},e,{query:o}):e;default:return e}},environment:wh,services:Eh,user:Oh,users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.UPDATE_USERS:var n=Object.assign({},e);return t.payload.users.filter(function(e){var t=e.uid;return!n[t]}).forEach(function(e){n[e.uid]=e}),n;default:return e}},rootResourceId:_h,currentResourceId:vh,resources:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.UPDATE_RESOURCES:return function(e,t){var n=t.payload,r=Object.assign({},e),o=n.resources,i=n.replace,a=void 0!==i&&i,c=n.replaceChildren,s=void 0!==c&&c,u=o[0];if(a)return o;var l=e[u.id],f=(l&&l.countBlockedItems||0)+(u.meta&&u.meta.page_blocked_items_num||0),p=Yp(r[u.id],u);p.loading=!1,f&&(p.countBlockedItems=f),r[u.id]=p;for(var h=[],d=1;d<o.length;d++){var y=o[d];y.id!==p.id&&(r[y.id]=Yp({},y),r[y.id].parent=p.id,h.push(y.id))}return p.children=s?h:p.children.concat(h),r}(e,t);case Wp.UPDATE_ONE_RESOURCE:var n=Object.assign({},e[t.payload.resourceId].meta,t.payload.resource.meta),r=Object.assign({},e[t.payload.resourceId],t.payload.resource,{meta:n});return Object.assign({},e,qp({},t.payload.resourceId,r));case Wp.FETCH_RESOURCES_LIST_START:return Object.assign({},e,qp({},t.id,Object.assign({},e[t.id],{loading:!0})));case Wp.FETCH_RESOURCES_LIST_SUCCESS:return Object.assign({},e,qp({},t.id,Object.assign({},e[t.id],{loading:!1})));case Wp.FETCH_RESOURCES_LIST_ERROR:return Object.assign({},e,qp({},t.id,Object.assign({},e[t.id],{loading:!1,completed:!0})));default:return e}},selectedResources:gh,authOrigins:bh,waitingAuthActions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.ADD_WAITING_AUTH_ACTION:return Object.assign({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t.name,t.value));case Wp.CLEAR_WAITING_AUTH_ACTIONS:return{};default:return e}},operations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.UPSERT_OPERATION:var n=Object.assign({},e);return n[t.operation]=Object.assign({},n[t.operation]||{}),n[t.operation][t.resourceId]=Object.assign({},n[t.operation][t.resourceId]||{},{state:t.state},t.params||{}),n}return e},overlays:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{activePane:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Xp:return Object.assign({},e,{activePane:t.pane});case Zp:return Object.assign({},e,{activePane:{}});case $p:return Object.assign({},e,{sliderResourceId:t.resourceId});case Jp:return Object.assign({},e,{sliderResourceId:""});case Qp:return Object.assign({},e,{isActionBarsHidden:!t.state});case eh:return Object.assign({},e,{downloadVirusFileId:t.resourceId});case th:return Object.assign({},e,{downloadVirusFileId:""});case nh:return Object.assign({},e,{downloadFolderId:t.resourceId});case rh:return Object.assign({},e,{downloadFolderId:""});case oh:return Object.assign({},e,{openAppDialogResourceId:t.resourceId});case ih:return Object.assign({},e,{openAppDialogResourceId:""});default:return e}},notifications:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{current:null,items:[],state:te.b.CLOSED},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Wp.CHANGE_NOTIFICATIONS_STATE:(e=Object.assign({},e)).state=t.state,e.state===te.b.OPENING&&(e.current=e.items[0],e.items=e.items.slice(1)),e.state===te.b.CLOSED&&(e.current=null);break;case Wp.ADD_NOTIFICATION:(e=Object.assign({},e)).items=e.items.concat(t.notification)}return e},listingType:Sh,wowListingType:kh,settings:mh,photoGrid:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ph,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case fh:var n=t.payload,r=n.currentResourceId,o=n.resources,i=n.completed,a=o.map(function(e){return e.id}),c=e.byResource[r];c||(c={clusters:[],buffer:[]});var s=c.buffer.concat(i?a:a.slice(0,-10)),u={clusters:[].concat(sh(c.clusters),[s]),buffer:i?[]:a.slice(-10)};return{byResource:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ah(Object(n),!0).forEach(function(t){ch(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.byResource,ch({},r,u)),structureVersion:e.structureVersion+1};default:return e}}}),Rh=function(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}},jh=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,c=!!n,s=(c?n:"")+i+"/public/api/"+e;r&&(t.sk=r),o&&(t.uid=o),a&&(t.options=a);var u={method:"POST",credentials:c?"include":"same-origin",headers:{"Content-Type":"text/plain"},body:encodeURIComponent(JSON.stringify(t))};return fetch(s,u).then(function(e){return e.json()})},Ph=function(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){if(r.type===Wp.CALL_API){var o,i=n(),a=r.origin||"";r.needAuth&&(a||(a=i.services.disk),o=i.user.id);var c=a?i.environment.authSk:i.environment.sk,s=!!(i.environment.experiments&&i.environment.experiments.flags||{}).disk_public_video_without_preview_exp;return jh(r.method,r.params,a,c,o,i.environment.apiPrefix,{hasExperimentVideoWithoutPreview:s}).then(function(e){if(e.error&&e.badAuthorization&&location.reload(),e.error&&e.wrongSk){var n=r.needAuth?{authSk:e.newSk}:{sk:e.newSk};return t(Object(Z.F)(n)),jh(r.method,r.params,a,e.newSk,o,i.environment.apiPrefix,{hasExperimentVideoWithoutPreview:s})}return e})}return e(r)}}};function Ch(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Th=function(){var e=[];return e.push(Rh),e.push(Ph),e}(),Ih=Fp.d;lh=Ih(Fp.a.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Ch(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ch(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ch(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Th)));function Dh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ah=function(){},Mh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this._idTimer=null,this._stepNumber=0,this._onVisibilityChange=this._onVisibilityChange.bind(this),this._tick=this._tick.bind(this),window.addEventListener("visibilitychange",this._onVisibilityChange)}return function(e,t,n){t&&Dh(e.prototype,t),n&&Dh(e,n)}(e,[{key:"destroy",value:function(){this.stop(),window.removeEventListener("visibilitychange",this._onVisibilityChange),this.start=Ah,this.stop=Ah}},{key:"start",value:function(){this._idTimer||(this._idTimer=window.setInterval(this._tick,this.options.step))}},{key:"stop",value:function(){this._idTimer&&(window.clearInterval(this._idTimer),this._idTimer=null)}},{key:"_tick",value:function(){if(this._stepNumber*this.options.step>this.options.max)return this.destroy();this.options.count(this._stepNumber,this.options.step),this._stepNumber++}},{key:"_onVisibilityChange",value:function(){document.hidden?this.stop():this.start()}}]),e}();n(675),n(676),n(677);Object(ee.setTankerProjectId)("yandex_disk_web"),Object(ee.addTranslation)("en",n(674));var zh=document.getElementById("store-prefetch").innerHTML,Lh=JSON.parse(zh);n.p=Lh.services.yastatic+"/disk/public/_/";var Nh=function(){return function(e){return Object(Fp.e)(xh,e,lh)}(Lh)},Hh=function(){var e=Nh(),t=e.getState(),n=t.resources,r=t.rootResourceId,i=n[r],c=!!i.errorCode;"iOS"===t.ua.OSFamily&&document.addEventListener("touchmove",function(e){2===e.touches.length&&e.preventDefault()}),Object(eo.n)({experiments:t.environment.experiments&&t.environment.experiments.metrika}),a.a.hydrate(o.a.createElement(Np,{store:e}),document.getElementById("app")),e.dispatch(Vp()),c||e.dispatch(Object(J.b)()),"dir"===i.type&&e.dispatch(Object(J.c)(r)),window.history.replaceState({currentResourceId:t.currentResourceId,sliderResourceId:t.overlays&&t.overlays.sliderResourceId},location.toString()),window.addEventListener("popstate",function(t){var n=t.state||{},r=e.getState(),o=r.currentResourceId,i=r.overlays,a=i.sliderResourceId,c=i.activePane,s=c&&c.type,u=n.activePane&&n.activePane.type;n.currentResourceId&&n.currentResourceId!==o?e.dispatch(Object(J.g)(n.currentResourceId)):a&&!n.sliderResourceId?e.dispatch(Object(Z.l)()):a!==n.sliderResourceId?e.dispatch(Object(Z.w)(n.sliderResourceId)):s&&!u?e.dispatch(Object(Z.k)(s)):u&&!s&&e.dispatch(Object(Z.v)(n.activePane))})};try{Raven.context(Hh)}catch(e){Hh()}new Mh({step:5e3,max:9e5,count:eo.l}).start()},function(e,t,n){"use strict";n.r(t);var r=n(11),o=n(0),i=n.n(o),a=n(4),c=n.n(a);n(627);function s(e){"@babel/helpers - typeof";return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e){return function(){var t,n=f(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=f(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(){return c()()("header")},d=function(e){var t=e.children,n=e.cls;return i.a.createElement("div",{className:h().e("side-center").mix(n)},t)},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,o["Component"]);var t=l(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&u(e.prototype,t),n&&u(e,n)}(n,[{key:"render",value:function(){var e=!1;return i.a.Children.forEach(this.props.children,function(t){t&&t.type===d&&(e=!0)}),i.a.createElement("div",{className:h().m({"has-center":e}).mix(this.props.cls)},this.props.children)}}]),n}();y.Left=function(e){var t=e.children,n=e.cls;return i.a.createElement("div",{className:h().e("side-left").mix(n)},t)},y.Right=function(e){var t=e.children,n=e.cls;return i.a.createElement("div",{className:h().e("side-right").mix(n)},t)},y.Center=d;var m=y,b=n(1),v=n.n(b),_=n(16),g=n(78);n(628);function O(e){"@babel/helpers - typeof";return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e){return function(){var t,n=S(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=S(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x=function(){return c()()("inline-services-menu")},R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,o["Component"]);var t=E(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).itemsRef={},r.state={},r}return function(e,t,n){t&&w(e.prototype,t),n&&w(e,n)}(n,[{key:"componentDidMount",value:function(){this.setState(this.itemsRef)}},{key:"_getItems",value:function(){var e=this;return(this.props.items||(g.a[this.props.tld]||g.a.ru).inlineHeaderServices).filter(function(t){return Boolean(e.props.services[t])}).map(function(t){var n=e.props.services[t];return i.a.createElement(_.a,{ref:function(n){e.itemsRef[t]=n},cls:x().e("link").mix(n.cls||""),key:t,theme:"dark",url:n.url,target:"_blank",onClick:function(){return e.props.onClick(t)}},n.text)})}},{key:"render",value:function(){return i.a.createElement("div",{className:x().mix(this.props.cls)},this._getItems(),this.props.children(this.state))}}]),n}();R.propTypes={tld:v.a.string.isRequired,items:v.a.array,services:v.a.object,children:v.a.func,onClick:v.a.func},R.defaultProps={services:{},children:function(){return null},onClick:function(){return null}};var j=R,P=n(5),C=(n(244),n(683).default),T=n(19),I=n.n(T),D=n(2),A=n.n(D),M=(n(166),n(87)),z=(n(144),n(145),n(199),n(200),n(195),Object(D.decl)({block:"user-account",elem:"name",tag:"span",content:function(e){var t=e.text;return e.children||t}},{propTypes:{text:v.a.string}}));n(162);function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=Object(D.decl)({block:"user-pic",elem:"camera",willInit:function(e){this.state=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(n,!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({retpath:""},this.props)},didMount:function(){this.setState({retpath:"&retpath=".concat(encodeURIComponent(window.location.href))})},content:function(){var e="".concat(this.props.cameraURL,"?origin=").concat(this.props.origin).concat(this.state.retpath);return i.a.createElement(A.a,{tag:"a",elem:"link",href:e,key:"Link"})}},{propTypes:{origin:v.a.string,cameraURL:v.a.string},defaultProps:{origin:"userpic",cameraURL:"https://passport.yandex.ru/profile/public"}}),U=(n(629),n(630),H.applyDecls()),B=(Object(D.declMod)({camera:!0},{block:"user-pic",content:function(e){var t=e.origin,n=e.avatarId;return n&&"0/0-0"!==n?this.__base.apply(this,arguments):[this.__base.apply(this,arguments),i.a.createElement(U,{origin:t||"userpic",key:"camera"})]}}),n(245),Object(D.decl)({block:"user-pic",mods:function(e){var t=e.plus,n=e.camera;return{"has-plus":Object(D.bool2string)(t),"has-camera":Object(D.bool2string)(n)}},content:function(e){var t=e.host,n=e.avatarId,r=e.children;if(r)return r;var o=this.getAvatarURL(t,n),a=o.lodpiUrl,c=o.hidpiUrl;return i.a.createElement(A.a,{block:"user-pic",elem:"image",tag:"img",key:"avatar",attrs:{src:a,srcSet:"".concat(a," 1x, ").concat(c," 2x")}})},getAvatarURL:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://avatars.mds.yandex.net",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0/0-0";return{lodpiUrl:"".concat(e,"/get-yapic/").concat(t,"/islands-middle"),hidpiUrl:"".concat(e,"/get-yapic/").concat(t,"/islands-retina-middle")}}},{propTypes:{provider:v.a.oneOf(["yandex-team"]),host:v.a.string,avatarId:v.a.string,plus:v.a.bool,camera:v.a.bool,origin:v.a.string}}),Object(D.declMod)({provider:"yandex-team"},{block:"user-pic",getAvatarURL:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://center.yandex-team.ru",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";return{lodpiUrl:"".concat(e,"/api/v1/user/").concat(t,"/avatar/42.jpg"),hidpiUrl:"".concat(e,"/api/v1/user/").concat(t,"/avatar/100.jpg")}}}).applyDecls()),V=Object(D.decl)({block:"user-account",elem:"pic",render:function(){var e=this.block,t=this.elem,n=this.props,r=n.pic,o=n.camera,a=n.origin,c=n.avatarId,s=n.avatarHost,u=n.provider,l=n.plus;return r?i.a.createElement(B,{camera:o,origin:a,plus:l,avatarId:c,provider:u,host:s,mix:{block:e,elem:t,mods:this.mods(this.props)}}):this.__base.apply(this,arguments)}},{propTypes:{avatarId:v.a.string,avatarHost:v.a.string}});n(246);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var W=Object(D.decl)({block:"user-account",elem:"subname",tag:"span",content:function(e){var t=e.subname;return this.getSubname(t)},getSubname:function(e){var t=this.__self.PROVIDERS;return e="object"===F(e)?t[e.provider]:e}},{propTypes:{subname:v.a.oneOfType([v.a.string,v.a.object])},PROVIDERS:{fb:"Facebook",tw:"Twitter",mr:"Mail.ru",gg:"Google",ok:"Odnoklassniki",vk:"Vkontakte",dz:"Deezer",fs:"Foursquare",ig:"Instagram",lf:"Last.FM",lj:"LiveJournal",in:"LinkedIn",mt:"МТС-Россия",ms:"Microsoft",yh:"Yahoo",ya:"Yandex",vf:"Vodafone-Украина",tg:"Telegram"}}),G=(n(631),n(58),n(146),Object(D.declMod)({glyph:"x-sign"},{block:"icon",content:function(){return i.a.createElement("svg",{viewBox:"0 0 20 20"},i.a.createElement("path",{focusable:"false",width:"0",height:"0",d:"M10,20 C4.5,20 0,15.5 0,10 C0,4.5 4.5,0 10,0 C15.5,0 20,4.5 20,10 C20,15.5 15.5,20 10,20 L10,20 L10,20 L10,20 Z M15,6.4 L13.6,5 L10,8.6 L6.4,5 L5,6.4 L8.6,10 L5,13.6 L6.4,15 L10,11.4 L13.6,15 L15,13.6 L11.4,10 L15,6.4 L15,6.4 L15,6.4 L15,6.4 Z"}))}}));n(84),n(147),n(632),n(633),n(634);function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var q=z.applyDecls(),K=V.applyDecls(),X=W.applyDecls(),Z=G.applyDecls(),$=Object(D.decl)({block:"user-account",willInit:function(){this.__base.apply(this,arguments),this.state={},this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this._changeUser=this._changeUser.bind(this)},tag:function(e){return e.url?"a":"div"},attrs:function(e){return{tabIndex:"0",href:e.url,onClick:e.onClick||this._changeUser,onFocus:this.onFocus,onBlur:this.state.focused?this.onBlur:void 0,onMouseOver:this.onMouseOver,onMouseLeave:this.state.hovered?this.onMouseLeave:void 0}},mods:function(e){var t=e.hasAccentLetter,n=e.subname,r=e.hasTicker,o=e.hideName;return{provider:e.provider,"has-logout":Object(D.bool2string)(this.context.processLogout),"has-accent-letter":Object(D.bool2string)(t),"has-subname":Object(D.bool2string)(n),"has-ticker":Object(D.bool2string)(r),"hide-name":Object(D.bool2string)(o),focused:Object(D.bool2string)(this.state.focused),hovered:Object(D.bool2string)(this.state.hovered)}},content:function(e){var t=e.name,n=e.pic,r=e.camera,o=e.origin,a=e.avatarId,c=e.avatarHost,s=e.hasAccentLetter,u=e.children,l=e.subname,f=e.isCurrent,p=e.provider,h=e.plus,d=e.maxLength;if(u)return u;t=t&&this._cleverSubstring(t,d);var y=[];return n&&(n.avatarId&&(a=n.avatarId),y.push(i.a.createElement(K,Y({key:"pic"},{pic:n,avatarId:a,avatarHost:c,provider:p,plus:h,camera:r,origin:o})))),!1!==t&&(l&&l!==t?y.push(i.a.createElement(q,Y({key:"name"},{hasAccentLetter:s}),t,i.a.createElement(X,{subname:l}))):y.push(i.a.createElement(q,Y({key:"name"},{hasAccentLetter:s,text:t})))),this.context.processLogout&&!f?y.concat(i.a.createElement(Z,{key:"logout",glyph:"x-sign",size:"xs",mix:{block:this.block,elem:"logout"},attrs:{onClick:this._processLogout.bind(this)}})):y},onFocus:function(){this.setState({focused:!0})},onBlur:function(){this.setState({focused:!1})},onMouseOver:function(e){this.setState({hovered:!0}),this.props.onMouseOver&&this.props.onMouseOver(e)},onMouseLeave:function(){this.setState({hovered:!1})},_changeUser:function(e){this.isLogoutClick?this.isLogoutClick=!1:!this.props.isCurrent&&!this.props.isAddAccount&&this.context.changeUser&&this.context.changeUser(e,this.props.uid)},_processLogout:function(e){this.isLogoutClick=!0;var t=this.context.menuItems||{};this.context.processLogout(e,this.props.uid,t[this.props.uid])},_cleverSubstring:function(e,t){return e.length>t?e.substring(0,t-1)+"…":e}},{propTypes:{uid:v.a.string,url:v.a.string,isCurrent:v.a.bool,isAddAccount:v.a.bool,avatarHost:v.a.string,pic:v.a.bool,hasAccentLetter:v.a.bool,tickerMaxCount:v.a.number,tickerCount:v.a.number,hideName:v.a.string,hasTicker:v.a.string,onMouseOver:v.a.func,maxLength:v.a.number,camera:v.a.bool,origin:v.a.string},defaultProps:{maxLength:16},contextTypes:{changeUser:v.a.func,processLogout:v.a.func,menuItems:v.a.object}}),J=(Object(D.declMod)({hasAccentLetter:!0},{block:"user-account",elem:"name",content:function(e){var t=e.text,n=e.children;if(t&&!n){var r=String(t);return[r=r.replace(/^([^@#]?)([@#])/,"$1​$2​")]}return n}},{propTypes:{text:v.a.string}}),Object(D.decl)({block:"ticker",elem:"value",tag:"span",content:function(e){var t=e.count,n=e.maxCount;return t>n?"".concat(n):t},attrs:function(e){return{title:e.count}}},{propTypes:{count:v.a.number,maxCount:v.a.number},defaultProps:{count:0,maxCount:99}}));n(635);function Q(){return(Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ee=J.applyDecls(),te=n(25)().decl(n(636))("ticker__text"),ne=Object(D.decl)({block:"ticker",elem:"count",tag:function(e){return e.url?"a":"span"},attrs:function(e){return{href:e.url}},content:function(e){var t=e.url,n=e.count,r=e.maxCount,o=this.block,a=this.props.mix;return[i.a.createElement(A.a,{key:"text",block:o,elem:"text",mix:{block:"a11y-hidden"}},te("notifications")),i.a.createElement(ee,Q({key:"value"},{count:n,maxCount:r,mix:!t&&[{block:o,elem:"plain"},a]}))]}},{propTypes:{url:v.a.string,count:v.a.number,maxCount:v.a.number},defaultProps:{count:0,maxCount:99}}),re=(n(637),n(247),ne.applyDecls()),oe=Object(D.decl)({block:"ticker",tag:"span",attrs:function(e){return{title:e.count,role:"alert","aria-live":"assertive","aria-atomic":"true"}},mods:function(e){return{state:e.count?"normal":"empty"}},content:function(e){var t=e.url,n=e.count,r=e.maxCount;return i.a.createElement(re,{url:t,count:n,maxCount:r})}},{propTypes:{url:v.a.string,count:v.a.number,maxCount:v.a.number},defaultProps:{count:0,maxCount:99}});n(638),n(639),n(640);function ie(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var ae=oe.applyDecls(),ce=Object(D.declMod)(function(e){var t=e.hasTicker,n=e.tickerCount;return t||n},{block:"user-account",content:function(e){var t=e.tickerCount,n=e.tickerMaxCount,r=e.children;if(r)return r;var o=this.block;return[].concat(ie(this.__base.apply(this,arguments)),[i.a.createElement(ae,{key:"ticker",mix:{block:o,elem:"ticker"},count:t,maxCount:n})])}},{propTypes:{hasTicker:v.a.bool,tickerCount:v.a.number}}),se=(n(163),n(164),n(248),n(249),n(170)),ue=(n(219),n(220),n(221),n(222),n(40),n(59),n(102),n(70)),le=(n(57),n(85),n(251),n(213),n(168)),fe=(n(214),n(215),n(111)),pe=(n(165),n(105));function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function de(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=n(110).a.applyDecls(),me=(Object(D.decl)(ye,{block:"user2",elem:"menu-item",mix:function(e){e.action;return[{block:"menu",elem:"item",mods:{type:"link",hovered:Object(D.bool2string)(this.state.hovered)}}].concat(this.__base.apply(this,arguments)||[])},attrs:function(e){var t=e.onClick,n=e.url;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(n,!0).forEach(function(t){de(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{onClick:t,href:n,tabIndex:0})},content:function(e){return e.text}},{propTypes:{action:v.a.string,type:v.a.string,isNavigation:v.a.bool,onClick:v.a.func,url:v.a.string,text:v.a.string},defaultProps:{type:"link",isNavigation:!0,onClick:function(){},url:null,text:null}}),Object(D.decl)({block:"i-services",elem:"uri"},{404:function(e){switch(e){case"ua":return"http://404.yandex.ua";case"by":return"http://404.yandex.by";case"kz":return"http://404.yandex.kz";case"com":return"http://404.yandex.com";case"tr":return"http://404.yandex.com.tr";default:return"http://404.yandex.ru"}},adresa:function(){return"http://adresa.yandex.ru"},ads:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";case"az":return"https://yandex.az";case"il":return"https://yandex.co.il";case"am":return"https://yandex.com.am";case"ge":return"https://yandex.com.ge";case"ee":return"https://yandex.ee";case"fr":return"https://yandex.fr";case"kg":return"https://yandex.kg";case"lt":return"https://yandex.lt";case"lv":return"https://yandex.lv";case"md":return"https://yandex.md";case"tj":return"https://yandex.tj";case"tm":return"https://yandex.tm";case"uz":return"https://yandex.uz";default:return"https://yandex.ru"}},advertising:function(e){switch(e){case"ua":return"https://advertising.yandex.ua";case"by":return"https://advertising.yandex.by";case"kz":return"https://advertising.yandex.kz";case"com":return"https://advertising.yandex.com";case"tr":return"https://yandex.com.tr/adv";default:return"https://advertising.yandex.ru"}},afisha:function(e){switch(e){case"ua":return"https://afisha.yandex.ua";case"by":return"https://afisha.yandex.by";case"kz":return"https://afisha.yandex.kz";default:return"https://afisha.yandex.ru"}},all:function(e){switch(e){case"ua":return"//yandex.ua/all";case"by":return"//yandex.by/all";case"kz":return"//yandex.kz/all";case"com":return"//yandex.com/all";case"tr":return"//yandex.com.tr/all";case"ee":return"//yandex.ee/all";case"uz":return"//yandex.uz/all";default:return"//yandex.ru/all"}},api:function(e){switch(e){case"com":return"http://api.yandex.com";default:return"http://api.yandex.ru"}},appmetrica:function(e){switch(e){case"ua":return"https://appmetrica.yandex.ua";case"by":return"https://appmetrica.yandex.by";case"kz":return"https://appmetrica.yandex.kz";case"com":return"https://appmetrica.yandex.com";case"tr":return"https://appmetrica.yandex.com.tr";default:return"https://appmetrica.yandex.ru"}},appsearch:function(){return"//appsearch.yandex.ru"},audience:function(e){switch(e){case"ua":return"https://audience.yandex.ua";case"by":return"https://audience.yandex.by";case"kz":return"https://audience.yandex.kz";case"com":return"https://audience.yandex.com";case"tr":return"https://audience.yandex.com.tr";default:return"https://audience.yandex.ru"}},auto:function(e){switch(e){case"ua":return"https://auto.yandex.ua";default:return"https://auto.yandex.ru"}},autoru:function(){return"https://auto.ru"},avia:function(e){switch(e){case"ua":return"https://avia.yandex.ua";default:return"https://avia.yandex.ru"}},aziada:function(){return"http://aziada2011.yandex.kz"},ba:function(e){switch(e){case"ua":return"https://ba.yandex.ua";case"by":return"https://ba.yandex.by";case"kz":return"https://ba.yandex.kz";case"com":return"https://ba.yandex.com";default:return"https://ba.yandex.ru"}},backapv:function(){return"http://backapv.yandex.ru"},balance:function(){return"https://balance.yandex.ru"},bar:function(e){switch(e){case"ua":return"http://bar.yandex.ua";case"by":return"http://bar.yandex.by";case"kz":return"http://bar.yandex.kz";case"tr":return"http://bar.yandex.com.tr";default:return"http://bar.yandex.ru"}},"bar-ie":function(e){switch(e){case"ua":return"http://bar.yandex.ua/ie";case"by":return"http://bar.yandex.by/ie";case"kz":return"http://bar.yandex.kz/ie";case"com":return"http://bar.yandex.com/ie";case"tr":return"http://bar.yandex.com.tr/ie";default:return"http://bar.yandex.ru/ie"}},"bar-ie9":function(e){switch(e){case"ua":return"http://bar.yandex.ua/ie";case"by":return"http://bar.yandex.by/ie";case"kz":return"http://bar.yandex.kz/ie";case"com":return"http://bar.yandex.com/ie";case"tr":return"http://bar.yandex.com.tr/ie";default:return"http://bar.yandex.ru/ie"}},bayan:function(){return"http://bayan.yandex.ru"},blogs:function(e){switch(e){case"ua":return"https://blogs.yandex.ua";case"by":return"https://blogs.yandex.by";case"kz":return"https://blogs.yandex.kz";default:return"https://blogs.yandex.ru"}},books:function(){return"http://books.yandex.ru"},browser:function(e){switch(e){case"ua":return"https://browser.yandex.ua";case"by":return"https://browser.yandex.by";case"kz":return"https://browser.yandex.kz";case"com":return"https://browser.yandex.com";case"tr":return"https://browser.yandex.com.tr";default:return"https://browser.yandex.ru"}},"business-all":function(e){switch(e){case"com":return"https://business.yandex.com";default:return"https://business.yandex.ru"}},calendar:function(){return"https://calendar.yandex.ru"},catalogwdgt:function(){return"https://www.yandex.ru/catalog"},chrome:function(){return"http://chrome.yandex.ru"},city:function(e){switch(e){case"ua":return"https://gorod.yandex.ua";case"by":return"https://gorod.yandex.by";case"kz":return"https://gorod.yandex.kz";case"com":return"https://city.yandex.com";case"tr":return"https://city.yandex.com.tr";default:return"https://gorod.yandex.ru"}},cityday:function(){return"http://cityday.yandex.ru"},clickhouse:function(){return"https://clickhouse.yandex/"},collection:function(){return"https://collection.yandex.ru"},collections:function(e){switch(e){case"ua":return"https://yandex.ua/collections/";case"by":return"https://yandex.by/collections/";case"kz":return"https://yandex.kz/collections/";default:return"https://yandex.ru/collections/"}},commander:function(e){switch(e){case"ua":case"by":case"kz":case"com":case"tr":default:return"https://yandex.ru/promo/commander/new?source=tableau_direct"}},company:function(e){switch(e){case"com":return"https://company.yandex.com";case"tr":return"https://company.yandex.com.tr";default:return"https://company.yandex.ru"}},contest:function(e){switch(e){case"com":return"https://contest.yandex.com";default:return"https://contest.yandex.ru"}},delivery:function(){return"https://delivery.yandex.ru"},desktop:function(){return"http://desktop.yandex.ru"},direct:function(e){switch(e){case"ua":return"https://direct.yandex.ua";case"by":return"https://direct.yandex.by";case"kz":return"https://direct.yandex.kz";case"com":return"https://direct.yandex.com";case"tr":return"https://direct.yandex.com.tr";default:return"https://direct.yandex.ru"}},"direct-api":function(e){switch(e){case"ua":case"by":case"kz":return"https://tech.yandex.ru/direct/?source=tableau_direct";case"com":case"tr":return"https://tech.yandex.com/direct/?source=tableau_direct";default:return"https://tech.yandex.ru/direct/?source=tableau_direct"}},"direct.market":function(){return"https://partner.market.yandex.ru/yandex.market/"},disk:function(e){switch(e){case"ua":return"https://disk.yandex.ua";case"by":return"https://disk.yandex.by";case"kz":return"https://disk.yandex.kz";case"com":return"https://disk.yandex.com";case"tr":return"https://disk.yandex.com.tr";case"az":return"https://disk.yandex.az";case"il":return"https://disk.yandex.co.il";case"am":return"https://disk.yandex.com.am";case"ge":return"https://disk.yandex.com.ge";case"ee":return"https://disk.yandex.ee";case"fr":return"https://disk.yandex.fr";case"kg":return"https://disk.yandex.kg";case"lt":return"https://disk.yandex.lt";case"lv":return"https://disk.yandex.lv";case"md":return"https://disk.yandex.md";case"tj":return"https://disk.yandex.tj";case"tm":return"https://disk.yandex.tm";case"uz":return"https://disk.yandex.uz";default:return"https://disk.yandex.ru"}},display:function(e){switch(e){case"tr":return"https://display.yandex.com.tr";default:return"https://display.yandex.ru"}},ege:function(e){switch(e){case"ua":return"https://zno.yandex.ua";default:return"https://ege.yandex.ru"}},ether:function(e){switch(e){case"kz":return"https://yandex.kz/portal/efir?stream_active=storefront";default:return"https://yandex.ru/portal/efir?stream_active=storefront"}},expert:function(){return"http://expert.yandex.ru"},feedback:function(e){switch(e){case"ua":return"http://feedback.yandex.ua";case"by":return"http://feedback.yandex.by";case"kz":return"http://feedback.yandex.kz";case"com":return"http://feedback.yandex.com";case"tr":return"http://contact.yandex.com.tr";default:return"http://feedback.yandex.ru"}},feedback2:function(e){switch(e){case"ua":return"//feedback2.yandex.ua";case"by":return"//feedback2.yandex.by";case"kz":return"//feedback2.yandex.kz";case"com":return"//feedback2.yandex.com";case"tr":return"//contact2.yandex.com.tr";default:return"//feedback2.yandex.ru"}},ff:function(){return"http://ff.yandex.ru"},fotki:function(){return"https://fotki.yandex.ru"},fresh:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";default:return"https://yandex.ru"}},fx:function(e){switch(e){case"ua":return"https://fx.yandex.ua";case"tr":return"https://fx.yandex.com.tr";default:return"https://fx.yandex.ru"}},games:function(){return"http://games.yandex.ru"},geocontext:function(){return"https://geocontext.yandex.ru"},goroda:function(){return"http://goroda.yandex.ru"},help:function(e){switch(e){case"ua":return"https://help.yandex.ua";case"com":return"https://help.yandex.com";case"tr":return"https://yardim.yandex.com.tr";default:return"https://help.yandex.ru"}},i:function(){return"http://i.yandex.ru"},ie:function(e){switch(e){case"ua":return"https://ie.yandex.ua";case"tr":return"https://ie.yandex.com.tr";default:return"https://ie.yandex.ru"}},images:function(e){switch(e){case"ua":return"https://yandex.ua/images/";case"by":return"https://yandex.by/images/";case"kz":return"https://yandex.kz/images/";case"com":return"https://yandex.com/images/";case"tr":return"https://yandex.com.tr/gorsel/";case"az":return"https://yandex.az/images/";case"il":return"https://yandex.co.il/images/";case"am":return"https://yandex.com.am/images/";case"ge":return"https://yandex.com.ge/images/";case"ee":return"https://yandex.ee/images/";case"fr":return"https://yandex.fr/images/";case"kg":return"https://yandex.kg/images/";case"lt":return"https://yandex.lt/images/";case"lv":return"https://yandex.lv/images/";case"md":return"https://yandex.md/images/";case"tj":return"https://yandex.tj/images/";case"tm":return"https://yandex.tm/images/";case"uz":return"https://yandex.uz/images/";default:return"https://yandex.ru/images/"}},interests:function(){return"http://interests.yandex.ru"},internet:function(e){switch(e){case"com":return"//internet.yandex.com";case"tr":return"//internet.yandex.com.tr";default:return"//internet.yandex.ru"}},kassa:function(){return"https://kassa.yandex.ru"},keyboard:function(){return"http://www.yandex.ru/index_engl_qwerty.html"},kraski:function(){return"http://kraski.yandex.ru"},kuda:function(){return"http://kuda.yandex.ru"},large:function(){return"http://large.yandex.ru"},legal:function(e){switch(e){case"ua":return"https://yandex.ua/legal";case"com":return"https://yandex.com/legal";case"tr":return"https://yandex.com.tr/legal";default:return"https://yandex.ru/legal"}},lenta:function(){return"http://lenta.yandex.ru"},literacy:function(){return"https://literacy.yandex.ru"},local:function(){return"http://local.yandex.ru"},lost:function(){return"http://lost.yandex.ru"},love:function(){return"http://love.yandex.ru"},mail:function(e){switch(e){case"ua":return"https://mail.yandex.ua";case"by":return"https://mail.yandex.by";case"kz":return"https://mail.yandex.kz";case"com":return"https://mail.yandex.com";case"tr":return"https://mail.yandex.com.tr";case"az":return"https://mail.yandex.az";case"il":return"https://mail.yandex.co.il";case"am":return"https://mail.yandex.com.am";case"ge":return"https://mail.yandex.com.ge";case"ee":return"https://mail.yandex.ee";case"fr":return"https://mail.yandex.fr";case"kg":return"https://mail.yandex.kg";case"lt":return"https://mail.yandex.lt";case"lv":return"https://mail.yandex.lv";case"md":return"https://mail.yandex.md";case"tj":return"https://mail.yandex.tj";case"tm":return"https://mail.yandex.tm";case"uz":return"https://mail.yandex.uz";default:return"https://mail.yandex.ru"}},maps:function(e){switch(e){case"ua":return"https://yandex.ua/maps/";case"by":return"https://yandex.by/maps/";case"kz":return"https://yandex.kz/maps/";case"com":return"https://yandex.com/maps/";case"tr":return"https://yandex.com.tr/harita/";case"az":return"https://yandex.az/maps/";case"il":return"https://yandex.co.il/maps/";case"am":return"https://yandex.com.am/maps/";case"ge":return"https://yandex.com.ge/maps/";case"ee":return"https://yandex.ee/maps/";case"fr":return"https://yandex.fr/maps/";case"kg":return"https://yandex.kg/maps/";case"lt":return"https://yandex.lt/maps/";case"lv":return"https://yandex.lv/maps/";case"md":return"https://yandex.md/maps/";case"tj":return"https://yandex.tj/maps/";case"tm":return"https://yandex.tm/maps/";case"uz":return"https://yandex.uz/maps/";default:return"https://yandex.ru/maps/"}},"maps-wiki":function(){return"http://nk.yandex.ru"},market:function(e){switch(e){case"ua":return"https://market.yandex.ua";case"by":return"https://market.yandex.by";case"kz":return"https://market.yandex.kz";default:return"https://market.yandex.ru"}},"market.advertising":function(e){switch(e){case"com":return"https://yandex.com/adv/products/classified/market";default:return"https://yandex.ru/adv/products/classified/market"}},master:function(){return"https://master.yandex.ru"},metrika:function(e){switch(e){case"ua":return"https://metrika.yandex.ua";case"by":return"https://metrika.yandex.by";case"kz":return"https://metrika.yandex.kz";case"com":return"https://metrica.yandex.com";case"tr":return"https://metrica.yandex.com.tr";case"az":return"https://metrika.yandex.az";case"il":return"https://metrika.yandex.co.il";case"am":return"https://metrika.yandex.com.am";case"ge":return"https://metrika.yandex.com.ge";case"ee":return"https://metrika.yandex.ee";case"fr":return"https://metrika.yandex.fr";case"kg":return"https://metrika.yandex.kg";case"lt":return"https://metrika.yandex.lt";case"lv":return"https://metrika.yandex.lv";case"md":return"https://metrika.yandex.md";case"tj":return"https://metrika.yandex.tj";case"tm":return"https://metrika.yandex.tm";case"uz":return"https://metrika.yandex.uz";default:return"https://metrika.yandex.ru"}},metro:function(){return"https://metro.yandex.ru"},mobile:function(e){switch(e){case"ua":return"https://mobile.yandex.ua";case"tr":return"https://mobil.yandex.com.tr";default:return"https://mobile.yandex.ru"}},moikrug:function(){return"http://moikrug.ru"},money:function(){return"https://money.yandex.ru"},museums:function(){return"http://18.yandex.ru"},music:function(e){switch(e){case"ua":return"https://music.yandex.ua";case"by":return"https://music.yandex.by";case"kz":return"https://music.yandex.kz";default:return"https://music.yandex.ru"}},"music-partner":function(){return"http://music-partner.yandex.ru"},nahodki:function(e){switch(e){case"ua":return"https://nahodki.yandex.ua";case"kz":return"https://nahodki.yandex.kz";default:return"https://nahodki.yandex.ru"}},nano:function(){return"http://nano.yandex.ru"},news:function(e){switch(e){case"ua":return"https://news.yandex.ua";case"by":return"https://news.yandex.by";case"kz":return"https://news.yandex.kz";case"com":return"https://news.yandex.com";case"tr":return"https://haber.yandex.com.tr";case"az":return"https://news.yandex.az";case"il":return"https://news.yandex.co.il";case"am":return"https://news.yandex.com.am";case"ge":return"https://news.yandex.com.ge";case"ee":return"https://news.yandex.ee";case"fr":return"https://news.yandex.fr";case"kg":return"https://news.yandex.kg";case"lt":return"https://news.yandex.lt";case"lv":return"https://news.yandex.lv";case"md":return"https://news.yandex.md";case"tj":return"https://news.yandex.tj";case"tm":return"https://news.yandex.tm";case"uz":return"https://news.yandex.uz";default:return"https://news.yandex.ru"}},notifications:function(e){switch(e){case"ua":return"https://notifications.yandex.ua";case"by":return"https://notifications.yandex.by";case"kz":return"https://notifications.yandex.kz";case"com":return"https://notifications.yandex.com";case"tr":return"https://notifications.yandex.com.tr";default:return"https://notifications.yandex.ru"}},oauth:function(e){switch(e){case"com":return"https://oauth.yandex.com";default:return"https://oauth.yandex.ru"}},online:function(){return"http://online.yandex.ru"},openid:function(){return"http://openid.yandex.ru"},opera:function(e){switch(e){case"tr":return"https://opera.yandex.com.tr";default:return"https://opera.yandex.ru"}},opinion:function(){return"http://opinion.yandex.ru"},partners:function(e){switch(e){case"ua":return"http://partner.yandex.ua";case"by":return"http://partner.yandex.by";case"kz":return"http://partner.yandex.kz";case"com":return"http://partner.yandex.com";default:return"http://partner.yandex.ru"}},"partners-en":function(e){switch(e){case"ua":return"http://partner.yandex.ua";case"by":return"http://partner.yandex.by";case"kz":return"http://partner.yandex.kz";case"com":return"http://partner.yandex.com";default:return"http://partner.yandex.ru"}},partnersearch:function(){return"http://yandex.ru"},pass:function(e){switch(e){case"ua":return"https://pass.yandex.ua";case"by":return"https://pass.yandex.by";case"kz":return"https://pass.yandex.kz";case"com":return"https://pass.yandex.com";case"tr":return"https://pass.yandex.com.tr";case"az":return"https://pass.yandex.az";case"il":return"https://pass.yandex.co.il";case"am":return"https://pass.yandex.com.am";case"ge":return"https://pass.yandex.com.ge";case"ee":return"https://pass.yandex.ee";case"fr":return"https://pass.yandex.fr";case"kg":return"https://pass.yandex.kg";case"lt":return"https://pass.yandex.lt";case"lv":return"https://pass.yandex.lv";case"md":return"https://pass.yandex.md";case"tj":return"https://pass.yandex.tj";case"tm":return"https://pass.yandex.tm";case"uz":return"https://pass.yandex.uz";default:return"https://pass.yandex.ru"}},passport:function(e){switch(e){case"ua":return"https://passport.yandex.ua";case"by":return"https://passport.yandex.by";case"kz":return"https://passport.yandex.kz";case"com":return"https://passport.yandex.com";case"tr":return"https://passport.yandex.com.tr";case"az":return"https://passport.yandex.az";case"il":return"https://passport.yandex.co.il";case"am":return"https://passport.yandex.com.am";case"ge":return"https://passport.yandex.com.ge";case"ee":return"https://passport.yandex.ee";case"fr":return"https://passport.yandex.fr";case"kg":return"https://passport.yandex.kg";case"lt":return"https://passport.yandex.lt";case"lv":return"https://passport.yandex.lv";case"md":return"https://passport.yandex.md";case"tj":return"https://passport.yandex.tj";case"tm":return"https://passport.yandex.tm";case"uz":return"https://passport.yandex.uz";default:return"https://passport.yandex.ru"}},patents:function(){return"//yandex.ru/patents"},pdd:function(){return"https://pdd.yandex.ru"},peoplesearch:function(e){switch(e){case"ua":return"http://people.yandex.ua";default:return"http://people.yandex.ru"}},perevod:function(){return"https://perevod.yandex.ru"},plus:function(e){switch(e){case"by":return"https://plus.yandex.by";case"kz":return"https://plus.yandex.kz";default:return"https://plus.yandex.ru"}},probki:function(e){switch(e){case"ua":return"http://probki.yandex.ua";default:return"http://probki.yandex.ru"}},pulse:function(e){switch(e){case"ua":return"http://blogs.yandex.ua/pulse";case"by":return"http://blogs.yandex.by/pulse";case"kz":return"http://blogs.yandex.kz/pulse";default:return"http://blogs.yandex.ru/pulse"}},punto:function(){return"https://punto.yandex.ru"},pvo:function(){return"http://ask.yandex.ru"},rabota:function(e){switch(e){case"ua":return"https://rabota.yandex.ua";case"by":return"https://rabota.yandex.by";case"kz":return"https://rabota.yandex.kz";default:return"https://rabota.yandex.ru"}},radar:function(e){switch(e){case"ru":return"https://radar.metrika.yandex?lang=ru";case"com":return"https://radar.metrika.yandex?lang=en";case"tr":return"https://radar.metrika.yandex?lang=tr";default:return"https://radar.metrika.yandex"}},rasp:function(e){switch(e){case"ua":return"https://rasp.yandex.ua";case"by":return"https://rasp.yandex.by";case"kz":return"https://rasp.yandex.kz";case"tr":return"https://seferler.yandex.com.tr";default:return"https://rasp.yandex.ru"}},realty:function(e){switch(e){case"ua":return"https://realty.yandex.ua";case"by":return"https://realty.yandex.by";case"kz":return"https://realty.yandex.kz";default:return"https://realty.yandex.ru"}},referats:function(){return"https://referats.yandex.ru"},review:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";default:return"https://yandex.ru"}},rk:function(){return"http://rk.yandex.ru"},root:function(){return"https://root.yandex.ru"},school:function(){return"http://school.yandex.ru"},search:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";case"az":return"https://yandex.az";case"il":return"https://yandex.co.il";case"am":return"https://yandex.com.am";case"ge":return"https://yandex.com.ge";case"ee":return"https://yandex.ee";case"fr":return"https://yandex.fr";case"kg":return"https://yandex.kg";case"lt":return"https://yandex.lt";case"lv":return"https://yandex.lv";case"md":return"https://yandex.md";case"tj":return"https://yandex.tj";case"tm":return"https://yandex.tm";case"uz":return"https://yandex.uz";default:return"https://yandex.ru"}},serp:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";case"az":return"https://yandex.az";case"il":return"https://yandex.co.il";case"am":return"https://yandex.com.am";case"ge":return"https://yandex.com.ge";case"ee":return"https://yandex.ee";case"fr":return"https://yandex.fr";case"kg":return"https://yandex.kg";case"lt":return"https://yandex.lt";case"lv":return"https://yandex.lv";case"md":return"https://yandex.md";case"tj":return"https://yandex.tj";case"tm":return"https://yandex.tm";case"uz":return"https://yandex.uz";default:return"https://yandex.ru"}},server:function(){return"http://company.yandex.ru/technology/server/"},shtrafi:function(){return"https://money.yandex.net/debts"},site:function(e){switch(e){case"ua":return"https://site.yandex.ua";case"tr":return"https://ozel.yandex.com.tr";default:return"https://site.yandex.ru"}},slovari:function(e){switch(e){case"ua":return"https://slovari.yandex.ua";case"by":return"https://slovari.yandex.by";case"kz":return"https://slovari.yandex.kz";default:return"https://slovari.yandex.ru"}},so:function(){return"http://so.yandex.ru"},social:function(e){switch(e){case"ua":return"https://social.yandex.ua";case"by":return"https://social.yandex.by";case"kz":return"https://social.yandex.kz";case"com":return"https://social.yandex.ru";case"tr":return"https://social.yandex.com.tr";default:return"https://social.yandex.ru"}},soft:function(e){switch(e){case"ua":return"https://soft.yandex.ua";case"tr":return"https://soft.yandex.com.tr";default:return"https://soft.yandex.ru"}},sport:function(e){switch(e){case"ua":return"http://sport.yandex.ua";case"by":return"http://sport.yandex.by";case"kz":return"http://sport.yandex.kz";case"tr":return"http://spor.yandex.com.tr";default:return"http://sport.yandex.ru"}},sprav:function(e){switch(e){case"ua":return"https://yandex.ru/sprav";case"by":return"https://sprav.yandex.by";case"kz":return"https://sprav.yandex.kz";case"com":return"https://yandex.com/sprav";case"tr":return"https://rehber.yandex.com.tr";default:return"https://sprav.yandex.ru"}},start:function(e){switch(e){case"ua":return"https://help.yandex.ua/start/";case"com":return"https://help.yandex.com/start/";case"tr":return"https://yardim.yandex.com.tr/start";default:return"https://help.yandex.ru/start/"}},stat:function(e){switch(e){case"ua":return"https://stat.yandex.ua";case"by":return"https://stat.yandex.by";default:return"https://stat.yandex.ru"}},subs:function(){return"https://subs.yandex.ru"},support:function(e){switch(e){case"ua":return"https://yandex.ua/support/";case"by":return"https://yandex.by/support/";case"kz":return"https://yandex.kz/support/";case"com":return"https://yandex.com/support/";case"tr":return"https://yandex.com.tr/support/";default:return"https://yandex.ru/support/"}},surveys:function(){return"https://surveys.yandex.ru"},taxi:function(){return"https://taxi.yandex.ru"},telephony:function(){return"https://telephony.yandex.ru/"},terms:function(){return"http://terms.yandex.ru"},tests:function(){return"http://tests.yandex.ru"},ticket:function(){return"http://ticket.yandex.ru"},time:function(e){switch(e){case"ua":return"https://time.yandex.ua";case"by":return"https://time.yandex.by";case"kz":return"https://time.yandex.kz";case"com":return"https://time.yandex.com";case"tr":return"https://saat.yandex.com.tr";default:return"https://time.yandex.ru"}},toloka:function(e){switch(e){case"com":return"https://toloka.yandex.com";case"tr":return"https://toloka.yandex.com.tr";default:return"https://toloka.yandex.ru"}},toster:function(){return"http://toster.yandex.ru"},translate:function(e){switch(e){case"ua":return"https://translate.yandex.ua";case"by":return"https://translate.yandex.by";case"kz":return"https://translate.yandex.kz";case"com":return"https://translate.yandex.com";case"tr":return"https://ceviri.yandex.com.tr";case"az":return"https://translate.yandex.az";case"il":return"https://translate.yandex.co.il";case"am":return"https://translate.yandex.com.am";case"ge":return"https://translate.yandex.com.ge";case"ee":return"https://translate.yandex.ee";case"fr":return"https://translate.yandex.fr";case"kg":return"https://translate.yandex.kg";case"lt":return"https://translate.yandex.lt";case"lv":return"https://translate.yandex.lv";case"md":return"https://translate.yandex.md";case"tj":return"https://translate.yandex.tj";case"tm":return"https://translate.yandex.tm";case"uz":return"https://translate.yandex.uz";default:return"https://translate.yandex.ru"}},tune:function(e){switch(e){case"ua":return"https://yandex.ua/tune";case"by":return"https://yandex.by/tune";case"kz":return"https://yandex.kz/tune";case"com":return"https://yandex.com/tune";case"tr":return"https://yandex.com.tr/tune";case"uz":return"https://yandex.uz/tune";default:return"https://yandex.ru/tune"}},tv:function(e){switch(e){case"ua":return"https://tv.yandex.ua";case"by":return"https://tv.yandex.by";case"kz":return"https://tv.yandex.kz";default:return"https://tv.yandex.ru"}},tvonline:function(){return"https://yandex.ru/?stream_channel=default"},ugc:function(e){switch(e){case"ua":return"https://yandex.ua/ugcpub/cabinet";case"by":return"https://yandex.by/ugcpub/cabinet";case"kz":return"https://yandex.kz/ugcpub/cabinet";case"com":return"https://yandex.com/ugcpub/cabinet";case"tr":return"https://yandex.com.tr/ugcpub/cabinet";case"az":return"https://yandex.az/ugcpub/cabinet";case"il":return"https://yandex.co.il/ugcpub/cabinet";case"am":return"https://yandex.com.am/ugcpub/cabinet";case"ge":return"https://yandex.com.ge/ugcpub/cabinet";case"ee":return"https://yandex.ee/ugcpub/cabinet";case"fr":return"https://yandex.fr/ugcpub/cabinet";case"kg":return"https://yandex.kg/ugcpub/cabinet";case"lt":return"https://yandex.lt/ugcpub/cabinet";case"lv":return"https://yandex.lv/ugcpub/cabinet";case"md":return"https://yandex.md/ugcpub/cabinet";case"tj":return"https://yandex.tj/ugcpub/cabinet";case"tm":return"https://yandex.tm/ugcpub/cabinet";case"uz":return"https://yandex.uz/ugcpub/cabinet";default:return"https://yandex.ru/ugcpub/cabinet"}},uslugi:function(){return"http://yandex.ru/uslugi"},video:function(e){switch(e){case"ua":return"https://yandex.ua/video/";case"by":return"https://yandex.by/video/";case"kz":return"https://yandex.kz/video/";case"com":return"https://yandex.com/video/";case"tr":return"https://yandex.com.tr/video/";case"az":return"https://yandex.az/video/";case"il":return"https://yandex.co.il/video/";case"am":return"https://yandex.com.am/video/";case"ge":return"https://yandex.com.ge/video/";case"ee":return"https://yandex.ee/video/";case"fr":return"https://yandex.fr/video/";case"kg":return"https://yandex.kg/video/";case"lt":return"https://yandex.lt/video/";case"lv":return"https://yandex.lv/video/";case"md":return"https://yandex.md/video/";case"tj":return"https://yandex.tj/video/";case"tm":return"https://yandex.tm/video/";case"uz":return"https://yandex.uz/video/";default:return"https://yandex.ru/video/"}},vno:function(){return"https://zno.yandex.ua"},wdgt:function(e){switch(e){case"ua":return"https://wdgt.yandex.ua";case"by":return"https://wdgt.yandex.by";case"kz":return"https://wdgt.yandex.kz";case"tr":return"https://wdgt.yandex.com.tr";default:return"https://wdgt.yandex.ru"}},weather:function(e){switch(e){case"ua":return"https://pogoda.yandex.ua";case"by":return"https://pogoda.yandex.by";case"kz":return"https://pogoda.yandex.kz";case"tr":return"https://hava.yandex.com.tr";case"az":return"https://pogoda.yandex.az";case"il":return"https://pogoda.yandex.co.il";case"am":return"https://pogoda.yandex.com.am";case"ge":return"https://pogoda.yandex.com.ge";case"ee":return"https://pogoda.yandex.ee";case"fr":return"https://pogoda.yandex.fr";case"kg":return"https://pogoda.yandex.kg";case"lt":return"https://pogoda.yandex.lt";case"lv":return"https://pogoda.yandex.lv";case"md":return"https://pogoda.yandex.md";case"tj":return"https://pogoda.yandex.tj";case"tm":return"https://pogoda.yandex.tm";case"uz":return"https://pogoda.yandex.uz";default:return"https://pogoda.yandex.ru"}},webmaster:function(e){switch(e){case"ua":return"https://webmaster.yandex.ua";case"com":return"https://webmaster.yandex.com";case"tr":return"https://webmaster.yandex.com.tr";default:return"https://webmaster.yandex.ru"}},"webmaster-api":function(e){switch(e){case"com":case"tr":return"https://tech.yandex.com/webmaster/";default:return"https://tech.yandex.ru/webmaster/"}},widgets:function(e){switch(e){case"ua":return"https://widgets.yandex.ua";case"by":return"https://widgets.yandex.by";case"kz":return"https://widgets.yandex.kz";case"tr":return"https://widgets.yandex.com.tr";default:return"https://widgets.yandex.ru"}},wordstat:function(){return"https://wordstat.yandex.ru"},wow:function(){return"http://my.ya.ru"},www:function(e){switch(e){case"ua":return"https://yandex.ua";case"by":return"https://yandex.by";case"kz":return"https://yandex.kz";case"com":return"https://yandex.com";case"tr":return"https://yandex.com.tr";case"az":return"https://yandex.az";case"il":return"https://yandex.co.il";case"am":return"https://yandex.com.am";case"ge":return"https://yandex.com.ge";case"ee":return"https://yandex.ee";case"fr":return"https://yandex.fr";case"kg":return"https://yandex.kg";case"lt":return"https://yandex.lt";case"lv":return"https://yandex.lv";case"md":return"https://yandex.md";case"tj":return"https://yandex.tj";case"tm":return"https://yandex.tm";case"uz":return"https://yandex.uz";default:return"https://yandex.ru"}},xmlsearch:function(e){switch(e){case"ua":return"https://xml.yandex.ua";case"by":return"https://xml.yandex.by";case"kz":return"https://xml.yandex.kz";case"com":return"https://xml.yandex.com";case"tr":return"https://xml.yandex.com.tr";default:return"https://xml.yandex.ru"}},yaca:function(e){switch(e){case"ua":return"https://yaca.yandex.ua";case"by":return"https://yaca.yandex.by";default:return"https://yaca.yandex.ru"}},yamb:function(){return"https://yamb.yandex.ru"},zakladki:function(){return"http://zakladki.yandex.ru"},znatoki:function(){return"https://yandex.ru/znatoki/"}}).applyDecls()),be=n(25)().decl(n(641))("i-services"),ve=Object(D.decl)({block:"i-services"},{serviceName:function(e){return be(e)},serviceUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ru";return me[e](t)}});function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=ve.applyDecls(),we=n(25)().decl(n(34))("user2");Object(D.declMod)({action:"disk"},{block:"user2",elem:"menu-item",attrs:function(e){var t=e.contentRegion;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(n,!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:Oe.serviceUrl("disk",t)+"?source=main-loginmenu"})},content:function(){return we("upload_files")}});function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=n(25)().decl(n(34))("user2");Object(D.declMod)({action:"edit-accounts"},{block:"user2",elem:"menu-item",attrs:function(){var e=this.props,t=e.passportLinkParams,n=e.passportHost,r=e.retpathEncoded,o="".concat(n,"/auth?mode=edit&retpath=").concat(r);return""!==t&&(o+="&".concat(t)),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(n,!0).forEach(function(t){Se(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:o})},content:function(){return ke("edit-accounts")}});function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var je=n(25)().decl(n(34))("user2");Object(D.declMod)({action:"exit"},{block:"user2",elem:"menu-item",willInit:function(){this.__base.apply(this,arguments),this._processClick=this._processClick.bind(this)},attrs:function(){var e=this.props.exitUrl,t=this.props.passportLinkParams;return""!==t&&(e+="&".concat(t)),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xe(n,!0).forEach(function(t){Re(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{onClick:this._processClick,href:e})},content:function(){return je("exit")},_processClick:function(e){this.props.onClick&&this.props.onClick(e),this.props.onLogout&&this.props.onLogout(e)}});function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Te=ve.applyDecls(),Ie=n(25)().decl(n(34))("user2"),De=(Object(D.declMod)({action:"mail-compose"},{block:"user2",elem:"menu-item",attrs:function(e){e.contentRegion;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(n,!0).forEach(function(t){Ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:Te.serviceUrl("mail")+"/compose"})},content:function(){return Ie("mail_compose")}}),n(250),n(643),Object(D.decl)({tag:"span",block:"user2",elem:"menu-counter",mods:function(){return{state:0===this.props.count&&"empty"}},content:function(){var e=this.props,t=e.count,n=e.maxCount;return t>n?n:t}},{propTypes:{count:b.number.isRequired,maxCount:b.number},defaultProps:{maxCount:9999}}));function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=ve.applyDecls(),Le=De.applyDecls();Object(D.declMod)({action:"mail"},{block:"user2",elem:"menu-item",content:function(){var e=this.props,t=e.contentRegion,n=e.unreadCount;return[ze.serviceName("mail",t),o.createElement(Le,{key:"menu-counter",count:n})]},attrs:function(e){var t=e.contentRegion;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(n,!0).forEach(function(t){Me(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:ze.serviceUrl("mail",t)})}},{propTypes:{contentRegion:b.string.isRequired,unreadCount:b.number.isRequired}});function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=n(25)().decl(n(34))("user2");Object(D.declMod)({action:"passport"},{block:"user2",elem:"menu-item",attrs:function(){var e=this.props.passportHost,t=this.props.passportLinkParams;return""!==t&&(e+="?".concat(t)),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(n,!0).forEach(function(t){He(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:e})},content:function(){return Ue("passport")}});function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fe=ve.applyDecls(),We=n(25)().decl(n(34))("user2"),Ge=(Object(D.declMod)({action:"settings"},{block:"user2",elem:"menu-item",attrs:function(e){var t=e.contentRegion;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(n,!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{href:Fe.serviceUrl("tune",t)})},content:function(){return We("settings")}}),Object(D.decl)({block:"user2",elem:"plus-badge",tag:"span"}));n(644);function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(n,!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xe=ve.applyDecls(),Ze=n(25)().decl(n(34))("user2"),$e=Ge.applyDecls(),Je=Object(D.declMod)({action:"plus"},{block:"user2",elem:"menu-item",mods:function(e){var t=e.hidden,n=e.plus;return qe({},this.__base.apply(this,arguments),{"plus-icon":Object(D.bool2string)(n),hidden:Object(D.bool2string)(t)})},attrs:function(e){e.passportHost;var t=e.plus,n=e.plusLinkParams,r=e.contentRegion,o=this.props.passportLinkParams;n="string"==typeof n?n:"";var i=Xe.serviceUrl("plus",r)+n;return t&&(i=Xe.serviceUrl("passport",r)+"/profile/services",""!==o&&(i+="?".concat(o))),qe({},this.__base.apply(this,arguments),{href:i,target:"_blank"})},content:function(e){var t=e.plus;return[t&&i.a.createElement($e,{key:"plus-badge"}),Ze(t?"ya_plus_on":"ya_plus")]}}),Qe=(n(645),n(646),n(647),n(648),n(649),n(115)),et=(n(216),n(217),n(650),pe.a.applyDecls()),tt=$.applyDecls(),nt=V.applyDecls(),rt=z.applyDecls(),ot=Qe.a.applyDecls(),it=n(25)().decl(n(34))("user2"),at=Object(D.decl)({block:"user2",elem:"accounts",content:function(e){var t=e.retpathEncoded,n=e.addAccountHidden,r=e.mix,o=e.children,a=this.props,c=a.passportHost,s=a.passportLinkParams,u="".concat(c,"/auth?mode=add-user&retpath=").concat(t);return""!==s&&(u+="&".concat(s)),[i.a.createElement(A.a,{key:"accounts-container",block:this.block,elem:"accounts-container"},this.processChildren(o)),i.a.createElement(et,{key:"add-account"},i.a.createElement(tt,{isAddAccount:!0,key:"add-account",url:u,mix:[r,{block:this.block,elem:"add-account",mods:{hidden:Object(D.bool2string)(n)}}]},i.a.createElement(nt,null),i.a.createElement(rt,{text:it("add-account")})))]},processChildren:function(e){var t=this;if(e){var n=this.context.registerUserItem||function(){};return o.Children.map(e,function(e,r){return i.a.createElement(et,{type:"account",key:"".concat(r),ref:function(t){return n(e.props.uid,t)}},Object(o.cloneElement)(e,{provider:t.props.provider,avatarHost:t.props.avatarHost,plus:t.context.isPlusAvailable&&e.props.plus}))})}if(this.props.fetchAccounts)return i.a.createElement(ot,{size:"xs",progress:!0,mix:{block:this.block,elem:"accounts-spin"}})}},{contextTypes:{isPlusAvailable:v.a.bool,registerUserItem:v.a.func}}),ct=(n(651),n(196),n(197),n(198),M.a.applyDecls()),st=n(25)().decl(n(34))("user2"),ut=ve.applyDecls(),lt=Object(D.decl)({block:"user2",elem:"menu-footer",content:function(e){var t=e.settingsUrl,n=e.settingsLinkTarget,r=e.helpUrl,o=e.helpLinkTarget,a=e.contentRegion;return[i.a.createElement(ct,{key:"settings",size:"s",type:"link",theme:"clear",mix:{block:this.block,elem:"footer-link"},url:t||ut.serviceUrl("tune",a),text:st("settings"),target:n||void 0}),i.a.createElement(ct,{key:"help",size:"s",type:"link",theme:"clear",mix:{block:this.block,elem:"footer-link"},url:r||ut.serviceUrl("support",a),text:st("help"),target:o||void 0})]}}),ft=(n(652),Object(D.declMod)({glyph:"type-close"},{block:"icon",content:function(){return i.a.createElement("svg",{focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",viewBox:"0 0 10 10"},i.a.createElement("polygon",{points:"10,0.714 9.287,0 5,4.286 0.714,0 0,0.714 4.286,5 0,9.285 0.714,10 5,5.714 9.287,10 10,9.285 5.714,5"}))}})),pt=(n(653),ft.applyDecls());Object(D.decl)({block:"user-hat",willInit:function(e){var t=e.banner,n=void 0===t?{}:t,r=e.hidden,o=n.background,i=void 0===o?"":o,a=n.closeUrl,c=void 0===a?"":a,s=n.foreground,u=void 0===s?"":s,l=n.text,f=void 0===l?"":l,p=n.title,h=void 0===p?"":p,d=n.transformOrigin,y=void 0===d?"":d,m=n.showUrl,b=void 0===m?"":m,v=n.url,_=void 0===v?"":v,g=this.stringifyParams_(n.urlParams);this.state={bannerUrl:this.constructUrl_(_,g),bg:i,closeUrl:c,fg:u,hidden:r,origin:y,showUrl:b,text:f,title:h,urlParams:g},this.onCloseButtonClick_=this.onCloseButtonClick_.bind(this),this.onBannerClick_=this.onBannerClick_.bind(this),this.onBannerShow_=this.onBannerShow_.bind(this)},willReceiveProps:function(e){var t=e.hidden;t!==this.props.hidden&&(this.setState({hidden:t}),t||(this.onBannerShow_(),this.insertHiddenImage_(this.state.showUrl,"show-img")))},didMount:function(){this.props.hidden||(this.onBannerShow_(),this.insertHiddenImage_(this.state.showUrl,"show-img"))},mods:function(){return{hidden:Object(D.bool2string)(this.state.hidden)}},close:function(){this.insertHiddenImage_(this.state.closeUrl,"close-img"),this.setState({hidden:!0})},onCloseButtonClick_:function(e){this.close(),this.props.onCloseButtonClick&&this.props.onCloseButtonClick(e)},onBannerClick_:function(e){this.props.onBannerClick&&this.props.onBannerClick(e)},onBannerShow_:function(e){this.props.onBannerShow&&this.props.onBannerShow(e)},constructUrl_:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?t?-1!==e.indexOf("?")?e+"&"+t:e+"?"+t:e:""},insertHiddenImage_:function(e,t){var n=document.createElement("img");n.setAttribute("src",e),n.style.display="none",n.classList.add("user-hat__".concat(t)),document.body.appendChild(n)},stringifyParams_:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){return n=n+"="+e[n],t.concat(n)},[]).join("&")},textAsHtml:function(){return{__html:this.state.text}},content:function(){return[i.a.createElement(A.a,{attrs:{href:this.state.bannerUrl,target:"_blank"},block:"user-hat",elem:"remote",key:"remote",onClick:this.onBannerClick_,tag:"a"},i.a.createElement(A.a,{block:"user-hat",elem:"title"},this.state.title),i.a.createElement(A.a,{block:"user-hat",elem:"text",dangerouslySetInnerHTML:this.textAsHtml()}),i.a.createElement(A.a,{block:"user-hat",elem:"bg",attrs:{style:{backgroundImage:"url(".concat(this.state.bg,")"),transformOrigin:"".concat(this.state.origin," 0")}}}),i.a.createElement(A.a,{block:"user-hat",elem:"fg",attrs:{style:{backgroundImage:"url(".concat(this.state.fg,")")}}})),i.a.createElement(A.a,{key:"close-button",onClick:this.onCloseButtonClick_,block:"user-hat",elem:"close-button"},i.a.createElement(pt,{glyph:"type-close"}))]}},{propTypes:{banner:v.a.object,fetchData:v.a.bool,fetchUrl:v.a.string,fetchUrlParams:v.a.object,hidden:v.a.bool}});function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt=Object(D.declMod)(function(e){return e.fetchData},{block:"user-hat",willInit:function(e){var t=e.fetchUrl,n=e.fetchUrlParams;e.hidden;this.__base.apply(this,arguments);var r=this.stringifyParams_(n);this.state.fetchUrl=this.constructUrl_(t,r),this.fetchData=this.fetchData.bind(this),this.setContent=this.setContent.bind(this)},willReceiveProps:function(e){var t=e.ready;this.__base.apply(this,arguments),t&&!this.props.ready&&this.fetchData()},didMount:function(){this.__base.apply(this,arguments),this.props.ready&&this.fetchData()},mods:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(n,!0).forEach(function(t){dt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.__base.apply(this,arguments),{"fetch-data":"yes"})},fetchData:function(){var e=this,t=this.props,n=t.onSuccess,r=void 0===n?function(){}:n,o=t.onFailure,i=void 0===o?function(){}:o,a=this.state.fetchUrl;if(a){var c=new XMLHttpRequest;c.open("GET",a),c.withCredentials=!0,c.send(),c.onreadystatechange=function(){if(4===c.readyState&&(200!==c.status&&i(),200===c.status)){var t=JSON.parse(c.responseText);if(!t||!t.distribution)return;e.setState({showUrl:e.constructShowUrl_(t)});var n=e.prepareData_(t);e.setContent(n),r()}}}},setContent:function(e){var t=e.title,n=void 0===t?"":t,r=e.url,o=void 0===r?"":r,i=e.text,a=void 0===i?"":i,c=e.close_cnt,s=void 0===c?"":c,u=e.bgImage_2,l=void 0===u?"":u,f=e.bgImage_1,p=void 0===f?"":f,h=e.bgImageOrigin_1,d=void 0===h?"":h;document.createElement("img").setAttribute("src",l),document.createElement("img").setAttribute("src",p),this.setState({title:n,bannerUrl:this.constructUrl_(o,this.state.urlParams),closeUrl:s,text:a,bg:l,fg:p,origin:d})},constructShowUrl_:function(e){try{return e.distribution.linkhead+e.distribution.plus_popup[0].linknext||""}catch(e){return""}},prepareData_:function(e){return([].concat(e.distribution.plus_popup)[0]||{}).code||{}}});n(654),n(655);function mt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function bt(){return(bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(n,!0).forEach(function(t){gt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ot=M.a.applyDecls(),wt=ce.applyDecls(),Et=se.a.applyDecls(),St=ue.a.applyDecls(),kt=le.a.applyDecls(),xt=fe.a.applyDecls(),Rt=Je.applyDecls(),jt=at.applyDecls(),Pt=lt.applyDecls(),Ct=ve.applyDecls(),Tt=n(25)().decl(n(34))("user2"),It=yt.applyDecls(),Dt=Object(D.decl)({block:"user2",willInit:function(e){var t=e.hat,n=void 0===t?{}:t;this.state={hatReady:!1,hatVisible:!n.fetchData,maxHeight:"",opened:!1,renderPopup:!1,plusItemVisible:!0},this.accounts=[],this.onCurrentAccountClick=this.onCurrentAccountClick.bind(this),this.onCurrentAccountMouseOver=this.onCurrentAccountMouseOver.bind(this),this.onOutsideClick=this.onOutsideClick.bind(this),this.userAccountReference=this.userAccountReference.bind(this),this._processLogout=this._processLogout.bind(this),this._onLogin=this._onLogin.bind(this),this._onLogout=this._onLogout.bind(this),this._onMenuItemClick=this._onMenuItemClick.bind(this),this._setReference=this._setReference.bind(this),this._setMaxHeight=this._setMaxHeight.bind(this),this.onHatCloseClick=this.onHatCloseClick.bind(this),this.onSuccess=this.onSuccess.bind(this),this.items={}},attrs:function(){return _t({},this.__base.apply(this,arguments),{ref:this._setReference})},willUpdate:function(e,t){t.opened&&!this.state.opened?(this._setMaxHeight(),window.addEventListener("resize",this._setMaxHeight)):this.state.opened&&!t.opened&&window.removeEventListener("resize",this._setMaxHeight)},didMount:function(){this._setMaxHeight()},willUnmount:function(){window.removeEventListener("resize",this._setMaxHeight)},getChildContext:function(){var e=this.props.processLogout||this.props.hasLogout?this._processLogout:void 0,t=this.props.accountAttributes;return{isPlusAvailable:t.has_plus||t.plus_available,changeUser:this._changeUser.bind(this),registerUserItem:this._registerItem.bind(this),menuItems:this.items,processLogout:e}},mods:function(e){var t=e.hasLogout,n=e.processLogout,r=e.provider,o=e.hat;return{provider:r,"has-hat":Object(D.bool2string)(o),opened:Object(D.bool2string)(this.state.opened),"has-logout":!(!t&&!n)&&"yes"}},content:function(e){var t=e.uid,n=e.origin,r=e.camera,o=e.hat,a=e.yu,c=e.name,s=e.yaplus,u=e.unreadCount,l=e.avatarId,f=e.avatarHost,p=e.contentRegion,h=e.fetchAccounts,d=e.plusLinkParams,y=e.hasAccentLetter,m=e.addAccountHidden,b=e.accountAttributes,v=e.popup,_=e.actionsMenu,g=e.multiAuthMenu,O=e.children,w=e.accounts,E=e.pic,S=e.settingsUrl,k=e.settingsLinkTarget,x=e.helpUrl,R=e.helpLinkTarget,j=e.subname,P=e.provider,C=e.passportLinkParams,T=e.maxLength,I=this.block,D=this._getPassportHost(),M=this.state.renderPopup,z=b.has_plus||b.plus_available&&!1;void 0===l&&(l=E&&E.avatarId),w&&(O=w);var L=encodeURIComponent(this._getRetpath());if(!t){var N=Tt("enter"),H="".concat(D,"/auth?retpath=").concat(L);return""!==C&&(H+="&".concat(C)),i.a.createElement(Ot,{size:"m",theme:"pseudo",type:"link",onClick:this._onLogin,url:H,mix:{block:I,elem:"enter"},iconLeft:{mix:{block:I,elem:"enter-icon"}},tabIndex:-1,title:N},N)}c||!1===c||(c=t);var U="".concat(D,"/passport?mode=embeddedauth&action=logout&yu=").concat(a,"&uid=").concat(t,"&retpath=").concat(L),B=D;""!==C&&(B+="?".concat(C));var V={action:"plus"};return _=_.filter(function(e){return"plus"===e.action?(V=_t({},V,{},e),!1):e}).concat(V),[i.a.createElement(wt,{plus:s,isCurrent:!0,provider:P,key:"current-account",hasAccentLetter:y,mix:{block:I,elem:"current-account"},name:c,maxLength:T,url:B,hasTicker:!(!1===l||!u)||void 0,tickerCount:u,avatarId:l,avatarHost:f,pic:Boolean(E)||!1!==l,ref:this.userAccountReference,onMouseOver:this.onCurrentAccountMouseOver,onClick:this.onCurrentAccountClick}),i.a.createElement(Et,{key:"a11y-exit",theme:"pseudo",attrs:{accessKey:"x"},tabIndex:"-1",mix:[{block:I,elem:"a11y-exit"},{block:"a11y-hidden"}],url:U},Tt("exit"))].concat(M&&i.a.createElement(St,bt({key:"popup",mainOffset:-46,secondaryOffset:-2,visible:this.state.opened,directions:["bottom-right"],target:"anchor",theme:"normal",autoclosable:!0,anchor:this.userAccountReference,onOutsideClick:this.onOutsideClick,mix:{block:I,elem:"popup"}},v),i.a.createElement(kt,{theme:"special-user2",type:"navigation",nowrap:!0,style:{maxHeight:this.state.maxHeight},mix:{block:I,elem:"menu"}},o&&!1===s&&i.a.createElement(It,bt({onCloseButtonClick:this.onHatCloseClick,onSuccess:this.onSuccess,ready:this.state.hatReady,hidden:!this.state.hatVisible},o)),i.a.createElement(A.a,{block:"user2",elem:"menu-header"},i.a.createElement(wt,{pic:!0,camera:r,origin:n,plus:z,isCurrent:!0,provider:P,mix:{block:"user2",elem:"account"},name:c,maxLength:T,subname:j,avatarId:l||void 0,avatarHost:f})),i.a.createElement(xt,{key:"menu-group",isNavigation:!0},this._renderMenuItems([].concat(mt(_),mt(g)),{unreadCount:u,plus:s,plusLinkParams:d,exitUrl:U,retpathEncoded:L,passportHost:D,contentRegion:p,passportLinkParams:C})),i.a.createElement(A.a,{block:this.block,elem:"multi-auth"},i.a.createElement(jt,{provider:P,passportHost:D,passportLinkParams:C,retpathEncoded:L,addAccountHidden:m,fetchAccounts:h,maxLength:T,avatarHost:f},O)),i.a.createElement(Pt,{settingsUrl:S,settingsLinkTarget:k,helpUrl:x,helpLinkTarget:R,contentRegion:p}))))},onCurrentAccountClick:function(e){this._isBannerReady&&!this._isClosed&&this.setState({hatVisible:!0,plusItemVisible:!1}),this._isClosed&&this.setState({plusItemVisible:!0}),this.state.renderPopup||this.setState({renderPopup:!0}),e.preventDefault(),this.setState({opened:!this.state.opened}),this.props.onCurrentAccountClick&&this.props.onCurrentAccountClick(e)},onCurrentAccountMouseOver:function(e){this.setState({hatReady:!0}),this._isClosed?this.setState({plusItemVisible:!0}):this._isBannerReady&&this.setState({hatVisible:!0,plusItemVisible:!1})},onOutsideClick:function(){this.setState({opened:!1})},onHatCloseClick:function(){this.setState({hatVisible:!1}),this._isClosed=!0},_changeUser:function(e,t){if(this.isLogoutClick)this.isLogoutClick=!1;else{var n=this._getPassportHost(),r=this._getRetpath(),o=document.createElement("div");document.body.appendChild(o);var a=n+"/passport?mode=embeddedauth",c=i.a.createElement("form",{action:a,method:"post"},i.a.createElement("input",{type:"hidden",name:"action",value:"change_default"}),i.a.createElement("input",{type:"hidden",name:"uid",value:t}),i.a.createElement("input",{type:"hidden",name:"retpath",value:r}),i.a.createElement("input",{type:"hidden",name:"yu",value:this.props.yu}));this._userChangeForm=this.__self.inject(this,c,o),this._userChangeForm.submit()}},_registerItem:function(e,t){this.items[e]||(this.items[e]=t)},_unregisterItem:function(e){this.items[e]&&delete this.items[e]},_processLogout:function(e,t,n){this.props.processLogout&&this.props.processLogout(e,t,n)},_renderMenuItems:function(e,t){var n=this;return e.map(function(e,r){return"plus"===e.action&&void 0===t.plus?"":i.a.createElement(Rt,bt({plus:"plus"===e.action&&Boolean(t.plus),hidden:"plus"===e.action&&!n.state.plusItemVisible,plusLinkParams:"plus"===e.action&&t.plusLinkParams,passportLinkParams:t.passportLinkParams,key:"user-menu-item-".concat(r),onLogout:"exit"===e.action?n._onLogout:void 0,onClick:n._onMenuItemClick},e,t))}).filter(Boolean)},_getPassportHost:function(){return this.props.passportHost||Ct.serviceUrl("passport",this.props.contentRegion)},_getRetpath:function(){var e="undefined"!=typeof window?window.location:{};return this.props.retpath||e.href||""},_onLogin:function(e){this.props.onLogin&&this.props.onLogin(e)},_onLogout:function(e){this.props.onLogout&&this.props.onLogout(e)},_onMenuItemClick:function(e){this.props.onMenuItemClick&&this.props.onMenuItemClick(e)},_setReference:function(e){this._DOMNode=e},_setMaxHeight:function(){var e=this.props.menuMaxHeight;e||(e=document.documentElement.clientHeight-this._DOMNode.getBoundingClientRect().top);this.setState({maxHeight:e})},userAccountReference:function(e){return void 0===e?this.userAccount:this.userAccount=e},onSuccess:function(){this._isBannerReady=!0}},{propTypes:{accountAttributes:v.a.object,provider:v.a.string,uid:v.a.string,yaplus:v.a.bool,unreadCount:v.a.number,contentRegion:v.a.string,passportHost:v.a.string,yu:v.a.string,hasAccentLetter:v.a.bool,retpath:v.a.string,actionsMenu:v.a.arrayOf(v.a.oneOfType([v.a.shape({action:v.a.string.isRequired,mix:v.a.oneOfType([v.a.object,v.a.array])}),v.a.shape({url:v.a.string.isRequired,text:v.a.string.isRequired,mix:v.a.oneOfType([v.a.object,v.a.array])})])),multiAuthMenu:v.a.arrayOf(v.a.oneOfType([v.a.shape({action:v.a.string.isRequired,mix:v.a.oneOfType([v.a.object,v.a.array])}),v.a.shape({url:v.a.string.isRequired,text:v.a.string.isRequired,mix:v.a.oneOfType([v.a.object,v.a.array])})])),onCurrentAccountClick:v.a.func,menuMaxHeight:v.a.number,plusLinkParams:v.a.string,onLogin:v.a.func,onLogout:v.a.func,onMenuItemClick:v.a.func,passportLinkParams:v.a.string,name:v.a.oneOfType([v.a.string,v.a.oneOf([!1])]),maxLength:v.a.number,avatarId:v.a.oneOfType([v.a.string,v.a.oneOf([!1])]),avatarHost:v.a.string,settingsUrl:v.a.string,settingsLinkTarget:v.a.string,helpUrl:v.a.string,helpLinkTarget:v.a.string,subname:v.a.string,fetchAccounts:v.a.bool,addAccountHidden:v.a.bool,pic:v.a.bool,origin:v.a.string},defaultProps:{accountAttributes:{},unreadCount:0,hasAccentLetter:!0,contentRegion:"ru",menuMaxHeight:0,actionsMenu:[{action:"mail"},{action:"plus"}],multiAuthMenu:[{action:"passport"},{action:"exit"}],passportLinkParams:"",origin:"authchooser"},childContextTypes:{isPlusAvailable:v.a.bool,changeUser:v.a.func,registerUserItem:v.a.func,processLogout:v.a.func,menuItems:v.a.object},Menu:kt,Item:Rt,Group:xt,inject:I.a.unstable_renderSubtreeIntoContainer}),At=(n(656),n(657),Dt.applyDecls());function Mt(e){"@babel/helpers - typeof";return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lt(e,t,n){return(Lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ut(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Nt(e){return function(){var t,n=Ut(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Ut(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Mt(t)||"function"==typeof t))return t;return Ht(e)}(this,t)}}function Ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ut(e){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(n,At);var t=Nt(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onOutsideTouch=e._onOutsideTouch.bind(Ht(e)),e}return function(e,t,n){t&&zt(e.prototype,t),n&&zt(e,n)}(n,[{key:"componentWillUpdate",value:function(e,t){Lt(Ut(n.prototype),"componentWillUpdate",this)&&Lt(Ut(n.prototype),"componentWillUpdate",this).call(this,e,t),t.opened!==this.state.opened&&(t.opened?window.addEventListener("touchstart",this._onOutsideTouch):window.removeEventListener("touchstart",this._onOutsideTouch))}},{key:"_onOutsideTouch",value:function(e){e.target.closest(".user2__popup")||this.onOutsideClick()}}]),n}(),Ft=ce.applyDecls();n(658);function Wt(e){"@babel/helpers - typeof";return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gt(){return(Gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qt(e){return function(){var t,n=Kt(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Kt(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===Wt(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function Kt(e){return(Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e,t){return(Xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xt(e,t)}(n,o["Component"]);var t=qt(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&Yt(e.prototype,t),n&&Yt(e,n)}(n,[{key:"render",value:function(){var e=Object.assign({},this.props);return delete e.accounts,i.a.createElement(Vt,Gt({mix:{mods:{"hide-name":this.props.hideName}},maxLength:1/0},e),this._renderAccounts())}},{key:"_renderAccounts",value:function(){var e=this;return this.props.accounts.map(function(t){var n=t.uid,r=t.name,o=t.url,a=t.avatarId;return i.a.createElement(Ft,{key:"user-account-".concat(n),uid:n,name:r,url:o,avatarId:a,avatarHost:e.props.avatarHost,hasTicker:!1,mix:{block:"user2",elem:"account",js:{uid:n}},onClick:e.props.onAccountClick,pic:!0,maxLength:1/0})})}}]),n}();Zt.propTypes={uid:v.a.string.isRequired,yu:v.a.string.isRequired,accounts:v.a.arrayOf(v.a.shape({uid:v.a.string,name:v.a.string,url:v.a.string,avatarId:v.a.string})),multiAuthMenu:v.a.arrayOf(v.a.shape({action:v.a.string})),name:v.a.string.isRequired,hideName:v.a.bool,avatarId:v.a.string.isRequired,avatarHost:v.a.string,retpath:v.a.string.isRequired,contentRegion:v.a.string.isRequired,passportHost:v.a.string,onAccountClick:v.a.func},Zt.defaultProps={actionsMenu:[],hideName:!0,onAccountClick:function(){return null}};var $t,Jt,Qt,en=n(13),tn=n(14),nn=n(29),rn=n(6),on=n(7),an=Object(r.b)(function(e){var t=e.user,n=e.url,r=e.waitingAuthActions,o=e.environment,i=o.yandexuid,a=o.avatarsOrigin,c=o.servicesTld,s=e.services,u=s.passport,l=s.support;return{user:t,url:n,isWaitingAuth:!!r.auth,yandexuid:i,avatarsOrigin:a,servicesTld:c,passport:u,support:l}},{auth:rn.d})(function(e){var t=e.user,n=e.url,r=e.yandexuid,o=e.passport,a=e.support,c=e.avatarsOrigin,s=e.servicesTld,u=e.isWaitingAuth,l=e.auth,f=Object(nn.b)(n),p=encodeURIComponent(f);if(!t.auth)return function(e,t){return i.a.createElement(en.a,{cls:"login-button",theme:"raised",view:"default",size:"s",progress:e,onClick:function(){Object(on.d)("login"),t()}},i.a.createElement(tn.a,{keyset:"actions",loc:"ufo_enter"}))}(u,l);var h=r,d=a+(t.b2b?"/connect-disk/":"/disk/");return i.a.createElement(Zt,{uid:t.id,yu:h,name:t.name,avatarId:t.avatarId,avatarHost:c,helpUrl:d,retpath:f,contentRegion:s,passportHost:o,accounts:t.accounts.map(function(e){return{uid:e.id,avatarId:e.avatarId,name:e.login,url:"".concat(o,"/passport?mode=embeddedauth&action=change_default&uid=").concat(e.id,"&yu=").concat(h,"&retpath=").concat(p)}}),onLogout:function(){return Object(on.d)("sign out")}})});n(659);function cn(e){"@babel/helpers - typeof";return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function un(e){return function(){var t,n=fn(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=fn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===cn(t)||"function"==typeof t))return t;return ln(e)}(this,t)}}function ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fn(e){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pn(e,t){return(pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}$t=n(682).default,Jt=n(661).default,Qt=n(686).default;var hn={MacOS:"Yandex.Disk.Mac.dmg",Windows:"YandexDiskSetup.exe"},dn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pn(e,t)}(n,o["Component"]);var t=un(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={burgerSidebarVisible:!1},e._onShowBurgerSideBar=e._onShowBurgerSideBar.bind(ln(e)),e._onHideBurgerSidebar=e._onHideBurgerSidebar.bind(ln(e)),e}return function(e,t,n){t&&sn(e.prototype,t),n&&sn(e,n)}(n,[{key:"_onShowBurgerSideBar",value:function(){Object(on.d)("burger menu"),this.setState({burgerSidebarVisible:!0})}},{key:"_onHideBurgerSidebar",value:function(){this.setState({burgerSidebarVisible:!1})}},{key:"render",value:function(){var e=this.props,t=e.nda,n=e.nonce,r=e.servicesTld,o=e.services,a=e.OSFamily,c=e.hasDirect,s=e.hasMetrika,u=e.burgerItems,l=e.isMobile,f=function(e,t,n){var r={disk:{text:Object(P.i18n)("en","entities","ufo_disk"),url:e.disk},search:{text:Object(P.i18n)("en","entities","ufo_service_search"),url:e.www},calendar:{text:Object(P.i18n)("en","entities","ufo_service_calendar"),url:e.calendar},mail:{text:Object(P.i18n)("en","entities","ufo_service_mail"),url:e.mail},money:{text:Object(P.i18n)("en","entities","ufo_service_money"),url:e.money},images:{text:Object(P.i18n)("en","entities","ufo_service_images"),url:e.images},news:{text:Object(P.i18n)("en","entities","ufo_service_news"),url:e.news},maps:{text:Object(P.i18n)("en","entities","ufo_service_maps"),url:e.maps},market:{text:Object(P.i18n)("en","entities","ufo_service_market"),url:e.market},pogoda:{text:Object(P.i18n)("en","entities","ufo_service_pogoda"),url:e.weather},tv:{text:Object(P.i18n)("en","entities","ufo_service_tv"),url:e.tv},music:{text:Object(P.i18n)("en","entities","ufo_service_music"),url:e.music},afisha:{text:Object(P.i18n)("en","entities","ufo_service_afisha"),url:e.afisha},browser:{text:Object(P.i18n)("en","entities","ufo_service_browser"),url:e.browser+"?from=link_disk___%7C&banerid=0468000000"}};return t&&(r.metrika={text:Object(P.i18n)("en","entities","ufo_service_metrika"),url:e.metrika}),n&&(r.direct={text:Object(P.i18n)("en","entities","ufo_service_direct"),url:e.direct}),r}(o,s,c),p=i.a.createElement(C,{nda:t,serviceUrl:o.disk,logoUrl:o.www,onClickLink:function(){return Object(on.d)("logo")}}),h=f;return u&&(h=u.filter(function(e){return["mail","calendar"].includes(e.id)}).reduce(function(e,t){return e[t.id]=t,e},{})),i.a.createElement(m,null,i.a.createElement(m.Left,null,l?p:i.a.createElement($t,{visible:this.state.burgerSidebarVisible,onShow:this._onShowBurgerSideBar,onHide:this._onHideBurgerSidebar,logo:p},i.a.createElement(Jt,{fitToHeight:!0,allServicesLink:o.all,allServicesText:Object(P.i18n)("en","entities","ufo_service_all"),items:u,services:f,tld:r,nonce:n})),i.a.createElement(j,{cls:"header__inline-services-menu",services:h,tld:r,onClick:function(e){switch(e){case"mail":return Object(on.d)("goto mail");case"calendar":return Object(on.d)("goto cal")}}})),i.a.createElement(m.Right,null,!l&&i.a.createElement(Qt,{OSFamily:a,url:function(e,t){return"".concat(e,"/download/").concat(hn[t]||"","?referer=webinterface&src=Yandex.Public")}(o.disk,a),text:function(e){return Object(P.i18n)("en","view-aside","ufo_aside__install_disk_for",{platform:e})}(a),tooltip:function(e){return Object(P.i18n)("en","view-aside","ufo_aside__install_disk_for_tooltip",{platform:e})}(a),onClick:function(){return Object(on.d)("install soft")}}),i.a.createElement(an,null)))}}]),n}();t.default=Object(r.b)(function(e){var t=e.ua,n=t.OSFamily,r=t.isMobile,o=e.user,i=o.hasDirect,a=o.hasMetrika,c=o.b2b,s=o.b2bHeader,u=e.environment;return{nda:u.nda,nonce:u.nonce,servicesTld:u.servicesTld,services:e.services,OSFamily:n,isMobile:r,hasDirect:i,hasMetrika:a,burgerItems:c&&s}})(dn)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n(6),c=n(17),s=n(3),u=n(10),l=n(15),f=n(1),p=n.n(f),h=(n(339),n(4)),d=n.n(h);function y(e){"@babel/helpers - typeof";return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return function(){var t,n=_(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=_(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var O=function(){return d()()("listing-type")},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(n,r["Component"]);var t=v(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&b(e.prototype,t),n&&b(e,n)}(n,[{key:"_getIcons",value:function(){var e=this.props,t=e.active,n=e.onChange;return e.types.map(function(e){var r,i=e.type,a=e.Icon;return o.a.createElement("div",{className:O().e("icon").m((r={},m(r,i,!0),m(r,"active",i===t),r)),key:i,onClick:function(){return n(i)}},o.a.createElement(a,null))})}},{key:"render",value:function(){return o.a.createElement("div",{className:O().mix(this.props.cls)},this._getIcons())}}]),n}();w.propTypes={active:p.a.string.isRequired,onChange:p.a.func,cls:p.a.oneOfType([p.a.string,p.a.object]),types:p.a.arrayOf(p.a.shape({type:p.a.string,Icon:p.a.elementType})).isRequired},w.defaultProps={onChange:function(){}};var E=w,S=n(60),k=n(61),x=n(62),R=n(63);function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var P={tile:x.a,icons:S.a,list:k.a,wow:R.a},C=function(e){return o.a.createElement(E,j({},e,{types:e.types.map(function(e){return{type:e,Icon:P[e]}})}))};C.propTypes={types:p.a.arrayOf(p.a.string).isRequired},C.defaultProps={active:"tile",types:["tile","icons","list"]};var T=C,I=n(20),D=n(123),A=n(5),M=(n(472),n(13)),z=n(36),L=n(44),N=n(12);function H(e){"@babel/helpers - typeof";return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function B(e){return function(){var t,n=V(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=V(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(n,N["a"]);var t=B(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&U(e.prototype,t),n&&U(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{d:"M13.3 5L8.5 9.7 3.7 5l-.7.7L8.5 11 14 5.7",fill:"currentColor"})}}]),n}();function G(e){"@babel/helpers - typeof";return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function K(e){return function(){var t,n=Z(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=Z(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===G(t)||"function"==typeof t))return t;return X(e)}(this,t)}}function X(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J=function(){return d()()("toolbar")},Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(n,r["Component"]);var t=K(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={menu:!1,listingTypeMenuVisible:!1},e._listingTypeButtonRef=e._listingTypeButtonRef.bind(X(e)),e._toggleListingTypeMenu=e._toggleListingTypeMenu.bind(X(e)),e._changeListingType=e._changeListingType.bind(X(e)),e}return function(e,t,n){t&&q(e.prototype,t),n&&q(e,n)}(n,[{key:"componentDidUpdate",value:function(e){e.currentResourceId!==this.props.currentResourceId&&this.state.menu&&this.setState({menu:!1,listingTypeMenuVisible:!1})}},{key:"_listingTypeButtonRef",value:function(e){this._listingTypeButton=e}},{key:"_toggleListingTypeMenu",value:function(){this.setState({listingTypeMenuVisible:!this.state.listingTypeMenuVisible})}},{key:"_changeListingType",value:function(e){this.props.changeListingType(e.target.value),this._toggleListingTypeMenu()}},{key:"_getListingTypeMenu",value:function(){var e=[o.a.createElement(L.a.Radio,{key:"toolbar-menu-radio-tile",value:s.LISTING_TYPES.TILE,cls:J().e("radio").m(Y({},s.LISTING_TYPES.TILE,!0))},o.a.createElement(x.a,null),Object(A.i18n)("en","view-toolset","ufo_toolset_tiles_touch")),o.a.createElement(L.a.Radio,{key:"toolbar-menu-radio-icons",value:s.LISTING_TYPES.ICONS,cls:J().e("radio").m(Y({},s.LISTING_TYPES.ICONS,!0))},o.a.createElement(S.a,null),Object(A.i18n)("en","view-toolset","ufo_toolset_icons_touch")),o.a.createElement(L.a.Radio,{key:"toolbar-menu-radio-list",value:s.LISTING_TYPES.LIST,cls:J().e("radio").m(Y({},s.LISTING_TYPES.LIST,!0))},o.a.createElement(k.a,null),Object(A.i18n)("en","view-toolset","ufo_toolset_list_touch"))];return this.props.isWowGridAvailable&&e.unshift(o.a.createElement(L.a.Radio,{key:"toolbar-menu-radio-wow",value:s.LISTING_TYPES.WOW,cls:J().e("radio").m(Y({},s.LISTING_TYPES.WOW,!0))},o.a.createElement(R.a,null),Object(A.i18n)("en","view-toolset","ufo_toolset_wow_touch"))),o.a.createElement("div",{className:J().e("menu-type")},o.a.createElement(L.a,{key:"radiobox",view:"default",tone:"default",theme:"normal",size:"n",cls:J().e("radiobox"),onChange:this._changeListingType,value:this.props.listingType},e))}},{key:"_getListingTypeIcon",value:function(){switch(this.props.listingType){case s.LISTING_TYPES.LIST:return o.a.createElement(k.a,null);case s.LISTING_TYPES.TILE:return o.a.createElement(x.a,null);case s.LISTING_TYPES.ICONS:return o.a.createElement(S.a,null);case s.LISTING_TYPES.WOW:return o.a.createElement(R.a,null);default:return null}}},{key:"render",value:function(){var e;if(this.props.showMobileToolbar)return null;var t=this.props,n=t.resourceView,r=t.listingType,i=t.isMobile,a=t.isWowPublic,c=t.isDirOrAlbum,u=t.changeListingType,l=[s.RESOURCE_VIEWS.VIDEO,s.RESOURCE_VIEWS.IMAGE].includes(n),f=[s.LISTING_TYPES.TILE,s.LISTING_TYPES.ICONS,s.LISTING_TYPES.LIST];return o.a.createElement("div",{className:J().m((e={},Y(e,n,l),Y(e,"wow-exp",c&&a),e))},c&&!i&&a?[o.a.createElement(M.a,{key:"toolbar-button-listing-type",ref:this._listingTypeButtonRef,size:"n",theme:"raised",view:"default",tone:"default",cls:J().e("button-type"),onClick:this._toggleListingTypeMenu},this._getListingTypeIcon(),o.a.createElement(W,null)),o.a.createElement(z.a,{key:"toolbar-popup-listing-type",theme:"normal",visible:this.state.listingTypeMenuVisible,anchor:this._listingTypeButton,directions:["bottom-right"],onClose:this._toggleListingTypeMenu,target:"anchor",autoclosable:!0},this._getListingTypeMenu())]:null,!c||i||a?null:o.a.createElement(T,{cls:J().e("listing-type").mix(I.a),active:r,onChange:u,types:f}),o.a.createElement(D.a,{cls:J().e("button")}))}}]),n}();t.default=Object(i.b)(function(e){var t=e.rootResourceId,n=e.resources[t],r=e.ua.isMobile,o=e.currentResourceId;return{resourceId:t,resourceView:Object(c.a)(n),isDirOrAlbum:Object(u.g)(n),isMobile:r,currentResourceId:o,isWowPublic:Object(l.c)(e),isWowGridAvailable:Object(l.b)(e),showMobileToolbar:Object(l.e)(e)}},{openPane:a.v,changeListingType:a.f})(Q)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(11),s=n(28),u=n(24),l=n.n(u),f=n(116),p=n(4),h=n.n(p),d=function(e){return new Promise(function(t,n){var r=document.createElement("script");r.type="text/javascript",r.onload=t,r.onerror=n,r.async=!0,r.src=e,document.head.appendChild(r)})},y=n(3);n(487);function m(e){"@babel/helpers - typeof";return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return _(e)}(this,t)}}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w,E=function(){return h()()("video-player")},S={"1080p":"hd","720p":"hq","480p":"mq","360p":"lq","240p":"lq"},k={PLAYBACK_IS_NOT_STARTED:-1,PLAYBACK_COMPLETED:0,PLAYBACK_IN_PROGRESS:1,IS_PAUSED:2,IS_BUFFERING:3,IS_USER_PLAY_CLICK:10,IS_USER_PAUSE_CLICK:11},x=!1,R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,r["Component"]);var t=v(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._waitPlayerReadyToPlay=!1,r.state={videosReady:Boolean(r.props.videos),apiReady:x,isPlaybackInProgress:!1,hidePreview:!1,width:void 0,height:void 0},r._isFullscreen=!1,r._onPlayerReady=r._onPlayerReady.bind(_(r)),r._onPlayerUserAction=r._onPlayerUserAction.bind(_(r)),r._onPlayerStateChange=r._onPlayerStateChange.bind(_(r)),r._onWindowResize=r._onWindowResize.bind(_(r)),r._onOverlayClicked=r._onOverlayClicked.bind(_(r)),r._nodeRef=r._nodeRef.bind(_(r)),r._videoContainerRef=r._videoContainerRef.bind(_(r)),r._onKeyDownListener=r._onKeyDownListener.bind(_(r)),r._setFullscreen=r._setFullscreen.bind(_(r)),r._aspectRatio=0,r}return function(e,t,n){t&&b(e.prototype,t),n&&b(e,n)}(n,[{key:"componentDidMount",value:function(){var e=this;w||(w=d(this.props.iframeApiURL)).catch(function(t){e.props.onError(t)}),x||w.then(function(){x=!0,e.setState({apiReady:!0})}),this.state.videosReady&&this._startKeepAspectRatioHandling(this.props.videos)}},{key:"componentWillUnmount",value:function(){this._node&&this._node.removeEventListener("keydown",this._onKeyDownListener),window.removeEventListener("resize",this._onWindowResize),this._onResizeRequest&&cancelAnimationFrame(this._onResizeRequest)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){!this.state.videosReady&&e.videos&&e.videos.length&&(this._startKeepAspectRatioHandling(e.videos),this.setState({videosReady:!0})),e.forceDestroyPlayer&&this._playerInited&&this._destroyStreamPlayer()}},{key:"componentDidUpdate",value:function(e,t){t.width===this.state.width&&t.height===this.state.height||this.props.onPlayerResize(),!this._playerInited&&this.state.apiReady&&this.state.videosReady&&this.props.initPlayer&&(this._onWindowResize(),this._initPlayer(),this.props.onPlayerResize()),this._isPlayerReady&&this.props.autoplay&&!e.autoplay&&this._streamPlayer.play()}},{key:"_onKeyDownListener",value:function(e){e.keyCode===y.KEYS.ESC&&this._isFullscreen&&e.stopImmediatePropagation()}},{key:"_initPlayer",value:function(){var e;this._playerInited=!0;var t=this.props.videos.find(function(e){return"adaptive"===e.dimension});e=t?t.url:this.props.videos.reduce(function(e,t){var n=S[t.dimension];return n&&!e[n]&&(e[n]=t.url),e},{}),this._isPlayerReady=!1,this._streamPlayer=window.Ya.streamPlayer.create({element:this._videoContainer,stream:e,preview:this._getPreviewUrl(),autoplay:this.props.autoplay&&"preview"!==this.props.displayType,autoQuality:!1,size:{width:"100%",height:"100%"},handlers:Object.assign(this.props.handlers||{},{onReady:this._onPlayerReady,onUserAction:this._onPlayerUserAction,onStateChange:this._onPlayerStateChange,onFullScreenChange:this.props.isMSIE?this._setFullscreen:l.a}),additionalParams:{from:"disk"}}),this.props.autoplay&&this._onPlayerStateChange(k.IS_USER_PLAY_CLICK)}},{key:"_getPreviewUrl",value:function(){if(this._previewUrl)return this._previewUrl;if(this.props.previewBase){var e=this.props.videos.reduce(function(e,t){var n=t.size;return n&&(!e.height||e.height<n.height)?n:e},{});return this._previewUrl=this.props.previewBase+"&size=".concat(e.width,"x").concat(e.height),this._previewUrl}}},{key:"_onOverlayClicked",value:function(){"preview"===this.props.displayType&&this.setState({hidePreview:!0}),this._isPlayerReady?(this._streamPlayer.play(),this.setState({isPlaybackInProgress:!0})):this._waitPlayerReadyToPlay=!0}},{key:"_onPlayerReady",value:function(){this._isPlayerReady=!0,this._waitPlayerReadyToPlay&&(this._waitPlayerReadyToPlay=!1,this._streamPlayer.play())}},{key:"_onPlayerUserAction",value:function(e){"PLAY_BUTTON_CLICK"===e.name&&("play"===e.data.state?this._onPlayerStateChange(k.IS_USER_PLAY_CLICK):"pause"===e.data.state&&this._onPlayerStateChange(k.IS_USER_PAUSE_CLICK))}},{key:"_destroyStreamPlayer",value:function(){this._streamPlayer.destroy(),this._streamPlayer=null,this._playerInited=!1,this._isPlayerReady=!1,this.setState({hidePreview:!1,isPlaybackInProgress:!1})}},{key:"_setFullscreen",value:function(e){this._isFullscreen=e}},{key:"_onPlayerStateChange",value:function(e){var t=[k.PLAYBACK_IN_PROGRESS,k.IS_BUFFERING].includes(e),n=t!==this.state.isPlaybackInProgress;n&&this.setState({isPlaybackInProgress:t}),this.props.onStateChange(e),n&&this.props.onPlayChange(t)}},{key:"_hasOverlay",value:function(){var e=this.props.isMobile||!this.state.hidePreview;return("preview"===this.props.displayType||this.props.isMobile)&&!this.state.isPlaybackInProgress&&e}},{key:"_getOverlay",value:function(){if(this._hasOverlay()){var e=this.props.isMobile;return o.a.createElement("div",{className:E().e("touch-overlay"),onClick:this._onOverlayClicked},this.state.hidePreview||"preview"!==this.props.displayType?null:o.a.createElement("button",{className:E().e("touch-overlay-button").m({mobile:e})},o.a.createElement(f.a,{iconSize:e?"xxl":"xxxl"})))}return null}},{key:"_startKeepAspectRatioHandling",value:function(e){var t=e[0].size;this._aspectRatio=t.width/t.height,window.addEventListener("resize",this._onWindowResize),this._onWindowResize()}},{key:"_onWindowResize",value:function(){var e=this;this._onResizeRequest=requestAnimationFrame(function(){if(e._node){var t,n;if("width"===e.props.fitTo)t=(n=e._node.offsetWidth)/e._aspectRatio;else{var r=getComputedStyle(e._node).maxHeight;(n=(t=Math.max(parseInt(r,10)||0,e._node.offsetHeight))*e._aspectRatio)>e._node.offsetWidth&&(t=(n=e._node.offsetWidth)/e._aspectRatio)}e.setState({width:n,height:t})}})}},{key:"_nodeRef",value:function(e){this._node=e,this._node&&this.props.isMSIE&&this._node.addEventListener("keydown",this._onKeyDownListener)}},{key:"_videoContainerRef",value:function(e){this._videoContainer=e}},{key:"render",value:function(){var e,t=!1;if(this.state.apiReady&&this.state.videosReady){var n={};this.state.width&&(n={width:this.state.width+"px",height:this.state.height+"px"});var r=null,i=this._getPreviewUrl();"preview"!==this.props.displayType||this.state.hidePreview||(t=!0,i&&(t=!0,r=o.a.createElement("div",{className:E().e("preview"),style:{backgroundImage:"url(".concat(i,")")}}))),e=o.a.createElement("div",{className:E().e("container"),style:n},o.a.createElement("div",{className:E().e("player"),ref:this._videoContainerRef}),this._getOverlay(),r,this.props.toolbar||null)}else e=this.props.error?this.props.error:o.a.createElement(s.a,{size:"l",progress:!0,cls:E().e("spin")});return o.a.createElement("div",{className:E().m({"has-overlay":this._hasOverlay(),"preview-visible":t}).mix(this.props.cls),ref:this._nodeRef},e)}}]),n}();R.propTypes={cls:a.a.oneOfType([a.a.string,a.a.object]),iframeApiURL:a.a.string.isRequired,streamId:a.a.string,videos:a.a.arrayOf(a.a.shape({dimension:a.a.string,url:a.a.string,size:a.a.shape({width:a.a.number,height:a.a.number})})),initPlayer:a.a.bool,autoplay:a.a.bool,forceDestroyPlayer:a.a.bool,displayType:a.a.oneOf(["player","preview"]),fitTo:a.a.oneOf(["width","height"]),error:a.a.oneOfType([a.a.string,a.a.element]),toolbar:a.a.oneOfType([a.a.element,a.a.arrayOf(a.a.element)]),onStateChange:a.a.func,onPlayChange:a.a.func,onPlayerResize:a.a.func,onError:a.a.func,isMobile:a.a.bool,isMSIE:a.a.bool},R.defaultProps={initPlayer:!0,autoplay:!1,displayType:"player",fitTo:"width",onStateChange:l.a,onPlayChange:l.a,onPlayerResize:l.a,onError:l.a},R.PLAYER_STATE=k;var j=R,P=n(6);function C(e){"@babel/helpers - typeof";return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e){return function(){var t,n=A(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=A(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;return D(e)}(this,t)}}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var z=function(){},L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(n,r["Component"]);var t=I(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onVideoPlayerStateChange=e._onVideoPlayerStateChange.bind(D(e)),e}return function(e,t,n){t&&T(e.prototype,t),n&&T(e,n)}(n,[{key:"componentDidUpdate",value:function(e){e.isVisible&&!this.props.isVisible&&this.props.autoplay&&this.props.updateSettings({videoAutoPlayId:null})}},{key:"_onVideoPlayerStateChange",value:function(e){this.props.onPlaybackStateChange(e===j.PLAYER_STATE.PLAYBACK_IN_PROGRESS)}},{key:"render",value:function(){var e=this.props,t=e.resourceId,n=e.fitTo,r=e.resources,i=e.videoPlayerIframeApiUrl,a=e.toolbar,c=e.cls,s=e.displayType,u=e.isVisible,l=e.isMobile,f=e.isMSIE,p=r[t],h=p.meta.defaultPreview,d=p.videoStreams||{},y=d.streamId,m=d.videos,b=u&&this.props.autoplay;return o.a.createElement(j,{cls:c,iframeApiURL:i,previewBase:h,streamId:y,videos:m,onStateChange:this._onVideoPlayerStateChange,onPlayerResize:this.props.onPlayerResize,fitTo:n,toolbar:a,displayType:b?"player":s,autoplay:b,forceDestroyPlayer:!u,isMobile:l,isMSIE:f})}}]),n}();L.propTypes={resourceId:a.a.string.isRequired,onPlaybackStateChange:a.a.func,onPlayerResize:a.a.func},L.defaultProps={isVisible:!0,onPlaybackStateChange:z,onPlayerResize:z};t.default=Object(c.b)(function(e,t){var n=e.resources,r=e.environment.videoPlayerIframeApiUrl,o=e.ua;return{resources:n,videoPlayerIframeApiUrl:r,isMobile:o.isMobile,isMSIE:"MSIE"===o.BrowserName,autoplay:e.settings.videoAutoPlayId===t.resourceId}},{updateSettings:P.J})(L)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(19),s=n.n(c),u=n(13),l=n(12);function f(e){"@babel/helpers - typeof";return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return function(){var t,n=d(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=d(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(n,l["a"]);var t=h(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(n,[{key:"getContentSVG",value:function(){return o.a.createElement("path",{fill:"currentColor",d:"M0 14h16v2H0zM0 7h16v2H0zM0 0h16v2H0z"})}}]),n}(),b=n(119),v=n(4),_=n.n(v);n(660);function g(e){"@babel/helpers - typeof";return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return function(){var t,n=S(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=S(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return E(e)}(this,t)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x=function(){return _()()("burger-sidebar")},R=function(){},j=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,r["PureComponent"]);var t=w(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i))).state={shouldRender:r.props.visible},r._onAnimationEnd=r._onAnimationEnd.bind(E(r)),r}return function(e,t,n){t&&O(e.prototype,t),n&&O(e,n)}(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){!this.props.visible&&e.visible&&this.setState({shouldRender:!0})}},{key:"_onAnimationEnd",value:function(){this.props.visible||this.setState({shouldRender:!1})}},{key:"_getSidebar",value:function(){if(!this.state.shouldRender)return null;var e=this.props,t=e.visible,n=e.onHide;return s.a.createPortal(o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:x().e("sidebar-overlay").m({visible:t}),onClick:n,onAnimationEnd:this._onAnimationEnd}),o.a.createElement("div",{className:x().e("sidebar").m({visible:t})},o.a.createElement("div",{className:x().e("sidebar-head")},o.a.createElement(u.a,{theme:"clear",size:"n",cls:x().e("back-button"),onClick:n},o.a.createElement(b.a,null)),o.a.createElement("div",{className:x().e("sidebar-logo-wrapper")},this.props.logo&&o.a.cloneElement(this.props.logo,{cls:x().e("sidebar-logo")}))),o.a.createElement("div",{className:x().e("sidebar-content")},this.props.children))),document.body)}},{key:"render",value:function(){return o.a.createElement("div",{className:x().mix(this.props.cls)},o.a.createElement(u.a,{cls:x().e("button"),size:"n",theme:"clear",onClick:this.props.onShow},o.a.createElement(m,null)),this.props.logo&&o.a.cloneElement(this.props.logo,{cls:x().e("logo")}),this._getSidebar())}}]),n}();j.propTypes={logo:a.a.node,cls:a.a.oneOfType([a.a.object,a.a.string]),visible:a.a.bool,onShow:a.a.func,onHide:a.a.func},j.defaultProps={logo:null,visible:!1,onShow:R,onHide:R};t.default=j},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(4),s=n.n(c);n(244);function u(e){"@babel/helpers - typeof";return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return function(){var t,n=p(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=p(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(){return s()()("logo")},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(n,r["Component"]);var t=f(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&l(e.prototype,t),n&&l(e,n)}(n,[{key:"getSize",value:function(){throw"Should be implemented"}},{key:"getContent",value:function(){throw"Should be implemented"}},{key:"render",value:function(){var e=this;switch(this.props.theme){case"light":this.firstLetterColor="#FFF",this.lettersColor="#FFF";break;case"dark":this.firstLetterColor="#000",this.lettersColor="#000";break;default:this.firstLetterColor="#F00",this.lettersColor="#000"}var t=this.getSize(),n=t.width,r=t.height,i=t.serviceWidth,a=i?{left:n-i+"px"}:{},c={className:d().e("link").m({service:!0}),onClick:function(t){e.props.onClickLink("service",t)},style:a};return this.props.isLink&&(c.href=this.props.serviceUrl),o.a.createElement("span",{className:d().mix(this.props.cls)},o.a.createElement("a",{className:d().e("link").m({yandex:!0}),onClick:function(t){e.props.onClickLink("yandex",t)},href:this.props.logoUrl,target:this.props.logoTarget,rel:"noopener noreferrer"}),i?this.props.isLink?o.a.createElement("a",c):o.a.createElement("span",c):null,o.a.createElement("svg",{width:n,height:r,className:d().e("svg")},this.getContent()),this.props.nda?o.a.createElement("svg",{width:"19",height:"11",viewBox:"0 0 19 11",className:d().e("nda")},o.a.createElement("path",{d:"M3.687 7.59c.07.19.151.452.246.787l.276.983h.06c0-.21-.003-.425-.008-.645l-.015-.63c-.005-.2-.007-.385-.007-.555V0H5v10.725H3.94l-2.656-7.83A74.412 74.412 0 0 1 .76 1.14H.7a36.157 36.157 0 0 1 .06 1.98v7.605H0V0h1.104l2.583 7.59zM7.125 0h1.26c.55 0 1.062.082 1.537.247.476.166.89.44 1.245.825.356.386.635.9.84 1.546.206.645.308 1.447.308 2.407 0 .93-.097 1.75-.293 2.46-.195.71-.472 1.305-.832 1.785s-.792.842-1.298 1.088a3.78 3.78 0 0 1-1.672.367H7.125V0zm.87.735V9.99h.24c.48 0 .915-.105 1.305-.315.39-.21.725-.522 1.005-.938.28-.415.497-.932.652-1.552.156-.62.233-1.34.233-2.16 0-.83-.08-1.52-.24-2.07-.16-.55-.377-.99-.653-1.32A2.257 2.257 0 0 0 9.57.937 3.43 3.43 0 0 0 8.385.736h-.39zM14.9 6.78h2.175l-.93-4.425a16.046 16.046 0 0 1-.15-.975h-.03a13.193 13.193 0 0 1-.15.96L14.9 6.78zm2.325.735H14.75l-.66 3.21h-.78L15.59 0h.9l2.265 10.725H17.9l-.675-3.21z"})):null)}}]),n}();y.propTypes={theme:a.a.string,logoUrl:a.a.string,logoTarget:a.a.oneOf(["_blank","_self","_parent","_top"]),serviceUrl:a.a.string,onClickLink:a.a.func,isLink:a.a.bool},y.defaultProps={logoUrl:"//yandex.ru",serviceUrl:"/",onClickLink:function(){},isLink:!0};var m=y;function b(e){"@babel/helpers - typeof";return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"default",function(){return w});var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,m);var t=_(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(n,[{key:"getSize",value:function(){return{width:112,height:30,serviceWidth:43}}},{key:"getContent",value:function(){return o.a.createElement("g",null,o.a.createElement("path",{fill:this.lettersColor,d:"M18.957 21.862c-.444.697-1.3 1.268-2.156 1.268-1.268 0-1.87-1.205-1.87-3.044 0-2.06.665-3.423 3.74-3.423h.286v5.199zm2.44-.476v-7.513c0-3.867-1.553-5.072-4.374-5.072-1.617 0-3.075.666-3.804 1.268l.475 2.188c.825-.73 1.902-1.395 3.17-1.395 1.395 0 2.093.887 2.093 2.98v.95h-.35c-4.469 0-6.212 2.156-6.212 5.58 0 3.138 1.553 4.85 3.835 4.85 1.395 0 2.283-.602 2.98-1.49h.159c.031.412.127.92.222 1.268h2.092a22.987 22.987 0 0 1-.285-3.614zm5.548-8.78c.57-.793 1.458-1.586 2.504-1.586.951 0 1.49.412 1.49 1.617V25h2.505V12.415c0-2.44-1.11-3.614-3.202-3.614-1.49 0-2.695.983-3.138 1.585h-.159V8.991h-2.473V25h2.473V12.605zm13.79 12.616c1.3 0 2.187-.602 2.884-1.49h.159l.19 1.268h1.839V2.334h-2.473v7.07c-.476-.35-1.268-.603-2.029-.603-3.202 0-5.42 2.885-5.42 8.813 0 4.945 1.711 7.608 4.85 7.608zm2.599-3.329c-.412.634-1.078 1.237-2.314 1.237-1.807 0-2.504-2.283-2.504-6.023 0-3.265.95-6.277 2.948-6.277.824 0 1.363.254 1.87.76v10.303zm14.106 2.03l-.57-1.903c-.634.444-1.649 1.078-3.043 1.078-1.966 0-2.98-1.902-2.98-5.516h6.657V16.22c0-5.42-1.744-7.418-4.406-7.418-3.392 0-4.819 3.74-4.819 8.876 0 4.914 2.029 7.545 5.326 7.545 1.585 0 2.821-.507 3.835-1.3zM53.098 10.83c1.426 0 1.87 1.997 1.87 4.723h-4.09c.159-2.853.698-4.723 2.22-4.723zM65.84 9.023l-2.187 5.801-2.06-5.8h-2.569l3.012 7.702L58.708 25h2.441l2.41-6.594L66.03 25H68.6l-3.329-8.496 2.98-7.48h-2.41zM75.763 25h2.314c5.009 0 8.4-4.501 8.4-12.173 0-7.861-3.581-10.493-8.051-10.493h-2.663V25zm2.663-21.366c3.55 0 6.435 2.314 6.435 9.32 0 6.942-2.726 10.746-6.752 10.746h-.761V3.634h1.078zm11.697 2.25c.539 0 1.015-.443 1.015-1.014 0-.538-.476-1.046-1.015-1.046-.57 0-1.014.508-1.014 1.046 0 .571.444 1.015 1.014 1.015zm-.76 3.14V25h1.49V9.023h-1.49zm7.164 16.293c2.092 0 3.899-1.458 3.899-3.994 0-4.47-5.548-5.801-5.548-9.257 0-1.394 1.046-2.155 2.22-2.155 1.109 0 1.901.412 2.599 1.173l.412-1.363c-.54-.444-1.522-1.015-3.075-1.015-1.744 0-3.487 1.141-3.487 3.55 0 4.058 5.484 5.611 5.484 9.257 0 1.363-.951 2.6-2.536 2.6-1.522 0-2.283-.54-3.043-1.205l-.317 1.3c.602.507 1.616 1.109 3.392 1.109zm7.925-8.59L109.999 25h1.617l-5.643-8.559 5.262-7.418h-1.426l-5.357 7.513V2.334h-1.49V25h1.49v-8.274z"}),o.a.createElement("path",{fill:this.firstLetterColor,d:"M8.115 25v-8.02L14.011-.011h-2.504L6.911 13.556 2.916 2.334H.19l5.42 14.55V25z"}))}}]),n}()},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n(5),c=n(13),s=n(16),u=n(74),l=n(75),f=n(35),p=n(1),h=n.n(p),d=n(20),y=n(4),m=n.n(y);n(671);function b(e){"@babel/helpers - typeof";return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return function(){var t,n=g(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=g(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var w=function(){return m()()("app-promo-banner")},E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(n,r["Component"]);var t=_(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&v(e.prototype,t),n&&v(e,n)}(n,[{key:"_getDesktopAction",value:function(){var e=this.props,t=e.os,n=e.buttonText,r=e.getButtonLink,i=e.onClick,a="mac"===t?l.a:u.a;return o.a.createElement(s.a,{url:r(),target:"_self",rel:"noopener noreferrer",theme:"pseudo"},o.a.createElement(c.a,{cls:w().e("install-button"),size:"l",theme:"action",view:"default",tone:"default",onClick:i},o.a.createElement(a,{key:"icon",iconSize:"m"}),n))}},{key:"render",value:function(){var e=this.props,t=e.app,n=e.cls,r=e.os,i=e.title,a=e.description,s=e.onClose;return o.a.createElement("div",{className:w().mix([n||"",d.c])},o.a.createElement(c.a,{theme:"clear",cls:w().e("close"),onClick:s},o.a.createElement(f.a,{iconSize:"m"})),"desktop"===t?o.a.createElement("div",{className:w().e("desktop-image").m(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,!0))}):null,o.a.createElement("div",{className:w().e("right-block")},o.a.createElement("h3",{className:w().e("header")},i),o.a.createElement("div",{className:w().e("description")},a),"desktop"===t?this._getDesktopAction():null))}}]),n}();E.propTypes={title:h.a.string,description:h.a.string,buttonText:h.a.string,os:h.a.string,cls:h.a.object,onClose:h.a.func,onClick:h.a.func,getButtonLink:h.a.func};var S=E,k=n(3),x=n(6),R=n(18),j=n(7);n(672);function P(e){"@babel/helpers - typeof";return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e){return function(){var t,n=D(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=D(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;return I(e)}(this,t)}}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(n,r["Component"]);var t=T(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onClose=e._onClose.bind(I(e)),e._onClick=e._onClick.bind(I(e)),e._getButtonLink=e._getButtonLink.bind(I(e)),e}return function(e,t,n){t&&C(e.prototype,t),n&&C(e,n)}(n,[{key:"componentDidMount",value:function(){this._metrikaCount("show")}},{key:"_onClose",value:function(){this._metrikaCount("close"),this.props.updateEnvironment({noPromoBanner:!0}),this.props.saveSettings({key:"timestampClosePromoBannerPublic",value:String(Date.now())})}},{key:"_onClick",value:function(){this._metrikaCount("download"),this.props.saveSettings({key:"timestampClickButtonPromoBannerPublic",value:String(Date.now())})}},{key:"_getButtonLink",value:function(){return"mac"===this.props.os?"".concat(this.props.diskUrl,"/download/YandexDisk30.dmg/?src=Yandex.Public.Banner.Direct&instant=1"):"".concat(this.props.diskUrl,"/download/YandexDisk30Setup.exe?src=Yandex.Public.Banner.Direct&instant=1")}},{key:"_metrikaCount",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.f.apply(void 0,["top_banner_install_PO"].concat(t))}},{key:"render",value:function(){return o.a.createElement(S,{app:"desktop",cls:m()()("desktop-promo-banner").m({other:!0,dir:[k.RESOURCE_VIEWS.DIR,k.RESOURCE_VIEWS.ALBUM].includes(this.props.view)}),title:Object(a.i18n)("en","view-promo-banner","ufo_promo_banner_desktop_title"),description:Object(a.i18n)("en","view-promo-banner","ufo_promo_banner_desktop_description"),buttonText:Object(a.i18n)("en","view-promo-banner","ufo_promo_banner_desktop_button_text"),os:this.props.os,onClose:this._onClose,onClick:this._onClick,getButtonLink:this._getButtonLink})}}]),n}();t.default=Object(i.b)(function(e){var t=e.ua.OSFamily,n=e.services.disk;return{os:"MacOS"===t?"mac":"windows",diskUrl:n}},{updateEnvironment:x.F,saveSettings:R.i})(M)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(11),a=n(14),c=n(15),s=n(16),u=n(43),l=n(7),f=n(4),p=n.n(f);n(667);function h(e){"@babel/helpers - typeof";return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return function(){var t,n=v(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=v(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;return b(e)}(this,t)}}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e,t){return Object(l.f)("smart banner",e?"open":"install",t)},O=function(){return p()()("banner")},w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(n,r["Component"]);var t=m(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o)))._onLinkClick=e._onLinkClick.bind(b(e)),e}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n)}(n,[{key:"componentDidMount",value:function(){g(this._useDeepLink(),"show")}},{key:"_useDeepLink",value:function(){return this.props.isSupportedAndroid&&!["/mail/","/public/nda/"].includes(this.props.pathname)}},{key:"_onLinkClick",value:function(){var e,t=this._useDeepLink();if(g(t,"click"),t)e="https://redirect.appmetrica.yandex.com/serve/385561687492737009?public_link=".concat(encodeURIComponent(location.href));else{var n="Android"===this.props.OSFamily?"11718107456729729427":"1168735115035726045";e="https://appmetrica.yandex.ru/serve/".concat(n,"?action=click&app_id=ru.yandex.disk&site_id=touch&creative_id=gradient")}"iOS"===this.props.OSFamily&&"ChromeMobile"===this.props.browserName?window.location.assign(e):window.open(e,"_blank")}},{key:"render",value:function(){var e,t=this.props.isWowPublic;if(!["iOS","Android"].includes(this.props.OSFamily))return null;var n=this._useDeepLink(),r=n?o.a.createElement(a.a,{keyset:"view-public",loc:"ufo_open_in_app"}):o.a.createElement(a.a,{keyset:"view-public",loc:"ufo_install_app"});return o.a.createElement(s.a,{cls:O().m((e={},d(e,n?"open":"install",!0),d(e,t?"wow":"simple",!0),e)),theme:t?"action":"notheme",onClick:this._onLinkClick},o.a.createElement(u.a,{cls:O().e("icon")}),r)}}]),n}(),E=Object(i.b)(function(e){var t=e.ua,n=t.OSFamily,r=t.isSupportedAndroid,o=t.BrowserName;return{OSFamily:n,isSupportedAndroid:r,pathname:e.url.pathname,browserName:o,isWowPublic:Object(c.c)(e)}})(w),S=n(123),k=n(3),x=n(17),R=n(10),j=(n(668),function(){return p()()("mobile-toolbar")});t.default=Object(i.b)(function(e){return{isWowPublic:Object(c.c)(e),isImageOrVideo:[k.RESOURCE_VIEWS.VIDEO,k.RESOURCE_VIEWS.IMAGE].includes(Object(x.a)(Object(R.c)(e)))}})(function(e){var t=e.isImageOrVideo,n=e.isWowPublic;return o.a.createElement("div",{className:j().m({"image-or-video":t&&n})},o.a.createElement(E,null),n&&o.a.createElement(S.a,{cls:j().e("button")}))})},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(75),s=n(74),u=n(12);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return function(){var t,n=h(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,u["a"]);var t=p(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(n,[{key:"_getDefaultSize",value:function(){return"l"}},{key:"getContentSVG",value:function(){return o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#1A1919",d:"M17.935 15.94c-.297 1.265-1.807 3.909-2.609 5.072-.802 1.168-.703 2.22-2.185 1.81-1.478-.409-1.892-.334-3.42-.241-1.518.093-1.189-.047-2.14.395-.946.442-4.122-5.361-4.379-6.44-.252-1.08-.374-.95.284-2.118.658-1.168.752-2.322 1.622-3.737.87-1.42 1.874-2.14 1.802-3.225C6.626 3.43 6.401 1.42 8.131.489c1.65-.884 3.028-.358 3.573-.056.234.13.712.382 1.068.824.356.433.676 1.089.856 1.917.37 1.662-.153 1.112.266 3.016.414 1.899 1.257 2.83 2.284 4.333 1.027 1.503 2.1 3.983 1.757 5.417"}),o.a.createElement("path",{fill:"#FFF",d:"M8.152 6.97c.341-.124.284-.14.512-.593.182-.349.341-.499.336-1.029 0-.52-.176-.697-.444-1.035-.256-.322-.666-.338-.922-.296-.147.02-.34.192-.472.447-.085.172-.153.39-.16.619-.016.614.04.848.194 1.264.182.489.626.743.956.624"}),o.a.createElement("path",{fill:"#1A1919",d:"M7.438 4c.142 0 .321.123.406.29.09.165.156.4.156.664 0 .394-.033.83-.212.966a.515.515 0 0 1-.25.08c-.161 0-.175-.135-.326-.338a1.672 1.672 0 0 1-.208-.727c0-.184-.033-.449.09-.683.085-.172.193-.252.344-.252"}),o.a.createElement("path",{fill:"#FFF",d:"M11.04 6c.588-.077.796-.358.901-.847.095-.435.098-.92-.164-1.485-.247-.542-.389-.63-.745-.663-.55-.058-.808.416-.93.755-.13.367-.102.314-.094.779.008.488.231.625.368.93.138.3.597.536.663.53M9.221 8.429c-.602.024-1.556-1.731-1.58-1.003-.018.617.015.607.015 1.205 0 .4-.176.43-.556 1.032a5.19 5.19 0 0 0-.468 1.007 7.754 7.754 0 0 0-.199.637c-.023.106-.065.216-.088.322-.19.728-.866 1.625-1.023 2.353-.158.723-.343 1.186-.32 2.155.023.969.032.69.315.93.278.241.565.468 1.005.873.463.42 1.426 1.152 1.556 1.379.139.231.134.752.051.92-.083.164-.81.256-.806.256-.004 0 .635.916.76 1.046.12.125.639.728 2.75.318 1.191-.231 2.113-.925 2.78-1.595.861-.873.426-1.124.537-1.562.162-.632.69-.868.81-1.582.014-.1.047-.178.135-.327.134-.213.102-.632.102-1.018 0-1.002-.112-2.024-.334-2.776-.204-.704-.528-1.196-.806-1.832-.556-1.268-.528-1.837-1.023-2.647-.565-.935-.287-1.557-1.038-1.518-.935.053-1.69 1.388-2.575 1.427"}),o.a.createElement("path",{fill:"#FFD123",d:"M9.08 5.01c.34-.038.807.037 1.021.178.2.133.34.204.522.258.611.179 1.413.262 1.376.753-.042.586-.233.848-.779 1.002-.438.12-1.221.798-1.828.798-.27 0-.648.013-.867-.058-.21-.067-.503-.383-.848-.636-.345-.25-.667-.516-.676-.865-.014-.37.256-.49.638-.786.2-.158.565-.42.816-.536.233-.104.383-.083.625-.108"}),o.a.createElement("path",{fill:"#493927",d:"M8.004 6.265c-.043.07.26.2.412.11.163-.09.358-.172.423-.2.292-.124.184-.214-.304-.158-.487.055-.487.18-.53.248"}),o.a.createElement("path",{fill:"#FFD123",d:"M18.062 17.404c.286.41-.01.941.199 1.269.34.536 1.028 1.077 1.291 1.227.19.114.457.223.448.555-.014.377-.203.477-.31.581-.212.21-1.282.732-1.992 1.21-.895.604-1.204.872-1.495 1.159-.452.445-.881.595-1.568.595-.688 0-.997-.14-1.209-.327-.212-.182-.447-.646-.424-1.337.018-.686.24-1.313.346-2.382.046-.459.041-1.027.041-1.531 0-.637.01-1.178.148-1.26.249-.154.304-.163.6-.163.295 0 .428.018.525.114.093.09.056.3.023.595-.027.296.116.391.259.514.143.118.272.268.724.304.452.032.618-.04.83-.172.213-.132.512-.369.623-.505.106-.132.37-.586.42-.586.046 0 .35-.105.521.14M1.966 17.672c-.428.316-1.513.287-1.789.657-.27.37.01.907.005 1.9 0 .425-.071.747-.119 1.005-.066.326-.11.555.024.79.243.413.633.516 2.864.993 1.194.254 2.322.911 3.078.975.757.058.919-.2 1.38-.619.457-.42.604-.288.59-1.208-.014-.917-.59-1.19-1.242-2.247-.651-1.057-.756-1.252-1.19-1.954-.432-.692-1.288-1.949-1.779-1.964-.39-.01-.609.205-.851.458-.243.254-.543.897-.97 1.214"}),o.a.createElement("path",{fill:"#1A1919",d:"M10.499 4c.276 0 .439.41.494.937.022.24-.01.515-.1.705-.1.22-.276.355-.42.355-.137 0-.292.037-.373-.147-.082-.19-.1-.613-.1-.913 0-.337.059-.576.162-.765C10.24 4.03 10.38 4 10.5 4"}),o.a.createElement("path",{fill:"#FFF",d:"M15.012 16.968c.084.135.154-.195.242-.307.089-.112.231-.348.499-.348.267 0 .254-.01.242-.181-.008-.165-.089-.15-.33-.093-.243.05-.407.253-.504.435-.093.177-.197.416-.149.494M16 16.059c.002.124.196.16.38.202.183.043.317.089.345.34.026.247-.03.413.054.398.162-.038.225-.275.22-.397-.001-.126-.129-.333-.363-.455a1.083 1.083 0 0 0-.449-.145c-.192-.013-.188.05-.187.057",opacity:".3"}),o.a.createElement("path",{stroke:"#493927",strokeWidth:".5",d:"M11 7c-.868.667-1.672 1-2.41 1-.74 0-1.27-.19-1.59-.568",opacity:".5"}))}}]),n}(),m=n(42),b=n(16),v=n(4),_=n.n(v);n(663);function g(e){"@babel/helpers - typeof";return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return function(){var t,n=S(e);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()){var r=S(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;return E(e)}(this,t)}}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var x={MacOS:"mac",Windows:"win",Linux:"linux"},R=["mac","win"],j={mac:c.a,win:s.a,linux:y},P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(n,r["Component"]);var t=w(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return(r=t.call.apply(t,[this,e].concat(i)))._onLinkClick=r._onLinkClick.bind(E(r)),r}return function(e,t,n){t&&O(e.prototype,t),n&&O(e,n)}(n,[{key:"componentDidMount",value:function(){this.props.onShow(this._getType())}},{key:"_getType",value:function(){return"desktop"===this.props.type?x[this.props.OSFamily]:this.props.type}},{key:"_onLinkClick",value:function(){this.props.onClick(this._getType())}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.text,r=e.tooltip,i=this._getType();if(!i)return null;var a=R.includes(i)?"software-header-product":"software-header-promo";if(i&&n){var c=this.props.iconComponent||j[i];return o.a.createElement(m.a,{text:r||"",cls:function(e){return _()()(e)}(a).m(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},i,!0)),showDelay:500},o.a.createElement(b.a,{theme:"dark",target:"_blank",url:t,onClick:this._onLinkClick},c?o.a.createElement(c,{browserName:this.props.browserName}):null,n))}return null}}]),n}();P.propTypes={type:a.a.string,browserName:a.a.string},P.defaultProps={onClick:function(){return null},onShow:function(){return null},type:"desktop"};t.default=P},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(1),a=n.n(i),c=n(16),s=n(4),u=n.n(s);n(625);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return function(){var t,n=h(e);if(functio