-
Notifications
You must be signed in to change notification settings - Fork 18
/
btstrp.list.iso.min.js
1 lines (1 loc) · 26.3 KB
/
btstrp.list.iso.min.js
1
Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){"use strict";if(void 0===this||null===this)throw new TypeError;var e,n,r=Object(this),i=r.length>>>0;if(0===i)return-1;for(e=i-1,arguments.length>1&&((e=+arguments[1])!=e?e=0:0!=e&&e!=1/0&&e!=-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),n=e>=0?Math.min(e,i-1):i-Math.abs(e);n>=0;n--)if(n in r&&r[n]===t)return n;return-1}),function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof window.CustomEvent&&(t.prototype=window.Event.prototype,window.CustomEvent=t)}(),function(t,e){if("function"==typeof define&&define.amd)define([],e);else if("object"==typeof module&&module.exports)module.exports=e();else{var n=e();t.Modal=n.Modal}}(this,function(){"use strict";var t="undefined"!=typeof global?global:this||window,e=document,n=e.documentElement,r="body",i=t.BSN={},a=i.supports=[],o="data-dismiss",s="Modal",l="data-backdrop",u="data-target",c="backdrop",d="keyboard",f="content",h="target",g="clientWidth",v="offsetWidth",m="aria-hidden",p="click",b="keydown",y="resize",C="getAttribute",w="setAttribute",S="hasAttribute",L="createElement",N="appendChild",x="preventDefault",A="querySelectorAll",E="parentNode",k="length",I="toLowerCase",O="Transition",T="Webkit",B="style",M="push",z="in",H=!("opacity"in n[B]),R=0,j=T+O in n[B]||O[I]()in n[B],P=T+O in n[B]?T[I]()+O+"End":O[I]()+"end",V=function(t){t.focus?t.focus():t.setActive()},W=function(t,e){t.classList.add(e)},q=function(t,e){t.classList.remove(e)},K=function(t,e){return t.classList.contains(e)},D=function(t,e){return function(t){for(var e=[],n=0,r=t[k];r>n;n++)e[M](t[n]);return e}(t[H?A:"getElementsByClassName"](H?"."+e.replace(/\s(?=[a-z])/g,"."):e))},$=function(t,n){return"object"==typeof t?t:(n||e).querySelector(t)},_=function(t,e,n){t.addEventListener(e,n,!1)},F=function(t,e,n){t.removeEventListener(e,n,!1)},J=function(t,e){j?function(t,e,n){_(t,e,function r(i){n(i),F(t,e,r)})}(t,P,function(t){e(t)}):e()},Z=function(t,e,n){var r=new CustomEvent(t+".bs."+e);r.relatedTarget=n,this.dispatchEvent(r)};i.version="2.0.22";var G=function(i,a){var A=(i=$(i))[C](u)||i[C]("href"),I=$(A),O=K(i,"modal")?i:I,T="modal",M="static",H="paddingLeft",P="paddingRight",G="modal-backdrop";if(K(i,"modal")&&(i=null),O){a=a||{},this[d]=!1!==a[d]&&"false"!==O[C]("data-keyboard"),this[c]=a[c]!==M&&O[C](l)!==M||M,this[c]=!1!==a[c]&&"false"!==O[C](l)&&this[c],this[f]=a[f];var U,Q,X,Y,tt=this,et=null,nt=D(n,"navbar-fixed-top").concat(D(n,"navbar-fixed-bottom")),rt=function(){var n,i=e[r].currentStyle||t.getComputedStyle(e[r]),a=parseInt(i[P],10);if(U&&(e[r][B][P]=a+X+"px",nt[k]))for(var o=0;o<nt[k];o++)n=(nt[o].currentStyle||t.getComputedStyle(nt[o]))[P],nt[o][B][P]=parseInt(n)+X+"px"},it=function(){U=e[r][g]<function(){var e=n.getBoundingClientRect();return t.innerWidth||e.right-Math.abs(e.left)}(),Q=O.scrollHeight>n.clientHeight,X=function(){var t,n=e[L]("div");return n.className=T+"-scrollbar-measure",e[r][N](n),t=n[v]-n[g],e[r].removeChild(n),t}()},at=function(){O[B][H]=!U&&Q?X+"px":"",O[B][P]=U&&!Q?X+"px":""},ot=function(){(Y=$("."+G))&&null!==Y&&"object"==typeof Y&&(R=0,e[r].removeChild(Y),Y=null),Z.call(O,"hidden",T)},st=function(){K(O,z)?_(e,b,ft):F(e,b,ft)},lt=function(){K(O,z)?_(t,y,tt.update):F(t,y,tt.update)},ut=function(){K(O,z)?_(O,p,ht):F(O,p,ht)},ct=function(){V(O),Z.call(O,"shown",T,et)},dt=function(){O[B].display="",i&&V(i),setTimeout(function(){D(e,T+" "+z)[0]||(O[B][H]="",O[B][P]="",function(){if(e[r][B][P]="",nt[k])for(var t=0;t<nt[k];t++)nt[t][B][P]=""}(),q(e[r],T+"-open"),Y&&K(Y,"fade")?(q(Y,z),J(Y,ot)):ot(),lt(),ut(),st())},50)},ft=function(t){var e=t.which||t.keyCode;tt[d]&&27==e&&K(O,z)&&tt.hide()},ht=function(t){var e=t[h];K(O,z)&&(e[E][C](o)===T||e[C](o)===T||e===O&&tt[c]!==M)&&(tt.hide(),et=null,t[x]())};this.toggle=function(){K(O,z)?this.hide():this.show()},this.show=function(){Z.call(O,"show",T,et);var t=D(e,T+" in")[0];t&&t!==O&&t.modalTrigger[s].hide(),this[c]&&!R&&function(){R=1;var t=e[L]("div");null===(Y=$("."+G))&&(t[w]("class",G+" fade"),Y=t,e[r][N](Y))}(),Y&&R&&!K(Y,z)&&(Y[v],W(Y,z)),setTimeout(function(){O[B].display="block",it(),rt(),at(),W(e[r],T+"-open"),W(O,z),O[w](m,!1),lt(),ut(),st(),K(O,"fade")?J(O,ct):ct()},j?150:0)},this.hide=function(){Z.call(O,"hide",T),Y=$("."+G),q(O,z),O[w](m,!0),setTimeout(function(){K(O,"fade")?J(O,dt):dt()},j?150:0)},this.setContent=function(t){$(".modal-content",O).innerHTML=t},this.update=function(){K(O,z)&&(it(),rt(),at())},!i||s in i||_(i,p,function(t){var e=t[h];(e=e[S](u)||e[S]("href")?e:e[E])!==i||K(O,z)||(O.modalTrigger=i,et=i,tt.show(),t[x]())}),tt[f]&&tt.setContent(tt[f]),i&&(i[s]=tt)}};a[M]([s,G,'[data-toggle="modal"]']);var U=function(t,e){for(var n=0,r=e[k];r>n;n++)new t(e[n])},Q=i.initCallback=function(t){t=t||e;for(var n=0,r=a[k];r>n;n++)U(a[n][1],t[A](a[n][2]))};return e[r]?Q():_(e,"DOMContentLoaded",function(){Q()}),{Modal:G}});var userLang,langValue,urlLang,List=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=11)}([function(t,e,n){function r(t){if(!t||!t.nodeType)throw Error("A DOM element reference is required");this.el=t,this.list=t.classList}var i=n(4),a=/\s+/;Object.prototype.toString,t.exports=function(t){return new r(t)},r.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~i(e,t)||e.push(t),this.el.className=e.join(" "),this},r.prototype.remove=function(t){if(this.list)return this.list.remove(t),this;var e=this.array(),n=i(e,t);return~n&&e.splice(n,1),this.el.className=e.join(" "),this},r.prototype.toggle=function(t,e){return this.list?(void 0!==e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},r.prototype.array=function(){var t=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(a);return""===t[0]&&t.shift(),t},r.prototype.has=r.prototype.contains=function(t){return this.list?this.list.contains(t):!!~i(this.array(),t)}},function(t,e,n){var r=window.addEventListener?"addEventListener":"attachEvent",i=window.removeEventListener?"removeEventListener":"detachEvent",a="addEventListener"!==r?"on":"",o=n(5);e.bind=function(t,e,n,i){t=o(t);for(var s=0;s<t.length;s++)t[s][r](a+e,n,i||!1)},e.unbind=function(t,e,n,r){t=o(t);for(var s=0;s<t.length;s++)t[s][i](a+e,n,r||!1)}},function(t,e){t.exports=function(t){return function(e,n,r){var i=this;this._values={},this.found=!1,this.filtered=!1;this.values=function(e,n){if(void 0===e)return i._values;for(var r in e)i._values[r]=e[r];!0!==n&&t.templater.set(i,i.values())},this.show=function(){t.templater.show(i)},this.hide=function(){t.templater.hide(i)},this.matching=function(){return t.filtered&&t.searched&&i.found&&i.filtered||t.filtered&&!t.searched&&i.filtered||!t.filtered&&t.searched&&i.found||!t.filtered&&!t.searched},this.visible=function(){return!(!i.elm||i.elm.parentNode!=t.list)},function(e,n,r){if(void 0===n)r?i.values(e,r):i.values(e);else{i.elm=n;var a=t.templater.get(i,e);i.values(a)}}(e,n,r)}}},function(t,e){t.exports=function(t,e,n,r){return(r=r||{}).test&&r.getElementsByClassName||!r.test&&document.getElementsByClassName?function(t,e,n){return n?t.getElementsByClassName(e)[0]:t.getElementsByClassName(e)}(t,e,n):r.test&&r.querySelector||!r.test&&document.querySelector?function(t,e,n){return e="."+e,n?t.querySelector(e):t.querySelectorAll(e)}(t,e,n):function(t,e,n){for(var r=[],i=t.getElementsByTagName("*"),a=i.length,o=RegExp("(^|\\s)"+e+"(\\s|$)"),s=0,l=0;a>s;s++)if(o.test(i[s].className)){if(n)return i[s];r[l]=i[s],l++}return r}(t,e,n)}},function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t){if(void 0===t)return[];if(null===t)return[null];if(t===window)return[window];if("string"==typeof t)return[t];if(function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t))return t;if("number"!=typeof t.length)return[t];if("function"==typeof t&&t instanceof Function)return[t];for(var e=[],n=0;n<t.length;n++)(Object.prototype.hasOwnProperty.call(t,n)||n in t)&&e.push(t[n]);return e.length?e:[]}},function(t,e){t.exports=function(t){return""+(t=null===(t=void 0===t?"":t)?"":t)}},function(t,e){t.exports=function(t){for(var e,n=Array.prototype.slice.call(arguments,1),r=0;e=n[r];r++)if(e)for(var i in e)t[i]=e[i];return t}},function(t,e){t.exports=function(t){var e=function(n,r,i){var a=n.splice(0,50);i=(i=i||[]).concat(t.add(a)),n.length>0?setTimeout(function(){e(n,r,i)},1):(t.update(),r(i))};return e}},function(t,e){t.exports=function(t){return t.handlers.filterStart=t.handlers.filterStart||[],t.handlers.filterComplete=t.handlers.filterComplete||[],function(e){if(t.trigger("filterStart"),t.i=1,t.reset.filter(),void 0===e)t.filtered=!1;else{t.filtered=!0;for(var n=t.items,r=0,i=n.length;i>r;r++){var a=n[r];e(a)?a.filtered=!0:a.filtered=!1}}return t.update(),t.trigger("filterComplete"),t.visibleItems}}},function(t,e,n){var r=(n(0),n(1)),i=n(7),a=n(6),o=n(3),s=n(19);t.exports=function(t,e){e=i({location:0,distance:100,threshold:.4,multiSearch:!0,searchClass:"fuzzy-search"},e=e||{});var n={search:function(r,i){for(var a=e.multiSearch?r.replace(/ +$/,"").split(/ +/):[r],o=0,s=t.items.length;s>o;o++)n.item(t.items[o],i,a)},item:function(t,e,r){for(var i=!0,a=0;a<r.length;a++){for(var o=!1,s=0,l=e.length;l>s;s++)n.values(t.values(),e[s],r[a])&&(o=!0);o||(i=!1)}t.found=i},values:function(t,n,r){if(t.hasOwnProperty(n)){var i=a(t[n]).toLowerCase();if(s(i,r,e))return!0}return!1}};return r.bind(o(t.listContainer,e.searchClass),"keyup",function(e){var r=e.target||e.srcElement;t.search(r.value,n.search)}),function(e,r){t.search(e,r,n.search)}}},function(t,e,n){var r=n(18),i=n(3),a=n(7),o=n(4),s=n(1),l=n(6),u=n(0),c=n(17),d=n(5);t.exports=function(t,e,f){var h,g=this,v=n(2)(g),m=n(8)(g),p=n(12)(g);h={start:function(){g.listClass="list",g.searchClass="search",g.sortClass="sort",g.page=1e4,g.i=1,g.items=[],g.visibleItems=[],g.matchingItems=[],g.searched=!1,g.filtered=!1,g.searchColumns=void 0,g.handlers={updated:[]},g.valueNames=[],g.utils={getByClass:i,extend:a,indexOf:o,events:s,toString:l,naturalSort:r,classes:u,getAttribute:c,toArray:d},g.utils.extend(g,e),g.listContainer="string"==typeof t?document.getElementById(t):t,g.listContainer&&(g.list=i(g.listContainer,g.listClass,!0),g.parse=n(13)(g),g.templater=n(16)(g),g.search=n(14)(g),g.filter=n(9)(g),g.sort=n(15)(g),g.fuzzySearch=n(10)(g,e.fuzzySearch),this.handlers(),this.items(),this.pagination(),g.update())},handlers:function(){for(var t in g.handlers)g[t]&&g.on(t,g[t])},items:function(){g.parse(g.list),void 0!==f&&g.add(f)},pagination:function(){if(void 0!==e.pagination){!0===e.pagination&&(e.pagination=[{}]),void 0===e.pagination[0]&&(e.pagination=[e.pagination]);for(var t=0,n=e.pagination.length;n>t;t++)p(e.pagination[t])}}},this.reIndex=function(){g.items=[],g.visibleItems=[],g.matchingItems=[],g.searched=!1,g.filtered=!1,g.parse(g.list)},this.toJSON=function(){for(var t=[],e=0,n=g.items.length;n>e;e++)t.push(g.items[e].values());return t},this.add=function(t,e){if(0!==t.length){if(e)return void m(t,e);var n=[],r=!1;void 0===t[0]&&(t=[t]);for(var i=0,a=t.length;a>i;i++){var o;r=g.items.length>g.page,o=new v(t[i],void 0,r),g.items.push(o),n.push(o)}return g.update(),n}},this.show=function(t,e){return this.i=t,this.page=e,g.update(),g},this.remove=function(t,e,n){for(var r=0,i=0,a=g.items.length;a>i;i++)g.items[i].values()[t]==e&&(g.templater.remove(g.items[i],n),g.items.splice(i,1),a--,i--,r++);return g.update(),r},this.get=function(t,e){for(var n=[],r=0,i=g.items.length;i>r;r++){var a=g.items[r];a.values()[t]==e&&n.push(a)}return n},this.size=function(){return g.items.length},this.clear=function(){return g.templater.clear(),g.items=[],g},this.on=function(t,e){return g.handlers[t].push(e),g},this.off=function(t,e){var n=g.handlers[t],r=o(n,e);return r>-1&&n.splice(r,1),g},this.trigger=function(t){for(var e=g.handlers[t].length;e--;)g.handlers[t][e](g);return g},this.reset={filter:function(){for(var t=g.items,e=t.length;e--;)t[e].filtered=!1;return g},search:function(){for(var t=g.items,e=t.length;e--;)t[e].found=!1;return g}},this.update=function(){var t=g.items,e=t.length;g.visibleItems=[],g.matchingItems=[],g.templater.clear();for(var n=0;e>n;n++)t[n].matching()&&g.matchingItems.length+1>=g.i&&g.visibleItems.length<g.page?(t[n].show(),g.visibleItems.push(t[n]),g.matchingItems.push(t[n])):t[n].matching()?(g.matchingItems.push(t[n]),t[n].hide()):t[n].hide();return g.trigger("updated"),g},h.start()}},function(t,e,n){var r=n(0),i=n(1),a=n(11);t.exports=function(t){var e=function(e,i){var a,s=t.matchingItems.length,l=t.i,u=t.page,c=Math.ceil(s/u),d=Math.ceil(l/u),f=i.innerWindow||2,h=i.left||i.outerWindow||0,g=i.right||i.outerWindow||0;g=c-g,e.clear();for(var v=1;c>=v;v++){var m=d===v?"active":"";n.number(v,h,g,d,f)?(a=e.add({page:v,dotted:!1})[0],m&&r(a.elm).add(m),o(a.elm,v,u)):n.dotted(e,v,h,g,d,f,e.size())&&(a=e.add({page:"...",dotted:!0})[0],r(a.elm).add("disabled"))}},n={number:function(t,e,n,r,i){return this.left(t,e)||this.right(t,n)||this.innerWindow(t,r,i)},left:function(t,e){return e>=t},right:function(t,e){return t>e},innerWindow:function(t,e,n){return t>=e-n&&e+n>=t},dotted:function(t,e,n,r,i,a,o){return this.dottedLeft(t,e,n,r,i,a)||this.dottedRight(t,e,n,r,i,a,o)},dottedLeft:function(t,e,n,r,i,a){return e==n+1&&!this.innerWindow(e,i,a)&&!this.right(e,r)},dottedRight:function(t,e,n,r,i,a,o){return!t.items[o-1].values().dotted&&(e==r&&!this.innerWindow(e,i,a)&&!this.right(e,r))}},o=function(e,n,r){i.bind(e,"click",function(){t.show((n-1)*r+1,r)})};return function(n){var r=new a(t.listContainer.id,{listClass:n.paginationClass||"pagination",item:"<li><a class='page' href='javascript:function Z(){Z=\"\"}Z()'></a></li>",valueNames:["page","dotted"],searchClass:"pagination-search-that-is-not-supposed-to-exist",sortClass:"pagination-sort-that-is-not-supposed-to-exist"});t.on("updated",function(){e(r,n)}),e(r,n)}}},function(t,e,n){t.exports=function(t){var e=n(2)(t),r=function(n,r){for(var i=0,a=n.length;a>i;i++)t.items.push(new e(r,n[i]))},i=function(e,n){var a=e.splice(0,50);r(a,n),e.length>0?setTimeout(function(){i(e,n)},1):(t.update(),t.trigger("parseComplete"))};return t.handlers.parseComplete=t.handlers.parseComplete||[],function(){var e=function(t){for(var e=t.childNodes,n=[],r=0,i=e.length;i>r;r++)void 0===e[r].data&&n.push(e[r]);return n}(t.list),n=t.valueNames;t.indexAsync?i(e,n):r(e,n)}}},function(t,e){t.exports=function(t){var e,n,r,i,a={resetList:function(){t.i=1,t.templater.clear(),i=void 0},setOptions:function(t){2==t.length&&t[1]instanceof Array?n=t[1]:2==t.length&&"function"==typeof t[1]?(n=void 0,i=t[1]):3==t.length?(n=t[1],i=t[2]):n=void 0},setColumns:function(){0!==t.items.length&&void 0===n&&(n=void 0===t.searchColumns?a.toArray(t.items[0].values()):t.searchColumns)},setSearchString:function(e){e=(e=t.utils.toString(e).toLowerCase()).replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),r=e},toArray:function(t){var e=[];for(var n in t)e.push(n);return e}},o={list:function(){for(var e=0,n=t.items.length;n>e;e++)o.item(t.items[e])},item:function(t){t.found=!1;for(var e=0,r=n.length;r>e;e++)if(o.values(t.values(),n[e]))return void(t.found=!0)},values:function(n,i){return!!(n.hasOwnProperty(i)&&(e=t.utils.toString(n[i]).toLowerCase(),""!==r&&e.search(r)>-1))},reset:function(){t.reset.search(),t.searched=!1}},s=function(e){return t.trigger("searchStart"),a.resetList(),a.setSearchString(e),a.setOptions(arguments),a.setColumns(),""===r?o.reset():(t.searched=!0,i?i(r,n):o.list()),t.update(),t.trigger("searchComplete"),t.visibleItems};return t.handlers.searchStart=t.handlers.searchStart||[],t.handlers.searchComplete=t.handlers.searchComplete||[],t.utils.events.bind(t.utils.getByClass(t.listContainer,t.searchClass),"keyup",function(e){var n=e.target||e.srcElement;""===n.value&&!t.searched||s(n.value)}),t.utils.events.bind(t.utils.getByClass(t.listContainer,t.searchClass),"input",function(t){""===(t.target||t.srcElement).value&&s("")}),s}},function(t,e){t.exports=function(t){var e={els:void 0,clear:function(){for(var n=0,r=e.els.length;r>n;n++)t.utils.classes(e.els[n]).remove("asc"),t.utils.classes(e.els[n]).remove("desc")},getOrder:function(e){var n=t.utils.getAttribute(e,"data-order");return"asc"==n||"desc"==n?n:t.utils.classes(e).has("desc")?"asc":t.utils.classes(e).has("asc")?"desc":"asc"},getInSensitive:function(e,n){var r=t.utils.getAttribute(e,"data-insensitive");n.insensitive="false"!==r},setOrder:function(n){for(var r=0,i=e.els.length;i>r;r++){var a=e.els[r];if(t.utils.getAttribute(a,"data-sort")===n.valueName){var o=t.utils.getAttribute(a,"data-order");"asc"==o||"desc"==o?o==n.order&&t.utils.classes(a).add(n.order):t.utils.classes(a).add(n.order)}}}},n=function(){t.trigger("sortStart");var n={},r=arguments[0].currentTarget||arguments[0].srcElement||void 0;r?(n.valueName=t.utils.getAttribute(r,"data-sort"),e.getInSensitive(r,n),n.order=e.getOrder(r)):((n=arguments[1]||n).valueName=arguments[0],n.order=n.order||"asc",n.insensitive=void 0===n.insensitive||n.insensitive),e.clear(),e.setOrder(n);var i,a=n.sortFunction||t.sortFunction||null,o="desc"===n.order?-1:1;i=a?function(t,e){return a(t,e,n)*o}:function(e,r){var i=t.utils.naturalSort;return i.alphabet=t.alphabet||n.alphabet||void 0,!i.alphabet&&n.insensitive&&(i=t.utils.naturalSort.caseInsensitive),i(e.values()[n.valueName],r.values()[n.valueName])*o},t.items.sort(i),t.update(),t.trigger("sortComplete")};return t.handlers.sortStart=t.handlers.sortStart||[],t.handlers.sortComplete=t.handlers.sortComplete||[],e.els=t.utils.getByClass(t.listContainer,t.sortClass),t.utils.events.bind(e.els,"click",n),t.on("searchStart",e.clear),t.on("filterStart",e.clear),n}},function(t,e){var n=function(t){var e,n=this;this.clearSourceItem=function(e,n){for(var r=0,i=n.length;i>r;r++){var a;if(n[r].data)for(var o=0,s=n[r].data.length;s>o;o++)e.setAttribute("data-"+n[r].data[o],"");else n[r].attr&&n[r].name?(a=t.utils.getByClass(e,n[r].name,!0))&&a.setAttribute(n[r].attr,""):(a=t.utils.getByClass(e,n[r],!0))&&(a.innerHTML="");a=void 0}return e},this.getItemSource=function(e){if(void 0===e){for(var n=t.list.childNodes,r=0,i=n.length;i>r;r++)if(void 0===n[r].data)return n[r].cloneNode(!0)}else{if(/<tr[\s>]/g.exec(e)){var a=document.createElement("tbody");return a.innerHTML=e,a.firstChild}if(-1!==e.indexOf("<")){var o=document.createElement("div");return o.innerHTML=e,o.firstChild}var s=document.getElementById(t.item);if(s)return s}},this.get=function(e,r){n.create(e);for(var i={},a=0,o=r.length;o>a;a++){var s;if(r[a].data)for(var l=0,u=r[a].data.length;u>l;l++)i[r[a].data[l]]=t.utils.getAttribute(e.elm,"data-"+r[a].data[l]);else r[a].attr&&r[a].name?(s=t.utils.getByClass(e.elm,r[a].name,!0),i[r[a].name]=s?t.utils.getAttribute(s,r[a].attr):""):(s=t.utils.getByClass(e.elm,r[a],!0),i[r[a]]=s?s.innerHTML:"");s=void 0}return i},this.set=function(e,r){var i=function(n,r){var i,a=function(e){for(var n=0,r=t.valueNames.length;r>n;n++)if(t.valueNames[n].data){for(var i=t.valueNames[n].data,a=0,o=i.length;o>a;a++)if(i[a]===e)return{data:e}}else{if(t.valueNames[n].attr&&t.valueNames[n].name&&t.valueNames[n].name==e)return t.valueNames[n];if(t.valueNames[n]===e)return e}}(n);a&&(a.data?e.elm.setAttribute("data-"+a.data,r):a.attr&&a.name?(i=t.utils.getByClass(e.elm,a.name,!0))&&i.setAttribute(a.attr,r):(i=t.utils.getByClass(e.elm,a,!0))&&(i.innerHTML=r),i=void 0)};if(!n.create(e))for(var a in r)r.hasOwnProperty(a)&&i(a,r[a])},this.create=function(t){if(void 0!==t.elm)return!1;if(void 0===e)throw Error("The list need to have at list one item on init otherwise you'll have to add a template.");var r=e.cloneNode(!0);return r.removeAttribute("id"),t.elm=r,n.set(t,t.values()),!0},this.remove=function(e){e.elm.parentNode===t.list&&t.list.removeChild(e.elm)},this.show=function(e){n.create(e),t.list.appendChild(e.elm)},this.hide=function(e){void 0!==e.elm&&e.elm.parentNode===t.list&&t.list.removeChild(e.elm)},this.clear=function(){if(t.list.hasChildNodes())for(;t.list.childNodes.length>=1;)t.list.removeChild(t.list.firstChild)},(e=n.getItemSource(t.item))&&(e=n.clearSourceItem(e,t.valueNames))};t.exports=function(t){return new n(t)}},function(t,e){t.exports=function(t,e){var n=t.getAttribute&&t.getAttribute(e)||null;if(!n)for(var r=t.attributes.length,i=0;r>i;i++)void 0!==e[i]&&e[i].nodeName===e&&(n=e[i].nodeValue);return n}},function(t,e,n){"use strict";function r(t){return t>=48&&57>=t}function i(t,e){for(var n=(t+="").length,i=(e+="").length,a=0,l=0;n>a&&i>l;){var u=t.charCodeAt(a),c=e.charCodeAt(l);if(r(u)){if(!r(c))return u-c;for(var d=a,f=l;48===u&&++d<n;)u=t.charCodeAt(d);for(;48===c&&++f<i;)c=e.charCodeAt(f);for(var h=d,g=f;n>h&&r(t.charCodeAt(h));)++h;for(;i>g&&r(e.charCodeAt(g));)++g;var v=h-d-g+f;if(v)return v;for(;h>d;)if(v=t.charCodeAt(d++)-e.charCodeAt(f++))return v;a=h,l=g}else{if(u!==c)return s>u&&s>c&&-1!==o[u]&&-1!==o[c]?o[u]-o[c]:u-c;++a,++l}}return n-i}var a,o,s=0;i.caseInsensitive=i.i=function(t,e){return i((""+t).toLowerCase(),(""+e).toLowerCase())},Object.defineProperties(i,{alphabet:{get:function(){return a},set:function(t){o=[];var e=0;if(a=t)for(;e<a.length;e++)o[a.charCodeAt(e)]=e;for(s=o.length,e=0;s>e;e++)void 0===o[e]&&(o[e]=-1)}}}),t.exports=i},function(t,e){t.exports=function(t,e,n){function r(t,n){var r=t/e.length,i=Math.abs(s-n);return a?r+i/a:i?1:r}var i=n.location||0,a=n.distance||100,o=n.threshold||.4;if(e===t)return!0;if(e.length>32)return!1;var s=i,l=function(){var t,n={};for(t=0;t<e.length;t++)n[e.charAt(t)]=0;for(t=0;t<e.length;t++)n[e.charAt(t)]|=1<<e.length-t-1;return n}(),u=o,c=t.indexOf(e,s);-1!=c&&(u=Math.min(r(0,c),u),-1!=(c=t.lastIndexOf(e,s+e.length))&&(u=Math.min(r(0,c),u)));var d=1<<e.length-1;c=-1;for(var f,h,g,v=e.length+t.length,m=0;m<e.length;m++){for(f=0,h=v;h>f;)r(m,s+h)<=u?f=h:v=h,h=Math.floor((v-f)/2+f);v=h;var p=Math.max(1,s-h+1),b=Math.min(s+h,t.length)+e.length,y=Array(b+2);y[b+1]=(1<<m)-1;for(var C=b;C>=p;C--){var w=l[t.charAt(C-1)];if(y[C]=0===m?(y[C+1]<<1|1)&w:(y[C+1]<<1|1)&w|(g[C+1]|g[C])<<1|1|g[C+1],y[C]&d){var S=r(m,C-1);if(u>=S){if(u=S,!((c=C-1)>s))break;p=Math.max(1,2*s-c)}}}if(r(m+1,s)>u)break;g=y}return!(0>c)}}]),root=document.documentElement,color1="253, 58, 74",color2="245, 128, 37",color3="255, 167, 0",color4="123, 113, 81",color5="91, 170, 9",color6="26, 152, 90",color7="59, 168, 221",color8="0, 120, 215",color9="139, 102, 204",color10="228, 27, 144",languageList=[{id:"en",url:"en"},{id:"gb",url:"en-gb"},{id:"bg",url:"bg"},{id:"ca",url:"ca"},{id:"zs",url:"zh-cn"},{id:"zt",url:"zh-tw"},{id:"hr",url:"hr"},{id:"cs",url:"cs"},{id:"da",url:"da"},{id:"nl",url:"nl"},{id:"fi",url:"fi"},{id:"fr",url:"fr"},{id:"de",url:"de"},{id:"el",url:"el"},{id:"hi",url:"hi"},{id:"hu",url:"hu"},{id:"hy",url:"hy"},{id:"id",url:"id"},{id:"it",url:"it"},{id:"ja",url:"ja"},{id:"ko",url:"ko"},{id:"ms",url:"ms"},{id:"mk",url:"mk"},{id:"nb",url:"nb-no"},{id:"nn",url:"nn-no"},{id:"ph",url:"pl"},{id:"pt",url:"pt"},{id:"ro",url:"ro"},{id:"ru",url:"ru"},{id:"sr",url:"sr"},{id:"sk",url:"sk"},{id:"sl",url:"sl"},{id:"es",url:"es"},{id:"sv",url:"sv"},{id:"th",url:"th"},{id:"tr",url:"tr"},{id:"uk",url:"uk"},{id:"vi",url:"vi"},{id:"ar",url:"ar"},{id:"he",url:"he"},{id:"fa",url:"fa"}];function getLang(){if(!(langValue=localStorage.getItem("langValue"))||"sys"===langValue){var t;userLang=window.navigator.language||window.navigator.userLanguage,t="zh-Hans-CN"===userLang||"zh-SG"===userLang||"zh-CN"===userLang||"zh-Hans"===userLang||"zh-Hans-HK"===userLang?"zs":"zh-Hant-TW"===userLang||"zh-Hant"===userLang||"zh-TW"===userLang||"zh-Hant-HK"===userLang?"zt":"pl"===userLang||"pl-PL"===userLang?"ph":"en-GB"===userLang?"gb":userLang.indexOf("-")>0?userLang.substr(0,userLang.indexOf("-")):userLang;let e=languageList.find(e=>e.id===t);langValue=e?t:"en",localStorage.setItem("langValue",langValue)}}function getUrlLang(t){let e=languageList.find(e=>e.id===t);return e?e.url:"en"}function getIdLang(t){let e=languageList.find(e=>e.url===t);return e?e.id:"en"}function setLangFile(t){var e,n;switch(t){case"ar":case"fa":e="NotoSansKufiArabic-Regular",n="NotoSansKufiArabic-Bold";break;case"hi":e="NotoSansDevanagari-Regular",n="NotoSansDevanagari-Bold";break;case"he":e="NotoSansHebrew-Regular",n="NotoSansHebrew-Bold";break;case"th":e="NotoSansThai-Regular",n="NotoSansThai-Bold";break;case"ko":e="NotoSansKR-Regular",n="NotoSansKR-Bold";break;case"ja":e="NotoSansJP-Regular",n="NotoSansJP-Bold";break;case"hy":e="NotoSansArmenian-Regular",n="NotoSansArmenian-Bold";break;case"zs":e="NotoSansSC-Regular",n="NotoSansSC-Bold";break;case"zt":e="NotoSansTC-Regular",n="NotoSansTC-Bold";break;default:e="LatoLatin-Regular",n="LatoLatin-Heavy"}var r=document.createElement("style");r.appendChild(document.createTextNode("@font-face {font-family: Special Regular;src: url(fonts/"+e+".woff2) format('woff2'), url(fonts/"+e+".woff) format('woff');}")),r.appendChild(document.createTextNode("@font-face {font-family: Special Heavy;src: url(fonts/"+n+".woff2) format('woff2'), url(fonts/"+n+".woff) format('woff');}")),"ar"===langValue||"fa"===langValue||"he"===langValue?document.documentElement.setAttribute("data-direction","rtl"):document.documentElement.setAttribute("data-direction","ltr"),document.head.appendChild(r)}function getQueryVariable(t){for(var e=window.location.search.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if(r[0]===t)return r[1]}return null}function rgbToHex(t){var e=t.split(",")[0];return g=t.split(",")[1],b=t.split(",")[2],"#"+(16777216+(b|g<<8|e<<16)).toString(16).slice(1)}function colorLuminance(t,e){(t=String(t).replace(/[^0-9a-f]/gi,"")).length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),e=e||0;var n,r,i="#";for(r=0;r<3;r++)n=parseInt(t.substr(2*r,2),16),i+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*e),255)).toString(16))).substr(n.length);return i}function setColor(t){var e=rgbToHex(t),n=colorLuminance(e,-.5),r=colorLuminance(e,-.6);document.querySelector("meta[name=theme-color]").setAttribute("content",n),document.querySelector("meta[name=msapplication-TileColor]").setAttribute("content",e),root.style.setProperty("--theme-color",t),root.style.setProperty("--darker-color-50",n),root.style.setProperty("--darker-color-0",r)}getLang(),urlLang=getUrlLang(langValue);