sist2/sist2-vue/dist/js/index.js

1 line
116 KiB
JavaScript

(function(e){function t(t){for(var r,a,s=t[0],c=t[1],u=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&p.push(i[a][0]),i[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);l&&l(t);while(p.length)p.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var c=n[s];0!==i[c]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={index:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var l=c;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"0d24":function(e,t,n){},"1d7e":function(e,t,n){},"1f35":function(e,t,n){},"2b2c":function(e,t,n){},"3d86":function(e,t,n){},4364:function(e,t,n){},"52ab":function(e,t,n){"use strict";n("fcd2")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("e792"),n("0cdd");var r=n("2b0e"),i=n("5f5b");n("ab8b"),n("2dd8");r["default"].use(i["a"]);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.getClass(),attrs:{id:"app"}},[n("NavBar"),e.configLoading?e._e():n("router-view")],1)},a=[],s=n("5530"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-navbar",["/"!==e.$route.path?n("b-navbar-brand",{attrs:{to:"/"}},[n("Sist2Icon")],1):n("b-navbar-brand",{attrs:{href:"."}},[n("Sist2Icon")],1),e.$store&&e.$store.state.sist2Info?n("span",{staticClass:"badge badge-pill version"},[e._v(" v"+e._s(e.sist2Version())),e.isDebug()?n("span",[e._v("-dbg")]):e._e(),e.isLegacy()&&!e.hideLegacy()?n("span",[e._v("-"),n("a",{attrs:{href:"https://github.com/simon987/sist2/blob/master/docs/USAGE.md",target:"_blank"}},[e._v("legacyES")])]):e._e()]):e._e(),e.$store&&e.$store.state.sist2Info?n("span",{staticClass:"tagline",domProps:{innerHTML:e._s(e.tagline())}}):e._e(),n("b-button",{staticClass:"ml-auto",attrs:{to:"stats",variant:"link"}},[e._v(e._s(e.$t("stats")))]),n("b-button",{attrs:{to:"config",variant:"link"}},[e._v(e._s(e.$t("config")))])],1)},u=[],l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"27.868069mm",height:"7.6446671mm",viewBox:"0 0 27.868069 7.6446671"}},[n("g",{attrs:{transform:"translate(-4.5018313,-4.1849793)"}},[n("g",{staticStyle:{fill:"currentColor","fill-opacity":"1",stroke:"none","stroke-width":"0.26458332"}},[n("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 6.3153296,11.829646 q -0.7717014,0 -1.8134983,-0.337619 v -0.916395 q 1.0128581,0.511252 1.803852,0.511252 0.5643067,0 0.901926,-0.236334 0.3376194,-0.236333 0.3376194,-0.63183 0,-0.3424428 -0.2845649,-0.5498376 Q 6.980922,9.4566645 6.3635609,9.3264399 L 5.9921796,9.2492698 Q 5.2301245,9.0949295 4.8732126,8.7428407 4.5211238,8.3859288 4.5211238,7.7733908 q 0,-0.7765245 0.5305447,-1.1961372 0.5305447,-0.4196126 1.5096409,-0.4196126 0.829579,0 1.6061036,0.3183268 V 7.3441319 Q 7.4101809,6.9004036 6.5854251,6.9004036 q -1.1671984,0 -1.1671984,0.7958171 0,0.2604492 0.1012858,0.4147895 0.1012858,0.1495171 0.3858507,0.2556261 0.2845649,0.1012858 0.8392253,0.2122179 l 0.3569119,0.067524 q 1.3408312,0.2652724 1.3408312,1.4614098 0,0.80064 -0.5691298,1.263661 -0.5691298,0.458197 -1.5578722,0.458197 z"}}),n("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 11.943927,5.3087694 q -0.144694,0 -0.144694,-0.144694 V 4.3296733 q 0,-0.144694 0.144694,-0.144694 h 0.694531 q 0.144694,0 0.144694,0.144694 v 0.8344021 q 0,0.144694 -0.144694,0.144694 z M 13.5645,11.728361 q -0.795817,0 -1.234722,-0.511253 -0.434082,-0.516075 -0.434082,-1.4469398 V 6.9823969 H 10.714028 V 6.2878656 h 2.069124 v 3.4823026 q 0,0.5884228 0.221864,0.8971028 0.221865,0.308681 0.6463,0.308681 h 1.036974 v 0.752409 z"}}),n("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 18.209178,11.829646 q -0.771701,0 -1.813498,-0.337619 v -0.916395 q 1.012858,0.511252 1.803852,0.511252 0.564306,0 0.901926,-0.236334 0.337619,-0.236333 0.337619,-0.63183 0,-0.3424428 -0.284565,-0.5498376 Q 18.87477,9.4566645 18.257409,9.3264399 l -0.371381,-0.07717 Q 17.123973,9.0949295 16.767061,8.7428407 16.414972,8.3859288 16.414972,7.7733908 q 0,-0.7765245 0.530545,-1.1961372 0.530545,-0.4196126 1.509641,-0.4196126 0.829579,0 1.606103,0.3183268 v 0.8681641 q -0.757232,-0.4437283 -1.581988,-0.4437283 -1.167198,0 -1.167198,0.7958171 0,0.2604492 0.101286,0.4147895 0.101286,0.1495171 0.385851,0.2556261 0.284565,0.1012858 0.839225,0.2122179 l 0.356912,0.067524 q 1.340831,0.2652724 1.340831,1.4614098 0,0.80064 -0.56913,1.263661 -0.56913,0.458197 -1.557872,0.458197 z"}}),n("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 25.207545,11.709068 q -0.993565,0 -1.408355,-0.40032 -0.409966,-0.405143 -0.409966,-1.3794164 V 6.9775737 H 21.947107 V 6.2878656 h 1.442117 V 4.8746874 l 0.887457,-0.3858507 v 1.7990289 h 2.016069 v 0.6897081 h -2.016069 v 2.9517579 q 0,0.5932454 0.226687,0.8344024 0.226687,0.236333 0.790994,0.236333 h 0.998388 v 0.709001 z"}}),n("path",{staticStyle:{"stroke-width":"0.26458332"},attrs:{d:"m 27.995317,11.043476 q 0,-0.178456 0.120578,-0.299035 0.274919,-0.289388 0.651123,-0.684885 0.376205,-0.4003199 0.805464,-0.8681638 0.327973,-0.356912 0.491959,-0.5353679 0.16881,-0.1832791 0.255626,-0.2845649 0.09164,-0.1012858 0.178456,-0.2073948 0.255626,-0.3086805 0.405144,-0.5257215 0.15434,-0.2170411 0.250803,-0.4292589 0.168809,-0.3762045 0.168809,-0.7524089 0,-0.5980686 -0.352089,-0.935688 -0.356911,-0.3424425 -0.979096,-0.3424425 -0.863341,0 -1.938899,0.6414768 V 4.8361023 q 0.491959,-0.2363335 0.979096,-0.3569119 0.47749,-0.1205783 0.945334,-0.1205783 0.501606,0 0.940511,0.1350477 0.438905,0.1350478 0.766878,0.4244358 0.289388,0.2556261 0.463021,0.6270074 0.173633,0.3665582 0.173633,0.829579 0,0.4726671 -0.212218,0.9501574 -0.106109,0.2411567 -0.274919,0.4726671 -0.163986,0.2266873 -0.424435,0.540191 Q 31.270225,8.501684 31.077299,8.718725 30.884374,8.9357661 30.628748,9.2106847 30.445469,9.4084332 30.286305,9.5675966 30.131965,9.72676 29.958332,9.9003928 29.7847,10.069203 29.558012,10.300713 29.336148,10.5274 29.012998,10.869843 h 3.356901 v 0.819932 h -4.374582 z"}})])])])},d=[],p={name:"Sist2Icon"},h=p,m=n("2877"),f=Object(m["a"])(h,l,d,!1,null,null,null),g=f.exports,v={name:"NavBar",components:{Sist2Icon:g},methods:{tagline:function(){return this.$store.state.sist2Info.tagline},sist2Version:function(){return this.$store.state.sist2Info.version},isDebug:function(){return this.$store.state.sist2Info.debug},isLegacy:function(){return this.$store.state.sist2Info.esVersionLegacy},hideLegacy:function(){return this.$store.state.optHideLegacy}}},b=v,x=(n("c337"),Object(m["a"])(b,c,u,!1,null,"a2e450d8",null)),y=x.exports,_=n("2f62"),T={components:{NavBar:y},data:function(){return{configLoading:!1}},computed:Object(s["a"])({},Object(_["c"])(["optTheme"])),mounted:function(){var e=this;this.$store.dispatch("loadConfiguration").then((function(){e.$root.$i18n.locale=e.$store.state.optLang})),this.$store.subscribe((function(t){"setOptLang"===t.type&&(e.$root.$i18n.locale=t.payload,e.configLoading=!0,window.setTimeout((function(){return e.configLoading=!1}),10))}))},methods:{getClass:function(){return{"theme-light":"light"===this.optTheme,"theme-black":"black"===this.optTheme}}}},S=T,w=(n("034f"),Object(m["a"])(S,o,a,!1,null,null,null)),z=w.exports,$=n("8c4f"),O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-container",[e.loading?n("b-card",[n("Preloader")],1):[n("b-card",[n("b-card-body",[n("b-select",{attrs:{options:e.indexOptions},scopedSlots:e._u([{key:"first",fn:function(){return[n("b-form-select-option",{attrs:{value:null,disabled:""}},[e._v(e._s(e.$t("indexPickerPlaceholder")))])]},proxy:!0}]),model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}})],1)],1),null!==e.selectedIndex?n("b-card",{staticClass:"mt-3"},[n("b-card-body",[n("D3Treemap",{attrs:{"index-id":e.selectedIndex}})],1)],1):e._e(),null!==e.selectedIndex?n("b-card",{staticClass:"stats-card mt-3"},[n("D3MimeBarCount",{attrs:{"index-id":e.selectedIndex}}),n("D3MimeBarSize",{attrs:{"index-id":e.selectedIndex}}),n("D3DateHistogram",{attrs:{"index-id":e.selectedIndex}}),n("D3SizeHistogram",{attrs:{"index-id":e.selectedIndex}})],1):e._e()]],2)},C=[],k=(n("d81d"),n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-btn",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{variant:"primary"},on:{click:function(t){return e.downloadTreemap()}}},[e._v(" "+e._s(e.$t("download"))+" ")]),n("svg",{attrs:{id:"treemap"}})],1)}),M=[],L=n("2909"),I=(n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("a15b"),n("99af"),n("a434"),n("4de4"),n("2b3d"),n("159b"),n("ac1f"),n("1276"),n("a9e3"),n("5698"));n("b64b");function D(e,t,n,r){var i=window.innerWidth<=650;i&&(t=25);var o="rtl"===getComputedStyle(e).direction,a="rtl"===e.noUiSlider.options.direction,s="vertical"===e.noUiSlider.options.orientation,c=e.noUiSlider.getTooltips(),u=e.noUiSlider.getOrigins();c.forEach((function(e,t){e&&u[t].appendChild(e)})),e.noUiSlider.on("update",(function(e,i,u,l,d){var p=[[]],h=[[]],m=[[]],f=0;c[0]&&(p[0][0]=0,h[0][0]=d[0],m[0][0]=e[0]);for(var g=1;g<d.length;g++)(!c[g]||d[g]-d[g-1]>t)&&(f++,p[f]=[],m[f]=[],h[f]=[]),c[g]&&(p[f].push(g),m[f].push(e[g]),h[f].push(d[g]));if(p.forEach((function(e,t){for(var r=e.length,i=0;i<r;i++){var u=e[i];if(i===r-1){var l=0;h[t].forEach((function(e){l+=1e3-10*e}));var d=s?"bottom":"right",p=a?0:r-1,f=1e3-10*h[t][p];l=(o&&!s?100:0)+l/r-f,c[u].innerHTML=m[t].join(n),c[u].style.display="block",c[u].style[d]=l+"%"}else c[u].style.display="none"}})),r){var v=window.innerWidth<=650,b=v?20:5;d[0]<b?c[0].style.right="".concat(-35*(1-d[0]/b),"px"):c[0].style.right="0",d[1]>100-b?c[1].style.right="".concat((d[1]-(100-b))/b*35,"px"):c[1].style.right="0"}}))}function P(e,t,n){var r={};e.forEach((function(e){var n=r;e.taxonomy.forEach((function(e){n[e]=e in n?n[e]:{},n=n[e]})),0===Object.keys(n).length?n["$size$"]=e.size:t&&(n["."]={$size$:e.size})}));var i=function e(t,n){return Object.keys(t).filter((function(e){return"$size$"!==e})).map((function(r){var i={name:r,depth:n,value:0,children:e(t[r],n+1)};return"$size$"in t[r]&&(i.value=t[r]["$size$"]),i}))};return{name:n,children:i(r,1),value:0,depth:0}}n("fb6a"),n("b680"),n("6062"),n("a630"),n("5319");function E(e){return Object.prototype.hasOwnProperty.call(e._source,"extension")&&""!==e["_source"]["extension"]?"."+e["_source"]["extension"]:""}function j(e){for(var t="",n=0;n<e.length;n++){var r=e[n],i=e[n+1];"]"===r?"]"===i?(t+=r,n+=1):(t+=String.fromCharCode(parseInt(e.slice(n,n+2),16)),n+=2):t+=r}return t}var q=1e3,H=["k","M","G","T","P","E","Z","Y"];function B(e){if(0===e)return"0 B";if(Math.abs(e)<q)return e+" B";var t=-1;do{e/=q,++t}while(Math.abs(e)>=q&&t<H.length-1);return e.toFixed(1)+H[t]}function A(e){e=Math.floor(e);var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),r=e-3600*t-60*n;return"".concat(t<10?"0":"").concat(t,":").concat(n<10?"0":"").concat(n,":").concat(r<10?"0":"").concat(r)}function R(e){var t=new Date(1e3*e);return t.getUTCFullYear()+"-"+("0"+(t.getUTCMonth()+1)).slice(-2)+"-"+("0"+t.getUTCDate()).slice(-2)}function U(e){e=e.substring(1);var t=parseInt(e,16),n=t>>16&255,r=t>>8&255,i=t>>0&255;return.2126*n+.7152*r+.0722*i}function F(e){for(var t=new Set,n=e.selected(),r=0;r<n.length;r++){if("any"===n[r].id)return["any"];-1!==n[r].text.indexOf("(")&&(n[r].values?t.add(n[r].values.slice(-1)[0]):t.add(n[r].id))}return Array.from(t)}function Q(e){if(0!=e.length)return e.map((function(e){return G(e)})).join("")}function N(e){return e.replaceAll(/([IVATUF])/g,"$$$&").split("$").map((function(e){return V(e)})).slice(1)}function G(e){return e.replace("image/","I").replace("video/","V").replace("application/","A").replace("text/","T").replace("audio/","U").replace("font/","F").replace("+",",").replace("x-","X")}function V(e){return e.replace("I","image/").replace("V","video/").replace("A","application/").replace("T","text/").replace("U","audio/").replace("F","font/").replace(",","+").replace("X","x-")}var W=n("d4ec"),K=n("bee2"),Y=n("53ca"),J=(n("2ca0"),n("25f0"),n("bc3a")),Z=n.n(J),X=n("cb49");function ee(e,t){for(var n=function(n){var r=t.slice(0,n);if(1==e.filter((function(e){return e.id.slice(0,n)==r})).length)return{v:r}},r=4;r<32;r++){var i=n(r);if("object"===Object(Y["a"])(i))return i.v}return t}var te=function(){function e(t){Object(W["a"])(this,e),this.baseUrl=t}return Object(K["a"])(e,[{key:"getSist2Info",value:function(){return Z.a.get("".concat(this.baseUrl,"i")).then((function(e){var t=e.data.indices;return e.data.indices=t.map((function(e){return{id:e.id,name:e.name,timestamp:e.timestamp,version:e.version,idPrefix:ee(t,e.id)}})),e.data}))}},{key:"setHitProps",value:function(e){e["_props"]={};var t=null==e._source.mime?null:e._source.mime.split("/")[0];switch("parent"in e._source&&(e._props.isSubDocument=!0),"thumbnail"in e._source&&(e._props.hasThumbnail=!0),t){case"image":"gif"===e._source.videoc?e._props.isGif=!0:e._props.isImage=!0,"width"in e._source&&!e._props.isSubDocument&&"tiff"!==e._source.videoc&&"raw"!==e._source.videoc&&"ppm"!==e._source.videoc&&(e._props.isPlayableImage=!0);break;case"video":if("videoc"in e._source&&(e._props.isVideo=!0),e._props.isVideo){var n=e._source.videoc,r=e._source.mime;e._props.isPlayableVideo=null!=r&&r.startsWith("video/")&&!e._props.isSubDocument&&"mkv"!==e._source.extension&&"avi"!==e._source.extension&&"mov"!==e._source.extension&&"hevc"!==n&&"mpeg1video"!==n&&"mpeg2video"!==n&&"wmv3"!==n}break;case"audio":"audioc"in e._source&&!e._props.isSubDocument&&(e._props.isAudio=!0);break}}},{key:"setHitTags",value:function(e){var t=this,n=[],r=null==e._source.mime?null:e._source.mime.split("/")[0];switch(r){case"image":case"video":"videoc"in e._source&&e._source.videoc&&n.push({style:"video",text:e._source.videoc.replace(" ",""),userTag:!1});break;case"audio":"audioc"in e._source&&e._source.audioc&&n.push({style:"audio",text:e._source.audioc,userTag:!1});break}"tag"in e._source&&e._source.tag.forEach((function(e){n.push(t.createUserTag(e))})),e._tags=n}},{key:"createUserTag",value:function(e){var t=e.split("."),n=t.pop(),r=n,i=U(n)>50?"#000":"#fff";return{style:"user",fg:i,bg:r,text:t.join("."),rawText:e,userTag:!0}}},{key:"esQuery",value:function(e){var t=this;return Z.a.post("".concat(this.baseUrl,"es"),e).then((function(e){var n,r=e.data;return null!==(n=r.hits)&&void 0!==n&&n.hits&&r.hits.hits.forEach((function(e){e["_source"]["name"]=j(e["_source"]["name"]),e["_source"]["path"]=j(e["_source"]["path"]),e["_path_md5"]=X["a"].MD5(e["_source"]["path"]+(e["_source"]["path"]?"/":"")+e["_source"]["name"]+E(e)).toString(),t.setHitProps(e),t.setHitTags(e)})),r}))}},{key:"getMimeTypes",value:function(){return this.esQuery({aggs:{mimeTypes:{terms:{field:"mime",size:1e4}}},size:0}).then((function(e){var t=[];return e["aggregations"]["mimeTypes"]["buckets"].sort((function(e,t){return e.key>t.key})).forEach((function(e){var n=e["key"].split("/"),r=n[0],i=n[1],o=!1,a={id:e["key"],text:"".concat(i," (").concat(e["doc_count"],")")};t.forEach((function(e){e.text===r&&(e.children.push(a),o=!0)})),o||t.push({text:r,children:[a]})})),t}))}},{key:"_createEsTag",value:function(e,t){var n=e.split(".");return/.*\.#[0-9a-f]{6}/.test(e)?{id:n.slice(0,-1).join("."),color:n.pop(),isLeaf:!0,count:t}:{id:e,count:t,isLeaf:!1,color:void 0}}},{key:"getDocInfo",value:function(e){return Z.a.get("".concat(this.baseUrl,"d/").concat(e))}},{key:"getTags",value:function(){var e=this;return this.esQuery({aggs:{tags:{terms:{field:"tag",size:1e4}}},size:0}).then((function(t){var n=new Set,r=t["aggregations"]["tags"]["buckets"].sort((function(e,t){return e["key"].localeCompare(t["key"])})).map((function(t){return e._createEsTag(t["key"],t["doc_count"])}));return r.filter((function(e){return!n.has(e.id)&&(n.add(e.id),!0)}))}))}},{key:"saveTag",value:function(e,t){return Z.a.post("".concat(this.baseUrl,"tag/")+t["_source"]["index"],{delete:!1,name:e,doc_id:t["_id"],path_md5:t._path_md5})}},{key:"deleteTag",value:function(e,t){return Z.a.post("".concat(this.baseUrl,"tag/")+t["_source"]["index"],{delete:!0,name:e,doc_id:t["_id"],path_md5:t._path_md5})}},{key:"getTreemapCsvUrl",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/1")}},{key:"getMimeCsvUrl",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/2")}},{key:"getSizeCsv",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/3")}},{key:"getDateCsv",value:function(e){return"".concat(this.baseUrl,"s/").concat(e,"/4")}}]),e}(),ne=new te(""),re=n("70b0"),ie=n.n(re),oe={squarify:I["L"],binary:I["H"],sliceDice:I["K"],slice:I["J"],dice:I["I"]},ae={PuBuGn:I["n"],PuRd:I["o"],PuBu:I["m"],YlOrBr:I["t"],YlOrRd:I["u"],YlGn:I["r"],YlGnBu:I["s"],Plasma:I["l"],Magma:I["k"],Inferno:I["j"],Viridis:I["q"],Turbo:I["p"]},se={small:[800,600],medium:[1300,750],large:[1900,900],"x-large":[2800,1700],"xx-large":[3600,2e3]},ce={};function ue(e){var t=ce[e]||0;return ce[e]=t+1,e+t}function le(e,t){var n=new Map,r=new Map;return e.eachAfter((function(e){e.children&&0!==e.children.length?(n.set(e,1+I["v"](e.children,(function(r){return r.x1===e.x1-t?n.get(r):NaN}))),r.set(e,1+I["v"](e.children,(function(n){return n.y1===e.y1-t?r.get(n):NaN})))):(n.set(e,0),r.set(e,0))})).eachBefore((function(e){e.x1-=2*t*n.get(e),e.y1-=2*t*r.get(e)}))}function de(e,t,n,r,i,o){var a=le(I["G"]().size([n,r]).tile(oe[i]).paddingOuter(3).paddingTop(16).paddingInner(1).round(!0)(I["h"](e).sum((function(e){return e.value})).sort((function(e,t){return t.value-e.value}))),3),s=Math.max.apply(Math,Object(L["a"])(a.descendants().map((function(e){return e.depth})))),c=I["C"]([s,-1],ae[o]);t.append("filter").attr("id","shadow").append("feDropShadow").attr("flood-opacity",.3).attr("dx",0).attr("stdDeviation",3);var u=t.selectAll("g").data(I["w"]().key((function(e){return e.depth})).sortKeys(I["a"]).entries(a.descendants())).join("g").attr("filter","url(#shadow)").selectAll("g").data((function(e){return e.values})).join("g").attr("transform",(function(e){return"translate(".concat(e.x0,",").concat(e.y0,")")}));u.append("title").text((function(e){return"".concat(e.ancestors().reverse().splice(1).map((function(e){return e.data.name})).join("/"),"\n").concat(B(e.value))})),u.append("rect").attr("id",(function(e){return e.nodeUid=ue("node")})).attr("fill",(function(e){return c(e.depth)})).attr("width",(function(e){return e.x1-e.x0})).attr("height",(function(e){return e.y1-e.y0})),u.append("clipPath").attr("id",(function(e){return e.clipUid=ue("clip")})).append("use").attr("href",(function(e){return"#".concat(e.nodeUid)})),u.append("text").attr("fill",(function(e){return I["i"](c(e.depth)).l>.5?"#333":"#eee"})).attr("clip-path",(function(e){return"url(#".concat(e.clipUid,")")})).selectAll("tspan").data((function(e){return[e.data.name,B(e.value)]})).join("tspan").text((function(e){return e})),u.filter((function(e){return e.children})).selectAll("tspan").attr("dx",3).attr("y",13),u.filter((function(e){return!e.children})).selectAll("tspan").attr("x",3).attr("y",(function(e,t){return"".concat(0===t?1.1:2.3,"em")}))}function pe(e,t,n,r,i,o,a){var s=I["B"](I["D"]),c=I["G"]().tile(oe[o]).size([n,r]).padding(1).round(!0)(I["h"](e).sum((function(e){return e.value})).sort((function(e,t){return t.value-e.value}))),u=t.selectAll("g").data(c.leaves()).join("g").attr("transform",(function(e){return"translate(".concat(e.x0,",").concat(e.y0,")")}));u.append("title").text((function(e){return"".concat(e.ancestors().reverse().map((function(e){return e.data.name})).join("/"),"\n").concat(B(e.value))})),u.append("rect").attr("id",(function(e){return e.leafUid=ue("leaf")})).attr("fill",(function(e){while(e.depth>i)e=e.parent;return s(e.data.name)})).attr("fill-opacity",a).attr("width",(function(e){return e.x1-e.x0})).attr("height",(function(e){return e.y1-e.y0})),u.append("clipPath").attr("id",(function(e){return e.clipUid=ue("clip")})).append("use").attr("href",(function(e){return"#".concat(e.leafUid)})),u.append("text").attr("clip-path",(function(e){return"url(#".concat(e.clipUid,")")})).selectAll("tspan").data((function(e){return"."===e.data.name&&(e=e.parent),[e.data.name,B(e.value)]})).join("tspan").attr("x",2).attr("y",(function(e,t){return"".concat(0===t?1.1:2.3,"em")})).text((function(e){return e}))}function he(e,t,n){ie.a.toBlob(document.getElementById("treemap"),{width:t,height:n}).then((function(t){var n=document.createElement("a"),r=URL.createObjectURL(t);n.href=r,n.download="".concat(e,"_treemap.png"),document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)}),0)}))}var me={name:"D3Treemap",props:["indexId"],watch:{indexId:function(){this.update(this.indexId)}},mounted:function(){this.update(this.indexId)},methods:{update:function(e){var t=this,n=se[this.$store.state.optTreemapSize][0],r=se[this.$store.state.optTreemapSize][1],i=this.$store.state.optTreemapTiling,o=this.$store.state.optTreemapColorGroupingDepth,a=this.$store.state.optTreemapColor,s=this.$store.state.optTreemapType,c=I["E"]("#treemap");c.selectAll("*").remove(),c.attr("viewBox",[0,0,n,r]).attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").attr("version","1.1").style("overflow","visible").style("font","10px sans-serif"),I["e"](ne.getTreemapCsvUrl(e)).then((function(e){if(e.forEach((function(e){e.taxonomy=e.path.split("/"),e.size=Number(e.size)})),"cascaded"===s){var u=P(e,!1);de(u,c,n,r,i,a)}else{var l=P(e.sort((function(e,t){return t.taxonomy.length-e.taxonomy.length})),!0),d="black"===t.$store.state.optTheme?.9:.6;pe(l,c,n,r,o,i,d)}}))},downloadTreemap:function(){var e=se[this.$store.state.optTreemapSize][0],t=se[this.$store.state.optTreemapSize][1];he(this.indexId,e,t)}}},fe=me,ge=Object(m["a"])(fe,k,M,!1,null,null,null),ve=ge.exports,be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-progress",{attrs:{value:"1",max:"1",animated:""}})},xe=[],ye={},_e=Object(m["a"])(ye,be,xe,!1,null,null,null),Te=_e.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-count"}})])},we=[],ze=I["g"]("~s"),$e=20,Oe=I["B"](I["D"]);function Ce(e,t,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](e.sort((function(e,t){return t.count-e.count})).slice(0,15),(function(e){return e.mime.length})),6*I["v"](e.sort((function(e,t){return t.size-e.size})).slice(0,15),(function(e){return e.mime.length})))};e.forEach((function(e){e.name=e.mime,e.value=Number(e.count)})),e=e.sort((function(e,t){return t.value-e.value})).slice(0,15);var o=550,a=Math.ceil((e.length+.1)*$e)+i.top+i.bottom;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](e.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](e,(function(e){return e.value}))]).range([i.left,o-i.right]);t.append("g").attr("fill-opacity",n).selectAll("rect").data(e).join("rect").attr("fill",(function(e){return Oe(e.name)})).attr("x",c(0)).attr("y",(function(e,t){return s(t)})).attr("width",(function(e){return c(e.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(e){return I["g"](",")(e.value)})),t.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,e.format).tickFormat(ze)).call((function(e){return e.select(".domain").remove()})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(t){return e[t].name})).tickSizeOuter(0)),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var ke={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#agg-mime-count"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](ne.getMimeCsvUrl(e)).then((function(e){Ce(e.slice(),n,r,t.$t("d3.mimeCount"))}))}}},Me=ke,Le=Object(m["a"])(Me,Se,we,!1,null,null,null),Ie=Le.exports,De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"agg-mime-size"}})])},Pe=[],Ee=I["g"]("~s"),je=20,qe=I["B"](I["D"]);function He(e,t,n,r){var i={top:50,right:0,bottom:10,left:Math.max(6*I["v"](e.sort((function(e,t){return t.count-e.count})).slice(0,15),(function(e){return e.mime.length})),6*I["v"](e.sort((function(e,t){return t.size-e.size})).slice(0,15),(function(e){return e.mime.length})))};e.forEach((function(e){e.name=e.mime,e.value=Number(e.size)})),e=e.sort((function(e,t){return t.value-e.value})).slice(0,15);var o=550,a=Math.ceil((e.length+.1)*je)+i.top+i.bottom;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["z"]().domain(I["y"](e.length)).rangeRound([i.top,a-i.bottom]),c=I["A"]().domain([0,I["v"](e,(function(e){return e.value}))]).range([i.left,o-i.right]);t.append("g").attr("fill-opacity",n).selectAll("rect").data(e).join("rect").attr("fill",(function(e){return qe(e.name)})).attr("x",c(0)).attr("y",(function(e,t){return s(t)})).attr("width",(function(e){return c(e.value)-c(0)})).attr("height",s.bandwidth()).append("title").text((function(e){return Ee(e.value)})),t.append("g").attr("transform","translate(0,".concat(i.top,")")).call(I["d"](c).ticks(o/80,e.format).tickFormat(Ee)).call((function(e){return e.select(".domain").remove()})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).tickFormat((function(t){return e[t].name})).tickSizeOuter(0)),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(r)}var Be={name:"D3MimeBarSize",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#agg-mime-size"),r="black"===this.$store.state.optTheme?.9:.6;I["e"](ne.getMimeCsvUrl(e)).then((function(e){He(e.slice(),n,r,t.$t("d3.mimeSize"))}))}}},Ae=Be,Re=Object(m["a"])(Ae,De,Pe,!1,null,null,null),Ue=Re.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"date-histogram"}})])},Qe=[],Ne=I["g"]("~s");function Ge(e,t,n){var r=e.map((function(e){return{length:Number(e.count),x0:Number(e.bucket),x1:Number(e.bucket)+2629800}}));r.sort((function(e,t){return e.length-t.length}));var i={top:50,right:20,bottom:70,left:40},o=I["x"](r,.9,(function(e){return e.length}));r=r.filter((function(e){return e.length>o}));var a=550,s=450;t.selectAll("*").remove(),t.attr("viewBox",[0,0,a,s]);var c=I["A"]().domain([0,I["v"](r,(function(e){return e.length}))]).nice().range([s-i.bottom,i.top]),u=I["A"]().domain(I["f"](r,(function(e){return e.x0}))).nice().range([i.left,a-i.right]);t.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(e){return u(e.x0)+1})).attr("width",(function(e){return Math.max(1,u(e.x1)-u(e.x0)-1)})).attr("y",(function(e){return c(e.length)})).attr("height",(function(e){return c(0)-c(e.length)})).call((function(e){return e.append("title").text((function(e){return e.length}))})),t.append("g").attr("transform","translate(0,".concat(s-i.bottom,")")).call(I["b"](u).ticks(a/30).tickSizeOuter(0).tickFormat((function(e){return I["F"]("%Y-%m-%d")(I["M"]("%s")(e))}))).call((function(e){return e.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(e){return e.append("text").attr("x",a-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("mtime")})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](c).ticks(s/40).tickFormat((function(e){return Ne(e)}))).call((function(e){return e.select(".domain").remove()})).call((function(e){return e.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),t.append("text").attr("x",a/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var Ve={name:"D3DateHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#date-histogram");I["e"](ne.getDateCsv(e)).then((function(e){Ge(e.slice(),n,t.$t("d3.dateHistogram"))}))}}},We=Ve,Ke=Object(m["a"])(We,Fe,Qe,!1,null,null,null),Ye=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"graph"},[n("svg",{attrs:{id:"size-histogram"}})])},Ze=[],Xe=I["g"]("~s");function et(e,t,n){var r=e.map((function(e){return{length:Number(e.count),x0:Number(e.bucket),x1:Number(e.bucket)+5242880}}));r=r.sort((function(e,t){return t.length-e.length})).slice(0,25);var i={top:50,right:20,bottom:70,left:40},o=550,a=450;t.selectAll("*").remove(),t.attr("viewBox",[0,0,o,a]);var s=I["A"]().domain([0,I["v"](r,(function(e){return e.length}))]).range([a-i.bottom,i.top]),c=I["A"]().domain(I["f"](r,(function(e){return e.x0}))).nice().range([i.left,o-i.right]);t.append("g").attr("fill","steelblue").selectAll("rect").data(r).join("rect").attr("x",(function(e){return c(e.x0)+1})).attr("width",(function(e){return Math.max(1,c(e.x1)-c(e.x0)-1)})).attr("y",(function(e){return s(e.length)})).attr("height",(function(e){return s(0)-s(e.length)})).call((function(e){return e.append("title").text((function(e){return e.length}))})),t.append("g").attr("transform","translate(0,".concat(a-i.bottom,")")).call(I["b"](c).ticks(o/30).tickSizeOuter(0).tickFormat(Xe)).call((function(e){return e.selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)")})).call((function(e){return e.append("text").attr("x",o-i.right).attr("y",-4).attr("fill","currentColor").attr("font-weight","bold").attr("text-anchor","end").text("size (bytes)")})),t.append("g").attr("transform","translate(".concat(i.left,",0)")).call(I["c"](s).ticks(a/40).tickFormat((function(e){return Xe(e)}))).call((function(e){return e.select(".domain").remove()})).call((function(e){return e.select(".tick:last-of-type text").clone().attr("x",4).attr("text-anchor","start").attr("font-weight","bold").text("File count")})),t.append("text").attr("x",o/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").text(n)}var tt={name:"D3SizeHistogram",props:["indexId"],mounted:function(){this.update(this.indexId)},watch:{indexId:function(){this.update(this.indexId)}},methods:{update:function(e){var t=this,n=I["E"]("#size-histogram");I["e"](ne.getSizeCsv(e)).then((function(e){et(e.slice(),n,t.$t("d3.sizeHistogram"))}))}}},nt=tt,rt=Object(m["a"])(nt,Je,Ze,!1,null,null,null),it=rt.exports,ot={components:{D3SizeHistogram:it,D3DateHistogram:Ye,D3MimeBarSize:Ue,D3MimeBarCount:Ie,D3Treemap:ve,Preloader:Te},data:function(){return{loading:!0,selectedIndex:null,indices:[]}},computed:{indexOptions:function(){return this.indices.map((function(e){return{text:e.name,value:e.id}}))}},mounted:function(){var e=this;ne.getSist2Info().then((function(t){e.indices=t.indices,e.loading=!1}))}},at=ot,st=(n("f093"),Object(m["a"])(at,O,C,!1,null,null,null)),ct=st.exports,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.configLoading?e._e():n("div",{staticClass:"container",staticStyle:{"margin-left":"auto","margin-right":"auto"}},[n("b-card",[n("b-card-title",[n("GearIcon"),e._v(" "+e._s(e.$t("config"))+" ")],1),n("p",[e._v(e._s(e.$t("configDescription")))]),n("b-card-body",[n("h4",[e._v(e._s(e.$t("displayOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:e.optLightboxLoadOnlyCurrent},on:{input:e.setOptLightboxLoadOnlyCurrent}},[e._v(" "+e._s(e.$t("opt.lightboxLoadOnlyCurrent"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optHideLegacy},on:{input:e.setOptHideLegacy}},[e._v(" "+e._s(e.$t("opt.hideLegacy"))+" ")]),n("label",[e._v(e._s(e.$t("opt.lang")))]),n("b-form-select",{attrs:{options:e.langOptions,value:e.optLang},on:{input:e.setOptLang}}),n("label",[e._v(e._s(e.$t("opt.theme")))]),n("b-form-select",{attrs:{options:e.themeOptions,value:e.optTheme},on:{input:e.setOptTheme}}),n("label",[e._v(e._s(e.$t("opt.displayMode")))]),n("b-form-select",{attrs:{options:e.displayModeOptions,value:e.optDisplay},on:{input:e.setOptDisplay}}),n("label",[e._v(e._s(e.$t("opt.columns")))]),n("b-form-select",{attrs:{options:e.columnsOptions,value:e.optColumns},on:{input:e.setOptColumns}})],1),n("br"),n("h4",[e._v(e._s(e.$t("searchOptions")))]),n("b-card",[n("b-form-checkbox",{attrs:{checked:e.optHideDuplicates},on:{input:e.setOptHideDuplicates}},[e._v(e._s(e.$t("opt.hideDuplicates"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optHighlight},on:{input:e.setOptHighlight}},[e._v(e._s(e.$t("opt.highlight")))]),n("b-form-checkbox",{attrs:{checked:e.optTagOrOperator},on:{input:e.setOptTagOrOperator}},[e._v(e._s(e.$t("opt.tagOrOperator"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optFuzzy},on:{input:e.setOptFuzzy}},[e._v(e._s(e.$t("opt.fuzzy")))]),n("b-form-checkbox",{attrs:{checked:e.optSearchInPath},on:{input:e.setOptSearchInPath}},[e._v(e._s(e.$t("opt.searchInPath"))+" ")]),n("b-form-checkbox",{attrs:{checked:e.optSuggestPath},on:{input:e.setOptSuggestPath}},[e._v(e._s(e.$t("opt.suggestPath"))+" ")]),n("br"),n("label",[e._v(e._s(e.$t("opt.fragmentSize")))]),n("b-form-input",{attrs:{value:e.optFragmentSize,step:"10",type:"number",min:"0"},on:{input:e.setOptFragmentSize}}),n("label",[e._v(e._s(e.$t("opt.resultSize")))]),n("b-form-input",{attrs:{value:e.optResultSize,type:"number",min:"10"},on:{input:e.setOptResultSize}}),n("label",[e._v(e._s(e.$t("opt.queryMode")))]),n("b-form-select",{attrs:{options:e.queryModeOptions,value:e.optQueryMode},on:{input:e.setOptQueryMode}}),n("label",[e._v(e._s(e.$t("opt.slideDuration")))]),n("b-form-input",{attrs:{value:e.optLightboxSlideDuration,type:"number",min:"1"},on:{input:e.setOptLightboxSlideDuration}})],1),n("h4",{staticClass:"mt-3"},[e._v(e._s(e.$t("treemapOptions")))]),n("b-card",[n("label",[e._v(e._s(e.$t("opt.treemapType")))]),n("b-form-select",{attrs:{value:e.optTreemapType,options:e.treemapTypeOptions},on:{input:e.setOptTreemapType}}),n("label",[e._v(e._s(e.$t("opt.treemapTiling")))]),n("b-form-select",{attrs:{value:e.optTreemapTiling,options:e.treemapTilingOptions},on:{input:e.setOptTreemapTiling}}),n("label",[e._v(e._s(e.$t("opt.treemapColorGroupingDepth")))]),n("b-form-input",{attrs:{value:e.optTreemapColorGroupingDepth,type:"number",min:"1"},on:{input:e.setOptTreemapColorGroupingDepth}}),n("label",[e._v(e._s(e.$t("opt.treemapSize")))]),n("b-form-select",{attrs:{value:e.optTreemapSize,options:e.treemapSizeOptions},on:{input:e.setOptTreemapSize}}),"custom"===e.$store.getters.optTreemapSize?[n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}}),n("b-form-input",{attrs:{type:"number",min:"0",step:"10"}})]:e._e(),n("label",[e._v(e._s(e.$t("opt.treemapColor")))]),n("b-form-select",{attrs:{value:e.optTreemapColor,options:e.treemapColorOptions},on:{input:e.setOptTreemapColor}})],2),n("b-button",{staticClass:"mt-4",attrs:{variant:"danger"},on:{click:function(t){return e.onResetClick()}}},[e._v(e._s(e.$t("configReset")))])],1)],1),e.loading?n("b-card",{staticClass:"mt-4"},[n("Preloader")],1):n("DebugInfo")],1)},lt=[],dt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-card",{staticClass:"mb-4 mt-4"},[n("b-card-title",[n("DebugIcon",{staticClass:"mr-1"}),e._v(e._s(e.$t("debug")))],1),n("p",{domProps:{innerHTML:e._s(e.$t("debugDescription"))}}),n("b-card-body",[n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}}),n("hr"),e._l(e.$store.state.sist2Info.indices,(function(e){return n("IndexDebugInfo",{key:e.id,staticClass:"mt-2",attrs:{index:e}})}))],2)],1)},pt=[],ht=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h4",[e._v("["+e._s(e.index.name)+"]")]),n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"}})],1)},mt=[],ft={name:"IndexDebugInfo",props:["index"],computed:{tableItems:function(){return[{key:this.$t("name"),value:this.index.name},{key:this.$t("id"),value:this.index.id},{key:this.$t("indexVersion"),value:this.index.version},{key:this.$t("rewriteUrl"),value:this.index.rewriteUrl},{key:this.$t("timestamp"),value:R(this.index.timestamp)}]}}},gt=ft,vt=Object(m["a"])(gt,ht,mt,!1,null,"9d879710",null),bt=vt.exports,xt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 309.998 309.998",fill:"currentColor"}},[n("path",{attrs:{d:"M294.998,155.03H250v-48.82l39.714-39.715c5.858-5.857,5.858-15.356,0-21.213c-5.857-5.857-15.355-5.857-21.213,0 l-23.7,23.701c-12.885-37.2-48.274-63.984-89.802-63.984c-41.528,0-76.913,26.787-89.797,63.989L41.497,45.282 c-5.856-5.859-15.354-5.857-21.213,0s-5.858,15.355,0,21.213L60,106.212v48.818H15c-8.284,0-15,6.716-15,15c0,8.284,6.716,15,15,15 h45.134c0.855,16.314,5.849,31.551,13.944,44.68l-49.685,49.683c-5.858,5.857-5.858,15.354,0,21.213 c2.929,2.93,6.768,4.394,10.607,4.394c3.838,0,7.678-1.465,10.606-4.394l48.095-48.093c16.558,14.018,37.957,22.486,61.301,22.486 c0.019,0,0.037-0.001,0.057-0.001c0.011,0,0.022,0.002,0.033,0.002c0.019,0,0.037-0.003,0.056-0.003 c23.285-0.035,44.629-8.494,61.15-22.483l48.094,48.092c2.929,2.929,6.768,4.394,10.606,4.394c3.839,0,7.678-1.465,10.607-4.394 c5.858-5.858,5.858-15.355,0-21.213l-49.683-49.681c8.096-13.131,13.089-28.366,13.944-44.682h45.132c8.284,0,15-6.716,15-15 C309.998,161.746,303.282,155.03,294.998,155.03z M154.999,34.999c30.681,0,56.465,21.365,63.254,50H91.747 C98.535,56.364,124.318,34.999,154.999,34.999z M90,179.999v-9.272c0.011-0.232,0.035-0.462,0.035-0.696 c0-0.234-0.024-0.464-0.035-0.695v-54.336h50.092v128.254C111.415,236.494,90,210.708,90,179.999z M170.092,243.212V114.999H220 v54.297c-0.012,0.244-0.037,0.486-0.037,0.734c0,0.248,0.025,0.49,0.037,0.734v9.234C220,210.645,198.676,236.388,170.092,243.212z"}})])},yt=[],_t={name:"DebugIcon"},Tt=_t,St=(n("f960"),Object(m["a"])(Tt,xt,yt,!1,null,"464a0d97",null)),wt=St.exports,zt={name:"DebugInfo.vue",components:{DebugIcon:wt,IndexDebugInfo:bt},computed:{tableItems:function(){return[{key:"version",value:this.$store.state.sist2Info.version},{key:"platform",value:this.$store.state.sist2Info.platform},{key:"debugBinary",value:this.$store.state.sist2Info.debug},{key:"sist2CommitHash",value:this.$store.state.sist2Info.sist2Hash},{key:"libscanCommitHash",value:this.$store.state.sist2Info.libscanHash},{key:"esIndex",value:this.$store.state.sist2Info.esIndex},{key:"tagline",value:this.$store.state.sist2Info.tagline},{key:"dev",value:this.$store.state.sist2Info.dev},{key:"esVersion",value:this.$store.state.sist2Info.esVersion},{key:"esVersionSupported",value:this.$store.state.sist2Info.esVersionSupported},{key:"esVersionLegacy",value:this.$store.state.sist2Info.esVersionLegacy}]}}},$t=zt,Ot=Object(m["a"])($t,dt,pt,!1,null,null,null),Ct=Ot.exports,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 1000",fill:"currentColor"}},[n("g",{attrs:{transform:"translate(0.000000,512.000000) scale(0.100000,-0.100000)"}},[n("path",{attrs:{d:"M4568.5,5011c-73.2-7.7-154-25-177.1-36.6c-84.7-46.2-102-119.4-159.8-689.2s-65.5-610.3-159.8-670c-23.1-15.4-125.1-55.8-225.3-90.5c-100.1-32.7-290.7-111.7-423.6-175.2c-319.6-152.1-315.8-152.1-619.9,94.3c-718.1,583.3-650.7,535.2-747,535.2c-77,0-104-11.6-184.8-77c-157.9-127.1-410.1-375.4-567.9-558.3c-155.9-177.1-190.6-250.3-159.8-344.6c9.6-27,165.6-227.2,344.6-446.7c181-219.5,342.7-425.5,360-458.2c52-88.6,42.3-150.2-50.1-335c-73.2-148.3-144.4-325.4-252.2-623.8c-17.3-50-57.8-113.6-88.6-138.6c-63.5-53.9-59.7-53.9-695-117.4c-527.5-52-577.6-65.5-627.6-179c-46.2-105.9-46.2-1057,0-1162.9c50-113.6,98.2-127.1,646.9-181c271.5-25,523.7-52,560.2-57.8c111.7-17.3,179.1-107.8,259.9-344.6c38.5-115.5,119.4-310,177.1-431.3c57.8-119.4,104-240.7,104-269.5c0-78.9-42.4-140.5-394.7-568c-179-219.5-335-419.7-344.6-446.6c-30.8-94.3,3.9-167.5,159.8-344.6c157.9-181,410.1-429.3,564.1-554.5c96.3-78.9,188.7-105.9,265.7-75.1c26.9,11.6,234.9,173.3,462.1,360c227.2,188.7,433.2,348.5,458.2,358.1c82.8,30.8,136.7,17.3,354.3-86.6c119.4-57.8,308-136.7,419.7-175.2c111.7-38.5,221.4-82.8,244.5-98.2c94.3-59.7,102-100.1,159.8-670c61.6-606.5,73.2-648.8,188.7-700.8c105.9-46.2,1057-46.2,1162.9,0c115.5,52,127.1,94.3,188.7,700.8c57.8,569.9,65.4,610.3,159.8,670c23.1,15.4,132.9,59.7,244.5,98.2s300.3,117.4,417.8,175.2c219.5,104,273.4,117.5,356.2,86.6c25-9.6,231-169.4,458.2-358.1c227.2-186.8,435.1-348.5,462.1-360c77-28.9,169.4-3.9,265.7,75.1c152.1,121.3,442.8,410.1,583.4,577.6c140.6,163.6,173.3,242.6,136.7,333.1c-11.6,27-173.3,234.9-360,462.1c-188.7,227.2-348.5,433.2-358.1,458.2c-30.8,82.8-17.3,136.7,86.6,356.2c57.8,117.4,138.6,311.9,177.1,427.4c80.9,236.8,148.3,327.3,259.9,344.6c36.6,5.8,288.8,32.7,562.2,59.7c308,28.9,517.9,59.7,550.6,77c30.8,15.4,71.2,59.7,90.5,100.1c32.8,65.4,36.6,123.2,34.7,573.7c0,562.2-11.5,627.6-115.5,687.3c-46.2,27-188.7,48.1-612.2,90.5c-573.7,59.7-614.2,67.4-673.8,161.7c-15.4,23.1-59.7,132.9-98.2,244.5s-117.4,300.3-175.2,417.8c-57.8,119.4-104,240.7-104,271.5c0,80.9,40.4,138.6,394.7,569.9c181,219.5,335,419.7,344.6,446.7c30.8,94.3-3.9,167.5-159.8,344.6c-157.9,181-410.1,429.3-564.1,554.5c-96.3,78.9-188.7,104-265.7,75.1c-27-11.6-234.9-173.3-462.1-360c-227.2-188.7-433.2-348.5-458.2-358.1c-80.9-30.8-130.9-19.2-371.6,96.3c-130.9,61.6-325.4,142.5-431.3,177.1c-217.5,71.2-308,140.5-325.4,250.3c-5.8,36.6-32.7,288.8-57.8,560.3c-53.9,550.6-67.4,596.8-181,645C5502.3,5018.7,4807.3,5036,4568.5,5011z M5463.8,1897.8c502.5-127.1,954.9-494.8,1184-960.7c446.7-914.5,78.9-2011.9-824-2460.5c-1053.1-521.8-2308.4,52-2604.9,1189.8c-71.2,277.2-71.2,629.6,0,904.9c192.5,737.4,814.4,1284.2,1569.1,1376.6C4974.8,1971,5255.9,1949.8,5463.8,1897.8z"}})])])},Mt=[],Lt={name:"GearIcon"},It=Lt,Dt=(n("b23c"),Object(m["a"])(It,kt,Mt,!1,null,"d6d86c56",null)),Pt=Dt.exports,Et={components:{GearIcon:Pt,DebugInfo:Ct,Preloader:Te},data:function(){return{loading:!0,configLoading:!1,langOptions:[{value:"en",text:this.$t("lang.en")},{value:"fr",text:this.$t("lang.fr")}],queryModeOptions:[{value:"simple",text:this.$t("queryMode.simple")},{value:"advanced",text:this.$t("queryMode.advanced")}],displayModeOptions:[{value:"grid",text:this.$t("displayMode.grid")},{value:"list",text:this.$t("displayMode.list")}],columnsOptions:[{value:"auto",text:this.$t("columns.auto")},{value:1,text:"1"},{value:2,text:"2"},{value:3,text:"3"},{value:4,text:"4"},{value:5,text:"5"},{value:6,text:"6"},{value:7,text:"7"},{value:8,text:"8"},{value:9,text:"9"},{value:10,text:"10"},{value:11,text:"11"},{value:12,text:"12"}],treemapTypeOptions:[{value:"cascaded",text:this.$t("treemapType.cascaded")},{value:"flat",text:this.$t("treemapType.flat")}],treemapTilingOptions:[{value:"binary",text:this.$t("treemapTiling.binary")},{value:"squarify",text:this.$t("treemapTiling.squarify")},{value:"slice",text:this.$t("treemapTiling.slice")},{value:"dice",text:this.$t("treemapTiling.dice")},{value:"sliceDice",text:this.$t("treemapTiling.sliceDice")}],treemapSizeOptions:[{value:"small",text:this.$t("treemapSize.small")},{value:"medium",text:this.$t("treemapSize.medium")},{value:"large",text:this.$t("treemapSize.large")},{value:"x-large",text:this.$t("treemapSize.xLarge")},{value:"xx-large",text:this.$t("treemapSize.xxLarge")}],treemapColorOptions:[{value:"PuBuGn",text:"Purple-Blue-Green"},{value:"PuRd",text:"Purple-Red"},{value:"PuBu",text:"Purple-Blue"},{value:"YlOrBr",text:"Yellow-Orange-Brown"},{value:"YlOrRd",text:"Yellow-Orange-Red"},{value:"YlGn",text:"Yellow-Green"},{value:"YlGnBu",text:"Yellow-Green-Blue"},{value:"Plasma",text:"Plasma"},{value:"Magma",text:"Magma"},{value:"Inferno",text:"Inferno"},{value:"Viridis",text:"Viridis"},{value:"Turbo",text:"Turbo"}],themeOptions:[{value:"light",text:this.$t("theme.light")},{value:"black",text:this.$t("theme.black")}]}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["optTheme","optDisplay","optColumns","optHighlight","optFuzzy","optSearchInPath","optSuggestPath","optFragmentSize","optQueryMode","optTreemapType","optTreemapTiling","optTreemapColorGroupingDepth","optTreemapColor","optTreemapSize","optLightboxLoadOnlyCurrent","optLightboxSlideDuration","optResultSize","optTagOrOperator","optLang","optHideDuplicates","optHideLegacy"])),{},{clientWidth:function(){return window.innerWidth}}),mounted:function(){var e=this;ne.getSist2Info().then((function(t){e.$store.commit("setSist2Info",t),e.loading=!1})),this.$store.subscribe((function(t){t.type.startsWith("setOpt")&&e.$store.dispatch("updateConfiguration")}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setOptTheme","setOptDisplay","setOptColumns","setOptHighlight","setOptFuzzy","setOptSearchInPath","setOptSuggestPath","setOptFragmentSize","setOptQueryMode","setOptTreemapType","setOptTreemapTiling","setOptTreemapColorGroupingDepth","setOptTreemapColor","setOptTreemapSize","setOptLightboxLoadOnlyCurrent","setOptLightboxSlideDuration","setOptContainerWidth","setOptResultSize","setOptTagOrOperator","setOptLang","setOptHideDuplicates","setOptHideLegacy"])),{},{onResetClick:function(){localStorage.removeItem("sist2_configuration"),window.location.reload()}})},jt=Et,qt=(n("f2e9"),Object(m["a"])(jt,ut,lt,!1,null,null,null)),Ht=qt.exports,Bt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("Lightbox"),n("HelpDialog",{attrs:{show:e.showHelp},on:{close:function(t){e.showHelp=!1}}}),e.uiLoading?n("b-card",[n("Preloader")],1):e._e(),n("b-card",{directives:[{name:"show",rawName:"v-show",value:!e.uiLoading,expression:"!uiLoading"}],attrs:{id:"search-panel"}},[n("SearchBar",{on:{"show-help":function(t){e.showHelp=!0}}}),n("b-row",[n("b-col",{staticStyle:{height:"70px"},attrs:{sm:"6"}},[n("SizeSlider")],1),n("b-col",[n("PathTree",{on:{search:function(t){return e.search(!0)}}})],1)],1),n("b-row",[n("b-col",{attrs:{sm:"6"}},[n("b-row",[n("b-col",{staticStyle:{height:"70px"}},[n("DateSlider")],1)],1),n("b-row",[n("b-col",[n("IndexPicker")],1)],1)],1),n("b-col",[n("b-tabs",[n("b-tab",{attrs:{title:e.$t("mimeTypes")}},[n("MimePicker")],1),n("b-tab",{attrs:{title:e.$t("tags")}},[n("TagPicker")],1)],1)],1)],1)],1),e.searchBusy&&0===e.docs.length?n("Preloader",{staticClass:"mt-3"}):e.docs.length>0?n("div",[n("ResultsCard"),"grid"===e.optDisplay?n("DocCardWall",{attrs:{docs:e.docs,append:e.appendFunc}}):n("DocList",{attrs:{docs:e.docs,append:e.appendFunc}})],1):e._e()],1)},At=[],Rt=n("b85c"),Ut=n("1da1"),Ft=(n("96cf"),n("841c"),n("caad"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-input-group",{scopedSlots:e._u([{key:"prepend",fn:function(){return[n("b-input-group-text",[n("b-form-checkbox",{attrs:{checked:e.fuzzy,title:"Toggle fuzzy searching"},on:{change:function(t){return e.setFuzzy(t)}}},[e._v(" "+e._s(e.$t("searchBar.fuzzy"))+" ")])],1)]},proxy:!0},{key:"append",fn:function(){return[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.$emit("show-help")}}},[e._v(e._s(e.$t("help.help")))])]},proxy:!0}])},[n("b-form-input",{attrs:{value:e.searchText,placeholder:e.advanced()?e.$t("searchBar.advanced"):e.$t("searchBar.simple")},on:{input:function(t){return e.setSearchText(t)}}})],1)],1)}),Qt=[],Nt={computed:Object(s["a"])({},Object(_["c"])({optQueryMode:"optQueryMode",searchText:"searchText",fuzzy:"fuzzy"})),methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSearchText:"setSearchText",setFuzzy:"setFuzzy"})),{},{advanced:function(){return"advanced"===this.optQueryMode}})},Gt=Nt,Vt=Object(m["a"])(Gt,Ft,Qt,!1,null,null,null),Wt=Vt.exports,Kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isMobile?n("div",[n("b-form-select",{attrs:{value:e.selectedIndicesIds,options:e.indices,multiple:"","select-size":6,"text-field":"name","value-field":"id"},on:{change:function(t){return e.onSelect(t)}}})],1):n("div",[n("b-list-group",{attrs:{id:"index-picker-desktop"}},e._l(e.indices,(function(t){return n("b-list-group-item",{staticClass:"d-flex justify-content-between align-items-center list-group-item-action pointer",on:{click:function(n){return e.toggleIndex(t)}}},[n("div",{staticClass:"d-flex"},[n("b-checkbox",{attrs:{checked:e.isSelected(t)},on:{change:function(n){return e.toggleIndex(t)}}}),e._v(" "+e._s(t.name)+" "),n("span",{staticClass:"text-muted timestamp-text ml-2"},[e._v(e._s(e.formatIdxDate(t.timestamp)))])],1),n("b-badge",{staticClass:"version-badge"},[e._v("v"+e._s(t.version))])],1)})),1)],1)},Yt=[],Jt=(n("2532"),n("7db0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-badge",{attrs:{variant:"secondary",pill:e.pill}},[e._v(e._s(e.text))])}),Zt=[],Xt=r["default"].extend({props:{text:String,pill:Boolean}}),en=Xt,tn=(n("8021"),Object(m["a"])(en,Jt,Zt,!1,null,"4dea1070",null)),nn=tn.exports,rn=n("b166"),on=r["default"].extend({components:{SmallBadge:nn},data:function(){return{loading:!0}},computed:Object(s["a"])(Object(s["a"])({},Object(_["c"])(["indices","selectedIndices"])),{},{selectedIndicesIds:function(){return this.selectedIndices.map((function(e){return e.id}))},isMobile:function(){return window.innerWidth<=650}}),methods:Object(s["a"])(Object(s["a"])({},Object(_["b"])({setSelectedIndices:"setSelectedIndices"})),{},{onSelect:function(e){this.setSelectedIndices(this.indices.filter((function(t){return e.includes(t.id)})))},formatIdxDate:function(e){return Object(rn["a"])(new Date(1e3*e),"yyyy-MM-dd")},toggleIndex:function(e){this.isSelected(e)?this.setSelectedIndices(this.selectedIndices.filter((function(t){return t.id!=e.id}))):this.setSelectedIndices([e].concat(Object(L["a"])(this.selectedIndices)))},isSelected:function(e){return null!=this.selectedIndices.find((function(t){return t.id==e.id}))}})}),an=on,sn=(n("8c1b"),Object(m["a"])(an,Kt,Yt,!1,null,"0f2d1c85",null)),cn=sn.exports;n("498a");r["default"].use(_["a"]);var un=new _["a"].Store({state:{seed:0,indices:[],tags:[],sist2Info:null,sizeMin:void 0,sizeMax:void 0,dateBoundsMin:null,dateBoundsMax:null,dateMin:void 0,dateMax:void 0,searchText:"",pathText:"",sortMode:"score",fuzzy:!1,size:60,optLang:"en",optHideDuplicates:!0,optTheme:"light",optDisplay:"grid",optHighlight:!0,optTagOrOperator:!1,optFuzzy:!0,optFragmentSize:200,optQueryMode:"simple",optSearchInPath:!1,optColumns:"auto",optSuggestPath:!0,optTreemapType:"cascaded",optTreemapTiling:"squarify",optTreemapColorGroupingDepth:3,optTreemapSize:"medium",optTreemapColor:"PuBuGn",optLightboxLoadOnlyCurrent:!1,optLightboxSlideDuration:15,optHideLegacy:!1,_onLoadSelectedIndices:[],_onLoadSelectedMimeTypes:[],_onLoadSelectedTags:[],selectedIndices:[],selectedMimeTypes:[],selectedTags:[],lastQueryResults:null,keySequence:0,querySequence:0,uiTagHover:null,uiLightboxIsOpen:!1,uiShowLightbox:!1,uiLightboxSources:[],uiLightboxThumbs:[],uiLightboxCaptions:[],uiLightboxTypes:[],uiLightboxKey:0,uiLightboxSlide:0,uiReachedScrollEnd:!1,uiMimeMap:[]},mutations:{setUiReachedScrollEnd:function(e,t){return e.uiReachedScrollEnd=t},setTags:function(e,t){return e.tags=t},setPathText:function(e,t){return e.pathText=t},setSizeMin:function(e,t){return e.sizeMin=t},setSizeMax:function(e,t){return e.sizeMax=t},setSist2Info:function(e,t){return e.sist2Info=t},setSeed:function(e,t){return e.seed=t},setOptHideDuplicates:function(e,t){return e.optHideDuplicates=t},setOptLang:function(e,t){return e.optLang=t},setSortMode:function(e,t){return e.sortMode=t},setIndices:function(e,t){e.indices=t,e._onLoadSelectedIndices.length>0?e.selectedIndices=t.filter((function(t){return e._onLoadSelectedIndices.some((function(e){return t.id.startsWith(e)}))})):e.selectedIndices=t},setDateMin:function(e,t){return e.dateMin=t},setDateMax:function(e,t){return e.dateMax=t},setDateBoundsMin:function(e,t){return e.dateBoundsMin=t},setDateBoundsMax:function(e,t){return e.dateBoundsMax=t},setSearchText:function(e,t){return e.searchText=t},setFuzzy:function(e,t){return e.fuzzy=t},setLastQueryResult:function(e,t){return e.lastQueryResults=t},_setOnLoadSelectedIndices:function(e,t){return e._onLoadSelectedIndices=t},_setOnLoadSelectedMimeTypes:function(e,t){return e._onLoadSelectedMimeTypes=t},_setOnLoadSelectedTags:function(e,t){return e._onLoadSelectedTags=t},setSelectedIndices:function(e,t){return e.selectedIndices=t},setSelectedMimeTypes:function(e,t){return e.selectedMimeTypes=t},setSelectedTags:function(e,t){return e.selectedTags=t},setUiTagHover:function(e,t){return e.uiTagHover=t},setUiLightboxIsOpen:function(e,t){return e.uiLightboxIsOpen=t},_setUiShowLightbox:function(e,t){return e.uiShowLightbox=t},setUiLightboxKey:function(e,t){return e.uiLightboxKey=t},_setKeySequence:function(e,t){return e.keySequence=t},_setQuerySequence:function(e,t){return e.querySequence=t},addLightboxSource:function(e,t){var n=t.source,r=t.thumbnail,i=t.caption,o=t.type;e.uiLightboxSources.push(n),e.uiLightboxThumbs.push(r),e.uiLightboxCaptions.push(i),e.uiLightboxTypes.push(o)},setUiLightboxSlide:function(e,t){return e.uiLightboxSlide=t},setUiLightboxSources:function(e,t){return e.uiLightboxSources=t},setUiLightboxThumbs:function(e,t){return e.uiLightboxThumbs=t},setUiLightboxTypes:function(e,t){return e.uiLightboxTypes=t},setUiLightboxCaptions:function(e,t){return e.uiLightboxCaptions=t},setOptTheme:function(e,t){return e.optTheme=t},setOptDisplay:function(e,t){return e.optDisplay=t},setOptColumns:function(e,t){return e.optColumns=t},setOptHighlight:function(e,t){return e.optHighlight=t},setOptFuzzy:function(e,t){return e.fuzzy=t},setOptSearchInPath:function(e,t){return e.optSearchInPath=t},setOptSuggestPath:function(e,t){return e.optSuggestPath=t},setOptFragmentSize:function(e,t){return e.optFragmentSize=t},setOptQueryMode:function(e,t){return e.optQueryMode=t},setOptResultSize:function(e,t){return e.size=t},setOptTagOrOperator:function(e,t){return e.optTagOrOperator=t},setOptTreemapType:function(e,t){return e.optTreemapType=t},setOptTreemapTiling:function(e,t){return e.optTreemapTiling=t},setOptTreemapColorGroupingDepth:function(e,t){return e.optTreemapColorGroupingDepth=t},setOptTreemapSize:function(e,t){return e.optTreemapSize=t},setOptTreemapColor:function(e,t){return e.optTreemapColor=t},setOptHideLegacy:function(e,t){return e.optHideLegacy=t},setOptLightboxLoadOnlyCurrent:function(e,t){return e.optLightboxLoadOnlyCurrent=t},setUiMimeMap:function(e,t){return e.uiMimeMap=t},busUpdateWallItems:function(){},busUpdateTags:function(){}},actions:{loadFromArgs:function(e,t){var n=e.commit;t.query.q&&n("setSearchText",t.query.q),void 0!==t.query.fuzzy&&n("setFuzzy",!0),t.query.i&&n("_setOnLoadSelectedIndices",Array.isArray(t.query.i)?t.query.i:[t.query.i]),t.query.dMin&&n("setDateMin",Number(t.query.dMin)),t.query.dMax&&n("setDateMax",Number(t.query.dMax)),t.query.sMin&&n("setSizeMin",Number(t.query.sMin)),t.query.sMax&&n("setSizeMax",Number(t.query.sMax)),t.query.path&&n("setPathText",t.query.path),t.query.m&&n("_setOnLoadSelectedMimeTypes",N(t.query.m)),t.query.t&&n("_setOnLoadSelectedTags",t.query.t.split(",")),t.query.sort&&(n("setSortMode",t.query.sort),n("setSeed",Number(t.query.seed)))},updateArgs:function(e,t){return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=e.state,n.next=3,t.push({query:{q:r.searchText.trim()?r.searchText.trim().replace(/\s+/g," "):void 0,fuzzy:r.fuzzy?null:void 0,i:r.selectedIndices?r.selectedIndices.map((function(e){return e.idPrefix})):void 0,dMin:r.dateMin,dMax:r.dateMax,sMin:r.sizeMin,sMax:r.sizeMax,path:r.pathText?r.pathText:void 0,m:Q(r.selectedMimeTypes),t:0==r.selectedTags.length?void 0:r.selectedTags.join(","),sort:"score"===r.sortMode?void 0:r.sortMode,seed:"random"===r.sortMode?r.seed.toString():void 0}}).catch((function(){}));case 3:case"end":return n.stop()}}),n)})))()},updateConfiguration:function(e){var t=e.state,n={};Object.keys(t).forEach((function(e){e.startsWith("opt")&&(n[e]=t[e])})),localStorage.setItem("sist2_configuration",JSON.stringify(n))},loadConfiguration:function(e){var t=e.state,n=localStorage.getItem("sist2_configuration");if(n){var r=JSON.parse(n);Object.keys(t).forEach((function(e){e.startsWith("opt")&&(t[e]=r[e])}))}},setSelectedIndices:function(e,t){var n=e.commit;return n("setSelectedIndices",t)},getKeySequence:function(e){var t=e.commit,n=e.state,r=n.keySequence;return t("_setKeySequence",r+1),r},incrementQuerySequence:function(e){var t=e.commit,n=e.state,r=n.querySequence;return t("_setQuerySequence",r+1),r},remountLightbox:function(e){var t=e.commit,n=e.state;t("setUiLightboxKey",n.uiLightboxKey+1)},showLightbox:function(e){var t=e.commit,n=e.state;t("_setUiShowLightbox",!n.uiShowLightbox)},clearResults:function(e){var t=e.commit;t("setLastQueryResult",null),t("_setKeySequence",0),t("_setUiShowLightbox",!1),t("setUiLightboxSources",[]),t("setUiLightboxThumbs",[]),t("setUiLightboxTypes",[]),t("setUiLightboxCaptions",[]),t("setUiLightboxKey",0)}},modules:{},getters:{seed:function(e){return e.seed},getPathText:function(e){return e.pathText},indices:function(e){return e.indices},sist2Info:function(e){return e.sist2Info},indexMap:function(e){var t={};return e.indices.forEach((function(e){return t[e.id]=e})),t},selectedIndices:function(e){return e.selectedIndices},_onLoadSelectedIndices:function(e){return e._onLoadSelectedIndices},selectedMimeTypes:function(e){return e.selectedMimeTypes},selectedTags:function(e){return e.selectedTags},dateMin:function(e){return e.dateMin},dateMax:function(e){return e.dateMax},sizeMin:function(e){return e.sizeMin},sizeMax:function(e){return e.sizeMax},searchText:function(e){return e.searchText},pathText:function(e){return e.pathText},fuzzy:function(e){return e.fuzzy},size:function(e){return e.size},sortMode:function(e){return e.sortMode},lastQueryResult:function(e){return e.lastQueryResults},lastDoc:function(e){return null==e.lastQueryResults?null:e.lastQueryResults.hits.hits.slice(-1)[0]},uiTagHover:function(e){return e.uiTagHover},uiShowLightbox:function(e){return e.uiShowLightbox},uiLightboxSources:function(e){return e.uiLightboxSources},uiLightboxThumbs:function(e){return e.uiLightboxThumbs},uiLightboxCaptions:function(e){return e.uiLightboxCaptions},uiLightboxTypes:function(e){return e.uiLightboxTypes},uiLightboxKey:function(e){return e.uiLightboxKey},uiLightboxSlide:function(e){return e.uiLightboxSlide},optHideDuplicates:function(e){return e.optHideDuplicates},optLang:function(e){return e.optLang},optTheme:function(e){return e.optTheme},optDisplay:function(e){return e.optDisplay},optColumns:function(e){return e.optColumns},optHighlight:function(e){return e.optHighlight},optTagOrOperator:function(e){return e.optTagOrOperator},optFuzzy:function(e){return e.optFuzzy},optSearchInPath:function(e){return e.optSearchInPath},optSuggestPath:function(e){return e.optSuggestPath},optFragmentSize:function(e){return e.optFragmentSize},optQueryMode:function(e){return e.optQueryMode},optTreemapType:function(e){return e.optTreemapType},optTreemapTiling:function(e){return e.optTreemapTiling},optTreemapSize:function(e){return e.optTreemapSize},optTreemapColorGroupingDepth:function(e){return e.optTreemapColorGroupingDepth},optTreemapColor:function(e){return e.optTreemapColor},optLightboxLoadOnlyCurrent:function(e){return e.optLightboxLoadOnlyCurrent},optLightboxSlideDuration:function(e){return e.optLightboxSlideDuration},optResultSize:function(e){return e.size},optHideLegacy:function(e){return e.optHideLegacy}}}),ln={score:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._score}},random:{mode:[{_score:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._score}},dateAsc:{mode:[{mtime:{order:"asc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.mtime}},dateDesc:{mode:[{mtime:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.mtime}},sizeAsc:{mode:[{size:{order:"asc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.size}},sizeDesc:{mode:[{size:{order:"desc"}},{_tie:{order:"asc"}}],key:function(e){return e._source.size}}},dn=function(){function e(){Object(W["a"])(this,e)}return Object(K["a"])(e,[{key:"searchQuery",value:function(){var e=un.getters,t=e.searchText,n=e.pathText,r=""===t,i=e.sizeMin,o=e.sizeMax,a=e.dateMin,s=e.dateMax,c=e.fuzzy,u=e.size,l=e.lastDoc,d=e.selectedIndices.map((function(e){return e.id})),p=e.selectedMimeTypes,h=e.selectedTags,m=un.state.sist2Info.esVersionLegacy,f=[{terms:{index:d}}];i&&o?f.push({range:{size:{gte:i,lte:o}}}):i?f.push({range:{size:{gte:i}}}):o&&f.push({range:{size:{lte:o}}}),a&&s?f.push({range:{mtime:{gte:a,lte:s}}}):a?f.push({range:{mtime:{gte:a}}}):s&&f.push({range:{mtime:{lte:s}}});var g=["name^8","content^3","album^8","artist^8","title^8","genre^2","album_artist^8","font_name^6"];e.optSearchInPath&&g.push("path.text^5"),c&&(g.push("content.nGram"),e.optSearchInPath&&g.push("path.nGram"),g.push("name.nGram^3"));var v,b=n.replace(/\/$/,"").toLowerCase();""!==b&&f.push({term:{path:b}}),p.length>0&&f.push({terms:{mime:p}}),h.length>0&&(e.optTagOrOperator?f.push({terms:{tag:h}}):h.forEach((function(e){return f.push({term:{tag:e}})}))),v="simple"===e.optQueryMode?{simple_query_string:{query:t,fields:g,default_operator:"and"}}:{query_string:{query:t,default_field:"name",default_operator:"and"}};var x={_source:{excludes:["content","_tie"]},query:{bool:{filter:f}},sort:ln[e.sortMode].mode,aggs:{total_size:{sum:{field:"size"}},total_count:{value_count:{field:"size"}}},size:u};return r||(x.query.bool.must=v),l&&(x.search_after=[ln[e.sortMode].key(l),l["_id"]]),e.optHighlight&&(x.highlight={pre_tags:["<mark>"],post_tags:["</mark>"],fragment_size:e.optFragmentSize,number_of_fragments:1,order:"score",fields:{content:{},name:{},"name.nGram":{},"content.nGram":{},font_name:{}}},m||(x.highlight.max_analyzed_offset=9999999),e.optSearchInPath&&(x.highlight.fields["path.text"]={},x.highlight.fields["path.nGram"]={})),"random"===e.sortMode&&(x.query={function_score:{query:{bool:{must:f}},functions:[{random_score:{seed:e.seed,field:"_seq_no"},weight:1e3}],boost_mode:"sum"}},r||x.query.function_score.query.bool.must.push(v)),x}}]),e}(),pn=new dn,hn=n("b047"),mn=n.n(hn),fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("GridLayout",{ref:"grid-layout",attrs:{options:e.gridOptions},on:{append:e.append,"layout-complete":function(t){return e.$emit("layout-complete")}}},e._l(e.docs,(function(t){return n("DocCard",{key:t._id,attrs:{doc:t,width:e.width}})})),1)},gn=[],vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"doc-card",class:{"sub-document":e.doc._props.isSubDocument},style:"width: "+e.width+"px"},[n("b-card",{attrs:{"no-body":"","img-top":""}},[n("DocInfoModal",{attrs:{show:e.showInfo,doc:e.doc},on:{close:function(t){e.showInfo=!1}}}),n("ContentDiv",{attrs:{doc:e.doc}}),e.doc._props.hasThumbnail?n("div",{staticClass:"img-wrapper",on:{mouseenter:function(t){return e.onTnEnter()},mouseleave:function(t){return e.onTnLeave()}}},[e.doc._props.isAudio?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.humanTime(e.doc._source.duration)))])]):e._e(),e.doc._props.isImage&&!e.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.doc._source.width+"x"+e.doc._source.height))])]):e._e(),(e.doc._props.isVideo||e.doc._props.isGif)&&e.doc._source.duration>0&&!e.hover?n("div",{staticClass:"card-img-overlay",class:{"small-badge":e.smallBadge}},[n("span",{staticClass:"badge badge-resolution"},[e._v(e._s(e.humanTime(e.doc._source.duration)))])]):e._e(),e.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):e._e(),e.doc._props.isPlayableImage||e.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit card-img-top",attrs:{src:e.doc._props.isGif&&e.hover?"f/"+e.doc._id:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""},on:{click:function(t){return e.onThumbnailClick()}}}):n("img",{staticClass:"fit card-img-top",attrs:{src:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""}})]):e._e(),e.doc._props.isAudio?n("audio",{ref:"audio",staticClass:"audio-fit fit",attrs:{preload:"none",controls:"",type:e.doc._source.mime,src:"f/"+e.doc._id},on:{play:function(t){return e.onAudioPlay()}}}):e._e(),n("b-card-body",{staticClass:"padding-03"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(t){return e.onInfoClick()}}}),n("DocFileTitle",{attrs:{doc:e.doc}})],1),n("div",{staticClass:"card-text"},[n("TagContainer",{attrs:{hit:e.doc}})],1)])],1)],1)},bn=[],xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{on:{mouseenter:function(t){e.showAddButton=!0},mouseleave:function(t){e.showAddButton=!1}}},[n("b-modal",{attrs:{title:e.$t("saveTagModalTitle"),"hide-footer":"","no-fade":"",centered:"",size:"lg",static:"",lazy:""},model:{value:e.showModal,callback:function(t){e.showModal=t},expression:"showModal"}},[n("b-row",[n("b-col",{staticStyle:{"flex-grow":"2"},attrs:{sm:""}},[n("VueSimpleSuggest",{ref:"suggest",staticClass:"form-control-fix-flex",staticStyle:{"margin-top":"17px"},attrs:{value:e.tagText,list:e.suggestTag,"max-suggestions":0,placeholder:e.$t("saveTagPlaceholder")},on:{select:function(t){return e.setTagText(t)},input:function(t){return e.setTagText(t)}},scopedSlots:e._u([{key:"suggestion-item",fn:function(t){var r=t.suggestion,i=t.query;return n("div",{},[n("div",{staticClass:"suggestion-line"},[n("span",{staticClass:"badge badge-suggestion",style:{background:e.getBg(r),color:e.getFg(r)}},[n("strong",[e._v(e._s(i))]),e._v(e._s(e.getSuggestionWithoutQueryPrefix(r,i))+" ")])])])}}])})],1),n("b-col",{staticClass:"mt-4"},[n("TwitterColorPicker",{staticClass:"mr-auto ml-auto",attrs:{triangle:"hide",width:252},model:{value:e.color,callback:function(t){e.color=t},expression:"color"}})],1)],1),n("b-button",{staticClass:"mt-2",staticStyle:{float:"right"},attrs:{variant:"primary"},on:{click:function(t){return e.saveTag()}}},[e._v(e._s(e.$t("confirm"))+" ")])],1),e._l(e.hit._tags,(function(t){return[t.userTag?n("div",{key:t.rawText,staticStyle:{display:"inline-block"}},[n("span",{staticClass:"badge pointer",class:e.badgeClass(t),style:e.badgeStyle(t),attrs:{id:e.hit._id+t.rawText,title:t.text,tabindex:"-1"},on:{contextmenu:function(n){return e.onTagRightClick(t,n)}}},[e._v(e._s(t.text.split(".").pop()))]),n("b-popover",{attrs:{target:e.hit._id+t.rawText,triggers:"focus blur",placement:"top"}},[n("b-button",{attrs:{variant:"danger"},on:{click:function(n){return e.onTagDeleteClick(t,n)}}},[e._v("Delete")])],1)],1):n("span",{key:t.text,staticClass:"badge",class:e.badgeClass(t),style:e.badgeStyle(t)},[e._v(e._s(t.text.split(".").pop()))])]})),e.showAddButton?n("small",{staticClass:"badge add-tag-button",on:{click:function(t){return e.tagAdd()}}},[e._v("Add")]):n("small",{staticClass:"text-muted badge-size"},[e._v(e._s(e.humanFileSize(e.hit._source.size)))])],2)},yn=[],_n=n("c345"),Tn=n("5111"),Sn=r["default"].extend({components:{TwitterColorPicker:_n["Twitter"],VueSimpleSuggest:Tn["a"]},props:["hit"],data:function(){return{showAddButton:!1,showModal:!1,tagText:null,color:{hex:"#e0e0e0"}}},computed:{tagHover:function(){return this.$store.getters["uiTagHover"]}},methods:{humanFileSize:B,getSuggestionWithoutQueryPrefix:function(e,t){return e.id.slice(t.length,-8)},getBg:function(e){return e.id.slice(-7)},getFg:function(e){return U(e.id.slice(-7))>50?"#000":"#fff"},setTagText:function(e){this.$refs.suggest.clearSuggestions(),"string"!==typeof e?(this.color={hex:"#"+e.id.split("#")[1]},this.tagText=e):this.tagText={id:e,title:e}},badgeClass:function(e){return"badge-".concat(e.style)},badgeStyle:function(e){return{background:e.bg,color:e.fg}},onTagHover:function(e){e.userTag&&this.$store.commit("setUiTagHover",e)},onTagLeave:function(){this.$store.commit("setUiTagHover",null)},onTagDeleteClick:function(e,t){var n=this;this.hit._tags=this.hit._tags.filter((function(t){return t!==e})),ne.deleteTag(e.rawText,this.hit).then((function(){n.$store.commit("busUpdateWallItems"),n.$store.commit("busUpdateTags")}))},tagAdd:function(){this.showModal=!0},saveTag:function(){var e=this;if(this.tagText.id.includes("#"))this.$bvToast.toast(this.$t("toast.invalidTag"),{title:this.$t("toast.invalidTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"});else{var t=this.tagText.id+this.color.hex.replace("#",".#"),n=this.hit._tags.filter((function(e){return e.userTag}));null==n.find((function(e){return e.rawText===t}))?(this.hit._tags.push(ne.createUserTag(t)),ne.saveTag(t,this.hit).then((function(){e.tagText=null,e.showModal=!1,e.$store.commit("busUpdateWallItems"),e.$store.commit("busUpdateTags")}))):this.$bvToast.toast(this.$t("toast.dupeTag"),{title:this.$t("toast.dupeTagTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})}},suggestTag:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=e.toLowerCase(),n.next=3,t.getTagChoices(e);case 3:for(r=n.sent,i=[],o=0;o<r.length;o++)~r[o].toLowerCase().indexOf(e)&&i.push(r[o]);return n.abrupt("return",i.sort().map((function(e){return{title:e.split(".").slice(0,-1).join("."),id:e}})));case 7:case"end":return n.stop()}}),n)})))()},getTagChoices:function(e){return new Promise((function(t){ne.esQuery({suggest:{tag:{prefix:e,completion:{field:"suggest-tag",skip_duplicates:!0,size:1e4}}}}).then((function(e){var n=[];e["suggest"]["tag"][0]["options"].map((function(e){return e["_source"]["tag"]})).forEach((function(e){e.forEach((function(e){var t=e.slice(0,-8);n.find((function(e){return e.slice(0,-8)===t}))||n.push(e)}))})),t(n)}))}))}}}),wn=Sn,zn=(n("52ab"),n("c4ff"),Object(m["a"])(wn,xn,yn,!1,null,"acf38e8c",null)),$n=zn.exports,On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"file-title-anchor",attrs:{href:"f/"+e.doc._id,target:"_blank"}},[n("div",{staticClass:"file-title",attrs:{title:e.doc._source.path+"/"+e.doc._source.name+e.ext(e.doc)},domProps:{innerHTML:e._s(e.fileName()+e.ext(e.doc))}})])},Cn=[],kn={name:"DocFileTitle",props:["doc"],methods:{ext:E,fileName:function(){return this.doc.highlight?this.doc.highlight["name.nGram"]?this.doc.highlight["name.nGram"]:this.doc.highlight.name?this.doc.highlight.name:this.doc._source.name:this.doc._source.name}}},Mn=kn,Ln=(n("ac16"),Object(m["a"])(Mn,On,Cn,!1,null,"786adab2",null)),In=Ln.exports,Dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-modal",{attrs:{visible:e.show,size:"lg","hide-footer":!0,static:"",lazy:""},on:{close:function(t){return e.$emit("close")},hide:function(t){return e.$emit("close")}},scopedSlots:e._u([{key:"modal-title",fn:function(){return[n("h5",{staticClass:"modal-title",attrs:{title:e.doc._source.name+e.ext(e.doc)}},[e._v(e._s(e.doc._source.name+e.ext(e.doc)))])]},proxy:!0}])},[e.doc._props.hasThumbnail?n("img",{staticClass:"fit card-img-top",attrs:{src:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""}}):e._e(),n("InfoTable",{attrs:{doc:e.doc}}),n("LazyContentDiv",{attrs:{"doc-id":e.doc._id}})],1)},Pn=[],En=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-table",{staticClass:"mb-0 mt-4",attrs:{items:e.tableItems,small:"",borderless:"",responsive:"md","thead-class":"hidden"},scopedSlots:e._u([{key:"cell(value)",fn:function(t){return["html"in t.item?n("span",{domProps:{innerHTML:e._s(t.item.html)}}):n("span",[e._v(e._s(t.value))])]}}])})},jn=[];function qn(e,t){return isNaN(e)||isNaN(t)?"":'<a target="_blank" href="https://maps.google.com/?q='.concat(e,",").concat(t,"&ll=").concat(e,",").concat(t,'&t=k&z=17">').concat(e,", ").concat(t,"</a>")}function Hn(e,t){var n=e.split(","),r=Number(n[0].trim().split(":")[0])/Number(n[0].trim().split(":")[1]),i=Number(n[1].trim().split(":")[0])/Number(n[1].trim().split(":")[1]),o=Number(n[2].trim().split(":")[0])/Number(n[2].trim().split(":")[1]);return(r+i/60+o/3600)*("S"===t||"W"===t?-1:1)}var Bn={name:"InfoTable",props:["doc"],computed:{tableItems:function(){var e=this.doc._source,t=[{key:"index",value:"[".concat(this.$store.getters.indexMap[e.index].name,"]")},{key:"mtime",value:R(e.mtime)},{key:"mime",value:e.mime},{key:"size",value:B(e.size)},{key:"path",value:e.path}];"width"in this.doc._source&&t.push({key:"image size",value:"".concat(e.width,"x").concat(e.height)});var n=["title","duration","audioc","videoc","bitrate","artist","album","album_artist","genre","font_name","author","modified_by","pages","tag","exif_make","exif_software","exif_exposure_time","exif_fnumber","exif_focal_length","exif_user_comment","exif_iso_speed_ratings","exif_model","exif_datetime","checksum"];return n.forEach((function(n){n in e&&t.push({key:n,value:e[n]})})),"exif_gps_longitude_dec"in e?t.push({key:"Exif GPS",html:qn(e["exif_gps_latitude_dec"],e["exif_gps_longitude_dec"])}):"exif_gps_longitude_dms"in e&&t.push({key:"Exif GPS",html:qn(Hn(e["exif_gps_latitude_dms"],e["exif_gps_latitude_ref"]),Hn(e["exif_gps_longitude_dms"],e["exif_gps_longitude_ref"]))}),t}}},An=Bn,Rn=Object(m["a"])(An,En,jn,!1,null,"11002a20",null),Un=Rn.exports,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.loading?n("Preloader"):e.content?n("div",{staticClass:"content-div"},[e._v(e._s(e.content))]):e._e()},Qn=[],Nn={name:"LazyContentDiv",components:{Preloader:Te},props:["docId"],data:function(){return{content:"",loading:!0}},mounted:function(){var e=this;ne.getDocInfo(this.docId).then((function(t){e.content=t.data.content,e.loading=!1}))}},Gn=Nn,Vn=Object(m["a"])(Gn,Fn,Qn,!1,null,"3644e939",null),Wn=Vn.exports,Kn={name:"DocInfoModal",components:{LazyContentDiv:Wn,InfoTable:Un},props:["doc","show"],methods:{ext:E}},Yn=Kn,Jn=Object(m["a"])(Yn,Dn,Pn,!1,null,"26f8eb5c",null),Zn=Jn.exports,Xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.content()?n("div",{staticClass:"content-div",domProps:{innerHTML:e._s(e.content())}}):e._e()},er=[],tr={name:"ContentDiv",props:["doc"],methods:{content:function(){return this.doc.highlight?this.doc.highlight["content.nGram"]?this.doc.highlight["content.nGram"][0]:this.doc.highlight.content?this.doc.highlight.content[0]:void 0:null}}},nr=tr,rr=Object(m["a"])(nr,Xn,er,!1,null,"a093e946",null),ir=rr.exports,or={components:{ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc","width"],data:function(){return{ext:E,showInfo:!1,hover:!1}},computed:{placeHolderStyle:function(){var e=this.doc._source.thumbnail.split(","),t=Number(e[0]),n=Number(e[1]),r=400;return{height:"".concat(Math.min(n/t*this.width,r),"px")}},smallBadge:function(){return this.width<150}},methods:{humanFileSize:B,humanTime:A,onInfoClick:function(){this.showInfo=!0},onThumbnailClick:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("setUiLightboxSlide",e.doc._seq),t.next=3,e.$store.dispatch("showLightbox");case 3:case"end":return t.stop()}}),t)})))()},onAudioPlay:function(){var e=this;document.getElementsByTagName("audio").forEach((function(t){t!==e.$refs["audio"]&&t.pause()}))},onTnEnter:function(){this.hover=!0},onTnLeave:function(){this.hover=!1}}},ar=or,sr=(n("b9df"),n("706c"),Object(m["a"])(ar,vn,bn,!1,null,"a78557ce",null)),cr=sr.exports,ur=n("527a");r["default"].use(ur["a"]);var lr=r["default"].extend({components:{DocCard:cr},props:["docs","append"],data:function(){return{width:0,gridOptions:{align:"center",margin:0,transitionDuration:0,isOverflowScroll:!1,isConstantSize:!1,useFit:!1,useRecycle:!1}}},computed:{colCount:function(){var e=this.$store.getters["optColumns"];return"auto"===e?Math.round(this.$refs["grid-layout"].$el.scrollWidth/300):e}},mounted:function(){var e=this;this.width=this.$refs["grid-layout"].$el.scrollWidth/this.colCount,1===this.colCount&&this.$refs["grid-layout"].$el.classList.add("grid-single-column"),this.$store.subscribe((function(t){"busUpdateWallItems"===t.type&&e.$refs["grid-layout"]&&e.$refs["grid-layout"].updateItems()}))}}),dr=lr,pr=Object(m["a"])(dr,fn,gn,!1,null,null,null),hr=pr.exports,mr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("FsLightbox",{key:e.lightboxKey,attrs:{toggler:e.showLightbox,sources:e.lightboxSources,thumbs:e.lightboxThumbs,captions:e.lightboxCaptions,types:e.lightboxTypes,"source-index":e.lightboxSlide,"custom-toolbar-buttons":e.customButtons,"slideshow-time":1e4,"zoom-increment":.5,"load-only-current-source":e.$store.getters.optLightboxLoadOnlyCurrent,"on-close":e.onClose,"on-open":e.onShow,"on-slide-change":e.onSlideChange}}),n("a",{staticStyle:{display:"none"},attrs:{id:"lightbox-download"}})],1)},fr=[],gr=n("e099"),vr=n.n(gr),br={name:"Lightbox",components:{FsLightbox:vr.a},data:function(){return{customButtons:[{viewBox:"0 0 384.928 384.928",d:"M321.339,245.334c-4.74-4.692-12.439-4.704-17.179,0l-99.551,98.564V12.03 c0-6.641-5.438-12.03-12.151-12.03s-12.151,5.39-12.151,12.03v331.868l-99.551-98.552c-4.74-4.704-12.439-4.704-17.179,0 s-4.74,12.319,0,17.011l120.291,119.088c4.692,4.644,12.499,4.644,17.191,0l120.291-119.088 C326.091,257.653,326.091,250.038,321.339,245.334C316.599,240.642,326.091,250.038,321.339,245.334z",width:"17px",height:"17px",title:"Download",onClick:this.onDownloadClick}]}},computed:{showLightbox:function(){return this.$store.getters["uiShowLightbox"]},lightboxSources:function(){return this.$store.getters["uiLightboxSources"]},lightboxThumbs:function(){return this.$store.getters["uiLightboxThumbs"]},lightboxKey:function(){return this.$store.getters["uiLightboxKey"]},lightboxSlide:function(){return this.$store.getters["uiLightboxSlide"]},lightboxCaptions:function(){return this.$store.getters["uiLightboxCaptions"]},lightboxTypes:function(){return this.$store.getters["uiLightboxTypes"]}},methods:{onDownloadClick:function(){var e=this.lightboxSources[this.lightboxSlide],t=document.getElementById("lightbox-download");t.setAttribute("href",e),t.setAttribute("download",""),t.click()},onShow:function(){this.$store.commit("setUiLightboxIsOpen",!0)},onClose:function(){this.$store.commit("setUiLightboxIsOpen",!1)},onSlideChange:function(){document.getElementsByTagName("video").forEach((function(e){e.pause()}))}}},xr=br,yr=(n("5ee9"),Object(m["a"])(xr,mr,fr,!1,null,null,null)),_r=yr.exports,Tr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"lightbox-caption"},[n("p",[n("b",[e._v(e._s("["+e.$store.getters.indices.find((function(t){return t.id===e.hit._source.index})).name+"]"))]),e._v(e._s("/"+e.hit._source.path+"/"+e.hit._source.name+e.ext(e.hit))+" ")]),n("p",{staticStyle:{"margin-top":"-1em"}},[e.hit._source.width?n("span",[e._v(e._s(e.hit._source.width+"x"+e.hit._source.height))]):e._e(),e._v(" "+e._s(" ("+e.humanFileSize(e.hit._source.size)+")")+" ")])])},Sr=[],wr={name:"LightboxCaption",props:["hit"],methods:{humanFileSize:B,ext:E}},zr=wr,$r=Object(m["a"])(zr,Tr,Sr,!1,null,null,null),Or=$r.exports,Cr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mimeTree"}})},kr=[],Mr=n("cea5"),Lr=n.n(Mr),Ir=n("52e7"),Dr=n.n(Ir),Pr=(n("aac9"),{name:"MimePicker",data:function(){return{mimeTree:null}},mounted:function(){var e=this;this.$store.subscribe((function(t){if("setUiMimeMap"===t.type){var n=t.payload.slice();e.mimeTree=new Lr.a({selection:{mode:"checkbox"},data:n}),new Dr.a(e.mimeTree,{target:"#mimeTree"}),e.mimeTree.on("node.state.changed",e.handleTreeClick),e.mimeTree.deselect(),e.$store.state._onLoadSelectedMimeTypes.length>0&&e.$store.state._onLoadSelectedMimeTypes.forEach((function(t){e.mimeTree.node(t).select()}))}}))},methods:{handleTreeClick:function(e,t){"indeterminate"!==t&&"collapsed"!==t&&"rendered"!==t&&"focused"!==t&&this.$store.commit("setSelectedMimeTypes",F(this.mimeTree))}}}),Er=Pr,jr=(n("f798"),Object(m["a"])(Er,Cr,kr,!1,null,"1ea26eb2",null)),qr=jr.exports,Hr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.lastResultsLoaded?n("b-card",{attrs:{id:"results"}},[n("span",[e._v(e._s(e.hitCount)+" "+e._s(1===e.hitCount?e.$t("hit"):e.$t("hits")))]),n("div",{staticStyle:{float:"right"}},[n("b-button",{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse-1",modifiers:{"collapse-1":!0}}],staticClass:"not-mobile",attrs:{variant:"primary"}},[e._v(e._s(e.$t("details")))]),n("SortSelect",{staticClass:"ml-2"}),n("DisplayModeToggle",{staticClass:"ml-2"})],1),n("b-collapse",{staticClass:"pt-2",staticStyle:{clear:"both"},attrs:{id:"collapse-1"}},[n("b-card",[n("b-table",{staticClass:"mb-0",attrs:{items:e.tableItems,small:"",borderless:"","thead-class":"hidden"}})],1)],1)],1):e._e()},Br=[],Ar=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-button-group",[n("b-button",{attrs:{variant:"primary",title:e.$t("displayMode.list"),pressed:"list"===e.optDisplay},on:{click:function(t){return e.setOptDisplay("list")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"}})])]),n("b-button",{attrs:{variant:"primary",title:e.$t("displayMode.grid"),pressed:"grid"===e.optDisplay},on:{click:function(t){return e.setOptDisplay("grid")}}},[n("svg",{attrs:{width:"20px",height:"20px",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[n("path",{attrs:{fill:"currentColor",d:"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"}})])])],1)},Rr=[],Ur={name:"DisplayModeToggle",computed:Object(s["a"])({},Object(_["c"])(["optDisplay"])),methods:Object(s["a"])({},Object(_["d"])(["setOptDisplay"]))},Fr=Ur,Qr=Object(m["a"])(Fr,Ar,Rr,!1,null,"747547a4",null),Nr=Qr.exports,Gr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-dropdown",{attrs:{variant:"primary"},scopedSlots:e._u([{key:"button-content",fn:function(){return[n("svg",{attrs:{"aria-hidden":"true",width:"20px",height:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[n("path",{attrs:{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"}})])]},proxy:!0}])},[n("b-dropdown-item",{class:{"dropdown-active":"score"===e.sort},on:{click:function(t){return e.onSelect("score")}}},[e._v(e._s(e.$t("sort.relevance"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateAsc"===e.sort},on:{click:function(t){return e.onSelect("dateAsc")}}},[e._v(e._s(e.$t("sort.dateAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"dateDesc"===e.sort},on:{click:function(t){return e.onSelect("dateDesc")}}},[e._v(" "+e._s(e.$t("sort.dateDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeAsc"===e.sort},on:{click:function(t){return e.onSelect("sizeAsc")}}},[e._v(e._s(e.$t("sort.sizeAsc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"sizeDesc"===e.sort},on:{click:function(t){return e.onSelect("sizeDesc")}}},[e._v(" "+e._s(e.$t("sort.sizeDesc"))+" ")]),n("b-dropdown-item",{class:{"dropdown-active":"random"===e.sort},on:{click:function(t){return e.onSelect("random")}}},[e._v(" "+e._s(e.$t("sort.random"))+" ")])],1)},Vr=[],Wr={name:"SortSelect",computed:{sort:function(){return this.$store.state.sortMode}},methods:{onSelect:function(e){"random"===e&&this.$store.commit("setSeed",Math.round(1e5*Math.random())),this.$store.commit("setSortMode",e)}}},Kr=Wr,Yr=(n("a8cc"),Object(m["a"])(Kr,Gr,Vr,!1,null,null,null)),Jr=Yr.exports,Zr=r["default"].extend({name:"ResultsCard",components:{SortSelect:Jr,DisplayModeToggle:Nr},computed:{lastResultsLoaded:function(){return null!=this.$store.state.lastQueryResults},hitCount:function(){return this.$store.state.lastQueryResults.aggregations.total_count.value},tableItems:function(){var e=[];return e.push({key:this.$t("queryTime"),value:this.took()}),e.push({key:this.$t("totalSize"),value:this.totalSize()}),e}},methods:{took:function(){return this.$store.state.lastQueryResults.took+"ms"},totalSize:function(){return B(this.$store.state.lastQueryResults.aggregations.total_size.value)}}}),Xr=Zr,ei=(n("a079"),Object(m["a"])(Xr,Hr,Br,!1,null,null,null)),ti=ei.exports,ni=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"input-group",staticStyle:{"margin-bottom":"0.5em","margin-top":"1em"}},[n("div",{staticClass:"input-group-prepend"},[n("b-button",{attrs:{variant:"outline-secondary"},on:{click:function(t){return e.$refs["path-modal"].show()}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",width:"20px"}},[n("path",{attrs:{fill:"currentColor",d:"M288 224h224a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32H400L368 0h-80a32 32 0 0 0-32 32v64H64V8a8 8 0 0 0-8-8H40a8 8 0 0 0-8 8v392a16 16 0 0 0 16 16h208v64a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32H400l-32-32h-80a32 32 0 0 0-32 32v64H64V128h192v64a32 32 0 0 0 32 32zm0 96h66.74l32 32H512v128H288zm0-288h66.74l32 32H512v128H288z"}})])])],1),n("VueSimpleSuggest",{staticClass:"form-control-fix-flex",attrs:{value:e.getPathText,list:e.suggestPath,"max-suggestions":0,placeholder:e.$t("pathBar.placeholder")},on:{input:e.setPathText},scopedSlots:e._u([{key:"suggestion-item",fn:function(t){var r=t.suggestion,i=t.query;return n("div",{},[n("div",{staticClass:"suggestion-line",attrs:{title:r}},[n("strong",[e._v(e._s(i))]),e._v(e._s(e.getSuggestionWithoutQueryPrefix(r,i))+" ")])])}}])})],1),n("b-modal",{ref:"path-modal",attrs:{title:e.$t("pathBar.modalTitle"),size:"lg","hide-footer":!0,static:""}},[n("div",{attrs:{id:"pathTree"}})])],1)},ri=[],ii=(n("c4c9"),{name:"PathTree",components:{VueSimpleSuggest:Tn["a"]},data:function(){return{mimeTree:null,pathItems:[],tmpPath:""}},computed:Object(s["a"])({},Object(_["c"])(["getPathText"])),mounted:function(){var e=this;this.$store.subscribe((function(t){if("setIndices"===t.type){var n=new Lr.a({data:function(t,n,r){return e.getNextDepth(t)},sort:"text"});e.$store.state.indices.forEach((function(e){n.addNode({id:"/"+e.id,values:["/"+e.id],text:"/[".concat(e.name,"]"),index:e.id,depth:0,children:!0})})),new Dr.a(n,{target:"#pathTree"}),n.on("node.click",e.handleTreeClick),n.expand()}}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])(["setPathText"])),{},{getSuggestionWithoutQueryPrefix:function(e,t){return e.slice(t.length)},getPathChoices:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var n={suggest:{path:{prefix:e.getPathText,completion:{field:"suggest-path",skip_duplicates:!0,size:1e4}}}};ne.esQuery(n).then((function(e){return t(e["suggest"]["path"][0]["options"].map((function(e){return e["_source"]["path"]})))}))})));case 1:case"end":return t.stop()}}),t)})))()},suggestPath:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t.$store.state.optSuggestPath){n.next=2;break}return n.abrupt("return",[]);case 2:return e=e.toLowerCase(),n.next=5,t.getPathChoices();case 5:for(r=n.sent,i=[],o=0;o<r.length;o++)~r[o].toLowerCase().indexOf(e)&&i.push(r[o]);return n.abrupt("return",i.sort((function(e,t){return e.length-t.length})));case 9:case"end":return n.stop()}}),n)})))()},getNextDepth:function(e){var t={query:{bool:{filter:[{term:{index:e.index}},{range:{_depth:{gte:e.depth+1,lte:e.depth+3}}}]}},aggs:{paths:{terms:{field:"path",size:1e4}}},size:0};return e.depth>0&&(t.query.bool.must={prefix:{path:e.id}}),ne.esQuery(t).then((function(t){var n=t["aggregations"]["paths"]["buckets"];if(!n)return!1;var r=[];return n.filter((function(t){return t.key.length>e.id.length||e.id.startsWith("/")})).sort((function(e,t){return e.key>t.key})).map((function(t){if(r.some((function(e){return t.key.startsWith(e)})))return null;var n=e.id.startsWith("/")?t.key:t.key.slice(e.id.length+1);return r.push(t.key),{id:t.key,text:"".concat(n,"/ (").concat(t.doc_count,")"),depth:e.depth+1,index:e.index,values:[t.key],children:!0}})).filter((function(e){return null!==e}))}))},handleTreeClick:function(e,t,n){0!==t.depth&&(this.setPathText(t.id),this.$refs["path-modal"].hide(),this.$emit("search")),n()}})}),oi=ii,ai=(n("ddab"),n("c919"),Object(m["a"])(oi,ni,ri,!1,null,"b24a99e6",null)),si=ai.exports,ci=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"sizeSlider"}})},ui=[],li=n("f528"),di=n.n(li),pi=(n("df2f"),{name:"SizeSlider",mounted:function(){var e=this,t=document.getElementById("sizeSlider"),n=di.a.create(t,{start:[this.$store.state.sizeMin?this.$store.state.sizeMin:0,this.$store.state.sizeMax?this.$store.state.sizeMax:5e10],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:0,"10%":1e6,"20%":1e7,"50%":5e9,max:5e10},format:{to:function(e){return e>=5e10?"50G+":B(Math.round(e))},from:function(e){return e}}});D(t,10," - "),t.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),n.on("set",(function(t,n,r){0===n?e.$store.commit("setSizeMin",0===r[0]?void 0:Math.round(r[0])):e.$store.commit("setSizeMax",r[1]>=5e10?void 0:Math.round(r[1]))}))}}),hi=pi,mi=(n("95ee"),Object(m["a"])(hi,ci,ui,!1,null,null,null)),fi=mi.exports,gi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"dateSlider"}})},vi=[],bi={name:"DateSlider",mounted:function(){var e=this;this.$store.subscribe((function(t){if("setDateBoundsMax"===t.type){var n=document.getElementById("dateSlider");if(n.children.length>0)return;var r=e.$store.state.dateBoundsMax,i=e.$store.state.dateBoundsMin,o=di.a.create(n,{start:[e.$store.state.dateMin?e.$store.state.dateMin:i,e.$store.state.dateMax?e.$store.state.dateMax:r],tooltips:[!0,!0],behaviour:"drag-tap",connect:!0,range:{min:i,max:r},format:{to:function(e){return R(e)},from:function(e){return e}}});D(n,10," - ",!0),n.querySelectorAll(".noUi-connect")[0].classList.add("slider-color0"),o.on("set",(function(t,n,o){0===n?e.$store.commit("setDateMin",o[0]===i?void 0:Math.round(o[0])):e.$store.commit("setDateMax",o[1]>=r?void 0:Math.round(o[1]))}))}}))}},xi=bi,yi=(n("5a9f"),Object(m["a"])(xi,gi,vi,!1,null,null,null)),_i=yi.exports,Ti=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"tagTree"}})},Si=[];function wi(e){return e._tree.defaultState.forEach((function(t,n){e.state(n,t)})),e}function zi(e,t,n,r,i){return r.state(e)!==t&&(r._tree.batch(),r._tree.config.nodes.resetStateOnRestore&&"restored"===n&&wi(r),r.state(e,t),r._tree.emit("node."+n,r,!1),i&&r.hasChildren()&&r.children.recurseDown((function(r){zi(e,t,n,r)})),r.markDirty(),r._tree.end()),r}function $i(e,t,n,r){var i=t.split("."),o={id:n,count:r,text:1!==i.length?i[0]:"".concat(i[0]," (").concat(r,")"),name:i[0],children:[],blur:function(){},select:function(){return this.state("selected",!0),this.check()},deselect:function(){return this.state("selected",!1),this.uncheck()},uncheck:function(){return zi("checked",!1,"unchecked",this,!1),this.state("indeterminate",!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this},check:function(){return zi("checked",!0,"checked",this,!1),this.hasParent()&&this.getParent().refreshIndeterminateState(),this._tree.end(),this}},a=!1;e.forEach((function(e){e.name===o.name&&(a=!0,1!==i.length?$i(e.children,i.slice(1).join("."),n,r):(console.error("FIXME: Duplicate tag?"),console.trace(e)))})),a||(1!==i.length?($i(o.children,i.slice(1).join("."),n,r),e.push(o)):e.push(o))}var Oi={name:"TagPicker",data:function(){return{tagTree:null,loadedFromArgs:!1}},mounted:function(){var e=this;this.$store.subscribe((function(t){"setUiMimeMap"===t.type?(e.initializeTree(),e.updateTree()):"busUpdateTags"===t.type&&window.setTimeout(e.updateTree,2e3)}))},methods:{initializeTree:function(){var e=[];this.tagTree=new Lr.a({selection:{mode:"checkbox",autoDeselect:!1},checkbox:{autoCheckChildren:!1},data:e}),new Dr.a(this.tagTree,{target:"#tagTree"}),this.tagTree.on("node.state.changed",this.handleTreeClick)},updateTree:function(){var e=this,t=[];ne.getTags().then((function(n){n.forEach((function(e){return $i(t,e.id,e.id,e.count)})),e.tagTree.removeAll(),e.tagTree.addNodes(t),e.$store.state._onLoadSelectedTags.length>0&&!e.loadedFromArgs&&e.$store.state._onLoadSelectedTags.forEach((function(t){e.tagTree.node(t).select(),e.loadedFromArgs=!0}))}))},handleTreeClick:function(e,t){"indeterminate"!==t&&"collapsed"!==t&&"rendered"!==t&&"focused"!==t&&this.$store.commit("setSelectedTags",F(this.tagTree))}}},Ci=Oi,ki=(n("706cd"),n("e478"),Object(m["a"])(Ci,Ti,Si,!1,null,"61ce9763",null)),Mi=ki.exports,Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-list-group",{staticClass:"mt-3"},e._l(e.docs,(function(e){return n("DocListItem",{key:e._id,attrs:{doc:e}})})),1)},Ii=[],Di=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-list-group-item",{staticClass:"flex-column align-items-start mb-2",class:{"sub-document":e.doc._props.isSubDocument}},[n("DocInfoModal",{attrs:{show:e.showInfo,doc:e.doc},on:{close:function(t){e.showInfo=!1}}}),n("div",{staticClass:"media ml-2"},[e.doc._props.hasThumbnail?n("div",{staticClass:"align-self-start mr-2 wrapper-sm"},[n("div",{staticClass:"img-wrapper"},[e.doc._props.isPlayableVideo?n("div",{staticClass:"play"},[n("svg",{attrs:{viewBox:"0 0 494.942 494.942",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"m35.353 0 424.236 247.471-424.236 247.471z"}})])]):e._e(),e.doc._props.isPlayableImage||e.doc._props.isPlayableVideo?n("img",{staticClass:"pointer fit-sm",attrs:{src:e.doc._props.isGif&&e.hover?"f/"+e.doc._id:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""},on:{click:function(t){return e.onThumbnailClick()}}}):n("img",{staticClass:"fit-sm",attrs:{src:"t/"+e.doc._source.index+"/"+e.doc._id,alt:""}})])]):n("div",{staticClass:"file-icon-wrapper"},[n("FileIcon")],1),n("div",{staticClass:"doc-line ml-3"},[n("div",{staticStyle:{display:"flex"}},[n("span",{staticClass:"info-icon",on:{click:function(t){e.showInfo=!0}}}),n("DocFileTitle",{attrs:{doc:e.doc}})],1),n("ContentDiv",{attrs:{doc:e.doc}}),n("div",{staticClass:"path-row"},[n("div",{staticClass:"path-line",domProps:{innerHTML:e._s(e.path())}}),n("TagContainer",{attrs:{hit:e.doc}})],1),e.doc._source.pages||e.doc._source.author?n("div",{staticClass:"path-row text-muted"},[e.doc._source.pages?n("span",[e._v(e._s(e.doc._source.pages)+" "+e._s(e.doc._source.pages>1?e.$t("pages"):e.$t("page")))]):e._e(),e.doc._source.author&&e.doc._source.pages?n("span",{staticClass:"mx-1"},[e._v("-")]):e._e(),e.doc._source.author?n("span",[e._v(e._s(e.doc._source.author))]):e._e()]):e._e()],1)])],1)},Pi=[],Ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{staticClass:"file-icon",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}},[n("path",{attrs:{fill:"currentColor",d:"M 7 2 L 7 48 L 43 48 L 43 14.59375 L 42.71875 14.28125 L 30.71875 2.28125 L 30.40625 2 Z M 9 4 L 29 4 L 29 16 L 41 16 L 41 46 L 9 46 Z M 31 5.4375 L 39.5625 14 L 31 14 Z"}})])},ji=[],qi={name:"FileIcon"},Hi=qi,Bi=(n("5de8"),Object(m["a"])(Hi,Ei,ji,!1,null,"0cec34c8",null)),Ai=Bi.exports,Ri={name:"DocListItem",components:{FileIcon:Ai,ContentDiv:ir,DocInfoModal:Zn,DocFileTitle:In,TagContainer:$n},props:["doc"],data:function(){return{hover:!1,showInfo:!1}},methods:{onThumbnailClick:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$store.commit("setUiLightboxSlide",e.doc._seq),t.next=3,e.$store.dispatch("showLightbox");case 3:case"end":return t.stop()}}),t)})))()},path:function(){return this.doc.highlight?this.doc.highlight["path.text"]?this.doc.highlight["path.text"]+"/":this.doc.highlight["path.nGram"]?this.doc.highlight["path.nGram"]+"/":this.doc._source.path+"/":this.doc._source.path+"/"}}},Ui=Ri,Fi=(n("c0c5"),Object(m["a"])(Ui,Di,Pi,!1,null,"2507ef74",null)),Qi=Fi.exports,Ni=r["default"].extend({name:"DocList",components:{DocListItem:Qi},props:["docs","append"],mounted:function(){var e=this;window.addEventListener("scroll",(function(){var t=400,n=document.getElementById("app");window.innerHeight+window.scrollY>=n.offsetHeight-t&&e.append()}))}}),Gi=Ni,Vi=(n("7191"),Object(m["a"])(Gi,Li,Ii,!1,null,null,null)),Wi=Vi.exports,Ki=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-modal",{attrs:{visible:e.show,size:"lg","hide-footer":!0,static:"",title:e.$t("help.help")},on:{close:function(t){return e.$emit("close")},hide:function(t){return e.$emit("close")}}},[n("h2",[e._v(e._s(e.$t("help.simpleSearch")))]),n("table",{staticClass:"table"},[n("tbody",[n("tr",[n("td",[n("code",[e._v("+")])]),n("td",[e._v(e._s(e.$t("help.and")))])]),n("tr",[n("td",[n("code",[e._v("|")])]),n("td",[e._v(e._s(e.$t("help.or")))])]),n("tr",[n("td",[n("code",[e._v("-")])]),n("td",[e._v(e._s(e.$t("help.not")))])]),n("tr",[n("td",[n("code",[e._v('""')])]),n("td",[e._v(e._s(e.$t("help.quotes")))])]),n("tr",[n("td",[n("code",[e._v(e._s(e.$t("help.term"))+"*")])]),n("td",[e._v(e._s(e.$t("help.prefix")))])]),n("tr",[n("td",[n("code",[e._v("(")]),e._v(" "+e._s(e.$t("and"))+" "),n("code",[e._v(")")])]),n("td",[e._v(e._s(e.$t("help.parens")))])]),n("tr",[n("td",[n("code",[e._v(e._s(e.$t("help.term"))+"~N")])]),n("td",[e._v(e._s(e.$t("help.tildeTerm")))])]),n("tr",[n("td",[n("code",[e._v('"..."~N')])]),n("td",[e._v(e._s(e.$t("help.tildePhrase")))])])])]),n("p",{domProps:{innerHTML:e._s(e.$t("help.example1"))}}),n("p",{domProps:{innerHTML:e._s(e.$t("help.defaultOperator"))}}),n("p",{domProps:{innerHTML:e._s(e.$t("help.fuzzy"))}}),n("br"),n("p",{domProps:{innerHTML:e._s(e.$t("help.moreInfoSimple"))}}),n("p"),n("h2",[e._v(e._s(e.$t("help.advancedSearch")))]),n("p",{domProps:{innerHTML:e._s(e.$t("help.moreInfoAdvanced"))}})])},Yi=[],Ji={name:"HelpDialog",props:["show"]},Zi=Ji,Xi=Object(m["a"])(Zi,Ki,Yi,!1,null,"0872e493",null),eo=Xi.exports,to=r["default"].extend({components:{HelpDialog:eo,DocList:Wi,TagPicker:Mi,DateSlider:_i,SizeSlider:fi,PathTree:si,ResultsCard:ti,MimePicker:qr,Lightbox:_r,DocCardWall:hr,IndexPicker:cn,SearchBar:Wt,Preloader:Te},data:function(){return{loading:!1,uiLoading:!0,search:void 0,docs:[],docIds:new Set,docChecksums:new Set,searchBusy:!1,Sist2Query:pn,showHelp:!1}},computed:Object(s["a"])({},Object(_["c"])(["indices","optDisplay"])),mounted:function(){var e=this;this.search=mn()(function(){var t=Object(Ut["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=3;break}return t.next=3,e.clearResults();case 3:return t.next=5,e.searchNow(pn.searchQuery());case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),350,{leading:!1}),ne.getMimeTypes().then((function(t){e.$store.commit("setUiMimeMap",t)})),this.$store.dispatch("loadFromArgs",this.$route).then((function(){e.$store.subscribe((function(){return e.$store.dispatch("updateArgs",e.$router)})),e.$store.subscribe((function(t){if(["setSizeMin","setSizeMax","setDateMin","setDateMax","setSearchText","setPathText","setSortMode","setOptHighlight","setOptFragmentSize","setFuzzy","setSize","setSelectedIndices","setSelectedMimeTypes","setSelectedTags","setOptQueryMode","setOptSearchInPath"].includes(t.type)){if(e.searchBusy)return;e.search(!0)}}))})),this.getDateRange().then((function(t){e.setDateBoundsMin(t.min),e.setDateBoundsMax(t.max),ne.getSist2Info().then((function(t){e.setSist2Info(t),e.setIndices(t.indices),e.uiLoading=!1,e.search(!0)})).catch((function(){e.showErrorToast()}))}))},methods:Object(s["a"])(Object(s["a"])({},Object(_["d"])({setSist2Info:"setSist2Info",setIndices:"setIndices",setDateBoundsMin:"setDateBoundsMin",setDateBoundsMax:"setDateBoundsMax",setTags:"setTags"})),{},{showErrorToast:function(){this.$bvToast.toast(this.$t("toast.esConnErr"),{title:this.$t("toast.esConnErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-error",bodyClass:"toast-body-error"})},showSyntaxErrorToast:function(){this.$bvToast.toast(this.$t("toast.esQueryErr"),{title:this.$t("toast.esQueryErrTitle"),noAutoHide:!0,toaster:"b-toaster-bottom-right",headerClass:"toast-header-warning",bodyClass:"toast-body-warning"})},searchNow:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.searchBusy=!0,n.next=3,t.$store.dispatch("incrementQuerySequence");case 3:ne.esQuery(e).then(function(){var e=Object(Ut["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.handleSearch(n);case 2:t.searchBusy=!1;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){500===e.response.status&&"advanced"===t.$store.state.optQueryMode?t.showSyntaxErrorToast():t.showErrorToast()}));case 4:case"end":return n.stop()}}),n)})))()},clearResults:function(){var e=this;return Object(Ut["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.docs=[],e.docIds.clear(),e.docChecksums.clear(),t.next=5,e.$store.dispatch("clearResults");case 5:e.$store.commit("setUiReachedScrollEnd",!1);case 6:case"end":return t.stop()}}),t)})))()},handleSearch:function(e){var t=this;return Object(Ut["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:0==e.hits.hits.length&&t.$store.commit("setUiReachedScrollEnd",!0),e.hits.hits=e.hits.hits.filter((function(e){return!t.docIds.has(e._id)})),t.$store.state.optHideDuplicates&&(e.hits.hits=e.hits.hits.filter((function(e){if(!("checksum"in e._source))return!0;var n=!t.docChecksums.has(e._source.checksum);return t.docChecksums.add(e._source.checksum),n}))),i=Object(Rt["a"])(e.hits.hits),n.prev=4,i.s();case 6:if((o=i.n()).done){n.next=15;break}if(a=o.value,!a._props.isPlayableImage&&!a._props.isPlayableVideo){n.next=13;break}return n.next=11,t.$store.dispatch("getKeySequence");case 11:a._seq=n.sent,t.$store.commit("addLightboxSource",{source:"f/".concat(a._id),thumbnail:a._props.hasThumbnail?"t/".concat(a._source.index,"/").concat(a._id):null,caption:{component:Or,props:{hit:a}},type:a._props.isVideo?"video":"image"});case 13:n.next=6;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](4),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:return n.next=25,t.$store.dispatch("remountLightbox");case 25:t.$store.commit("setLastQueryResult",e),(r=t.docs).push.apply(r,Object(L["a"])(e.hits.hits));case 27:case"end":return n.stop()}}),n,null,[[4,17,20,23]])})))()},getDateRange:function(){return ne.esQuery({aggs:{dateMin:{min:{field:"mtime"}},dateMax:{max:{field:"mtime"}}},size:0}).then((function(e){return{min:e.aggregations.dateMin.value,max:e.aggregations.dateMax.value}}))},appendFunc:function(){this.$store.state.uiReachedScrollEnd||!this.search||this.searchBusy||this.searchNow(pn.searchQuery())}}),beforeRouteUpdate:function(e,t,n){this.$store.state.uiLightboxIsOpen?(this.$store.commit("_setUiShowLightbox",!1),n(!1)):n()}}),no=to,ro=(n("c2e3"),Object(m["a"])(no,Bt,At,!1,null,null,null)),io=ro.exports;r["default"].use($["a"]);var oo=[{path:"/",name:"SearchPage",component:io},{path:"/stats",name:"Stats",component:ct},{path:"/config",name:"Configuration",component:Ht}],ao=new $["a"]({mode:"hash",base:"",routes:oo,scrollBehavior:function(e,t,n){}}),so=ao,co=n("a925"),uo={en:{searchBar:{simple:"Search",advanced:"Advanced search",fuzzy:"Fuzzy"},download:"Download",and:"and",page:"page",pages:"pages",mimeTypes:"Media types",tags:"Tags",help:{simpleSearch:"Simple search",advancedSearch:"Advanced search",help:"Help",term:"<TERM>",and:"AND operator",or:"OR operator",not:"negates a single term",quotes:"will match the enclosed sequence of terms in that specific order",prefix:"will match any term with a given prefix when used at the end of a word",parens:"used to group expressions",tildeTerm:"match a term with a given edit distance",tildePhrase:"match a phrase with a given number of allowed intervening unmatched words",example1:'For example: <code>"fried eggs" +(eggplant | potato) -frittata</code> will match the phrase <i>fried eggs</i> and either <i>eggplant</i> or <i>potato</i>, but will ignore results containing <i>frittata</i>.',defaultOperator:"When neither <code>+</code> or <code>|</code> is specified, the default operator is <code>+</code> (and).",fuzzy:"When the <b>Fuzzy</b> option is checked, partial matches based on 3-grams are also returned.",moreInfoSimple:'For more information, see <a target="_blank" rel="noreferrer" href="//www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html">Elasticsearch documentation</a>',moreInfoAdvanced:'For documentation about the advanced search mode, see <a target="_blank" rel="noreferrer" href="//www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax">Elasticsearch documentation</a>'},config:"Configuration",configDescription:"Configuration is saved in real time for this browser.",configReset:"Reset configuration",searchOptions:"Search options",treemapOptions:"Treemap options",displayOptions:"Display options",opt:{lang:"Language",highlight:"Enable highlighting",fuzzy:"Set fuzzy search by default",searchInPath:"Enable matching query against document path",suggestPath:"Enable auto-complete in path filter bar",fragmentSize:"Highlight context size in characters",queryMode:"Search mode",displayMode:"Display",columns:"Column count",treemapType:"Treemap type",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Treemap color grouping depth (flat)",treemapColor:"Treemap color (cascaded)",treemapSize:"Treemap size",theme:"Theme",lightboxLoadOnlyCurrent:"Do not preload full-size images for adjacent slides in image viewer.",slideDuration:"Slide duration",resultSize:"Number of results per page",tagOrOperator:"Use OR operator when specifying multiple tags.",hideDuplicates:"Hide duplicate results based on checksum",hideLegacy:"Hide the 'legacyES' Elasticsearch notice"},queryMode:{simple:"Simple",advanced:"Advanced"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grid",list:"List"},columns:{auto:"Auto"},treemapType:{cascaded:"Cascaded",flat:"Flat (compact)"},treemapSize:{small:"Small",medium:"Medium",large:"Large",xLarge:"xLarge",xxLarge:"xxLarge",custom:"Custom"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Light",black:"Black"},hit:"hit",hits:"hits",details:"Details",stats:"Stats",queryTime:"Query time",totalSize:"Total size",pathBar:{placeholder:"Filter path",modalTitle:"Select path"},debug:"Debug information",debugDescription:"Information useful for debugging. If you encounter bugs or have suggestions for new features, please submit a new issue <a href='https://github.com/simon987/sist2/issues/new/choose'>here</a>.",tagline:"Tagline",toast:{esConnErrTitle:"Elasticsearch connection error",esConnErr:"sist2 web module encountered an error while connecting to Elasticsearch. See server logs for more information.",esQueryErrTitle:"Query error",esQueryErr:"Could not parse or execute query, please check the Advanced search documentation. See server logs for more information.",dupeTagTitle:"Duplicate tag",dupeTag:"This tag already exists for this document."},saveTagModalTitle:"Add tag",saveTagPlaceholder:"Tag name",confirm:"Confirm",indexPickerPlaceholder:"Select indices",sort:{relevance:"Relevance",dateAsc:"Date (Older first)",dateDesc:"Date (Newer first)",sizeAsc:"Size (Smaller first)",sizeDesc:"Size (Larger first)",random:"Random"},d3:{mimeCount:"File count distribution by media type",mimeSize:"Size distribution by media type",dateHistogram:"File modification time distribution",sizeHistogram:"File size distribution"}},fr:{searchBar:{simple:"Recherche",advanced:"Recherche avancée",fuzzy:"Approximatif"},download:"Télécharger",and:"et",page:"page",pages:"pages",mimeTypes:"Types de médias",tags:"Tags",help:{simpleSearch:"Recherche simple",advancedSearch:"Recherche avancée",help:"Aide",term:"<TERME>",and:"opérator ET",or:"opérator OU",not:"exclut un terme",quotes:"recherche la séquence de termes dans cet ordre spécifique.",prefix:"lorsqu'utilisé à la fin d'un mot, recherche tous les termes avec le préfixe donné.",parens:"utilisé pour regrouper des expressions",tildeTerm:"recherche un terme avec une distance d'édition donnée",tildePhrase:"recherche une phrase avec un nombre donné de mots intermédiaires tolérés",example1:'Par exemple: <code>"fried eggs" +(eggplant | potato) -frittata</code> va rechercher la phrase <i>fried eggs</i> et soit <i>eggplant</i> ou <i>potato</i>, mais vas exlure les résultats qui contiennent <i>frittata</i>.',defaultOperator:"Lorsqu'aucun des opérateurs <code>+</code> ou <code>|</code> sont spécifiés, l'opérateur par défaut est <code>+</code> (ET).",fuzzy:"Lorsque l'option <b>Approximatif</b> est activée, les résultats partiels basés sur les trigrammes sont également inclus.",moreInfoSimple:'Pour plus d\'information, voir <a target="_blank" rel="noreferrer" href="//www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html">documentation Elasticsearch</a>',moreInfoAdvanced:'Pour plus d\'information sur la recherche avancée, voir <a target="_blank" rel="noreferrer" href="//www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax">documentation Elasticsearch</a>'},config:"Configuration",configDescription:"La configuration est enregistrée en temps réel pour ce navigateur.",configReset:"Réinitialiser la configuration",searchOptions:"Options de recherche",treemapOptions:"Options du Treemap",displayOptions:"Options d'affichage",opt:{lang:"Langue",highlight:"Activer le surlignage",fuzzy:"Activer la recherche approximative par défaut",searchInPath:"Activer la recherche dans le chemin des documents",suggestPath:"Activer l'autocomplétion dans la barre de filtre de chemin",fragmentSize:"Longueur du contexte de surlignage, en nombre de caractères",queryMode:"Mode de recherche",displayMode:"Affichage",columns:"Nombre de colonnes",treemapType:"Type de Treemap",treemapTiling:"Treemap tiling",treemapColorGroupingDepth:"Groupage de couleur du Treemap (plat)",treemapColor:"Couleur du Treemap (en cascade)",treemapSize:"Taille du Treemap",theme:"Thème",lightboxLoadOnlyCurrent:"Désactiver le chargement des diapositives adjacentes pour le visualiseur d'images",slideDuration:"Durée des diapositives",resultSize:"Nombre de résultats par page",tagOrOperator:"Utiliser l'opérateur OU lors de la spécification de plusieurs tags",hideDuplicates:"Masquer les résultats en double",hideLegacy:"Masquer la notice 'legacyES' Elasticsearch"},queryMode:{simple:"Simple",advanced:"Avancé"},lang:{en:"English",fr:"Français"},displayMode:{grid:"Grille",list:"Liste"},columns:{auto:"Auto"},treemapType:{cascaded:"En cascade",flat:"Plat (compact)"},treemapSize:{small:"Petit",medium:"Moyen",large:"Grand",xLarge:"xGrand",xxLarge:"xxGrand",custom:"Personnalisé"},treemapTiling:{binary:"Binary",squarify:"Squarify",slice:"Slice",dice:"Dice",sliceDice:"Slice & Dice"},theme:{light:"Clair",black:"Noir"},hit:"résultat",hits:"résultats",details:"Détails",stats:"Stats",queryTime:"Durée de la requête",totalSize:"Taille totale",pathBar:{placeholder:"Filtrer le chemin",modalTitle:"Sélectionner le chemin"},debug:"Information de débogage",debugDescription:"Informations utiles pour le débogage\nSi vous rencontrez des bogues ou si vous avez des suggestions pour de nouvelles fonctionnalités, veuillez soumettre un nouvel Issue <a href='https://github.com/simon987/sist2/issues/new/choose'>ici</a>.",tagline:"Tagline",toast:{esConnErrTitle:"Erreur de connexion Elasticsearch",esConnErr:"Le module web a rencontré une erreur lors de la connexion à Elasticsearch. Consultez les journaux du serveur pour plus d'informations..",esQueryErrTitle:"Erreur de requête",esQueryErr:"Impossible d'analyser ou d'exécuter la requête, veuillez consulter la documentation sur la recherche avancée. Voir les journaux du serveur pour plus d'informations.",dupeTagTitle:"Tag en double",dupeTag:"Ce tag existe déjà pour ce document."},saveTagModalTitle:"Ajouter un tag",saveTagPlaceholder:"Nom du tag",confirm:"Confirmer",indexPickerPlaceholder:"Sélectionner un index",sort:{relevance:"Pertinence",dateAsc:"Date (Plus ancient)",dateDesc:"Date (Plus récent)",sizeAsc:"Taille (Plus petit)",sizeDesc:"Taille (Plus grand)",random:"Aléatoire"},d3:{mimeCount:"Distribution du nombre de fichiers par type de média",mimeSize:"Distribution des tailles de fichiers par type de média",dateHistogram:"Distribution des dates de modification",sizeHistogram:"Distribution des tailles de fichier"}}};r["default"].config.productionTip=!1,r["default"].use(co["a"]),r["default"].use($["a"]);var lo=new co["a"]({locale:"en",messages:uo});new r["default"]({router:so,store:un,i18n:lo,render:function(e){return e(z)}}).$mount("#app")},"5a9f":function(e,t,n){"use strict";n("668a")},"5de8":function(e,t,n){"use strict";n("8057")},"5ee9":function(e,t,n){"use strict";n("1f35")},6417:function(e,t,n){},"658f":function(e,t,n){},"668a":function(e,t,n){},"706c":function(e,t,n){"use strict";n("fe20")},"706cd":function(e,t,n){"use strict";n("76ff")},7191:function(e,t,n){"use strict";n("658f")},7352:function(e,t,n){},"76ff":function(e,t,n){},8021:function(e,t,n){"use strict";n("bddf")},8057:function(e,t,n){},"85ec":function(e,t,n){},"8c1b":function(e,t,n){"use strict";n("fbc5")},"95ee":function(e,t,n){"use strict";n("d7f8")},a079:function(e,t,n){"use strict";n("bafa")},a5dc:function(e,t,n){},a8cc:function(e,t,n){"use strict";n("1d7e")},ac16:function(e,t,n){"use strict";n("0d24")},b23c:function(e,t,n){"use strict";n("e4ed")},b9df:function(e,t,n){"use strict";n("c69b")},bafa:function(e,t,n){},bddf:function(e,t,n){},c0c5:function(e,t,n){"use strict";n("c19a")},c19a:function(e,t,n){},c2e3:function(e,t,n){"use strict";n("c877")},c337:function(e,t,n){"use strict";n("4364")},c4ff:function(e,t,n){"use strict";n("d593")},c69b:function(e,t,n){},c877:function(e,t,n){},c919:function(e,t,n){"use strict";n("7352")},d593:function(e,t,n){},d7f8:function(e,t,n){},ddab:function(e,t,n){"use strict";n("6417")},de5d:function(e,t,n){},e478:function(e,t,n){"use strict";n("3d86")},e4ed:function(e,t,n){},f093:function(e,t,n){"use strict";n("a5dc")},f2e9:function(e,t,n){"use strict";n("2b2c")},f363:function(e,t,n){},f798:function(e,t,n){"use strict";n("f363")},f960:function(e,t,n){"use strict";n("de5d")},fbc5:function(e,t,n){},fcd2:function(e,t,n){},fe20:function(e,t,n){}});