vendor: 4,161 bytes, lines 1-2
1/*! AASAAM Front Team, Generate at: 2026-08-16T13:20:55.880Z */ 2(function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(l){return y(a(l),arguments)}function w(l,S){return p.apply(null,[l].concat(S||[]))}function y(l,S){var C=1,k=l.length,_,j="",z,c,t,e,s,r,f,b;for(z=0;z<k;z++)if(typeof l[z]=="string")j+=l[z];else if(typeof l[z]=="object"){if(t=l[z],t.keys)for(_=S[C],c=0;c<t.keys.length;c++){if(_==null)throw new Error(p('[sprintf] Cannot access property "%s" of undefined value "%s"',t.keys[c],t.keys[c-1]));_=_[t.keys[c]]}else t.param_no?_=S[t.param_no]:_=S[C++];if(i.not_type.test(t.type)&&i.not_primitive.test(t.type)&&_ instanceof Function&&(_=_()),i.numeric_arg.test(t.type)&&typeof _!="number"&&isNaN(_))throw new TypeError(p("[sprintf] expecting number but found %T",_));switch(i.number.test(t.type)&&(f=_>=0),t.type){case"b":_=parseInt(_,10).toString(2);break;case"c":_=String.fromCharCode(parseInt(_,10));break;case"d":case"i":_=parseInt(_,10);break;case"j":_=JSON.stringify(_,null,t.width?parseInt(t.width):0);break;case"e":_=t.precision?parseFloat(_).toExponential(t.precision):parseFloat(_).toExponential();break;case"f":_=t.precision?parseFloat(_).toFixed(t.precision):parseFloat(_);break;case"g":_=t.precision?String(Number(_.toPrecision(t.precision))):parseFloat(_);break;case"o":_=(parseInt(_,10)>>>0).toString(8);break;case"s":_=String(_),_=t.precision?_.substring(0,t.precision):_;break;case"t":_=String(!!_),_=t.precision?_.substring(0,t.precision):_;break;case"T":_=Object.prototype.toString.call(_).slice(8,-1).toLowerCase(),_=t.precision?_.substring(0,t.precision):_;break;case"u":_=parseInt(_,10)>>>0;break;case"v":_=_.valueOf(),_=t.precision?_.substring(0,t.precision):_;break;case"x":_=(parseInt(_,10)>>>0).toString(16);break;case"X":_=(parseInt(_,10)>>>0).toString(16).toUpperCase();break}i.json.test(t.type)?j+=_:(i.number.test(t.type)&&(!f||t.sign)?(b=f?"+":"-",_=_.toString().replace(i.sign,"")):b="",s=t.pad_char?t.pad_char==="0"?"0":t.pad_char.charAt(1):" ",r=t.width-(b+_).length,e=t.width&&r>0?s.repeat(r):"",j+=t.align?b+_+e:s==="0"?b+e+_:e+b+_)}return j}var m=Object.create(null);function a(l){if(m[l])return m[l];for(var S=l,C,k=[],_=0;S;){if((C=i.text.exec(S))!==null)k.push(C[0]);else if((C=i.modulo.exec(S))!==null)k.push("%");else if((C=i.placeholder.exec(S))!==null){if(C[2]){_|=1;var j=[],z=C[2],c=[];if((c=i.key.exec(z))!==null)for(j.push(c[1]);(z=z.substring(c[0].length))!=="";)if((c=i.key_access.exec(z))!==null)j.push(c[1]);else if((c=i.index_access.exec(z))!==null)j.push(c[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");C[2]=j}else _|=2;if(_===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");k.push({placeholder:C[0],param_no:C[1],keys:C[2],sign:C[3],pad_char:C[4],align:C[5],width:C[6],precision:C[7],type:C[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");S=S.substring(C[0].length)}return m[l]=k}typeof exports!="undefined"&&(exports.sprintf=p,exports.vsprintf=w),typeof window!="undefined"&&(window.sprintf=p,window.vsprintf=w,typeof define=="function"&&define.amd&&define(function(){return{sprintf:p,vsprintf:w}}))})();(function(i,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(i=typeof globalThis!="undefined"?globalThis:i||self).Glide=p()})(this,(function(){"use strict";function i(h,n){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(h);n&&(o=o.filter((function(d){return Object.getOwnPropertyDescriptor(h,d).enumerable}))),g.push.apply(g,o)}return g}function p(h){for(var n=1;n<arguments.length;n++){var g=arguments[n]!=null?arguments[n]:{};
2n%2?i(Object(g),!0).forEach((function(o){l(h,o,g[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):i(Object(g)).forEach((function(o){Object.defineProperty(h,o,Object.getOwnPropertyDescriptor(g,o))}))}return h}function w(h){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},w(h)}function y(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function m(h,n){for(var g=0;g<n.length;g++){var o=n[g];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(h,o.key,o)}}function a(h,n,g){return n&&m(h.prototype,n),g&&m(h,g),h}function l(h,n,g){return n in h?Object.defineProperty(h,n,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[n]=g,h}function S(h){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},S(h)}function C(h,n){return C=Object.setPrototypeOf||function(g,o){return g.__proto__=o,g},C(h,n)}function k(h,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g})(h)}function _(h){var n=(function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(g){return!1}})();return function(){var g,o=S(h);if(n){var d=S(this).constructor;g=Reflect.construct(o,arguments,d)}else g=o.apply(this,arguments);return k(this,g)}}function j(h,n){for(;!Object.prototype.hasOwnProperty.call(h,n)&&(h=S(h))!==null;);return h}function z(){return z=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(h,n,g){var o=j(h,n);if(o){var d=Object.getOwnPropertyDescriptor(o,n);return d.get?d.get.call(arguments.length<3?h:g):d.value}},z.apply(this,arguments)}var c={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function t(h){console.error("[Glide warn]: ".concat(h))}function e(h){return parseInt(h)}function s(h){return typeof h=="string"}function r(h){var n=w(h);return n==="function"||n==="object"&&!!h}function f(h){return typeof h=="function"}function b(h){return h===void 0}function O(h){return h.constructor===Array}function u(h,n,g){var o={};for(var d in n)f(n[d])?o[d]=n[d](h,o,g):t("Extension must be a function");for(var T in o)f(o[T].mount)&&o[T].mount();return o}function v(h,n,g){Object.defineProperty(h,n,g)}function x(h,n){var g=Object.assign({},h,n);return n.hasOwnProperty("classes")&&(g.classes=Object.assign({},h.classes,n.classes),["direction","type","slide","arrow","nav"].forEach((function(o){n.classes.hasOwnProperty(o)&&(g.classes[o]=p(p({},h.classes[o]),n.classes[o]))}))),n.hasOwnProperty("breakpoints")&&(g.breakpoints=Object.assign({},h.breakpoints,n.breakpoints)),g}var M=(function(){function h(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};y(this,h),this.events=n,this.hop=n.hasOwnProperty}return a(h,[{key:"on",value:function(n,g){if(!O(n)){this.hop.call(this.events,n)||(this.events[n]=[]);var o=this.events[n].push(g)-1;return{remove:function(){delete this.events[n][o]}}}for(var d=0;d<n.length;d++)this.on(n[d],g)}},{key:"emit",value:function(n,g){if(O(n))for(var o=0;o<n.length;
vendor: 10,901 bytes, line 2
2o++)this.emit(n[o],g);else this.hop.call(this.events,n)&&this.events[n].forEach((function(d){d(g||{})}))}}]),h})(),L=(function(){function h(n){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y(this,h),this._c={},this._t=[],this._e=new M,this.disabled=!1,this.selector=n,this.settings=x(c,g),this.index=this.settings.startAt}return a(h,[{key:"mount",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._e.emit("mount.before"),r(n)?this._c=u(this,n,this._e):t("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return O(n)?this._t=n:t("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.settings=x(this.settings,n),n.hasOwnProperty("startAt")&&(this.index=n.startAt),this._e.emit("update"),this}},{key:"go",value:function(n){return this._c.Run.make(n),this}},{key:"move",value:function(n){return this._c.Transition.disable(),this._c.Move.make(n),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return n&&(this.settings.autoplay=n),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(n,g){return this._e.on(n,g),this}},{key:"isType",value:function(n){return this.settings.type===n}},{key:"settings",get:function(){return this._o},set:function(n){r(n)?this._o=n:t("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(n){this._i=e(n)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(n){this._d=!!n}}]),h})();function P(){return new Date().getTime()}function G(h,n){var g,o,d,T,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=0,A=function(){E=I.leading===!1?0:P(),g=null,T=h.apply(o,d),g||(o=d=null)},F=function(){var H=P();E||I.leading!==!1||(E=H);var D=n-(H-E);return o=this,d=arguments,D<=0||D>n?(g&&(clearTimeout(g),g=null),E=H,T=h.apply(o,d),g||(o=d=null)):g||I.trailing===!1||(g=setTimeout(A,D)),T};return F.cancel=function(){clearTimeout(g),E=0,g=o=d=null},F}var N={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function Q(h){if(h&&h.parentNode){for(var n=h.parentNode.firstChild,g=[];n;n=n.nextSibling)n.nodeType===1&&n!==h&&g.push(n);return g}return[]}function W(h){return Array.prototype.slice.call(h)}var X=(function(){function h(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};y(this,h),this.listeners=n}return a(h,[{key:"on",value:function(n,g,o){var d=arguments.length>3&&arguments[3]!==void 0&&arguments[3];s(n)&&(n=[n]);for(var T=0;T<n.length;T++)this.listeners[n[T]]=o,g.addEventListener(n[T],this.listeners[n[T]],d)}},{key:"off",value:function(n,g){var o=arguments.length>2&&arguments[2]!==void 0&&arguments[2];s(n)&&(n=[n]);for(var d=0;d<n.length;d++)g.removeEventListener(n[d],this.listeners[n[d]],o)}},{key:"destroy",value:function(){delete this.listeners}}]),h})(),it=["ltr","rtl"],ot={">":"<","<":">","=":"="};function at(h,n){return{modify:function(g){return n.Direction.is("rtl")?-g:g}}}function lt(h,n){return{modify:function(g){var o=Math.floor(g/n.Sizes.slideWidth);return g+n.Gaps.value*o}}}function K(h,n){return{modify:function(g){return g+n.Clones.grow/2}}}function nt(h,n){return{modify:function(g){if(h.settings.focusAt>=0){var o=n.Peek.value;return r(o)?g-o.before:g-o}return g}}}function ut(h,n){return{modify:function(g){var o=n.Gaps.value,d=n.Sizes.width,T=h.settings.focusAt,I=n.Sizes.slideWidth;return T==="center"?g-(d/2-I/2):g-I*T-o*T}}}var st=!1;try{var V=Object.defineProperty({},"passive",{get:function(){st=!0}});window.addEventListener("testPassive",null,V),window.removeEventListener("testPassive",null,V)}catch(h){}var tt=st,et=["touchstart","mousedown"],rt=["touchmove","mousemove"],ct=["touchend","touchcancel","mouseup","mouseleave"],dt=["mousedown","mousemove","mouseup","mouseleave"],ht='[data-glide-el^="controls"]',pt="".concat(ht,' [data-glide-dir*="<"]'),mt="".concat(ht,' [data-glide-dir*=">"]');function ft(h){return r(h)?(n=h,Object.keys(n).sort().reduce((function(g,o){return g[o]=n[o],g[o],g}),{})):(t("Breakpoints option must be an object"),{});var n}var vt={Html:function(h,n,g){var o={mount:function(){this.root=h.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=W(this.wrapper.children).filter((function(d){return!d.classList.contains(h.settings.classes.slide.clone)}))}};return v(o,"root",{get:function(){return o._r},set:function(d){s(d)&&(d=document.querySelector(d)),d!==null?o._r=d:t("Root element must be a existing Html node")}}),v(o,"track",{get:function(){return o._t},set:function(d){o._t=d}}),v(o,"wrapper",{get:function(){return o.track.children[0]}}),g.on("update",(function(){o.collectSlides()})),o},Translate:function(h,n,g){var o={set:function(d){var T=(function(E,A,F){var H=[lt,K,nt,ut].concat(E._t,[at]);return{mutate:function(D){for(var R=0;R<H.length;R++){var B=H[R];f(B)&&f(B().modify)?D=B(E,A,F).modify(D):t("Transformer should be a function that returns an object with `modify()` method")}return D}}})(h,n).mutate(d),I="translate3d(".concat(-1*T,"px, 0px, 0px)");n.Html.wrapper.style.mozTransform=I,n.Html.wrapper.style.webkitTransform=I,n.Html.wrapper.style.transform=I},remove:function(){n.Html.wrapper.style.transform=""},getStartIndex:function(){var d=n.Sizes.length,T=h.index,I=h.settings.perView;return n.Run.isOffset(">")||n.Run.isOffset("|>")?d+(T-I):(T+I)%d},getTravelDistance:function(){var d=n.Sizes.slideWidth*h.settings.perView;return n.Run.isOffset(">")||n.Run.isOffset("|>")?-1*d:d}};return g.on("move",(function(d){if(!h.isType("carousel")||!n.Run.isOffset())return o.set(d.movement);n.Transition.after((function(){g.emit("translate.jump"),o.set(n.Sizes.slideWidth*h.index)}));var T=n.Sizes.slideWidth*n.Translate.getStartIndex();return o.set(T-n.Translate.getTravelDistance())})),g.on("destroy",(function(){o.remove()})),o},Transition:function(h,n,g){var o=!1,d={compose:function(T){var I=h.settings;return o?"".concat(T," 0ms ").concat(I.animationTimingFunc):"".concat(T," ").concat(this.duration,"ms ").concat(I.animationTimingFunc)},set:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";n.Html.wrapper.style.transition=this.compose(T)},remove:function(){n.Html.wrapper.style.transition=""},after:function(T){setTimeout((function(){T()}),this.duration)},enable:function(){o=!1,this.set()},disable:function(){o=!0,this.set()}};return v(d,"duration",{get:function(){var T=h.settings;return h.isType("slider")&&n.Run.offset?T.rewindDuration:T.animationDuration}}),g.on("move",(function(){d.set()})),g.on(["build.before","resize","translate.jump"],(function(){d.disable()})),g.on("run",(function(){d.enable()})),g.on("destroy",(function(){d.remove()})),d},Direction:function(h,n,g){var o={mount:function(){this.value=h.settings.direction},resolve:function(d){var T=d.slice(0,1);return this.is("rtl")?d.split(T).join(ot[T]):d},is:function(d){return this.value===d},addClass:function(){n.Html.root.classList.add(h.settings.classes.direction[this.value])},removeClass:function(){n.Html.root.classList.remove(h.settings.classes.direction[this.value])}};return v(o,"value",{get:function(){return o._v},set:function(d){it.indexOf(d)>-1?o._v=d:t("Direction value must be `ltr` or `rtl`")}}),g.on(["destroy","update"],(function(){o.removeClass()})),g.on("update",(function(){o.mount()})),g.on(["build.before","update"],(function(){o.addClass()})),o},Peek:function(h,n,g){var o={mount:function(){this.value=h.settings.peek}};return v(o,"value",{get:function(){return o._v},set:function(d){r(d)?(d.before=e(d.before),d.after=e(d.after)):d=e(d),o._v=d}}),v(o,"reductor",{get:function(){var d=o.value,T=h.settings.perView;return r(d)?d.before/T+d.after/T:2*d/T}}),g.on(["resize","update"],(function(){o.mount()})),o},Sizes:function(h,n,g){var o={setupSlides:function(){for(var d="".concat(this.slideWidth,"px"),T=n.Html.slides,I=0;I<T.length;I++)T[I].style.width=d},setupWrapper:function(){n.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var d=n.Html.slides,T=0;T<d.length;T++)d[T].style.width="";n.Html.wrapper.style.width=""}};return v(o,"length",{get:function(){return n.Html.slides.length}}),v(o,"width",{get:function(){return n.Html.track.offsetWidth}}),v(o,"wrapperSize",{get:function(){return o.slideWidth*o.length+n.Gaps.grow+n.Clones.grow}}),v(o,"slideWidth",{get:function(){return o.width/h.settings.perView-n.Peek.reductor-n.Gaps.reductor}}),g.on(["build.before","resize","update"],(function(){o.setupSlides(),o.setupWrapper()})),g.on("destroy",(function(){o.remove()})),o},Gaps:function(h,n,g){var o={apply:function(d){for(var T=0,I=d.length;T<I;T++){var E=d[T].style,A=n.Direction.value;E[N[A][0]]=T!==0?"".concat(this.value/2,"px"):"",T!==d.length-1?E[N[A][1]]="".concat(this.value/2,"px"):E[N[A][1]]=""}},remove:function(d){for(var T=0,I=d.length;T<I;T++){var E=d[T].style;E.marginLeft="",E.marginRight=""}}};return v(o,"value",{get:function(){return e(h.settings.gap)}}),v(o,"grow",{get:function(){return o.value*n.Sizes.length}}),v(o,"reductor",{get:function(){var d=h.settings.perView;return o.value*(d-1)/d}}),g.on(["build.after","update"],G((function(){o.apply(n.Html.wrapper.children)}),30)),g.on("destroy",(function(){o.remove(n.Html.wrapper.children)})),o},Move:function(h,n,g){var o={mount:function(){this._o=0},make:function(){var d=this,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.offset=T,g.emit("move",{movement:this.value}),n.Transition.after((function(){g.emit("move.after",{movement:d.value})}))}};return v(o,"offset",{get:function(){return o._o},set:function(d){o._o=b(d)?0:e(d)}}),v(o,"translate",{get:function(){return n.Sizes.slideWidth*h.index}}),v(o,"value",{get:function(){var d=this.offset,T=this.translate;return n.Direction.is("rtl")?T+d:T-d}}),g.on(["build.before","run"],(function(){o.make()})),o},Clones:function(h,n,g){var o={mount:function(){this.items=[],h.isType("carousel")&&(this.items=this.collect())},collect:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=n.Html.slides,I=h.settings,E=I.perView,A=I.classes,F=I.cloningRatio;if(T.length>0)for(var H=+!!h.settings.peek,D=E+H+Math.round(E/2),R=T.slice(0,D).reverse(),B=T.slice(-1*D),U=0;U<Math.max(F,Math.floor(E/T.length));U++){for(var q=0;q<R.length;q++){var J=R[q].cloneNode(!0);J.classList.add(A.slide.clone),d.push(J)}for(var Y=0;Y<B.length;
2Y++){var Z=B[Y].cloneNode(!0);Z.classList.add(A.slide.clone),d.unshift(Z)}}return d},append:function(){for(var d=this.items,T=n.Html,I=T.wrapper,E=T.slides,A=Math.floor(d.length/2),F=d.slice(0,A).reverse(),H=d.slice(-1*A).reverse(),D="".concat(n.Sizes.slideWidth,"px"),R=0;R<H.length;R++)I.appendChild(H[R]);for(var B=0;B<F.length;B++)I.insertBefore(F[B],E[0]);for(var U=0;U<d.length;U++)d[U].style.width=D},remove:function(){for(var d=this.items,T=0;T<d.length;T++)n.Html.wrapper.removeChild(d[T])}};return v(o,"grow",{get:function(){return(n.Sizes.slideWidth+n.Gaps.value)*o.items.length}}),g.on("update",(function(){o.remove(),o.mount(),o.append()})),g.on("build.before",(function(){h.isType("carousel")&&o.append()})),g.on("destroy",(function(){o.remove()})),o},Resize:function(h,n,g){var o=new X,d={mount:function(){this.bind()},bind:function(){o.on("resize",window,G((function(){g.emit("resize")}),h.settings.throttle))},unbind:function(){o.off("resize",window)}};return g.on("destroy",(function(){d.unbind(),o.destroy()})),d},Build:function(h,n,g){var o={mount:function(){g.emit("build.before"),this.typeClass(),this.activeClass(),g.emit("build.after")},typeClass:function(){n.Html.root.classList.add(h.settings.classes.type[h.settings.type])},activeClass:function(){var d=h.settings.classes,T=n.Html.slides[h.index];T&&(T.classList.add(d.slide.active),Q(T).forEach((function(I){I.classList.remove(d.slide.active)})))},removeClasses:function(){var d=h.settings.classes,T=d.type,I=d.slide;n.Html.root.classList.remove(T[h.settings.type]),n.Html.slides.forEach((function(E){E.classList.remove(I.active)}))}};return g.on(["destroy","update"],(function(){o.removeClasses()})),g.on(["resize","update"],(function(){o.mount()})),g.on("move.after",(function(){o.activeClass()})),o},Run:function(h,n,g){var o={mount:function(){this._o=!1},make:function(d){var T=this;h.disabled||(!h.settings.waitForTransition||h.disable(),this.move=d,g.emit("run.before",this.move),this.calculate(),g.emit("run",this.move),n.Transition.after((function(){T.isStart()&&g.emit("run.start",T.move),T.isEnd()&&g.emit("run.end",T.move),T.isOffset()&&(T._o=!1,g.emit("run.offset",T.move)),g.emit("run.after",T.move),h.enable()})))},calculate:function(){var d=this.move,T=this.length,I=d.steps,E=d.direction,A=1;if(E==="=")return h.settings.bound&&e(I)>T?void(h.index=T):void(h.index=I);if(E!==">"||I!==">")if(E!=="<"||I!=="<"){if(E==="|"&&(A=h.settings.perView||1),E===">"||E==="|"&&I===">"){var F=(function(D){var R=h.index;return h.isType("carousel")?R+D:R+(D-R%D)})(A);return F>T&&(this._o=!0),void(h.index=(function(D,R){var B=o.length;return D<=B?D:h.isType("carousel")?D-(B+1):h.settings.rewind?o.isBound()&&!o.isEnd()?B:0:o.isBound()?B:Math.floor(B/R)*R})(F,A))}if(E==="<"||E==="|"&&I==="<"){var H=(function(D){var R=h.index;return h.isType("carousel")?R-D:(Math.ceil(R/D)-1)*D})(A);return H<0&&(this._o=!0),void(h.index=(function(D,R){var B=o.length;return D>=0?D:h.isType("carousel")?D+(B+1):h.settings.rewind?o.isBound()&&o.isStart()?B:Math.floor(B/R)*R:0})(H,A))}t("Invalid direction pattern [".concat(E).concat(I,"] has been used"))}else h.index=0;else h.index=T},isStart:function(){return h.index<=0},isEnd:function(){return h.index>=this.length},isOffset:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return d?!!this._o&&(d==="|>"?this.move.direction==="|"&&this.move.steps===">":d==="|<"?this.move.direction==="|"&&this.move.steps==="<":this.move.direction===d):this._o},isBound:function(){return h.isType("slider")&&h.settings.focusAt!=="center"&&h.settings.bound}};return v(o,"move",{get:function(){return this._m},set:function(d){var T=d.substr(1);this._m={direction:d.substr(0,1),steps:T?e(T)?e(T):T:0}}}),v(o,"length",{get:function(){var d=h.settings,T=n.Html.slides.length;return this.isBound()?T-1-(e(d.perView)-1)+e(d.focusAt):T-1}}),v(o,"offset",{get:function(){return this._o}}),o},Swipe:function(h,n,g){var o=new X,d=0,T=0,I=0,E=!1,A=!!tt&&{passive:!0},F={mount:function(){this.bindSwipeStart()},start:function(H){if(!E&&!h.disabled){this.disable();var D=this.touches(H);d=null,T=e(D.pageX),I=e(D.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),g.emit("swipe.start")}},move:function(H){if(!h.disabled){var D=h.settings,R=D.touchAngle,B=D.touchRatio,U=D.classes,q=this.touches(H),J=e(q.pageX)-T,Y=e(q.pageY)-I,Z=Math.abs(J<<2),gt=M
vendor: 3,081 bytes, line 2
2ath.abs(Y<<2),bt=Math.sqrt(Z+gt),Tt=Math.sqrt(gt);if(!(180*(d=Math.asin(Tt/bt))/Math.PI<R))return!1;H.stopPropagation(),n.Move.make(J*parseFloat(B)),n.Html.root.classList.add(U.dragging),g.emit("swipe.move")}},end:function(H){if(!h.disabled){var D=h.settings,R=D.perSwipe,B=D.touchAngle,U=D.classes,q=this.touches(H),J=this.threshold(H),Y=q.pageX-T,Z=180*d/Math.PI;this.enable(),Y>J&&Z<B?n.Run.make(n.Direction.resolve("".concat(R,"<"))):Y<-J&&Z<B?n.Run.make(n.Direction.resolve("".concat(R,">"))):n.Move.make(),n.Html.root.classList.remove(U.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),g.emit("swipe.end")}},bindSwipeStart:function(){var H=this,D=h.settings,R=D.swipeThreshold,B=D.dragThreshold;R&&o.on(et[0],n.Html.wrapper,(function(U){H.start(U)}),A),B&&o.on(et[1],n.Html.wrapper,(function(U){H.start(U)}),A)},unbindSwipeStart:function(){o.off(et[0],n.Html.wrapper,A),o.off(et[1],n.Html.wrapper,A)},bindSwipeMove:function(){var H=this;o.on(rt,n.Html.wrapper,G((function(D){H.move(D)}),h.settings.throttle),A)},unbindSwipeMove:function(){o.off(rt,n.Html.wrapper,A)},bindSwipeEnd:function(){var H=this;o.on(ct,n.Html.wrapper,(function(D){H.end(D)}))},unbindSwipeEnd:function(){o.off(ct,n.Html.wrapper)},touches:function(H){return dt.indexOf(H.type)>-1?H:H.touches[0]||H.changedTouches[0]},threshold:function(H){var D=h.settings;return dt.indexOf(H.type)>-1?D.dragThreshold:D.swipeThreshold},enable:function(){return E=!1,n.Transition.enable(),this},disable:function(){return E=!0,n.Transition.disable(),this}};return g.on("build.after",(function(){n.Html.root.classList.add(h.settings.classes.swipeable)})),g.on("destroy",(function(){F.unbindSwipeStart(),F.unbindSwipeMove(),F.unbindSwipeEnd(),o.destroy()})),F},Images:function(h,n,g){var o=new X,d={mount:function(){this.bind()},bind:function(){o.on("dragstart",n.Html.wrapper,this.dragstart)},unbind:function(){o.off("dragstart",n.Html.wrapper)},dragstart:function(T){T.preventDefault()}};return g.on("destroy",(function(){d.unbind(),o.destroy()})),d},Anchors:function(h,n,g){var o=new X,d=!1,T=!1,I={mount:function(){this._a=n.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){o.on("click",n.Html.wrapper,this.click)},unbind:function(){o.off("click",n.Html.wrapper)},click:function(E){T&&(E.stopPropagation(),E.preventDefault())},detach:function(){if(T=!0,!d){for(var E=0;E<this.items.length;E++)this.items[E].draggable=!1;d=!0}return this},attach:function(){if(T=!1,d){for(var E=0;E<this.items.length;E++)this.items[E].draggable=!0;d=!1}return this}};return v(I,"items",{get:function(){return I._a}}),g.on("swipe.move",(function(){I.detach()})),g.on("swipe.end",(function(){n.Transition.after((function(){I.attach()}))})),g.on("destroy",(function(){I.attach(),I.unbind(),o.destroy()})),I},Controls:function(h,n,g){var o=new X,d=!!tt&&{passive:!0},T={mount:function(){this._n=n.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=n.Html.root.querySelectorAll(ht),this._arrowControls={previous:n.Html.root.querySelectorAll(pt),next:n.Html.root.querySelectorAll(mt)},this.addBindings()}
2,setActive:function(){for(var I=0;I<this._n.length;I++)this.addClass(this._n[I].children)},removeActive:function(){for(var I=0;I<this._n.length;I++)this.removeClass(this._n[I].children)},addClass:function(I){var E=h.settings,A=I[h.index];A&&(A.classList.add(E.classes.nav.active),Q(A).forEach((function(F){F.classList.remove(E.classes.nav.active)})))},removeClass:function(I){var E=I[h.index];E==null||E.classList.remove(h.settings.classes.nav.active)},setArrowState:function(){if(!h.settings.rewind){var I=T._arrowControls.next,E=T._arrowControls.previous;this.resetArrowState(I,E),h.index===0&&this.disableArrow(E),h.index===n.Run.length&&this.disableArrow(I)}},resetArrowState:function(){for(var I=h.settings,E=arguments.length,A=new Array(E),F=0;F<E;F++)A[F]=arguments[F];A.forEach((function(H){W(H).forEach((function(D){D.classList.remove(I.classes.arrow.disabled)}))}))},disableArrow:function(){for(var I=h.settings,E=arguments.length,A=new Array(E),F=0;F<E;F++)A[F]=arguments[F];A.forEach((function(H){W(H).forEach((function(D){D.classList.add(I.classes.arrow.disabled)}))}))},addBindings:function(){for(var I=0;I<this._c.length;I++)this.bind(this._c[I].children)},removeBindings:function(){for(var I=0;I<this._c.length;I++)this.unbind(this._c[I].children)},bind:function(I){for(var E=0;E<I.length;E++)o.on("click",I[E],this.click),o.on("touchstart",I[E],this.click,d)},unbind:function(I){for(var E=0;E<I.length;E++)o.off(["click","touchstart"],I[E])},click:function(I){tt||I.type!=="touchstart"||I.preventDefault();var E=I.currentTarget.getAttribute("data-glide-dir");n.Run.make(n.Direction.resolve(E))}};return v(T,"items",{get:function(){return T._c}}),g.on(["mount.after","move.after"],(function(){T.setActive()})),g.on(["mount.after","run"],(function(){T.setArrowState()})),g.on("destroy",(function(){T.removeBindings(),T.removeActive(),o.destroy()})),T},Keyboard:function(h,n,g){var o=new X,d={mount:function(){h.settings.keyboard&&this.bind()},bind:function(){o.on("keyup",document,this.press)},unbind:function(){o.off("keyup",document)},press:function(T){var I=h.settings.perSwipe;["ArrowRight","ArrowLeft"].includes(T.code)&&n.Run.make(n.Direction.resolve("".concat(I).concat({ArrowRight:">",ArrowLeft:"<"}[T.code])))}};return g.on(["destroy","update"],(function(){d.unbind()})),g.on("update",(function(){d.mount()})),g.on("destroy",(function(){o.destroy()})),d},Autoplay:function(h,n,g){var o=new X,d={mount:function(){this.enable(),this.start(),h.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var T=this;this._e&&(this.enable(),h.settings.autoplay&&b(this._i)&&(this._i=setInterval((function(){T.stop(),n.Run.make(">"),T.start(),g.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var T=this;o.on("mouseover",n.Html.root,(function(){T._e&&T.stop()})),o.on("mouseout",n.Html.root,(function(){T._e&&T.start()}))},unbind:function(){o.off(["mouseover","mouseout"],n.Html.root)}};return v(d,"time",{get:function(){var T=n.Html.slides[h.index].getAttribute("data-glide-autoplay");return e(T||h.settings.autoplay)}}),g.on(["destroy","update"],(function(){d.unbind()})),g.on(["run.before","swipe.start","update"],(function(){d.stop()})),g.on(["pause","destroy"],(function(){d.disable(),d.stop()})),g.on(["run.after","swipe.end"],(function(){d.start()})),g.on(["play"],(function(){d.enable(),d.start()})),g.on("update",(function(){d.mount()})),g.on("destroy",(function(){o.destroy()})),d},Breakpoints:function(h,n,g){var o=new X,d=h.settings,T=ft(d.breakpoints),I=Object.assign({},d),E={match:function(A){if(window.matchMedia!==void 0){for(var F in A)if(A.hasOwnProperty(F)&&window.matchMedia("(max-width: ".concat(F,"px)")).matches)return A[F]}return I}};return Object.assign(d,E.match(T)),o.on("resize",window,G((function(){h.settings=x(d,E.match(T))}),h.settings.throttle)),g.on("update",(function(){T=ft(T),I=Object.assign({},d)})),g.on("destroy",(function(){o.off("resize",window)})),E}},yt=(function(h){(function(o,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(d&&d.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),d&&C(o,d)})(g,h);var n=_(g);function g(){return y(this,g),n.apply(this,arguments)}return a(g,[{key:"mount",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return z(S(g.prototype),"mount",this).call(this,Object.assign({},vt,o))}}]),g})(L);return yt}));(function(i,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(i=typeof globalThis!="undefined"?globalThis:i||self,i.lightGallery=p())})(this,(function(){"use strict";var i=function(){return i=Object.assign||function(t){for(var e,s=1,r=arguments.length;s<r;s++){e=arguments[s];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(t[f]=e[f])}return t},i.apply(this,arguments)};function p(){for(var c=0,t=0,e=arguments.length;t<e;t++)c+=arguments[t].length;for(var s=Array(c),r=0,t=0;t<e;t++)for(var f=arguments[t],b=0,O=f.length;b<O;b++,r++)s[r]=f[b];return s}var w={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",auto
2playStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},y={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function m(){(function(){if(typeof window.CustomEvent=="function")return!1;function c(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),s}window.CustomEvent=c})(),(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)})()}var a=(function(){function c(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return c.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,s=t=="x"?e:e&3|8;return s.toString(16)})},c.prototype._getSelector=function(t,e){if(e===void 0&&(e=document),typeof t!="string")return t;e=e||document;var s=t.substring(0,1);return s==="#"?e.querySelector(t):e.querySelectorAll(t)},c.prototype._each=function(t){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,t):t(this.selector,0),this):this},c.prototype._setCssVendorPrefix=function(t,e,s){var r=e.replace(/-([a-z])/gi,function(f,b){return b.toUpperCase()});this.cssVenderPrefixes.indexOf(r)!==-1?(t.style[r.charAt(0).toLowerCase()+r.slice(1)]=s,t.style["webkit"+r]=s,t.style["moz"+r]=s,t.style["ms"+r]=s,t.style["o"+r]=s):t.style[r]=s},c.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},c.prototype.isEventMatched=function(t,e){var s=e.split(".");return t.split(".").filter(function(r){return r}).every(function(r){return s.indexOf(r)!==-1})},c.prototype.attr=function(t,e){return e===void 0?this.firstElement?this.firstElement.getAttribute(t):"":(this._each(function(s){s.setAttribute(t,e)}),this)},c.prototype.find=function(t){return l(this._getSelector(t,this.selector))},c.prototype.first=function(){return this.selector&&this.selector.length!==void 0?l(this.selector[0]):l(this.selector)},c.prototype.eq=function(t){return l(this.selector[t])},c.prototype.parent=function(){return l(this.selector.parentElement)},c.prototype.get=function(){return this._getFirstEl()},c.prototype.removeAttr=function(t){var e=t.split(" ");return this._each(function(s){e.forEach(function(r){return s.removeAttribute(r)})}),this},c.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement("div");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},c.prototype.addClass=function(t){return t===void 0&&(t=""),this._each(function(e){t.split(" ").forEach(function(s){s&&e.classList.add(s)})}),this},c.prototype.removeClass=function(t){return this._each(function(e){t.split(" ").forEach(function(s){s&&e.classList.remove(s)})}),this},c.prototype.hasClass=function(t){return this.firstElement?this.firstElement.classList.contains(t):!1},c.prototype.hasAttribute=function(t){return this.firstElement?this.firstElement.hasAttribute(t):!1},c.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},c.prototype.css=function(t,e){var s=this;return this._each(function(r){s._setCssVendorPrefix(r,t,e)}),this},c.prototype.on=function(t,e){var s=this;return this.selector?(t.split(" ").forEach(function(r){Array.isArray(c.eventListeners[r])||(c.eventListeners[r]=[]),c.eventListeners[r].push(e),s.selector.addEventListener(r.split(".")[0],e)}),this):this},c.prototype.once=function(t,e){var s=this;return this.on(t,function(){s.off(t),e(t)}),this},c.prototype.off=function(t){var e=this;
2return this.selector?(Object.keys(c.eventListeners).forEach(function(s){e.isEventMatched(t,s)&&(c.eventListeners[s].forEach(function(r){e.selector.removeEventListener(s.split(".")[0],r)}),c.eventListeners[s]=[])}),this):this},c.prototype.trigger=function(t,e){if(!this.firstElement)return this;var s=new CustomEvent(t.split(".")[0],{detail:e||null});return this.firstElement.dispatchEvent(s),this},c.prototype.load=function(t){var e=this;return fetch(t).then(function(s){return s.text()}).then(function(s){e.selector.innerHTML=s}),this},c.prototype.html=function(t){return t===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(e){e.innerHTML=t}),this)},c.prototype.append=function(t){return this._each(function(e){typeof t=="string"?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)}),this},c.prototype.prepend=function(t){return this._each(function(e){typeof t=="string"?e.insertAdjacentHTML("afterbegin",t):t instanceof HTMLElement&&e.insertBefore(t.cloneNode(!0),e.firstChild)}),this},c.prototype.remove=function(){return this._each(function(t){t.parentNode.removeChild(t)}),this},c.prototype.empty=function(){return this._each(function(t){t.innerHTML=""}),this},c.prototype.scrollTop=function(t){return t!==void 0?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},c.prototype.scrollLeft=function(t){return t!==void 0?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},c.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=l("body").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},c.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},c.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},c.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},c.eventListeners={},c})();function l(c){return m(),new a(c)}var S=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function C(c){return c==="href"?"src":(c=c.replace("data-",""),c=c.charAt(0).toLowerCase()+c.slice(1),c=c.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),c)}var k={fetchCaptionFromUrl:function(c,t,e){fetch(c).then(function(s){return s.text()}).then(function(s){if(e==="append"){var r='<div class="lg-sub-html">'+s+"</div>";t.append(r)}else t.html(s)})},getSize:function(c,t,e,s){e===void 0&&(e=0);var r=l(c),f=r.attr("data-lg-size")||s;if(f){var b=f.split(",");if(b[1])for(var O=window.innerWidth,u=0;u<b.length;u++){var v=b[u],x=parseInt(v.split("-")[2],10);if(x>O){f=v;break}u===b.length-1&&(f=v)}var M=f.split("-"),L=parseInt(M[0],10),P=parseInt(M[1],10),G=t.width(),N=t.height()-e,Q=Math.min(G,L),W=Math.min(N,P),X=Math.min(Q/L,W/P);return{width:L*X,height:P*X}}},getTransform:function(c,t,e,s,r){if(r){var f=l(c).find("img").first();if(f.get()){var b=t.get().getBoundingClientRect(),O=b.width,u=t.height()-(e+s),v=f.width(),x=f.height(),M=f.style(),L=(O-v)/2-f.offset().left+(parseFloat(M.paddingLeft)||0)+(parseFloat(M.borderLeft)||0)+l(window).scrollLeft()+b.left,P=(u-x)/2-f.offset().top+(parseFloat(M.paddingTop)||0)+(parseFloat(M.borderTop)||0)+l(window).scrollTop()+e,G=v/r.width,N=x/r.height,Q="translate3d("+(L*=-1)+"px, "+(P*=-1)+"px, 0) scale3d("+G+", "+N+", 1)";return Q}}},getIframeMarkup:function(c,t,e,s,r,f){var b=f?'title="'+f+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+c+"; max-width:"+e+"; height: "+t+"; max-height:"+s+`"> 3 <iframe class="lg-object" frameborder="0" `+b+' src="'+r+`" allowfullscreen="true"></iframe> 4 </div>`},getImgMarkup:function(c,t,e,s,r,f){var b=s?'srcset="'+s+'"':"",O=r?'sizes="'+r+'"':"",u="<img "+e+" "+b+" "+O+' class="lg-object lg-image" data-index="'+c+'" src="'+t+'" />',v="";if(f){var x=typeof f=="string"?JSON.parse(f):f;v=x.map(function(M){var L="";
4return Object.keys(M).forEach(function(P){L+=" "+P+'="'+M[P]+'"'}),"<source "+L+"></source>"})}return""+v+u},getResponsiveSrc:function(c){for(var t=[],e=[],s="",r=0;r<c.length;r++){var f=c[r].split(" ");f[0]===""&&f.splice(0,1),e.push(f[0]),t.push(f[1])}for(var b=window.innerWidth,O=0;O<t.length;O++)if(parseInt(t[O],10)>b){s=e[O];break}return s},isImageLoaded:function(c){return!(!c||!c.complete||c.naturalWidth===0)},getVideoPosterMarkup:function(c,t,e,s,r){var f="";r&&r.youtube?f="lg-has-youtube":r&&r.vimeo?f="lg-has-vimeo":f="lg-has-html5";var b=t;return typeof t!="string"&&(b=t.outerHTML),'<div class="lg-video-cont '+f+'" style="'+e+`"> 5 <div class="lg-video-play-button"> 6 <svg 7 viewBox="0 0 20 20" 8 preserveAspectRatio="xMidYMid" 9 focusable="false" 10 aria-labelledby="`+s+`" 11 role="img" 12 class="lg-video-play-icon" 13 > 14 <title>`+s+`</title> 15 <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon> 16 </svg> 17 <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false"> 18 <circle cx="50%" cy="50%" r="20"></circle></svg> 19 <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false"> 20 <circle cx="50%" cy="50%" r="20"></circle> 21 </svg> 22 </div> 23 `+b+` 24 <img class="lg-object lg-video-poster" src="`+c+`" /> 25 </div>`},getFocusableElements:function(c){var t=c.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),e=[].filter.call(t,function(s){var r=window.getComputedStyle(s);return r.display!=="none"&&r.visibility!=="hidden"});return e},getDynamicOptions:function(c,t,e,s){var r=[],f=p(S,t);return[].forEach.call(c,function(b){for(var O={},u=0;u<b.attributes.length;u++){var v=b.attributes[u];if(v.specified){var x=C(v.name),M="";f.indexOf(x)>-1&&(M=x),M&&(O[M]=v.value)}}var L=l(b),P=L.find("img").first().attr("alt"),G=L.attr("title"),N=s?L.attr(s):L.find("img").first().attr("src");O.thumb=N,e&&!O.subHtml&&(O.subHtml=G||P||""),O.alt=P||G||"",r.push(O)}),r},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(c,t,e){if(!c){if(t)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var s=c.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),r=c.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),f=c.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(s)return{youtube:s};if(r)return{vimeo:r};if(f)return{wistia:f}}},_=0,j=(function(){function c(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(_++,this.lgId=_,this.el=t,this.LGel=l(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return c.prototype.generateSettings=function(t){if(this.settings=i(i({},y),t),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():k.isMobile()){var e=i(i({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=i(i({},this.settings),e)}},c.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
25=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var t=this.settings.container;if(typeof t=="function")this.settings.container=t();else if(typeof t=="string"){var e=document.querySelector(t);this.settings.container=e!=null?e:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},c.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(w.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){t.enableDrag(),t.enableSwipe(),t.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},c.prototype.openGalleryOnItemClick=function(){for(var t=this,e=function(f){var b=s.items[f],O=l(b),u=a.generateUUID();O.attr("data-lg-id",u).on("click.lgcustom-item-"+u,function(v){v.preventDefault();var x=t.settings.index||f;t.openGallery(x,b)})},s=this,r=0;r<this.items.length;r++)e(r)},c.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach(function(e){t.plugins.push(new e(t,l))})},c.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},c.prototype.getSlideItem=function(t){return l(this.getSlideItemId(t))},c.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},c.prototype.getIdName=function(t){return t+"-"+this.lgId},c.prototype.getElementById=function(t){return l("#"+this.getIdName(t))},c.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},c.prototype.buildStructure=function(){var t=this,e=this.$container&&this.$container.get();if(!e){var s="",r="";this.settings.controls&&(s='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button> 26 <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(r='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var f="";this.settings.allowMediaOverlap&&(f+="lg-media-overlap ");var b=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",O=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",u="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),v=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",x=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",M=` 27 <div class="`+u+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+b+" "+O+` role="dialog" 28 > 29 <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div> 30 31 <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+f+` "> 32 33 <div id="`+this.getIdName("lg-content")+`" class="lg-content"> 34 <div id="`+this.getIdName("lg-inner")+`" class="lg-inner"> 35 </div> 36 `+s+` 37 </div> 38 <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group"> 39 `+x+` 40 `+v+` 41 </div> 42 `+(this.settings.appendSubHtmlTo===".lg-outer"?r:"")+` 43 <div id="`+this.getIdName("lg-components")+`" class="lg-components"> 44 `+(this.settings.appendSubHtmlTo===".lg-sub-html"?r:"")+` 45 </div> 46 </div> 47 </div> 48 `;l(this.settings.container).append(M),document.body!==this.settings.container&&l(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var L=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(L+="lg-grab "),this.outer.addClass(L),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),l(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){t.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},c.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index],e=t.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,r=s.top,f=s.bottom;if(this.currentImageSize=k.getSize(this.items[this.index],this.outer,r+f,e&&this.settings.videoMaxSize),e&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var b=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",b)}this.LGel.trigger(w.containerResize)}},c.prototype.resizeVideoSlide=function(t,e){var s=this.getVideoContStyle(e),r=this.getSlideItem(t);r.find(".lg-video-cont").attr("style",s)},c.prototype.updateSlides=function(t,e){if(this.index>t.length-1&&(this.index=t.length-1),t.length===1&&(this.index=0),!t.length){this.closeGallery();return}var s=this.galleryItems[e].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var r=0;this.galleryItems.some(function(f,b){return f.src===s?(r=b,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(r,-1),this.loadContent(r,!0),this.get
48SlideItem(r).addClass("lg-current"),this.index=r,this.updateCurrentCounter(r),this.LGel.trigger(w.updateSlides)},c.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var t=l(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return k.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},c.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},c.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(l("body").style().paddingRight);var t=document.documentElement.getBoundingClientRect(),e=window.innerWidth-t.width;l(document.body).css("padding-right",e+this.bodyPaddingRight+"px"),l(document.body).addClass("lg-overlay-open")}},c.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(l(document.body).css("padding-right",this.bodyPaddingRight+"px"),l(document.body).removeClass("lg-overlay-open"))},c.prototype.openGallery=function(t,e){var s=this;if(t===void 0&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var r=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=r;var f="";r.forEach(function(L){f=f+('<div id="'+L+'" class="lg-item"></div>')}),this.$inner.append(f),this.addHtml(t);var b="";this.mediaContainerPosition=this.getMediaContainerPosition();var O=this.mediaContainerPosition,u=O.top,v=O.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(u,v);var x=this.galleryItems[t].__slideVideoInfo;this.zoomFromOrigin&&e&&(this.currentImageSize=k.getSize(e,this.outer,u+v,x&&this.settings.videoMaxSize),b=k.getTransform(e,this.outer,u,v,this.currentImageSize)),(!this.zoomFromOrigin||!b)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var M=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){s.outer.addClass("lg-components-open")},M),this.index=t,this.LGel.trigger(w.beforeOpen),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=l(window).scrollTop(),setTimeout(function(){if(s.zoomFromOrigin&&b){var L=s.getSlideItem(t);L.css("transform",b),setTimeout(function(){L.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",s.settings.startAnimationDuration+"ms"),s.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){L.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){s.$backdrop.addClass("in"),s.$container.addClass("lg-show-in")},10),setTimeout(function(){s.settings.trapFocus&&document.body===s.settings.container&&s.trapFocus()},s.settings.backdropDuration+50),(!s.zoomFromOrigin||!b)&&setTimeout(function(){s.outer.addClass("lg-visible")},s.settings.backdropDuration),s.slide(t,!1,!1,!1),s.LGel.trigger(w.afterOpen)}),document.body===this.settings.container&&l("html").addClass("lg-on")}},c.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.outer.find(".lg-components .lg-sub-html").get(),s=this.settings.defaultCaptionHeight||e&&e.clientHeight||0,r=this.outer.find(".lg-thumb-outer").get(),f=r?r.clientHeight:0,b=f+s;return{top:t,bottom:b}},c.prototype.setMediaContainerPosition=function(t,e){t===void 0&&(t=0),e===void 0&&(e=0),this.$content.css("top",t+"px").css("bottom",e+"px")},c.prototype.hideBars=function(){var t=this;setTimeout(function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout(function(){t.outer.addClass("lg-hide-items")},t.settings.hideBarsDelay)}),t.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},c.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch(e){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},c.prototype.counter=function(){if(this.settings.counter){var t=`<div class="lg-counter" role="status" aria-l
48ive="polite"> 49 <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> / 50 <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},c.prototype.addHtml=function(t){var e,s;if(this.galleryItems[t].subHtmlUrl?s=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!s)if(e){var r=e.substring(0,1);if(r==="."||r==="#")try{this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?e=l(this.items).eq(t).find(e).first().html():e=l(e).first().html()}catch(b){console.warn('Error processing subHtml selector "'+e+'"'),e=""}}else e="";if(this.settings.appendSubHtmlTo!==".lg-item")s?k.fetchCaptionFromUrl(s,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(e);else{var f=l(this.getSlideItemId(t));s?k.fetchCaptionFromUrl(s,f,"append"):f.append('<div class="lg-sub-html">'+e+"</div>")}typeof e!="undefined"&&e!==null&&(e===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(w.afterAppendSubHtml,{index:t})},c.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var s=1;s<=this.settings.preload&&!(t-s<0);s++)this.loadContent(t-s,!1)},c.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+`px; 51 margin-left: -`+t.width/2+`px; 52 margin-top: -`+t.height/2+`px; 53 height:`+t.height+"px":""},c.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+`px; 54 height:`+t.height+"px":""},c.prototype.getDummyImageContent=function(t,e,s){var r;if(this.settings.dynamic||(r=l(this.items).eq(e)),r){var f=void 0;if(this.settings.exThumbImage?f=r.attr(this.settings.exThumbImage):f=r.find("img").first().attr("src"),!f)return"";var b=this.getDummyImgStyles(this.currentImageSize),O=document.createElement("img");return O.alt=s||"",O.src=f,O.className="lg-dummy-img",O.style.cssText=b,t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),O}return""},c.prototype.setImgMarkup=function(t,e,s){var r=this.galleryItems[s],f=r.alt,b=r.srcset,O=r.sizes,u=r.sources,v="",x=f?'alt="'+f+'"':"";this.isFirstSlideWithZoomAnimation()?v=this.getDummyImageContent(e,s,x):v=k.getImgMarkup(s,t,x,b,O,u);var M=document.createElement("picture");M.className="lg-img-wrap",l(M).append(v),e.prepend(M)},c.prototype.onSlideObjectLoad=function(t,e,s,r){var f=t.find(".lg-object").first();k.isImageLoaded(f.get())||e?s():(f.on("load.lg error.lg",function(){s&&s()}),f.on("error.lg",function(){r&&r()}))},c.prototype.onLgObjectLoad=function(t,e,s,r,f,b){var O=this;this.onSlideObjectLoad(t,b,function(){O.triggerSlideItemLoad(t,e,s,r,f)},function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">'+O.settings.strings.mediaLoadingFailed+"</span>")})},c.prototype.triggerSlideItemLoad=function(t,e,s,r,f){var b=this,O=this.galleryItems[e],u=f&&this.getSlideType(O)==="video"&&!O.poster?r:0;setTimeout(function(){t.addClass("lg-complete lg-complete_"),b.LGel.trigger(w.slideItemLoad,{index:e,delay:s||0,isFirstSlide:f})},u)},c.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},c.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach(function(s,r){s.__slideVideoInfo=k.isVideo(s.src,!!s.video,r),s.__slideVideoInfo&&e.settings.loadYouTubePoster&&!s.poster&&s.__slideVideoInfo.youtube&&(s.poster="//img.youtube.com/vi/"+s.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},c.prototype.loadContent=function(t,e){var s=this,r=this.galleryItems[t],f=l(this.getSlideItemId(t)),b=r.poster,O=r.srcset,u=r.sizes,v=r.sources,x=r.src,M=r.video,L=M&&typeof M=="string"?JSON.parse(M):M;if(r.responsive){var P=r.responsive.split(",");x=k.getResponsiveSrc(P)||x}var G=r.__slideVideoInfo,N="",Q=!!r.iframe,W=!this.lGalleryOn,X=0;if(W&&(this.zoomFromOrigin&&this.currentImageSize?X=this.settings.startAnimationDuration+10:X=this.settings.backdropDuration+10),!f.hasClass("lg-loaded")){if(G){var it=this.mediaContainerPosition,ot=it.top,at=it.bottom,lt=k.getSize(this.items[t],this.outer,ot+at,G&&this.settings.videoMaxSize);N=this.getVideoContStyle(lt)}if(Q){var K=k.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,x,r.iframeTitle);f.prepend(K)}else if(b){var nt="",ut=W&&this.zoomFromOrigin&&this.currentImageSize;ut&&(nt=this.getDummyImageContent(f,t,""));var K=k.getVideoPosterMarkup(b,nt||"",N,this.settings.strings.playVideo,G);f.prepend(K)}else if(G){var K='<div class="lg-video-cont " style="'+N+'"></div>';f.prepend(K)}else if(this.setImgMarkup(x,f,t),O||v){var st=f.find(".lg-object");this.initPictureFill(st)}(b||G)&&this.LGel.trigger(w.hasVideo,{index:t,src:x,html5Video:L,hasPoster:!!b}),this.LGel.trigger(w.afterAppendSlide,{index:t}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(t)}var V=0;X&&!l(document.body).hasClass("lg-from-hash")&&(V=X),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){f.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),f.hasClass("lg-loaded")||setTimeout(function(){if(s.getSlideType(r)==="image"){var tt=r.alt,et=tt?'alt="'+tt+'"':"";if(f.find(".lg-img-wrap").append(k.getImgMarkup(t,x,et,O,u,r.sources)),O||v){var rt=f.find(".lg-object");s.initPictureFill(rt)}}
54(s.getSlideType(r)==="image"||s.getSlideType(r)==="video"&&b)&&(s.onLgObjectLoad(f,t,X,V,!0,!1),s.onSlideObjectLoad(f,!!(G&&G.html5&&!b),function(){s.loadContentOnFirstSlideLoad(t,f,V)},function(){s.loadContentOnFirstSlideLoad(t,f,V)}))},this.settings.startAnimationDuration+100)),f.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(r)==="video"&&!b)&&this.onLgObjectLoad(f,t,X,V,W,!!(G&&G.html5&&!b)),(!this.zoomFromOrigin||!this.currentImageSize)&&f.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){f.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,e===!0&&(f.hasClass("lg-complete_")?this.preload(t):f.find(".lg-object").first().on("load.lg error.lg",function(){s.preload(t)}))},c.prototype.loadContentOnFirstSlideLoad=function(t,e,s){var r=this;setTimeout(function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),r.outer.removeClass("lg-first-slide-loading"),r.isDummyImageRemoved=!0,r.preload(t)},s+300)},c.prototype.getItemsToBeInsertedToDom=function(t,e,s){var r=this;s===void 0&&(s=0);var f=[],b=Math.max(s,3);b=Math.min(b,this.galleryItems.length);var O="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(x,M){f.push("lg-item-"+r.lgId+"-"+M)}),f;if(t<(this.galleryItems.length-1)/2){for(var u=t;u>t-b/2&&u>=0;u--)f.push("lg-item-"+this.lgId+"-"+u);for(var v=f.length,u=0;u<b-v;
54u++)f.push("lg-item-"+this.lgId+"-"+(t+u+1))}else{for(var u=t;u<=this.galleryItems.length-1&&u<t+b/2;u++)f.push("lg-item-"+this.lgId+"-"+u);for(var v=f.length,u=0;u<b-v;u++)f.push("lg-item-"+this.lgId+"-"+(t-u-1))}return this.settings.loop&&(t===this.galleryItems.length-1?f.push("lg-item-"+this.lgId+"-0"):t===0&&f.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),f.indexOf(O)===-1&&f.push("lg-item-"+this.lgId+"-"+e),f},c.prototype.organizeSlideItems=function(t,e){var s=this,r=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return r.forEach(function(f){s.currentItemsInDom.indexOf(f)===-1&&s.$inner.append('<div id="'+f+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(f){r.indexOf(f)===-1&&l("#"+f).remove()}),r},c.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(".lg-current").first().attr("id");t=parseInt(e.split("-")[3])||0}catch(s){t=0}return t},c.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t],s=e.downloadUrl===!1||e.downloadUrl==="false";if(s)this.outer.addClass("lg-hide-download");else{var r=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),r.attr("href",e.downloadUrl||e.src),e.download&&r.attr("download",e.download)}}},c.prototype.makeSlideAnimation=function(t,e,s){var r=this;this.lGalleryOn&&s.addClass("lg-slide-progress"),setTimeout(function(){r.outer.addClass("lg-no-trans"),r.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),t==="prev"?(e.addClass("lg-prev-slide"),s.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),s.addClass("lg-prev-slide")),setTimeout(function(){r.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),r.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},c.prototype.slide=function(t,e,s,r){var f=this,b=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,b),!(this.lGalleryOn&&b===t)){var O=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var u=this.getSlideItem(t),v=this.getSlideItem(b),x=this.galleryItems[t],M=x.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(x)),this.setDownloadValue(t),M){var L=this.mediaContainerPosition,P=L.top,G=L.bottom,N=k.getSize(this.items[t],this.outer,P+G,M&&this.settings.videoMaxSize);this.resizeVideoSlide(t,N)}if(this.LGel.trigger(w.beforeSlide,{prevIndex:b,index:t,fromTouch:!!e,fromThumb:!!s}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),r||(t<b?r="prev":t>b&&(r="next")),!e)this.makeSlideAnimation(r,u,v);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Q=void 0,W=void 0;O>2?(Q=t-1,W=t+1,(t===0&&b===O-1||t===O-1&&b===0)&&(W=0,Q=O-1)):(Q=0,W=1),r==="prev"?this.getSlideItem(W).addClass("lg-next-slide"):this.getSlideItem(Q).addClass("lg-prev-slide"),u.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){f.loadContent(t,!0),f.settings.appendSubHtmlTo!==".lg-item"&&f.addHtml(t)},this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(t,!0),setTimeout(function(){f.lgBusy=!1,v.removeClass("lg-slide-progress"),f.LGel.trigger(w.afterSlide,{prevIndex:b,index:t,fromTouch:e,fromThumb:s})},(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},c.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},c.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},c.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},c.prototype.touchMove=function(t,e,s){var r=e.pageX-t.pageX,f=e.pageY-t.pageY,b=!1;if(this.swipeDirection?b=!0:Math.abs(r)>15?(this.swipeDirection="horizontal",b=!0):Math.abs(f)>15&&(this.swipeDirection="vertical",b=!0),!!b){var O=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){s==null||s.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(O,r,0);var u=O.get().offsetWidth,v=u*15/100,x=v-Math.abs(r*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-u+r-x,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),u+r+x,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){s==null||s.preventDefault(),this.$container.addClass("lg-dragging-vertical");var M=1-Math.abs(f)/window.innerHeight;this.$backdrop.css("opacity",M);var L=1-Math.abs(f)/(window.innerWidth*2);this.setTranslate(O,0,f,L,L),Math.abs(f)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},c.prototype.touchEnd=function(t,e,s){var r=this,f;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){r.$container.removeClass("lg-dragging-vertical"),r.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var b=!0;if(r.swipeDirection==="horizontal"){f=t.pageX-e.pageX;var O=Math.abs(t.pageX-e.pageX);f<0&&O>r.settings.swipeThreshold?(r.goToNextSlide(!0),b=!1):f>0&&O>r.settings.swipeThreshold&&(r.goToPrevSlide(!0),b=!1)}else if(r.swipeDirection==="vertical")if(f=Math.abs(t.pageY-e.pageY),r.settings.closable&&r.settings.swipeToClose&&f>100){r.closeGallery();return}else r.$backdrop.css("opacity",1);if(r.outer.find(".lg-item").removeAttr("style"),b&&Math.abs(t.pageX-e.pageX)<5){var u=l(s.target);r.isPosterElement(u)&&r.LGel.trigger(w.posterClick)}r.swipeDirection=void 0}),setTimeout(function(){!r.outer.hasClass("lg-dragging")&&r.settings.mode!=="lg-slide"&&r.outer.removeClass("lg-slide")},this.settings.speed+100)},c.prototype.enableSwipe=function(){var t=this,e={},s={},r=!1,f=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(b){t.dragOrSwipeEnabled=!0;var O=t.getSlideItem(t.index);(l(b.target).hasClass("lg-item")||O.get().contains(b.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&b.touches.length===1&&(f=!0,t.touchAction="swipe",t.manageSwipeClass(),e={pageX:b.touches[0].pageX,pageY:b.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(b){f&&t.touchAction==="swipe"&&b.touches.length===1&&(s={pageX:b.touches[0].pageX,pageY:b.touches[0].pageY},t.touchMove(e,s,b),r=!0)}),this.$inner.on("touchend.lg",function(b){if(t.touchAction==="swipe"){if(r)r=!1,t.touchEnd(s,e,b);else if(f){var O=l(b.target);t.isPosterElement(O)&&t.LGel.trigger(w.posterClick)}t.touchAction=void 0,f=!1}}))},c.prototype.enableDrag=function(){var t=this,e={},s={},r=!1,f=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(b){t.dragOrSwipeEnabled=!0;var O=t.getSlideItem(t.index);(l(b.target).hasClass("lg-item")||O.get().contains(b.target))&&!t.outer.hasClass("lg-zoomed")&&!t.lgBusy&&(b.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:b.pageX,pageY:b.pageY},r=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(w.dragStart)))}),l(window).on("mousemove.lg.global"+this.lgId,function(b){r&&t.lgOpened&&(f=!0,s={pageX:b.pageX,pageY:b.pageY},t.touchMove(e,s),t.LGel.trigger(w.dragMove))}),l(window).on("mouseup.lg.global"+this.lgId,function(b){if(t.lgOpened){var O=l(b.target);
54f?(f=!1,t.touchEnd(s,e,b),t.LGel.trigger(w.dragEnd)):t.isPosterElement(O)&&t.LGel.trigger(w.posterClick),r&&(r=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},c.prototype.triggerPosterClick=function(){var t=this;this.$inner.on("click.lg",function(e){!t.dragOrSwipeEnabled&&t.isPosterElement(l(e.target))&&t.LGel.trigger(w.posterClick)})},c.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},c.prototype.goToNextSlide=function(t){var e=this,s=this.settings.loop;t&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(w.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):s?(this.index=0,this.LGel.trigger(w.beforeNextSlide,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout(function(){e.outer.removeClass("lg-right-end")},400)))},c.prototype.goToPrevSlide=function(t){var e=this,s=this.settings.loop;t&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(w.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):s?(this.index=this.galleryItems.length-1,this.LGel.trigger(w.beforePrevSlide,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout(function(){e.outer.removeClass("lg-left-end")},400)))},c.prototype.keyPress=function(){var t=this;l(window).on("keydown.lg.global"+this.lgId,function(e){t.lgOpened&&t.settings.escKey===!0&&e.keyCode===27&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(e.keyCode===37&&(e.preventDefault(),t.goToPrevSlide()),e.keyCode===39&&(e.preventDefault(),t.goToNextSlide()))})},c.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",function(){t.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){t.goToNextSlide()})},c.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),s=this.getElementById("lg-next");t+1===this.galleryItems.length?s.attr("disabled","disabled").addClass("disabled"):s.removeAttr("disabled").removeClass("disabled"),t===0?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},c.prototype.setTranslate=function(t,e,s,r,f){r===void 0&&(r=1),f===void 0&&(f=1),t.css("transform","translate3d("+e+"px, "+s+"px, 0px) scale3d("+r+", "+f+", 1)")},c.prototype.mousewheel=function(){var t=this,e=0;this.outer.on("wheel.lg",function(s){if(!(!s.deltaY||t.galleryItems.length<2)){s.preventDefault();var r=new Date().getTime();r-e<1e3||(e=r,s.deltaY>0?t.goToNextSlide():s.deltaY<0&&t.goToPrevSlide())}})},c.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")||t.hasClass("lg-img-rotate")},c.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||e&&e.contains(t.get())},c.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()})},c.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t],s=l(e);s.off("click.lgcustom-item-"+s.attr("data-lg-id"))}},c.prototype.trapFocus=function(){var t=this;this.$container.get().focus({preventScroll:!0}),l(window).on("keydown.lg.global"+this.lgId,function(e){if(t.lgOpened){var s=e.key==="Tab"||e.keyCode===9;if(s){var r=k.getFocusableElements(t.$container.get()),f=r[0],b=r[r.length-1];e.shiftKey?document.activeElement===f&&(b.focus(),e.preventDefault()):document.activeElement===b&&(f.focus(),e.preventDefault())}}})},c.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById("lg-close").on("click.lg",function(){t.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(s){var r=l(s.target);t.isSlideElement(r)?e=!0:e=!1}),this.outer.on("mousemove.lg",function(){e=!1}),this.outer.on("mouseup.lg",function(s){var r=l(s.target);t.isSlideElement(r)&&e&&(t.outer.hasClass("lg-dragging")||t.closeGallery())}))}},c.prototype.closeGallery=function(t){var e=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(w.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&l(window).scrollTop(this.prevScrollTop);var s=this.items[this.index],r;if(this.zoomFromOrigin&&s){var f=this.mediaContainerPosition,b=f.top,O=f.bottom,u=this.galleryItems[this.index],v=u.__slideVideoInfo,x=u.poster,M=k.getSize(s,this.outer,b+O,v&&x&&this.settings.videoMaxSize);r=k.getTransform(s,this.outer,b,O,M)}this.zoomFromOrigin&&r?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
54SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",r)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,l("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var L=this.zoomFromOrigin&&r?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){e.zoomFromOrigin&&r&&e.outer.removeClass("lg-zoom-from-image"),e.$container.removeClass("lg-show"),e.resetScrollBar(),e.$backdrop.removeAttr("style").css("transition-duration",e.settings.backdropDuration+"ms"),e.outer.removeClass("lg-closing "+e.settings.startClass),e.getSlideItem(e.index).removeClass("lg-start-end-progress"),e.$inner.empty(),e.lgOpened&&e.LGel.trigger(w.afterClose,{instance:e}),e.$container.get()&&e.$container.get().blur(),e.lgOpened=!1},L+100),L+100},c.prototype.initModules=function(){this.plugins.forEach(function(t){try{t.init()}catch(e){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},c.prototype.destroyModules=function(t){this.plugins.forEach(function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch(s){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},c.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),t?this.galleryItems=t:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(w.updateSlides)},c.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},c.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),l(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},c.prototype.destroy=function(){var t=this.closeGallery(!0);return t?setTimeout(this.destroyGallery.bind(this),t):this.destroyGallery(),t},c})();function z(c,t){return new j(c,t)}return z}));(function(i,p){typeof exports=="object"&&typeof module!="undefined"?module.exports=p():typeof define=="function"&&define.amd?define(p):(i=typeof globalThis!="undefined"?globalThis:i||self,i.lgThumbnail=p())})(this,(function(){"use strict";var i=function(){return i=Object.assign||function(a){for(var l,S=1,C=arguments.length;S<C;S++){l=arguments[S];for(var k in l)Object.prototype.hasOwnProperty.call(l,k)&&(a[k]=l[k])}return a},i.apply(this,arguments)},p={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHe
54ight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},w={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",autoplayStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},y=(function(){function m(a,l){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=a,this.$LG=l,this}return m.prototype.init=function(){this.settings=i(i({},p),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},m.prototype.build=function(){var a=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(l){var S=a.$LG(l.target);S.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(a.thumbClickable&&!a.core.lgBusy){var C=parseInt(S.attr("data-lg-item-id"));a.core.slide(C,!1,!0,!1)}},50)}),this.core.LGel.on(w.beforeSlide+".thumb",function(l){var S=l.detail.index;a.animateThumb(S)}),this.core.LGel.on(w.beforeOpen+".thumb",function(){a.thumbOuterWidth=a.core.outer.get().offsetWidth}),this.core.LGel.on(w.updateSlides+".thumb",function(){a.rebuildThumbnails()}),this.core.LGel.on(w.containerResize+".thumb",function(){a.core.lgOpened&&setTimeout(function(){a.thumbOuterWidth=a.core.outer.get().offsetWidth,a.animateThumb(a.core.index),a.thumbOuterWidth=a.core.outer.get().offsetWidth},50)})},m.prototype.setThumbMarkup=function(){var a="lg-thumb-outer ";this.settings.alignThumbnails&&(a+="lg-thumb-align-"+this.settings.alignThumbnails);var l='<div class="'+a+`"> 55 <div class="lg-thumb lg-group"> 56 </div> 57 </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(l):this.core.outer.append(l),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},m.prototype.enableThumbDrag=function(){var a=this,l={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},S=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(C){a.thumbTotalWidth>a.thumbOuterWidth&&(C.preventDefault(),l.cords.startX=C.pageX,l.startTime=new Date,a.thumbClickable=!1,S=!0,a.core.outer.get().scrollLeft+=1,a.core.outer.get().scrollLeft-=1,a.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(C){a.core.lgOpened&&S&&(l.cords.endX=C.pageX,l=a.onThumbTouchMove(l))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){a.core.lgOpened&&(l.isMoved?l=a.onThumbTouchEnd(l):a.thumbClickable=!0,S&&(S=!1,a.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},m.prototype.enableThumbSwipe=function(){var a=this,l={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(S){a.thumbTotalWidth>a.thumbOuterWidth&&(S.preventDefault(),l.cords.startX=S.targetTouches[0].pageX,a.thumbClickable=!1,l.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(S){a.thumbTotalWidth>a.thumbOuterWidth&&(S.preventDefault(),l.cords.endX=S.targetTouches[0].pageX,l=a.onThumbTouchMove(l))}),this.$lgThumb.on("touchend.lg",function(){l.isMoved?l=a.onThumbTouchEnd(l):a.thumbClickable=!0})},m.prototype.rebuildThumbnails=function(){var a=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){a.thumbTotalWidth=a.core.galleryItems.length*(a.settings.thumbWidth+a.settings.thumbMargin),a.$lgThumb.css("width",a.thumbTotalWidth+"px"),a.$lgThumb.empty(),a.setThumbItemHtml(a.core.galleryItems),a.animateThumb(a.core.index)},50),setTimeout(function(){a.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},m.prototype.setTranslate=function(a){this.$lgThumb.css("transform","translate3d(-"+a+"px, 0px, 0px)")},m.prototype.getPossibleTransformX=function(a){return a>this.thumbTotalWidth-this.thumbOuterWidth&&(a=this.thumbTotalWidth-this.thumbOuterWidth),a<0&&(a=0),a}
57,m.prototype.animateThumb=function(a){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var l=0;switch(this.settings.currentPagerPosition){case"left":l=0;break;case"middle":l=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":l=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*a-1-l,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},m.prototype.onThumbTouchMove=function(a){return a.newTranslateX=this.translateX,a.isMoved=!0,a.touchMoveTime=new Date().valueOf(),a.newTranslateX-=a.cords.endX-a.cords.startX,a.newTranslateX=this.getPossibleTransformX(a.newTranslateX),this.setTranslate(a.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),a},m.prototype.onThumbTouchEnd=function(a){a.isMoved=!1,a.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var l=a.endTime.valueOf()-a.startTime.valueOf(),S=a.cords.endX-a.cords.startX,C=Math.abs(S)/l;return C>.15&&a.endTime.valueOf()-a.touchMoveTime<30?(C+=1,C>2&&(C+=1),C=C+C*(Math.abs(S)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(C-1,2)+"settings"),S=S*C,this.translateX=this.getPossibleTransformX(this.translateX-S),this.setTranslate(this.translateX)):this.translateX=a.newTranslateX,Math.abs(a.cords.endX-a.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),a},m.prototype.getThumbHtml=function(a,l,S){var C=this.core.galleryItems[l].__slideVideoInfo||{},k;C.youtube&&this.settings.loadYouTubeThumbnail?k="//img.youtube.com/vi/"+C.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":k=a;var _=document.createElement("div");_.setAttribute("data-lg-item-id",l+""),_.className="lg-thumb-item "+(l===this.core.index?"active":""),_.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var j=document.createElement("img");return j.alt=S||"",j.setAttribute("data-lg-item-id",l+""),j.src=k,_.appendChild(j),_},m.prototype.setThumbItemHtml=function(a){for(var l=0;l<a.length;l++){var S=this.getThumbHtml(a[l].thumb,l,a[l].alt);this.$lgThumb.append(S)}},m.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},m.prototype.manageActiveClassOnSlideChange=function(){var a=this;this.core.LGel.on(w.beforeSlide+".thumb",function(l){var S=a.core.outer.find(".lg-thumb-item"),C=l.detail.index;S.removeClass("active"),S.eq(C).addClass("active")})},m.prototype.toggleThumbBar=function(){var a=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){a.core.outer.toggleClass("lg-components-open")}))},m.prototype.thumbKeyPress=function(){var a=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(l){!a.core.lgOpened||!a.settings.toggleThumb||(l.keyCode===38?(l.preventDefault(),a.core.outer.addClass("lg-components-open")):l.keyCode===40&&(l.preventDefault(),a.core.outer.removeClass("lg-components-open")))})},m.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},m})();return y}));function PollForm(i,p){var w=this;this.callbacks={onSubmit:function(){},onError:function(){},onSuccess:function(){}},this.callbacks=Object.assign(this.callbacks,p),i.addEventListener("submit",function(m){m.preventDefault(),w.callbacks.onSubmit();var a=new FormData(i);a.append("BHT",masterConfig.blackHoleToken),a.append("pId",document.querySelector("input[name=poll_id]").value),a.append("optId",document.querySelector("input[name=poll_option]:checked").value);var l=new XMLHttpRequest,S=masterConfig.baseUrl+"polls/submit/";return l.open("POST",S,!0),l.onreadystatechange=function(){l.readyState===4&&(l.status===200?w.callbacks.onSuccess():w.callbacks.onError())},l.send(a),!1});var y=i.querySelector("button[type=button]");y.addEventListener("click",function(m){var a=masterConfig.baseUrl+"polls/statistics/",l=ne
57w FormData(i);l.append("pId",document.querySelector("input[name=poll_id]").value);var S=new XMLHttpRequest;S.open("POST",a,!0),S.onreadystatechange=function(){if(S.readyState===4&&S.status===200){var C=JSON.parse(S.responseText),k=ejs.render(document.querySelector("#poll-statistics").innerHTML,{data:C,i18n:window.i18n});k=k.replace(/<script/g,"<div"),k=k.replace(/type="text\/plain"/g,""),document.querySelector("#poll-output").innerHTML=k}},S.send(l)})}(function(i,p){String.prototype.escape=function(){return this.replace(/&[^a][^m][^p][^;]/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")},String.prototype.unescapeHtml=function(){var y=p.createElement("div");y.innerHTML=this;var m=y.childNodes[0].nodeValue;return y.removeChild(y.firstChild),m},i.setInterval(function(){i.currentTime.setTime(i.currentTime.getTime()+1e3)},1e3),i.v2Storage={prefix:"_sv2_",get:function(y,m){m=typeof m!="undefined"?m:!1;var a=i.localStorage.getItem(this.prefix+y);return a===null?m:(data=JSON.parse(a),"t"in data&&new Date(data.t)>=new Date?data.v:m)},hasItem:function(y){var m=i.localStorage.getItem(this.prefix+y);return m===null?defaultValue:(data=JSON.parse(m),"t"in data&&new Date(data.t)>=new Date)},set:function(y,m,a){a=typeof a!="undefined"?a:86400;var l=new Date;l.setTime(l.getTime()+a*1e3),i.localStorage.setItem(this.prefix+y,JSON.stringify({t:l.toString(),v:m}))}},i.appendHit=function(y,m){y in i.modelHits||(i.modelHits[y]=[]),i.modelHits[y].push(m)},i.tra=function(y,m,a){return typeof m=="undefined"&&(m=[]),typeof a=="undefined"&&(a=[]),typeof i.i18n[y]=="undefined"?"":(typeof a.escape!="undefined"&&a.escape===!0&&(m=m.map(function(l){return l.escape()})),vsprintf(i.i18n[y],m))};var w=function(){var y="frontI18n:"+masterConfig.lang+":"+masterConfig.v,m=i.v2Storage.get(y,!1);if(m===!1){var a=masterConfig.baseUrl+"statics/i18n/?v="+masterConfig.v,l=new XMLHttpRequest;l.open("GET",a,!1),l.onreadystatechange=function(){l.readyState===4&&l.status===200&&(m=JSON.parse(l.responseText),i.v2Storage.set(y,m),i.i18n=m)},l.send()}else i.i18n=m};w(),"Clients"in i&&Clients.sync(function(y){},function(){}),i.showAdvPanel=function(){for(var y=p.querySelectorAll(".faketabliqholder"),m=0;m<y.length;m++){var a=y[m].dataset.adHelperSizes.split("x");y[m].innerHTML="<strong>"+y[m].dataset.adHelperPosname+"<br />"+a[0]+" x "+a[1]+"<strong>",y[m].style.width=a[0]+"px",y[m].style.height=a[1]+"px",y[m].style.background="radial-gradient(#00e30e, #600, #300)",y[m].style.position="relative",y[m].style.direction="ltr",y[m].style.fontFamily='"Courier New", Courier, monospace',y[m].style.fontSize="12px";for(var l=y[m].querySelectorAll("strong"),S=0;S<l.length;S++)l[S].style.fontFamily='"Courier New", Courier, monospace',l[S].style.fontSize="12px",l[S].style.color="#fff",l[S].style.display="block",l[S].style.position="absolute",l[S].style.top="8px",l[S].style.left="8px"}},i.isAdverHolderMode&&i.addEventListener("load",function(){i.showAdvPanel()})})(window,document);function PrayTimes(i){var p={imsak:"Imsak",fajr:"Fajr",sunrise:"Sunrise",dhuhr:"Dhuhr",asr:"Asr",sunset:"Sunset",maghrib:"Maghrib",isha:"Isha",midnight:"Midnight"},w={MWL:{name:"Muslim World League",params:{fajr:18,isha:17}},ISNA:{name:"Islamic Society of North America (ISNA)",params:{fajr:15,isha:15}},Egypt:{name:"Egyptian General Authority of Survey",params:{fajr:19.5,isha:17.5}},Makkah:{name:"Umm Al-Qura University, Makkah",params:{fajr:18.5,isha:"90 min"}},Karachi:{name:"University of Islamic Sciences, Karachi",params:{fajr:18,isha:18}},Tehran:{name:"Institute of Geophysics, University of Tehran",params:{fajr:17.7,isha:14,maghrib:4.5,midnight:"Jafari"}},Jafari:{name:"Shia Ithna-Ashari, Leva Institute, Qum",params:{fajr:16,isha:14,maghrib:4,midnight:"Jafari"}}},y={maghrib:"0 min",midnight:"Standard"},m="MWL",a={imsak:"10 min",dhuhr:"0 min",asr:"Standard",highLats:"NightMiddle"},l="24h",S=["am","pm"],C="-----",k=1,_={},j,z,c,t,e,s=y;for(var r in w){var b=w[r].params;for(var f in s)typeof b[f]=="undefined"&&(b[f]=s[f])}m=w[i]?i:m;var b=w[m].params;for(var O in b)a[O]=b[O];for(var r in p)_[r]=0;return{setMethod:function(u){w[u]&&(this.adjust(w[u].params),m=u)}
57,adjust:function(u){for(var v in u)a[v]=u[v]},tune:function(u){for(var v in u)_[v]=u[v]},getMethod:function(){return m},getSetting:function(){return a},getOffsets:function(){return _},getDefaults:function(){return w},getTimes:function(u,v,x,M,L){return j=1*v[0],z=1*v[1],c=v[2]?1*v[2]:0,l=L||l,u.constructor===Date&&(u=[u.getFullYear(),u.getMonth()+1,u.getDate()]),(typeof x=="undefined"||x=="auto")&&(x=this.getTimeZone(u)),(typeof M=="undefined"||M=="auto")&&(M=this.getDst(u)),t=1*x+(1*M?1:0),e=this.julian(u[0],u[1],u[2])-z/360,this.computeTimes()},getFormattedTime:function(u,v,x){if(isNaN(u))return C;if(v=="Float")return u;x=x||S,u=DMath.fixHour(u+.5/60);var M=Math.floor(u),L=Math.floor((u-M)*60),P=v=="12h"?x[M<12?0:1]:"",G=v=="24h"?this.twoDigitsFormat(M):(M+12-1)%12+1;return G+":"+this.twoDigitsFormat(L)+(P?" "+P:"")},midDay:function(u){var v=this.sunPosition(e+u).equation,x=DMath.fixHour(12-v);return x},sunAngleTime:function(u,v,x){var M=this.sunPosition(e+v).declination,L=this.midDay(v),P=1/15*DMath.arccos((-DMath.sin(u)-DMath.sin(M)*DMath.sin(j))/(DMath.cos(M)*DMath.cos(j)));return L+(x=="ccw"?-P:P)},asrTime:function(u,v){var x=this.sunPosition(e+v).declination,M=-DMath.arccot(u+DMath.tan(Math.abs(j-x)));return this.sunAngleTime(M,v)},sunPosition:function(u){var v=u-2451545,x=DMath.fixAngle(357.529+.98560028*v),M=DMath.fixAngle(280.459+.98564736*v),L=DMath.fixAngle(M+1.915*DMath.sin(x)+.02*DMath.sin(2*x)),P=1.00014-.01671*DMath.cos(x)-14e-5*DMath.cos(2*x),G=23.439-36e-8*v,N=DMath.arctan2(DMath.cos(G)*DMath.sin(L),DMath.cos(L))/15,Q=M/15-DMath.fixHour(N),W=DMath.arcsin(DMath.sin(G)*DMath.sin(L));return{declination:W,equation:Q}},julian:function(u,v,x){v<=2&&(u-=1,v+=12);var M=Math.floor(u/100),L=2-M+Math.floor(M/4),P=Math.floor(365.25*(u+4716))+Math.floor(30.6001*(v+1))+x+L-1524.5;return P},computePrayerTimes:function(u){u=this.dayPortion(u);var v=a,x=this.sunAngleTime(this.eval(v.imsak),u.imsak,"ccw"),M=this.sunAngleTime(this.eval(v.fajr),u.fajr,"ccw"),L=this.sunAngleTime(this.riseSetAngle(),u.sunrise,"ccw"),P=this.midDay(u.dhuhr),G=this.asrTime(this.asrFactor(v.asr),u.asr),N=this.sunAngleTime(this.riseSetAngle(),u.sunset),Q=this.sunAngleTime(this.eval(v.maghrib),u.maghrib),W=this.sunAngleTime(this.eval(v.isha),u.isha);return{imsak:x,fajr:M,sunrise:L,dhuhr:P,asr:G,sunset:N,maghrib:Q,isha:W}},computeTimes:function(){for(var u={imsak:5,fajr:5,sunrise:6,dhuhr:12,asr:13,sunset:18,maghrib:18,isha:18},v=1;v<=k;v++)u=this.computePrayerTimes(u);return u=this.adjustTimes(u),u.midnight=a.midnight=="Jafari"?u.sunset+this.timeDiff(u.sunset,u.fajr)/2:u.sunset+this.timeDiff(u.sunset,u.sunrise)/2,u=this.tuneTimes(u),this.modifyFormats(u)},adjustTimes:function(u){var v=a;for(var x in u)u[x]+=t-z/15;return v.highLats!="None"&&(u=this.adjustHighLats(u)),this.isMin(v.imsak)&&(u.imsak=u.fajr-this.eval(v.imsak)/60),this.isMin(v.maghrib)&&(u.maghrib=u.sunset+this.eval(v.maghrib)/60),this.isMin(v.isha)&&(u.isha=u.maghrib+this.eval(v.isha)/60),u.dhuhr+=this.eval(v.dhuhr)/60,u},asrFactor:function(u){var v={Standard:1,Hanafi:2}[u];return v||this.eval(u)},riseSetAngle:function(){var u=.0347*Math.sqrt(c);return .833+u},tuneTimes:function(u){for(var v in u)u[v]+=_[v]/60;return u},modifyFormats:function(u){for(var v in u)u[v]=this.getFormattedTime(u[v],l);return u},adjustHighLats:function(u){var v=a,x=this.timeDiff(u.sunset,u.sunrise);return u.imsak=this.adjustHLTime(u.imsak,u.sunrise,this.eval(v.imsak),x,"ccw"),u.fajr=this.adjustHLTime(u.fajr,u.sunrise,this.eval(v.fajr),x,"ccw"),u.isha=this.adjustHLTime(u.isha,u.sunset,this.eval(v.isha),x),u.maghrib=this.adjustHLTime(u.maghrib,u.sunset,this.eval(v.maghrib),x),u},adjustHLTime:function(u,v,x,M,L){var P=this.nightPortion(x,M),G=L=="ccw"?this.timeDiff(u,v):this.timeDiff(v,u);return(isNaN(u)||G>P)&&(u=v+(L=="ccw"?-P:P)),u},nightPortion:function(u,v){var x=a.highLats,M=1/2;return x=="AngleBased"&&(M=1/60*u),x=="OneSeventh"&&(M=1/7),M*v},dayPortion:function(u){for(var v in u)u[v]/=24;return u},getTimeZone:function(u){var v=u[0],x=this.gmtOffset([v,0,1]),M=this.gmtOffset([v,6,1]);return Math.min(x,M)},getDst:function(u){return 1*(this.gmtOffset(u)!=this.getTimeZone(u))},gmtOffset:function(u){var v=new Date(u[0],u[1]-1,u[2],12,0,0,0),x=v.toGMTString(),M=new Date(x.substring(0,x.lastIndexOf(" ")-1)),L=(v-M)/(1e3*60*60);return L},eval:function(u){return 1*(u+"").split(/[^0-9.+-]/)[0]},isMin:function(u){return(u+"").indexOf("min")!=-1},timeDiff:function(u,v){return DMath.fixHour(v-u)},twoDigitsFormat:function(u){return u<10?"0"+u:u}}}var DMath={dtr:function(i){return i*Math.PI/180},rtd:function(i){return i*180/Math.PI},sin:function(i){return Math.sin(this.dtr(i))},cos:function(i){return Math.cos(this.dtr(i))},tan:function(i){return Math.tan(this.dtr(i))},arcsin:function(i){return this.rtd(Math.asin(i))},arccos:function(i){return this.rtd(Math.acos(i))},arctan:function(i){return this.rtd(Math.atan(i))},arccot:function(i){return this.rtd(Math.atan(1/i))},arctan2:function(i,p){return this.rtd(Math.atan2(i,p))},fixAngle:function(i){return this.fix(i,360)},fixHour:function(i){return this.fix(i,24)},fix:function(i,p){return i=i-p*Math.floor(i/p),i<0?i+p:i}},prayTimes=new PrayTimes;Prayer={getTimes:function(i,p){typeof p=="undefined"&&(p=8),$(i).setTemplateURL("/templates/prayerTimes.thtml?v="+masterConfig.v),$(i).processTemplate({times:Prayer.getTimesObject(Prayer.getGeoLocation(p)),i18n:window.i18n,masterConfig:window.masterConfig})},getTimesObject:function(i){var p=new PrayTimes("Jafari");return p.getTimes(window.currentTime,[i.Latitude,i.Longitude],3.5)},getGeoLocation:function(i){var p={};
57switch(i=parseInt(i),i){case 1:p={Latitude:"38.052",Longitude:"46.28",Altitude:"1180"};break;case 2:p={Latitude:"37.5296",Longitude:"45.0465",Altitude:"1180"};break;case 3:p={Latitude:"38.24",Longitude:"48.29",Altitude:"1180"};break;case 4:p={Latitude:"32.65",Longitude:"51.67",Altitude:"1180"};break;case 5:p={Latitude:"35.48",Longitude:"50.57",Altitude:"1180"};break;case 6:p={Latitude:"33.63",Longitude:"46.45",Altitude:"1180"};break;case 7:p={Latitude:"28.92",Longitude:"50.83",Altitude:"1180"};break;case 8:p={Latitude:"35.7",Longitude:"51.4",Altitude:"1180"};break;case 9:p={Latitude:"32.35",Longitude:"50.82",Altitude:"1180"};break;case 10:p={Latitude:"32.84",Longitude:"59.29",Altitude:"1180"};break;case 11:p={Latitude:"36.19",Longitude:"59.37",Altitude:"1180"};break;case 12:p={Latitude:"37.45",Longitude:"57.32",Altitude:"2222"};break;case 13:p={Latitude:"31.24",Longitude:"48.49",Altitude:"1180"};break;case 14:p={Latitude:"36.40",Longitude:"48.31",Altitude:"1180"};break;case 15:p={Latitude:"35.33",Longitude:"53.22",Altitude:"1180"};break;case 16:p={Latitude:"29.45",Longitude:"60.85",Altitude:"1180"};break;case 17:p={Latitude:"29.39",Longitude:"52.35",Altitude:"1180"};break;case 18:p={Latitude:"36.15",Longitude:"50.01",Altitude:"1180"};break;case 19:p={Latitude:"34.49",Longitude:"50.56",Altitude:"1180"};break;case 20:p={Latitude:"35.18",Longitude:"47.06",Altitude:"1180"};break;case 21:p={Latitude:"30.03",Longitude:"57.01",Altitude:"1180"};break;case 22:p={Latitude:"34.23",Longitude:"47.03",Altitude:"1180"};break;case 23:p={Latitude:"39.25",Longitude:"51.36",Altitude:"1180"};break;case 24:p={Latitude:"36.86",Longitude:"54.44",Altitude:"1180"};break;case 25:p={Latitude:"37.18",Longitude:"49.36",Altitude:"1180"};break;case 26:p={Latitude:"33.46",Longitude:"48.35",Altitude:"1180"};break;case 27:p={Latitude:"36.33",Longitude:"53.06",Altitude:"1180"};break;case 28:p={Latitude:"34.06",Longitude:"49.41",Altitude:"1180"};break;case 29:p={Latitude:"27.17",Longitude:"56.26",Altitude:"1180"};break;case 30:p={Latitude:"36.46",Longitude:"48.34",Altitude:"1180"};break;case 31:p={Latitude:"32",Longitude:"54.4",Altitude:"1180"};break;default:p={Latitude:"35.696111",Longitude:"51.423055",Altitude:"1180"};break}return p}},window.jQuery&&!window.jQuery.createTemplate&&(function(jQuery){var Template=function(i,p,w){this._tree=[],this._param={},this._includes=null,this._templates={},this._templates_code={},this.settings=jQuery.extend({disallow_functions:!1,filter_data:!0,filter_params:!1,runnable_functions:!1,clone_data:!0,clone_params:!0},w),this.f_cloneData=this.settings.f_cloneData!==void 0?this.settings.f_cloneData:TemplateUtils.cloneData,this.f_escapeString=this.settings.f_escapeString!==void 0?this.settings.f_escapeString:TemplateUtils.escapeHTML,this.f_parseJSON=this.settings.f_parseJSON!==void 0?this.settings.f_parseJSON:this.settings.disallow_functions?jQuery.parseJSON:TemplateUtils.parseJSON,i!=null&&(this.splitTemplates(i,p),i&&this.setTemplate(this._templates_code.MAIN,p,this.settings),this._templates_code=null)};Template.version="0.8.4",Template.DEBUG_MODE=!1,Template.FOREACH_LOOP_LIMIT=1e4,Template.guid=0,Template.prototype.splitTemplates=function(i,p){for(var w=/\{#template *(\w+) *(.*?) *\}/g,y,m,a,l=null,S=[],C;(y=w.exec(i))!==null;){if(l=w.lastIndex,m=y[1],a=i.indexOf("{#/template "+m+"}",l),a===-1)throw new Error('jTemplates: Template "'+m+'" is not closed.');this._templates_code[m]=i.substring(l,a),S[m]=TemplateUtils.optionToObject(y[2])}if(l===null){this._templates_code.MAIN=i;return}for(C in this._templates_code)C!=="MAIN"&&(this._templates[C]=new Template);for(C in this._templates_code)C!=="MAIN"&&(this._templates[C].setTemplate(this._templates_code[C],jQuery.extend({},p||{},this._templates||{}),jQuery.extend({},this.settings,S[C])),this._templates_code[C]=null)},Template.prototype.setTemplate=function(i,p,w){if(i==null){this._tree.push(new TextNode("",1,this));return}i=i.replace(/[\n\r]/g,""),i=i.replace(/\{\*.*?\*\}/g,""),this._includes=jQuery.extend({},this._templates||{},p||{}),this.settings=new Object(w);var y=this._tree,m=i.match(/\{#.*?\}/g),a=0,l=0,S,C=0,k,_;
57for(k=0,_=m?m.length:0;k<_;++k){var j=m[k];if(C){if(l=i.indexOf("{#/literal}",a),l===-1)throw new Error("jTemplates: No end of literal.");for(l>a&&y.push(new TextNode(i.substring(a,l),1,this)),a=l+11,C=0;k<_&&m[k]!=="{#/literal}";)k++;continue}l=i.indexOf(j,a),l>a&&y.push(new TextNode(i.substring(a,l),C,this)),j.match(/\{#([\w\/]+).*?\}/);var z=RegExp.$1;switch(z){case"elseif":y.addCond(j);break;case"if":S=new opIF(y,this),S.addCond(j),y.push(S),y=S;break;case"else":y.switchToElse();break;case"/if":case"/for":case"/foreach":y=y.getParent();break;case"foreach":S=new opFOREACH(j,y,this),y.push(S),y=S;break;case"for":S=opFORFactory(j,y,this),y.push(S),y=S;break;case"continue":case"break":y.push(new JTException(z));break;case"include":y.push(new Include(j,this._includes,this));break;case"param":y.push(new UserParam(j,this));break;case"var":y.push(new UserVariable(j,this));break;case"cycle":y.push(new Cycle(j));break;case"ldelim":y.push(new TextNode("{",1,this));break;case"rdelim":y.push(new TextNode("}",1,this));break;case"literal":C=1;break;case"/literal":if(Template.DEBUG_MODE)throw new Error("jTemplates: Missing begin of literal.");break;default:if(Template.DEBUG_MODE)throw new Error("jTemplates: unknown tag: "+z+".")}a=l+j.length}i.length>a&&y.push(new TextNode(i.substr(a),C,this))},Template.prototype.get=function(i,p,w,y){++y,y==1&&w!=null&&jQuery.removeData(w,"jTemplatesRef");var m=i,a,l="";this.settings.clone_data&&(m=this.f_cloneData(i,{escapeData:this.settings.filter_data&&y==1,noFunc:this.settings.disallow_functions},this.f_escapeString)),this.settings.clone_params?a=jQuery.extend({},this.f_cloneData(this._param,{escapeData:this.settings.filter_params,noFunc:!1},this.f_escapeString),this.f_cloneData(p,{escapeData:this.settings.filter_params&&y==1,noFunc:!1},this.f_escapeString)):a=jQuery.extend({},this._param,p);for(var S=0,C=this._tree.length;S<C;++S)l+=this._tree[S].get(m,a,w,y);return this.EvalObj=null,--y,l},Template.prototype.getBin=function(){return this.EvalObj==null&&(this.EvalObj=new EvalClass(this)),this.EvalObj},Template.prototype.setParam=function(i,p){this._param[i]=p},TemplateUtils=function(){},TemplateUtils.escapeHTML=function(i){return i.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")},TemplateUtils.cloneData=function(i,p,w){if(i==null)return i;switch(i.constructor){case Object:var y={};for(var m in i)y[m]=TemplateUtils.cloneData(i[m],p,w);return p.noFunc||i.hasOwnProperty("toString")&&(y.toString=i.toString),y;case Array:for(var a=[],m=0,l=i.length;m<l;++m)a[m]=TemplateUtils.cloneData(i[m],p,w);return a;case String:return p.escapeData?w(i):i;case Function:if(p.noFunc){if(Template.DEBUG_MODE)throw new Error("jTemplates: Functions are not allowed.");return}}return i},TemplateUtils.optionToObject=function(i){if(i==null)return{};var p=i.split(/[= ]/);p[0]===""&&p.shift();for(var w={},y=0,m=p.length;y<m;y+=2)w[p[y]]=p[y+1];return w},TemplateUtils.parseJSON=function(i){if(typeof i!="string"||!i)return null;try{return new Function("return "+jQuery.trim(i))()}catch(p){if(Template.DEBUG_MODE)throw new Error("jTemplates: Invalid JSON");return{}}},TemplateUtils.ReturnRefValue=function(i,p,w){for(;i!=null;){var y=jQuery.data(i,"jTemplatesRef");if(y!=null&&y.guid==p&&y.d[w]!=null)return y.d[w];i=i.parentNode}return null};var TextNode=function(i,p,w){this._value=i,this._literalMode=p,this._template=w};TextNode.prototype.get=function(i,p,w,y){if(this._literalMode)return this._value;for(var m=this._value,a="",l=-1,S=0,C=-1,k=0;;){var _=m.indexOf("{",l+1),j=m.indexOf("}",l+1);if(_<0&&j<0)break;_!=-1&&_<j||j==-1?(l=_,++S==1&&(C=_,a+=m.substring(k,l),k=-1)):(l=j,--S===0?C>=0&&(a+=this._template.getBin().evaluateContent(i,p,w,m.substring(C,j+1)),C=-1,k=l+1):S<0&&(S=0))}return k>-1&&(a+=m.substr(k)),a},EvalClass=function(i){this.__templ=i},EvalClass.prototype.evaluateContent=function($T,$P,$Q,__value){try{var result=eval(__value);if(jQuery.isFunction(result)){if(this.__templ.settings.disallow_functions||!this.__templ.settings.runnable_functions)return"";result=result($T,$P,$Q)}return result===void 0?"":String(result)}catch(i){if(Template.DEBUG_MODE)throw i instanceof JTException&&(i.type="subtemplate"),i;return""}},EvalClass.prototype.evaluate=function($T,$P,$Q,__value){return eval(__value)};var opIF=function(i,p){this._parent=i,this._templ=p,this._cond=[],this._tree=[],this._curr=null};
57opIF.prototype.push=function(i){this._curr.push(i)},opIF.prototype.getParent=function(){return this._parent},opIF.prototype.addCond=function(i){i.match(/\{#(?:else)*if (.*?)\}/),this._cond.push(RegExp.$1),this._curr=[],this._tree.push(this._curr)},opIF.prototype.switchToElse=function(){this._cond.push(!0),this._curr=[],this._tree.push(this._curr)},opIF.prototype.get=function(i,p,w,y){var m="";try{for(var a=0,l=this._cond.length;a<l;++a)if(this._templ.getBin().evaluate(i,p,w,this._cond[a])){for(var S=this._tree[a],C=0,k=S.length;C<k;++C)m+=S[C].get(i,p,w,y);return m}}catch(_){if(Template.DEBUG_MODE||_ instanceof JTException)throw _}return m},opFORFactory=function(i,p,w){if(i.match(/\{#for (\w+?) *= *(\S+?) +to +(\S+?) *(?:step=(\S+?))*\}/)){var y=new opFOREACH(null,p,w);return y._name=RegExp.$1,y._option={begin:RegExp.$2||0,end:RegExp.$3||-1,step:RegExp.$4||1,extData:"$T"},y._runFunc=(function(m){return m}),y}else throw new Error('jTemplates: Operator failed "find": '+i)};var opFOREACH=function(i,p,w){this._parent=p,this._template=w,i!=null&&(i.match(/\{#foreach +(.+?) +as +(\w+?)( .+)*\}/),this._arg=RegExp.$1,this._name=RegExp.$2,this._option=RegExp.$3||null,this._option=TemplateUtils.optionToObject(this._option)),this._onTrue=[],this._onFalse=[],this._currentState=this._onTrue};opFOREACH.prototype.push=function(i){this._currentState.push(i)},opFOREACH.prototype.getParent=function(){return this._parent},opFOREACH.prototype.switchToElse=function(){this._currentState=this._onFalse},opFOREACH.prototype.get=function(i,p,w,y){try{var m=this._runFunc===void 0?this._template.getBin().evaluate(i,p,w,this._arg):this._runFunc;if(m===$)throw new Error("jTemplate: Variable '$' cannot be used as loop-function");var a=[],l=typeof m;if(l=="object"){var S=[];jQuery.each(m,function(v,x){a.push(v),S.push(x)}),m=S}var C=this._option.extData!==void 0?this._template.getBin().evaluate(i,p,w,this._option.extData):i!=null?i:{};C==null&&(C={});var k=Number(this._template.getBin().evaluate(i,p,w,this._option.begin)||0),_,j=Number(this._template.getBin().evaluate(i,p,w,this._option.step)||1);l!="function"?_=m.length:this._option.end===void 0||this._option.end===null?_=Number.MAX_VALUE:_=Number(this._template.getBin().evaluate(i,p,w,this._option.end))+(j>0?1:-1);var z="",c,t;if(this._option.count){var e=k+Number(this._template.getBin().evaluate(i,p,w,this._option.count));_=e>_?_:e}if(_>k&&j>0||_<k&&j<0)for(var s=0,r=l!="function"?Math.ceil((_-k)/j):void 0,f,b,O=0;j>0?k<_:k>_;k+=j,++s,++O){if(Template.DEBUG_MODE&&O>Template.FOREACH_LOOP_LIMIT)throw new Error("jTemplate: Foreach loop limit was exceed");if(f=a[k],l!="function")b=m[k];else if(b=m(k),b==null)break;if(!(typeof b=="function"&&(this._template.settings.disallow_functions||!this._template.settings.runnable_functions))&&!(l=="object"&&f in Object&&b===Object[f])){var u=C[this._name];for(C[this._name]=b,C[this._name+"$index"]=k,C[this._name+"$iteration"]=s,C[this._name+"$first"]=s===0,C[this._name+"$last"]=k+j>=_,C[this._name+"$total"]=r,C[this._name+"$key"]=f!==void 0&&f.constructor==String?this._template.f_escapeString(f):f,C[this._name+"$typeof"]=typeof b,c=0,t=this._onTrue.length;c<t;++c)try{z+=this._onTrue[c].get(C,p,w,y)}catch(v){if(v instanceof JTException)switch(v.type){case"continue":c=t;break;case"break":c=t,k=_;break;default:throw v}else throw v}delete C[this._name+"$index"],delete C[this._name+"$iteration"],delete C[this._name+"$first"],delete C[this._name+"$last"],delete C[this._name+"$total"],delete C[this._name+"$key"],delete C[this._name+"$typeof"],delete C[this._name],C[this._name]=u}}else for(c=0,t=this._onFalse.length;c<t;++c)z+=this._onFalse[c].get(i,p,w,y);return z}catch(v){if(Template.DEBUG_MODE||v instanceof JTException)throw v;return""}};var JTException=function(i){this.type=i};JTException.prototype=Error,JTException.prototype.get=function(i){throw this};var Include=function(i,p,w){if(i.match(/\{#include (.*?)(?: root=(.*?))?\}/),this._template=p[RegExp.$1],this._template==null&&Template.DEBUG_MODE)throw new Error("jTemplates: Cannot find include: "+RegExp.$1);this._root=RegExp.$2,this._mainTempl=w};Include.prototype.get=function(i,p,w,y){try{return this._template.get(this._mainTempl.getBin().evaluate(i,p,w,this._root),p,w,y)}catch(m){if(Template.DEBUG_MODE||m instanceof JTException)throw m}return""};var UserParam=function(i,p){i.match(/\{#param name=(\w*?) value=(.*?)\}/),this._name=RegExp.$1,this._value=RegExp.$2,this._templ=p};UserParam.prototype.get=function(i,p,w,y){try{p[this._name]=this._templ.getBin().evaluate(i,p,w,this._value)}catch(m){if(Template.DEBUG_MODE||m instanceof JTException)throw m;p[this._name]=void 0}return""};var UserVariable=function(i,p){i.match(/\{#var (.*?)\}/),this._id=RegExp.$1,this._templ=p};UserVariable.prototype.get=function(i,p,w,y){try{if(w==null)return"";var m=this._templ.getBin().evaluate(i,p,w,this._id),a=jQuery.data(w,"jTemplatesRef");a==null&&(a={guid:++Template.guid,d:[]});var l=a.d.push(m);return jQuery.data(w,"jTemplatesRef",a),"(TemplateUtils.ReturnRefValue(this,"+a.guid+","+(l-1)+"))"}catch(S){if(Template.DEBUG_MODE||S instanceof JTException)throw S;return""}};var Cycle=function(oper){if(oper.match(/\{#cycle values=(.*?)\}/),this._values=eval(RegExp.$1),this._length=this._values.length,this._length<=0)throw new Error("jTemplates: no elements for cycle");this._index=0,this._lastSessionID=-1};Cycle.prototype.get=function(i,p,w,y){var m=jQuery.data(w,"jTemplateSID");m!=this._lastSessionID&&(this._lastSessionID=m,this._index=0);var a=this._index++%this._length;return this._values[a]},jQuery.fn.setTemplate=function(i,p,w){return jQuery(this).each(function(){var y=i&&i.constructor==Template?i:new Template(i,p,w);jQuery.data(this,"jTemplate",y),jQuery.data(this,"jTemplateSID",0)})},jQuery.fn.setTemplateURL=function(i,p,w){var y=jQuery.ajax({url:i,dataType:"text",async:!1,type:"GET"}).responseText;return jQuery(this).setTemplate(y,p,w)},jQuery.fn.setTemplateElement=function(i,p,w){var y=jQuery("#"+i).val();return y==null&&(y=jQuery("#"+i).html(),y=y.replace(/</g,"<").replace(/>/g,">")),y=jQuery.trim(y),y=y.replace(/^<\!\[CDATA\[([\s\S]*)\]\]>$/im,"$1"),y=y.replace(/^<\!--([\s\S]*)-->$/im,"$1"),jQuery(this).setTemplate(y,p,w)},jQuery.fn.hasTemplate=function(){var i=0;return jQuery(this).each(function(){jQuery.getTemplate(this)&&++i}),i},jQuery.fn.removeTemplate=function(){return jQuery(this).processTemplateStop(),jQuery(this).each(function(){jQuery.removeData(this,"jTemplate")})},jQuery.fn.setParam=function(i,p){return jQuery(this).each(function(){var w=jQuery.getTemplate(this);if(w!=null)w.setParam(i,p);else if(Template.DEBUG_MODE)throw new Error("jTemplates: Template is not defined.")})},jQuery.fn.processTemplate=function(i,p,w){return jQuery(this).each(function(){var y=jQuery.getTemplate(this);if(y!=null)w!=null&&w.StrToJSON&&(i=y.f_parseJSON(i)),jQuery.data(this,"jTemplateSID",jQuery.data(this,"jTemplateSID")+1),jQuery(this).html(y.get(i,p,this,0));else if(Template.DEBUG_MODE)throw new Error("jTemplates: Template is not defined.")})},jQuery.fn.processTemplateURL=function(i,p,w){var y=this,m=jQuery.extend({cache:!1},jQuery.ajaxSettings);return m=jQuery.extend(m,w),jQuery.ajax({url:i,type:m.type,data:m.data,dataFilter:m.dataFilter,async:m.async,headers:m.headers,cache:m.cache,timeout:m.timeout,dataType:"text",success:function(a){var l=jQuery(y).processTemplate(a,p,{StrToJSON:!0});m.on_success&&m.on_success(l)},error:m.on_error,complete:m.on_complete}),this};var Updater=function(i,p,w,y,m,a){this._url=i,this._param=p,this._interval=w,this._args=y,this.objs=m,this.timer=null,this._options=a||{};var l=this;jQuery(m).each(function(){jQuery.data(this,"jTemplateUpdater",l)}),this.run()};Updater.prototype.run=function(){if(this.objs=jQuery.grep(this.objs,function(p){return jQuery.contains(document.body,p.jquery?p[0]:p)}),this.objs.length!==0){var i=this;jQuery.ajax({url:this._url,dataType:"text",data:this._args,cache:!1,headers:i._options.headers,success:function(p){try{var w=jQuery(i.objs).processTemplate(p,i._param,{StrToJSON:!0});i._options.on_success&&i._options.on_success(w)}catch(y){}}}),this.timer=setTimeout(function(){i.run()},this._interval)}},jQuery.fn.processTemplateStart=function(i,p,w,y,m){return new Updater(i,p,w,y,this,m)},jQuery.fn.processTemplateStop=function(){return jQuery(this).each(function(){var i=jQuery.data(this,"jTemplateUpdater");if(i!=null){var p=this;i.objs=jQuery.grep(i.objs,function(w){return w!=p}),jQuery.removeData(this,"jTemplateUpdater")}})},jQuery.extend({createTemplate:function(i,p,w){return new Template(i,p,w)},createTemplateURL:function(i,p,w){var y=jQuery.ajax({url:i,dataType:"text",async:!1,type:"GET"}).responseText;return new Template(y,p,w)},getTemplate:function(i){return jQuery.data(i,"jTemplate")},processTemplateToText:function(i,p,w){return i.get(p,w,void 0,0)},jTemplatesDebugMode:function(i){Template.DEBUG_MODE=i}})})(jQuery); 58//# sourceMappingURL=frameworks.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.