1/* all.min.js - Tiger skin scripts */ 2var VER='8.0.4',DEBUG=false,LOCALE='en-US'; 3;Texts = {and:'and',from:'From {0}',tooLong:'This is too long to send directly to the email application.',to:'To',subject:'Subject',copyInstructions:'The text has been copied to your clipboard. Now switch to the email application (or webmail) and paste it. Move "To" and "Subject" into the appropriate boxes!',okButton:'OK',warning:'Warning',copiedToClipboard:'Copied to clipboard!',continueBrowsing:'Continue browsing',removeAll:'Remove all',feedbackButtonExplanation:'Try "Send" if you have an email application installed, use "Copy" for webmail!',removeAllItems:'Remove all items?',yes:'Yes',no:'No',rating:'Rating',print:'Print',printLabel:'Print out this photo on your printer',download:'Download',addCart:'Add to Cart',shopLabel:'Add this item to the shopping cart',viewCart:'View Cart',viewCartLabel:'View shopping cart',fotomotoBtn:'Buy / Share',fotomotoTooltip:'Buy prints or digital files, share, send free eCards',metaBtn:'Photo data',metaLabel:'Display photographic (Exif/Iptc) data',regionsBtn:'People',regionsLabel:'Show tagged people',mapBtn:'Map',mapLabel:'Show the photo location on the map',mostphotosBtn:'Purchase',mostphotosLabel:'Download this image from <b>mostphotos.com</b>!',share:'Share',shareLabel:'Share this photo over social sites',shareOn:'Share on',play:'Play',audioClipLabel:'Play / pause the attached audio clip',startOver:'Start over',upOneLevel:'Up one level',backToHome:'Back to home',backToIndex:'Back to index page',nextFolder:'Next folder',nextIndex:'Next index page',atLastPageQuestion:'Where to go next?',atLastPage:'At last page',clickToOpen:'Click to open this document with the associated viewer',pauseShort:'Pause',startSlideshowShort:'Play',previousPicture:'Previous picture',previousPictureShort:'Prev',upOneLevelShort:'Exit',zoom:'Zoom',oneToOneSize:'1:1 size',oneToOneSizeShort:'1:1',fitToScreen:'Fit to screen',fitToScreenShort:'Fit',showThumbs:'Show thumbnails',showThumbsShort:'Thumbnails',hideThumbs:'Hide thumbnails',hideThumbsShort:'Hide thumbs',showInfo:'Show caption / info',showInfoShort:'Info',hideInfo:'Hide caption / info',hideInfoShort:'Hide info',slideshow:'Slideshow',timing:'Timing',startStopSlideshow:'Start / stop slideshow',fullscreen:'Fullscreen',fullscreenShort:'Fullscr',exitFullscreen:'Exit fullscreen',exitFullscreenShort:'Normal',nextPicture:'Next picture',nextPictureShort:'Next',closeWindow:'Close window',noMoreItems:'You can´t buy more than 99 items at once on PayPal. Added only the first 99.',maxNItems:'Maximum <b>{0}</b> items allowed!',items:'items',item:'item',couponRemoved:'The coupon has been removed.',addMoreItems:'Add {0} more item(s) to use this coupon!',validAbove:'Valid only above {0} cart value.',amountLowerThan:'The amount is lower than the discount <b>{0}</b>.',cartIsEmpty:'The cart is empty',minimumCartValue:'The minimal cart value is <b>{0}</b>',proceedToPayPal:'Proceed to PayPal!',expired:'The coupon code <b>{0}</b> has expired!',minAmountWarning:'This coupon can only be used if the total amount exceeds <b>{0}</b>.',minQuantityWarning:'This coupon can only be used if the number of items exceeds <b>{0}</b>.',lowerThanCurrent:'This coupon offers a lower discount than the current <b>{0}</b>.',couponAccepted:'Coupon code accepted, discounting <b>{0}</b>.',success:'Success',reclaimed:'This coupon has already been used!',higherThanTotal:'The coupon provides a higher discount (<b>{0}</b>) than the cart total.',noSuch:'No such coupon exists!',cart:'Cart',view:'View',addSelectedItems:'Add selected items!',addThisItem:'Add this item!',shoppingCart:'Shopping cart',edit:'Edit',subtotal:'Subtotal',couponCode:'Coupon code',remove:'Remove',discount:'Discount',shippingAndHandling:'Shipping and handling',tax:'Tax',total:'Total',continueShopping:'Continue shopping',emptyCart:'Empty Cart',buyNow:'Buy Now',processedByPaypal:'Payment processed by PayPal',scrollTopTooltip:'Top',checkThisOut:'This album is worth checking out',copied:'Copied',copy:'Copy',email:'Email',today:'today',yesterday:'yesterday',yearsAgo:'{0} years ago',monthsAgo:'{0} months ago',daysAgo:'{0} days ago',inThePast24Hours:'in the past 24 hours',inThePast48Hours:'in the past 48 hours',inThePastNYears:'in the past {0} years',inThePastNMonths:'in the past {0} months',inThePastNDays:'in the past {0} days',close:'Close',cookiePolicyText:'This album is using cookies to remember your preferences. It does not track you, nor does it store personal data.',cookiePolicyAgree:'Got it',gdprComplianceText:'This site uses the following external services that may track y
vendor: 4,834 bytes, lines 3-6
3our visits anonymously. Disabling tracking will stop their functionality.',allowAll:'Allow all',denyAll:'Deny all',allowSelected:'Allow selected',cookiePolicyLearnMore:'Learn more',restrictedLinkTitle:'Restricted material',restrictedLinkQuestion:'Please verify your age to proceed!',restrictedLinkYes:'I´m over 18',restrictedLinkNo:'I´m below 18',return:'return',rendering:'Rendering',selectedItems:'Selected items',label:'Label',search:'Search',searchNew:'Search new',loading:'Loading',foundNTimes:'{0} image(s)',foundTooMany:'{0} images; displaying only the first {1}',notFound:'not found',searchPlaceholder:'Search...',more:'more',less:'less',imagesTaken:'Images taken',imagesModified:'Images modified',imagesAdded:'Images added',betweenDays:'between {0} and {1}',onDay:'on {0}',afterDay:'after {0}',beforeDay:'before {0}',sinceMyLastVisit:'since my last visit',results:'Results',sortedBy:'Sorted by',ascending:'ascending',descending:'descending',noRating:'No rating',multipleSelectHint:'Use SHIFT to select range, CTRL for multiple entries',select:'Select',reset:'Reset',sortBy:'Sort by',image:'image',images:'images',audio:'audio',audios:'audios',video:'video',videos:'videos',other:'other',others:'others',fatalError:'Fatal error!'}; 4/*! modernizr 3.6.0 (Custom Build) | MIT * 5 * https://modernizr.com/download/?-adownload-backgroundsize-bgsizecover-cssanimations-cssgradients-csstransforms-csstransforms3d-csstransitions-cssvhunit-hiddenscroll-preserve3d-svg-touchevents-setclasses !*/ 6!function(e,t,n){function r(t,n,r){var s;if("getComputedStyle"in e){s=getComputedStyle.call(e,t,n);var o=e.console;if(null!==s)r&&(s=s.getPropertyValue(r));else if(o){var i=o.error?"error":"log";o[i].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else s=!n&&t.currentStyle&&t.currentStyle[r];return s}function s(e){var t=z.className,n=Modernizr._config.classPrefix||"";if(k&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),k?z.className.baseVal=t:z.className=t)}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):k?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function i(e,t){return typeof e===t}function a(){var e,t,n,r,s,o,a;for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)o=e[s],a=o.split("."),1===a.length?Modernizr[a[0]]=r:(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=r),S.push((r?"":"no-")+a.join("-"))}}function l(e,t){return e-1===t||e===t||e+1===t}function u(){var e=t.body;return e||(e=o(k?"svg":"body"),e.fake=!0),e}function d(e,n,r,s){var i,a,l,d,f="modernizr",c=o("div"),p=u();if(parseInt(r,10))for(;r--;)l=o("div"),l.id=s?s[r]:f+(r+1),c.appendChild(l);return i=o("style"),i.type="text/css",i.id="s"+f,(p.fake?p:c).appendChild(i),p.appendChild(c),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),c.id=f,p.fake&&(p.style.background="",p.style.overflow="hidden",d=z.style.overflow,z.style.overflow="hidden",z.appendChild(p)),a=n(c,e),p.fake?(p.parentNode.removeChild(p),z.style.overflow=d,z.offsetHeight):c.parentNode.removeChild(c),!!a}function f(e,t){return!!~(""+e).indexOf(t)}function c(e,t){return function(){return e.apply(t,arguments)}}function p(e,t,n){var r;for(var s in e)if(e[s]in t)return n===!1?e[s]:(r=t[e[s]],i(r,"function")?c(r,n||t):r);return!1}function m(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function g(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function h(t,s){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(g(t[o]),s))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+g(t[o])+":"+s+")");return i=i.join(" or "),d("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==r(e,null,"position")})}return n}function v(e,t,r,s){function a(){u&&(delete O.style,delete O.modElem)}if(s=i(s,"undefined")?!1:s,!i(r,"undefined")){var l=h(e,r);if(!i(l,"undefined"))return l}for(var u,d,c,p,g,v=["modernizr","tspan","samp"];!O.style&&v.length;)u=!0,O.modElem=o(v.shift()),O.style=O.modElem.style;for(c=e.length,d=0;c>d;d++)if(p=e[d],g=O.style[p],f(p,"-")&&(p=m(p)),O.style[p]!==n){if(s||i(r,"undefined"))return a(),"pfx"==t?p:!0;try{O.style[p]=r}catch(y){}if(O.style[p]!=g)return a(),"pfx"==t?p:!0}return a(),!1}
6function y(e,t,n,r,s){var o=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+N.join(o+" ")+o).split(" ");return i(t,"string")||i(t,"undefined")?v(a,t,r,s):(a=(e+" "+j.join(o+" ")+o).split(" "),p(a,t,n))}function w(e,t,r){return y(e,n,n,t,r)}var S=[],C=[],x={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=x,Modernizr=new Modernizr,Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var b=x._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=b;var T="CSS"in e&&"supports"in e.CSS,_="supportsCSS"in e;Modernizr.addTest("supports",T||_);var z=t.documentElement,k="svg"===z.nodeName.toLowerCase();Modernizr.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",s=0,i=b.length-1;i>s;s++)e=0===s?"to ":"",r+=t+b[s]+"linear-gradient("+e+"left top, #9f9, white);";Modernizr._config.usePrefixes&&(r+=t+"-webkit-"+n);var a=o("a"),l=a.style;return l.cssText=r,(""+l.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("preserve3d",function(){var t,n,r=e.CSS,s=!1;return r&&r.supports&&r.supports("(transform-style: preserve-3d)")?!0:(t=o("a"),n=o("a"),t.style.cssText="display: block; transform-style: preserve-3d; transform-origin: right; transform: rotateY(40deg);",n.style.cssText="display: block; width: 9px; height: 1px; background: #000; transform-origin: right; transform: rotateY(40deg);",t.appendChild(n),z.appendChild(t),s=n.getBoundingClientRect(),z.removeChild(t),s=s.width&&s.width<4)});var P=x.testStyles=d;Modernizr.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var r=["@media (",b.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");P(r,function(e){n=9===e.offsetTop})}return n}),Modernizr.addTest("hiddenscroll",function(){return P("#modernizr {width:100px;height:100px;overflow:scroll}",function(e){return e.offsetWidth===e.clientWidth})}),P("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),s=parseInt(r(t,null,"height"),10);Modernizr.addTest("cssvhunit",l(s,n))});var E="Moz O ms Webkit",N=x._config.usePrefixes?E.split(" "):[];x._cssomPrefixes=N;var j=x._config.usePrefixes?E.toLowerCase().split(" "):[];x._domPrefixes=j;var A={elem:o("modernizr")};Modernizr._q.push(function(){delete A.elem});var O={style:A.elem.style};Modernizr._q.unshift(function(){delete O.style}),x.testAllProps=y,x.testAllProps=w,Modernizr.addTest("backgroundsize",w("backgroundSize","100%",!0)),Modernizr.addTest("cssanimations",w("animationName","a",!0)),Modernizr.addTest("bgsizecover",w("backgroundSize","cover")),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&w("transform","scale(1)",!0)}),Modernizr.addTest("csstransitions",w("transition","all",!0)),Modernizr.addTest("csstransforms3d",function(){return!!w("perspective","1px",!0)}),Modernizr.addTest("adownload",!e.externalHost&&"download"in o("a")),a(),s(S),delete x.addTest,delete x.addAsyncTest;for(var q=0;q<Modernizr._q.length;q++)Modernizr._q[q]();e.Modernizr=Modernizr}(window,document); 7!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("whatInput",[],t):"object"==typeof exports?exports.whatInput=t():e.whatInput=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",o=n,i=Date.now();try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(o=window.sessionStorage.getItem("what-intent"))}catch(e){}var r=["button","input","select","textarea"],s=[],a=[16,17,18,91,93],u=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mou
7se",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},c=!1,w={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},f=!1;try{var l=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("test",null,l)}catch(e){}var h=function(){var e=!!f&&{passive:!0};window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",y)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",y)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",y),"ontouchstart"in window&&(window.addEventListener("touchstart",m,e),window.addEventListener("touchend",m))),window.addEventListener(b(),y,e),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",g),window.addEventListener("focusout",E)},m=function(e){var t=e.which,i=d[e.type];"pointer"===i&&(i=L(e));var s=!u.length&&-1===a.indexOf(t),c=u.length&&-1!==u.indexOf(t),w="keyboard"===i&&t&&(s||c)||"mouse"===i||"touch"===i;if(x(i)&&(w=!1),w&&n!==i){n=i;try{window.sessionStorage.setItem("what-input",n)}catch(e){}v("input")}if(w&&o!==i){var p=document.activeElement;if(p&&p.nodeName&&-1===r.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!k(p,"form")){o=i;try{window.sessionStorage.setItem("what-intent",o)}catch(e){}v("intent")}}},v=function(t){e.setAttribute("data-what"+t,"input"===t?n:o),S(t)},y=function(e){var t=d[e.type];if("pointer"===t&&(t=L(e)),M(e),!c&&!x(t)&&o!==t){o=t;try{window.sessionStorage.setItem("what-intent",o)}catch(e){}v("intent")}},g=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},L=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},x=function(e){var t=Date.now(),o="mouse"===e&&"touch"===n&&t-i<200;return i=t,o},b=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},S=function(e){for(var t=0,i=s.length;t<i;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:o)},M=function(e){w.x!==e.screenX||w.y!==e.screenY?(c=!1,w.x=e.screenX,w.y=e.screenY):c=!0},k=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[b()]="mouse",h(),v("input"),v("intent")),{ask:function(e){return"intent"===e?o:n},element:function(){return t},ignoreKeys:function(e){a=e},specificKeys:function(e){u=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)}}}()}])}); 8window.console=window.console||{log:function(t){}};var log=function(){},UNDEF="undefined",OBJECT="object",FUNCTION="function",STRING="string",NUMBER="number",BOOLEAN="boolean",NOLINK="javascript:void(0)",LOCAL="file:"===document.location.protocol,ONEDAY_S=86400,ONEDAY_MS=864e5,STARS='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="80" height="16" viewBox="0 0 80 16" xml:space="preserve"><path d="M12,10.094l0.938,5.5L8,13l-4.938,2.594L4,10.094L0,6.219l5.531-0.813l2.469-5l2.469,5L16,6.219L12,10.094z"/><path d="M28,10.094l0.938,5.5L24,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L32,6.219L28,10.094z"/><path d="M44,10.094l0.938,5.5L40,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L48,6.219L44,10.094z"/><path d="M60,10.094l0.938,5.5L56,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L64,6.219L60,10.094z"/><path d="M76,10.094l0.938,5.5L72,13l-4.938,2.594l0.938-5.5l-4-3.875l5.531-0.813l2.469-5l2.469,5L80,6.219L76,10.094z"/></svg>';if(DIR_PATH=function(){let t=window.location.pathname,e=document.getElementsByTagName("html")[0].getAttribute("data-level")||0;for(let n=0;n<e;n++)t=t.substring(0,t.lastIndexOf("/"));return t+"/"}(),LOCALSTORAGE=function(){try{return localStorage.setItem("_t",UNDEF),localStorage.removeItem("_t"),!0}catch(t){return!1}}(),HISTORY=function(){let t=navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),VEND=function(){let t=navigator.userAgent;return t.indexOf("Trident")>0||t.indexOf("Edge")>0?"ms":t.indexOf("AppleWebKit")>0?"webkit":t.indexOf("Gecko")>0?"moz":t.indexOf("Presto")>0?"o":t.indexOf("Blink")>0?"webkit":""}(),JAVAFXBROWSER=navigator.userAgent.indexOf("JavaFX/14")>0,BACKFACEBUG=function(){var t=navigator.userAgent.match(/Edge\/(\d+\.\d+)/);return t&&parseInt(t[1])<=16}(),TOUCH=/Trident|Edge/.test(navigator.userAgent)?window.navigator.pointerEnabled?{START:"pointerdown",MOVE:"pointermove",END:"pointerup",CANCEL:"pointercancel"}:{START:"MSPointerDown",MOVE:"MSPointerMove",END:"MSPointerUp",CANCEL:"MSPointerCancel"}:{START:"touchstart",MOVE:"touchmove",END:"touchend",CANCEL:"touchcancel"},TOUCHENABLED=/Trident/.test(navigator.userAgent)?typeof navigator.maxTouchPoints!==UNDEF&&navigator.maxTouchPoints:/Edge/.test(navigator.userAgent)?0==scrollbarWidth():/(Chrome|CriOS)/.test(navigator.userAgent)?/Mobile/.test(navigator.userAgent)||"ontouchstart"in window:"ontouchstart"in window,ISIOSDEVICE=/^iP/.test(navigator.platform)||/^Mac/.test(navigator.platform)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>4,ISSEPARATEHOVER=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,SMALLSCREEN=window.innerWidth<=480||window.innerHeight<=480||window.innerWidth<=640&&window.innerHeight<=640,PIXELRATIO=window.hasOwnProperty("devicePixelRatio")?window.devicePixelRatio:1,ZOOM=window.hasOwnProperty("visualVie
8wport")?window.visualViewport.scale:1,HIDPI=PIXELRATIO>1.9,HASPDFVIEWER=navigator.pdfViewerEnabled,LANGUAGE=navigator.hasOwnProperty("languages")?navigator.languages[0]:navigator.language,WEBP_LOSSY=!1,WEBP_LOSSLESS=!1,checkWebpSupport=function(t,e){let n=new Image;n.onload=function(){e(n.width>0&&n.height>0)},n.onerror=function(){e(!1)},n.src="data:image/webp;base64,"+t},checkWebpSupport("UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",function(t){WEBP_LOSSY=t}),checkWebpSupport("UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",function(t){WEBP_LOSSLESS=t}),typeof DEBUG===UNDEF)var DEBUG=!1;if(typeof REL_PATH===UNDEF)var REL_PATH="";if(typeof PAGE_NAME===UNDEF)var PAGE_NAME="index.html";if(typeof THUMBS_DIR===UNDEF)var THUMBS_DIR="thumbs";if(typeof SLIDES_DIR===UNDEF)var SLIDES_DIR="slides";String.prototype.hasOwnProperty("trim")||(String.wsp=[],String.wsp[9]=!0,String.wsp[10]=!0,String.wsp[11]=!0,String.wsp[12]=!0,String.wsp[13]=!0,String.wsp[32]=!0,String.wsp[133]=!0,String.wsp[160]=!0,String.wsp[5760]=!0,String.wsp[6158]=!0,String.wsp[8192]=!0,String.wsp[8193]=!0,String.wsp[8194]=!0,String.wsp[8195]=!0,String.wsp[8196]=!0,String.wsp[8197]=!0,String.wsp[8198]=!0,String.wsp[8199]=!0,String.wsp[8200]=!0,String.wsp[8201]=!0,String.wsp[8202]=!0,String.wsp[8203]=!0,String.wsp[8232]=!0,String.wsp[8233]=!0,String.wsp[8239]=!0,String.wsp[8287]=!0,String.wsp[12288]=!0,String.prototype.trim=function(){var t=this+"",e=t.length;if(e){var n=String.wsp,r=0;for(--e;e>=0&&n[t.charCodeAt(e)];)--e;for(++e;r<e&&n[t.charCodeAt(r)];)++r;t=t.substring(r,e)}return t}),String.prototype.hasOwnProperty("trunc")||(String.prototype.trunc=function(t){var e=this+"";if(e.length<=t)return e.toString();var n=e.substring(0,t-1),r=n.lastIndexOf(" ");return(r>6&&n.length-r<20?n.substring(0,r):n)+"..."}),String.prototype.hasOwnProperty("startsWith")||(String.prototype.startsWith=function(t){return(this+"").substring(0,t.length)===t}),String.prototype.hasOwnProperty("endsWith")||(String.prototype.endsWith=function(t){return(this+"").substring(this.length-t.length)===t}),String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.unCamelCase=function(){return this.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},String.prototype.getExt=function(){var t=this+"",e=t.lastIndexOf(".");return e<=0||e>=t.length-1?"":t.substring(e+1)},String.prototype.stripExt=function(){var t=this+"",e=t.lastIndexOf(".");return e<=0||e>t.length-1?t:t.substring(0,e)},String.prototype.hasExt=function(t){var e=this+"",n=e.lastIndexOf(".");return n>=0&&(e=e.substring(n+1).toLowerCase(),(t+",").indexOf(e+",")>=0)},String.prototype.replaceExt=function(t){var e=this+"",n=e.lastIndexOf(".");return n<=0?e:e.substring(0,n+1)+t},String.prototype.fixExtension=function(){return(this+"").replace(/.gif$/gi,".png").replace(/.tif+$/gi,".jpg")},String.prototype.getDir=function(){var t=(this+"").split("#")[0];return t.substring(0,t.lastIndexOf("/")+1)},String.prototype.getFile=function(){var t=(this+"").split("#")[0];return t.substring(t.lastIndexOf("/")+1)},String.prototype.getRelpath=function(t){var e=this+"",n=e.lastIndexOf("#");for(-1===n?n=e.length-1:n--;n>=0&&("/"!==e[n]||0!=t--);n--);return e.substring(n+1)},String.prototype.fixUrl=function(){for(var t,e,n=this+"";(t=n.indexOf("../"))>0;){if(1===t||-1===(e=n.lastIndexOf("/",t-2)))return n.substring(t+3);n=n.substring(0,e)+n.substring(t+2)}return n},String.prototype.fullUrl=function(){var t=this+"";return t.match(/^(http|ftp|file)/)||(t=window.location.href.getDir()+t),t.fixUrl()},String.prototype.cleanupHTML=function(){for(var t=[[/<(b|h)r\/?>/gi,"\n"],[/\&/g,"&"],[/\ /g," "],[/\</g,"<"],[/\>/g,">"],[/\&(m|n)dash;/g,"-"],[/\'/g,"'"],[/\"/g,'"']],e=this+"",n=t.length-1;n>=0;n--)e=e.replace(t[n][0],t[n][1]);return e},String.prototype.stripHTML=function(t){var e=this+"";return t&&(e=e.cleanupHTML()),e.replace(/<\/?[^>]+>/g," ")},String.prototype.stripQuote=function(){return(this+"").replace(/\"/gi,""")},String.prototype.appendSep=function(t,e){return(this.length?this+(e||" · "):"")+t},String.prototype.rgb2hex=function(){var t=this+"";if("#"===t.charAt(0)||"transparent"===t)return t;var e,n=t.match(/\d+/g),r="";if(n){for(var o=0;o<n.length&&o<3;++o)r+=((e=parseInt(n[o],10).toString(16)).length<2?"0":"")+e;return"#"+r}return"transparent"}
8,String.prototype.template=function(t){if(typeof t===UNDEF||!this)return this;!isNaN(parseFloat(t))&&isFinite(t)&&(t+="");var e=this+"";if(t.constructor===Array)for(var n=0;n<t.length;++n)e=e.replace(new RegExp("\\{"+n+"\\}","gi"),t[n]);else e=e.replace(/\{0\}/gi,t);return e},String.prototype.getSearchTerms=function(){var t=this+"";if(-1===t.indexOf('"'))return t.split(" ");var e,n=[];do{if((e=t.indexOf('"'))>0&&n.push.apply(n,t.substring(0,e).split(" ")),t=t.substring(e+1),(e=t.indexOf('"'))<0){n.push(t);break}n.push(t.substring(0,e)),t=t.substring(e+1)}while(t.length);return n},String.prototype.objectify=function(){if(!this||!this.length)return this;var t=this+"";"?"!==t.charAt(0)&&"#"!==t.charAt(0)||(t=t.substring(1));for(var e,n={},r=t.split("&"),o=0,i=r.length;o<i;++o)(e=r[o].split("=")).length>1?"img"===e[0]?n.img=e[1]:n[e[0]]=decodeURIComponent(e[1]):n[e[0]]=null;return n},String.prototype.testIn=function(t){return"string"!=typeof t&&(t+=""),new RegExp(this,"i").test(t)},String.prototype.testExactMatch=function(t){if(t.constructor!==Array)return this==t+"";for(var e=0,n=t.length;e<n;++e)if(this==t[e])return!0;return!1},String.prototype.fixjAlbumPaths=function(t,e,n){var r=(this+"").replace(/\%24/g,"$");return t&&(r=r.replace(/\${resPath}/g,t)),e&&(r=r.replace(/\${rootPath}/g,e)),n&&(r=r.replace(/\${relPath}/g,n)),r},String.prototype.testMatch=function(t){if(typeof t===UNDEF)return!1;var e=this.toLowerCase();if(t.constructor!==Array)return e===(t+"").toLowerCase();for(var n=0,r=t.length;n<r;++n)if(e===t[n].toLowerCase())return!0;return!1},String.prototype.searchTerm=function(t,e,n,r){if(typeof t===UNDEF||!this.length)return!1;var o=typeof r!==UNDEF&&r,i=o?this+"":(this+"").toLowerCase(),e=typeof e!==UNDEF&&e,n=typeof n!==UNDEF&&n,a=i.split(/\W+/).filter(Boolean),s=function(t){return t=o?t:t.toLowerCase(),e?a.some(function(e){return e===t}):a.some(function(e){return 0===e.indexOf(t)})};return t=Array.isArray(t)?t.reduce(function(t,e){return t.concat(e.split(/\W+/).filter(Boolean))},[]):t.split(/\W+/).filter(Boolean),n?t.every(function(t){return s(t)}):t.some(function(t){return s(t)})},String.prototype.hashCode=function(){for(var t=0,e=0,n=this.length;e<n;++e)t=(t<<5)-t+this.charCodeAt(e),t&=t;return t},Math.minMax=function(t,e,n){return(e=isNaN(e)?parseFloat(e):e)<t?t:e>n?n:e},Math.getRange=function(t,e){if(e.constructor!==Array)return t>=e?1:0;if(1===e.length)return t>=e[0]?1:0;if(t<e[0])return 0;for(var n=1;n<e.length&&!(t>=e[n-1]&&t<e[n]);n++);return n};var encodeJ=[];encodeJ[33]="%21",encodeJ[35]="%23",encodeJ[36]="%24",encodeJ[38]="%26",encodeJ[39]="%27",encodeJ[40]="%28",encodeJ[41]="%29",encodeJ[43]="%2B",encodeJ[44]="%2C",encodeJ[59]="%3B",encodeJ[60]="%3C",encodeJ[61]="%3D",encodeJ[62]="%3E",encodeJ[63]="%3F",encodeJ[64]="%40",encodeJ[123]="%7B",encodeJ[124]="%7C",encodeJ[125]="%7D";var transCodeJ=[];transCodeJ[33]="%21",transCodeJ[39]="%27",transCodeJ[40]="%28",transCodeJ[41]="%29";var isEmpty=function(t){return null==t||0===Object.getOwnPropertyNames(t).length},paramize=function(t){if("number"==typeof t)return""+t;if("string"==typeof t)return t;if("object"==typeof t){for(var e="",n=Object.getOwnPropertyNames(t),r=n.length,o=0;o<r;o++)null!==t[n[o]]&&("img"===n[o]?e+="&img="+t[n[o]]:e+="&"+n[o]+"="+encodeURIComponent(t[n[o]]));if(e.length)return e.substring(1)}return""},allTrue=function(t){if(t&&t.constructor===Array){for(var e=0;e<t.length;++e)if(!t[e])return!1;return!0}return!0===t},removeEmpty=function(t){if(t&&t.constructor===Array){var e,n=new Array;for(e=0;e<t.length;e++)typeof t[e]===STRING&&t[e].length&&n.push(t[e]);return n}return t},getCoords=function(t){return t.touches?1==t.touches.length?{x:t.touches[0].clientX,y:t.touches[0].clientY}:t.changedTouches&&1==t.changedTouches.length?{x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}:null:{x:t.clientX,y:t.clientY}},translate=function(t,e){if(t=t.trim(),typeof Texts!==UNDEF&&Texts.hasOwnProperty(t))return Texts[t];if(typeof e!==UNDEF)return DEBUG&&console&&console.log("Using default translation: "+t+"="+e),e;DEBUG&&console&&console.log("Missing translation: "+t);var n=t.replace(/([A-Z])/g," $1").toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)},getKeys=function(t,e){var n,r={},o=t.split(","),i=o.length;for(n=0;n<i;n++)r[o[n]]=translate(o[n],e[o[n]]);return r},getTranslations=function(t){var e,n={};for(e in t)"object"==typeof t[e]?n[e]=getTranslations(t[e]):n[e]=translate(e,t[e]);return n},readData=function(t,e){var n={};if(t&&t.length&&e){e=e.split(",");for(var r,o=0;o<e.length;o++)null!=(r=t.data(e[o]))&&(n[e[o]]=r)}return n},niceByte=function(t){var e=parseFloat(t),n=Math.abs(e),r=function(t){return t<10?t.toFixed(1):Math.round(t)};return n<1e-4?"0":n<.1?e.toFixed(3):n<1?e.toFixed(2):n<1e3?r(e):n<1e6?r(e/1e3)+"k":n<1e9?r(e/1e6)+"M":n<1e12?r(e/1e9)+"G":e.toExponential()},niceTime=function(t){var e,n,r=parseFloat(t),o=Math.abs(r),i=function(t){return t<10?"0"+t:""+t},a=function(t){return t<10?t.toFixed(1):Math.round(t)};return o<1e-6?"0s":o<.001?a(1e6*r)+"µs":o<1?a(1e3*r)+"ms":o<60?a(r)+"s":(e=Math.round(o)%60,n=Math.floor(o)/60%60,o<3600?n+"m"+i(e)+"s":Math.floor(o/3600)+"h"+i(n)+"m"+i(e)+"s")}
8,toCurrency=function(t,e){return parseFloat(t).toLocaleString(LANGUAGE,{style:"currency",currency:e||"EUR"})},getRelativeDate=function(t){if(!t)return translate("today");if(1===t)return translate("yesterday");var e,n;return t>=730?(e=translate("yearsAgo"),n=Math.round(t/365)):t>=60?(e=translate("monthsAgo"),n=Math.round(t/30.5)):(e=translate("daysAgo"),n=t),e.replace("{0}",n)},getTimespan=function(t){if(!t)return translate("inThePast24Hours");if(t<2)return translate("inThePast48Hours");var e,n;return t>=730?(e=translate("inThePastNYears"),n=Math.round(t/365)):t>=60?(e=translate("inThePastNMonths"),n=Math.round(t/30.42)):(e=translate("inThePastNDays"),n=Math.round(t)),e.replace("{0}",n)},getFractionValue=function(t){var e=t.match(/^([\d\.]+)\/([\d\.]+)/);return e&&e.length>1&&0!==parseFloat(e[2])?e[1]/e[2]:t},getExposure=function(t){return t=t.includes("/")?getFractionValue(t):parseFloat(t)},getRelativePath=function(t,e){if(typeof e===UNDEF||typeof t===UNDEF)return"";if("./"===t&&(t=REL_PATH),"./"===e&&(e=REL_PATH),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t===e)return"";if("/"===t)return e;var n=t.split("/").filter(Boolean);if("/"===e)return getParentFolderLink(n.length);for(var r=e.split("/").filter(Boolean);n.length&&r.length&&n[0]===r[0];)n.shift(),r.shift();return getParentFolderLink(n.length)+(r.length?r.join("/")+"/":"")},getParentFolderLink=function(t){return t>0?"../../../../../../../../../../../../../../../../../../../../".substring(0,3*t):""},encodeAsJava=function(t){var e="";t=/^(https?:|file:)?\/\//i.test(t)?encodeURI(t):encodeURIComponent(t);for(var n=0;n<t.length;n++)e+=encodeJ[t.charCodeAt(n)]||t.charAt(n);return e},transcodeJavaURIComponent=function(t){for(var e="",n=0;n<t.length;n++)e+=transCodeJ[t.charCodeAt(n)]||t.charAt(n);return e},extend=function(){if(arguments.length<2)return arguments[0]||{};for(var t=arguments[0],e=1;e<arguments.length;e++)if(null!=arguments[e])for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&(t[n]=arguments[e][n]);return t},passDefaults=function(t,e,n){if(t&&e)if(typeof n!==UNDEF){n=n.split(",");for(var r=0;r<n.length;r++)t.hasOwnProperty(n[r])&&(e[n[r]]=t[n[r]])}else for(var o in t)e[o]=t[o]},readUserPrefs=function(t,e){if(typeof e!==UNDEF&&t){e=e.split(",");for(var n,r=0;r<e.length;r++)null!==(n=$.cookie(e[r]))&&(t[e[r]]=n)}},savePrefs=function(t,e,n){var r,o,i={};for(r in e)o=e[r],t.hasOwnProperty(o)&&(i[o]=t[o]);i&&$.cookie(typeof n===UNDEF?"lb_pref":n,i)},loadPrefs=function(t,e,n){var r,o,i=$.cookie(typeof n===UNDEF?"lb_pref":n);if(i)for(r in e)o=e[r],i.hasOwnProperty(o)&&(t[o]="true"===i[o]||"false"===i[o]?!!i[o]:i[o])},addParam=function(t,e,n){if(HISTORY){var r=window.location.hash;r&&(history.state?(typeof history.state===STRING&&(history.state=history.state.objectify()),history.state.hasOwnProperty("img")&&(history.state.img=encodeURIComponent(history.state.img)),e=extend(history.state,e)):("#"===r.charAt(0)&&(r=r.substring(1)),e=extend(r.objectify(),e))),(r="#"+paramize(e))!==window.location.hash&&history.pushState(e,typeof n===UNDEF?"":n,r.length>1?r:t||"index.html")}},setParam=function(t,e,n){if(HISTORY){var r="#"+paramize(e);r!==window.location.hash&&history.pushState(e,typeof n===UNDEF?"":n,r.length>1?r:t||"index.html")}},removeParam=function(t,e,n){if(HISTORY){var r,o=window.location.hash;o&&(typeof e===UNDEF?(o="",history.pushState("","",t||"index.html")):("#"===o.charAt(0)&&(o=o.substring(1)),(r=o.objectify()).hasOwnProperty(e)&&(delete r[e],o="#"+paramize(r)),history.pushState(r,typeof n===UNDEF?"":n,o.length>1?o:t||"index.html")))}},readParam=function(){if(HISTORY){if(history.state)return typeof history.state===STRING&&(history.state=history.state.objectify()),history.state.hasOwnProperty("img")&&(history.state.img=encodeURIComponent(history.state.img)),history.state;var t=window.location.hash;return"#"===t.charAt(0)&&(t=t.substring(1)),t.objectify()}return null},removeSearch=function(t){HISTORY&&history.replaceState(history.state,typeof t===UNDEF?"":t,window.location.href.replace(window.location.search,""))},restoreScrollPosition=function(){if(LOCALSTORAGE){var t=$.cookie("last-touch"),e=(new Date).valueOf(),n=$.cookie(REL_PATH+PAGE_NAME+":scroll-pos"),r=function(t,e){$("html").height()>=t?$("html").scrollTop(t):e&&setTimeout(r,1e3,t,e-1)};t&&e-t<2e3&&n&&r(n,6)}},saveScrollPosition=function(){if(LOCALSTORAGE){var t=$("html").scrollTop();$.cookie(REL_PATH+PAGE_NAME+":scroll-pos",t||null,300),$.cookie("last-touch",(new Date).valueOf(),300)}},pushAll=function(t,e){if(t instanceof Array)if(e instanceof Array)for(var n=0,r=e.length;n<r;n++)t.push(e[n]);else t.push(e)},pushNew=function(t,e){if(t instanceof Array)if(e instanceof Array)for(var n=0,r=e.length;n<r;
8n++)t.includes(e[n])||t.push(e[n]);else t.includes(e)||t.push(e)},videoDurationMs=function(t){var e=t.match(/(\d{2})\:(\d{2})\:(\d{2})(\.(\d+))?/);return e?(e[5]?Math.round(1e3*parseFloat("0."+e[5])):0)+1e3*parseInt(e[3])+6e4*parseInt(e[2])+36e5*parseInt(e[1]):null},guessDimensions=function(t){var e,n,r=[];return t?(e=t.match(/<\w+\s[^>]*\swidth="([\d\.]+)"/i)||t.match(/<\w+\s[^>]*\sstyle=".*width:\s?([\d\.]+)(r?em|px)"/i),n=t.match(/<\w+\s[^>]*\sheight="([\d\.]+)"/i)||t.match(/<\w+\s[^>]*\sstyle=".*height:\s?([\d\.]+)(r?em|px)"/i),e?(r[0]=parseFloat(e[1]),e.length>2&&"px"!==e[2]&&(r[0]*=16),n?(r[1]=parseFloat(n[1]),n.length>2&&"px"!==n[2]&&(r[1]*=16)):r[1]=.75*r[0],r):null):null},currencyToHtml={USD:"US$",EUR:"€",GBP:"GB£",JPY:"¥",HUF:"Ft",CAD:"CAN$",AUD:"AU$",RUB:"₽"},codeToCurrency=function(t){return currencyToHtml.hasOwnProperty(t)?currencyToHtml[t]:t},currencyToHtmlShort={USD:"$",EUR:"€",GBP:"£",JPY:"¥",HUF:"Ft",CAD:"$",AUD:"$",RUB:"₽"},codeToShortCurrency=function(t){return currencyToHtmlShort.hasOwnProperty(t)?currencyToHtmlShort[t]:t},printImage=function(t,e,n){if(t){var r=window.open("about:blank","print","location=no,status=no,titlebar=no");
8r.document.open(),r.document.write('<!DOCTYPE html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>'+(e||"Print")+'</title>\n<script>printOut=function(){window.print();window.close();}<\/script>\n<style>body{margin:0;padding:0;text-align:center;overflow:hidden;}\nimg{display:block;width:100%;height:auto;vertical-align:top;}</style>\n</head>\n<body onLoad="setTimeout(printOut,100)"><img src="'+t+'">'+(n||"")+"</body>\n</html>"),r.document.close()}},getFileSize=function(t,e,n){var r=new XMLHttpRequest;r.open("HEAD",t,!0),r.onreadystatechange=function(){this.readyState==this.DONE&&200===this.status&&typeof e===FUNCTION&&(typeof n!==UNDEF?e.call(this,[this.getResponseHeader("content-length")],n):e.call(this,[this.getResponseHeader("content-length")]))},r.send()},moveInView=function(t){var e=$(t);if(e.length&&e.is(":visible")){var n=e.offset().top,r=navigator.userAgent.match(/(iPod|iPhone|iPad)/)?$("body"):$("html"),o=r.scrollTop();(n<o||n>o+window.outerHeight-80)&&(navigator.userAgent.match(/(iPod|iPhone|iPad)/)?window.scrollTo(0,n):r.animate({scrollTop:n},500,function(){r.clearQueue()}))}},xDecrypt=function(t){if("string"!=typeof t)return"";var e,n,r,o=[147,163,87,254,153,4,198,23],i=t.length,a=5*Math.ceil(i/8),s=new Array(a),l="",c=0;for(e=0;e<a;e++)s[e]=0;for(e=0;e<i;e++)(r=t.charCodeAt(e)-48)>9&&(r-=7),r<<=11-c%8,(n=c>>3)<a&&(s[n]|=r>>8,++n<a&&(s[n]|=255&r)),c+=5;for(e=0;e<a;e++)s[e]^=o[e%8];for(a=s[0]|s[1]<<8,r=0,e=4;e<a;e++)l+=String.fromCharCode(s[e]),r+=s[e];return r!=(255&s[2]|s[3]<<8)&&(l=""),l},getStyle=function(t,e){if(t instanceof Element){if(document.defaultView&&document.defaultView.getComputedStyle)return document.defaultView.getComputedStyle(t,"").getPropertyValue(e.unCamelCase());if(t.currentStyle)return t.currentStyle[e]}return null},scrollbarWidth=function(){var t=document.createElement("div"),e=0;return t.style.cssText="width:100px;height:100px;overflow:scroll !important;position:absolute;top:-9999px",document.body&&(document.body.appendChild(t),e=t.offsetWidth-t.clientWidth,document.body.removeChild(t)),e},addClass=function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},pageZoomed=function(){return!!window.hasOwnProperty("visualViewport")&&window.visualViewport.scale>ZOOM},playVideo=function(t,e){if(t&&"VIDEO"===t.nodeName)if(t.paused){let n=t.play();typeof n!==UNDEF&&n.then(()=>{addClass(t,"playing"),typeof e===FUNCTION&&e.call(null)}).catch(n=>{"NotAllowedError"===n.name?(t.muted=!0,t.play().then(()=>{console.log("Falling back to muted autoplay! Unmute the video manually!"),addClass(t,"playing"),typeof e===FUNCTION&&e.call(null)}).catch(t=>{console.log("Autoplay rejected. Try starting the video manually!")})):console.log("Video format not supported!")})}else typeof e===FUNCTION&&e.call(null)},fullscreenChanged=0,fullscreenChangedSince=function(){return new Date-fullscreenChanged},hasFullscreen=function(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},isFullscreen=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},onFullscreenChange=function(t){let e=function(e){t(isFullscreen())};typeof t===FUNCTION&&["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(t=>document.addEventListener(t,e,!1))},requestFullscreen=function(t,e){if(hasFullscreen())if(isFullscreen())typeof t===FUNCTION&&t.call();else{let n=document.documentElement;n.requestFullscreen?n.requestFullscreen().then(t||(()=>{})).catch(t=>{typeof e===FUNCTION?e.call():console.log("Full-screen error: "+t.message+" ("+t.name+")")}):n.mozRequestFullscreen?(n.mozRequestFullscreen(),t.call()):n.webkitRequestFullscreen?(n.webkitRequestFullscreen(),t.call()):n.msRequestFullscreen&&(n.msRequestFullscreen(),t.call()),fullscreenChanged=new Date}},exitFullscreen=function(t,e){hasFullscreen()&&(isFullscreen()?(typeof t!==FUNCTION&&(t=function(){}),typeof e!==FUNCTION&&(e=function(t){console.log("Full-screen error: "+t.message+" ("+t.name+")")}
8),document.exitFullscreen?document.exitFullscreen().then(t).catch(e):document.mozExitFullscreen?document.mozExitFullscreen().then(t).catch(e):document.webkitExitFullscreen?(document.webkitExitFullscreen(),t.call()):document.msExitFullscreen&&document.msExitFullscreen().then(t).catch(e),fullscreenChanged=new Date):typeof t===FUNCTION&&t.call())},orientationChanged=function(t,e){"change"===t.type?t.target.type.startsWith("landscape")&&!isFullscreen()&&requestFullscreen(e):"orientationchange"===t.type&&t.target.innerWidth>t.target.innerHeight&&!isFullscreen()&&requestFullscreen(e)},goFullscreenOnLandscapeChange=function(){(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled)&&(typeof screen!==UNDEF&&screen.hasOwnProperty("orientation")?screen.orientation.addEventListener("change",orientationChanged):window.addEventListener("orientationchange",orientationChanged))},wakeLock=null,requestWakeLock=async(t,e)=>{if("wakeLock"in navigator&&"request"in navigator.wakeLock){wakeLock=null;try{wakeLock=await navigator.wakeLock.request("screen"),typeof t===FUNCTION&&t.call()}catch(t){typeof e===FUNCTION&&e.call(t)}}},releaseWakeLock=(t,e)=>{wakeLock&&wakeLock.release().then(()=>{wakeLock=null,typeof t===FUNCTION&&t.call()})},loadExternal=function(t,e){return t.endsWith(PAGE_NAME)&&(t=t.slice(0,-PAGE_NAME.length)),t.endsWith("/")||(t+="/"),$.getJSON(t+"data1.json").done(function(t){typeof e===FUNCTION&&e.call(t)}).fail(function(e,n,r){DEBUG&&console.log('Not an album, or cannot load album database for: "'+t+'".')})},loadGoogleAnalytics=function(t,e,n){if(!LOCAL){var r=xDecrypt(t);"universal"===e?(!function(t,e,n,r,o,i,a){t.GoogleAnalyticsObject=o,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,i=e.createElement(n),a=e.getElementsByTagName(n)[0],i.async=1,i.src="https://www.google-analytics.com/analytics.js",a.parentNode.insertBefore(i,a)}(window,document,"script",0,"ga"),ga("create",r,"auto"),n&&ga("require","displayfeatures"),ga("send","pageview")):(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)},window.gtag("js",new Date),DEBUG?(window.gtag("config",r,{debug_mode:!0}),console.log("gtag:",typeof gtag),console.log("dataLayer:",window.dataLayer)):window.gtag("config",r))}},loadGoogleAPI=function(t,e){if(!LOCAL){!function(t,e,n,r,o,i,a){(i=e.createElement(n)).appendChild(e.createTextNode("{parsetags:'explicit',lang:'${lang}'}")),a=e.getElementsByTagName(n)[0],i.async=1,i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script",("https:"==document.location.protocol?"https:":"http:")+"//apis.google.com/js/platform.js");var n=30,r=function(){typeof gapi===UNDEF?n--?setTimeout(r,200):"console"in window&&console.log("Google Plus API failed to load!"):setTimeout(function(){gapi[e].go()},200)};t&&r()}},loadFacebookAPI=function(t,e){LOCAL||(window.fbAsyncInit=function(){typeof jQuery!==UNDEF&&jQuery(".social-links").trigger("updateLinks")},function(n,r,o){var i,a=n.getElementsByTagName(r)[0];n.getElementById(o)||((i=n.createElement(r)).id=o,i.src="https://connect.facebook.net/"+(e||"en_US")+"/sdk.js#xfbml=1&version=v3.0&appId="+xDecrypt(t),a.parentNode.insertBefore(i,a))}(document,"script","facebook-jssdk"))},loadDisqusAPI=function(t){LOCAL||function(e,n){(n=e.createElement(n)).async=1,n.src="https://"+xDecrypt(t)+".disqus.com/embed.js",n.setAttribute("data-timestamp",+new Date),(e.head||e.body).appendChild(n)}(document,"script")},loadPinterestAPI=function(){LOCAL||function(t,e){(e=t.createElement(e)).async=1,e.src="https://assets.pinterest.com/js/pinit.js",(t.head||t.body).appendChild(e)}(document,"script")},loadAPIs=function(t,e){if(t&&!isEmpty(t))for(var n in t)if(typeof e===UNDEF||e[n])switch(n){case"googleAnalytics":loadGoogleAnalytics(t[n][0],t[n][1],t[n][2]);break;case"googlePlus":loadGoogleAPI(t[n][0],t[n][1]);break;case"facebook":loadFacebookAPI(t[n][0]);break;case"disqus":loadDisqusAPI(t[n][0]);break;case"pinterest":loadPinterestAPI()}},askTrackingConsent=function(t,e){if((e&&!isEmpty(e)||t.cookiePolicy)&&!LOCAL){t=$.extend({},{stay:15,buttonClass:"button"},t),e=e||{};var n=getTranslations({close:"Close",cookiePolicyText:"This album is using cookies to remember your preferences. It does not track you, nor does it store personal data.",cookiePolicyAgree:"Got it",gdprComplianceText:"This site uses the following external services that may track y
8our visits anonymously. Disabling tracking will stop their functionality.",allowAll:"Allow all",denyAll:"Deny all",allowSelected:"Allow selected",cookiePolicyLearnMore:"Learn more"}),r=$.albumCookie("trackingConsent"),o=!1,i=!1,a="icon-checkmark",s=function(t){var e=$(t.target),n=e.hasClass(a);e.toggleClass(a,!n),l()},l=function(){var t=$("#trackingConsent span."+a).length>0;$("#allow,#deny").toggle(!t),$("#allowsel").toggle(t)},c=function(t){var n,r=$("#trackingConsent span");return n=$.extend({},$.albumCookie("trackingConsent"),{cookie:1}),"allow"===this.id?r.each(function(){$(this).addClass(a),n[$(this).attr("id")]=1}):"deny"===this.id?r.each(function(){$(this).removeClass(a),n[$(this).attr("id")]=0}):"allowsel"===this.id&&r.each(function(t){n[$(this).attr("id")]=$(this).hasClass(a)}),$.albumCookie("trackingConsent",n,31622400),u(),loadAPIs(e,n),!1},u=function(){$("#cookiepolicy").on("transitionend",function(){$(this).remove()}).css({opacity:0,transform:"translate(-50%,120%)"})};if(r?(o=!function(){for(var t in e)if(!r.hasOwnProperty(t))return!1;return!0}(),i=t.hasOwnProperty("cookiePolicy")&&t.cookiePolicy&&!r.hasOwnProperty("cookie")):(o=!isEmpty(e),i=t.hasOwnProperty("cookiePolicy")&&t.cookiePolicy),o||i){var d,f=$("<div>",{id:"cookiepolicy"}).appendTo($("body")),p=$("<div>",{class:"texts"}).appendTo(f),h=$("<div>",{class:"buttons"}).appendTo(f);if(f.append($("<a>",{class:"close icon-close "+t.buttonClass,title:n.close}).on("click",u)),i&&(d=$("<p>",{id:"cookiePolicy",html:n.cookiePolicyText}).appendTo(p),o||h.append($("<a>",{id:"agree",class:"icon-ok "+t.buttonClass,text:" "+n.cookiePolicyAgree}).on("click",c))),o){d=$("<p>",{id:"trackingConsent",html:n.gdprComplianceText}).appendTo(p);for(var g in e)d.append($("<span>",{id:g,class:"checkbox"+(r&&r[g]?" "+a:""),html:" "+g.capitalize()}).on("click",s));h.append($("<a>",{id:"allow",class:"icon-ok "+t.buttonClass,text:" "+n.allowAll}).on("click",c)),h.append($("<a>",{id:"deny",class:"alert icon-close "+t.buttonClass,text:" "+n.denyAll}).on("click",c)),h.append($("<a>",{id:"allowsel",class:"icon-ok "+t.buttonClass,text:" "+n.allowSelected}).on("click",c)),l()}t.cookiePolicyUrl&&p.append(" ").append($("<a>",{text:n.cookiePolicyLearnMore,target:"_blank",href:t.cookiePolicyUrl})),f.css({opacity:1,transform:"translate(-50%,0)"}),setTimeout(u,1e3*t.stay)}else loadAPIs(e,r)}};addClass(document.getElementsByTagName("html")[0],(TOUCHENABLED?"":"no-")+"touch"),addClass(document.getElementsByTagName("html")[0],(HIDPI?"":"no-")+"hidpi"),function(t,e){"use strict";var n,r,o=!1,i=1;log=function(e){var a=function(t){if(Array.isArray(t)){for(var e="",n=0;n<t.length;n++)e+=a(t[n])+", ";return"[ "+e.substring(0,e.length-2)+" ]"}if("object"==typeof t){e="";for(var n in t)e+=n+": "+a(t[n])+",<br>";return"{ "+e+" }"}return isNaN(t)?t:parseInt(t)===t?t:t.toFixed(4)};DEBUG&&!o&&(n||(n=t('<div id="log" style="position:fixed;left:0;top:0;width:200px;bottom:0;overflow:auto;padding:10px;background-color:rgba(0,0,0,0.5);color:#fff;font-size:0.75em;z-index:999999"></div>').hover(function(){o=!0},function(){o=!1}).appendTo("body")),e===r?n.children().first().empty().html(r+" <sup>("+ ++i+")</sup>"):(t('<div style="height:3em;overflow:auto;">'+a(e)+"</div>").prependTo(n),r=e,i=1))},t.fn.logEvents=function(e){if(DEBUG){var n=e||"mousedown mouseup mouseover mouseout mousewheel wheel dragstart click blur focus load unload reset submit change abort cut copy paste selection drag drop orientationchange touchstart touchmove touchend touchcancel pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp gesturestart gesturechange gestureend";return this.each(function(){t(this).on(n,function(t){return typeof t===UNDEF?log("Undefined event"):t.target?"log"!==t.target.id&&log(t.type+' <span style="padding:0 4px;font-size:0.75em;background-color:#000;border-radius:4px;"><b>'+(t.target.nodeName?t.target.nodeName.toLowerCase():"???")+"</b>"+(t.target.id?":"+t.target.id:"")+"</span>"+(t.relatedTarget?' <span style="padding:0 4px;font-size:0.6em;background-color:#800;border-radius:4px;"><b>'+t.relatedTarget.nodeName.toLowerCase()+"</b>"+(t.relatedTarget.id?":"+t.relatedTarget.id:"")+"</span>":"")):log("No event target!"),!0})})}},t.fn.logCss=function(e,n,r){if(DEBUG){r=r||20,n=n||2e3;var o=new Date;return this.each(function(){var i=t(this),a=function(t){var e=new Date-o;log(e+" :: "+t+" = "+i.css(t)),e>n&&clearInterval(s)},s=setInterval(function(){if(Array.isArray(e))for(var t=0;t<e.length;t++)a(e[t]);else a(e)},r)})}},t.fn.setFocus=function(t){this.length&&(typeof t!==UNDEF?this[0].focus(t):this[0].focus())},void 0===t.fn.deserialize&&(t.fn.deserialize=function(e){if(!e)return this;var n=t(this),r=e.replace(/\+/g,"%20").split("&");return t.each(r,function(t,e){var r=e.split("="),o=decodeURIComponent(r[0]),i=null!==r[1]?decodeURIComponent(r[1]):"",a=n.find("[name="+o+"]");if(!a.length)return!0;
8if("radio"===a[0].type||"checkbox"===a[0].type){var s=a.filter('[value="'+i+'"]'),l=s.length;l||"on"!==i?s.prop("checked",l):a.eq(0).prop("checked",!0)}else a.val(i)}),this}),void 0===t.when.all&&(t.when.all=function(e){var n=new t.Deferred;return t.when.apply(t,e).then(function(){n.resolve(Array.prototype.slice.call(arguments))},function(){n.reject(Array.prototype.slice.call(arguments))}),n}),t.fn.getRotate=function(){if(this&&this.length){var t,e=window.getComputedStyle(this[0],null),n=e.getPropertyValue("transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-webkit-transform");if(n&&(t=n.match(/matrix3d\(([^\)]+)\)/))&&t&&t.length>2)return t=t[1].split(/\s*,/),Math.round(Math.atan2(parseFloat(t[1]),parseFloat(t[0]))*(180/Math.PI))}return 0},t.fn.getMatrix=function(){if(this&&this.length){var t,e=window.getComputedStyle(this[0],null),n=e.getPropertyValue("transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-webkit-transform"),r=[];if(n&&(t=n.match(/matrix(3d)?\(([^\)]+)\)/))&&t&&t.length>2)return(t=t[2].split(/,\s*/)).forEach(function(t){r.push(parseFloat(t))}),r}return[1,0,0,1,0,0]},t.fn.getTranslate=function(){if(this&&this.length){var t=this.getMatrix();return[t[4],t[5]]}return[0,0]},t.fn.getScale=function(){if(this&&this.length){var t=this.getMatrix();return[t[0],t[3]]}return[1,1]},t.fn.backwards=[].reverse,t.fn.waitAllImg=function(e,n,r){if(this&&this.length){var o=t(this),i=[];return function(e){return e.filter("img[src]").not('[src=""]').each(function(){i.push(function(e){var n=new t.Deferred,r=new Image;return r.onload=function(){n.resolve(e)},r.onerror=function(){n.reject(new Error("Image not found: "+e.src))},r.src=e.src,n}(this))}),e.filter("video[src]").not('[src=""]').each(function(){i.push(function(e){var n=new t.Deferred,r=document.createElement("VIDEO");return r.addEventListener("loadedmetadata",function(){n.resolve(e)}),r.addEventListener("error",function(){n.reject(new Error("Video not found: "+e.src))}),r.src=e.src,n}(this))}),t.when.all(i)}(o).then(function(t){typeof n===FUNCTION&&n!==e&&n.call(t)},function(t){typeof r===FUNCTION&&r.call(t)}).then(function(){typeof e===FUNCTION&&e.call(o)}),this}e.call(this)},t.fn.askPermission=function(e){var n=getTranslations({restrictedLinkTitle:"Restricted material",restrictedLinkQuestion:"Please verify your age to proceed!",restrictedLinkYes:"I´m over 18",restrictedLinkNo:"I´m below 18"});return t(this).filter("[href]").each(function(){t(this).data("href",t(this).attr("href")),t(this).attr("href",null),t(this).on("click._lap_",function(e){var r=t.extend({},n,function(t){var e={},n=t.data("ask-permission");return n&&null!==(n=n.split("::"))[0]&&(e.restrictedLinkTitle=n[0],null!==n[1]&&(e.restrictedLinkQuestion=n[1],null!==n[2]&&(e.restrictedLinkYes=n[2],null!==n[3]&&(e.restrictedLinkNo=n[3])))),e}(t(this)));return e.preventDefault(),r.link=t(this).data("href"),t("body").modal(t('<div class="text-center">'+r.restrictedLinkQuestion+"</div>"),[{t:r.restrictedLinkYes,c:"icon-checkmark",h:function(){window.location.href=r.link}},{t:r.restrictedLinkNo,c:"icon-close alert",h:function(){return!0}}],{icon:"warning",class:"small warning",title:r.restrictedLinkTitle}),!1})})}}(jQuery); 9const J={ALBUM:"album",FOLDERS:"folders",NAME:"name",PATH:"path",THUMB:"thumb",IMAGE:"image",WIDTH:"width",HEIGHT:"height",RENDITIONS:"renditions",ORIGINAL:"original",OBJECTS:"objects",FILEDATE:"fileDate",COMMENT:"comment",TITLE:"title",KEYWORDS:"keywords",COUNTERS:"counters",DEEPCOUNTERS:"deepCounters",FILESIZE:"fileSize",CATEGORY:"category",RATING:"rating",PRICE:"price",CAMERA:"camera",VIDEO:"video",DURATION:"duration",FPS:"fps",HIDDEN:"hidden",VIEW:"view",INTERNALLINK:"internalLink",LEVEL:"level",PATHREF:"pathRef",PARENTREF:"parentRef",RELPATH:"relPath",FOLDERCAPTION:"folderCaption",IMAGECAPTION:"imageCaption",THUMBCAPTION:"thumbCaption",PHOTODATA:"photodata",LOCATION:"location",HIDELOCATION:"hideLocation",DISABLEFEEDBACK:"disableFeedback",REGIONS:"regions",SHOP:"shop",EXTERNAL:"external",PROJECTIONTYPE:"projectionType",GPANO:"gpano",ORIGINALFILE:"originalFile",SLIDESHOWINTERVAL:"slideshowInterval",TRANSITIONSPEED:"transitionSpeed",DATES:"dates",ADDED:"added",DATETAKEN:"dateTaken",FILEMODIFIED:"fileModified",DATERANGE:"dateRange",MOSTPHOTOS:"mostphotos",HIDEFOTOMOTO:"hideFotomoto",FOTOMOTOCOLLECTION:"fotomotoCollection",AUDIOCLIP:"audioClip",PANORAMA:"panorama",FILTERS:"filters",SORT
9:"sort",VISITORRATING:"visitorRating",OBJ:"obj",LOADCOUNTER:"loadcounter",TOTAL:"total",FOLDERINDEX:"folderindex",READY:"ready",ONREADY:"onReady",DEEP:"deep",SIZE:"size",CONT:"cont",TYPE:"type"},JCAMERAFIELDS=["aperture","exposureTime","originalDate","cameraModel","location","focusDistance","focalLength35mm","cameraMake","resolution","isoEquivalent","flash","focalLength"];var Album=function(e,t){let r,n,a,E=null,l={treeFile:"tree.json",dataFile:"data1.json",deepDataFile:"deep-data.json",indexName:"index.html",folderImageFile:"folderimage.jpg",folderImageDims:[1200,800],folderThumbFile:"folderthumb.jpg",folderThumbDims:[1024,768],thumbDims:[240,180],thumbsDir:"thumbs",slidesDir:"slides",hiresDir:"hi-res",hiDpiThumbs:!1,hiDpiImages:!1,useOriginals:!1,thumbsFillFrame:!0,audioPoster:"audio.poster.png",defaultAudioPosterSize:[628,360],videoPoster:"video.poster.png",defaultVideoPosterSize:[628,360],rootPath:"",relPath:"",loadDeep:!1,lazy:!0,fatalError:(e,t)=>y("Error: "+(typeof t===UNDEF?translate(e):translate(e).replace(/\{0\}/g,t))),possibleTypes:["folder","webPage","webLocation","image","video","audio","other"],locale:"en-US"},i=getTranslations({and:"and",from:"From {0}"}),s=new RegExp(`\\s+(?:&|${i.and})\\s+`,"gu"),O=null,h="",p=[],f=[],T=[],A=!1,D=!1,u=[],I=()=>n&&n.hasOwnProperty(J.DEEP)&&n[J.DEEP],y=e=>{console&&typeof e!==UNDEF&&(e.match(/^Error\:/i)&&console.error("jalbum-album.js "+e),typeof DEBUG!==UNDEF&&DEBUG&&(e.match(/^Warning\:/i)?console.warn("jalbum-album.js "+e):e.match(/^Info\:/i)?console.info("jalbum-album.js "+e):console.log("jalbum-album.js "+e)))},c=e=>decodeURIComponent(e.slice(e.lastIndexOf("/")+1)),P=e=>{var t=b(e).match(/\.(\w+)$/);return t?t[1]:""},N=e=>e.hasOwnProperty(J.CATEGORY)&&-1!=="image.video.audio.other".indexOf(e[J.CATEGORY]),R=function(){if(arguments.length){let e=[];for(let t,r=0;r<arguments.length;r++)(t=arguments[r]).length&&("/"===t?e=[]:("/"===t[0]&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t.length&&e.push(t)));return e.join("/")}return""},g=e=>e&&e.hasOwnProperty(J.PATHREF)&&e[J.PATHREF]?p[e[J.PATHREF]-1]:"",L=e=>e&&e.hasOwnProperty(J.RELPATH)&&e[J.RELPATH]?f[e[J.RELPATH]-1]:"",F=e=>typeof e!==UNDEF?null!==O?R(O,g(e)):L(e):O||"",C=e=>typeof e!==UNDEF?g(e):"",S=e=>{if(typeof e!==UNDEF){let t=F(e),r=e[J.CATEGORY]||"folder";return"folder"===r?t:"video"===r?R(t,e[J.VIDEO][J.PATH]):"audio"===r||"other"===r||e.hasOwnProperty(J.ORIGINAL)?R(t,e[J.ORIGINAL][J.PATH]):"image"===r?R(t,e[J.IMAGE][J.PATH]):"webPage"===r?R(t,e[J.PATH]):e[J.PATH]}return null},m=e=>typeof e!==UNDEF?g(e)+("folder"!==e[J.CATEGORY]?e[J.PATH]:""):null,H=e=>{if(typeof e!==UNDEF){if("video"===e[J.CATEGORY])return[e[J.VIDEO][J.WIDTH],e[J.VIDEO][J.HEIGHT]];if(e.hasOwnProperty(J.ORIGINAL))return[e[J.ORIGINAL][J.WIDTH],e[J.ORIGINAL][J.HEIGHT]]}return null},G=e=>typeof e!==NUMBER||e<=0?n:--e>p.length?(y("Error: out of bounds path reference ("+e+")!"),null):U(p[e]),U=e=>{if(typeof e===UNDEF)return null;if(!e.length)return n;e.endsWith("/")&&(e=e.slice(0,-1)),e.startsWith("/")&&(e=e.slice(1));let t,r=n,o=e.split("/");for(t=0;t<o.length;t++){if(I()){if(r.hasOwnProperty(J.OBJECTS)&&(r=r[J.OBJECTS].find(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===o[t])))continue}else if(r.hasOwnProperty(J.FOLDERS)&&(r=r[J.FOLDERS].find(e=>e[J.PATH]===o[t])))continue;return null}return t===o.length?r:null},B=e=>{if(typeof e===UNDEF&&(e=a),e===n)return null;let t=G(e.hasOwnProperty(J.PARENTREF)?e[J.PARENTREF]:e[J.PATHREF]);return t===e?null:t},M=function(e,t,r){if(typeof t!==FUNCTION)return;let o=function(e,t){let n=t[0],o=t[1];if(e.hasOwnProperty(J.OBJECTS)){let t;n.endsWith(".webloc")?(n=n.slice(0,-7),t=e[J.OBJECTS].find(function(e){return"webLocation"===e[J.CATEGORY]&&e[J.IMAGE][J.PATH].slice(7).stripExt()===n})):t=e[J.OBJECTS].find(function(e){return e.hasOwnProperty(J.ORIGINAL)&&e[J.ORIGINAL][J.PATH]===n||e.hasOwnProperty(J.IMAGE)&&(e[J.IMAGE][J.PATH]===n||e[J.IMAGE][J.PATH]===SLIDES_DIR+"/"+n)||e[J.PATH]===n}),typeof t===UNDEF&&(t=null),typeof r!==UNDEF?o.call(t,r):o.call(t)}};if(e)if(e.endsWith("/"))typeof r!==UNDEF?t.call(U(e),r):t.call(U(e));else{let r=e.lastIndexOf("/"),a=-1===r?n:U(e.substring(0,r)),E=e.substring(r+1);a&&(D||a.hasOwnProperty(J.READY)&&a.ready?o(a,[E,t]):I()?Je(a,o,[E,t]):oe(a,o,[E,t]))}else typeof r!==UNDEF?t.call(n,r):t.call(n);return null},b=e=>"video"===e[J.CATEGORY]?c(e[J.VIDEO][J.PATH]):e.hasOwnProperty(J.ORIGINAL)?c(e[J.ORIGINAL][J.PATH]):e[J.NAME],Y=e=>(e=e||a).hasOwnProperty(J.LEVEL)?e[J.LEVEL]:Y(B(e)),x=e=>(e||a)[J.TITLE]||"",v=e=>((e||a)[J.NAME]||"").replace(/\.\w+$/,"").replace(/_/g," "),W=e=>R(F(e),e.hasOwnProperty(J.LEVEL)?e[J.THUMB][J.PATH].replace(e[J.PATH]+"/",""):e[J.THUMB][J.PATH]),V=e=>R(F(e),e.hasOwnProperty(J.LEVEL)?e[J.THUMB][J.PATH].replace(l.thumbsDir+"/",l.slidesDir+"/"):e.hasOwnProperty(J.ORIGINALFILE)?e[J.ORIGINALFILE]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]),j=e=>e.hasOwnProperty(J.ORIGINALFILE)?R(F(e),e[J.ORIGINALFILE]):e.hasOwnProperty(J.ORIGINAL)?R(F(e),e[J.ORIGINAL][J.PATH]):null,k=(e,t,r)=>{if(WEBP_LOSSY||(e=e.filter(e=>!e.name.endsWith(".webp"))),e.length>1){let n=t[0]*PIXELRATIO,o=t[1]*PIXELRATIO;
9e.forEach(e=>{let t=r?Math.max(n/e.width,o/e.height):Math.min(n/e.width,o/e.height);e.match=t>1?3*(1-1/t):1-t}),e.sort((e,t)=>e.match-t.match)}return e[0]},X=(e,t)=>e.slice(0,e.lastIndexOf("/")+1)+t,_=(e,t,r,n)=>n?t[0]*r>=e[0]&&t[1]*r>=e[1]:t[0]*r>=e[0]||t[1]*r>=e[1],K=e=>{let t=0,r=typeof e===UNDEF?a:e;return r.hasOwnProperty(J.DEEPCOUNTERS)&&r[J.DEEPCOUNTERS].hasOwnProperty(J.FOLDERS)?r[J.DEEPCOUNTERS][J.FOLDERS]+1:(I()?r.hasOwnProperty(J.OBJECTS)&&r[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=K(e))}):r.hasOwnProperty(J.FOLDERS)&&r[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=K(e))}),r.hasOwnProperty(J.DEEPCOUNTERS)||(r[J.DEEPCOUNTERS]={}),r[J.DEEPCOUNTERS][J.FOLDERS]=t,t+1)},z=e=>n.hasOwnProperty(e)?n[e]:null,$=(t,r)=>{let n={};do{t.hasOwnProperty(r)&&(n=e.extend(!0,{},t[r],n))}while(t=B(t));return Object.getOwnPropertyNames(n).length?n:null},Z=(t,r)=>{if(r.indexOf(".")>=0){if("album"===(r=r.split("."))[0])return z(r[1]);do{if(t.hasOwnProperty(r[0]))return e.extend(!0,{},t[r[0]][r[1]])}while(t=B(t));return null}do{if(t.hasOwnProperty(r))return e.extend(!0,{},t[r])}while(t=B(t));return null},q=(e,t)=>{let r=t[J.PATH],n=-1;return I()?e.hasOwnProperty(J.OBJECTS)&&(n=e[J.OBJECTS].findIndex(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===r)):e.hasOwnProperty(J.FOLDERS)&&(n=e[J.FOLDERS].findIndex(e=>e[J.PATH]===r)),n},Q=function(t,r,n){if(!Array.isArray(t))return null;Array.isArray(r)||(n=r||{},r=null);let o=e.extend({sortBy:"original",reference:J.DATETAKEN,reverse:!1,foldersFirst:!0},n);switch(o.sortBy){case"random":t.sort(()=>.5-Math.random()),r&&r.sort(()=>.5-Math.random());break;case"date":let e=o.reference;o.reverse?(t.sort((t,r)=>(t.hasOwnProperty(J.DATES)?t[J.DATES][e]:t[J.FILEDATE])-(r.hasOwnProperty(J.DATES)?r[J.DATES][e]:r[J.FILEDATE])),r&&r.sort((e,t)=>e[J.FILEDATE]-t[J.FILEDATE])):(t.sort((t,r)=>(r.hasOwnProperty(J.DATES)?r[J.DATES][e]:r[J.FILEDATE])-(t.hasOwnProperty(J.DATES)?t[J.DATES][e]:t[J.FILEDATE])),r&&r.sort((e,t)=>t[J.FILEDATE]-e[J.FILEDATE]));break;case J.NAME:o.reverse?(t.sort((e,t)=>(""+t[J.NAME]).localeCompare(""+e[J.NAME])),r&&r.sort((e,t)=>(""+t[J.NAME]).localeCompare(""+e[J.NAME]))):(t.sort((e,t)=>(""+e[J.NAME]).localeCompare(""+t[J.NAME])),r&&r.sort((e,t)=>(""+e[J.NAME]).localeCompare(""+t[J.NAME])));break;case J.FILESIZE:o.reverse?t.sort((e,t)=>e[J.FILESIZE]-t[J.FILESIZE]):t.sort((e,t)=>t[J.FILESIZE]-e[J.FILESIZE]);break;default:o.reverse&&(t.reverse(),r&&r.reverse())}return r?o.foldersFirst?r.concat(t):t.concat(r):t},ee=function(e,t){if(typeof e!==UNDEF&&typeof t===STRING){if("label"===t)return v(e);if("fileLabel"===t)return e.hasOwnProperty(J.TITLE)?e[J.TITLE]:v(e);if("originalTime"===t&&e.hasOwnProperty(J.DATES)&&e[J.DATES].hasOwnProperty(J.DATETAKEN))return new Date(1e3*e[J.DATES][J.DATETAKEN]).toLocaleString(l.locale,{month:"2-digit",day:"2-digit",hour12:!1,hour:"2-digit",minute:"2-digit"});if(e.hasOwnProperty(t))return e[t]}return""},te="../../../../../../../../../../../../../../../../../../../../",re=function(){let e=function(t,r,n,o){let a=r?R(n,t[J.PATH]):"",E=r?(e=>{if(typeof e===UNDEF||!e)return 0;"/"!==e.slice(-1)&&(e+="/");let t=p.indexOf(e);return t>=0?t+1:p.push(e)})(a):0,i=null===O?(e=>{if(typeof e===UNDEF||!e)return 0;"/"!==e.slice(-1)&&(e+="/");let t=f.indexOf(e);return t>=0?t+1:f.push(e)})(function(e,t){if(typeof e===UNDEF||!e.length||"/"===e)return t||"";if(typeof t===UNDEF||!t.length||"/"===t)return te.slice(0,3*e.split("/").length);if(e===t)return"";for(e=e.split("/"),t=t.split("/");e.length&&t.length&&e[0]===t[0];)e.shift(),t.shift();return te.slice(0,3*e.length)+t.join("/")}(l.relPath,a)):-1;if(t[J.LEVEL]=r,t[J.PATHREF]=E,null===O&&(t[J.RELPATH]=i),t.hasOwnProperty(J.CATEGORY)||(t[J.CATEGORY]="folder"),r&&(t[J.PARENTREF]=o),t[J.THUMB][J.PATH].startsWith(t[J.PATH]+"/"+l.thumbsDir)&&(t[J.THUMB][J.PATH]=t[J.THUMB][J.PATH].slice(t[J.PATH].length+1)),l.loadDeep&&t.hasOwnProperty(J.OBJECTS)){t[J.OBJECTS].filter(e=>"folder"!==e[J.CATEGORY]).forEach(e=>{e[J.PATHREF]=E,null===O&&(e[J.RELPATH]=i)});let n=0;t[J.OBJECTS].filter(e=>
9"folder"===e[J.CATEGORY]).forEach(o=>{n||(t[J.FOLDERS]=[]),t[J.FOLDERS].push(n++),e(o,r+1,a,E)})}else t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(t=>e(t,r+1,a,E))};e(n,0,"",0)},ne=function(e){e.hasOwnProperty(J.ONREADY)&&Array.isArray(e[J.ONREADY])&&(e[J.ONREADY].forEach(t=>{t.length>1?t[0](e,t[1]):t[0](e)}),e[J.ONREADY]=[])},oe=function(e,t,r){e&&typeof t===FUNCTION&&!e.hasOwnProperty(J.INTERNALLINK)&&(D||e.hasOwnProperty(J.READY)&&e[J.READY]?typeof r!==UNDEF?t(e,r):t(e):(e.hasOwnProperty(J.ONREADY)||ae(e),typeof r!==UNDEF?e[J.ONREADY].push([t,Array.isArray(r)?r:[r]]):e[J.ONREADY].push([t])))},ae=function(t,r){if(!t.hasOwnProperty(J.INTERNALLINK))if(t.hasOwnProperty(J.ONREADY)||(t[J.ONREADY]=[]),t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].length)ne(t);else{let o=R(F(t),l.dataFile)+h;T||(T=[]),T.push(e.getJSON(o).done(function(e){!function(e,t){let r,o=0;e[J.OBJECTS]=[],t[J.OBJECTS].forEach(t=>{if(n[J.LOADCOUNTER][t[J.CATEGORY]]++,n[J.LOADCOUNTER][J.TOTAL]++,"folder"===t[J.CATEGORY])if(o<e[J.FOLDERS].length){r=e[J.FOLDERS][o];for(let e in t)e===J.OBJECTS||e===J.ALBUM||r.hasOwnProperty(e)||(r[e]=t[e]);(t={})[J.FOLDERINDEX]=o++}else y('Database error: Folder count inconsistency in folder "'+e[J.NAME]+'". tree.json <> data1.json');else t[J.PATHREF]=e[J.PATHREF],t[J.RELPATH]=e[J.RELPATH];e[J.OBJECTS].push(t)}),e[J.READY]=!0,ne(e)}(t,e)}).fail(function(e,t,r){y('Error: Objects could not be loaded for "'+o+'": '+t+", "+r)})),r&&t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(e=>ae(e,!0))}},Ee=function(){n&&(n[J.LOADCOUNTER]={},n[J.LOADCOUNTER][J.TOTAL]=0,l.possibleTypes.forEach(e=>{n[J.LOADCOUNTER][e]=0}))},le=function(){return null!==(a=U(l.relPath))||(typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"noSuchFolder",l.relPath),!1)},ie=function(){T=[],ae(l.lazy?a:n,!l.lazy),e.when.apply(e,T).done(function(){let e=new Date;typeof DEBUG!==UNDEF&&DEBUG&&y(T.length+" folder(s) loaded: "+(e-E)+"ms"),A=!0,T=null,typeof l.ready===FUNCTION?(l.ready.call(this),l.ready=null):n.hasOwnProperty(J.FOLDERS)||typeof l.deepReady===FUNCTION&&(l.deepReady.call(this),l.deepReady=null)}).fail(function(e,t,r){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"cantLoadDataForFolder",a[J.PATH])})},se=function(e){e.hasOwnProperty(J.READY)||(e[J.READY]=!1),l.loadDeep?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"===e[J.CATEGORY]&&se(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>se(e))},Je=function(e,t,r){e&&typeof t===FUNCTION&&(D?typeof r!==UNDEF?t(e,r):t(e):typeof r!==UNDEF?u.push([e,t,Array.isArray(r)?r:[r]]):u.push([e,t]))},Oe=function(t,r){if(D)return void t.call(n);let o=new Date,a=R(O||l.rootPath,l.deepDataFile)+h;return e.getJSON(a).done(function(e){typeof DEBUG!==UNDEF&&DEBUG&&(y("Deep data loaded: "+(new Date-o)+"ms"),o=new Date),function(e){if(l.loadDeep=!0,typeof n===UNDEF)(n=e)[J.DEEP]=!0,Ee(),re();else{let t=n,r=function(e,t){for(let r in e)r===J.FOLDERS||r===J.ALBUM||r===J.OBJECTS||r===J.READY||r===J.ON
9READY||t.hasOwnProperty(r)||(t[r]=e[r]);if(e.hasOwnProperty(J.ONREADY)&&e[J.ONREADY].forEach(e=>e.length>1?e[0](t,e[1]):e[0](t)),t.hasOwnProperty(J.OBJECTS)){let n=e[J.PATHREF],o=e[J.RELPATH]||null,a=0;t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]?(e[J.PATHREF]=n,o&&(e[J.RELPATH]=o)):(a||(t[J.FOLDERS]=[]),t[J.FOLDERS].push(a++))}),e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(n=>{const o=t[J.OBJECTS].find(e=>"folder"===e[J.CATEGORY]&&e[J.PATH]===n[J.PATH]);o?r(n,o):y('Database inconsistency when accessing folder "'+e[J.NAME]+'"!')})}};(n=e)[J.DEEP]=!0,r(t,n)}}(e),le()&&(D=!0,typeof t===FUNCTION?t.call(this):(typeof l.ready===FUNCTION&&(l.ready.call(this),l.ready=null),typeof l.deepReady===FUNCTION&&(l.deepReady.call(this),l.deepReady=null)),u.length&&(u.forEach(e=>e.length>2?e[1](e[0],e[2]):e[1](e[0])),u=[]))}).fail(function(e,t,n){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"databaseAccessDenied",a),typeof r===FUNCTION&&r.call(this)})};return t&&(typeof DEBUG!==UNDEF&&DEBUG&&y("new Album("+JSON.stringify(t)+");"),(t=>{if(E)return E;E=new Date,typeof t!==UNDEF&&e.extend(l,t),A=D=!1,l.hasOwnProperty("albumPath")&&"/"!==(O=l.albumPath).slice(-1)&&(O+="/"),r=(e=>{if(typeof e===UNDEF)return window.location.href.substring(0,window.location.href.lastIndexOf("/"));if(e.match(/^https?\:\/\//i))return e;if("/"===e[0])return window.location.origin+e;{let t=window.location.href;for(t=t.substring(0,t.lastIndexOf("/")),e.endsWith("..")&&(e+="/");e.startsWith("../");)t=t.substring(0,t.lastIndexOf("/",t.length-2)),e=e.slice(3);return t+(e?"/"+e:"")}})(O||l.rootPath),l.hasOwnProperty("makeDate")&&(h="?"+l.makeDate),l.loadDeep||l.hasOwnProperty("deepReady")?Oe():function(t){let r=new Date,o=R(O||l.rootPath,l.treeFile)+h;l.loadDeep=!1,e.getJSON(o).done(function(e){n=e,Ee(),se(n),typeof DEBUG!==UNDEF&&DEBUG&&(y("Tree loaded: "+(new Date-r)+"ms"),r=new Date),le()&&(re(),typeof t===FUNCTION&&t.call(this))}).fail(function(e,t,r){typeof l.fatalError===FUNCTION&&l.fatalError.call(this,"localAccessBlocked",o)})}(ie)})(t)),{isImage:e=>e.hasOwnProperty(J.CATEGORY)&&"image"===e[J.CATEGORY],isAudio:e=>e.hasOwnProperty(J.CATEGORY)&&"audio"===e[J.CATEGORY],isVideo:e=>e.hasOwnProperty(J.CATEGORY)&&"video"===e[J.CATEGORY],isPage:e=>e.hasOwnProperty(J.CATEGORY)&&"webPage"===e[J.CATEGORY],isFolder:e=>e.hasOwnProperty(J.FOLDERINDEX)||e.hasOwnProperty(J.LEVEL),isView:e=>e.hasOwnProperty(J.VIEW),isLightboxable:N,isCurrentFolder:e=>e===a,getAlbumPath:()=>{if(null!==O)return O;let e=window.location.pathname,t=a[J.LEVEL];do{e=e.substring(0,e.lastIndexOf("/")),t-=1}while(t>=0);return e},getAlbumRootPath:()=>r,getPath:F,getAbsolutePath:e=>e.hasOwnProperty(J.LEVEL)?R(O||r,C(e)):R(O||r,C(e),l.indexName+"#img="+e[J.PATH]),getItemPath:S,getAudioClipPath:e=>typeof e!==UNDEF&&e.hasOwnProperty(J.AUDIOCLIP)?R(F(e),e[J.AUDIOCLIP][J.PATH]):null,getDimensions:e=>{if(typeof e===UNDEF||"other"===e[J.CATEGORY]&&"pdf"===P(e).toLowerCase())return null;if(e.hasOwnProperty(J.EXTERNAL)){let t=e[J.EXTERNAL][J.SIZE];return t?(t=t.split("x"),[t[0],t[1]||Math.round(.75*t[0])]):(t=guessDimensions(e[J.EXTERNAL][J.CONT]))||(e[J.EXTERNAL][J.CONT].includes("vimeo.com")||e[J.EXTERNAL][J.CONT].includes("youtube.com")||e[J.EXTERNAL][J.CONT].includes("youtu.be")?(t=e[J.EXTERNAL][J.CONT].match(/.*style="padding(-bottom)?:\s?([\d\.]+)%/))&&t&&t.length>1?[1280,Math.round(w*parseFloat(t[2])/100)]:[1280,720]:[e[J.IMAGE][J.WIDTH],e[J.IMAGE][J.HEIGHT]])}return"audio"===e[J.CATEGORY]&&e[J.IMAGE][J.PATH].endsWith("res/audio.png")?[l.defaultAudioPosterSize[0],l.defaultAudioPosterSize[1]]:"video"===e[J.CATEGORY]?[e[J.VIDEO][J.WIDTH],e[J.VIDEO][J.HEIGHT]]:l.hiDpiImages?[e[J.IMAGE][J.WIDTH]/2,e[J.IMAGE][J.HEIGHT]/2]:[e[J.IMAGE][J.WIDTH],e[J.IMAGE][J.HEIGHT]]},getOriginalDimensions:H,getMaxDimensions:e=>{if(typeof e!==UNDEF){let t;if(l.useOriginals&&(t=H(e)))return t;if(e.hasOwnProperty(J.IMAGE)){let r=e[J.IMAGE];if(r.hasOwnProperty(J.RENDITIONS)){t=[r[J.RENDITIONS][0][J.WIDTH],r[J.RENDITIONS][0][J.HEIGHT]];for(let e=1;e<r[J.RENDITIONS].length;e++)r[J.RENDITIONS][e][J.WIDTH]>t[0]&&(t=[r[J.RENDITIONS][e][J.WIDTH],r[J.RENDITIONS][e][J.HEIGHT]]);return t}return l.hiDpiImages?[2*r[J.WIDTH],2*r[J.HEIGHT]]:[r[J.WIDTH],r[J.HEIGHT]]}}return null},getRegions:function(e){return typeof e!==UNDEF&&e.hasOwnProperty(J.REGIONS)?JSON.parse(e[J.REGIONS]):[]},getLink:function(e){if(typeof e!==UNDEF)switch(e[J.CATEGORY]){case"folder":return F(e);case"webLocation":return e[J.PATH];case"webPage":return R(F(e),e[J.PATH]);default:return R(F(e),"#img="+e[J.PATH])}return null},getRootPath:e=>typeof e!==UNDEF?R(F(e),e[J.PATH]):null,getFolderPath:C,getRelativeFolderPath:e=>typeof e!==UNDEF?(t=>{let r,n,o=l.rootPath+g(e)+"";for(;(r=o.indexOf("../"))>0;){if(1===r||-1===(n=o.lastIndexOf("/",r-2)))return o.substring(r+3);o=o.substring(0,n)+o.substring(r+2)}return o}
9)():null,getFolder:U,getCurrentFolder:()=>a,getParent:B,getItem:M,getObjects:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]&&r.push(e)}),r},getImages:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{N(e)&&r.push(e)}),r},getFolders:e=>{let t=typeof e===UNDEF?a:e,r=[],n=e=>{let t={};for(let r in e)r!==J.OBJECTS&&r!==J.ALBUM&&r!==J.FOLDERS&&(t[r]=e[r]);return t};return t&&(I()?t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e.hidden||r.push(n(e))}):t.hasOwnProperty(J.FOLDERS)&&t[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e.hidden||r.push(n(e))})),r},getFoldersAndWeblocs:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{e.hasOwnProperty(J.FOLDERINDEX)?r.push(t[J.FOLDERS][e[J.FOLDERINDEX]]):"folder"!==e[J.CATEGORY]&&"webLocation"!==e[J.CATEGORY]||r.push(e)}),r},getAllObjects:e=>{let t=typeof e===UNDEF?a:e,r=[];return t.hasOwnProperty(J.OBJECTS)&&t[J.OBJECTS].forEach(e=>{e.hasOwnProperty(J.FOLDERINDEX)?r.push(t[J.FOLDERS][e[J.FOLDERINDEX]]):r.push(e)}),r},getMakeDate:()=>new Date(n[J.FILEDATE]),getAlbumTitle:()=>n[J.TITLE]||n[J.NAME],getItemName:b,getExtension:P,getLevel:Y,getTitle:x,getName:e=>(e||a)[J.NAME]||"",getLabel:v,getAlt:e=>x(e)||v(e),getComment:e=>(e||a)[J.COMMENT]||"",getThumbPath:W,getIconPath:e=>e[J.THUMB][J.PATH].match(/res\/\w+\.png$/)?e[J.THUMB][J.PATH]:"",getImagePath:V,getAbsoluteImagePath:e=>R(r,(e=>R(g(e),e.hasOwnProperty(J.ORIGINALFILE)?e[J.ORIGINALFILE]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]))(e)),getThemeImagePath:e=>R(F(e),l.folderImageFile),getOriginalPath:j,getVideoPath:e=>e.hasOwnProperty(J.VIDEO)?R(F(e),e[J.VIDEO][J.PATH]):null,getPosterPath:e=>{let t=e[J.CATEGORY],r=e[J.IMAGE][J.PATH];return"audio"===t&&r.endsWith("res/audio.png")||"video"===t&&r.endsWith("res/movie.png")?R(l.rootPath,"res",l[t+"Poster"]):R(F(e),e[J.IMAGE][J.PATH])},getOptimalImagePath:(e,t,r,n)=>{n=typeof n!==UNDEF&&n;if(e.hasOwnProperty(J.LEVEL))return L(e)+"/"+l.folderImageFile;if("webLocation"===e[J.CATEGORY])return V(e);if(e.hasOwnProperty(J.ORIGINALFILE))return j(e);let o=e[J.IMAGE].hasOwnProperty(J.RENDITIONS)?k(e[J.IMAGE][J.RENDITIONS],t||[window.outerWidth,window.outerHeight],n):l.hiDpiImages?{width:2*e[J.IMAGE][J.WIDTH],height:2*e[J.IMAGE][J.HEIGHT]}:{width:e[J.IMAGE][J.WIDTH],height:e[J.IMAGE][J.HEIGHT]};return typeof r!==UNDEF&&r&&e.hasOwnProperty(J.ORIGINAL)&&(t[0]>o.width||t[1]>o.height)&&e[J.ORIGINAL][J.WIDTH]>e[J.IMAGE][J.WIDTH]&&(t=>{var r=e[J.ORIGINAL][J.PATH].match(/\.\w+$/);return!!r&&-1!==".jpg.jpeg.png.webp.webm.gif".indexOf(r[0].toLowerCase())})()?j(e):o.hasOwnProperty(J.NAME)?X(V(e),o[J.NAME]):V(e)},getOptimalThumbPath:(e,t,r)=>{if(e[J.THUMB].hasOwnProperty(J.RENDITIONS)){let n=k(e[J.THUMB][J.RENDITIONS],t,l.thumbsFillFrame);if("folder"===e[J.CATEGORY])return R(F(e),X(e[J.THUMB][J.PATH],n[J.NAME]));if("video"===e[J.CATEGORY]||_(t,[n[J.WIDTH],n[J.HEIGHT]],1.07,l.thumbsFillFrame))return X(W(e),n[J.NAME]);if(typeof r!==UNDEF&&r&&e[J.IMAGE].hasOwnProperty(J.RENDITIONS))return n=k(e[J.IMAGE][J.RENDITIONS],t,l.thumbsFillFrame),X(V(e),n[J.NAME])}let n=[e[J.THUMB][J.WIDTH],e[J.THUMB][J.HEIGHT]];return l.hiDpiTHumbs&&(n[0]*=2,n[1]*=2),typeof r!==UNDEF&&r&&"video"!==e[J.CATEGORY]&&e.hasOwnProperty(J.IMAGE)&&!_(t,n,1.15,l.thumbsFillFrame)?V(e):W(e)},getSourcePath:e=>R(F(e),e.hasOwnProperty(J.ORIGINAL)?e[J.ORIGINAL][J.PATH]:e.hasOwnProperty(J.IMAGE)?e[J.IMAGE][J.PATH]:e[J.THUMB][J.PATH]),getAbsoluteItemPath:e=>R(r,S(e)),getVideoDuration:e=>{let t=e[J.VIDEO];return t&&t.hasOwnProperty(J.DURATION)?videoDurationMs(t[J.DURATION]):null},hasShop:e=>{if(typeof e===UNDEF)return n.hasOwnProperty(J.SHOP)&&n.shop.hasOwnProperty("options")&&"-"!==n.shop.options.trim();let t=$(e,J.SHOP);return t&&(t.hasOwnProperty("usePrice")&&t.usePrice&&e.hasOwnProperty(J.PRICE)&&e.price||t.hasOwnProperty("options")&&"-"!==t.options.trim())},hasLocation:e=>(!e.hasOwnProperty(J.HIDELOCATION)||!e[J.HIDELOCATION])&&(e.hasOwnProperty(J.LOCATION)||e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(J.LOCATION)),getLocation:e=>e.hasOwnProperty(J.HIDELOCATION)&&e[J.HIDELOCATION]?null:e.hasOwnProperty(J.LOCATION)?e[J.LOCATION]:e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(J.LOCATION)&&e[J.CAMERA][J.LOCATION].hasOwnProperty("lat")&&e[J.CAMERA][J.LOCATION].hasOwnProperty("long")?e[J.CAMERA][J.LOCATION].lat+","+e[J.CAMERA][J.LOCATION].long:null,disableFeedback:e=>e.hasOwnProperty(J.DISABLEFEEDBACK)?e[J.DISABLEFEEDBACK]:Z(e,J.DISABLEFEEDBACK)||!1,hideFotomoto:e=>e.hasOwnProperty(J.HIDEFOTOMOTO)?e[J.HIDEFOTOMOTO]:Z(e,J.HIDEFOTOMOTO)||!1,getPriceRange:e=>{let t=$(e||n,J.SHOP);if(t&&"-"!==t.options&&t.showPriceRange){let e=t.options.split("::"),r=Number.MAX_VALUE,n=Number.MIN_VALUE;if(e.length>1){for(let t=0;t<e.length;t++)r=Math.min(parseFloat(e[t].split("=")[1].split("+")[0]),r);if("minmax"===t.showPriceRange){for(let t=0;t<e.length;t++)n=Math.max(parseFloat(e[t].split("=")[1].split("+")[0]),n);return toCurrency(r,t.currency)+"–"+toCurrency(n,t.currency)}return i.from.template(toCurrency(r,t.currency))}return toCurrency(e[0].split("=")[1].split("+")[0],t.currency)}return""},getCurrency:()=>z(J.SHOP).currency||"EUR",getDeepFolderCount:K,getRootProperty:z,getInheritedPropertyObject:$,getInheritedProperty:Z,getProperty:(t,r,n)=>{let o;return n?o=Z(t,r):r.indexOf(".")>0?(r=r.split("."),o=t.hasOwnProperty(r[0])?t[r[0]][r[1]]:null):t.hasOwnProperty(r)&&(o=t[r]),e.extend(!0,{},o)},getPropertyObject:(t,r,n)=>n?$(t,r):t.hasOwnProperty(r)?e.extend(!0,{},t[r]):null,getNextFoldersFirstImage:function(e){let t=function(e){let t=a||a,r=B(t),n=q(r,t);if(n>=0)if(l.loadDeep){if(r.hasOwnProperty(J.OBJECTS))for(let e=n+1;e<r[J.OBJECTS].length;e++)if(!("folder"!==r[J.OBJECTS][e][J.CATEGORY]||r[J.OBJECTS][e].hasOwnProperty(J.HIDDEN)&&r[J.OBJECTS][e][J.HIDDEN]))return r[J.OBJECTS][e]}
9else if(r.hasOwnProperty(J.FOLDERS))for(let e=n+1;e<r[J.FOLDERS].length;e++)if(!r[J.FOLDERS][e].hasOwnProperty(J.HIDDEN)||!r[J.FOLDERS][e][J.HIDDEN])return r[J.FOLDERS][e];return null}(),r=function(e){if(e.hasOwnProperty(J.OBJECTS))for(let t=0;t<e[J.OBJECTS].length;t++)if(N(e[J.OBJECTS][t]))return e[J.OBJECTS][t]};t&&(t.hasOwnProperty(J.READY)&&t.ready?e(r(t)):oe(t,function(e,t){t[0](r(e))},[e]))},getPreviousFoldersLastImage:function(e){let t=function(e){let t=a||a,r=B(t),n=q(r,t);if(n>=0)if(l.loadDeep){if(r.hasOwnProperty(J.OBJECTS))for(let e=n-1;e>=0;e--)if(!("folder"!==r[J.OBJECTS][e][J.CATEGORY]||r[J.OBJECTS][e].hasOwnProperty(J.HIDDEN)&&r[J.OBJECTS][e][J.HIDDEN]))return r[J.OBJECTS][e]}else if(r.hasOwnProperty(J.FOLDERS))for(let e=n-1;e>=0;e--)if(!r[J.FOLDERS][e].hasOwnProperty(J.HIDDEN)||!r[J.FOLDERS][e][J.HIDDEN])return r[J.FOLDERS][e];return null}(),r=function(e){if(e.hasOwnProperty(J.OBJECTS))for(let t=o.length-1;t>=0;t--)if(N(e[J.OBJECTS][t]))return e[J.OBJECTS][t]};return t&&(t.hasOwnProperty(J.READY)&&t.ready?e(r(t)):oe(t,function(e,t){t[0](r(e))},[e])),null},sortItems:Q,collectByPath:function(t){if(typeof t===UNDEF||!t.hasOwnProperty("paths")||!Array.isArray(t.paths)||typeof t.ready!==FUNCTION)return[];let r,n=[],o=e.extend({folder:"",levels:0,sortBy:"original",reference:"dateTaken",reverse:!1},t),a=o.paths.length,E=0,l=(U(o.folder),function(){clearTimeout(r),E<a&&(y("Error: Timeout collecting items. Image set is incomplete ("+E+"/"+a+")!"),n=function(e){let t=[];for(let r of e)r&&t.push(r);return t}(n)),n=Q(n,{sortBy:o.sortBy,reference:o.reference,reverse:o.reverse}),o.ready.call(n,o)});r=setTimeout(l,25*a);for(let e=0;e<a;e++)M(o.paths[e],function(e){this&&typeof e!==UNDEF&&this!==window&&(n[e]=this,++E===a&&(clearTimeout(r),l(
9)))},e)},collectNItem:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r=e.extend({folder:"",levels:0,include:"images",max:0,sortBy:"original",sortOrder:0},t),n=[],o=[],E=U(r.folder),i=r.levels?((e,t)=>{let r=typeof e===UNDEF?a:e,n=r[J.LEVEL]+(typeof t===UNDEF?0:t),o=e=>{let t=1;return e[J.LEVEL]<=n&&(I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=o(e))}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||(t+=o(e))})),t};return o(r)})(E,r.levels):1,s=0,O=!1,h=-1!==r.include.indexOf("images"),p=-1!==r.include.indexOf("folders"),f=function(e){e[J.OBJECTS].forEach(e=>{"image"===e[J.CATEGORY]&&(!r.arRange||e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]>=r.arRange[0]&&e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]<=r.arRange[1])&&n.push(e)})},A=function(e){p&&o.push(e),h&&(e.hasOwnProperty(J.OBJECTS)?f(e):e[J.READY]||oe(e,f)),e[J.LEVEL]<=maxLevel&&(I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||A(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||A(e)})),s++},D=function(){A(E),setTimeout(function(){T.length?e.when.apply(e,T).done(u):u()},20)},u=function(){O||(r.max&&r.quick&&n.length+o.length>=r.max||!T.length||s>=i?(n=Q(n,o,{sortBy:-1===r.sortOrder?"random":r.sortBy||"original",reference:r.reference||J.FILEDATE,reverse:0===r.sortOrder,foldersFirst:r.include.startsWith("folders")}),r.max&&r.max<n.length&&(n=n.slice(0,r.max)),O=!0,r.ready.call(n,r)):setTimeout(u,50))};T=[],O=!1,r.hasOwnProperty("quick")||(r.quick=r.max&&"original"!==r.sortBy),maxLevel=E[J.LEVEL]+r.levels,random=-1===r.sortOrder,random&&(l.sortBy="original"),D()},collectByDate:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r,o,E=e.extend({sort:!0,reverse:!1,reference:J.DATETAKEN,depth:"current"},t),l=[],i="current"===E.depth?1:K("tree"===E.depth?n:a),s=0,O=!1,h="tree"===E.depth&&n.hasOwnProperty(J.FOLDERS)||"subfolders"===E.depth&&a.hasOwnProperty(J.FOLDERS)&&a[J.LEVEL]<3,p=function(e){e&&e.hasOwnProperty(J.OBJECTS)&&(e[J.OBJECTS].forEach(e=>{N(e)&&(d=e[J.DATES])&&(d=d[E.reference])&&d>=r&&d<=o&&l.push(e)}),s++)},f=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(e.hasOwnProperty(J.OBJECTS)?p(e):e[J.READY]||oe(e,p),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||f(e)}):e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||f(e)}))},A=function(){f("tree"===E.depth?n:a),setTimeout(y,20)},u=function(){f("tree"===E.depth?n:a),setTimeout(function(){T.length?e.when.apply(e,T).done(y):y()},20)},y=function(){O||(T.length&&i>s?setTimeout(y,20):(E.sort&&(l=Q(l,{sortBy:E.sortBy||"date",reference:E.reference||J.DATETAKEN,reverse:E.reverse||!1})),E.max&&E.max<l.length&&(l=l.slice(0,E.max)),O=!0,E.ready.call(l,E)))};T=[],O=!1,E.hasOwnProperty("end")&&(o=E.end*ONEDAY_S),E.hasOwnProperty("start")&&(r=E.start*ONEDAY_S),E.hasOwnProperty("range")&&(typeof r!==UNDEF?o=r+E.range*ONEDAY_S:typeof o!==UNDEF?r=o-E.range*ONEDAY_S:(o=Math.round(new Date/1e3),r=o-E.range*ONEDAY_S)),typeof r===UNDEF&&(r=0),typeof o===UNDEF&&(o=Math.round(new Date/1e3)),h&&!D?Oe(A,u):u()},collectItems:function(t){if(typeof t===UNDEF||!t.hasOwnProperty("terms")||typeof t.ready!==FUNCTION)return;let r,o,E,i,O=e.extend({fields:"creator,keywords,name,title,comment,regions",types:"all",depth:"current",divisible:"name,title,comment,photodata",exact:!1,caseSensitive:!1},t),h=[],p=Array.isArray(O.fields)?O.fields:O.fields.split(/,\s?/),f=p.length,A=new Array(f),u=!1,d=!1,y="all"===O.types,c={},P="current"===O.depth?1:K("tree"===O.depth?n:a),N=0,R=!1,w="tree"===O.depth&&n.hasOwnProperty(J.FOLDERS)||"subfolders"===O.depth&&a.hasOwnProperty(J.FOLDERS)&&a[J.LEVEL]<3,g=function(e,t){let n=new Array(o.length).fill(!1),a=function(e,t,r){return t=t.replaceAll('"',""),O.caseSensitive||(t=t.toLowerCase()),r?(i||(t=t.replace(E," ")),(" "+t).includes(" "+e)):u?e===t:t.startsWith(e)},l=function(e,t,r){if(!Array.isArray(t))return u?(t=t.toLowerCase(),r?t.slice(0,e.length)===e||-1!==t.indexOf(" "+e):t===e):a(e,t,r);let n=!1;for(let o=0;o<t.length;o++)a(e,t[o],r)&&(n=!0);return n},s=function(e,t,r){let o=!1;if(u&&t.includes(";
9")&&(t=t.split(";")),Array.isArray(e)){for(let a=0;a<e.length;a++)if(l(e[a],t,r)&&(o=n[a]=!0,!d))return!0}else l(e,t,r)&&(o=n[0]=!0);return o};for(let n,a,E=0;E<f;E++){if(p[E].length>1){if(p[E][0]!==t)continue;n=p[E][1]}else n=p[E][0];if(JCAMERAFIELDS.indexOf(n)>=0&&e.hasOwnProperty(J.CAMERA)?typeof(a=e[J.CAMERA][n])===UNDEF&&(a=e[n]):n===J.NAME?(a=e.hasOwnProperty(J.ORIGINAL)?decodeURIComponent(e[J.ORIGINAL][J.PATH].getFile()):e[J.NAME],a=a+" "+a.replace(/[\.\-_]/g," ")):n===J.REGIONS?e.hasOwnProperty(J.REGIONS)?(a=[],JSON.parse(e[J.REGIONS]).forEach(e=>a.push(e.split(";")[0]+"")),a=a.filter(Boolean)):a=null:a=e[n],typeof a!==UNDEF&&null!==a&&a.length)if(Array.isArray(a)&&!A[E]){for(let e=0;e<a.length;e++)if(s(d||!u?o:r,a[e],A[E])&&!d)return!0}else if(n===J.COMMENT||n.endsWith("Caption")?a=a.stripHTML():Array.isArray(a)?a=a.join(" "):a+="",s(d||!u?o:r,a,A[E])&&!d)return!0}return d?n.every(e=>!!e):n.some(e=>!!e)},L=function(e){e&&(e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(t=>{t.hasOwnProperty(J.FOLDERINDEX)?(y||c.folder)&&g(e[J.FOLDERS][t[J.FOLDERINDEX]],"folder")&&h.push(t):t.hasOwnProperty(J.CATEGORY)&&(y||c[t[J.CATEGORY]])&&g(t,t[J.CATEGORY])&&h.push(t)}),N++)},F=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(e.hasOwnProperty(J.OBJECTS)?L(e):e[J.READY]||oe(e,L),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEach(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||F(e)}):"current"!==O.depth&&e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||F(e)}))},C=function(){F("tree"===O.depth?n:a),setTimeout(m,20)},S=function(){F("tree"===O.depth?n:a),setTimeout(function(){T.length?e.when.apply(e,T).done(m):m()},20)},m=function(){R||(T.length&&P>N?setTimeout(m,20):(O.max&&O.max<h.length&&(h=h.slice(0,O.max)),R=!0,O.ready.call(h,O)))};if(T=[],R=!1,r=O.terms.trim(),O.caseSensitive||(r=r.toLowerCase()),'"'===O.terms[0]&&'"'===O.terms[O.terms.length-1])r=r.slice(1,-1).trim(),o=[r],u=!t.hasOwnProperty("exact")||t.exact;else{let e=r.toLowerCase();s.test(e)?(o=r.split(s),r=r.replace(s," "),d=!0):(o=r.split(" "),d=!1),o=o.filter(Boolean),E=/^\d[\d\-\/\.\:]+\d?$/.test(r)?/[,_|\n\t_]+/g:/[.,_\-|:/\n\t]+/g,u=!!t.hasOwnProperty("exact")&&t.exact}i=/[-._/]/.test(r);for(let e=0,t=O.divisible.split(",");e<f;e++)p[e]=p[e].split(":"),A[e]=t.indexOf(p[e][1]||p[e][0])>=0;y||("-"===O.types.charAt(0)?l.possibleTypes.forEach(e=>{-1===O.types.indexOf(e)&&(c[e]=!0)}):O.types.split(/,\s?/).forEach(e=>{c[e]=!0})),w?D?C():Oe(C,S):S()},collectTags:function(t){if(typeof t===UNDEF||typeof t.ready!==FUNCTION)return;let r=e.extend({fields:"creator,keywords,folder:title,webLocation:title,regions",types:"all",depth:"current",minLength:1,divisible:"comment,title"},t),o=[],E=Array.isArray(r.fields)?r.fields:r.fields.split(/,\s?/),i=E.length,s=new Array(i),O="all"===r.types,h={},p=function(e,t){let n="^",a="^",l=function(e,t,o){if(!e)return;let E,l;o?(("comment"===t||t.endsWith("Caption"))&&(e=e.stripHTML()),l=e.split(/[\s,_\.\?\!\-\(\)\[\]]/),l=removeEmpty(l)):l=e.toString().split(";");for(let e=0,t=l.length;e<t;e++)(E=l[e].trim()).length<r.minLength||1===E.length&&-1!=="!@#$%^&*()-_=+[{]};:'\",<.>/?\\|".indexOf(E.charCodeAt(0))||-1===a.indexOf("^"+E.toUpperCase()+"^")&&(n+=E+"^",a+=E.toUpperCase()+"^")};for(let r,n,o=0;o<i;o++){if(E[o].length>1){if(E[o][0]!==t)continue;r=E[o][1]}else r=E[o][0];if(JCAMERAFIELDS.indexOf(r)>=0&&e.hasOwnProperty(J.CAMERA)?typeof(n=e[J.CAMERA][r])===UNDEF&&(n=e[r]):n=r===J.REGIONS?e.hasOwnProperty(J.REGIONS)?JSON.parse(e[J.REGIONS]):null:e[r],typeof n!==UNDEF&&null!=n)if(r===J.REGIONS)for(let e=0;e<n.length;e++)l(n[e].split(";")[0],r,s[o]);else if(Array.isArray(n))for(let e=0;e<n.length;e++)l(n[e],r,s[o]);else l(n,r,s[o])}n.length>1&&function(e,t){let a=n.split("^").filter(e=>e.length>=r.minLength);for(let t,r,n,E=0;E<a.length;E++)r=a[E].toUpperCase(),null!==(n=m(e))&&(o&&o.length?(t=o.findIndex(e=>e[2]===r))>=0?-1===o[t][1].indexOf(n)&&o[t][1].push(n):o.push([a[E],[n],r]):o=[[a[E],[n],r]])}(e)},f=function(e){if(e&&(e!==n&&(O||h.folder)&&p(e,"folder"),e.hasOwnProperty(J.OBJECTS)))for(let t,r=0,n=e[J.OBJECTS];r<n.length;r++)n[r].hasOwnProperty(J.CATEGORY)&&(t=n[r][J.CATEGORY],(O||h[t])&&p(n[r],t))},A=function(e){!e||e.hasOwnProperty(J.HIDDEN)&&e.hidden||(oe(e,f),I()?e.hasOwnProperty(J.OBJECTS)&&e[J.OBJECTS].forEac
9h(e=>{"folder"!==e[J.CATEGORY]||e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||A(e)}):"current"!==r.depth&&e.hasOwnProperty(J.FOLDERS)&&e[J.FOLDERS].forEach(e=>{e.hasOwnProperty(J.HIDDEN)&&e[J.HIDDEN]||e.hasOwnProperty(J.VIEW)||A(e)}))},D=function(){"name"===r.sort?o.sort((e,t)=>(""+e[2]).localeCompare(""+t[2])):"frequency"===r.sort&&o.sort((e,t)=>t[1].length-e[1].length),r.max&&r.max<o.length&&(o=o.slice(0,r.max)),r.ready.call(o,r)};T=[];for(let e=0,t=r.divisible.split(",");e<i;e++)E[e]=E[e].split(":"),s[e]=-1!==t.indexOf(E[e][1]||E[e][0]);O||("-"===r.types.charAt(0)?l.possibleTypes.forEach(e=>{-1===r.types.indexOf(e)&&(h[e]=!0)}):r.types.split(/,\s?/).forEach(e=>{h[e]=!0})),A("tree"===r.depth?n:a),T.length?e.when.apply(e,T).done(D):D()},processTemplate:function(e,t,r){let n,o,E,l,i=typeof r!==UNDEF&&r,s=t||a;if(e&&e.indexOf("${")>=0)for(;E=e.match(/\$\{([\w\.|]+)\}/);){if(E[1].indexOf("|")>0)for(let e=0,t=E[1].split("|");e<t.length&&!(l=ee(s,t[e]));e++);else l=ee(s,E[1]);e=null===l&&i&&(n=E.index-1,o=n+E[0].length,n>0&&">"===e[n]&&o<e.length-1&&"<"===e[o]&&(n=e.lastIndexOf("<",n),o=e.indexOf(">",o),n>=0&&o>=0))?e.slice(0,n)+e.slice(o):e.slice(0,E.index)+(l||"")+e.slice(E.index+E[0].length)}return e}}}; 10!function(e){"use strict";var t=function(){try{return localStorage.setItem("_t","1"),localStorage.removeItem("_t"),!0}catch(e){return!1}}(),r="undefined"!=typeof DIR_PATH&&DIR_PATH?DIR_PATH:"/",n=function(e){return!!/^(true|yes)$/.test(e)||!/^(false|no)$/.test(e)&&(/^[\d.]+$/.test(e)?parseFloat(e):e)},o=function(e){if("string"!=typeof e)return e;if("["===e[0]||"{"===e[0]){e=JSON.parse(e);for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&"string"==typeof e[t]&&(e[t]=n(e[t]));return e}return n(e)},i=function(e,r,n,i){var l=encodeURIComponent(r),u=e+l+"=",a=new Date;if(arguments.length>2){if(null===n)return t?localStorage.removeItem(u):document.cookie=l+"=; expires="+a.toGMTString()+"; path="+e+"; SameSite=Strict",null;var c="object"==typeof n?JSON.stringify(n):String(n),s="number"==typeof i?i:3600;return a.setTime(a.getTime()+1e3*s),t?localStorage.setItem(u,c+"; @"+String(a.getTime())):document.cookie=l+"="+encodeURIComponent(c)+"; expires="+a.toGMTString()+"; path="+e+"; SameSite=Strict",n}if(t){var g=localStorage.getItem(u);if(g){var f=g.split("; @");if(1===f.length&&(f=g.split("; ")),!(f.length>1))return o(f[0]);if(a.getTime()<parseInt(f[1],10))return o(f[0]);localStorage.removeItem(u)}}else{var m,p=document.cookie.split(/;\s*/),S=l+"=";for(m=0;m<p.length;m++)if(p[m].substring(0,S.length)===S)return o(decodeURIComponent(p[m].substring(S.length)))}return null};e.cookie=function(e,t,n){return arguments.length>1?i(r,e,t,n):i(r,e)},e.albumCookie=function(e,t,r){return arguments.length>1?i("/",e,t,r):i("/",e)}}(jQuery); 11!function(e){"use strict";getCoords=function(e){return e.touches?1==e.touches.length?{x:e.touches[0].clientX,y:e.touches[0].clientY}:e.changedTouches&&1==e.changedTouches.length?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:null:{x:e.clientX,y:e.clientY}},e.fn.dropdownMenu=function(n){return n=e.extend({},e.fn.dropdownMenu.defaults,n),this.each(function(){var t=e(this),i="_ldm_"+(e.fn.dropdownMenu._counter=(e.fn.dropdownMenu._counter||0)+1),s=new Date;t.find("."+n.hasDropdownClass+"> a").each(function(){e(this).on("click."+i,function(a){if(new Date-s>300){var o=e(this),h=getCoords(a).x-o.offset().left>o.outerWidth()-32,d=o.parent().hasClass(n.openMenuClass);if(!d||h)return a.stopImmediatePropagation(),s=new Date,window.requestAnimationFrame(function(){!function(s,a){var o=e(),h=e(),d=!1,u=s.parents("."+n.openMenuClass);if(a&&(u=u.slice(1)),t.find("."+n.openMenuClass).not(u).each(function(){var t=e(this).find("."+n.menuClass);if(t.length){if(!t.data("height"))if(n.fixed){var i=t[0].getBoundingClientRect();t.data("height",Math.min(window.innerHeight-i.top,t.outerHeight()))}else t.data("height",t.outerHeight());o=o.add(t)}e(this).removeClass(n.openMenuClass)}),o.one("transitionend."+i,function(){e(this).css({display:"none",transition:"none"})}).css({overflow:"hidden"}),!a){if(!(u=s.parent()).hasClass(n.openMenuClass)){if((h=u.children("."+n.menuClass)).length){if(!h.data("height"))if(h.css({display:"flex",visibility:"hidden"}),n.fixed){var l=h[0].getBoundingClientRect();h.data("height",Math.min(window.innerHeight-l.top,h.outerHeight()))}else h.data("height",h.outerHeight());d=h.hasClass(n.hasDropdownClass)}u.addClass(n.openMenuClass)}h.parents("."+n.menuClass).css({maxHeight:"none"}),h.on("transitionend."+i,function(){e(this).css({display:"flex",overflow:d?"visible":"auto"})}).css({maxHeight:0,display:"flex",overflow:"hidden",visibility:"visible"})}window.requestAnimationFrame(function(){o.css({transition:"max-height 500ms ease-out",maxHeight:0}),h.css({transition:"max-height 500ms ease-out",maxHeight:h.data("height")||"100vh"})})}(o,h&&d)}),!1}return!0})})})},e.fn.dropdownMenu.defaults={hasDropdownClass:"has-submenu",menuClass:"menu",openMenuClass:"opened",fixed:!1}}(jQuery); 12!function(o,l){"use strict";o.fn.scrollToTopBtn=function(){var t=o(this).eq(0),n="lst_"+(o.fn.scrollToTopBtn._counter=(o.fn.scrollToTopBtn._counter||0)+1),r=getTranslations({scrollTopTooltip:"Top"}),s=o("<a>",{class:"scrollup icon-arrow-up",role:"button",title:r.scrollTopTooltip}).appendTo(t);return l.on("scroll."+n,function(){return s.toggleClass("show",l.scrollTop()>16),!0}),s.on("click."+n,function(){if(o(this).hasClass("show")){return o(o("html").scrollTop()?"html":"body").animate({scrollTop:0},500),!1}}),s.addTooltip({pos:[2,1,0,1]}),t.on("removeScrollToTopBtn."+n,function(){l.off("."+n),t.off("."+n),s.remove()}),this}}(jQuery,jQuery(window)); 13!function(t,o){"use strict";t.fn.alignTo=function(e,s){if(s=t.extend({},t.fn.alignTo.defaults,s),"string"==typeof e&&(e=t(e)),e instanceof t&&e.length){var n,p,i,a=t(window).width(),r=t(window).height(),l=function(o){for(;o.length&&"BODY"!==o[0].nodeName;){if("fixed"===o.css("position"))return o;o=o.parent()}return t()}(e);if("AREA"===e[0].nodeName){var f=e[0].shape.toUpperCase();if("RECT"===f||"CIRCLE"===f||"POLY"===f){var d=e[0].coords.split(",");(n=e.parent().offset()).left+=parseInt(d[0],10),n.top+=parseInt(d[1],10),p=parseInt(d[2]||0,10)-parseInt(d[0],10),i=parseInt(d[3]||
130,10)-parseInt(d[1],10)}}else n=e.offset(),p=e.outerWidth(),i=e.outerHeight();return n.left-=o.scrollLeft(),n.top-=o.scrollTop(),this.each(function(){var o,e,f=t(this),d=f.find("."+s.nubClass),u=s.pos[2],g=s.pos[3];f.css("maxHeight","none");var h=f.outerWidth(),c=f.outerHeight(),b=Math.round(n.left+s.pos[2]*p/2+(1===s.pos[1]?(s.pos[2]-1)*s.gap:(s.pos[0]-s.pos[2])*s.nubSize)),m=Math.round(n.top+s.pos[3]*i/2+(1!==s.pos[1]?(s.pos[3]-1)*s.gap:0)),w=Math.round(b-s.pos[0]*h/2),I=Math.round(m-s.pos[1]*c/2);if((I<0||I+c>r)&&(1!==s.pos[2]?I=2*I+c>r?r-c:0:0===s.pos[3]?r>2*n.top+i&&(I=n.top+i+s.gap,g=2):2===s.pos[3]&&r<2*n.top+i&&(I=Math.max(0,n.top-c-s.gap),g=0),I<0&&(I=0)),(w<0||w+h>a)&&(1!==s.pos[3]?w=2*w+h>a?a-h:0:0===s.pos[2]?a>2*n.left+p&&(w=n.left+p+s.gap,u=2):2===s.pos[2]&&a<2*n.left+p&&(w=Math.max(0,n.left-h-s.gap),u=0),w<0&&(w=0),w+h>a&&f.css({maxWidth:a-w-(parseInt(f.css("paddingLeft"),10)+parseInt(f.css("paddingRight"),10)+parseInt(f.css("borderLeftWidth"),10)+parseInt(f.css("borderRightWidth"),10))})),s.fixNub&&d.length&&(1!==u||1!==g)){var C={left:"auto",right:"auto",top:"auto",bottom:"auto"};1!==s.pos[1]?(C.left=n.left-w+u*p/2-u*s.nubSize,0===g?(C.bottom=-2*s.nubSize,o="top"):(C.top=-2*s.nubSize,o="bottom"),e=0===s.pos[0]?"left":2===s.pos[0]?"right":"center"):(C.top=n.top-I+g*i/2-g*s.nubSize,0===u?(C.right=-2*s.nubSize,o="left"):(C.left=-2*s.nubSize,o="right"),e=0===s.pos[1]?"top":2===s.pos[1]?"bottom":"middle"),d.css(C)}l.length?f.css({position:"fixed",left:w,top:I}):f.css({position:"absolute",left:w+t(window).scrollLeft(),top:I+t(window).scrollTop()}),f.removeClass("align-left align-right align-top align-bottom").removeClass("sec-left sec-right sec-top sec-bottom sec-center sec-middle"),o&&f.addClass("align-"+o),e&&f.addClass("sec-"+e)})}},t.fn.alignTo.defaults={gap:0,pos:[1,2,1,0],fixNub:!0,nubClass:"nub",nubSize:5}}(jQuery,jQuery(window)); 14!function(t){"use strict";t.fn.hideAllTooltips=function(e){return this.each(function(){t(this).data("suppressTooltips",!0).find("[data-tooltip-id]").each(function(){if(!t(this).data("tooltip-keep")){var o=t(this).attr("data-tooltip-id");o&&o.length&&o!==e&&t("#"+o).hide()}}),t(this).data("suppressTooltips",!1)})},t.fn.destroyAllTooltips=function(e){return this.each(function(){t(this).data("suppressTooltips",!0).find("[data-tooltip-id]").each(function(){var o=t(this).attr("data-tooltip-id");o&&o.length&&o!==e&&t("#"+o).remove()})})},t(document).on("mouseleave._ltt_",function(){t(document.body).hideAllTooltips()}),t.fn.addTooltip=function(e,o){typeof e===UNDEF||typeof e===STRING||e&&e.jquery||(o=e,e=null),o=t.extend({},t.fn.addTooltip.defaults,o);var i=function(e){if(typeof e!==UNDEF&&e&&e.length){if(e.is(":hidden")||e.css("opacity")<.25)return!1;var o=!0;return e.parents().each(function(){if(t(this).is(":hidden")||t(this).css("opacity")<.25)return o=!1,!1}),o}return!0};return this.each(function(){if(t(this).data("tooltip-id"))return!0;var a,n,s,l,r,u=t(this),d=o,p=!1,c=!1,f=!1,h="_ltt_"+(t.fn.addTooltip._counter=(t.fn.addTooltip._counter||0)+1),T=function(e){p=!0,i(t(this))&&clearTimeout(s)},m=function(t){c||(p=!1,clearTimeout(s),s=setTimeout(y,Math.max(d.stay,500)))},y=function(){clearTimeout(s),!1===p&&(f=!1,clearTimeout(n),a&&a.css({opacity:0}).one("transitionend",function(){t(this).css({display:"none"})}))},v=function(){clearTimeout(s),s=setTimeout(y,d.stay)},g=function(){var e=u.offset();u.data("suppressTooltips")||(clearTimeout(s),(!l||Math.abs(e.top-l.top)<1&&Math.abs(e.left-l.left)<1)&&(d.exclusive&&(u.data("tooltip-keep",!0),t(document.body).hideAllTooltips(u.data("tooltip-id")),u.data("tooltip-keep",null)),a.css({opacity:0,display:"block"}).alignTo(u,{gap:d.gap,pos:d.pos}).css({opacity:1}).one("transitionend",function(){t(this).css({display:"block"}),v()}),setTimeout(v,50),f=!0),l=e)},b=function(){return!!a&&a.is(":visible")&&a.css("opacity")>.99},k=function(t){var e=t.closest("a");return e.length&&e.attr("href")&&!e.attr("href").startsWith("javascript")&&"#"!==e.attr("href")},A=function(e){u.off("."+h),clearTimeout(n),clearTimeout(s),u.data("suppressTooltips",!0),t("#"+u.attr("data-tooltip-id")).remove(),u.attr("data-tooltip-id",null)};u.attr("data-tooltip")&&typeof u.data("tooltip")===OBJECT&&(d=t.extend({},d,u.data("tooltip")),u.removeAttr("data-tooltip")),u.attr("data-tooltip-id",h).data("suppressTooltips",!1).on("destroyTooltip",A).on("removeTooltip",y).on("focus."+h+" mouseenter."+h,function(p){if(!u.data("suppressTooltips")&&i(t(p.target).closest("[data-tooltip-id]"))){if
14(f=b(),r=new Date,l=u.offset(),(a=t("#"+u.data("tooltip-id"))).length)clearTimeout(s);else if(u.data("suppressTooltips")||!(a=function(e,i){var a;if(i)if(typeof i===STRING)a=t("<div>",{html:i}).appendTo("body");else{if(!i.jquery)return t();a=t.contains(document.body,i[0])?i:i.appendTo("body")}else{if((i=e.data("tooltip"))?i.jquery?i.removeClass("hidden"):typeof i===STRING?"."===i.charAt(0)?i=e.find(i).eq(0):"#"===i.charAt(0)&&(i=t(i)):(typeof i===OBJECT&&(o=t.extend({},o,i)),o.hasOwnProperty("html")?i=o.html.replaceAll("ï¼",'"'):(i=e.attr("title"),e.removeAttr("title"))):(i=e.attr("title"),e.removeAttr("title")),!i||!i.length)return t();a=t("<div>",{html:i}).appendTo("body")}return 0===a.length?t():(a.attr("id",e.attr("data-tooltip-id")).addClass(o.className).attr("role","tooltip").append(t("<span>",{class:o.nub})).data("display","none"===a.css("display")?"block":a.css("display")).attr("aria-hidden","true").hide(),a)}(u,e))||(a.on("mouseenter."+h,T).on("mouseleave."+h,m),a.find("input, textarea").on("focus."+h,function(){c=!0,T(this)}).on("blur."+h,function(){c=!1}),a.find("[data-closer]").on("click."+h,function(){return setTimeout(v,1e3),!0}),0))return A(),!0;clearTimeout(n),n=null,"mouse"===whatInput.ask("intent")&&(n=setTimeout(g,d.delay))}return!0}).on("blur."+h+" mouseleave."+h,function(e){return clearTimeout(n),n=null,i(t(e.target).closest("[data-tooltip-id]"))&&(clearTimeout(s),s="mouse"===whatInput.ask("intent")?setTimeout(y,500):setTimeout(y,3e3)),!1}).on("click."+h,function(e){if(i(t(e.target).closest("[data-tooltip-id]"))){if(clearTimeout(n),d.touchToggle||"mouse"!==whatInput.ask("intent")){var o=new Date;if(d.touchToggle||o-r>1e3)return!(!k(t(e.target))||!b())||(function(t){t.preventDefault(),clearTimeout(n),clearTimeout(s)}(e),f?y():g(),!1)}else if(k(t(e.target)))return!0;f&&(clearTimeout(s),y()),p=!1}return!0})})},t.fn.addTooltip.defaults={delay:150,className:"tooltip",nub:"nub",stay:2e3,exclusive:!0,touchToggle:!1,pos:[1,2,1,0],gap:6}}(jQuery); 15!function(a){"use strict";a.fn.modal=function(s,o,t){var e=a(document.body);if("string"==typeof s&&(s=a(document.createTextNode(s))),s instanceof a&&s.length){typeof o===UNDEF||Array.isArray(o)||(t=o,o=null),s.data("modal")&&(t=a.extend({},t,s.data("modal"))),t=a.extend({},a.fn.modal.defaults,t);var l=a(this),n=l.find("."+t.modalClass),d=n.length?parseInt(n.last().css("zIndex")):3e5,i=getTranslations(a.fn.modal.text),c=function(a){a.length&&(clearTimeout(a.data("to")),a.destroyAllTooltips(),a.one("transitionend",function(){a.data("keep")?a.css({display:"none"}):a.remove(),e.toggleClass(t.hasModalClass,l.find("."+t.modalClass).length>0)}).css({transition:"opacity "+t.speed+"ms ease-out"}).css({opacity:0}))};return function(s,o){var n=document.body.contains(s[0])?function(a){var s=a.hasClass(t.modalClass)?a:a.parents("."+t.modalClass);return s.length&&s.parent()[0]===l[0]||l.append(s),s.data("keep",!0),s}(s):function(s,o){var e,n,r;if(a.fn.modal._zIndex=Math.max(a.fn.modal._zIndex||3e5,d)+1,(e=a("<div>",{class:t.modalClass,zIndex:a.fn.modal._zIndex}).appendTo(l)).data("modal-ns","lmo_"+(a.fn.modal._counter=(a.fn.modal._counter||0)+1)),n=a("<div>",{class:t.windowClass+(t.hasOwnProperty("class")?" "+t.class:""),role:"dialog"}).appendTo(e),a("<a>",{class:t.closeClass,title:i.closeWindow}).appendTo(t.alignTo?e:n).addTooltip(),r=a("<div>",{class:t.contentClass+" scrollable"}).appendTo(n),t.title&&n.addClass(t.hasHeaderClass).prepend(a("<header>",{class:t.headerClass+(t.icon?" icon-"+t.icon:""),html:t.title})),r.append(s.show()),typeof o!==UNDEF&&o){var p,u,f=a("<div>",{class:t.buttonsClass}).appendTo(r),h=function(s){s.preventDefault();var o=s.target;return typeof o.handler===FUNCTION&&!1!==o.handler.call(l[0])&&c(a(o).closest("."+t.modalClass)),!1};for(p=0;p<o.length;p++)u=a("<button>",{class:[t.buttonClass,o[p].c].filter(Boolean).join(" "),html:" "+o[p].t}).on("click",h).appendTo(f),typeof o[p].h===FUNCTION&&(u[0].handler=o[p].h)}return e}(s,o);t.hasOwnProperty("closeOnClick")&&a(t.closeOnClick).on("click",function(){c(a(this).closest("."+t.modalClass))});var r=t.hasOwnProperty("alignTo")?t.alignTo instanceof jQuery?t.alignTo:a(t.alignTo):a();return r.length&&r.is(":visible")&&function(s,o){o.jquery||(o=a(o));var e,l,n=o.position(),d=[o.outerWidth(),o.outerHeight()],i=[s.outerWidth(),s.outerHeight()],c=[(n.left+d[0]/2)/i[0],(n.top+d[1]/2)/i[1]],r=null,p=null,u=null,f=null,h={},m={};c[0]>.333&&c[0]<.667?r="50%":c[0]<=.333?r=n.left+"px":(p=i[0]-(n.left+d[0])+"px",r="auto"),c[1]<=.5?(u=n.top+d[1]+4+"px",e=n.top+d[1]-t.closeSize+"px"):(f=i[1]-n.top+4+"px",u="auto",l=i[1]-n.top-t.closeSize+"px",e="auto"),h.left=m.left=r,null!==p&&(h.right=m.right=p),h.top=u,m.top=e,null!==f&&(h.bottom=f,m.bottom=l),h.transform=m.transform="50%"===r?"translateX(-50%)":"none",s.children("."+t.windowClass).css(h),s.children("."+t.closeClass).css(m)}(n,r),n.css({display:"block",opacity:0,transition:"opacity "+t.speed+"ms ease-out"}).removeClass("hidden"),n[0].offsetHeight,n.css({opacity:1}),e.addClass(t.hasModalClass),n.on("destroy",function(){c(a(this))}),n.on("close",function(){c(a(this))}),n.find("."+t.closeClass).add(n).on("click."+n.data("modal-ns"),function(s){if(s.target===this)return c(a(this).closest("."+t.modalClass)),typeof t.onClose===FUNCTION&&t.onClose.call(l[0]),!1}),t.autoFade&&n.data("to",setTimeout(function(){c(n)},t.autoFade)),n}(s,o)}},a.fn.modal.defaults={modalClass:"modal",windowClass:"window",headerClass:"header",closeClass:"close",contentClass:"content",buttonsClass:"buttons",buttonClass:"button",hasHeaderClass:"has-header",hasModalClass:"has-modal",speed:300,autoFade:0,width:400,type:"normal",closeSize:40},a.fn.modal.text={closeWindow:"Close window"}}(jQuery); 16!function(e){"use strict";e.fn.renderShares=function(t){t=e.extend({},e.fn.renderShares.defaults,t);var i,a,n,r,s,o=e(this),l=getTranslations(e.fn.renderShares.text),c=t.emailSubject||l.checkThisOut,p=t.emailBody||"{title}\n\r{description}\n\r{link}",d=function(e){var t,i=this.querySelector("input[name=url]");return i&&(t=i.value,i.focus(),i.setSelectionRange(0,t.length),navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(t).then(function(){i.value=l.copied+"...",i.classList.add("copied"),setTimeout(function(){i.value=t,i.classList.remove("copied")},500)}):(i.focus(),i.setSelectionRange(0,t.length))),!1},h=function(e){var t=this.checked,i=this.name,a=this.parentNode.querySelector("input[name=url]");t?a.value.indexOf("#")>=0?-1===a.value.search(new RegExp("[#&]"+i))&&(a.value+="&"+i):a.value+="#"+i:a.value=a.value.replace(new RegExp("[#&]"+i,"g"),"")},u=function(i){typeof i===UNDEF?i=t:((i=e.extend({},t,i)).hasOwnProperty("href")||(i.href=window.location.href),i.title=(i.title||"").stripHTML(),i.description=(i.description||"").stripHTML()),i.image&&!i.image.startsWith("http")&&(i.image=window.location.href.getDir()+i.image);var r=e(i.currCardHook);if(r.length){if(!i.hasOwnProperty("title")&&(i.title=r.find(".caption .title").text(),!i.title)){var u=r.find("img, video");i.title=u.length?u.attr("title")||u.attr("alt")||(u.attr("src")?u.attr("src").getFile().replace(/\.(jpg|gif|png|mp4)$/i,"").replace(/_/g," "):""):""}if(i.hasOwnProperty("description")||(i.description=r.find(".caption .comment").text()),!i.hasOwnProperty("image")){var m=e(i.currCardHook+" img");
16m.length?i.image=m.attr("src"):(m=e(i.currCardHook+" video")).length?i.image=m.attr("src").replaceExt("jpg"):(m=e("link[rel=image_src]"),i.image=m.length?m.attr("href"):window.location.href.getDir()+"folderthumb.jpg")}i.usePreview&&(i.hasOwnProperty("image")&&a.attr("src",i.image),n.empty(),i.hasOwnProperty("title")&&n.append(e("<h3>",{class:"title",text:i.title})),i.hasOwnProperty("description")&&n.append(e("<div>",{class:"description",text:i.description})))}else a&&a.attr("src",void 0),n&&n.html(s);var g,f=encodeURIComponent(i.href),b=i.href.indexOf("#img=")>0?i.href.replace(t.indexName,"").replace("#img=","slides/").replaceExt(i.pageExt):i.href,w=encodeURIComponent(i.title),k=encodeURIComponent(i.description),v=encodeURIComponent(i.image);o.find("."+t.sharesClass+" a").each(function(){var a=e(this);switch(a.data("share")){case"facebook":if(typeof FB!==UNDEF)return void a.off(".share").on("click.share",function(){return FB.ui({method:"share",href:b,caption:i.title,description:i.description,picture:i.image}),!1});g="https://www.facebook.com/sharer.php?s=100&p%5Burl%5D="+i.href+"&p%5Bimages%5D%5B0%5D="+i.image+"&p%5Btitle%5D="+w;break;case"threads":g="https://threads.net/intent/post?text="+w+":%20"+b;break;case"bluesky":g="https://bsky.app/intent/compose?text="+w+":%20"+b;break;case"twitter":g="https://twitter.com/intent/tweet?text="+w+":%20"+f;break;case"tumblr":g="https://www.tumblr.com/share/link?url="+f+"&name="+w;break;case"pinterest":g="https://pinterest.com/pin/create/button/?url="+f+"&media="+v+"&description="+w;break;case"linkedin":g="https://www.linkedin.com/shareArticle?mini=true&url="+f+"&title="+w+"&summary="+k;break;case"digg":g="https://digg.com/submit?url="+i.href;break;case"reddit":g="https://www.reddit.com/submit?url="+i.href;break;case"email":g="mailto:?subject="+encodeURIComponent(c.replace("{title}",i.title).replace("{description}",i.description).replace("{album}",t.albumTitle||""))+"&body="+encodeURIComponent(p.replace("{title}",i.title).replace("{description}",i.description).replace("{link}",i.href).replace("{album}",t.albumTitle||""));break;case"link":var n=e('<form class="copy-url"><input name="url" type="text" readonly value="'+i.href+'"><input name="slideshow" id="slideshowcb" type="checkbox"><label for="slideshowcb">'+l.slideshow+'</label> <button type="submit" class="button icon-copy" data-closer> '+l.copy+"</button></form>");return n.on("submit",d),n.find("[name=slideshow]").on("change",h),void a.addClass("copy-url-btn").trigger("destroyTooltip").addTooltip(n,{stay:4e3,pos:t.pos,touchToggle:!0});default:return}a.attr({href:g,target:"_blank"})})};if(t.hasOwnProperty("href")||(t.href=window.location.href),!t.hasOwnProperty("image")){var m=e("link[rel=image_src]");t.image=m.length?m.attr("href"):window.location.href.getDir()+"folderthumb.jpg"}return t.hasOwnProperty("title")||(t.title=function(){var t=o.find("h3,.title");return t.length&&(t=t.text())?t:(t=e('meta[property="og:title"]')).length&&(t=t.attr("content"))?t:e("title").text()||""}()),t.hasOwnProperty("description")||(t.description=function(){var t=o.find(".description,.comment");return t.length&&(t=t.text())?t:(t=e('meta[property="og:description"]')).length&&(t=t.attr("content"))?t:(t=e("meta[name=description]")).length&&(t=t.attr("content"))?t:""}()),t.hasOwnProperty("pageExt")||(t.pageExt=t.indexName.getExt()),t.usePreview?((i=o.find("."+t.contClass)).length||(i=e("<div>",{class:t.contClass}).appendTo(o)),(a=i.find("img")).length||(t.image?a=e("<img>",{src:t.image}).appendTo(i):i.addClass("no-image")),(n=i.find("."+t.captionClass)).length||(n=e("<div>",{class:t.captionClass,html:'<h3 class="title">'+t.title+"</h3>"+(t.description?'<div class="description">'+t.description+"</div>":"")}).appendTo(i)),s=n.html(),(r=i.find("."+t.socialLinksClass)).length||(r=e("<div>",{class:t.socialLinksClass}).appendTo(i))):r=o,function(i){for(var a,n,r=e("<div>",{class:t.sharesClass}).appendTo(i||o),s=t.sites.split(","),c=["facebook","threads","bluesky","twitter","tumblr","pinterest","linkedin","digg","reddit","email","link"],p=0;p<s.length;p++)a=s[p],c.indexOf(a.trim())>=0&&(n=e("<a>",{class:t.btnClass+" icon-"+("twitter"===a?"x":a),rel:"noopener",text:" "+(t.buttonLabels?a.capitalize():"")}).data("share",a).appendTo(r),"email"===a?n.data("tooltip",l.email):"link"!==a&&n.data("tooltip",l.shareOn+" "+("twitter"===a?"X":a.capitalize())));u(),r.children("a").not(".copy-url-btn").addTooltip({pos:t.pos})}(r),t.hasOwnProperty("buttons")&&!LOCAL&&function(i){for(var a=t.buttons.split(","),n=encodeURIComponent(window.location.href.split("#")[0]),r=encodeURIComponent(t.title||e("meta[name=title]").attr("content")||e("title").text()),s=t.image?(t.image.startsWith("http")?"":window.location.href.getDir())+encodeURIComponent(t.image):e("link[rel=image_src]").attr("href"),l=e("<div>",{class:t.buttonsClass}).appendTo(i||o),c=0;c<a.length;c++)switch(a[c]){case"facebook":l.append('<div class="likebtn fb-like" data-href="'+n+'" data-layout="button_count" data-action="like" data-size="large" data-show-faces="false" data-share="false"></div>');break;case"twitter":l.append('<a class="likebtn twitter-share-button icon-x" href="https://twitter.com/intent/tweet?text='+r+"&url="+n+'" data-size="large" target="_blank"> Tweet</a>');break;case"pinterest":l.append('<div class="likebtn"><a data-pin-count="beside" data-pin-tall="true" data-pin-save="true" href="https://www.pinterest.com/pin/create/button/?url='+n+"&media="+s+"&description="+r+'" data-pin-do="buttonPin"></a></div>')}}(r),o.closest(".modal").length&&o.find("."+t.sharesClass+" a").not(".copy-url-btn").on("click",function(){return e(this).closest(".modal").trigger("close"),!0}),o.on("updateLinks",function(e,t){u(t)}),this},e.fn.renderShares.defaults={buttonLabels:!1,usePreview:!0,contClass:"preview",captionClass:"caption",socialLinksClass:"social-links",sharesClass:"shares",buttonsClass:"buttons",btnClass:"btn",sites:"facebook,twitter,tumblr",indexName:"index.html",currCardHook:".lightbox .curr",emailSubject:"",emailBody:"",pos:[2,1,0,1]},e.fn.renderShares.text={checkThisOut:"This album is worth checking out",copied:"Copied",slideshow:"Slideshow",copy:"Copy",email:"Email",shareOn:"Share on"}}(jQuery); 17!function(s,t){"use strict";s.fn.sticky=function(i){i=s.extend({stickyClass:"sticky",stickToEdge:"st-stick",topmostClass:"st-topmost",bottommost
17Class:"st-bottommost",topClass:"st-top",bottomClass:"st-bottom",placeholderClass:"st-placeholder",controlsClass:"st-controls",minimizedClass:"minimized",maximizedClass:"maximized",watch:".thumbnails",watchThreshold:100,minimizableThreshold:80,placeBelow:".top-bar.sticky"},i);var a="lst_"+(s.fn.sticky._counter=(s.fn.sticky._counter||0)+1),e=[],o=-999,l=function(t){var a=s("[data-sticky-rel="+e[t].id+"]"),o=s("#"+e[t].id);a.length&&a.hasClass(i.stickyClass)&&(o.css("height",""),a.removeClass(i.stickyClass+" "+i.topClass+" "+i.bottomClass))},c=function(t){var a=t?s("."+i.bottomClass+"."+i.stickyClass+":visible").backwards():s("."+i.topClass+"."+i.stickyClass+":visible"),e=t?0:s(i.placeBelow+":visible").outerHeight()||0;a.each(function(){s(this).css(t?"bottom":"top",e),e+=s(this).outerHeight()})},h=function(){var a,c,h,n,r,d=t.scrollTop(),C=t.outerHeight(),m=s(i.watch+":visible");if(!(Math.abs(d-o)<=2)){if(o=d,m.length&&(r=m.position().top),!m.length||r>d+C-i.watchThreshold||r+m.outerHeight()<=d+i.watchThreshold)!function(){for(var s=0;s<e.length;s++)l(s)}();else{a=s(i.placeBelow+":visible").outerHeight()||0,h=!0,s("."+i.topClass+"."+i.stickyClass+":visible").each(function(){a+=s(this).outerHeight(),h=!1}),c=0,n=!0,s("."+i.bottomClass+"."+i.stickyClass+":visible").each(function(){c+=s(this).outerHeight(),n=!1});for(var u,g,p,b=0;b<e.length;b++)u=s("[data-sticky-rel="+e[b].id+"]"),g=s("#"+e[b].id),u.length&&g.length&&((p=g.position().top)<d+a||p+e[b].height>d+C-c?u.hasClass(i.stickyClass)||(g.height(e[b].height),u.addClass(i.stickyClass),p<d+a?(a?u.removeClass(i.stickToEdge).css("top",a):u.addClass(i.stickToEdge),a+=e[b].height,h&&(u.addClass(i.topmostClass),h=!1),u.addClass(i.topClass).removeClass(i.bottomClass)):u.addClass(i.bottomClass).removeClass(i.topClass)):l(b));c=0,s("."+i.bottomClass+"."+i.stickyClass).backwards().each(function(){s(this).css("bottom",c),c?s(this).removeClass(i.stickToEdge):s(this).addClass(i.stickToEdge),c+=s(this).outerHeight(),n&&(s(this).addClass(i.bottommostClass),n=!1)})}return!0}};this.each(function(t){var o=s(this),l=o.children().first(),h=a+"_"+t,n=o.outerHeight();o.before(s("<div>",{id:h,class:i.placeholderClass})),n>i.minimizableThreshold&&l.prepend(s("<div>",{class:i.controlsClass}).append(s("<a>",{class:"minimize"}).on("click",function(s){return function(){o.removeClass(i.maximizedClass).addClass(i.minimizedClass),e[s].height=o.outerHeight(),c(o.hasClass(i.bottomClass))}}(t))).append(s("<a>",{class:"maximize"}).on("click",function(){o.removeClass(i.minimizedClass).addClass(i.maximizedClass),c(o.hasClass(i.bottomClass))}))),o.attr("data-sticky-rel",h).addClass(i.maximizedClass),e.push({id:h,height:n})});var n=s(this);return n.on("stickyRefresh",function(){n.each(function(t){e[t].height=s(this).outerHeight()}),o=-999,h()}),t.on("scroll."+a+" resize."+a,function(){h()}),h(),this}}(jQuery,jQuery(window)); 18!function(t){"use strict";t.fn.swipe=function(e){e=t.extend({onSwipedLeft:!1,onSwipedRight:!1,onSwipedUp:!1,onSwipedDown:!1,onSmallSwipe:!1,onSwipeStart:!1,onPinchZoom:!1,onClick:!1,onDoubleClick:!1,onFinished:!1,threshold:20,clickThreshold:150,doubleClickThreshold:350,noSwipeInside:".caption",stopAutoPano:!0,swipeoutDuration:300,avoidNavigationOnZoomed:!0,overThreshold:.2},e);var o=function(t){return[t.outerWidth(),t.outerHeight()]},n=function(t){return t.touches?t.touches.length>1?[t.touches[0].clientX,t.touches[0].clientY,t.touches[1].clientX,t.touches[1].clientY]:[t.touches[0].clientX,t.touches[0].clientY]:null===t.clientX?null:[t.clientX,t.clientY]};return this.each(function(){var i,a,u,l,r,s,p,c,h,d,f,w,g=t(this),m=g.parent(),T=g.data("lsw_ns")||(t.fn.swipe._counter=(t.fn.swipe._counter||0)+1),N=!1,D=!0,S=!0,C=!1,v=!0,U=!0,y=!1,O=!0,I=!1,F=!1,E=null,b=function(t){g.data("scrolling",!1),typeof e.onFinished===FUNCTION&&e.onFinished.call(g[0],t)},k=function(t){P(t),g.data("scrolling",!1),F||typeof e.onClick!==FUNCTION||e.onClick.call(g[0],t)},M=function(t){S||typeof e.onSwipedDown!==FUNCTION||(P(t),S=!0,e.onSwipedDown.call(g[0],t))},A=function(t){S||typeof e.onSwipedUp!==FUNCTION||(P(t),S=!0,e.onSwipedUp.c
18all(g[0],t))},R=function(t){S||typeof e.onSwipedRight!==FUNCTION||(P(t),S=!0,e.onSwipedRight.call(g[0],t))},H=function(t){S||typeof e.onSwipedLeft!==FUNCTION||(P(t),S=!0,e.onSwipedLeft.call(g[0],t))},P=function(e){"mouseup"===e.type||"mouseout"===e.type?(g.off("mouseup."+T+" mouseout."+T),t(document).off("mousemove."+T)):e.type===TOUCH.END&&g.off(TOUCH.END+"."+T)},Z=function(t){return Math.hypot(t[2]-t[0],t[3]-t[1])},x=function(t,e,o,n){var i,a,u={};if(4===t.length){l=Z(t)/f;var r=(t[0]+t[2])/2,s=(t[1]+t[3])/2,c=(p[0]+p[2])/2,d=(p[1]+p[3])/2;i=r-c,a=s-d,i+=(c-h[0])*(1-l),a+=(d-h[1])*(1-l)}else i=t[0]-p[0],a=t[1]-p[1];u.transform="matrix("+w[0]*l+","+w[1]+","+w[2]+","+w[3]*l+","+(w[4]+i)+","+(w[5]+a)+")",typeof o!==UNDEF&&o?(u.transition="transform "+o+"ms ease-in-out",null!==e&&(u.transition+=",opacity "+o+"ms ease-in-out",u.opacity=e)):u.transition="none",typeof n===FUNCTION&&g.one("transitionend",n),g.css(u)},X=function(t){if(D||O||t.originalEvent.touches&&t.originalEvent.touches.length>2)return!0;t.preventDefault();var e=c?c[0]:0,o=c?c[1]:0,i=(new Date).getTime(),a=i-s||1;if(c=n(t.originalEvent),null===p||p.length<c.length){for(var u=p.length||0;u<c.length;u++)p[u]=c[u];f=Z(c)}if(v&&U)c[1]=p[1],d[0]=(d[0]+2*(c[0]-e)/a)/3;else{var l=c[0]-p[0],r=c[1]-p[1],h=Math.abs(l),w=0!==r?Math.abs(l/r):1/0;y&&(h>30||h>8&&w>.25)&&(v=U=!0),(v&&c[1]<p[1]||U&&c[1]>p[1])&&(c[1]=p[1]),d=[(d[0]+2*(c[0]-e)/a)/3,(d[1]+2*(c[1]-o)/a)/3]}return s=i,x(c),!1},Y=function(t){if(O)return!0;if(t.preventDefault(),E&&(clearTimeout(E),E=null,I=!1),N=!1,D=!0,4===c.length)!function(t){S||typeof e.onPinchZoom!==FUNCTION||(P(t),S=!0,e.onPinchZoom.call(g[0],t))}(t);else{var o=c[0]-p[0],n=c[1]-p[1],i=(new Date).getTime()-r,s=a[0]*l*w[0],h=a[1]*l*w[3];if(i>50&&Math.hypot(o,n)>e.threshold){if(g.data({scrolling:!0,swipeEnded:!0,taplength:i}),v&&U){m=d[0]*e.swipeoutDuration/2;u[0]>=s||o&&(w[4]+o+m>u[0]*(e.overThreshold-.5)||w[4]+o+m<u[0]*(.5-e.overThreshold)-s)?(x([c[0]+m,p[1]],0,e.swipeoutDuration,b),C&&(o>0?R(t):H(t))):(x([c[0]+m,p[1]],null,e.swipeoutDuration),P(t))}else{var f=Math.abs(n)>1.5*Math.abs(o),m=[d[0]*e.swipeoutDuration/2,d[1]*e.swipeoutDuration/2],T=[0,0];o>0?T[0]=Math.max(0,w[4]+o+m[0]-u[0]*(e.overThreshold-.5)):o<0&&(T[0]=Math.min(0,w[4]+o+m[0]+s-u[0]*(.5-e.overThreshold))),n>0?T[1]=Math.max(0,w[5]+n+m[1]-u[1]*(e.overThreshold-.5)):n<0&&(T[1]=Math.min(0,w[5]+n+m[1]+h-u[1]*(.5-e.overThreshold))),s<1.1*u[0]||h<1.1*u[1]?C?typeof e.onSwipedDown===FUNCTION&&f&&n>0?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),M(t)):typeof e.onSwipedUp===FUNCTION&&f&&n<0?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),A(t)):(x([c[0]+m[0],p[1]],0,e.swipeoutDuration,b),o>0?R(t):H(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],1,e.swipeoutDuration),P(t)):T[0]||T[1]?C?typeof e.onSwipedDown===FUNCTION&&f&&T[1]>u[1]/2?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),M(t)):typeof e.onSwipedUp===FUNCTION&&f&&-T[1]>u[1]/2?(x([p[0],c[1]+m[1]],0,e.swipeoutDuration,b),A(t)):Math.abs(T[0])>u[0]/2?(x([c[0]+m[0],p[1]],0,e.swipeoutDuration,b),o>0?R(t):H(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],null,e.swipeoutDuration),P(t)):(x([c[0]+m[0]-T[0],c[1]+m[1]-T[1]],null,e.swipeoutDuration),P(t)):(x([c[0]+m[0],c[1]+m[1]],null,e.swipeoutDuration),P(t))}I=!1}else o||n?(!function(t){P(t),g.data("scrolling",!1),typeof e.onSmallSwipe===FUNCTION&&e.onSmallSwipe.call(g[0],t)}(t),x(p,null,100),I=!1):e.onDoubleClick?I?(i<e.doubleClickThreshold?function(t){P(t),g.data("scrolling",!1),typeof e.onDoubleClick===FUNCTION&&e.onDoubleClick.call(g[0],t)}(t):k(t),I=!1):(I=!0,E=setTimeout(function(t){k(t),I=!1},e.doubleClickThreshold+10,t)):k(t)}return!1};g.add(t(document)).off("."+T),g.data("lsw_ns",T),t(window).on("resize."+T,function(){clearTimeout(i),i=setTimeout(function(){u=o(m)},50)}),g.attr("draggable","false").on(TOUCH.START+"."+T+" dragstart."+T+" mousedown."+T,function(i){if(pageZoomed()||i.originalEvent.touches&&i.originalEvent.touches.length>2||e.noSwipeInside&&t(i.target).closest(e.noSwipeInside).length||"A"===i.target.nodeName||"INPUT"===i.target.nodeName||"BUTTON"===i.target.nodeName||"AUDIO"===i.target.nodeName||"VIDEO"===i.target.nodeName&&(!i.target.paused||i.target.controls&&(ISIOSDEVICE||i.offsetY>t(i.target).height()-60)))return O=!0,!0;
18if("mousedown"===i.type&&1!==i.which)return e.stopAutoPano&&m.data("panomove")&&g.trigger("autopanoStop"),function(t){P(t),typeof e.onRightClick===FUNCTION&&e.onRightClick.call(g[0],t)}(i),!0;if(N||I)return!1;"touchstart"!==i.type&&i.preventDefault(),N=!0,O=!1,D=!1,I=!1,e.stopAutoPano&&m.data("panomove")?(g.trigger("autopanoStop"),F=!0):F=!1,g.data({scrolling:!0,swipeEnded:!1,taplength:0}),r=s=(new Date).getTime(),p=n(i.originalEvent),c=p.slice(),d=[0,0],4===p.length&&(f=Z(p)),u=o(m),a=o(g),w=g.getMatrix(),l=1;var E=m[0].getBoundingClientRect();return h=[E.left+E.width/2+w[4]+a[0]*w[0]/2,E.top+E.height/2+w[5]+a[1]*w[3]/2],y=F||u[1]>=a[1]*w[3]&&u[0]>=a[0]*w[0],C=!(e.avoidNavigationOnZoomed&&(u[1]<a[1]*w[3]||u[0]<a[0]*w[0]))||y,y?(v=typeof e.onSwipedUp!==FUNCTION,U=typeof e.onSwipedDown!==FUNCTION):v=U=!1,function(e){"mousedown"===e.type?(g.on("mouseup."+T+" mouseout."+T,Y),t(document).on("mousemove."+T,X)):e.type===TOUCH.START&&g.on(TOUCH.END+"."+T,Y),I=!1}(i),function(t){typeof e.onSwipeStart===FUNCTION&&e.onSwipeStart.call(g[0],t)}(i),S=!1,"touchstart"===i.type}).on(TOUCH.MOVE+"."+T+" drag."+T,X).on("removeSwipe."+T,function(){setTimeout(function(){g.data("scrolling",!1)},20),g.removeAttr("draggable"),g.add(t(document)).off("."+T)}
18).on("selectstart."+T,function(t){return t.preventDefault(),!1})})}}(jQuery); 19!function(n,t){"use strict";n.fn.autopano=function(o){o=n.extend({},n.fn.autopano.defaults,o);var a,e,i,r=n(this),s=r.parent(),u=!1,d=!1,c=0,f=1600/o.speed,p=120/o.speed,m=!1,l=r.data("lap_ns"),M=function(n){var t=r.getMatrix(),o=r[0].scrollWidth,i=r[0].scrollHeight,u=s[0].clientWidth,d=s[0].clientHeight;o/u<i/d?(a=i,e=d,m||(m=!0,n||(t[4]=-o/2,r.css({transition:"none",transform:"matrix("+t.join(",")+")"})))):(a=o,e=u,m&&(m=!1,n||(t[5]=-i/2,r.css({transition:"none",transform:"matrix("+t.join(",")+")"})))),a>e?n||!c?setTimeout(j,100):c>0?y():g():b()},h=function(){b(),setTimeout(function(){s.data("panomove",!1)},20),r.removeAttr("draggable"),r.add(t).off("."+l)},v=function(n){u=!0,c&&(!d||o.loop?y():b())},x=function(n){d=!0,c&&(!u||o.loop?g():b())},g=function(){var n,t=-e/2,a=r.getMatrix();m?(n=1e3*Math.minMax(p,Math.abs(a[5]-t)/o.speed,f),a[5]=t):(n=1e3*Math.minMax(p,Math.abs(a[4]-t)/o.speed,f),a[4]=t),d=!1,c=-1,r[0].style.transition="none",r.one("transitionend",v).css({transition:"transform "+n+"ms "+o.easing,transform:"matrix("+a.join(",")+")"})},y=function(){var n,t=e/2-a,i=r.getMatrix();m?(n=1e3*Math.minMax(p,Math.abs(i[5]-t)/o.speed,f),i[5]=t):(n=1e3*Math.minMax(p,Math.abs(i[4]-t)/o.speed,f),i[4]=t),u=!1,c=1,r[0].style.transition="none",r.one("transitionend",x).css({transition:"transform "+n+"ms "+o.easing,transform:"matrix("+i.join(",")+")"})},j=function(){var n=r.getMatrix(),t=m?r[0].scrollHeight/2+n[5]:r[0].scrollWidth/2+n[4];o.direction<0||0===o.direction&&t>0?g():y(),s.addClass(o.panoMoveClass),s.data("panomove",!0)},b=function(){var n=r.getMatrix();c=0,r.off("transitionend"),r.css({transition:"none",transform:"matrix("+n.join(",")+")"}),s.data("panomove",!1),s.removeClass(o.panoMoveClass)};return l&&n(window).add(n(document)).off("."+l),r.data("lap_ns",l="lap_"+(n.fn.autopano._counter=(n.fn.autopano._counter||0)+1)),n(window).on("resize."+l,function(){return clearTimeout(i),i=setTimeout(M,50,!1),!0}),r.data("hasAutoPano",!0).on("autopanoRemove."+l,function(){return c=0,h(),!1}).on("autopanoStart."+l,function(){return j(),!1}).on("autopanoStop."+l,function(){return c=0,b(),!1}).on("autopanoAdjust",function(){M(!1)}),M(!0),o.hasOwnProperty("onReady")&&typeof o.onReady===FUNCTION&&o.onReady(r[0]),this},n.fn.autopano.defaults={direction:-1,speed:80,easing:"cubic-bezier(0.2, 0, 0.8, 1)",autoStart:!0,loop:!0,panoMoveClass:"pano-move"}}(jQuery,jQuery(document)); 20!function(e){"use strict";e.fn.audioPlayer=function(t){e(this).data("audioplayer")&&(t=e.extend({},t,e(this).data("audioplayer"))),(t=e.extend({},e.fn.audioPlayer.defaults,t)).hasOwnProperty("rootPath")&&"."!==t.rootPath||(t.rootPath="");const o="lap_ns",a=(t.rootPath?t.rootPath+"/":"")+t.folder+"/",n="paused";return this.each(function(){let l,r,s,i=e(this),u=e(),d=e(),p=e(),c=e(),f=e(),m=0,y=t.volume,h=!1,v=!1,P=function(o){if((typeof o===UNDEF||o instanceof e.Event)&&(o=m),f.attr("src")&&o===m){if(!c[0].paused)return}else!function(e){c[0].pause(),(e>=l.length||e<0)&&(e=(e%l.length+l.length)%l.length),f.attr({src:a+l[e]}),c[0].load(),m=e,p.children().removeClass("active"),p.children().eq(e).addClass("active")}(o);(r=c[0].play())&&r.then(function(){i.addClass("active"),i.data(n,!1),typeof t.onPlaying===FUNCTION&&t.onPlaying.call(i)},function(e){i.removeClass("active"),i.data(n,!0),typeof t.onPaused===FUNCTION&&t.onPaused.call(i),console.log("Autoplay has been prevented by the browser. Interact with the page first!")})},g=function(){c[0].pause(),r=null,i.removeClass("active"),i.data(n,!0)},T=function(){clearTimeout(s);let e=c[0].volume;if("number"==typeof e||"number"==typeof(e=parseFloat(e))){if((e=Math.min(e+t.step,1))>=y)return c[0].volume=y,void setTimeout(function(){h=!1},50);c[0].volume=e,s=setTimeout(T,t.stepFreq)}},C=function(){c[0].paused&&(c[0].volume=.01,P()),h=!0,v=!1,s=setTimeout(T,t.stepFreq),i.data(n,!1)},F=function(){clearTimeout(s);let e=c[0].volume;if("number"==typeof e||"number"==typeof(e=parseFloat(e))){if((e=Math.max(e-t.step,0))<.01)return c[0].volume=0,g(),void setTimeout(function(){v=!1},50);c[0].volume=e,s=setTimeout(F,t.stepFreq)}},w=function(){c[0].paused||(v=!0,h=!1,s=setTimeout(F,t.stepFreq)),i.data(n,!0)},k=function(){m>=l.length-1?t.loop&&P(0):P(m+1)},O=function(){e.cookie&&e.cookie("ap-status",(c[0].paused?"0":"1")+"::"+(c[0].currentTime||0)+"::"+(
20h||v||c[0].paused?y:c[0].volume)+(m?"::"+m:""))};if(i.data("src"))l=i.data("src").split("::");else{if(!t.hasOwnProperty("src"))return;l="string"==typeof t.src?t.src.split("::"):t.src}t.saveStatus&&function(){if(e.cookie){let o=e.cookie("ap-status");o&&(o=o.split("::"),t.autoPlay="1"===o[0],t.startTime=parseFloat(o[1]||0),y=t.volume=parseFloat(o[2])||.2,((m=parseInt(o[3]||0,10))<0||m>l.length)&&(m=0))}}(),function(){if(d=t.hasOwnProperty("target")?e("#"+t.target):e("<div>",{class:t.playerHook}),(c=e("<audio>",{preload:"auto",controls:!0,controlsList:"nofullscreen nodownload noremote"}).appendTo(d))[0].pause(),i.data(n,!0),f=e("<source>",{src:a+l[m]}).appendTo(c),setTimeout(function(){c.on("ended."+o,function(){return k(),!0}),c.on("pause."+o,function(){i.data(n,!0),i.removeClass("active"),typeof t.onPaused===FUNCTION&&t.onPaused.call(i)}),c.on("playing."+o,function(){i.data(n,!1),0===c[0].volume&&(c[0].volume=y||t.volume),i.addClass("active"),typeof t.onPlaying===FUNCTION&&t.onPlaying.call(i)}),c.on("volumechange."+o,function(){h||v||(y=c[0].volume)})},100),l.length){p=e("<ul>",{class:t.playListHook}).appendTo(d);for(var r=0;r<l.length;r++)p.append(e("<li>").append(e("<a>",{text:decodeURIComponent(l[r].replace(/\.[^\.]*$/,""))}).on("click."+o,function(t){var o=p.children().index(e(t.target).parent());return P(o),!1})));p.children().eq(m).addClass("active")}}(),t.hasOwnProperty("target")&&(u=e("#"+i.data("rel"))),u.length?u.append(d):i.addTooltip(d,{pos:t.pos,delay:500}),i.on("click."+o,function(){return!(!u.length||u.is(":hidden"))||(i.data(n)?C():w(),!1)}),i.on("removePlayer."+o,function(){d.trigger("removeTooltip"),d.add(i).off("."+o),d.remove()}),i.on("startPlayer."+o,P),i.on("pausePlayer."+o,g),i.on("togglePlayer."+o,function(){c[0].paused?P():g()}),i.on("fadeInPlayer."+o,C),i.on("fadeOutPlayer."+o,w),i.on("fadeTogglePlayer."+o,function(){h||!c[0].paused?w():C()}),i.data("slideshowControl",t.slideshowControl),setTimeout(function(){c[0].volume=t.volume,t.hasOwnProperty("startTime")&&(c[0].currentTime=t.startTime),t.autoPlay&&C(),e(window).on("pagehide."+o,O)},50)})},e.fn.audioPlayer.defaults={autoPlay:!0,loop:!0,volume:.25,stepFreq:30,step:.02,saveStatus:!0,playerHook:"player",playListHook:"play-list",folder:"res",rootPath:"",pos:[1,2,1,0],onPlaying:null,onPaused:null}}(jQuery); 21!function(e,t,o){"use strict";var a=jQuery("body");e.fn.lightbox=function(n,i){if(typeof n===UNDEF)return this;i=e.extend({},e.fn.lightbox.defaults,i);var s,l,r,c,d,u,p,h,m,f,g,b,C,v,w,T,y,x,S,O,P,A,k,I,E,D,N=e(this),F=getTranslations(e.fn.lightbox.text),M=e([]),L=e(),V=e(),R=e(),U=e(),z=e(),B=e(),H=e(),G=e(),q=e(),Z=!0,W=!1,j=!1,K=!1,_=!1,Y=!1,Q=!1,X=!1,$=!1,ee=null,te=!1,oe=i.slideshowDelay,ae=i.transitionSpeed,ne=null,ie=null,se=null,le=null,re=!1,ce=i.maxZoom,de=i.fitImages,ue=i.thumbsVisible,pe=i.captionVisible,he=-1,me=0,fe=0,ge=i.fitPadding,be=N.data("llb_ns"),Ce=!!i.hasOwnProperty("extraSizes")&&i.extraSizes.split(/,\s*/),ve=e("[data-audioplayer]"),we=function(){return"screen"!==i.fitBetween&&i.thumbsVisible&&M.length>1&&m&&m.length?m[0].clientHeight:0},Te=function(){return"screen"!==i.fitBetween&&d.hasClass(i.captionVisibleClass)&&B&&B.length?B[0].offsetHeight:0},ye=function(e){i.useZoom&&i.zoomSlider?(de=!0,Ae(l=l>50?0:100)):de=!de,typeof e===UNDEF?De(!0):De(!0,e)},xe=function(e,t){l=e,Ae(e),typeof t===UNDEF?De(!0):De(!0,t)},Se=function(e,t){var o=i.zoomSlider?Pe():l;o<100&&(o=Math.min(100,o+(typeof e!==UNDEF?e:25))),typeof t===UNDEF?xe(o):xe(o,t)},Oe=function(e,t){var o=i.zoomSlider?Pe():l;o>0&&(o=Math.max(0,o-(typeof e!==UNDEF?e:25))),typeof t===UNDEF?xe(o):xe(o,t)},Pe=function(){return parseInt(T.val())},Ae=function(e){T.val(e)},ke=function(e,t){i.zoomSlider?e||t?(d.addClass("show-zoom-level"),0===l?C.removeClass("icon-zoom-out icon-zoom-level").addClass("icon-zoom-in"):100===l?C.removeClass("icon-zoom-in icon-zoom-level").addClass("icon-zoom-out"):C.removeClass("icon-zoom-in icon-zoom-out").addClass("icon-zoom-level")):d.removeClass("show-zoom-level"):(d.toggleClass("show-zoom-out",t),d.toggleClass("show-zoom-in",e&&!t))},Ie=function(e){E.html(e>=1e3?Math.round(e/1e3)+"s":e+"ms")}
21,Ee=function(){var e=[d.width(),d.height()];return[e[0]-2*ge,e[1]-Math.max(we(),ge)-Math.max(Te(),ge)]},De=function(e,t,o){var a=M.eq(he).data(J.OBJ),s=[d.width(),d.height()],r=n.getDimensions(a),u=n.getMaxDimensions(a),p=Y||K||_||"all"===i.fitBetween&&!i.autohideControls?G[0].clientHeight:0,h=we(),m=Te(),f=function(e){return i.autoPano&&(e[0]/e[1]>i.horzPanoThreshold||e[0]/e[1]<i.vertPanoThreshold)},g=function(e){return e[0]/s[0]>=i.panoramaAutoDetect||e[1]/s[1]>=i.panoramaAutoDetect},b=function(e,t){return[e[0]*t,e[1]*t]},C=function(e){return Math.max((s[0]-2*ge-2*c)/e[0],(s[1]-Math.max(h+p,ge)-Math.max(m,ge)-2*c)/e[1])},v=function(e){return Math.min((s[0]-2*ge-2*c)/e[0],(s[1]-Math.max(h+p,ge)-Math.max(m,ge)-2*c)/e[1])};if(typeof c===UNDEF&&(c=parseInt(V.css("paddingTop"))),typeof ge===UNDEF&&(ge=0),typeof l!==UNDEF&&null!==l||(l=de?0:100,i.useZoom&&i.zoomSlider&&Ae(l)),Y||K||_||j&&U.hasClass("default")){var w=Math.max(h+(Y||K||_?p:0),ge),T=Math.max(m,ge),y=s[0]-2*ge,x=s[1]-(w+T);if(_)r[0]<y&&r[1]<x&&(y=Math.min(r[0],y)+2*c,x=Math.min(r[1],x)+2*c);else if(j)if(r[0]>y||r[1]>x){var S=Math.min(y/r[0],x/r[1]);y=r[0]*S,x=r[1]*S}else y=r[0],x=r[1];V.data("fitted",!0).css({display:"block",width:y,height:x,transition:"none",transform:"matrix(1,0,0,1,"+Math.round((0-y)/2)+","+Math.round((w-T-x)/2)+")",opacity:1}),i.useZoom&&ke(!1,!1),typeof o===FUNCTION&&o.call(null)}else{var O,P,A,k,I,E=V.getMatrix(),D=!1;if(d.data("panomove")&&V.trigger("autopanoStop"),O=Math.min(1,v(r)),P=W||j?Math.min(ce,v(r)):u&&u[0]>r[0]?Math.max(1,u[0]/r[0]):ce,O>P){var N=O;O=P,P=N}if(i.useZoom&&i.zoomSlider?V.data("inited")?(k=b(r,A=O+l*(P-O)/100),D=A==O,I=!!d.data("hasAutoPano")):(X||f(r)?(k=b(r,A=Math.min(P,C(r))),I=g(k),D=!0):i.fitImages?(k=b(r,A=Math.min(P,v(r))),I=!1,D=!0):(k=r,I=!1,D=(A=1)==O),l=100*Math.minMax(0,(A-O)/(P-O),1),Ae(l)):X||f(r)?(k=b(r,A=Math.min(ce,de?C(r):v(r))),I=g(k),D=de):(D=(A=V.data("inited")?de?Math.min(1,v(r)):P:(de=i.fitImages)||W||j?Math.min(ce,v(r)):1)==O,k=b(r,A)),Z&&!D&&(u[0]>r[0]||u[1]>r[1])&&(k[0]>r[0]||k[1]>r[1])&&(!V.data("lastDims")||V.data("lastDims")[0]<k[0])&&(V.data("optSource",n.getOptimalImagePath(a,k,i.displayOriginals)),V.data("lastDims",k)),k=[k[0]+2*c,k[1]+2*c],E[0]=E[3]=1,!V.data("inited")||!I&&D)V.data("inited",!0),E[4]=0-k[0]/2,E[5]=0-k[1]/2+(D?(Math.max(h+p,ge)-Math.max(m,ge))/2:0);else{var F=(k[0]-2*c)/V.width(),x=V.height();if(typeof t!==UNDEF&&t){var L=t.x-s[0]/2,R=t.y-s[1]/2;E[4]=L-(L-E[4])*F,E[5]=R-(R-E[5])*F}else E[4]*=F,E[5]*=F}Z&&I&&(V.data("hasAutoPano")||D&&(k[0]>s[0]+10||k[1]>s[1]+10)&&(k[0]/k[1]>s[0]/s[1]?E[4]-=i.autoPanoStart*(k[0]-s[0])/2:E[5]-=i.autoPanoStart*(k[1]-s[1])/2));var B=null,H=function(){if(V.data("optSource")){var e=V.children("img").eq(0);e.length&&(e.attr("src",V.data("optSource")),console.log("src replaced: "+e.attr("src")),V.removeData("optSource"))}!Z||!I||typeof t!==UNDEF&&t||(V.data("hasAutoPano")?V.trigger("autopanoAdjust"):V.autopano({direction:-i.autoPanoStart||fe,speed:i.autoPanoSpeed})),W&&i.videoAuto&&z[0].paused&&playVideo(z[0])},q=function(){clearTimeout(B),typeof o===FUNCTION?o(H):H()};V.css({display:"block",transition:e?"transform "+i.transitionProps+", width "+i.transitionProps+", height "+i.transitionProps:"none"}),e&&(V.one("transitionend",q),B=setTimeout(q,320)),V.data({fitted:D,minRatio:O,maxRatio:P}).css({transform:"matrix("+E.join(",")+")",width:k[0],height:k[1]}),i.useZoom&&(P>A?ke(!0,!1):O<A?ke(!1,!0):ke(!1,!1)),e||(B=setTimeout(q,20))}},Ne=function(){var e=d.find("."+i.regionsClass);return e.length&&(i.regionsVisible=!i.regionsVisible,e.is(":visible")?e.fadeOut():e.fadeIn()),!1},Fe=function(t){var o="touch"===e("html").data("whatinput")||"touchend"===t.type;if(W||j){var a=z[0];return a.paused?(a.play(),"ms"!==VEND&&(a.controls=!1),o&&(st(),d.hasClass(i.thumbsVisibleClass)&&ct(),d.hasClass(i.captionVisibleClass)&&ut())):(a.pause(),"ms"!==VEND&&(a.controls=!0),o&&("togglecontrols"===i.clickAction?st():"toggleall"===i.clickAction&&(o&&d.hasClass(i.controlsHideClass)?d.removeClass(i.controlsHideClass):pt()))),!1}Z&&("nextimage"===i.clickAction?(getCoords(t).x-V.position().left>V.width()/2?mt():ht(),o&&nt()):"togglecontrols"===i.clickAction?st():"toggleall"===i.clickAction&&(o&&d.hasClass(i.controlsHideClass)?d.removeClass(i.
21controlsHideClass):pt()))},Me=function(){R.length&&(R.remove(),R=e())},Le=function(t){switch(i.transitionType){case"crossFadeAndSlide":var o=(a=V.getMatrix())[4];fe&&(a[4]+=100*fe,V.css({transition:"none",transform:"matrix("+a.join(",")+")"})),window.requestAnimationFrame(function(){if(R.length&&R!==V)if("swipe"===R.data("swipe"))setTimeout(Me,ae/2);else{var e=R.getMatrix();e[4]-=100*fe,R.one("transitionend",Me).css({transition:"transform "+ae/2+"ms ease-out, opacity "+ae/2+"ms ease-out"}).css({transform:"matrix("+e.join(",")+")",opacity:0})}V.one("transitionend",function(){Je(t)}),setTimeout(function(){fe?(a[4]=o,V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out"}).css({transform:"matrix("+a.join(",")+")",opacity:1})):V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out"}).css({opacity:1})},TOUCHENABLED?350:50)});break;case"crossFadeAndZoom":var a=V.getMatrix(),n=a[0],s=a[3];fe&&(a[0]*=1-fe/40,a[3]*=1-fe/40,V.css({transition:"none",transform:"matrix("+a.join(",")+")"})),window.requestAnimationFrame(function(){if(R.length&&R!==V)if("swipe"===R.data("swipe"))setTimeout(Me,ae/2);else{var o=R.getMatrix();o[0]*=1+fe/20,o[3]*=1+fe/20,R.one("transitionend",function(){R.remove(),R=e()}).css({transition:"transform "+ae/2+"ms ease-out, opacity "+ae/2+"ms ease-out",transform:"matrix("+o.join(",")+")",opacity:0}
21)}V.one("transitionend",function(){Je(t)}),setTimeout(function(){fe?(a[0]=n,a[3]=s,V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out",transform:"matrix("+a.join(",")+")",opacity:1})):V.css({transition:"transform "+ae+"ms ease-out, opacity "+ae+"ms ease-out",opacity:1})},TOUCHENABLED?350:50)});break;default:V.css({transition:"none",opacity:0}),window.requestAnimationFrame(function(){R.length&&R!==V&&("swipe"===R.data("swipe")?setTimeout(Me,ae/2):R.one("transitionend",function(){R.remove(),R=e()}).css({transition:"opacity "+ae/2+"ms ease-out",opacity:0})),V.one("transitionend",function(){Je(t)}).css({transition:"opacity "+ae+"ms ease-out",opacity:1})})}},Je=function(e){typeof e===FUNCTION&&e.call(),typeof i.onLoadEnd===FUNCTION&&i.onLoadEnd(M.eq(he)),i.preloadNext&&function(){var e;fe<0&&he>0?e=M.eq(he-1).data(J.OBJ):he<M.length-1&&(e=M.eq(he+1).data(J.OBJ)),e&&"image"===e[J.CATEGORY]&&((new Image).src=n.getOptimalImagePath(e,Ee(),i.displayOriginals))}()},Ve=function(){if(!(--me>0)){if(p.hide(),DEBUG){var t=new Date;_||Y?console.log((_?"External content":"360 player")+" loaded: "+(t-r)+"ms"):U.length&&(console.log((W||j?"Media":"Image")+" ["+he+"] loaded: "+(t-r)+'ms src="'+U[0].src+'"'),typeof U[0]!==UNDEF&&typeof z[0]!==UNDEF||console.log("Premature "+(typeof U[0]===UNDEF?"loadImage.done("+U[0].src+")":"loadMedia.done("+z[0].src+")")))}if(typeof window.gtag===FUNCTION){var o=W||j?z[0].src:Y?V.children().eq(0).data("src"):U[0].src,a=o.getDir().replace(/^(https?\:\/\/[^\/]+\/)/,"");window.gtag("event","image_view",{image_name:o,album_name:a,image_index:he+1})}(Z||W||j)&&i.rightClickProtect&&z.on("contextmenu",function(e){return e.preventDefault(),!1}),(W||j)&&(z.attr({autoplay:i.videoAuto,loop:i.videoLoop}),z[0].volume=i.volume,z.on("volumechange."+be,function(){i.volume=this.volume})),H.length&&(H.find(".buttons a").trigger("removeTooltip"),H.length>1&&(H.eq(-1).prevAll("."+i.lightboxCaptionClass).remove(),H=d.find("."+i.lightboxCaptionClass)),d.hasClass(i.captionVisibleClass)?H.one("transitionend",function(){H.remove(),H=e()}).css({transition:"opacity "+ae/2+"ms ease-out",opacity:0}):H.remove()),Y||Q||W||_&&V.children("iframe").length?V.on("click."+be+" "+TOUCH.END+"."+be,function(e){V.data("clickhandled")||(V.data("swipe","click"),V.data("clickhandled",!0),setTimeout(function(){V.removeData("clickhandled")},200),Fe(e))}):V.swipe({avoidNavigationOnZoomed:i.avoidNavigationOnZoomed,onSwipeStart:function(){e(this).trigger("autopanoStop"),e(this).hideAllTooltips()},onSwipedLeft:function(){V.data("swipe","swipe"),mt()},onSwipedRight:function(){V.data("swipe","swipe"),ht()},onSwipedDown:function(){V.data("swipe","down"),ze()},onPinchZoom:function(t){V.data("swipe","pinch"),d.data("panomove")&&(t.preventDefault(),e(this).trigger("autopanoStop")),function(e,t){if(i.useZoom&&i.zoomSlider){if(1===e)return;var o=V.data("minRatio")||1,a=V.data("maxRatio")||1.4,n=o+l*(a-o)/100;n=Math.minMax(o,n*e,a),l=(n-o)/(a-o)*100,Ae(e),ke(l<50,l>=50)}}(V.getScale()[0],getCoords(t))},onFinished:function(){$||(e(this).trigger("removeSwipe"),e(this).remove())},onClick:function(t){d.data("panomove")?(V.data("swipe","panostop"),t.preventDefault(),e(this).trigger("autopanoStop")):(V.data("swipe","click"),Fe(t))},onRightClick:function(e){Ke(!0)},onDoubleClick:i.useZoom&&i.doubleClickZoom?function(e){var t=getCoords(e);V.data("swipe","doubleclick"),i.zoomSlider?l<100?Se(50,t):xe(0):ye(t)}:null}),De(!1,null,function(e){Le(e)}),W&&i.videoAuto&&z[0].paused&&playVideo(z[0]),ee||te?(j||W)&&i.videoAuto?(_e(),z[0].onended=function(){je()}):(clearTimeout(ee),ee=setTimeout(mt,oe),I&&(I.show(),function(e){var t=20/oe,o=function(e){I.css("width",100*e+"%"),e<1&&(e=Math.min(1,e+t),le=setTimeout(o,20,e))};clearTimeout(le),le=setTimeout(o,20,0)}())):i.autohideControls&&it()}},Re=function(e){if("swipe"===(e=e||V).data("swipe")){var t=V.getMatrix();t[4]=-V.width()/2,e.one("transitionend",function(){e.data("swipe",null)}).css({opacity:1,transition:"opacity "+2*i.transitionSpeed+"ms ease-out, transform "+2*i.transitionSpeed+"ms ease-out",transform:"matrix("+t.join(",")+")"})}},Ue=function(o,l){var c;if("number"!=typeof o&&(o=M.index(o)),$=!1,o<0||o>=M.length)if(o<0)switch(i.afterLast){case"donothing":$=!0,o=0,"swipe"===V.data("swipe")&&Re();break;case"startover":o=M.length-1;break;case"onelevelup":i.level&&(window.location.href="../"+i.indexName),o=0;break;case"nextfolder":i.baseSet&&i.previousFoldersLast?window.location.href=i.previousFoldersLast:(o=0,"swipe"===V.data("swipe")&&Re());break;case"nextindex":i.baseSet&&i.previousFolderPath?window.location.href=i.previousFolderPath:(o=0,"swipe"===V.data("swipe")&&Re());break;default:return o=0,void ze()}else switch(i.afterLast){case"donothing":$=!0,o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re();break;case"startover":o=0;break;case"onelevelup":i.level&&(window.location.href="../"+i.indexName),o=M.length-1,Ke();break;case"nextfolder":i.baseSet&&i.nextFoldersFirst?window.location.href=i.nextFoldersFirst+(ee?"&slideshow":""):(o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re());break;case"nextindex":i.baseSet&&i.nextFolderPath?window.location.href=i.nextFolderPath:(o=M.length-1,Ke(),"swipe"===V.data("swipe")&&Re());break;case"ask":var u=Ke(),h=new Array;return $=!0,"swipe"===V.data("swipe")&&Re(),o=M.length-1,M.length>1&&h.push({t:F.startOver,c:"icon-loop",h:function(e){Ue(0)}}),i.level&&h.push({t:i.level?F.upOneLevel:i.homepageLinkText||F.backToHome,c:"icon-one-level-up",h:function(){window.location.href="../"+i.indexName}}),h.push({t:F.backToIndex,c:"icon-arrow-up",h:function(){ze()}}),i.baseSet&&(i.nextFoldersFirst&&h.push({t:F.nextFolder,c:"icon-arrow-right",h:function(){window.location.href=i.nextFoldersFirst+(u?"&slideshow":"")}}),i.nextFolderPath&&h.push({t:F.nextIndex,c:"icon-thumbnails",h:function(){window.location.href=i.nextFolderPath}})),void d.modal(e("<p>",{class:"text-center",text:F.atLastPageQuestion}),h,{onClose:function(){Ue(M.length-1)},class:"secondary",icon:"info",title:F.atLastPage});default:return o=ee?0:M.length-1,Ke(),void ze(M[0])}if(d.is(":visible")){if(fe=Math.abs(o-he)>=M.length-1&&"startover"===i.afterLast?1:he>o?-1:he<o?1:0,he===o)return;V.hideAllTooltips(),i.autoHideControls&&it()}else re=!0,a.add(e("html")).css("overflow","hidden"),a.addClass(i.lightboxOnClass),fe=0,!isFullscreen()&&i.lightboxFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&requestFullscreen(),i.useRating&&function(e){he>
21=0&&(typeof e===UNDEF&&(e=M.eq(he).data(J.OBJ)[J.VISITORRATING]||0),d.find("."+i.lightboxCaptionClass+" .ratingbox span").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+e))}(),d.css({display:"block",visibility:"visible",transition:"opacity "+i.transitionSpeed+"ms ease-out"}).one("transitionend",function(){i.autoStart&&We()}).css("opacity",1),bt(Ct);d.find(".modal").trigger("destroy"),he=o,L=M.eq(he),c=L.data(J.OBJ),i.useThumbstrip&&M.length>1&>(),c?(p.show(),I&&(clearTimeout(le),I.hide()),function(e){if(W=j=K=Z=Y=Q=X=!1,_=e.hasOwnProperty(J.EXTERNAL),Y=!_&&i.use360Player&&(e.hasOwnProperty(J.PROJECTIONTYPE)&&"equirectangular"===e[J.PROJECTIONTYPE]||"video"===e[J.CATEGORY]&&e.hasOwnProperty(J.PANORAMA)&&e[J.PANORAMA]),!_&&!Y)switch(e[J.CATEGORY]){case"video":W=!0;break;case"audio":j=!0;break;case"other":K=!0,Q="pdf"===n.getExtension(e).toLowerCase();break;default:Z=!0,X=e.hasOwnProperty(J.PANORAMA)&&e[J.PANORAMA]||i.autoPano&&(e[J.IMAGE][J.WIDTH]>d.width()||e[J.IMAGE][J.HEIGHT]>d.height())&&(e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]>i.horzPanoThreshold||e[J.IMAGE][J.WIDTH]/e[J.IMAGE][J.HEIGHT]<i.vertPanoThreshold)}}(c),function(e){oe=e.hasOwnProperty(J.SLIDESHOWINTERVAL)?e[J.SLIDESHOWINTERVAL]:i.slideshowDelay,ae=e.hasOwnProperty(J.TRANSITIONSPEED)?e[J.TRANSITIONSPEED]:i.transitionSpeed}(c),typeof l===FUNCTION&&l.call(this),setTimeout(function(){if(R=d.find("."+i.lightboxMainClass),H=d.find("."+i.lightboxCaptionClass),R.length&&(R.trigger("autopanoRemove").off("."+be).removeClass(i.currClass),i.muteBackgroundAudio&&(j||W)&&qe(),at(R),Xe(),R.off("click.nonimage")),me=1,r=new Date,V=e("<div>",{class:"lightbox-main "+i.currClass+" "+(_?"external":Y?"vr":Q?"pdf":c[J.CATEGORY])}).css({opacity:0,transform:"matrix(1,0,0,1,-50%,-50%)"}).appendTo(d),(i.hasOwnProperty("shop")&&n.hasShop(c)||i.hasOwnProperty("feedback")&&i.feedback.root&&!n.disableFeedback(c))&&(V.append(e("<a>",{class:i.checkboxClass+(L.hasClass(i.selectedClass)?" "+i.checkmarkClass:"")}).on("click",function(){return e(this).toggleClass(i.checkmarkClass),L.trigger("toggleCard"),!1})),i.hasOwnProperty("shop")&&n.hasShop(c)?V.append(e("<a>",{class:"icon-shopping-cart-add add-cart-btn"}).addTooltip(F.addCart,{pos:[0,1,2,1]}).on("click",function(e){return ee&&(_e(),i.shop.root.trigger("onClose",function(){te&&je(),i.shop.root.trigger("onClose",null)})),i.shop.root.trigger("addItems",c),!1})):V.append(e("<a>",{class:"icon-email-send add-cart-btn",text:" "+i.feedbackAddBtnLabel}).on("click",function(e){return ee&&(_e(),i.feedback.root.trigger("onClose",function(){te&&je(),i.feedback.root.trigger("onClose",null)})),i.feedback.root.trigger("addItems",c),!1}))),Y){var o=Math.round(d.width()-2*ge),a=Math.round(d.height()-2*ge);V.css({width:o,height:a}).attr("id","vr"+he).addClass("vr").show().one("DOMReady",Ve),typeof PhotoSphereViewer!==UNDEF?setTimeout(function(){var t,o,a={container:V[0]};"video"===c[J.CATEGORY]?(a.panorama=n.getVideoPath(c),a.adapter=PhotoSphereViewer.EquirectangularVideoAdapter,a.plugins=[PhotoSphereViewer.VideoPlugin,{}],a.navbar=["zoom","fullscreen"]):(a.panorama=n.getOriginalPath(c)||n.getImagePath(c),a.navbar=["autorotate","zoom","fullscreen"],i.autoRotate360&&i.rotateSpeed360&&(a.autorotateDelay=1e3),a.autorotateSpeed=i.rotateSpeed360+"rpm"),(o=c.gpano)&&(o.fov&&(a.defaultZoomLvl=o.fov),(o.pan||o.tilt||o.roll)&&(a.sphereCorrection={pan:Math.PI*o.pan/180,tilt:Math.PI*o.tilt/180,roll:Math.PI*o.roll/180})),t=new PhotoSphereViewer.Viewer(a),e(t.container).data("src",a.panorama),setTimeout(Ve,100)},50):console.log('Fatal Error: Missing "photo-sphere-viewer.min.js"!')}else if(Z)z=U=e("<img>").appendTo(V),DEBUG&&console.log("Loading image ["+he+'] src="'+n.getOptimalImagePath(c,Ee(),i.displayOriginals)+'"'),U[0].complete&&U[0].naturalWidth>0?Ve():U.one("load."+be,function(e){Ve()}),U[0].src=n.getOptimalImagePath(c,Ee(),i.displayOriginals);else if(j||W){if(W){var l=n.getVideoDuration(c);z=U=e("<video>",{preload:"auto",controlsList:"nodownload",poster:n.getPosterPath(c)}),null===l||l>=2e3?z[0].controls="true":z[0].loop="true"}else{var u=n.getPosterPath(c);me=2,U=e("<img>",{class:"poster"+(u.endsWith("poster.png")?" default":"")}).one("load",function(e){Ve()}).attr("src",u).appendTo(V),z=e("<audio>",{preload:"auto",controls:"true",controlsList:"nofullscreen nodownload"})}z.one("loadedmetadata",function(e){Ve()}).attr("src",n.getSourcePath(c)).appendTo(V),z.on({playing:et,pause:tt,ended:ot})}else if(_){var p=c[J.EXTERNAL].cont,h=c[J.EXTERNAL].size;h&&(h=h.split("x"),V.data({oWidth:parseInt(h[0]),oHeight:parseInt(h[1])})),V.one("DOMReady",function(e){Ve()}),p.match(/^https?\:\/\//i)||p.match(/\.html?$/i)||p.match(/^\.\.\//)?V.addClass("iframe").append(e("<iframe>",{width:"100%",height:"100%",src:p,frameborder:0,allowfullscreen:"allowfullscreen"})):(p.match(/^<iframe/i)&&V.addClass("iframe"),V.append(p)),setTimeout(Ve,200)}else{var m=function(t,o){t.append(e("<div>",{class:"icon",html:'<a href="'+n.getSourcePath(o)+'" target="_blank"><img class="other" src="'+n.getImagePath(o)+'"></a><p class="icon-external"> '+F.clickToOpen+"</p></div>"}))};if(Q&&HASPDFVIEWER&&!ISIOSDEVICE){var f=e("<object>",{type:"application/pdf"}).attr("data",n.getSourcePath(c));
21m(f,c),V.append(f),setTimeout(Ve,400)}else if(i.useGoogleDocs&&!LOCAL&&".docx.xlsx.txt.pdf".indexOf("."+(c.hasOwnProperty(J.ORIGINAL)?c[J.ORIGINAL][J.PATH]:c[J.NAME]).getExt())>=0){V.addClass("iframe");var g=e("<iframe>",{width:"100%",height:"100%",frameborder:0,allowfullscreen:"allowfullscreen"}).appendTo(V);setTimeout(function(e,t){e.attr("src","https://docs.google.com/viewer?url="+window.location.href.getDir()+n.getSourcePath(t)+"&embedded=true"),setTimeout(Ve,400)},100,g,c)}else m(V,c),Ve()}!function(o){B=e("<div>",{class:[i.lightboxCaptionClass,"scrollable",ee||te?"slideshow":"",i.infoPanelAdapt?"adapt-width":"fixed-width"].filter(Boolean).join(" ")});var a,l=e("<div>",{class:"caption"}),r=e("<div>",{class:"buttons"}),c=i.buttonLabels;if(o[J.IMAGECAPTION]&&l.append(o[J.IMAGECAPTION]),_||!o[J.PHOTODATA]||i.metaAsPopup||l.append(e("<div>",{class:"photodata",html:o[J.PHOTODATA]})),l.is(":empty")?B.addClass("no-caption"):(l.find("[data-tooltip]").addTooltip(),B.append(l)),i.useRating){var u=o[J.RATING]||0;if(i.visitorRating||u){var p;(s=e("<div>",{class:"ratingbox"}).appendTo(r)).append(e("<label>",{html:F.rating})),p=e("<span>",{class:"rating",html:STARS}).appendTo(s),i.visitorRating?(o.hasOwnProperty(J.VISITORRATING)?u=o[J.VISITORRATING]:(i.useJalbumRating||(u=0),o[J.VISITORRATING]=u),p.addClass("r"+u+(i.useJalbumRating?"":" icon-close")).on("click."+be,function(t){var a=e(this),n=Math.minMax(0,Math.floor((getCoords(t).x-a.offset().left-parseFloat(a.css("paddingLeft")))/16),5);return a.removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),o[J.VISITORRATING]=n,N.trigger("refreshRating",M.eq(he)),!1})):p.addClass("r"+u)}}if(!_&&Ce&&"image"===o[J.CATEGORY]){var h=n.getImagePath(o);s=e("<div>",{class:"download icon-download"}).appendTo(r);for(var m=0;m<Ce.length;m++)s.append(e("<a>",{text:Ce[m],href:h.replace("slides/","dl/"+Ce[m]+"/"),download:""}))}if(i.printImage&&"image"===o[J.CATEGORY]&&!i.rightClickProtect&&(s=e("<a>",{class:i.buttonClass+" icon-printer"}).appendTo(r),c&&s.html("<span>"+F.print+"</span>"),ISSEPARATEHOVER||s.data("tooltip",c?F.printLabel:F.print),s.on("click",function(e){printImage(o[J.ORIGINAL]&&i.showDownload?n.getOriginalPath(o):n.getImagePath(o),o[J.TITLE]||"",o[J.THUMBCAPTION]||"")})),!_&&i.showDownload){var f;o[J.ORIGINAL]&&(Z||Q||i.allowDownloadOthers)?f=n.getOriginalPath(o):Z&&i.allowDownloadScaled&&(f=n.getImagePath(o)),f&&(s=e("<a>",{class:i.buttonClass+" icon-download download-btn",href:f,html:c?"<span>"+F.download+"</span>":"",download:""}).appendTo(r),ISSEPARATEHOVER||getFileSize(f,function(e,t){e&&t&&t.addTooltip(c?niceByte(e):F.download+" ["+niceByte(e)+"]")},s))}(a=i.hasOwnProperty("shop")&&n.hasShop(o)&&i.showShop)&&(l=n.getPriceRange(o),l=F.addCart+(l?" <b>"+l+"</b>":""),(s=e("<a>",{class:i.buttonClass+" icon-shopping-cart-add add-cart-btn"}).on("click",function(e){return ee&&(_e(),i.shop.root.trigger("onClose",function(){te&&je(),i.shop.root.trigger("onClose",null)})),i.shop.root.trigger("addItems",o),!1}).appendTo(r)).html("<span>"+l+"</span>").data("tooltip",F.shopLabel),(s=e("<a>",{class:i.buttonClass+" secondary icon-shopping-cart view-cart-btn"}).on("click",function(e){return i.shop.root.trigger("showCart"),!1}).appendTo(r)).html("<span>"+F.viewCart+"</span>").data("tooltip",F.viewCartLabel));if(i.hasOwnProperty("feedback")&&i.feedback.root&&i.showFeedback&&(s=e("<a>",{class:i.buttonClass+" icon-email-send feedback-btn"}).on("click",function(e){return ee&&(_e(),i.feedback.root.trigger("onClose",function(){te&&je(),i.feedback.root.trigger("onClose",null)})),i.feedback.root.trigger("addItems",o),!1}).appendTo(r),c?s.html("<span>"+i.feedbackBtnLabel+"</span>").data("tooltip",i.feedbackBtnTooltip):s.data("tooltip",i.feedbackBtnLabel)),LOCAL&&!DEBUG||!i.hasOwnProperty("fotomoto")||n.hideFotomoto(o)||(s=e("<a>",{class:i.buttonClass+" "+(a?"icon-fotomoto":"icon-shopping-cart")+" fotomoto-btn"}).on("click",function(e){return e.preventDefault(),ee&&Ke(!0),typeof FOTOMOTO!==UNDEF&&FOTOMOTO.API.showWindow(10,n.getOriginalPath(o)||n.getItemPath(o)),!1}).appendTo(r)).html("<span>"+F.fotomotoBtn+"</span>").data("tooltip",F.fotomotoTooltip),!_&&o[J.PHOTODATA]&&i.metaAsPopup&&(s=e("<a>",{class:i.buttonClass+" icon-camera photodata-btn"}).appendTo(r),c?s.html("<span>"+F.metaBtn+"</span>").data("tooltip",F.metaLabel):s.data("tooltip",F.metaBtn),s.on("click",function(){return ee&&_e(),d.modal(e("<div>",{class:"photodata",html:o[J.PHOTODATA]}),{title:F.metaBtn,icon:"camera",onClose:function(){te&&je()}}),!1})),!_&&i.showRegions&&o[J.REGIONS]&&(s=e("<a>",{class:i.buttonClass+" icon-facetag regions-btn"}).appendTo(r),c?s.html("<span>"+(i.regionsBtn||F.regionsBtn)+"</span>").data("tooltip",F.regionsLabel):s.data("tooltip",i.regionsBtn||F.regionsBtn),function(t,o){for(var a,n=e("<div>",{class:i.regionsClass}).appendTo(V),s=0;s<t.length;s++)a=t[s].split(";"),n.append(e("<div>").css({left:100*parseFloat(a[1])+"%",top:100*parseFloat(a[2])+"%",width:100*parseFloat(a[3])+"%",height:100*parseFloat(a[4])+"%"}).append("<span>"+a[0]+"</span>"));n.toggle(typeof o!==UNDEF&&o)}(JSON.parse(o[J.REGIONS]),i.regionsVisible),s.on("click",Ne)),i.showMap&&o[J.LOCATION]&&(s=e("<a>",{class:i.buttonClass+" icon-location map-btn"}).appendTo(r),c?s.html("<span>"+F.mapBtn+"</span>").data("tooltip",F.mapLabel):s.data("tooltip",F.mapBtn),s.on("click",function(){var a=e("<div>",{class:"map-cont"});return ee&&_e(),a.height(t.height()*i.mapHeight),d.modal(a,{class:"no-padding large",onClose:function(){te&&je()}}),setTimeout(function(){i.hasOwnProperty("mapApiKey")&&i.mapApiKey?a.addMap({apiKey:i.mapApiKey,type:i.mapType||"hybrid",zoom:i.mapZoom||16,location:o[J.LOCATION],fitBounds:!1,fullscreenControl:!1,onTypeChanged:function(e){i.mapType=e},onZoomChanged:function(e){i.mapZoom=e}}):a.addMap({resPath:i.resPath,zoom:i.mapZoom||16,location:o[J.LOCATION],fitBounds:!1})},100),!1})),LOCAL||_||!o[J.MOSTPHOTOS]||(s=e("<a>",{class:i.buttonClass+" icon-shopping-cart mostphotos-btn",target:"_blank",href:"https://mostphotos.com/"+o[J.MOSTPHOTOS]}).appendTo(r),c?s.html("<span>"+F.mostphotosBtn+"</span>").data("tooltip",F.mostphotosLabel):s.data("tooltip",F.mostphotosBtn)),(DEBUG||!LOCAL)&&i.share&&i.showShare&&(s=e("<a>",{class:i.buttonClass+" icon-connect share-btn"}).appendTo(r),c?s.html("<span>"+F.share+"</span>").data("tooltip",F.shareLabel):s.data("tooltip",F.share),s.on("click",function(){var t=e("<div>",{class:"social"});return ee&&_e(),d.modal(t,{title:F.shareOn,icon:"connect",onClose:function(){te&&je()}}),setTimeout(function(){t.renderShares({sites:i.share,title:o[J.TITLE]||o[J.NAME].stripExt().replace(/[-_]/g," ").capitalize(),description:o[J.COMMENT],image:n.getOptimalThumbPath(o,[960,640],!1),href:n.getAbsolutePath(o)})},100),!1})),i.showNumbers&&r.prepend(e("<div>",{class:"numbers",html:"<span>"+(he+1)+" </span>/ "+M.length})),!j&&o[J.AUDIOCLIP]){s=e("<div>",{class:"audio-clip paused"}).appendTo(r);var g=e("<a>",{class:i.buttonClass+" icon-volume-up audioclip-btn"}).appendTo(s);g.on("click",function(){return g.hasClass("icon-pause")?Xe():Qe(),!1}),q=e("<audio>",{class:"audioclip",src:n.getAudioClipPath(o),controlsList:"nofullscreen nodownload noremote noplaybackrate"}).appendTo(s),o[J.AUDIOCLIP].hasOwnProperty(J.TYPE)&&(q[0].type=o[J.AUDIOCLIP][J.TYPE],o[J.AUDIOCLIP].hasOwnProperty(J.DURATION)&&q.data("duration",o[J.AUDIOCLIP][J.DURATION]));var b=e('<input class="volume" type="range" name="volume" min="0" max="100" value="'+100*i.audioClipVolume+'">');c?(g.append("<span>"+F.play+"</span>").data("tooltip",F.audioClipLabel),s.append(b)):g.data("tooltip",b),b.on("change",function(t){var o=e(this).val();
21typeof o!==UNDEF&&(i.audioClipVolume=o/100),q[0].volume=i.audioClipVolume,savePrefs(i,i.prefsKept,"lb_pref"),typeof i.onVolumeChange===FUNCTION&&i.onVolumeChange(i.audioClipVolume)}),q[0].volume=i.audioClipVolume,i.autoplayAudioClips&&Qe()}else q=e();r.is(":empty")||(B.addClass(i.hasbuttonsClass),B.append(r),r.find(".button").not("[download]").addTooltip()),B.is(":empty")?(d.removeClass(i.captionVisibleClass),d.addClass("no-caption")):(d.toggleClass(i.captionVisibleClass,i.captionVisible),d.removeClass("no-caption"),d.append(B))}(c),typeof i.onLoadStart===FUNCTION&&i.onLoadStart(L)},30)):console.log("Fatal error: image ("+he+") is missing from the database! (Upload data1.json again!)")},ze=function(t){if(Ke(!0),N.hideAllTooltips(),re=!1,a.add(e("html")).css("overflow",""),a.removeClass(i.lightboxOnClass),a.hideAllTooltips(),q.remove(),i.muteBackgroundAudio&&Ze(),V.length){if(d.data("panomove")&&V.trigger("autopanoStop"),(j||W)&&z){var o=z[0].volume,n=ae/(50*o),s=function(){if(z){var e=Math.max(z[0].volume-.02,0);e>.005?(z[0].volume=e,setTimeout(s,n)):z[0].pause()}};z.off("."+be),s()}window.requestAnimationFrame(function(){d.css({transition:"opacity "+i.transitionSpeed+"ms ease-out"}).one("transitionend",function(){d.css("visibility","hidden"),setTimeout(function(){d.css("display","none")},20),SMALLSCREEN||exitFullscreen(),V.length&&(V.remove(),V=e()),B.length&&(B.remove(),B=e())}).css({opacity:0})}),typeof i.onClose===FUNCTION&&(typeof t!==UNDEF?i.onClose(t):i.onClose()),a.hideAllTooltips()}else SMALLSCREEN||exitFullscreen(),typeof i.onClose===FUNCTION&&(typeof t!==UNDEF?i.onClose(t):i.onClose())},Be=function(e){k&&(e?(k.removeClass("icon-play").addClass("icon-pause"),k.children(".lbl").text(F.pauseShort)):(k.removeClass("icon-pause").addClass("icon-play").removeClass("show-progress"),k.children(".lbl").text(F.startSlideshowShort)))},He=function(){ee?Ke():We()},Ge=function(){return ve.length&&!ve.data("paused")},qe=function(){Ge()&&ve.data("muted",!0).trigger("fadeOutPlayer")},Ze=function(){!Ge()&&ve.data("muted")&&ve.data("muted",!1).trigger("fadeInPlayer")},We=function(e){clearTimeout(ee),Be(!0),a.add(d).addClass(i.immerseClass),i.autohideControls&&it(),B.addClass("slideshow"),de=i.fitImages,!0!==e&&i.backgroundAudioSlideshowControl&&ve.trigger("fadeInPlayer"),i.slideshowFullscreen&&requestFullscreen(),requestWakeLock(),ne?(ee=null,te=!0,$e(mt)):(te=!1,ee=setTimeout(mt,i.slideshowDelay/4)),!1!==i.onSlideshowStart&&i.onSlideshowStart(L)},je=function(){Be(!0),i.autohideControls&&it(),a.add(d).addClass(i.immerseClass),ee=setTimeout(mt,i.slideshowDelay/4),te=!1,i.backgroundAudioSlideshowControl&&ve.trigger("fadeInPlayer")},Ke=function(e){var t=null!==ee;return!1!==i.onSlideshowPause&&i.onSlideshowPause(L),!0!==e&&i.backgroundAudioSlideshowControl&&ve.trigger("fadeOutPlayer"),Be(!1),clearTimeout(ee),ee=null,te=!1,B.show().removeClass("slideshow"),a.add(d).removeClass(i.immerseClass),nt(),isFullscreen()&&i.slideshowFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&exitFullscreen(),releaseWakeLock(),t},_e=function(){i.backgroundAudioSlideshowControl&&qe(),clearTimeout(ee),ee=null,te=!0},Ye=function(e){q.length&&e.length&&e.css("width",100*q[0].currentTime/q[0].duration+"%")},Qe=function(){q.length&&q[0].play().then(function(){var t=q.siblings(".audioclip-btn"),o=t.children(".progress");t.removeClass("icon-volume-up").addClass("icon-pause"),q.parent().removeClass("paused").addClass("playing"),ee&&_e(),o.length||(o=e("<div>",{class:"progress"}).appendTo(t)),Ye(o),ne=setInterval(Ye,100,o),q.on("ended",function(){t.removeClass("icon-pause").addClass("icon-volume-up"),q.parent().removeClass("playing").addClass("paused"),te&&je(),o.remove(),clearInterval(ne)})},function(e){btn.removeClass("icon-pause").addClass("icon-volume-up"),console.log(e)})},Xe=function(){if(q.length){var e=q.siblings(".audioclip-btn");q[0].pause(),clearInterval(ne),ne=null,e.removeClass("icon-pause").addClass("icon-volume-up"),q.parent().removeClass("playing").addClass("paused"),te&&je()}},$e=function(e,t){q.length&&typeof e===FUNCTION&&(q[0].paused?typeof t!==UNDEF?e.apply(null,t):e.call(null):q.on("ended",e,t))}
21,et=function(){i.muteBackgroundAudio&&qe(),Qe(),V.addClass(i.playingClass)},tt=function(){i.muteBackgroundAudio&&setTimeout(Ze,500),Xe(),V.removeClass(i.playingClass)},ot=function(){Xe(),V.removeClass(i.playingClass)},at=function(e){var t=(e||d).find("audio,video").eq(0);if(t.length){var o=t[0].volume,a=i.transitionSpeed/(50*o),n=function(){if(t){var e=Math.max(t[0].volume-.02,0);e>.005?(t[0].volume=e,setTimeout(n,a)):t[0].pause()}};t.off("volumechange."+be),n()}},nt=function(){clearTimeout(ie),d.removeClass(i.controlsHideClass)},it=function(){clearTimeout(ie),ie=setTimeout(function(){clearTimeout(ie),G.hideAllTooltips(),d.addClass(i.controlsHideClass)},i.hideControlsDelay)},st=function(){clearTimeout(ie),d.toggleClass(i.controlsHideClass,!lt())},lt=function(){return d.hasClass(i.controlsHideClass)},rt=function(){G.hideAllTooltips(),d.addClass(i.thumbsVisibleClass),i.thumbsVisible=ue=!0,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},ct=function(){G.hideAllTooltips(),d.removeClass(i.thumbsVisibleClass),i.thumbsVisible=ue=!1,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},dt=function(){d.addClass(i.captionVisibleClass),i.captionVisible=pe=!0,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},ut=function(){G.hideAllTooltips(),d.removeClass(i.captionVisibleClass),i.captionVisible=pe=!1,savePrefs(i,i.prefsKept,"lb_pref"),V.data("fitted")&&De(!0)},pt=function(){i.captionVisible||i.thumbsVisible?(ue=i.thumbsVisible,pe=i.captionVisible,G.hideAllTooltips(),clearTimeout(ie),d.addClass(i.controlsHideClass),d.removeClass(i.thumbsVisibleClass+" "+i.captionVisibleClass),i.thumbsVisible=i.captionVisible=!1):(nt(),!ue&&pe||i.thumbsVisible||(d.addClass(i.thumbsVisibleClass),i.thumbsVisible=!0),!pe&&ue||i.captionVisible||(d.addClass(i.captionVisibleClass),i.captionVisible=!0)),savePrefs(i,i.prefsKept,"lb_pref"),"screen"!==i.fitBetween&&V.data("fitted")&&De(!0)},ht=function(){Ue(he-1)},mt=function(){Ue(he+1)},ft=function(e){f.css({transition:"transform "+i.thumbSpeed+"ms ease-out",transform:"translateX("+e+"px)"}),bt()},gt=function(){if(i.useThumbstrip&&!(M.length<2)){var e=f.children().eq(he<0?0:he),t=e.position().left,o=e.width(),a=f.getTranslate()[0],n=m.width(),s=f.width();f.children().removeClass(i.activeClass),e.addClass(i.activeClass),t<-a?ft(Math.min(0,i.thumbOverhead-t)):t+o>n-a?ft(Math.max(n-t-o-i.thumbOverhead,n-s)):n-a>s&&ft(n-s)}},bt=function(t){if(d.is(":visible")&&i.useThumbstrip&&!(M.length<2)){var o=m.width(),a=f.getTranslate()[0];f.children("."+i.lazyloadClass).each(function(){var t=e(this),n=t.position().left,s=t.width();if(n+a<7*o/4&&n+s+a>0-3*o/4)t.removeClass(i.lazyloadClass),function(t){if(t.length){var o=e("<img>",{class:"hide-image"}).one("load",function(){e(this).removeClass("hide-image").addClass("show-image"),e(this).parent().removeClass(i.lazyloadClass)}).attr("src",t.attr("href"));i.rightClickProtect&&o.on("contextmenu",function(e){return e.preventDefault(),!1}),t.append(o).removeAttr("href")}}(t);else if(n+a>=o)return!1}),typeof t===FUNCTION&&t.call(this)}},Ct=function(){if(d.is(":visible")){var e=f.children(":last-child");e.position().left+e.outerWidth()>m.width()?(h.addClass(i.scrollClass),gt()):(h.removeClass(i.scrollClass),ft(0))}},vt=function(e){var t=m.width(),o=f.getTranslate()[0];t>f.width()?o&&ft(0):(o=e<0?Math.min(0,o+t):Math.max(t-f.width(),o-t),ft(o))};if(be&&function(o){t.add(document).off("."+o),e("#"+o).remove()}(be),N.data("llb_ns",be="llb_"+Math.floor(1e4*Math.random())),M=N.find(i.delegate),i.useThumbstrip||i.prefsKept.splice(0,1),loadPrefs(i,i.prefsKept,"lb_pref"),d=e("<div>",{id:be,class:"lightbox"}).hide().appendTo(N),u=e("<div>",{class:"lightbox-overlay"}).appendTo(d),p=e("<div>",{class:"lightbox-loading"}).append("<div>").append("<div>").append("<div>").appendTo(d),d.toggleClass(i.thumbsVisibleClass,i.thumbsVisible&&M.length>1),d.toggleClass(i.captionVisibleClass,i.captionVisible),function(){if(G=e("<div>",{class:i.controlsClass+(i.controlsUseText?" use-text":"")}).appendTo(d),M.length>1&&(g=e("<button>",{type:"button",class:"previous",title:F.previousPicture,text:i.controlsUseText?F.previousPictureShort:""}).on("click."+be,ht).appendTo(G)),b=e("<button>",{type:"button",class:"up icon-arrow-up",title:F.upOneLevel,text:i.controlsUseText?F.upOneLevelShort:""}).on("click."+be,function(){ze()}).appendTo(G),i.useZoom)if(i.zoomSlider){var t=e("<div>",{class:"zoom-control"}),o=e("<a>",{class:"zoom-out button"}).appendTo(t);T=e("<input>",{name:"zoom-level",type:"range"}).appendTo(t);var a=e("<a>",{class:"zoom-in button"}).appendTo(t);C=e("<button>",{type:"button",class:"zoom-level icon-zoom-level",text:i.controlsUseText?F.zoom:""}).on("click."+be,function(){return!(!re||(setTimeout(ye,50),"touch"!==e("html").data("whatinput")))}).addTooltip(e("<div>",{class:"zoom-panel"}).append(t),{touchToggle:!0,pos:[1,0,1,2]}).appendTo(G),T.on("change",function(){return xe(parseInt(T.val())),!0}),a.on("click",function(){return Se(),!1}),o.on("click",function(){return Oe(),!1})}
21else v=e("<button>",{type:"button",class:"zoom-in icon-expand",title:F.oneToOneSize,text:i.controlsUseText?F.oneToOneSizeShort:""}).on("click."+be,function(){return ye(),!1}).appendTo(G),w=e("<button>",{type:"button",class:"zoom-out icon-contract",title:F.fitToScreen,text:i.controlsUseText?F.fitToScreenShort:""}).on("click."+be,function(){return ye(),!1}).appendTo(G);if(i.useThumbstrip&&M.length>1&&(S=e("<button>",{type:"button",class:"show-thumbs icon-show-top-panel",title:F.showThumbs,text:i.controlsUseText?F.showThumbsShort:""}).on("click."+be,rt).appendTo(G),O=e("<button>",{type:"button",class:"hide-thumbs icon-hide-top-panel",title:F.hideThumbs,text:i.controlsUseText?F.hideThumbsShort:""}).on("click."+be,ct).appendTo(G)),P=e("<button>",{type:"button",class:"show-caption icon-show-bottom-panel",title:F.showInfo,text:i.controlsUseText?F.showInfoShort:""}).on("click."+be,dt).appendTo(G),A=e("<button>",{type:"button",class:"hide-caption icon-hide-bottom-panel",title:F.hideInfo,text:i.controlsUseText?F.hideInfoShort:""}).on("click."+be,ut).appendTo(G),i.useSlideshow&&M.length>1)if(k=e("<button>",{type:"button",class:"play-pause icon-play",title:F.slideshow}).appendTo(G),i.controlsUseText&&k.append(e("<span>",{class:"lbl",html:F.startSlideshowShort})),I=e("<span>",{class:"progress"}).appendTo(k),k.on("click."+be,function(){return!(!re||(He(),"touch"!==e("html").data("whatinput")))}),i.timingControl){var n=e("<div>",{id:"timing-control",class:"timing-control"}),s=e("<a>",{class:"decr-time"}).appendTo(n);E=e("<span>").appendTo(n);var l=e("<a>",{class:"incr-time"}).appendTo(n);k.addTooltip(e("<div>",{class:"timing-panel"}).append(e("<div>",{class:"label",html:F.timing})).append(n),{touchToggle:!0,delay:600,pos:[1,0,1,2]}),l.on("click",function(){return i.slideshowDelay>1e3?i.slideshowDelay+=1e3:i.slideshowDelay+=100,Ie(i.slideshowDelay),!1}),s.on("click",function(){return i.slideshowDelay>500&&(i.slideshowDelay>1e3?i.slideshowDelay-=1e3:i.slideshowDelay-=100),Ie(i.slideshowDelay),!1}),setTimeout(function(){Ie(i.slideshowDelay)},500)}else k.attr("title",F.startStopSlideshow);i.showFullscreen&&hasFullscreen()&&(y=e("<button>",{type:"button",class:"gofullscreen icon-fullscreen",title:F.fullscreen,text:i.controlsUseText?F.fullscreenShort:""}).on("click."+be,requestFullscreen).appendTo(G),x=e("<button>",{type:"button",class:"exitfullscreen icon-fullscreen-off",title:F.exitFullscreen,text:i.controlsUseText?F.exitFullscreenShort:""}).on("click."+be,exitFullscreen).appendTo(G),isFullscreen()&&d.addClass("fullscreen")),M.length>1&&(D=e("<button>",{type:"button",class:"next",title:F.nextPicture,text:i.controlsUseText?F.nextPictureShort:""}).on("click."+be,mt).appendTo(G)),G.children("button").not(".zoom-level").not(".pause").addTooltip({delay:1e3,pos:[1,0,1,2]})}(),i.useThumbstrip&&M.length>1&&function(){i.thumbsVisible&&d.addClass(i.thumbsVisibleClass),(h=e("<div>",{class:"thumb-strip"}).appendTo(d)).append(e("<button>",{class:"left icon-caret-left"}).on("click."+be,function(e){return vt(-1),!1})),h.append(e("<button>",{class:"right icon-caret-right"}).on("click."+be,function(e){return vt(1),!1})),(m=e("<div>",{class:"thumb-cont"}).appendTo(h)).on("selectstart."+be,function(e){return!1});var t,o,a,s=(f=e("<div>",{class:"thumbs"}).appendTo(m)).height()||60,l=0;M.each(function(r){t=e(this).data(J.OBJ),(a=e("<a>",{class:i.lazyloadClass,title:t[J.THUMBCAPTION]||"",href:n.getThumbPath(t)}).appendTo(f)).on("click",function(t){var o=e(t.target).closest("a");return Ue(f.children().index(o)),!1}),o=Math.floor(Math.max(3*(s-4)/4,Math.min(t[J.THUMB][J.WIDTH],(s-4)*t[J.THUMB][J.WIDTH]/t[J.THUMB][J.HEIGHT]))),a.width(o),l+=o})}(),i.hasOwnProperty("slideshowDelay")||(oe=i.slideshowDelay=4e3),i.hasOwnProperty("transitionSpeed")||(ae=i.transitionSpeed=400),i.quitOnDocClick||u.on("click."+be,function(e){if(re)return this===e.target&&(getCoords(e).x>=d.width()/2?mt():ht()),!1}),t.on("resize."+be,function(){clearTimeout(se),se=setTimeout(function(){clearTimeout(se),!V||!V.length||Y&&isFullscreen()||De(),bt(Ct)},50)}),i.quitOnDocClick&&u.on("click."+be,function(t){if(re){if(i.auto
21hideControls&<())return nt(),!1;if(V.length&&!e(t.target).is(V))return ze(),!1}return!0}),i.autohideControls&&o.on("mousemove."+be,function(){nt(),it()}),i.enableKeyboard&&o.on("keyup."+be,function(e){if(!re||!V.length||d.children(".modal:visible").length||document.activeElement&&("INPUT"===document.activeElement.nodeName||"TEXTAREA"===document.activeElement.nodeName))return!0;switch(e.preventDefault(),e.keyCode){case 27:ze();break;case 33:case 37:ht();break;case 34:case 39:mt();break;case 97:case 35:Ue(M.length-1);break;case 103:case 36:Ue(0);break;case 106:case 179:He();break;case 107:i.useZoom?i.zoomSlider?Se():ye():i.captionVisible?ut():dt();break;case 109:i.useZoom?i.zoomSlider?Oe():ye():pt();break;case 32:W?z[0].paused?playVideo(z[0]):z[0].pause():j?z[0].paused?z[0].play():z[0].pause():He();break;default:return!0}return!1}),i.mouseWheelAction){var wt=null;d.on("mousewheel."+be+" DOMMouseScroll."+be,function(t){if(re){if(clearTimeout(wt),!V.length||e(t.target).closest("."+i.lightboxCaptionClass).length||V.hasClass("pdf")||V.hasClass("external")||d.children(".modal:visible").length)return!0;if(1==t.ctrlKey||"zoom"===i.mouseWheelAction)i.useZoom&&(wt=i.zoomSlider?setTimeout(t.originalEvent.wheelDelta>0||t.originalEvent.detail<0?function(e){Se()}:function(e){Oe()},100):setTimeout(t.originalEvent.wheelDelta>0||t.originalEvent.detail<0?function(e){de||(de=!0,De(!0))}:function(e){de&&(de=!1,De(!0))},100));else if("navigation"===i.mouseWheelAction){var o=new Date;(typeof d.data("lastWheel")===UNDEF||o-d.data("lastWheel")>250)&&(wt=setTimeout(function(e){d.data("lastWheel",new Date),e?ht():mt()},100,t.originalEvent.wheelDelta>0||t.originalEvent.detail<0))}}return!1})}return N.on("lightboxLoad."+be,function(t,o,a){o=typeof o===NUMBER?Math.minMax(0,o,M.length):typeof o===OBJECT?M.index(e(o)):0,!1!==i.onStart&&i.onStart(M.eq(o)),(ee||te)&&Ke(!0),Ue(o,function(){a&&We()})}).on("lightboxQuit."+be,function(){return ze(),!1}).on("lightboxRemove."+be,function(){return function(){var n=function(){isFullscreen()&&i.lightboxFullscreen&&SMALLSCREEN===i.lightboxFullscreenOnlyMobiles&&exitFullscreen(),d.remove()};Ke(!0),re=!1,M.off("."+be),o.add(t).add(d).off("."+be),a.add(e("html")).css("overflow",""),a.removeClass(i.lightboxOnClass),V.length?d.css("transition","opacity "+i.transitionSpeed+"ms ease-out").one("transitionend",n).css("opacity",0):n()}(),!1}).on("stopAutoHide."+be,function(){clearTimeout(ie)}).on("lightboxContainer."+be,function(){return d}).on("lightboxNext."+be,function(){return Ke(!0),mt(),!1}).on("lightboxPrevious."+be,function(){return Ke(!0),ht(),!1}),i.hasOwnProperty("onReady")&&typeof i.onReady===FUNCTION&&i.onReady(M.eq(he)),i.autoStart&&i.baseSet&&We(),this},e.fn.lightbox.defaults={delegate:".card.lbable",lightboxMainClass:"lightbox-main",currClass:"curr",lightboxCaptionClass:"lightbox-caption",lightboxOnClass:"lightbox-on",controlsClass:"controls",buttonClass:"button",lazyloadClass:"lazyload",activeClass:"active",scrollClass:"scroll",regionsClass:"regions",captionVisibleClass:"caption-visible",thumbsVisibleClass:"thumbs-visible",hasbuttonsClass:"hasbuttons",immerseClass:"immerse",controlsVisibleClass:"controls-visible",controlsHideClass:"controls-hide",checkboxClass:"checkbox",checkmarkClass:"icon-checkmark",selectedClass:"checked",playingClass:"playing",transitionProps:"300ms ease-out",slideshowDelay:4e3,timingControl:!1,hideControlsDelay:2500,prefsKept:["thumbsVisible","captionVisible","audioClipVolume"],controlsUseText:!1,thumbsVisible:!0,useThumbstrip:!0,captionVisible:!0,fitImages:!0,fitBetween:"screen",maxZoom:1,horzPanoThreshold:1.8,vertPanoThreshold:.5,displayOriginals:!0,useZoom:!0,zoomSlider:!1,useOriginals:!1,hiDpiThumbs:!1,hiDpiImages:!1,show
21Fullscreen:!1,indexName:"index.html",baseSet:!0,autohideControls:!1,autoStart:!1,clickAction:"donothing",mouseWheelAction:"navigation",useSlideshow:!0,autoplayAudioClips:!0,backgroundAudioSlideshowControl:!1,muteBackgroundAudio:!0,use360Player:!0,autoRotate360:!0,rotateSpeed360:-2,useGoogleDocs:!0,lightboxFullscreen:!1,slideshowFullscreen:!1,afterLast:"donothing",avoidNavigationOnZoomed:!0,doubleClickZoom:!0,mapHeight:.8,mapApiKey:"",mapType:"hybrid",mapZoom:15,showShop:!1,showFeedback:!1,showLowestPrice:!1,videoAuto:!1,videoLoop:!1,autoPano:!1,autoPanoStart:0,autoPanoSpeed:80,volume:.5,audioClipVolume:.75,rightClickProtect:!1,useRating:!1,jalbumRating:!1,visitorRating:!1,buttonLabels:!0,showNumbers:!1,infoPanelAdapt:!1,showShare:!1,showDownload:!1,allowDownloadScaled:!1,allowDownloadOthers:!1,showMap:!1,showRegions:!0,regionsVisible:!1,printImage:!1,metaAsPopup:!0,transitionType:"crossFadeAndSlide",transitionSpeed:400,panoramaAutoDetect:1.3333,panoramaTreshold:[2.5,2.5],defaultPosterSize:[628,360],thumbSpeed:400,thumbOverhead:40,preloadNext:!0,enableKeyboard:!0,enableMouseWheel:!0,quitOnEnd:!0,quitOnDocClick:!0,onStart:!1,onClose:!1,onLoadStart:!1,onLoadEnd:!1,onAfterLast:!1,onBeforeFirst:!1,onReady:!1,onSlideshowStart:!1,onSlideshowPause:!1,onVolumeChange:!1,feedbackBtnLabel:"Write feedback",feedbackBtnTooltip:"View feedback window"},e.fn.lightbox.text={rating:"Rating",print:"Print",printLabel:"Print out this photo on your printer",download:"Download",addCart:"Add to Cart",shopLabel:"Add this item to the shopping cart",viewCart:"View Cart",viewCartLabel:"View shopping cart",fotomotoBtn:"Buy / Share",fotomotoTooltip:"Buy prints or digital files, share, send free eCards",metaBtn:"Photo data",metaLabel:"Display photographic (Exif/Iptc) data",regionsBtn:"People",regionsLabel:"Show tagged people",mapBtn:"Map",mapLabel:"Show the photo location on the map",mostphotosBtn:"Purchase",mostphotosLabel:"Download this image from <b>mostphotos.com</b>!",share:"Share",shareLabel:"Share this photo over social sites",shareOn:"Share on",play:"Play",audioClipLabel:"Play / pause the attached audio clip",startOver:"Start over",upOneLevel:"Up one level",backToHome:"Back to home",backToIndex:"Back to index page",nextFolder:"Next folder",nextIndex:"Next index page",atLastPageQuestion:"Where to go next?",atLastPage:"At last page",clickToOpen:"Click to open this document with the associated viewer",pauseShort:"Pause",startSlideshowShort:"Play",previousPicture:"Previous picture",previousPictureShort:"Prev",upOneLevelShort:"Exit",zoom:"Zoom",oneToOneSize:"1:1 size",oneToOneSizeShort:"1:1",fitToScreen:"Fit to screen",fitToScreenShort:"Fit",showThumbs:"Show thumbnails",showThumbsShort:"Thumbnails",hideThumbs:"Hide thumbnails",hideThumbsShort:"Hide thumbs",showInfo:"Show caption / info",showInfoShort:"Info",hideInfo:"Hide caption / info",hideInfoShort:"Hide info",slideshow:"Slideshow",timing:"Timing",startStopSlideshow:"Start / stop slideshow",fullscreen:"Fullscreen",fullscreenShort:"Fullscr",exitFullscreen:"Exit fullscreen",exitFullscreenShort:"Normal",nextPicture:"Next picture",nextPictureShort:"Next"}}(jQuery,jQuery(window),jQuery(document)); 22!function(e,t,a,s,n){"use strict";e.fn.selectable=function(t){t=e.extend({cardClass:"card",thumbClass:"thumb",checkboxClass:"checkbox",selectedClass:"checked",checkmarkClass:"icon-checkmark",hasSelectedClass:"has-selected",allSelectedClass:"all-selected",selectionChange:null},t);var a,n=e(this).eq(0),l=function(e){typeof t.selectionChange===FUNCTION&&t.selectionChange.call(n[0],e),s.toggleClass(t.hasSelectedClass,e>0).toggleClass(t.allSelectedClass,e===a.length)},r=function(){return a.filter("."+t.selectedClass).length},o=function(a){(a instanceof e?a:e(this)).addClass(t.selectedClass).find("."+t.checkboxClass).addClass(t.checkmarkClass)},i=function(a){(a instanceof e?a:e(this)).removeClass(t.selectedClass).find("."+t.checkboxClass).removeClass(t.checkmarkClass)},c=function(a){var s=a instanceof e?a:e(this);s.hasClass(t.selectedClass)?i(s):o(s)},d=function(a){var s=e(a.target).closest("."+t.cardClass),n=r();return s.hasClass(t.selectedClass)?(i(s),n-=1):(o(s),n+=1),l(n),!1},h=function(){var s,l;(a=t.selector?n.find(t.selector):n.find("."+t.cardClass)).each(function(){e(this).find("span."+t.checkboxClass).length||(s=e(this).children("."+t.thumbClass).eq(0),(l=s.length?e("<span>",{class:t.checkboxClass}).appendTo(s):e("<span>",{class:t.checkboxClass}).prependTo(e(this))).on({click:d}),e(this).on({selectCard:o,unselectCard:i,toggleCard:c}))}),typeof t.selectionChange===FUNCTION&&t.selectionChange.call(n[0],r()
22)};return h(),n.on({selectAll:function(){if(n.is(":visible")){var s=r();s<a.length&&(s=a.length,a.not("."+t.selectedClass).each(function(){o(e(this))})),l(s)}},selectNone:function(){if(n.is(":visible")){var s=r();s>0&&(s=0,a.filter("."+t.selectedClass).each(function(){i(e(this))})),l(s)}},selectInverse:function(){if(n.is(":visible")){var t=a.length-r();0===t?a.each(function(){i(e(this))}):a.each(function(){c(e(this))}),l(t)}},selectRefresh:h}),this};var l=0,r=0;e.fn.skin=function(a){a=e.extend({},e.fn.skin.defaults,a);var n,o,i=e(this),c=i.find("#main-cont"),d=getTranslations({return:"return",rendering:"Rendering",addCart:"Add to Cart",fotomotoBtn:"Buy / Share",fotomotoTooltip:"Buy prints or digital files, share, send free eCards",audioClipLabel:"Play / pause the attached audio clip",selectedItems:"Selected items",label:"Label",search:"Search",searchNew:"Search new",loading:"Loading",foundNTimes:"{0} image(s)",foundTooMany:"{0} images; displaying only the first {1}",notFound:"not found",searchPlaceholder:"Search...",more:"more",less:"less",imagesTaken:"Images taken",imagesModified:"Images modified",imagesAdded:"Images added",betweenDays:"between {0} and {1}",onDay:"on {0}",afterDay:"after {0}",beforeDay:"before {0}",sinceMyLastVisit:"since my last visit",results:"Results",sortedBy:"Sorted by",ascending:"ascending",desce
22nding:"descending",noRating:"No rating",multipleSelectHint:"Use SHIFT to select range, CTRL for multiple entries",select:"Select",reset:"Reset",sortBy:"Sort by",image:"image",images:"images",audio:"audio",audios:"audios",video:"video",videos:"videos",other:"other",others:"others",fatalError:"Fatal error!"}),h=e(),u=e(),f=e(),p=e(),g="tiger_skin",m="",C=!1,v=a.indexName.split(".")[1]||"html",y=""!==window.location.hash,b=new Date/1e3,T="EUR",w=t.scrollTop(),O=function(e){var t=c.find("."+a.thumbnailsClass).last();return!t.length&&typeof e!==UNDEF&&e&&(t=R()),t},P=function(){return c.find("."+a.baseOverlayClass)},x=function(){return c.find("."+a.overlayClass+":visible").length>0},N=function(e){return(typeof e===UNDEF?O():e).hasClass(a.baseOverlayClass)},A=function(){return"oly_"+ ++l},E=function(e){if((e=typeof e===UNDEF?O():e).length){var t=e.data("overlay");return t||(t=e.hasClass(a.baseOverlayClass)?"base":A(),e.attr("data-overlay",t),t)}return""},k=function(e,t){return t=typeof t===UNDEF?O():t,e=typeof e===UNDEF?t.hasClass(a.baseOverlayClass)?"base":A():e,t.attr("data-overlay",e),e},R=function(){var t=A(),s=e("<section>",{class:a.thumbnailsClass+" "+a.overlayClass}).attr({id:t,"data-overlay":t}),n=P();return n.length?n.after(s):(n=c.find("."+a.foldersClass)).length?n.after(s):c.prepend(s),L(s),c.addClass(a.hasOverlayClass),s},I=function(){return O().children("header").eq(0)},D=function(){return I().find("h"+a.overlayHeadLevel).eq(0)},F=function(t){var a=D();return a.length?t.appendTo(a):e()},S=function(t){var s=I().find("."+a.progressClass);return s.length?s.empty():s=e("<div>",{class:a.progressClass}).insertAfter(D()),typeof t!==UNDEF&&t&&s.append('<div class="title">'+t+"</div>"),s.append('<div class="'+a.progressbarClass+'"><span></span></div>'),o=setTimeout(function(){s.addClass("animate")},500),s},M=function(e){clearTimeout(o);var t=I().find("."+a.progressClass);t.removeClass("animate"),t.find("."+a.progressbarClass+" span").width(100*e+"%")},B=function(e){I().find("."+a.progressClass).remove()},U=function(t){if(t.length){var a=E();t.each(function(){e(this).attr("data-rel",a)})}},L=function(t){return t=typeof t===UNDEF?O():t,e("<div>",{class:[a.contClass,a.thumbLayout,"caption-"+a.captionPlacement,"below"!==a.captionPlacement&&a.captionShowOnHover?"caption-on-hover":""].filter(Boolean).join(" ")}).appendTo(t)},H=function(){return c.find("."+a.thumbnailsClass+":not(."+a.overlayClass+")").first().children("div."+a.contClass)},G=function(e){var t=c.find("."+a.thumbnailsClass).last().children("div."+a.contClass);return!t.length&&e&&(t=L(O(!0))),t},q=function(){return P().find("."+a.mapRootClass)},j=function(e){return H().find("."+a.cardClass+(e||""))},V=function(e){return G().find("."+a.cardClass+(e||""))},W=function(e){return G().find("."+a.cardClass+" ."+a.thumbClass+(e||""))},_=function(){return G().find("."+a.cardClass+"."+a.selectableClass)},z=function(){var s=O();if(s.length&&!N()){var n=s.data("overlay");t.off("."+n),s.trigger("removeLightbox"),function(e){(e=typeof e===UNDEF?E():e)&&c.find("[data-rel="+e+"]").remove()}(n),i.removeClass(a.noMapClass+" "+a.hasMapClass),s.trigger("overlayRemoved"),s.remove(),c.removeClass(a.hasOverlayClass),function(){var t=P();t.length&&(e("[data-rel="+t.data("overlay")+"]").not(".hidden").show(),t.trigger("refresh"),$e(),q().trigger("refresh"))}(),a.hasOwnProperty("search")&&oe(),ye(),We(),_().length||e(".hide-on-empty").hide(),c.hideAllTooltips(),c.find("[data-sticky-rel]").trigger("stickyRefresh")}},Y=function(t,s){var n,l=e();return n=typeof s!==UNDEF&&s?j():V(),t=decodeURIComponent(t),n.find("."+a.thumbClass).each(function(){var s=e(this).data("name")||function(e){var t=e.data("href")||e.attr("href");return t?t.substring(t.lastIndexOf("/")+1).replace("#img=",""):""}(e(this));if(s===t||function(e,t){return e.slice(-v.length)===v&&e.substring(0,e.lastIndexOf("."))===t.substring(0,t.lastIndexOf("."))}(s,t))return l=e(this).closest("."+a.cardClass),!1}),l},K=function(t){var s=c.find("."+a.foldersClass+" ."+a.contClass);return s.length?s.find("."+a.cardClass+(t||"")):e()},Q=function(t){var s=c.find(a.mapBoxHook);if("page"!==a.pageType){var n=E();s=s.filter(function(){return e(this).data("rel")===n})}if(s.length&&s.is(":visible"))return s.find("."+a.mapRootClass);if(t){var l=e('<section class="map show-on-overlay"><div class="cont box"><div class="'+a.mapRootClass+'" data-map-root></div></div></section>');return s.length?s.after(l):O().before(l),U(l),l.find("."+a.mapRootClass)}return e()}
22,Z=function(){return G().find("."+a.lightboxClass).last()},$=function(){return Z().is(":visible")},X=function(e,t){de(W(" .playing")),G().trigger("lightboxLoad",typeof t===UNDEF?e:[e,t])},ee=function(){var t=[];return G().find("."+a.cardClass+"."+a.selectedClass).each(function(){t.push(e(this).data(J.OBJ))}),t},te=function(){var t=[];return V().each(function(){t.push(e(this).data(J.OBJ))}),t},ae=function(){var t=[];return j().each(function(){t.push(e(this).data(J.OBJ))}),t},se=function(){var e=G().find("."+a.cardClass+"."+a.activeClass);return e.length?e.data(J.OBJ):null},ne=function(e,t){var s=h.add(f);typeof t!==UNDEF&&t?(s.find("."+a.selectBoxClass).show(),s.find("."+a.selectNoneClass+",."+a.addSelectedClass+",."+a.keepSelectedClass).toggleClass(a.disabledClass,typeof e===UNDEF||0===e),s.find("."+a.selectAllClass).toggleClass(a.disabledClass,typeof t!==UNDEF&&e===t)):s.find("."+a.selectBoxClass).hide()},le=function(e){f.add(h).toggleClass(a.disabledClass,!e)},re=function(e){i.toggleClass(a.hasImagesClass,e).toggleClass(a.noImagesClass,!e)},oe=function(){e(a.search.hook).find("input").val("")},ie=function(t){var s,n=e(this);return t.preventDefault(),n[0].hasAttribute("rel")&&(s=e("#"+n.attr("rel"))),s&&s.length||(n.attr("rel","PL_"+ ++r),s=function(t){var s=e("<audio>",{class:"audioclip-player",src:t.attr("href"),id:t.attr("rel"),controlsList:"nofullscreen nodownload noremote noplaybackrate"}).hide().insertAfter(t);return s[0].volume=a.audioClipVolume,s}(n)),s[0].paused?(ce(),s[0].play().then(function(){n.removeClass("icon-volume-up paused").addClass("icon-pause playing"),s.on("ended",function(){n.removeClass("icon-pause playing").addClass("icon-volume-up paused")})},function(e){n.removeClass("icon-pause playing").addClass("icon-volume-up paused"),console.log(e)})):(s[0].pause(),n.removeClass("icon-pause playing").addClass("icon-volume-up paused")),!1},ce=function(){de(W(" .playing"))},de=function(t){t.each(function(){var t=e("#"+e(this).attr("rel"));t.length&&(t[0].pause(),e(this).removeClass("icon-pause playing").addClass("icon-volume-up paused"))})},he=function(t){if(typeof t!==UNDEF&&t.length){for(var a=[],s=0;s<t.length;s++)a.push(t[s].hasOwnProperty(J.VISITORRATING)?t[s][J.VISITORRATING]:-1);e.cookie(REL_PATH+PAGE_NAME+":ratings",a,604800)}},ue=null,fe=null,pe=function(l,r,o){if(l&&r&&r.length){Array.isArray(r)||(r=[r]),S(DEBUG?d.rendering:"");var c=N(),u=E(),p=G(!0),g=V(),m=0,C=r.length,v=0,y=a.hasOwnProperty("markNew")?b-a.markNew.days*ONEDAY_S:null,T=function(){if(m>=C)w();else{for(var t,s,l,o,i,b,O,P,N,A,E,k,R=Math.min(m+a.thumbsPerBatch,C),I=m;I<R;I++){if(t=r[I],s="folder"===t[J.CATEGORY],l=!s&&n.isLightboxable(t),o="video"===t[J.CATEGORY]||"audio"===t[J.CATEGORY],i=!!t.hasOwnProperty(J.THUMB)&&/res\/\w+\.png$/.test(t[J.THUMB][J.PATH]),O=t[J.THUMBCAPTION],I<g.length?P=g.eq(I):(b=t.hasOwnProperty(J.THUMB)?t[J.THUMB][J.WIDTH]/t[J.THUMB][J.HEIGHT]:1,P=e("<div>",{class:[a.cardClass,a.lazyloadClass,t[J.CATEGORY],O?"hascaption":"",t.hasOwnProperty(J.THUMB)&&t[J.THUMB][J.WIDTH]<a.thumbDims[0]&&t[J.THUMB][J.HEIGHT]<a.thumbDims[1]?"tiny":"",i?"icon":"",b>=1.25?"landscape":b<=.8?"portrait":"square"].filter(Boolean).join(" ")}).appendTo(p)),l&&P.addClass(a.lbableClass),P.data(J.OBJ,t),(N=P.children("."+a.thumbClass)).length||(N=e("<a>",{class:a.thumbClass}).appendTo(P)),(A=N.find("img").eq(0)).length?E=!0:(A=e("<div>",{class:a.placeholderClass}).appendTo(N),E=!1),i?N.addClass("iconthumb"):(t[J.THUMB].hasOwnProperty(J.RENDITIONS)&&"fixgrid"!==a.thumbLayout&&"grid"!==a.thumbLayout&&A.data("hasrenditions",!0),o||(E?A.attr({width:t[J.THUMB][J.WIDTH],height:t[J.THUMB][J.HEIGHT]}):A.css({width:t[J.THUMB][J.WIDTH],height:t[J.THUMB][J.HEIGHT]}),t[J.THUMB][J.HEIGHT]/t[J.THUMB][J.WIDTH]<.5&&P.addClass(a.panoClass))),"justified"===a.thumbLayout&&P.data("width",t[J.THUMB][J.WIDTH]),N.data("name")||N.attr("data-name",n.getItemName(t)),O&&(P.children("."+a.captionClass).length||e("<div>",{class:a.captionClass,html:O}).appendTo(P),P.addClass(a.hascaptionClass)),l){N.on("click."+u,x),N.data("href")||N.attr("data-href",N.attr("href")||n.getOptimalImagePath(t,[N[0].offsetWidth,N[0].offsetHeight])),N[0].hasAttribute("href")&&N.attr("href","");var D=h.length&&n.hasShop(t),F=f.length&&!n.disableFeedback(t);if((D||F)&&P.addClass(a.selectableClass),D&&((k=e("<a>",{class:"icon-shopping-cart add-cart",text:" "+d.addCart}).on("click."+u,function(t){var s=e(t.target).closest("."+a.cardClass);return s.length&&h.trigger("addItems",s.data(J.OBJ)),!1}).appendTo(N)).addTooltip(n.getPriceRange(t),{delay:100}),v+=1,P.addClass(a.shoppableClass)),!D&&F&&(k=e("<a>",{class:"icon-email-send add-cart",text:" "+a.feedback.addBtnLabel}).on("click."+u,function(t){var s=e(t.target).closest("."+a.cardClass);return s.length&&f.trigger("addItems",s.data(J.OBJ)),!1}).appendTo(N)),LOCAL&&!DEBUG||D||!a.hasOwnProperty("fotomoto")||n.hideFotomoto(t)||(k=e("<a>",{class:"icon-shopping-cart add-cart fotomoto-btn",text:" "+d.fotomotoBtn}).on("click."+u,function(t){if(t.preventDefault(),typeof FOTOMOTO!==UNDEF){var s=e(t.target).closest("."+a.cardClass);s.length&&FOTOMOTO.API.showWindow(10,n.getOriginalPath(s.data(J.OBJ))||n.getItemPath(s.data(J.OBJ)))}return!1}).appendTo(N)).addTooltip(d.fotomotoTooltip),!c&&a.linkToFolder){var S=n.getPath(t);S&&N.append(e("<a>",{class:"icon-folder folder-link",href:S+a.indexName}))}a.useAudioClipButton&&t.hasOwnProperty(J.AUDIOCLIP)&&(O=e("<a>",{class:"icon-volume-up audioclip",href:t[J.AUDIOCLIP][J.PATH]}).on("click",ie).appendTo(N),TOUCHENABLED||O.data("tooltip",d.audioClipLabel).addTooltip())}else P.addClass(t[J.CATEGORY]),N[0].href||N.attr("href",n.getItemPath(t));if(null!=y&&(k=t[J.DATES])&&(k=k[a.markNew.reference])&&k>=y&&(O=a.markNew.text?e("<span>",{class:"new-image",text:a.markNew.text}):e("<span>",{class:"icon-new-fill new-image"}),N.append(O),TOUCHENABLED||O.data("tooltip",new Date(1e3*k).toLocaleDateString(LOCALE)).addTooltip({delay:100})),a.useRating&&l){var B=t[J.RATING]||0;(a.visitorRating||B)&&(O=e("<span>",{class:"rating",html:STARS}).appendTo(N),a.visitorRating?(t.hasOwnProperty(J.VISITORRATING)?B=t[J.VISITORRATING]:(a.useJalbumRating||(B=0),t[J.VISITORRATING]=B),O.addClass("r"+B+(a.useJalbumRating?"":" icon-close")).on("click."+u,function(t){var s=e(this),n=Math.minMax(0,Math.floor((getCoords(t).x-s.offset().left-parseFloat(s.css("paddingLeft")))/16),5),l=s.closest("."+a.cardClass).data(J.OBJ);return s.removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),l[J.VISITORRATING]=n,c?he(r):(s=Y(l[J.NAME],!0)).length&&(s.find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),s.data(J.OBJ)[J.VISITORRATING]=n,he(ae())),!1})):O.addClass("r"+B))}a.rightClickProtect&&N.on("contextmenu",function(e){return e.preventDefault(),!1}),c||M(I/C)}m=R,window.requestAnimationFrame(T)}},w=function(){B(),i.toggleClass(a.hasShopClass,v>0),i.toggleClass(a.noShopClass,!v),l.on({setactivecard:function(t,a){A(e(a))},refreshRating:function(t,a){R(e(a))},refresh:function(e){P()}}),typeof o===FUNCTION&&(typeof c!==UNDEF?o.call(void 0,l,c):o.call(void 0,l)),t.on("resize."+u,function(e){return clearTimeout(fe),fe=setTimeout(P,500),!0}),P()},O=function(t){if(clearTimeout(fe),l.length)if(l.is(":visible")){var s=l.children("."+a.contClass).width();a.thumbGap;if(l.innerWidth()<a.pageWidth&&l.hasClass("overlay")&&(s+=32),l.data("fixedfor")!==s){var n=function(t,s){s>1.6&&(s=1.6);var n=Math.floor(a.thumbDims[1]*s);t.each(function(){var t=this.querySelector("."+a.thumbClass);t&&(1===s?(this.style.width="",t.style.height=n+"px"):(this.style.width=e(this).data("width")*s+"px",t.style.height=n+"px",(t=this.querySelector("."+a.captionClass))&&t.style.removeProperty("max-width")))})};!function(e){if(e.length){for(var t,r=0,o=0;e.length&&r<e.length;)o+(t=e.eq(r).data("width")+2*a.thumbGap)>=s?(o+t*a.justifyWrapThreshold>=s?(n(e.slice(0,r),.9999*(s-2*r*a.thumbGap)/(o-2*r*a.thumbGap)),e=e.slice(r)):(n(e.slice(0,r+1),.9999*(s-2*(r+1)*a.thumbGap)/(o+t-2*(r+1)*a.thumbGap)),e=e.slice(r+1)),r=0,o=0):(r++,o+=t);if(e.length>1){var i=.9999*(s-2*e.length*a.thumbGap)/(o-2*e.length*a.thumbGap);n(e,i>1.2?1:i)}else n(e,1);l.data("fixedfor",s)}}(l.find("."+a.cardClass)),typeof t===FUNCTION&&t.call()}else typeof t===FUNCTION&&t.call()}else fe=setTimeout(O,100)},P=function(){clearTimeout(fe),fe="justified"===a.thumbLayout?setTimeout(O,100,ge):setTimeout(ge,a.scrollCheckInterval/2)},x=function(t){return!("A"!==t.target.nodeName||!e(t.target).closest("."+a.commentClass).length&&!e(t.target).hasClass("folder-link"))||(s.hideAllTooltips(),!isFullscreen()&&a.lightboxFullscreen&&SMALLSCREEN===a.lightboxFullscreenOnlyMobiles&&requestFullscreen(),X(e(this).closest("."+a.cardClass)),!1)},A=function(e){if(!(typeof e===UNDEF||e instanceof Event)&&e.length){var s=e.data(J.OBJ),l=t.height(),r=t.scrollTop(),o=e.offset().top,i=e.outerHeight();V("."+a.activeClass).removeClass(a.activeClass),e.addClass(a.activeClass),a.hasOwnProperty("map")&&(n.hasLocation(s)?Q().trigger("setActive",s[J.NAME]):Q().trigger("resetMarkers")),o+i>r+l?window.scrollTo({top:Math.round(o-l+i+30),behavior:"smooth"}):o<r&&window.scrollTo({top:Math.round(Math.max(o-30,0)),behavior:"smooth"})}},R=function(e,t){if(typeof e!==UNDEF&&e.length){var s=e.data(J.OBJ),n=(typeof t!==UNDEF?t:a.visitorRating?s[J.VISITORRATING]:s[J.RATING])||0;e.find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n),N()?he(r):Y(s[J.NAME],!0).find(".rating").removeClass("r0 r1 r2 r3 r4 r5").addClass("r"+n)}};u||(u=k()),c&&a.useRating&&a.visitorRating&&function(t){if(typeof t!==UNDEF&&t.length){var a=e.cookie(REL_PATH+PAGE_NAME+":ratings");if(a){typeof a===STRING&&(a=a.split(":"));for(var s=0;s<t.length&&s<a.length;s++)-1!==a[s]&&(t[s][J.VISITORRATING]=a[s])}}}(r),window.requestAnimationFrame(T)}},ge=function(){if(clearTimeout(ue),ue=null,$())ue=setTimeout(ge,100);else{var s,n=t.scrollTop(),l=t.height(),r=O(),o=N();if(Math.abs(n-w)>20)return w=n,void(ue=setTimeout(ge,a.scrollCheckInterval));(s=(s=r.length?r.find("."+a.cardClass).not(":empty"):i.find("."+a.foldersClass+" ."+a.cardClass).not(":empty")).filter(function(){if(e(this).hasClass(a.lazyloadClass))return!0;
22if(e(this).hasClass(a.preloadClass)){var t=e(this).find("."+a.thumbClass),s=t.find("img").eq(0);return e(this).removeClass(a.preloadClass),!a.fixedShapeThumbs&&s.data("hasrenditions")&&(1.1*s[0].width<t.width()||1.1*s[0].height<t.height())}return!1})).length?(s.each(function(){var t=e(this),s=t.offset().top;if(s+t.height()>w-l){if(!(s<w+1.5*l))return!1;o&&t.hasClass(a.folderClass)?me(t):Ce(t)}}),w=n,ue=setTimeout(ge,a.scrollCheckInterval)):t.off("scroll."+g)}},me=function(t){if(typeof t!==UNDEF&&t.length){var s=function(){e(this).css({display:"block",opacity:1})};t.find(".thumb[data-src]").each(function(){var t=e(this),a=t.find("img:not(.mosimg)").eq(0);a.length||(a=e("<img>",{alt:t.data("alt")||""}).css({opacity:0}).appendTo(t)),typeof a.attr("src")!==UNDEF&&!1!==a.attr("src")?s.call(a[0]):(a.one("load",s),a.attr("src",t.data("src")),t.removeData("src"))}),t.find(".mosaic [data-src]").each(function(){var t=e(this),a=t.children("img").eq(0);a.length||(a=e("<img>").css({opacity:0}).appendTo(t)),a.one("load",s),a.attr("src",t.data("src")),t.removeData("src")}),t.removeClass(a.lazyloadClass)}},Ce=function(t){if(typeof t!==UNDEF&&t.length){var s=t.data(J.OBJ);if(s){var l=t.children("."+a.thumbClass).eq(0),r=l.find("img"),o=function(){var t=e(this),s=t.parents("."+a.cardClass).eq(0),n=s.find("."+a.placeholderClass);n.length&&n.remove(),t.css({display:"block",opacity:1}),s.removeClass(a.lazyloadClass+" "+a.preloadClass)};r.length||(r=e("<img>",{alt:n.getAlt(s)}).css({aspectRatio:s[J.THUMB][J.WIDTH]+"/"+s[J.THUMB][J.HEIGHT],display:"none",opacity:0}).appendTo(l)),t.hasClass(a.lazyloadClass)&&typeof r.attr("src")!==UNDEF&&!1!==r.attr("src")?o.call(r[0]):(r.one("load",o),r.attr("src",r.data("hasrenditions")?n.getOptimalThumbPath(t.data(J.OBJ),[l.outerWidth(),l.outerHeight()],!a.fixedShapeThumbs):n.getThumbPath(s)))}}},ve=function(t,s){if(n){typeof t===UNDEF?(t=P(),s=!0):typeof s===UNDEF&&(s=N(t));var l=V().filter("."+a.lbableClass);if(t.trigger("refresh"),(l.length>1||a.showEmptyFilters)&&e(".filter-cont").length&&Ve(s),l.length){if(n.hasShop()||a.feedback){var r=_();ne(0,r.length),le(r.length),r.length&&(t.selectable({cardClass:a.selectableClass,selectedClass:a.selectedClass,selectionChange:function(e){ne(e,r.length),h.add(f).trigger("itemsSelected",e)}}),u.add(p).find("."+a.keepSelectedClass).on("click."+g,function(){return Pe(d.selectedItems,function(){ye()}),!1}),c.find("[data-sticky-rel]").trigger("stickyRefresh"),c.find("[data-sticky]").not("[data-sticky-rel]").sticky())}a.hasOwnProperty("map")&&(a.map.hasOwnProperty("apiKey")&&(e.fn.lightbox.defaults.mapApiKey=a.map.apiKey),a.map.hasOwnProperty("type")&&(e.fn.lightbox.defaults.mapType=a.map.type),a.map.hasOwnProperty("zoom")&&(e.fn.lightbox.defaults.mapZoom=a.map.zoom),a.map.index&&ze(te(),a.map)),t.trigger("lightboxRemove"),t.lightbox(n,{baseSet:s,onLoadStart:function(e){var t=e.data(J.OBJ);t&&addParam(a.pageName||a.indexName,{img:n.getItemName(t)},t[J.TITLE])},onLoadEnd:function(e){typeof e!==UNDEF&&t.trigger("setactivecard",e),setTimeout(We,100)},onClose:function(e){a.slideshowFullscreen&&!a.slideshowFullscreenOnlyMobiles&&exitFullscreen(),typeof e!==UNDEF&&t.trigger("setactivecard",e),We(),t.trigger("refresh"),ye()},onVolumeChange:function(e){a.audioClipVolume=e},onReady:function(){if(y&&window.location.hash){y=!1;var t=readParam();if(C=!0,t.hasOwnProperty("label")&&null!==t.label)Ae(t.label,function(){addParam(a.indexName,{label:t.label+"",search:null,newimages:null,date:null},d.label+": "+t.label)});else if(t.hasOwnProperty("search")&&null!==t.search)xe(t.search,function(){addParam(a.indexName,{search:t.search+"",label:null,newimages:null,date:null},d.search+": "+t.search)});else if(t.hasOwnProperty("newimages"))De(ke(t.newimages),function(){addParam(a.indexName,{newimages:t.newimages,search:null,label:null,date:null},d.searchNew+": "+t.newimages)});else if(t.hasOwnProperty("date")){var s=Je(t.date);De(s,function(){addParam(a.indexName,{date:t.date,newimages:null,search:null,label:null},Re(s.reference)+": "+t.date)})}else if(t.hasOwnProperty("img")&&null!==t.img){var n=Y(t.img);n.length?t.hasOwnProperty("slideshow")?X(n,2e3):X(n):removeParam(a.pageName||a.indexName,"img")}else t.hasOwnProperty("slideshow")&&X(0,2e3)}e("."+a.startshowClass).fadeIn().on("click",function(){return e(this).trigger("removeTooltip"),Te(),!1})}})}else e("."+a.startshowClass).fadeOut()}},ye=function(e,t){(typeof e===UNDEF?"":"#"+paramize(e))!==window.location.hash&&(C=!0,e?setParam(a.pageName||a.indexName,e,t||""):removeParam(a.pageName||a.indexName),setTimeout(function(){C=!1},1e3))},be=function(){if(window.location.hash!==m&&!C){m=window.location.hash,C=!1,y=!1;var e=readParam();if(e.hasOwnProperty("label")&&null!==e.label)Ae(e.label,function(){We()});else if(e.hasOwnProperty("search")&&null!==e.search)xe(e.search,function(){We()});else if(e.hasOwnProperty("newimages")&&null!==e.newimages)De(ke(e.newimages),function(){We()});else if(e.hasOwnProperty("date")&&null!==e.date){var t=Je(e.date);De(t,function(){We()})}else if(e.hasOwnProperty("img")&&null!==e.img){var s=Y(e.img);s.length?e.hasOwnProperty("slideshow")?X(s,2e3):X(s):removeParam(a.indexName,"img")}else e.hasOwnProperty("slideshow")?X(0,2e3):(G().trigger("lightboxQuit"),z())}},Te=function(t){var s=e();return a.restartSlideshow||(s=V("."+a.activeClass)),s.length||(s=V().eq(0)),!a.slideshowFullscreen||a.slideshowFullscreenOnlyMobiles&&!SMALLSCREEN||requestFullscreen(),X(s,2e3),!1},we=function(s){var n=function(t){x()&&z(),c.hideAllTooltips();var s=R();return function(t,s){var n=e("<header>",{class:[a.contClass,a.overlayTitleClass,t&&t.hasOwnProperty("icon")?t.icon:""].filter(
22Boolean).join(" ")}).prependTo(typeof s===UNDEF?O():s);t&&t.hasOwnProperty("title")&&n.append(e("<h"+a.overlayHeadLevel+">",{html:t.title})),n.append(e("<a>",{class:"close",href:"",text:d.return}).on("click",function(){return z(),!1}))}(t,s),c.trigger("overlayReady",s),c.find("[data-sticky-rel]").trigger("stickyRefresh"),s}(s);return S(DEBUG?d.loading:""),function(e){(e=typeof e===UNDEF?O():e).length&&(e.offset().top<t.scrollTop()||e.offset().top>t.scrollTop()+t.height()-100)&&t.scrollTop(e.offset().top)}(),n},Oe=function(e,t,a){B(),pe(e,t,ve),ne(0,t.length),le(t.length),re(t.length),typeof a===FUNCTION&&a.call()},Pe=function(t,s){var n=ee();if(n.length&&n.length!==V("."+a.lbableClass).length){var l=we({className:"selected-items",icon:"icon-checkbox-checked",title:"“"+t+"”"});setTimeout(function(){F(e("<small>",{text:d.foundNTimes.replace("{0}",n.length)})),Oe(l,n,s)},50)}},xe=function(t,s){var l=we({className:"search-results",icon:"icon-search",title:"“"+t+"”"});n.collectItems(e.extend(a.search,{terms:t,depth:"tree",ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),F(e("<small>",{text:t>a.maxResults?d.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?d.foundNTimes.replace("{0}",t):d.notFound})),Oe(l,this,s)}}))},Ne=function(t){if(t.length&&n){a.search=e.extend({depth:"tree",fields:"creator,keywords,title,comment"},a.search);var s=function(e){var t=e.find("input").eq(0).val();return t&&t.length>1&&xe(t,function(){ye({search:t},d.search+": "+t),We()}),!1};t.find(".search-btn").on("click",function(){return t.hasClass(a.activeClass)?(s(t),t.removeClass(a.activeClass)):(t.find("input").eq(0).focus(),t.addClass(a.activeClass)),!1}),t.on("submit",function(e){return e.preventDefault(),s(t),t.removeClass(a.activeClass),!1}),t.find("input").on("focus",function(){t.addClass(a.activeClass)})}},Ae=function(t,s,l){var r=we({className:"tags-found",icon:"icon-tag",title:"“"+t+"”"});typeof s===UNDEF?s=!1:typeof s===FUNCTION&&(l=s,s=!1),n.collectItems(e.extend(a.tagCloud,{caseSensitive:s,exact:!0,terms:t,ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),F(e("<small>",{text:t>a.maxResults?d.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?d.foundNTimes.replace("{0}",t):d.notFound})),Oe(r,this,l)}}))},Ee=function(t){var s=e(a.tagCloud.hook||".tag-cloud-cont");if(s.length){if(t.length){var l=s.children("."+a.tagCloudClass),r=function(){var t=e(this).children("span").eq(0).text();return t&&function(t,s,l){var r=we({className:"tags-found",icon:"icon-tag",title:"“"+t+"”"});n.collectByPath({paths:s,ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),F(e("<small>",{text:t>a.maxResults?d.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?d.foundNTimes.replace("{0}",t):d.notFound})),Oe(r,this,l)}})}(t,e(this).data("paths"),function(){ye({label:t},d.label+": "+t),We()}),!1};l.length||(l=e("<div>",{class:a.tagCloudClass}).appendTo(s));for(var o,i,c,h=0,u=t.length;h<u;h++){if(o=e("<a>",{class:"tag"}).on("click",r).data("paths",t[h][1]).append(e("<span>",{html:t[h][0]})),t[h][1].length>1){if(a.tagCloud.fontVaries){for(i=0,c=Math.min(64,t[h][1].length);c>1;)i++,c>>=1;o.addClass("size-"+i)}o.append(" ").append(e("<sup>",{text:t[h][1].length}))}l.append(o)}l.outerHeight()>175&&function(t){var s;t.css({maxHeight:150,overflow:"hidden"}),(s=e("<div>",{class:"toggle-height"}).insertAfter(t)).append(e("<a>",{class:"icon-caret-down",text:d.more}).on("click",function(){var e=t.parent();e.css({height:e.height(),overflow:"hidden"}),t.css({maxHeight:"none"}),setTimeout(function(){var n=t.prop("scrollHeight");e.css({height:"auto",overflow:"visible"}),t.css({maxHeight:150}),setTimeout(function(){t.css({maxHeight:n+20})},25),s.addClass(a.activeClass)},50)})).append(e("<a>",{class:"icon-caret-up",text:d.less}).on("click",function(){t.css({maxHeight:150}),s.removeClass(a.activeClass)}))}(l)}a.tagCloud.useSearch?function(t){var s=t.find("."+a.tagSearchClass),n=function(e){var t=e.find("input").eq(0).val();return t&&Ae(t,function(){ye({label:t},d.label+": "+t),We()}),!1};s.length||((s=e("<form>",{class:a.tagSearchClass}).appendTo(t)).append(e("<div>",{class:"search-input"}).append(e("<input>",{type:"text",placeholder:d.searchPlaceholder,ariaLabel:d.search}))),s.append(e("<a>",{class:"search-btn icon-search"}))),s.find(".search-btn").on("click",function(){var t=e(this).closest("form");return t.find("input").eq(0).focus(),n(t),!1}),s.on("submit",function(t){return t.preventDefault(),n(e(this)),!1})}(s.parent()):t.length||s.parents(".box").eq(0).hide()}},ke=function(e){return a.hasOwnProperty("searchNew")?{reference:a.searchNew.reference||"dateTaken",depth:a.searchNew.depth||"subfolders",start:b/ONEDAY_S-e}:{reference:"dateTaken",depth:"subfolders",start:b/ONEDAY_S-e}},Je=function(e){var t=e.match(/^([amt])?([cts])?\:?(\d+)\-?(\d+)?/i),a={range:0,reference:"dateTaken",depth:"current"};return t&&(t[1]&&("a"===t[1]?a.added="added":"m"===t[1]?a.added="fileModified":"t"===t[1]&&(a.added="dateTaken")),t[2]&&("c"===t[2]?a.depth="current":"t"===t[2]?a.depth="tree":"s"===t[2]&&(a.depth="subfolders")),t[4]?(a.start=parseInt(t[3])||0,a.end=parseInt(t[4])):t[3]&&(a.start=parseInt(t[3]),a.range=1)),a},Re=function(e){return"dateTaken"===e?d.imagesTaken:"fileModified"===e?d.imagesModified:d.imagesAdded},Ie=function(e){var t,a=Re(e.reference),s=function(e){return new Date(e*ONEDAY_MS).toLocaleDateString(LOCALE)};return e.hasOwnProperty("end")||e.hasOwnProperty("start")?e.hasOwnProperty("end")?t=d.beforeDay.template(s(e.end)):e.hasOwnProperty("start")&&(t=e.hasOwnProperty("range")?e.range>1?d.betweenDays.template(s(e.start),s(e.start+e.range)):d.onDay.template(s(e.start)):getTimespan(b/ONEDAY_S-e.start)):t=getTimespan(e.range),a+" "+t},De=function(t,s){var l=we({className:"search-results",icon:"icon-calendar",title:Ie(t)});n.collectByDate(e.extend(t,{ready:function(){var t=this.length;this.length>a.maxResults&&this.splice(a.maxResults),F(e("<small>",{text:t>a.maxResults?d.foundTooMany.replace("{0}",t).replace("{1}",this.length):t?d.foundNTimes.replace("{0}",t):d.notFound})),Oe(l,this,s)}}))},Fe=function(t){return t&&De(e.extend(a.searchNew,{start:b/ONEDAY_S-t}),function(){ye({newimages:t},Re(a.searchNew.reference)),We()}),!1},Se=function(e,t){return e.hasOwnProperty(J.DATES)?"addedDate"===t?e[J.DATES].added:"originalDate"===t?e[J.DATES].dateTaken:e[J.DATES].fileModified:null},Me=function(t,s){var n=e(t.target).closest("form"),l=te(),r=l.length,o={},i=[];if(n.find("select:visible:not(:disabled),input[type=range],input[type=date]").each(function(){var t=this.name,s=n.find("label[for="+t+"]").text(),r=e(this).data("type"),c=e(this).val(),d=function(a){return"rating"===t?Math.round(a):"fileSize"===t?niceByte(a):"date"===r?new Date(1e3*a).toLocaleDateString(LOCALE):"numeric"===r?"seconds"===e(this).data("unit")?niceTime(a):"byte"===e(this).data("unit")?niceByte(a):a>=10?Math.round(a):a>=1?a.toFixed(1):a>=.1?a.toFixed(2):a:toCurrency(a,T)};if("numeric"===r||"date"===r||"financial"===r){var h=e(this).data("low"),u=e(this).data("high");if(h>this.min||u<this.max){if(t.endsWith("Date"))for(f=l.length-1;f>=0;f--)null!==(m=Se(l[f],t))&&m>=h&&m<=u||l.splice(f,1);else if(-1!==JCAMERAFIELDS.indexOf(t))if("exposureTime"===t)for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&(m=getExposure(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else if(t.startsWith("focalLength"))for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&!isNaN(m=parseFloat(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&!isNaN(m=parseFloat(l[f][J.CAMERA][t]))&&m>=h&&m<=u||l.splice(f,1);else if("rating"===t)for(var f=l.length-1,p=a.visitorRating?J.VISITORRATING:J.RATING;f>=0;f--)(m=l[f][p]||0)>=h&&m<=u||l.splice(f,1);else for(f=l.length-1;f>=0;f--)!isNaN(m=parseFloat(l[f][t]))&&m>=h&&m<=u||l.splice(f,1);i.push(s+"="+d(h)+"–"+d(u))}}else if("SELECT"===this.nodeName&&null!==c&&c.length){if(Array.isArray(c)||(c=[c]),-1!==JCAMERAFIELDS.indexOf(t))for(f=l.length-1;f>=0;f--)l[f].hasOwnProperty(J.CAMERA)&&l[f][J.CAMERA].hasOwnProperty(t)&&null!==(m=l[f][J.CAMERA][t])&&c.includes(m)||l.splice(f,1);else for(var g,m,f=l.length-1;f>=0;f--){if(l[f].hasOwnProperty(t))if(m=l[f][t],Array.isArray(m)){g=!1;for(var C=0;C<c.length;
22C++)if(m.includes(c[C])){g=!0;break}if(g)continue}else if(c.includes(m))continue;l.splice(f,1)}o[t]=c,this.multiple?i.push(t+"=["+c.join(",")+"]"):i.push(s+"="+c)}}),l.length<r){var c=we({className:"filtered-items",icon:"icon-filter",title:d.results});isEmpty(o)||c.data("sbd",o),setTimeout(function(){F(e("<small>",{html:i.join(", ")+": "+d.foundNTimes.replace("{0}",l.length)})),c.on("overlayRemoved",qe),Oe(c,l,s)},50)}return!1},Be=function(t,s){var n=this.selectedOptions[0],l=this.value;if(!n||!l)return!0;var r,o,i=te(),c=e(n).data("sort"),h=c.type,u=c.ascending;if("numeric"===h||"financial"===h||"date"===h)if(l.endsWith("Date"))i=i.sort(function(e,t){return r=Se(e,l),o=Se(t,l),u?(r||0)-(o||0):(o||0)-(r||0)});else if(-1!==JCAMERAFIELDS.indexOf(l))i="exposureTime"===l?i.sort(function(e,t){return r=e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(l)?e[J.CAMERA][l]:0,o=t.hasOwnProperty(J.CAMERA)&&t[J.CAMERA].hasOwnProperty(l)?t[J.CAMERA][l]:0,u?getExposure(r||0)-getExposure(o||0):getExposure(o||0)-getExposure(r||0)}):i.sort(function(e,t){return r=e.hasOwnProperty(J.CAMERA)&&e[J.CAMERA].hasOwnProperty(l)?parseFloat(e[J.CAMERA][l]):0,o=t.hasOwnProperty(J.CAMERA)&&t[J.CAMERA].hasOwnProperty(l)?parseFloat(t[J.CAMERA][l]):0,u?(r||0)-(o||0):(o||0)-(r||0)});else if("rating"===l){var f=a.visitorRating?J.VISITORRATING:J.RATING;i=i.sort(function(e,t){return u?(e[f]||0)-(t[f]||0):(t[f]||0)-(e[f]||0)})}else i=i.sort(function(e,t){return e.hasOwnProperty(l)&&t.hasOwnProperty(l)?u?parseFloat(e[l])-parseFloat(t[l]):parseFloat(t[l])-parseFloat(e[l]):u?e.hasOwnProperty(l)?1:0:t.hasOwnProperty(l)?-1:0});else i=i.sort(function(e,t){return e.hasOwnProperty(l)&&t.hasOwnProperty(l)?u?(e[l]+"").localeCompare(t[l]+""):(t[l]+"").localeCompare(e[l]+""):u?e.hasOwnProperty(l)?1:0:t.hasOwnProperty(l)?-1:0});var p=we({className:"sorted-items",icon:"icon-ordering",title:d.sortedBy+"<small>"+c.label+" ("+(c.ascending?d.ascending:d.descending)+")</small>"});return setTimeout(function(){p.on("overlayRemoved",je),Oe(p,i,s)},50),!1},Ue=function(t){(typeof t===UNDEF||t.hasOwnProperty("target")?e(this).closest("form"):t).find("button[type=reset]").removeClass("disabled")},Le=function(t){(typeof t===UNDEF||t.hasOwnProperty("target")?e(this).closest("form"):t).find("button[type=reset]").addClass("disabled")},He=function(t){t.find("select").each(function(){e(this).prop("selectedIndex",this.multiple?-1:0)}),t.find("input[type=range]").each(function(){e(this).trigger("resetRange")}),Le(t)},Ge=function(t){return He(e(t.target).closest("form")),!1},qe=function(){je(),He(e("#filters form.filter"))},je=function(){e("#filters form.sort select").prop("selectedIndex",0)},Ve=function(t){var s=te(),l=O().data("sbd"),r=n.getPropertyObject(n.getCurrentFolder(),J.FILTERS,!0),o=n.getPropertyObject(n.getCurrentFolder(),J.SORT,!0),i=e("#filters");if((r||o)&&s.length){var c,h,u,f,p,m=i.find("."+a.boxClass),C=m.find("form.filter"),v=m.find("form.sort");if(t?m.addClass(a.hideOnOverlayClass):((m=e("<div>",{class:a.contClass+" "+a.boxClass+" small-column",id:"filters_"+E()}).appendTo(i)).append(e("<h4>",{class:"icon-"+(r?"filter":"ordering"),text:i.find("h4").text()})),r&&(C=e("<form>",{class:"filter"}).appendTo(m)),o&&(v=e("<form>",{class:"sort"}).appendTo(m)),U(m)),f=e("<div>",{class:"buttons"}).appendTo(C),r){r=function(e,t){if(t&&e.length){var s=function(e,t){e.hasOwnProperty("min")&&e.hasOwnProperty("max")?e.min>t?e.min=t:e.max<t&&(e.max=t):e.min=e.max=t};for(var n in t){var l=t[n],r=l.type;if("numeric"===r||"date"===r||"financial"===r)if(n.endsWith("Date"))for(o=e.length-1;o>=0;o--)null!==(c=Se(e[o],n))&&s(l,c);else if(-1!==JCAMERAFIELDS.indexOf(n))if("exposureTime"===n)for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&(c=getExposure(e[o][J.CAMERA][n]))&&s(l,c);else if(n.startsWith("focalLength"))for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&!isNaN(c=parseFloat(e[o][J.CAMERA][n]))&&s(l,c);else for(o=e.length-1;o>=0;o--)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&!isNaN(c=parseFloat(e[o][J.CAMERA][n]))&&s(l,c);else if("rating"===n)for(var o=e.length-1,i=a.visitorRating?J.VISITORRATING:J.RATING;o>=0;o--)s(l,c=e[o][i]||0);else for(o=e.length-1;o>=0;o--)isNaN(c=parseFloat(e[o][n]))||s(l,c);else if(l.hasOwnProperty("values")||(l.values=[]),-1!==JCAMERAFIELDS.indexOf(n))for(o=0;o<e.length;o++)e[o].hasOwnProperty(J.CAMERA)&&e[o][J.CAMERA].hasOwnProperty(n)&&pushNew(l.values,(e[o][J.CAMERA][n]+"").trim());else{for(var c,o=0;o<e.length;o++)e[o].hasOwnProperty(n)&&pushNew(l.values,e[o][n]);l.values.length>1&&(l.values=l.values.sort(function(e,t){return e.localeCompare(t)}))}}return t}}(s,r);var y;for(var b in r){if(u=r[b].type,c=e("<div>",{class:"group "+("multiple_string"===u||"single_string"===u?"select":"range")}).insertBefore(f),r[b].label&&e("<label>",{for:b,text:r[b].label}).appendTo(c),"multiple_string"===u||"single_string"===u)if("rating"===b&&(r[b].values=[d.noRating,1,2,3,4,5]),h=e("<select>",{id:b,name:b}).appendTo(c),"multiple_string"===u&&(h.attr("multiple",!0),h.addTooltip(d.multipleSelectHint,{delay:600,stay:3e3})),r[b].hasOwnProperty("values")&&r[b].values.length){if((t||"single_string"===u&&r[b].values.length>1)&&h.prepend(e("<option>",{text:d.select,disabled:"",selected:""})),r[b].values)for(var T=0;T<r[b].values.length;T++)h.append(e("<option>",{text:r[b].values[T]}));t||(1===r[b].values.length?(h.prop("disabled",!0),h.children().first().prop("selected",!0)):l&&l.hasOwnProperty(b)&&h.children("option:enabled").each(function(t){l[b].includes(r[b].values[t])&&e(this).prop("selected",!0)})),h.on("change",Ue)}else c.remove();else h=e("<input>",{id:b,name:b,type:"range"}).data("type",u).prependTo(c),"rating"===b&&(r[b].step=1,r[b].min=0,r[b].max=5),r[b].hasOwnProperty("min")&&r[b].hasOwnProperty("max")&&r[b].min!==r[b].max?("financial"===u&&(y=r[b].label.match(/\S+\s+[\(\[](\S+)[\)\]]/))?r[b].currency=y[1]:"numeric"===u&&("exposureTime.shutterSpeed".indexOf(b)>=0?r[b].unit="seconds":"fileSize"===b&&(r[b].unit="byte",r[b].step=1)),r[b].onChanged=Ue,r[b].onReseted=Le,h.rangeSlider(r[b])):c.remove();h.attr("data-type",u||"single_string")}(h=C.find("input,select")).length&&(C.data("single",1===h.length&&"SELECT"===h[0].nodeName&&!h.attr("multiple")),t&&C.data("single")||(p=e("<button>",{type:"reset",class:(t?"disabled secondary":"alert")+" button",text:" "+d.reset}).appendTo(f),t?p.on("click."+g,Ge):p.on("click."+g,function(){qe(),z()})),C.data("single")?h.on("change."+g,Me):((p=C.find("button[type=submit]")).length||(p=e("<button>",{type:"submit",class:"button",text:" "+d.search}).appendTo(f)),p.on("click."+g,Me)),C.on("submit."+g,Me))}if(f.is(":empty")&&f.remove(),o){e("<label>",{class:"icon-ordering",for:"sortby",text:" "}).appendTo(v),(h=e("<select>",{class:"small",id:"sortby",name:"sortby"}).appendTo(v)).prepend(e("<option>",{text:d.sortBy,disabled:"",selected:""}));for(var w in o)h.append(e("<option>",{html:"↥ "+o[w].label,value:w}).data("sort",{type:o[w].type,label:o[w].label,ascending:!0})),h.append(e("<option>",{html:"↧ "+o[w].label,value:w}).data("sort",{type:o[w].type,label:o[w].label,ascending:!1}));h.on("change."+g,Be)}v&&v.length&&!v.is(":empty")||C&&C.length&&!C.is(":empty")||i.hide()}else t&&i.hide()},We=function(){if(a.hasOwnProperty("share"))if($()){var t=se();t&&e(a.share.hook).trigger("updateLinks",{sites:a.share,title:t[J.TITLE]||t[J.NAME].stripExt().replace(/[-_]/g," ").capitalize(),description:t[J.COMMENT]||"",image:n.getOptimalImagePath(t,[1200,800]),href:n.getAbsolutePath(t)})}else e(a.share.hook).trigger("updateLinks",{href:window.location.href})}
22,_e=function(t){typeof t!==UNDEF&&(e.fn.renderShares.defaults.buttonTheme=t.buttonTheme||"dark",e.fn.renderShares.defaults.indexName=a.indexName,e.fn.renderShares.defaults.facebookAppId=t.facebookAppId||"",e.fn.renderShares.defaults.albumTitle=n.getAlbumTitle(),t.hasOwnProperty("emailSubject")&&(e.fn.renderShares.defaults.emailSubject=t.emailSubject),t.hasOwnProperty("emailBody")&&(e.fn.renderShares.defaults.emailBody=t.emailBody),e(t.hook).renderShares(t),t.hasOwnProperty("sites")&&(e.fn.lightbox.defaults.share=t.sites,e.fn.lightbox.defaults.shareHook=t.hook))},ze=function(e,t){if(e&&e.length&&(t.markers=function(e){for(var t,a=[],s=0;s<e.length;s++)e[s]&&(t=n.getLocation(e[s]))&&a.push({title:[s+1+".",e[s].title,e[s].comment].filter(Boolean).join(" "),pos:t,link:e[s].path});return a}(e)),t.hasOwnProperty("markers")&&t.markers.length||t.hasOwnProperty("overlay")){var s=Q(!0);if(s.length)return s.data("inited")||(t.resPath=a.resPath,t.onMarkerClick=function(){if(this.hasOwnProperty("link")){var e=Y(this.link);e.length&&(isFullscreen()&&exitFullscreen(),O().trigger("setactivecard",e),X(e))}},t.hasOwnProperty("apiKey")&&(t.streetViewControl=t.typeControl=window.innerWidth>=640&&window.innerHeight>=640),s.closest("section").removeClass("hidden"),s.addMap(t),s.data("inited",!0)),void i.removeClass(a.noMapClass).addClass(a.hasMapClass)}i.removeClass(a.hasMapClass).addClass(a.noMapClass)},Ye=function(){a.hasOwnProperty("tagCloud")&&"current"!==a.tagCloud.depth&&n.collectTags(e.extend(a.tagCloud,{ready:function(){Ee(this)}}))},Ke=function(){if(n){var t,s,l=n.getFoldersAndWeblocs(),r=a.markNew.days*ONEDAY_S;K().each(function(n){n<l.length&&(s=l[n][J.DATES])&&(s=s[a.markNew.reference]||s[J.DATERANGE]&&(s[J.DATERANGE][1]||s[J.DATERANGE][0]))&&b-s<r&&(t=a.markNew.text?e("<span>",{class:"new-image",text:a.markNew.text}):e("<span>",{class:"icon-new-fill new-image"}),TOUCHENABLED||t.data("tooltip",new Date(1e3*s).toLocaleDateString(LOCALE)).addTooltip({delay:100}),e(this).find("."+a.thumbClass).eq(0).append(t))})}},Qe=null,Ze=!1,$e=function(){if(Ze||Z().is(":visible")||x())clearTimeout(Qe);else{Qe&&(clearTimeout(Qe),Qe=null);var s=t.scrollTop();if(Math.abs(s-w)>20)return w=s,void(Qe=setTimeout($e,a.scrollCheckInterval));var n=K("."+a.lazyloadClass);if(n.length){var l=t.height();Ze=!0,n.each(function(){var t=e(this),a=t.offset().top;if(a+t.height()>w-l){if(!(a<w+l))return!1;me(t)}}),clearTimeout(Qe),Qe=setTimeout($e,a.scrollCheckInterval)}else t.off(".lazy");Ze=!1,w=s}},Xe=function(e){var t={images:0,audios:0,videos:0,others:0};return e.children().each(function(e){var a=this.innerText.split(/\W/),s=this.classList[0];if(!s&&a.length>1)switch(a[1]){case d.image:case d.images:s="images";break;case d.audio:case d.audios:s="audios";break;case d.video:case d.videos:s="videos";break;case d.other:case d.others:s="others";break;default:s="images"}t[s]+=parseInt(a[0])||0}),t},et=function(e){var t="";return e.images&&(t+='<span class="image">'+e.images+" "+translate(e.images>1?"images":"image")+"</span>"),e.audios&&(t+='<span class="audio">'+e.audios+" "+translate(e.audios>1?"audios":"audio")+"</span>"),e.videos&&(t+='<span class="video">'+e.videos+" "+translate(e.videos>1?"videos":"video")+"</span>"),e.others&&(t+='<span class="other">'+e.others+" "+translate(e.others>1?"others":"other")+"</span>"),t},tt=function(t,s){typeof t!==UNDEF&&t.length&&(a.hasOwnProperty("markNew")&&setTimeout(Ke,300),setTimeout(function(){(!LOCAL||DEBUG)&&a.hasOwnProperty("weblocationCounts")&&a.weblocationCounts&&t.filter(".webloc.has-count").each(function(){var t,a=e(this).children(".caption"),s=Xe(a.find(".counts"));loadExternal(e(this).children(".thumb").attr("href"),function(){typeof this===OBJECT&&this.hasOwnProperty(J.DEEPCOUNTERS)&&(function(e){for(var t in e)if(0!==e[t])return!1;return!0}(t=function(e,t){var a={images:0,audios:0,videos:0,others:0};for(var s in e)t.hasOwnProperty(s)&&e[s]!==t[s]&&(a[s]=e[s]-t[s]);return a}(this[J.DEEPCOUNTERS],s))||(a.find(".counts").empty().append(et(this[J.DEEPCOUNTERS])),function(t){var a=e(".footer .counts"),s=Xe(a);for(var n in s)0!==t[n]&&(s[n]+=t[n]);a.empty().append(et(s))}(t)))})}),t.find(".mosaic").each(function(){var t=e(this).siblings(".thumb");e(this).children().each(function(a){var s=e(this).data("imgsrc")||e(this).children("img").eq(0).attr("src")||e(this).data("src");if(s){var n=e("<img>",{class:"mosimg hide-image",src:s.replace("/thumbs/","/slides/"),id:"mi"+a}).appendTo(t);e(this).on("mouseenter",function(e){setTimeout(function(){n.removeClass("hide-image").addClass("show-image")},100)}).on("mouseleave",function(e){setTimeout(function(){n.addClass("hide-image").removeClass("show-image")},200)})}})})},500),typeof s===FUNCTION&&s.call(self[0]))};return window.location.search&&removeSearch(),restoreScrollPosition(),e(window).on("beforeunload."+g,saveScrollPosition),loadPrefs(a,["audioClipVolume"],"lb_pref"),passDefaults(a,e.fn.lightbox.defaults,"indexName,level,resPath,useOriginals,previousFoldersLast,previousFolderPath,nextFoldersFirst,nextFolderPath,extraSizes,hiDpiThumbs,hiDpiImages,audioClipVolume,lightboxFullscreen,lightboxFullscreenOnlyMobiles,slideshowFullscreen,rightClickProtect,enableKeyboard,mouseWheelAction,fotomoto,useRating,visitorRating,lbableClass"),passDefaults(a.lightbox,e.fn.lightbox.defaults),function(){typeof Album===UNDEF&&console.log("Critical Error: Missing jalbum.album.js library!");var t=a.hasOwnProperty("tagCloud")&&"current"!==a.tagCloud.depth||"page"===a.pageType&&"newimages"===a.originalPage,l={makeDate:a.makeDate,rootPath:a.rootPath,relPath:a.relPath,hiDpiImages:a.hiDpiImages||!1,hiDpiThumbs:a.hiDpiThumbs||!1,folderImageFile:a.folderImageFileName,folderThumbFile:a.folderThumbFileName,thumbDims:a.thumbDims||[418,209],thumbsFillFrame:a.thumbsFill||!1,ready:"index"===a.pageType?function(){if(n){var t=n.getImages(),s=K(),l=t.length>0,r=s.length>0,o=e.fn.hasOwnProperty("paypal")&&n.hasShop(),c=a.hasOwnProperty("feedback");i.data("baseHasImages",l),re(l),l&&function(e){return H().find("."+a.cardClass+" ."+a.thumbClass+(e||""))}().each(function(){this.dataset.href=this.href,this.href=""}),o?(h=e("#shop-root"),u=e("#shop-cont,#shop-box").eq(0),h.length&&(T=n.getCurrency(),e.fn.hasOwnProperty("rangeSlider")&&T&&(e.fn.rangeSlider.defaults.currency=T),h.paypal(n,{resPath:a.resPath,relPath:a.relPath,rootPath:a.rootPath,currency:T,getSelected:ee,selectNone:function(){P().trigger("selectNone")},getCurrent:se,useFloatButton:!(h.parents(".shop-cont[data-sticky]").length||document.body.clientWidth>=640)}),h.find("."+a.addSelectedClass).on("click",function(){return h.trigger("addItems",ee()),P().trigger("selectNone"),!1}),e.fn.lightbox.defaults.hasOwnProperty("shop")||(e.fn.lightbox.defaults.shop={}),e.fn.lightbox.defaults.shop.root=h)):(h=e(),u=e()),c?(f=e("#feedback-root"),p=e("#feedback"),f.length&&(f.feedback(n,e.extend({},a.feedback,{resPath:a.resPath,relPath:a.relPath,rootPath:a.rootPath,getSelected:ee,selectNone:function(){P().trigger("selectNone")},getCurrent:se,useFloatButton:!(f.parents(".feedback-cont[data-sticky]").length||document.body.clientWidth>=640)}
22)),f.find("."+a.addSelectedClass).on("click",function(){return f.trigger("addItems",ee()),P().trigger("selectNone"),!1}),e.fn.lightbox.defaults.hasOwnProperty("feedback")||(e.fn.lightbox.defaults.feedback={}),e.fn.lightbox.defaults.feedback.root=f,e.fn.lightbox.defaults.feedbackBtnLabel=a.feedback.viewBtnLabel,e.fn.lightbox.defaults.feedbackAddBtnLabel=a.feedback.addBtnLabel,e.fn.lightbox.defaults.feedbackBtnTooltip=a.feedback.addBtnTooltip)):(f=e(),p=e()),(o||c)&&(u.add(p).find("."+a.selectAllClass).on("click",function(){return O().trigger("selectAll"),!1}),u.add(p).find("."+a.selectNoneClass).on("click",function(){return O().trigger("selectNone"),!1})),r&&tt(s,$e),l?(pe(P(),t,ve),e(a.startSlideshowHook).on("click",Te)):(window.location.hash&&be(),e(a.startSlideshowHook).hide()),a.hasOwnProperty("tagCloud")&&"current"===a.tagCloud.depth&&n.collectTags(e.extend(a.tagCloud,{ready:function(){Ee(this)}})),a.hasOwnProperty("search")&&Ne(e(a.search.hook)),a.hasOwnProperty("searchNew")&&function(t){if(t.length&&n){a.searchNew=e.extend({days:"3,30,90",depth:"folder",reference:"dateTaken",sinceLastVisit:!0},a.searchNew);var s=a.searchNew.days.split(",");t.append(e("<label>",{text:Re(a.searchNew.reference)})),t=e("<div>",{class:"buttons"}).appendTo(t);for(var l=0;l<s.length;l++)t.append(e("<a>",{class:"small button",text:getTimespan(s[l])}).data("days",parseInt(s[l],10)).on("click",function(){Fe(e(this).data("days"))}));if(a.searchNew.sinceLastVisit){var r=e.cookie("lastVisit"),o=Math.round(new Date/1e3);r&&r<o-ONEDAY_S&&t.append(e("<a>",{class:"small button",text:d.sinceMyLastVisit}).on("click",function(){Fe((o-r)/ONEDAY_S)})),e.cookie("lastVisit",o,31536e4)}}}(e(a.searchNew.hook)),a.hasOwnProperty("share")&&_e(a.share);var g=e("[data-slider]");if(g.length){var m=g.data("slider")||{},C=[g.innerWidth(),g.innerHeight()];if(m.hasOwnProperty("names")){for(var v=0;v<m.names.length;v++)m.names[v]=[a.relPath,m.names[v]].filter(Boolean).join("/");n.collectByPath({folder:a.relPath,paths:m.names,levels:0,ready:function(){m.src=[];for(var e=0;e<this.length;e++)m.src.push(n.getOptimalImagePath(this[e],C,!0,!0));g.easySlider(m)}})}else n.collectNItem({folder:a.relPath,max:50,quick:!0,levels:2,include:"images",sortBy:"random",arRange:[Math.min(1,.5*C[0]/C[1]),Math.max(1,2*C[0]/C[1])],ready:function(){m.src=[];for(var e=0;e<this.length;e++)m.src.push(n.getOptimalImagePath(this[e],C,!0,!0));g.easySlider(m)}})}var y=e(".pages-cont [data-map]");y.length&&a.hasOwnProperty("map")&&(a.map.resPath=a.resPath,y.addMap(e.extend(a.map,y.data("map"))));var b=e("[data-jalbum-query]");if(b.length){var w=b.data("jalbum-query");w.hasOwnProperty("fn")&&n[w.fn](e.extend(w,{ready:function(t){for(var s,l=0,r=Math.min(this.length,10);l<r;l++)s=this[l],e("<a>",{href:n.getLink(s)}).appendTo(b).append(e("<img>",{src:n.getThumbPath(s),alt:s[J.TITLE]||s[J.NAME]}));this.length>10&&b.append(e("<a>",{class:"more",href:w.linkMore,text:"+"+(this.length-10)})),a.rightClickProtect&&b.on("contextmenu","img",function(e){return e.preventDefault(),!1})}}))}}}:function(){a.hasOwnProperty("search")&&Ne(e(a.search.hook)),a.hasOwnProperty("share")&&_e(a.share),a.pageName=window.location.pathname.getFile();var t=[];if(V().each(function(){var s=e(this).find("."+a.thumbClass);s.data("href",s.attr("href")),s.attr("href",""),t.push(e(this).data(J.PATH))}),t.length)k(),n.collectByPath({paths:t,ready:function(){this.length?(i.data("baseHasImages",!0),re(!0),pe(P(),this,ve)):re(!1)}});else{var s=e("[data-map]");s.length&&ze(null,e.extend(a.map,s.data("map"))),i.data("baseHasImages",!1),re(!1)}},loadDeep:t,fatalError:function(e,t){s.modal(typeof t===UNDEF?translate(e):translate(e).replace(/\{0\}/g,t),{title:d.fatalError,icon:"error",class:"small alert"})},locale:a.locale||"en-US"};a.indexName!==e.fn.skin.defaults.indexName&&(l.indexName=a.indexName),a.audioPoster!==e.fn.skin.defaults.audioPoster&&(l.audioPoster=a.audioPoster),a.videoPoster!==e.fn.skin.defaults.videoPoster&&(l.videoPoster=a.videoPoster),a.useOriginals&&(l.useOriginals=!0),t&&(l.deepReady=Ye),n=new Album(e,l)}(),a.rightClickProtect&&W().add(K()).on("contextmenu","img",function(e){return e.preventDefault(),!1}),function(e){e.length&&e.audioPlayer({rootPath:a.rootPath})}(e("[data-audioPlayer]")),t.on("hashchange."+g,be),i.on("overlayReady."+g,function(e,t){moveInView(t)}),e("[data-topnav-toggle]").on({click:function(){return s.toggleClass("menu-on"),!1},selectstart:function(e){return e.preventDefault(),!1}}),a.scrollToTopButton&&s.scrollToTopBtn(),hasFullscreen()&&(onFullscreenChange(function(e){s.toggleClass(a.fullscreenClass,e)}),e(".hero .controls .gofullscreen").on("click",requestFullscreen),e(".hero .controls .exitfullscreen").on("click",exitFullscreen),window.innerWidth<640&&goFullscreenOnLandscapeChange()),this.getAlbum=function(){return n},this},e.fn.skin.defaults={locale:"en-US",contentClass:"content",contClass:"cont",startSlideshowHook:".hero .start-show",hasOverlayClass:"has-overlay",baseOverlayClass:"base-overlay",hideOnOverlayClass:"hide-on-overlay",overlayClass:"overlay",overlayTitleClass:"title",overlayHeadLevel:3,hasImagesClass:"has-images",noImagesClass:"no-images",hasMapClass:"has-map",noMapClass:"no-map",hasShopClass:"has-shop",noShopClass:"no-shop",shoppableClass:"shoppable",progressClass:"progress",progressbarClass:"progressbar",maxResults:1e3,lightboxClass:"lightbox",sliderClass:"slider",belowfoldClass:"below-fold",foldersClass:"folders",folderClass:"folder",thumbnailsClass:"thumbnails",thumbClass:"thumb",boxClass:"box",mapBoxHook:"section.map,.map-cont",mapRootClass:"map-root",tagCloudClass:"tag-cloud",tagSearchClass:"tag-search",thumbL
22ayout:"fixgrid",thumbsFill:!0,useAudioClipButton:!1,columns:5,thumbsPerBatch:20,thumbDims:[418,209],thumbGap:6,fixedShapeThumbs:!1,justifyWrapThreshold:.333333,imageClass:"image",captionClasses:"over bottom hover",cardClass:"card",folderCardClass:"foldercard",mosaicClass:"mosaic",captionPlacement:"below",lbableClass:"lbable",captionClass:"caption",commentClass:"comment",hascaptionClass:"hascaption",selectableClass:"selectable",selectedClass:"checked",activeClass:"active",preloadClass:"preload",lazyloadClass:"lazyload",placeholderClass:"placeholder",startshowClass:"start-btn",fullscreenClass:"fullscreen-on",panoClass:"pano",selectBoxClass:"select-box",selectAllClass:"select-all",selectNoneClass:"select-none",keepSelectedClass:"keep-selected",addSelectedClass:"add-selected",scrollCheckInterval:120,indexName:"index.html",folderImageFileName:"folderimage.jpg",folderThumbFileName:"folderthumb.jpg",audioPoster:"audio.poster.png",videoPoster:"video.poster.png",dateFormat:"M/d/yyyy",audioClipVolume:.75,lightboxFullscreen:!1,lightboxFullscreenOnlyMobiles:!1,slideshowFullscreen:!1,rightClickProtect:!1,useRating:!1,jalbumRating:!1,visitorRating:!1,showEmptyFilters:!1,enableKeyboard:!0,videoAuto:!0,linkToFolder:!0,useOriginals:!1,scrollToTopButton:!0}}(jQuery,jQuery(window),jQuery(document),jQuery("body"));
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.