mirror of
https://github.com/ZetaKebab/kesper.git
synced 2025-01-14 22:18:43 +00:00
2 lines
90 KiB
JavaScript
2 lines
90 KiB
JavaScript
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},e=n[e]=n[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var i=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(e,r),delete i[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(t,n){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(e){return n(t,e)}):"object"==typeof module&&module.exports?module.exports=n(t,require("ev-emitter")):t.imagesLoaded=n(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function r(e,t){for(var n in t)e[n]=t[n];return e}function a(e,t,n){if(!(this instanceof a))return new a(e,t,n);var i,o=e;return(o="string"==typeof e?document.querySelectorAll(e):o)?(this.elements=(i=o,Array.isArray(i)?i:"object"==typeof i&&"number"==typeof i.length?c.call(i):[i]),this.options=r({},this.options),"function"==typeof t?n=t:r(this.options,t),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=new s.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(o||e))}function n(e){this.img=e}function i(e,t){this.url=e,this.element=t,this.img=new Image}var s=t.jQuery,l=t.console,c=Array.prototype.slice;(a.prototype=Object.create(e.prototype)).options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var n=e.querySelectorAll("img"),i=0;i<n.length;i++){var o=n[i];this.addImage(o)}if("string"==typeof this.options.background)for(var r=e.querySelectorAll(this.options.background),i=0;i<r.length;i++){var a=r[i];this.addElementBackgroundImages(a)}}};var u={1:!0,9:!0,11:!0};return a.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(t.backgroundImage);null!==i;){var o=i&&i[2];o&&this.addBackground(o,e),i=n.exec(t.backgroundImage)}},a.prototype.addImage=function(e){e=new n(e);this.images.push(e)},a.prototype.addBackground=function(e,t){t=new i(e,t);this.images.push(t)},a.prototype.check=function(){function t(e,t,n){setTimeout(function(){i.progress(e,t,n)})}var i=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,e,t)},a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(e=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[e](this))},(n.prototype=Object.create(e.prototype)).check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},n.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(i.prototype=Object.create(n.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},(a.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((s=e).fn.imagesLoaded=function(e,t){return new a(this,e,t).jqDeferred.promise(s(this))})})(),a}),function(r){"use strict";r.fn.fitVids=function(e){var t,n,o={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(t=document.head||document.getElementsByTagName("head")[0],(n=document.createElement("div")).innerHTML='<p>x</p><style id="fit-vids-style">.fluid-width-video-container{flex-grow: 1;width:100%;}.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>',t.appendChild(n.childNodes[1])),e&&r.extend(o,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];o.customSelector&&e.push(o.customSelector);var i=".fitvidsignore";o.ignore&&(i=i+", "+o.ignore);e=r(this).find(e.join(","));(e=(e=e.not("object object")).not(i)).each(function(){var e,t,n=r(this);0<n.parents(i).length||"embed"===this.tagName.toLowerCase()&&n.parent("object").length||n.parent(".fluid-width-video-wrapper").length||(n.css("height")||n.css("width")||!isNaN(n.attr("height"))&&!isNaN(n.attr("width"))||(n.attr("height",9),n.attr("width",16)),e=("object"===this.tagName.toLowerCase()||n.attr("height")&&!isNaN(parseInt(n.attr("height"),10))?parseInt(n.attr("height"),10):n.height())/(isNaN(parseInt(n.attr("width"),10))?n.width():parseInt(n.attr("width"),10)),n.attr("name")||(t="fitvid"+r.fn.fitVids._count,n.attr("name",t),r.fn.fitVids._count++),n.wrap('<div class="fluid-width-video-container"><div class="fluid-width-video-wrapper"></div></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),n.removeAttr("height").removeAttr("width"))})})},r.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipeUI_Default=t()}(this,function(){"use strict";return function(i,s){function e(e){if(T)return!0;e=e||window.event,I.timeToIdle&&I.mouseUsed&&!w&&F();for(var t,n,i=(e.target||e.srcElement).getAttribute("class")||"",o=0;o<j.length;o++)(t=j[o]).onTap&&-1<i.indexOf("pswp__"+t.name)&&(t.onTap(),n=!0);n&&(e.stopPropagation&&e.stopPropagation(),T=!0,e=s.features.isOldAndroid?600:30,setTimeout(function(){T=!1},e))}function t(e,t,n){s[(n?"add":"remove")+"Class"](e,"pswp__"+t)}function n(){var e=1===I.getNumItemsFn();e!==_&&(t(m,"ui--one-slide",e),_=e)}function o(){t(v,"share-modal--hidden",D)}function r(){return(D=!D)?(s.removeClass(v,"pswp__share-modal--fade-in"),setTimeout(function(){D&&o()},300)):(o(),setTimeout(function(){D||s.addClass(v,"pswp__share-modal--fade-in")},30)),D||M(),0}function a(e){var t=(e=e||window.event).target||e.srcElement;return i.shout("shareLinkClick",e,t),!(!t.href||!t.hasAttribute("download")&&(window.open(t.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),D||r(),1))}function l(e){for(var t=0;t<I.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+I.closeElClasses[t]))return!0}function c(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(C),C=setTimeout(function(){L.setIdle(!0)},I.timeToIdleOutside))}function u(e){var t,n=e.vGap;!i.likelyTouchDevice||I.mouseUsed||screen.width>I.fitControlsWidth?(t=I.barsSize,I.captionEl&&"auto"===t.bottom?(f||((f=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),m.insertBefore(f,h),s.addClass(m,"pswp__ui--fit")),I.addCaptionHTMLFn(e,f,!0)?(e=f.clientHeight,n.bottom=parseInt(e,10)||44):n.bottom=t.top):n.bottom="auto"===t.bottom?0:t.bottom,n.top=t.top):n.top=n.bottom=0}function d(){function e(e){if(e)for(var t=e.length,n=0;n<t;n++){o=e[n],r=o.className;for(var i=0;i<j.length;i++)a=j[i],-1<r.indexOf("pswp__"+a.name)&&(I[a.option]?(s.removeClass(o,"pswp__element--disabled"),a.onInit&&a.onInit(o)):s.addClass(o,"pswp__element--disabled"))}}var o,r,a;e(m.children);var t=s.getChildByClass(m,"pswp__top-bar");t&&e(t.children)}var p,m,h,f,g,b,v,y,w,x,k,E,S,_,I,T,A,C,L=this,O=!1,P=!0,D=!0,R={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return i.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return i.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},M=function(){for(var e,t,n,i,o="",r=0;r<I.shareButtons.length;r++)e=I.shareButtons[r],t=I.getImageURLForShare(e),n=I.getPageURLForShare(e),i=I.getTextForShare(e),o+='<a href="'+e.url.replace("{{url}}",encodeURIComponent(n)).replace("{{image_url}}",encodeURIComponent(t)).replace("{{raw_image_url}}",t).replace("{{text}}",encodeURIComponent(i))+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",I.parseShareButtonOut&&(o=I.parseShareButtonOut(e,o));v.children[0].innerHTML=o,v.children[0].onclick=a},N=0,F=function(){clearTimeout(C),N=0,w&&L.setIdle(!1)},z=function(e){E!==e&&(t(k,"preloader--active",!e),E=e)},j=[{name:"caption",option:"captionEl",onInit:function(e){h=e}},{name:"share-modal",option:"shareEl",onInit:function(e){v=e},onTap:function(){r()}},{name:"button--share",option:"shareEl",onInit:function(e){b=e},onTap:function(){r()}},{name:"button--zoom",option:"zoomEl",onTap:i.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){g=e}},{name:"button--close",option:"closeEl",onTap:i.close},{name:"button--arrow--left",option:"arrowEl",onTap:i.prev},{name:"button--arrow--right",option:"arrowEl",onTap:i.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){p.isFullscreen()?p.exit():p.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){k=e}}];L.init=function(){var t;s.extend(i.options,R,!0),I=i.options,m=s.getChildByClass(i.scrollWrap,"pswp__ui"),(x=i.listen)("onVerticalDrag",function(e){P&&e<.95?L.hideControls():!P&&.95<=e&&L.showControls()}),x("onPinchClose",function(e){P&&e<.9?(L.hideControls(),t=!0):t&&!P&&.9<e&&L.showControls()}),x("zoomGestureEnded",function(){(t=!1)&&!P&&L.showControls()}),x("beforeChange",L.update),x("doubleTap",function(e){var t=i.currItem.initialZoomLevel;i.getZoomLevel()!==t?i.zoomTo(t,e,333):i.zoomTo(I.getDoubleTapZoom(!1,i.currItem),e,333)}),x("preventDragEvent",function(e,t,n){var i=e.target||e.srcElement;i&&i.getAttribute("class")&&-1<e.type.indexOf("mouse")&&(0<i.getAttribute("class").indexOf("__caption")||/(SMALL|STRONG|EM)/i.test(i.tagName))&&(n.prevent=!1)}),x("bindEvents",function(){s.bind(m,"pswpTap click",e),s.bind(i.scrollWrap,"pswpTap",L.onGlobalTap),i.likelyTouchDevice||s.bind(i.scrollWrap,"mouseover",L.onMouseOver)}),x("unbindEvents",function(){D||r(),A&&clearInterval(A),s.unbind(document,"mouseout",c),s.unbind(document,"mousemove",F),s.unbind(m,"pswpTap click",e),s.unbind(i.scrollWrap,"pswpTap",L.onGlobalTap),s.unbind(i.scrollWrap,"mouseover",L.onMouseOver),p&&(s.unbind(document,p.eventK,L.updateFullscreen),p.isFullscreen()&&(I.hideAnimationDuration=0,p.exit()),p=null)}),x("destroy",function(){I.captionEl&&(f&&m.removeChild(f),s.removeClass(h,"pswp__caption--empty")),v&&(v.children[0].onclick=null),s.removeClass(m,"pswp__ui--over-close"),s.addClass(m,"pswp__ui--hidden"),L.setIdle(!1)}),I.showAnimationDuration||s.removeClass(m,"pswp__ui--hidden"),x("initialZoomIn",function(){I.showAnimationDuration&&s.removeClass(m,"pswp__ui--hidden")}),x("initialZoomOut",function(){s.addClass(m,"pswp__ui--hidden")}),x("parseVerticalMargin",u),d(),I.shareEl&&b&&v&&(D=!0),n(),I.timeToIdle&&x("mouseUsed",function(){s.bind(document,"mousemove",F),s.bind(document,"mouseout",c),A=setInterval(function(){2===++N&&L.setIdle(!0)},I.timeToIdle/2)}),I.fullscreenEl&&!s.features.isOldAndroid&&((p=p||L.getFullscreenAPI())?(s.bind(document,p.eventK,L.updateFullscreen),L.updateFullscreen(),s.addClass(i.template,"pswp--supports-fs")):s.removeClass(i.template,"pswp--supports-fs")),I.preloaderEl&&(z(!0),x("beforeChange",function(){clearTimeout(S),S=setTimeout(function(){i.currItem&&i.currItem.loading?i.allowProgressiveImg()&&(!i.currItem.img||i.currItem.img.naturalWidth)||z(!1):z(!0)},I.loadingIndicatorDelay)}),x("imageLoadComplete",function(e,t){i.currItem===t&&z(!0)}))},L.setIdle=function(e){t(m,"ui--idle",w=e)},L.update=function(){O=!(!P||!i.currItem)&&(L.updateIndexIndicator(),I.captionEl&&(I.addCaptionHTMLFn(i.currItem,h),t(h,"caption--empty",!i.currItem.title)),!0),D||r(),n()},L.updateFullscreen=function(e){e&&setTimeout(function(){i.setScrollOffset(0,s.getScrollY())},50),s[(p.isFullscreen()?"add":"remove")+"Class"](i.template,"pswp--fs")},L.updateIndexIndicator=function(){I.counterEl&&(g.innerHTML=i.getCurrentIndex()+1+I.indexIndicatorSep+I.getNumItemsFn())},L.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!T)if(e.detail&&"mouse"===e.detail.pointerType)l(t)?i.close():s.hasClass(t,"pswp__img")&&(1===i.getZoomLevel()&&i.getZoomLevel()<=i.currItem.fitRatio?I.clickToCloseNonZoomable&&i.close():i.toggleDesktopZoom(e.detail.releasePoint));else if(I.tapToToggleControls&&(P?L.hideControls():L.showControls()),I.tapToClose&&(s.hasClass(t,"pswp__img")||l(t)))return void i.close()},L.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;t(m,"ui--over-close",l(e))},L.hideControls=function(){s.addClass(m,"pswp__ui--hidden"),P=!1},L.showControls=function(){P=!0,O||L.update(),s.removeClass(m,"pswp__ui--hidden")},L.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},L.getFullscreenAPI=function(){var e,t=document.documentElement,n="fullscreenchange";return t.requestFullscreen?e={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:n}:t.mozRequestFullScreen?e={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+n}:t.webkitRequestFullscreen?e={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+n}:t.msRequestFullscreen&&(e={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),e&&(e.enter=function(){return y=I.closeOnScroll,I.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?i.template[this.enterK]():void i.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return I.closeOnScroll=y,document[this.exitK]()},e.isFullscreen=function(){return document[this.elementK]}),e}}}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(m,n,e,t){var h={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[o](t[r],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){t=document.createElement(t||"div");return e&&(t.className=e),t},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){h.bind(e,t,n,!0)},removeClass:function(e,t){t=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(t," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){h.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(h.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(h.features)return h.features;var e,t,n=h.createEl().style,i="",o={};o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,o.pointerEvent||(e=navigator.userAgent,!/iP(hone|od)/.test(navigator.platform)||(t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/))&&0<t.length&&(1<=(t=parseInt(t[1],10))&&t<8&&(o.isOldIOSPhone=!0)),t=(t=e.match(/Android\s([0-9\.]*)/))?t[1]:0,1<=(t=parseFloat(t))&&(t<4.4&&(o.isOldAndroid=!0),o.androidVersion=t),o.isMobileOpera=/opera mini|opera mobi/i.test(e));for(var r,a,s,l=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],u=0;u<4;u++){i=c[u];for(var d=0;d<3;d++)r=l[d],a=i+(i?r.charAt(0).toUpperCase()+r.slice(1):r),!o[r]&&a in n&&(o[r]=a);i&&!o.raf&&(i=i.toLowerCase(),o.raf=window[i+"RequestAnimationFrame"],o.raf&&(o.caf=window[i+"CancelAnimationFrame"]||window[i+"CancelRequestAnimationFrame"]))}return o.raf||(s=0,o.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-s)),i=window.setTimeout(function(){e(t+n)},n);return s=t+n,i},o.caf=function(e){clearTimeout(e)}),o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,h.features=o}};h.detectFeatures(),h.features.oldIE&&(h.bind=function(e,t,n,i){t=t.split(" ");for(var o,r=(i?"detach":"attach")+"Event",a=function(){n.handleEvent.call(n)},s=0;s<t.length;s++)if(o=t[s])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=a;e[r]("on"+o,n["oldIE"+o])}else e[r]("on"+o,n)});var f=this,g={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};h.extend(g,t);function i(){return{x:0,y:0}}function o(e,t){h.extend(f,t.publicMethods),Ve.push(e)}function a(e){var t=$t();return t-1<e?e-t:e<0?t+e:e}function r(e,t){return et[e]||(et[e]=[]),et[e].push(t)}function b(e){var t=et[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(f,n)}}function u(){return(new Date).getTime()}function v(e){je=e,f.bg.style.opacity=e*g.bgOpacity}function s(e,t,n,i,o){(!Qe||o&&o!==f.currItem)&&(i/=(o||f.currItem).fitRatio),e[se]=V+t+"px, "+n+"px"+J+" scale("+i+")"}function d(e,t){var n;!g.loop&&t&&(n=Z+(We.x*$e-e)/We.x,t=Math.round(e-wt.x),(n<0&&0<t||n>=$t()-1&&t<0)&&(e=wt.x+t*g.mainScrollEndFriction)),wt.x=e,it(e,U)}function l(e,t){var n=xt[e]-Ke[e];return Ze[e]+qe[e]+n-t/X*n}function y(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function c(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function p(e,t){return e=Vt(f.currItem,Ge,e),t&&(De=e),e}function w(e){return(e=e||f.currItem).initialZoomLevel}function x(e){return 0<(e=e||f.currItem).w?g.maxSpreadZoom:1}function k(e,t,n,i){return i===f.currItem.initialZoomLevel?(n[e]=f.currItem.initialPosition[e],!0):(n[e]=l(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))}function E(e){var t="";g.escKey&&27===e.keyCode?t="close":g.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,f[t]()))}function S(e){e&&(Te||Ie||Me||ke)&&(e.preventDefault(),e.stopPropagation())}function _(){f.setScrollOffset(0,h.getScrollY())}function I(e){at[e]&&(at[e].raf&&de(at[e].raf),st--,delete at[e])}function T(e){at[e]&&I(e),at[e]||(st++,at[e]={})}function A(){for(var e in at)at.hasOwnProperty(e)&&I(e)}function C(e,t,n,i,o,r,a){var s,l=u();T(e);var c=function(){if(at[e]){if(s=u()-l,i<=s)return I(e),r(n),void(a&&a());r((n-t)*o(s/i)+t),at[e].raf=ue(c)}};c()}function L(e,t){return gt.x=Math.abs(e.x-t.x),gt.y=Math.abs(e.y-t.y),Math.sqrt(gt.x*gt.x+gt.y*gt.y)}function O(e,t){return It.prevent=!_t(e.target,g.isClickableElement),b("preventDragEvent",e,t,It),It.prevent}function P(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t}function D(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)}function R(){var e=Ue.y-f.currItem.initialPosition.y;return 1-Math.abs(e/(Ge.y/2))}function M(e){for(;0<Ct.length;)Ct.pop();return le?(He=0,mt.forEach(function(e){0===He?Ct[0]=e:1===He&&(Ct[1]=e),He++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Ct[0]=P(e.touches[0],Tt),1<e.touches.length&&(Ct[1]=P(e.touches[1],At))):(Tt.x=e.pageX,Tt.y=e.pageY,Tt.id="",Ct[0]=Tt),Ct}function N(e,t){var n,i,o,r=Ue[e]+t[e],a=0<t[e],s=wt.x+t.x,l=wt.x-ht.x,c=r>De.min[e]||r<De.max[e]?g.panEndFriction:1,r=Ue[e]+t[e]*c;return!g.allowPanToNext&&Y!==f.currItem.initialZoomLevel||(Re?"h"!==Ne||"x"!==e||Ie||(a?(r>De.min[e]&&(c=g.panEndFriction,De.min[e],n=De.min[e]-Ze[e]),(n<=0||l<0)&&1<$t()?(o=s,l<0&&s>ht.x&&(o=ht.x)):De.min.x!==De.max.x&&(i=r)):(r<De.max[e]&&(c=g.panEndFriction,De.max[e],n=Ze[e]-De.max[e]),(n<=0||0<l)&&1<$t()?(o=s,0<l&&s<ht.x&&(o=ht.x)):De.min.x!==De.max.x&&(i=r))):o=s,"x"!==e)?void(Me||Ce||Y>f.currItem.fitRatio&&(Ue[e]+=t[e]*c)):(void 0!==o&&(d(o,!0),Ce=o!==ht.x),De.min.x!==De.max.x&&(void 0!==i?Ue.x=i:Ce||(Ue.x+=t.x*c)),void 0!==o)}function F(e){var t;"mousedown"===e.type&&0<e.button||(Ut?e.preventDefault():Ee&&"mousedown"===e.type||(O(e,!0)&&e.preventDefault(),b("pointerDown"),le&&((t=h.arraySearch(mt,e.pointerId,"id"))<0&&(t=mt.length),mt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=M(e)).length,Le=null,A(),Se&&1!==e||(Se=Fe=!0,h.bind(window,$,f),xe=Be=ze=ke=Ce=Te=_e=Ie=!1,Ne=null,b("firstTouchStart",t),y(Ze,Ue),qe.x=qe.y=0,y(dt,t[0]),y(pt,dt),ht.x=We.x*$e,ft=[{x:dt.x,y:dt.y}],ye=ve=u(),p(Y,!0),Et(),St()),!Oe&&1<e&&!Me&&!Ce&&(X=Y,Oe=_e=!(Ie=!1),qe.y=qe.x=0,y(Ze,Ue),y(lt,t[0]),y(ct,t[1]),D(lt,ct,kt),xt.x=Math.abs(kt.x)-Ue.x,xt.y=Math.abs(kt.y)-Ue.y,Pe=L(lt,ct))))}function z(e){var t,n;e.preventDefault(),le&&-1<(t=h.arraySearch(mt,e.pointerId,"id"))&&((n=mt[t]).x=e.pageX,n.y=e.pageY),Se&&(n=M(e),Ne||Te||Oe?Le=n:wt.x!==We.x*$e?Ne="h":(e=Math.abs(n[0].x-dt.x)-Math.abs(n[0].y-dt.y),10<=Math.abs(e)&&(Ne=0<e?"h":"v",Le=n)))}function j(e){if(ge.isOldAndroid){if(Ee&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Ee),Ee=setTimeout(function(){Ee=0},600))}b("pointerUp"),O(e,!1)&&e.preventDefault(),!le||-1<(n=h.arraySearch(mt,e.pointerId,"id"))&&(r=mt.splice(n,1)[0],navigator.msPointerEnabled?(r.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],r.type||(r.type=e.pointerType||"mouse")):r.type=e.pointerType||"mouse");var t=M(e),n=t.length;if(2===(n="mouseup"===e.type?0:n))return!(Le=null);1===n&&y(pt,t[0]),0!==n||Ne||Me||(r||("mouseup"===e.type?r={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(r={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),b("touchRelease",e,r));var i,o,r=-1;if(0===n&&(Se=!1,h.unbind(window,$,f),Et(),Oe?r=0:-1!==yt&&(r=u()-yt)),yt=1===n?u():-1,r=-1!==r&&r<150?"zoom":"swipe",Oe&&n<2&&(Oe=!1,1===n&&(r="zoomPointerUp"),b("zoomGestureEnded")),Le=null,Te||Ie||Me||ke)if(A(),(we=we||Ot()).calculateSwipeSpeed("x"),ke)R()<g.verticalDragRange?f.close():(i=Ue.y,o=je,C("verticalDrag",0,1,300,h.easing.cubic.out,function(e){Ue.y=(f.currItem.initialPosition.y-i)*e+i,v((1-o)*e+o),tt()}),b("onVerticalDrag",1));else{if((Ce||Me)&&0===n){if(Dt(r,we))return;r="zoomPointerUp"}if(!Me)return"swipe"!==r?void Mt():void(!Ce&&Y>f.currItem.fitRatio&&Pt(we))}}var B,H,q,Z,U,G,$,K,W,Y,X,V,J,Q,ee,te,ne,ie,oe,re,ae,se,le,ce,ue,de,pe,me,he,fe,ge,be,ve,ye,we,xe,ke,Ee,Se,_e,Ie,Te,Ae,Ce,Le,Oe,Pe,De,Re,Me,Ne,Fe,ze,je,Be,He,qe=i(),Ze=i(),Ue=i(),Ge={},$e=0,Ke={},We=i(),Ye=0,Xe=!0,Ve=[],Je={},Qe=!1,et={},tt=function(e){Re&&(e&&(Y>f.currItem.fitRatio?Qe||(Jt(f.currItem,!1,!0),Qe=!0):Qe&&(Jt(f.currItem),Qe=!1)),s(Re,Ue.x,Ue.y,Y))},nt=function(e){e.container&&s(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},it=function(e,t){t[se]=V+e+"px, 0px"+J},ot=null,rt=function(){ot&&(h.unbind(document,"mousemove",rt),h.addClass(m,"pswp--has_mouse"),g.mouseUsed=!0,b("mouseUsed")),ot=setTimeout(function(){ot=null},100)},at={},st=0,t={shout:b,listen:r,viewportSize:Ge,options:g,isMainScrollAnimating:function(){return Me},getZoomLevel:function(){return Y},getCurrentIndex:function(){return Z},isDragging:function(){return Se},isZooming:function(){return Oe},setScrollOffset:function(e,t){Ke.x=e,fe=Ke.y=t,b("updateScrollOffset",Ke)},applyZoomPan:function(e,t,n,i){Ue.x=t,Ue.y=n,Y=e,tt(i)},init:function(){if(!B&&!H){var e;f.framework=h,f.template=m,f.bg=h.getChildByClass(m,"pswp__bg"),pe=m.className,B=!0,ge=h.detectFeatures(),ue=ge.raf,de=ge.caf,se=ge.transform,he=ge.oldIE,f.scrollWrap=h.getChildByClass(m,"pswp__scroll-wrap"),f.container=h.getChildByClass(f.scrollWrap,"pswp__container"),U=f.container.style,f.itemHolders=te=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],te[0].el.style.display=te[2].el.style.display="none",function(){if(se){var e=ge.perspective&&!ce;return V="translate"+(e?"3d(":"("),J=ge.perspective?", 0px)":")"}se="left",h.addClass(m,"pswp--ie"),it=function(e,t){t.left=e+"px"},nt=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,i=t*e.w,t=t*e.h;n.width=i+"px",n.height=t+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},tt=function(){var e,t,n,i;Re&&(e=Re,n=(t=1<(i=f.currItem).fitRatio?1:i.fitRatio)*i.w,i=t*i.h,e.width=n+"px",e.height=i+"px",e.left=Ue.x+"px",e.top=Ue.y+"px")}}(),W={resize:f.updateSize,orientationchange:function(){clearTimeout(be),be=setTimeout(function(){Ge.x!==f.scrollWrap.clientWidth&&f.updateSize()},500)},scroll:_,keydown:E,click:S};var t=ge.isOldIOSPhone||ge.isOldAndroid||ge.isMobileOpera;for(ge.animationName&&ge.transform&&!t||(g.showAnimationDuration=g.hideAnimationDuration=0),e=0;e<Ve.length;e++)f["init"+Ve[e]]();n&&(f.ui=new n(f,h)).init(),b("firstUpdate"),Z=Z||g.index||0,(isNaN(Z)||Z<0||Z>=$t())&&(Z=0),f.currItem=Gt(Z),(ge.isOldIOSPhone||ge.isOldAndroid)&&(Xe=!1),m.setAttribute("aria-hidden","false"),g.modal&&(Xe?m.style.position="fixed":(m.style.position="absolute",m.style.top=h.getScrollY()+"px")),void 0===fe&&(b("initialLayout"),fe=me=h.getScrollY());t="pswp--open ";for(g.mainClass&&(t+=g.mainClass+" "),g.showHideOpacity&&(t+="pswp--animate_opacity "),t+=ce?"pswp--touch":"pswp--notouch",t+=ge.animationName?" pswp--css_animation":"",t+=ge.svg?" pswp--svg":"",h.addClass(m,t),f.updateSize(),G=-1,Ye=null,e=0;e<3;e++)it((e+G)*We.x,te[e].el.style);he||h.bind(f.scrollWrap,K,f),r("initialZoomInEnd",function(){f.setContent(te[0],Z-1),f.setContent(te[2],Z+1),te[0].el.style.display=te[2].el.style.display="block",g.focus&&m.focus(),h.bind(document,"keydown",f),ge.transform&&h.bind(f.scrollWrap,"click",f),g.mouseUsed||h.bind(document,"mousemove",rt),h.bind(window,"resize scroll orientationchange",f),b("bindEvents")}),f.setContent(te[1],Z),f.updateCurrItem(),b("afterInit"),Xe||(Q=setInterval(function(){st||Se||Oe||Y!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),h.addClass(m,"pswp--visible")}},close:function(){B&&(H=!(B=!1),b("close"),h.unbind(window,"resize scroll orientationchange",f),h.unbind(window,"scroll",W.scroll),h.unbind(document,"keydown",f),h.unbind(document,"mousemove",rt),ge.transform&&h.unbind(f.scrollWrap,"click",f),Se&&h.unbind(window,$,f),clearTimeout(be),b("unbindEvents"),Kt(f.currItem,null,!0,f.destroy))},destroy:function(){b("destroy"),Ht&&clearTimeout(Ht),m.setAttribute("aria-hidden","true"),m.className=pe,Q&&clearInterval(Q),h.unbind(f.scrollWrap,K,f),h.unbind(window,"scroll",f),Et(),A(),et=null},panTo:function(e,t,n){n||(e>De.min.x?e=De.min.x:e<De.max.x&&(e=De.max.x),t>De.min.y?t=De.min.y:t<De.max.y&&(t=De.max.y)),Ue.x=e,Ue.y=t,tt()},handleEvent:function(e){e=e||window.event,W[e.type]&&W[e.type](e)},goTo:function(e){var t=(e=a(e))-Z;Ye=t,Z=e,f.currItem=Gt(Z),$e-=t,d(We.x*$e),A(),Me=!1,f.updateCurrItem()},next:function(){f.goTo(Z+1)},prev:function(){f.goTo(Z-1)},updateCurrZoomItem:function(e){var t;e&&b("beforeChange",0),Re=te[1].el.children.length?(t=te[1].el.children[0],h.hasClass(t,"pswp__zoom-wrap")?t.style:null):null,De=f.currItem.bounds,X=Y=f.currItem.initialZoomLevel,Ue.x=De.center.x,Ue.y=De.center.y,e&&b("afterChange")},invalidateCurrItems:function(){ee=!0;for(var e=0;e<3;e++)te[e].item&&(te[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==Ye){var t,n=Math.abs(Ye);if(!(e&&n<2)){f.currItem=Gt(Z),Qe=!1,b("beforeChange",Ye),3<=n&&(G+=Ye+(0<Ye?-3:3),n=3);for(var i=0;i<n;i++)0<Ye?(t=te.shift(),te[2]=t,it((++G+2)*We.x,t.el.style),f.setContent(t,Z-n+i+1+1)):(t=te.pop(),te.unshift(t),it(--G*We.x,t.el.style),f.setContent(t,Z+n-i-1-1));!Re||1!==Math.abs(Ye)||(e=Gt(ne)).initialZoomLevel!==Y&&(Vt(e,Ge),Jt(e),nt(e)),Ye=0,f.updateCurrZoomItem(),ne=Z,b("afterChange")}}},updateSize:function(e){if(!Xe&&g.modal){var t=h.getScrollY();if(fe!==t&&(m.style.top=t+"px",fe=t),!e&&Je.x===window.innerWidth&&Je.y===window.innerHeight)return;Je.x=window.innerWidth,Je.y=window.innerHeight,m.style.height=Je.y+"px"}if(Ge.x=f.scrollWrap.clientWidth,Ge.y=f.scrollWrap.clientHeight,_(),We.x=Ge.x+Math.round(Ge.x*g.spacing),We.y=Ge.y,d(We.x*$e),b("beforeResize"),void 0!==G){for(var n,i,o,r=0;r<3;r++)n=te[r],it((r+G)*We.x,n.el.style),o=Z+r-1,g.loop&&2<$t()&&(o=a(o)),(i=Gt(o))&&(ee||i.needsUpdate||!i.bounds)?(f.cleanSlide(i),f.setContent(n,o),1===r&&(f.currItem=i,f.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&0<=o&&f.setContent(n,o),i&&i.container&&(Vt(i,Ge),Jt(i),nt(i));ee=!1}X=Y=f.currItem.initialZoomLevel,(De=f.currItem.bounds)&&(Ue.x=De.center.x,Ue.y=De.center.y,tt(!0)),b("resize")},zoomTo:function(t,e,n,i,o){e&&(X=Y,xt.x=Math.abs(e.x)-Ue.x,xt.y=Math.abs(e.y)-Ue.y,y(Ze,Ue));var e=p(t,!1),r={};k("x",e,r,t),k("y",e,r,t);var a=Y,s=Ue.x,l=Ue.y;c(r);e=function(e){1===e?(Y=t,Ue.x=r.x,Ue.y=r.y):(Y=(t-a)*e+a,Ue.x=(r.x-s)*e+s,Ue.y=(r.y-l)*e+l),o&&o(e),tt(1===e)};n?C("customZoomTo",0,1,n,i||h.easing.sine.inOut,e):e(1)}},lt={},ct={},ut={},dt={},pt={},mt=[],ht={},ft=[],gt={},bt=0,vt=i(),yt=0,wt=i(),xt=i(),kt=i(),Et=function(){Ae&&(de(Ae),Ae=null)},St=function(){Se&&(Ae=ue(St),Lt())},_t=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:_t(e.parentNode,t))},It={},Tt={},At={},Ct=[],Lt=function(){if(Le){var e=Le.length;if(0!==e)if(y(lt,Le[0]),ut.x=lt.x-dt.x,ut.y=lt.y-dt.y,Oe&&1<e)dt.x=lt.x,dt.y=lt.y,(ut.x||ut.y||(r=Le[1],a=ct,r.x!==a.x||r.y!==a.y))&&(y(ct,Le[1]),Ie||(Ie=!0,b("zoomGestureStarted")),i=L(lt,ct),(o=Rt(i))>f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(Be=!0),n=1,e=w(),r=x(),o<e?g.pinchToClose&&!Be&&X<=f.currItem.initialZoomLevel?(v(a=1-(e-o)/(e/1.2)),b("onPinchClose",a),ze=!0):o=e-(n=1<(n=(e-o)/e)?1:n)*(e/3):r<o&&(o=r+(n=1<(n=(o-r)/(6*e))?1:n)*e),n<0&&(n=0),D(lt,ct,vt),qe.x+=vt.x-kt.x,qe.y+=vt.y-kt.y,y(kt,vt),Ue.x=l("x",o),Ue.y=l("y",o),xe=Y<o,Y=o,tt());else if(Ne&&(Fe&&(Fe=!1,10<=Math.abs(ut.x)&&(ut.x-=Le[0].x-pt.x),10<=Math.abs(ut.y)&&(ut.y-=Le[0].y-pt.y)),dt.x=lt.x,dt.y=lt.y,0!==ut.x||0!==ut.y)){if("v"===Ne&&g.closeOnVerticalDrag&&"fit"===g.scaleMode&&Y===f.currItem.initialZoomLevel){qe.y+=ut.y,Ue.y+=ut.y;var t=R();return ke=!0,b("onVerticalDrag",t),v(t),void tt()}n=u(),i=lt.x,o=lt.y,50<n-ye&&((t=2<ft.length?ft.shift():{}).x=i,t.y=o,ft.push(t),ye=n),Te=!0,De=f.currItem.bounds,N("x",ut)||(N("y",ut),c(Ue),tt())}}var n,i,o,r,a},Ot=function(){var t,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1<ft.length?(t=u()-ye+50,ft[ft.length-2][e]):(t=u()-ve,pt[e]),i.lastFlickOffset[e]=dt[e]-n,i.lastFlickDist[e]=Math.abs(i.lastFlickOffset[e]),20<i.lastFlickDist[e]?i.lastFlickSpeed[e]=i.lastFlickOffset[e]/t:i.lastFlickSpeed[e]=0,Math.abs(i.lastFlickSpeed[e])<.1&&(i.lastFlickSpeed[e]=0),i.slowDownRatio[e]=.95,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(Ue[t]>De.min[t]?i.backAnimDestination[t]=De.min[t]:Ue[t]<De.max[t]&&(i.backAnimDestination[t]=De.max[t]),void 0!==i.backAnimDestination[t]&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=!0,C("bounceZoomPan"+t,Ue[t],i.backAnimDestination[t],e||300,h.easing.sine.out,function(e){Ue[t]=e,tt()}))))},calculateAnimOffset:function(e){i.backAnimStarted[e]||(i.speedDecelerationRatio[e]=i.speedDecelerationRatio[e]*(i.slowDownRatio[e]+i.slowDownRatioReverse[e]-i.slowDownRatioReverse[e]*i.timeDiff/10),i.speedDecelerationRatioAbs[e]=Math.abs(i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]),i.distanceOffset[e]=i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]*i.timeDiff,Ue[e]+=i.distanceOffset[e])},panAnimLoop:function(){if(at.zoomPan&&(at.zoomPan.raf=ue(i.panAnimLoop),i.now=u(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),tt(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05))return Ue.x=Math.round(Ue.x),Ue.y=Math.round(Ue.y),tt(),void I("zoomPan")}};return i},Pt=function(e){return e.calculateSwipeSpeed("y"),De=f.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05?(e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0):(T("zoomPan"),e.lastNow=u(),void e.panAnimLoop())},Dt=function(e,t){var n,i;Me||(bt=Z),"swipe"===e&&(i=dt.x-pt.x,e=t.lastFlickDist.x<10,30<i&&(e||20<t.lastFlickOffset.x)?r=-1:i<-30&&(e||t.lastFlickOffset.x<-20)&&(r=1)),r&&((Z+=r)<0?(Z=g.loop?$t()-1:0,o=!0):Z>=$t()&&(Z=g.loop?0:$t()-1,o=!0),o&&!g.loop||(Ye+=r,$e-=r,n=!0));var o=We.x*$e,r=Math.abs(o-wt.x),a=n||o>wt.x==0<t.lastFlickSpeed.x?(a=0<Math.abs(t.lastFlickSpeed.x)?r/Math.abs(t.lastFlickSpeed.x):333,a=Math.min(a,400),Math.max(a,250)):333;return bt===Z&&(n=!1),Me=!0,b("mainScrollAnimStart"),C("mainScroll",wt.x,o,a,h.easing.cubic.out,d,function(){A(),Me=!1,bt=-1,!n&&bt===Z||f.updateCurrItem(),b("mainScrollAnimComplete")}),n&&f.updateCurrItem(!0),n},Rt=function(e){return 1/Pe*e*X},Mt=function(){var e=Y,t=w(),n=x();Y<t?e=t:n<Y&&(e=n);var i,o=je;return ze&&!xe&&!Be&&Y<t?f.close():(ze&&(i=function(e){v((1-o)*e+o)}),f.zoomTo(e,0,200,h.easing.cubic.out,i)),!0};o("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,i,o){ie=e+t,oe=e+n,re=e+i,ae=o?e+o:""}(le=ge.pointerEvent)&&ge.touch&&(ge.touch=!1),le?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):ge.touch?(e("touch","start","move","end","cancel"),ce=!0):e("mouse","down","move","up"),$=oe+" "+re+" "+ae,K=ie,le&&!ce&&(ce=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),f.likelyTouchDevice=ce,W[ie]=F,W[oe]=z,W[re]=j,ae&&(W[ae]=W[re]),ge.touch&&(K+=" mousedown",$+=" mousemove mouseup",W.mousedown=W[ie],W.mousemove=W[oe],W.mouseup=W[re]),ce||(g.allowPanToNext=!1)}}});function Nt(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}}function Ft(e,t,n,i,o,r){t.loadError||i&&(t.imageAppended=!0,Jt(t,i,t===f.currItem&&Qe),n.appendChild(i),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))}function zt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=h.createEl("pswp__img","img");return n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src,n}function jt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=g.errorMsg.replace("%url%",e.src),1)}function Bt(){if(Yt.length){for(var e,t=0;t<Yt.length;t++)(e=Yt[t]).holder.index===e.index&&Ft(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Yt=[]}}var Ht,qt,Zt,Ut,Gt,$t,Kt=function(a,e,s,t){var l;Ht&&clearTimeout(Ht),Zt=Ut=!0,a.initialLayout?(l=a.initialLayout,a.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(Z);function c(){I("initialZoom"),s?(f.template.removeAttribute("style"),f.bg.removeAttribute("style")):(v(1),e&&(e.style.display="block"),h.addClass(m,"pswp--animated-in"),b("initialZoom"+(s?"OutEnd":"InEnd"))),t&&t(),Ut=!1}var u=s?g.hideAnimationDuration:g.showAnimationDuration;if(!u||!l||void 0===l.x)return b("initialZoom"+(s?"Out":"In")),Y=a.initialZoomLevel,y(Ue,a.initialPosition),tt(),m.style.opacity=s?0:1,v(1),void(u?setTimeout(function(){c()},u):c());var d,p;d=q,p=!f.currItem.src||f.currItem.loadError||g.showHideOpacity,a.miniImg&&(a.miniImg.style.webkitBackfaceVisibility="hidden"),s||(Y=l.w/a.w,Ue.x=l.x,Ue.y=l.y-me,f[p?"template":"bg"].style.opacity=.001,tt()),T("initialZoom"),s&&!d&&h.removeClass(m,"pswp--animated-in"),p&&(s?h[(d?"remove":"add")+"Class"](m,"pswp--animate_opacity"):setTimeout(function(){h.addClass(m,"pswp--animate_opacity")},30)),Ht=setTimeout(function(){var t,n,i,o,r,e;b("initialZoom"+(s?"Out":"In")),s?(t=l.w/a.w,n=Ue.x,i=Ue.y,o=Y,r=je,e=function(e){1===e?(Y=t,Ue.x=l.x,Ue.y=l.y-fe):(Y=(t-o)*e+o,Ue.x=(l.x-n)*e+n,Ue.y=(l.y-fe-i)*e+i),tt(),p?m.style.opacity=1-e:v(r-e*r)},d?C("initialZoom",0,1,u,h.easing.cubic.out,e,c):(e(1),Ht=setTimeout(c,u+20))):(Y=a.initialZoomLevel,y(Ue,a.initialPosition),tt(),v(1),p?m.style.opacity=1:v(1),Ht=setTimeout(c,u+20))},s?25:90)},Wt={},Yt=[],Xt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return qt.length}},Vt=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=Nt(),e.initialPosition=e.bounds.center,e.bounds;var i,o,r,a=!n;return a&&(e.vGap||(e.vGap={top:0,bottom:0}),b("parseVerticalMargin",e)),Wt.x=t.x,Wt.y=t.y-e.vGap.top-e.vGap.bottom,a&&(i=Wt.x/e.w,o=Wt.y/e.h,e.fitRatio=i<o?i:o,"orig"===(r=g.scaleMode)?n=1:"fit"===r&&(n=e.fitRatio),1<n&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=Nt())),n?(i=(t=e).w*n,o=e.h*n,(r=t.bounds).center.x=Math.round((Wt.x-i)/2),r.center.y=Math.round((Wt.y-o)/2)+t.vGap.top,r.max.x=i>Wt.x?Math.round(Wt.x-i):r.center.x,r.max.y=o>Wt.y?Math.round(Wt.y-o)+t.vGap.top:r.center.y,r.min.x=i>Wt.x?0:r.center.x,r.min.y=o>Wt.y?t.vGap.top:r.center.y,a&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},Jt=function(e,t,n){var i;e.src&&(t=t||e.container.lastChild,i=n?e.w:Math.round(e.w*e.fitRatio),n=n?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=n+"px"),t.style.width=i+"px",t.style.height=n+"px")};o("Controller",{publicMethods:{lazyLoadItem:function(e){e=a(e);var t=Gt(e);t&&(!t.loaded&&!t.loading||ee)&&(b("gettingData",e,t),t.src&&zt(t))},initController:function(){h.extend(g,Xt,!0),f.items=qt=e,Gt=f.getItemAt,$t=g.getNumItemsFn,g.loop,$t()<3&&(g.loop=!1),r("beforeChange",function(e){for(var t=g.preload,n=null===e||0<=e,i=Math.min(t[0],$t()),o=Math.min(t[1],$t()),r=1;r<=(n?o:i);r++)f.lazyLoadItem(Z+r);for(r=1;r<=(n?i:o);r++)f.lazyLoadItem(Z-r)}),r("initialLayout",function(){f.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(Z)}),r("mainScrollAnimComplete",Bt),r("initialZoomInEnd",Bt),r("destroy",function(){for(var e,t=0;t<qt.length;t++)(e=qt[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Yt=null})},getItemAt:function(e){return 0<=e&&void 0!==qt[e]&&qt[e]},allowProgressiveImg:function(){return g.forceProgressiveLoading||!ce||g.mouseUsed||1200<screen.width},setContent:function(t,n){g.loop&&(n=a(n));var e=f.getItemAt(t.index);e&&(e.container=null);var i,o,r=f.getItemAt(n);r?(b("gettingData",n,r),t.index=n,o=(t.item=r).container=h.createEl("pswp__zoom-wrap"),!r.src&&r.html&&(r.html.tagName?o.appendChild(r.html):o.innerHTML=r.html),jt(r),Vt(r,Ge),!r.src||r.loadError||r.loaded?r.src&&!r.loadError&&((i=h.createEl("pswp__img","img")).style.opacity=1,i.src=r.src,Jt(r,i),Ft(0,r,o,i)):(r.loadComplete=function(e){if(B){if(t&&t.index===n){if(jt(e,!0))return e.loadComplete=e.img=null,Vt(e,Ge),nt(e),void(t.index===Z&&f.updateCurrZoomItem());e.imageAppended?!Ut&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):ge.transform&&(Me||Ut)?Yt.push({item:e,baseDiv:o,img:e.img,index:n,holder:t,clearPlaceholder:!0}):Ft(0,e,o,e.img,0,!0)}e.loadComplete=null,e.img=null,b("imageLoadComplete",n,e)}},h.features.transform&&(e="pswp__img pswp__img--placeholder",e+=r.msrc?"":" pswp__img--placeholder--blank",e=h.createEl(e,r.msrc?"img":""),r.msrc&&(e.src=r.msrc),Jt(r,e),o.appendChild(e),r.placeholder=e),r.loading||zt(r),f.allowProgressiveImg()&&(!Zt&&ge.transform?Yt.push({item:r,baseDiv:o,img:r.img,index:n,holder:t}):Ft(0,r,o,r.img,0,!0))),Zt||n!==Z?nt(r):(Re=o.style,Kt(r,i||r.img)),t.el.innerHTML="",t.el.appendChild(o)):t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function Qt(e,t,n){var i=document.createEvent("CustomEvent"),n={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,n),e.target.dispatchEvent(i)}var en,tn,nn={};o("Tap",{publicMethods:{initTap:function(){r("firstTouchStart",f.onTapStart),r("touchRelease",f.onTapRelease),r("destroy",function(){nn={},en=null})},onTapStart:function(e){1<e.length&&(clearTimeout(en),en=null)},onTapRelease:function(e,t){var n,i,o;!t||Te||_e||st||(n=t,en&&(clearTimeout(en),en=null,i=n,o=nn,Math.abs(i.x-o.x)<25&&Math.abs(i.y-o.y)<25)?b("doubleTap",n):"mouse"!==t.type?"BUTTON"===e.target.tagName.toUpperCase()||h.hasClass(e.target,"pswp__single-tap")?Qt(e,t):(y(nn,n),en=setTimeout(function(){Qt(e,t),en=null},300)):Qt(e,t,"mouse"))}}}),o("DesktopZoom",{publicMethods:{initDesktopZoom:function(){he||(ce?r("mouseUsed",function(){f.setupDesktopZoom()}):f.setupDesktopZoom(!0))},setupDesktopZoom:function(e){tn={};var t="wheel mousewheel DOMMouseScroll";r("bindEvents",function(){h.bind(m,t,f.handleMouseWheel)}),r("unbindEvents",function(){tn&&h.unbind(m,t,f.handleMouseWheel)}),f.mouseZoomedIn=!1;function n(){f.mouseZoomedIn&&(h.removeClass(m,"pswp--zoomed-in"),f.mouseZoomedIn=!1),Y<1?h.addClass(m,"pswp--zoom-allowed"):h.removeClass(m,"pswp--zoom-allowed"),o()}var i,o=function(){i&&(h.removeClass(m,"pswp--dragging"),i=!1)};r("resize",n),r("afterChange",n),r("pointerDown",function(){f.mouseZoomedIn&&(i=!0,h.addClass(m,"pswp--dragging"))}),r("pointerUp",o),e||n()},handleMouseWheel:function(e){if(Y<=f.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||st||Se?e.preventDefault():se&&2<Math.abs(e.deltaY)&&(q=!0,f.close())),!0;if(e.stopPropagation(),tn.x=0,"deltaX"in e)1===e.deltaMode?(tn.x=18*e.deltaX,tn.y=18*e.deltaY):(tn.x=e.deltaX,tn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(tn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?tn.y=-.16*e.wheelDeltaY:tn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;tn.y=e.detail}p(Y,!0);var t=Ue.x-tn.x,n=Ue.y-tn.y;(g.modal||t<=De.min.x&&t>=De.max.x&&n<=De.min.y&&n>=De.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Ge.x/2+Ke.x,y:Ge.y/2+Ke.y};var t=g.getDoubleTapZoom(!0,f.currItem),n=Y===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),h[(n?"remove":"add")+"Class"](m,"pswp--zoomed-in")}}});function on(){return bn.hash.substring(1)}function rn(){sn&&clearTimeout(sn),cn&&clearTimeout(cn)}function an(){var e=on(),t={};if(e.length<5)return t;var n,i=e.split("&");for(r=0;r<i.length;r++)i[r]&&((n=i[r].split("=")).length<2||(t[n[0]]=n[1]));if(g.galleryPIDs){for(var o=t.pid,r=t.pid=0;r<qt.length;r++)if(qt[r].pid===o){t.pid=r;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t}var sn,ln,cn,un,dn,pn,mn,hn,fn,gn,bn,vn,yn={history:!0,galleryUID:1},wn=function(){var e,t;cn&&clearTimeout(cn),st||Se?cn=setTimeout(wn,500):(un?clearTimeout(ln):un=!0,t=Z+1,(e=Gt(Z)).hasOwnProperty("pid")&&(t=e.pid),e=mn+"&gid="+g.galleryUID+"&pid="+t,hn||-1===bn.hash.indexOf(e)&&(gn=!0),t=bn.href.split("#")[0]+"#"+e,vn?"#"+e!==window.location.hash&&history[hn?"replaceState":"pushState"]("",document.title,t):hn?bn.replace(t):bn.hash=e,hn=!0,ln=setTimeout(function(){un=!1},60))};o("History",{publicMethods:{initHistory:function(){var e,t;h.extend(g,yn,!0),g.history&&(bn=window.location,hn=fn=gn=!1,mn=on(),vn="pushState"in history,-1<mn.indexOf("gid=")&&(mn=(mn=mn.split("&gid=")[0]).split("?gid=")[0]),r("afterChange",f.updateURL),r("unbindEvents",function(){h.unbind(window,"hashchange",f.onHashChange)}),e=function(){pn=!0,fn||(gn?history.back():mn?bn.hash=mn:vn?history.pushState("",document.title,bn.pathname+bn.search):bn.hash=""),rn()},r("unbindEvents",function(){q&&e()}),r("destroy",function(){pn||e()}),r("firstUpdate",function(){Z=an().pid}),-1<(t=mn.indexOf("pid="))&&("&"===(mn=mn.substring(0,t)).slice(-1)&&(mn=mn.slice(0,-1))),setTimeout(function(){B&&h.bind(window,"hashchange",f.onHashChange)},40))},onHashChange:function(){return on()===mn?(fn=!0,void f.close()):void(un||(dn=!0,f.goTo(an().pid),dn=!1))},updateURL:function(){rn(),dn||(hn?sn=setTimeout(wn,800):wn())}}}),h.extend(f,t)}});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(l){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,e={},L={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof O?new O(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function n(e,i){var o,t;switch(i=i||{},L.util.type(e)){case"Object":if(t=L.util.objId(e),i[t])return i[t];for(var r in o={},i[t]=o,e)e.hasOwnProperty(r)&&(o[r]=n(e[r],i));return o;case"Array":return t=L.util.objId(e),i[t]||(o=[],i[t]=o,e.forEach(function(e,t){o[t]=n(e,i)}),o);default:return e}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var n,i=document.getElementsByTagName("script");for(n in i)if(i[n].src==t)return i[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:e,plaintext:e,text:e,txt:e,extend:function(e,t){var n,i=L.util.clone(L.languages[e]);for(n in t)i[n]=t[n];return i},insertBefore:function(n,e,t,i){var o,r=(i=i||L.languages)[n],a={};for(o in r)if(r.hasOwnProperty(o)){if(o==e)for(var s in t)t.hasOwnProperty(s)&&(a[s]=t[s]);t.hasOwnProperty(o)||(a[o]=r[o])}var l=i[n];return i[n]=a,L.languages.DFS(L.languages,function(e,t){t===l&&e!=n&&(this[e]=a)}),a},DFS:function e(t,n,i,o){o=o||{};var r,a,s,l=L.util.objId;for(r in t)t.hasOwnProperty(r)&&(n.call(t,r,t[r],i||r),a=t[r],"Object"!==(s=L.util.type(a))||o[l(a)]?"Array"!==s||o[l(a)]||(o[l(a)]=!0,e(a,n,r,o)):(o[l(a)]=!0,e(a,n,null,o)))}},plugins:{},highlightAll:function(e,t){L.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};L.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),L.hooks.run("before-all-elements-highlight",i);for(var o,r=0;o=i.elements[r++];)L.highlightElement(o,!0===t,i.callback)},highlightElement:function(e,t,n){var i=L.util.getLanguage(e),o=L.languages[i];L.util.setLanguage(e,i);var r=e.parentElement;r&&"pre"===r.nodeName.toLowerCase()&&L.util.setLanguage(r,i);var a={element:e,language:i,grammar:o,code:e.textContent};function s(e){a.highlightedCode=e,L.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,L.hooks.run("after-highlight",a),L.hooks.run("complete",a),n&&n.call(a.element)}if(L.hooks.run("before-sanity-check",a),(r=a.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),!a.code)return L.hooks.run("complete",a),void(n&&n.call(a.element));L.hooks.run("before-highlight",a),a.grammar?t&&l.Worker?((t=new Worker(L.filename)).onmessage=function(e){s(e.data)},t.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):s(L.highlight(a.code,a.grammar,a.language)):s(L.util.encode(a.code))},highlight:function(e,t,n){n={code:e,grammar:t,language:n};if(L.hooks.run("before-tokenize",n),!n.grammar)throw new Error('The language "'+n.language+'" has no grammar.');return n.tokens=L.tokenize(n.code,n.grammar),L.hooks.run("after-tokenize",n),O.stringify(L.util.encode(n.tokens),n.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var o=new r;return D(o,o.head,e),function e(t,n,i,o,r,a){for(var s in i)if(i.hasOwnProperty(s)&&i[s]){var l=i[s];l=Array.isArray(l)?l:[l];for(var c=0;c<l.length;++c){if(a&&a.cause==s+","+c)return;var u,d=l[c],p=d.inside,m=!!d.lookbehind,h=!!d.greedy,f=d.alias;h&&!d.pattern.global&&(u=d.pattern.toString().match(/[imsuy]*$/)[0],d.pattern=RegExp(d.pattern.source,u+"g"));for(var g=d.pattern||d,b=o.next,v=r;b!==n.tail&&!(a&&v>=a.reach);v+=b.value.length,b=b.next){var y=b.value;if(n.length>t.length)return;if(!(y instanceof O)){var w,x=1;if(h){if(!(w=P(g,v,t,m))||w.index>=t.length)break;var k=w.index,E=w.index+w[0].length,S=v;for(S+=b.value.length;S<=k;)S+=(b=b.next).value.length;if(v=S-=b.value.length,b.value instanceof O)continue;for(var _=b;_!==n.tail&&(S<E||"string"==typeof _.value);_=_.next)x++,S+=_.value.length;x--,y=t.slice(v,S),w.index-=v}else if(!(w=P(g,0,y,m)))continue;k=w.index;var I=w[0],T=y.slice(0,k),A=y.slice(k+I.length),C=v+y.length;a&&C>a.reach&&(a.reach=C);var y=b.prev;T&&(y=D(n,y,T),v+=T.length),R(n,y,x),b=D(n,y,new O(s,p?L.tokenize(I,p):I,f,I)),A&&D(n,b,A),1<x&&(C={cause:s+","+c,reach:C},e(t,n,i,b.prev,v,C),a&&C.reach>a.reach&&(a.reach=C.reach))}}}}}(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=L.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=L.hooks.all[e];if(n&&n.length)for(var i,o=0;i=n[o++];)i(t)}},Token:O};function O(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function P(e,t,n,i){e.lastIndex=t;n=e.exec(n);return n&&i&&n[1]&&(i=n[1].length,n.index+=i,n[0]=n[0].slice(i)),n}function r(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function D(e,t,n){var i=t.next,n={value:n,prev:t,next:i};return t.next=n,i.prev=n,e.length++,n}function R(e,t,n){for(var i=t.next,o=0;o<n&&i!==e.tail;o++)i=i.next;(t.next=i).prev=t,e.length-=o}if(l.Prism=L,O.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var i="";return e.forEach(function(e){i+=t(e,n)}),i}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},e=e.alias;e&&(Array.isArray(e)?Array.prototype.push.apply(o.classes,e):o.classes.push(e)),L.hooks.run("wrap",o);var r,a="";for(r in o.attributes)a+=" "+r+'="'+(o.attributes[r]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+a+">"+o.content+"</"+o.tag+">"},!l.document)return l.addEventListener&&(L.disableWorkerMessageHandler||l.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,e=t.code,t=t.immediateClose;l.postMessage(L.highlight(e,L.languages[n],n)),t&&l.close()},!1)),L;var i=L.util.currentScript();function o(){L.manual||L.highlightAll()}return i&&(L.filename=i.src,i.hasAttribute("data-manual")&&(L.manual=!0)),L.manual||("loading"===(e=document.readyState)||"interactive"===e&&i&&i.defer?document.addEventListener("DOMContentLoaded",o):window.requestAnimationFrame?window.requestAnimationFrame(o):window.setTimeout(o,16)),L}(_self);function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){!function(t){t.preventDefault();for(var n,i=[],o=0,e=t.target.closest(".kg-card").previousElementSibling;e&&(e.classList.contains("kg-image-card")||e.classList.contains("kg-gallery-card"));){var r=[];e.querySelectorAll("img").forEach(function(e){r.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),o+=1}),e=e.previousElementSibling,i=r.concat(i)}t.target.classList.contains("kg-image")?i.push({src:t.target.getAttribute("src"),msrc:t.target.getAttribute("src"),w:t.target.getAttribute("width"),h:t.target.getAttribute("height"),el:t.target}):(n=!1,t.target.closest(".kg-gallery-card").querySelectorAll("img").forEach(function(e){i.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),n||e===t.target?n=!0:o+=1}));for(var a=t.target.closest(".kg-card").nextElementSibling;a&&(a.classList.contains("kg-image-card")||a.classList.contains("kg-gallery-card"));)a.querySelectorAll("img").forEach(function(e){i.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e})}),a=a.nextElementSibling;var s=document.querySelectorAll(".pswp")[0];new PhotoSwipe(s,PhotoSwipeUI_Default,i,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:o,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var t=i[e].el,e=window.pageYOffset||document.documentElement.scrollTop,t=t.getBoundingClientRect();return{x:t.left,y:t.top+e,w:t.width}}}).init()}(e)})})}"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],r=i.variable[1].inside,a=0;a<o.length;a++)r[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(n){function i(e,n){return e.replace(/<<(\d+)>>/g,function(e,t){return"(?:"+n[+t]+")"})}function o(e,t,n){return RegExp(i(e,t),n||"")}function e(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var t="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",r="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",a="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(b="class enum interface record struct"),c=RegExp(s(t+" "+b+" "+r+" "+a)),u=s(b+" "+r+" "+a),d=s(t+" "+b+" "+a),p=e("<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>",2),m=e("\\((?:[^()]|<<self>>)*\\)",2),h="@?\\b[A-Za-z_]\\w*\\b",f=i("<<0>>(?:\\s*<<1>>)?",[h,p]),g=i("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*",[u,f]),t=i("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?",[g,r="\\[\\s*(?:,\\s*)*\\]"]),b=i("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>",[p,m,r]),a=i("\\(<<0>>+(?:,<<0>>+)+\\)",[b]),u=i("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?",[a,g,r]),b={keyword:c,punctuation:/[<>()?,.:[\]]/},a="'(?:[^\r\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'",r='"(?:\\\\.|[^\\\\"\r\n])*"';n.languages.csharp=n.languages.extend("clike",{string:[{pattern:o("(^|[^$\\\\])<<0>>",['@"(?:""|\\\\[^]|[^\\\\"])*"(?!")']),lookbehind:!0,greedy:!0},{pattern:o("(^|[^@$\\\\])<<0>>",[r]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:o("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)",[g]),lookbehind:!0,inside:b},{pattern:o("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)",[h,u]),lookbehind:!0,inside:b},{pattern:o("(\\busing\\s+)<<0>>(?=\\s*=)",[h]),lookbehind:!0},{pattern:o("(\\b<<0>>\\s+)<<1>>",[l,f]),lookbehind:!0,inside:b},{pattern:o("(\\bcatch\\s*\\(\\s*)<<0>>",[g]),lookbehind:!0,inside:b},{pattern:o("(\\bwhere\\s+)<<0>>",[h]),lookbehind:!0},{pattern:o("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>",[t]),lookbehind:!0,inside:b},{pattern:o("\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))",[u,d,h]),inside:b}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),n.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),n.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:o("([(,]\\s*)<<0>>(?=\\s*:)",[h]),lookbehind:!0,alias:"punctuation"}}),n.languages.insertBefore("csharp","class-name",{namespace:{pattern:o("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])",[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:o("(\\b(?:default|sizeof|typeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))",[m]),lookbehind:!0,alias:"class-name",inside:b},"return-type":{pattern:o("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))",[u,g]),inside:b,alias:"class-name"},"constructor-invocation":{pattern:o("(\\bnew\\s+)<<0>>(?=\\s*[[({])",[u]),lookbehind:!0,inside:b,alias:"class-name"},"generic-method":{pattern:o("<<0>>\\s*<<1>>(?=\\s*\\()",[h,p]),inside:{function:o("^<<0>>",[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:b}}},"type-list":{pattern:o("\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))",[l,f,h,u,c.source,m,"\\bnew\\s*\\(\\s*\\)"]),lookbehind:!0,inside:{"record-arguments":{pattern:o("(^(?!new\\s*\\()<<0>>\\s*)<<1>>",[f,m]),lookbehind:!0,greedy:!0,inside:n.languages.csharp},keyword:c,"class-name":{pattern:RegExp(u),greedy:!0,inside:b},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}}),c=i("/(?![*/])|//[^\r\n]*[\r\n]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>",[m=r+"|"+a]),u=e(i("[^\"'/()]|<<0>>|\\(<<self>>*\\)",[c]),2),b="\\b(?:assembly|event|field|method|module|param|property|return|type)\\b",r=i("<<0>>(?:\\s*\\(<<1>>*\\))?",[g,u]),n.languages.insertBefore("csharp","class-name",{attribute:{pattern:o("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])",[b,r]),lookbehind:!0,greedy:!0,inside:{target:{pattern:o("^<<0>>(?=\\s*:)",[b]),alias:"keyword"},"attribute-arguments":{pattern:o("\\(<<0>>*\\)",[u]),inside:n.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var v=":[^}\r\n]+",u=e(i("[^\"'/()]|<<0>>|\\(<<self>>*\\)",[c]),2),g=i("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}",[u,v]),c=e(i("[^\"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<<self>>*\\)",[m]),2),m=i("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}",[c,v]);function y(e,t){return{interpolation:{pattern:o("((?:^|[^{])(?:\\{\\{)*)<<0>>",[e]),lookbehind:!0,inside:{"format-string":{pattern:o("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)",[t,v]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:n.languages.csharp}}},string:/[\s\S]+/}}n.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:o('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"',[g]),lookbehind:!0,greedy:!0,inside:y(g,u)},{pattern:o('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"',[m]),lookbehind:!0,greedy:!0,inside:y(m,c)}],char:{pattern:RegExp(a),greedy:!0}}),n.languages.dotnet=n.languages.cs=n.languages.csharp}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n="\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+".replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp('(\\b(?:import|module)\\s+)(?:"(?:\\\\(?:\r\n|[^])|[^"\\\\\r\n])*"|<[^<>\r\n]*>|'+"<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>".replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){var n="(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g,function(){return"\\\\[\r\n](?:\\s|\\\\[\r\n]|#.*(?!.))*(?![\\s#]|\\\\[\r\n])"}),t="\"(?:[^\"\\\\\r\n]|\\\\(?:\r\n|[^]))*\"|'(?:[^'\\\\\r\n]|\\\\(?:\r\n|[^]))*'",i="--[\\w-]+=(?:<STR>|(?![\"'])(?:[^\\s\\\\]|\\\\.)+)".replace(/<STR>/g,function(){return t}),o={pattern:RegExp(t),greedy:!0},r={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,t){return e=e.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return n}),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a("(^(?:ONBUILD<SP>)?\\w+<SP>)<OPT>(?:<SP><OPT>)*","i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a("(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\\b","i"),lookbehind:!0,greedy:!0},{pattern:a("(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\\\]+<SP>)AS","i"),lookbehind:!0,greedy:!0},{pattern:a("(^ONBUILD<SP>)\\w+","i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:r,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:r},e.languages.dockerfile=e.languages.docker}(Prism),Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp('(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\r\n|[^(])|[^\\\\\r\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp('(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\r\n|[^#])|[^\\\\\r\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp("#(?:(?:elseif|if)\\b(?:[ \t]*(?:![ \t]*)?(?:\\b\\w+\\b(?:[ \t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(){var o,r,e,t;function a(e){0!=(e=e.filter(function(e){e=((e=e)?window.getComputedStyle?getComputedStyle(e):e.currentStyle||null:null)["white-space"];return"pre-wrap"===e||"pre-line"===e})).length&&((e=e.map(function(e){var t=e.querySelector("code"),n=e.querySelector(".line-numbers-rows");if(t&&n){var i=e.querySelector(".line-numbers-sizer"),n=t.textContent.split(r);i||((i=document.createElement("span")).className="line-numbers-sizer",t.appendChild(i)),i.innerHTML="0",i.style.display="block";t=i.getBoundingClientRect().height;return i.innerHTML="",{element:e,lines:n,lineHeights:[],oneLinerHeight:t,sizer:i}}}).filter(Boolean)).forEach(function(e){var i=e.sizer,t=e.lines,o=e.lineHeights,r=e.oneLinerHeight;o[t.length-1]=void 0,t.forEach(function(e,t){var n;e&&1<e.length?((n=i.appendChild(document.createElement("span"))).style.display="block",n.textContent=e):o[t]=r})}),e.forEach(function(e){for(var t=e.sizer,n=e.lineHeights,i=0,o=0;o<n.length;o++)void 0===n[o]&&(n[o]=t.children[i++].getBoundingClientRect().height)}),e.forEach(function(e){var t=e.sizer,n=e.element.querySelector(".line-numbers-rows");t.style.display="none",t.innerHTML="",e.lineHeights.forEach(function(e,t){n.children[t].style.height=e+"px"})}))}void 0!==Prism&&"undefined"!=typeof document&&(o="line-numbers",r=/\n(?!$)/g,e=Prism.plugins.lineNumbers={getLine:function(e,t){if("PRE"===e.tagName&&e.classList.contains(o)){var n=e.querySelector(".line-numbers-rows");if(n){var i=parseInt(e.getAttribute("data-start"),10)||1,e=i+(n.children.length-1),i=(t=e<(t=t<i?i:t)?e:t)-i;return n.children[i]}}},resize:function(e){a([e])},assumeViewportIndependence:!0},t=void 0,window.addEventListener("resize",function(){e.assumeViewportIndependence&&t===window.innerWidth||(t=window.innerWidth,a(Array.prototype.slice.call(document.querySelectorAll("pre.line-numbers"))))}),Prism.hooks.add("complete",function(e){var t,n,i;!e.code||(t=(n=e.element).parentNode)&&/pre/i.test(t.nodeName)&&!n.querySelector(".line-numbers-rows")&&Prism.util.isActive(n,o)&&(n.classList.remove(o),t.classList.add(o),n=(i=e.code.match(r))?i.length+1:1,i=new Array(n+1).join("<span></span>"),(n=document.createElement("span")).setAttribute("aria-hidden","true"),n.className="line-numbers-rows",n.innerHTML=i,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(n),a([t]),Prism.hooks.run("line-numbers",e))}),Prism.hooks.add("line-numbers",function(e){e.plugins=e.plugins||{},e.plugins.lineNumbers=!0}))}(),function(){var c,u,d,e,t,n,i,o,p;function m(e){if(0<=e.indexOf("!"))return!1;if((e=u[e]||e)in Prism.languages)return!0;e=d[e];return e&&!e.error&&!1===e.loading}function h(e,t,n){var i=(e="string"==typeof e?[e]:e).length,o=0,r=!1;function a(){r||++o===i&&t&&t(e)}0!==i?e.forEach(function(e){!function(r,a,s){var l=0<=r.indexOf("!");function e(){var e,t,n,i,o=d[r];(o=o||(d[r]={callbacks:[]})).callbacks.push({success:a,error:s}),!l&&m(r)?f(r,"success"):!l&&o.error?f(r,"error"):!l&&o.loading||(o.loading=!0,o.error=!1,e=p.languages_path+"prism-"+r+(p.use_minified?".min":"")+".js",t=function(){o.loading=!1,f(r,"success")},n=function(){o.loading=!1,o.error=!0,f(r,"error")},(i=document.createElement("script")).src=e,i.async=!0,i.onload=function(){document.body.removeChild(i),t()},i.onerror=function(){document.body.removeChild(i),n()},document.body.appendChild(i))}r=r.replace("!","");var t=c[r=u[r]||r];t&&t.length?h(t,e,s):e()}(e,a,function(){r||(r=!0,n&&n(e))})}):t&&setTimeout(t,0)}function f(e,t){if(d[e]){for(var n=d[e].callbacks,i=0,o=n.length;i<o;i++){var r=n[i][t];r&&setTimeout(r,0)}n.length=0}}void 0!==Prism&&"undefined"!=typeof document&&(c={javascript:"clike",actionscript:"javascript",apex:["clike","sql"],arduino:"cpp",aspnet:["markup","csharp"],birb:"clike",bison:"c",c:"clike",csharp:"clike",cpp:"c",cfscript:"clike",chaiscript:["clike","cpp"],cilkc:"c",cilkcpp:"cpp",coffeescript:"javascript",crystal:"ruby","css-extras":"css",d:"clike",dart:"clike",django:"markup-templating",ejs:["javascript","markup-templating"],etlua:["lua","markup-templating"],erb:["ruby","markup-templating"],fsharp:"clike","firestore-security-rules":"clike",flow:"javascript",ftl:"markup-templating",gml:"clike",glsl:"c",go:"clike",gradle:"clike",groovy:"clike",haml:"ruby",handlebars:"markup-templating",haxe:"clike",hlsl:"c",idris:"haskell",java:"clike",javadoc:["markup","java","javadoclike"],jolie:"clike",jsdoc:["javascript","javadoclike","typescript"],"js-extras":"javascript",json5:"json",jsonp:"json","js-templates":"javascript",kotlin:"clike",latte:["clike","markup-templating","php"],less:"css",lilypond:"scheme",liquid:"markup-templating",markdown:"markup","markup-templating":"markup",mongodb:"javascript",n4js:"javascript",objectivec:"c",opencl:"c",parser:"markup",php:"markup-templating",phpdoc:["php","javadoclike"],"php-extras":"php",plsql:"sql",processing:"clike",protobuf:"clike",pug:["markup","javascript"],purebasic:"clike",purescript:"haskell",qsharp:"clike",qml:"javascript",qore:"clike",racket:"scheme",cshtml:["markup","csharp"],jsx:["markup","javascript"],tsx:["jsx","typescript"],reason:"clike",ruby:"clike",sass:"css",scss:"css",scala:"java","shell-session":"bash",smarty:"markup-templating",solidity:"clike",soy:"markup-templating",sparql:"turtle",sqf:"clike",squirrel:"clike",stata:["mata","java","python"],"t4-cs":["t4-templating","csharp"],"t4-vb":["t4-templating","vbnet"],tap:"yaml",tt2:["clike","markup-templating"],textile:"markup",twig:"markup-templating",typescript:"javascript",v:"clike",vala:"clike",vbnet:"basic",velocity:"markup",wiki:"markup",xeora:"markup","xml-doc":"markup",xquery:"markup"},u={html:"markup",xml:"markup",svg:"markup",mathml:"markup",ssml:"markup",atom:"markup",rss:"markup",js:"javascript",g4:"antlr4",ino:"arduino","arm-asm":"armasm",art:"arturo",adoc:"asciidoc",avs:"avisynth",avdl:"avro-idl",gawk:"awk",sh:"bash",shell:"bash",shortcode:"bbcode",rbnf:"bnf",oscript:"bsl",cs:"csharp",dotnet:"csharp",cfc:"cfscript","cilk-c":"cilkc","cilk-cpp":"cilkcpp",cilk:"cilkcpp",coffee:"coffeescript",conc:"concurnas",jinja2:"django","dns-zone":"dns-zone-file",dockerfile:"docker",gv:"dot",eta:"ejs",xlsx:"excel-formula",xls:"excel-formula",gamemakerlanguage:"gml",po:"gettext",gni:"gn",ld:"linker-script","go-mod":"go-module",hbs:"handlebars",mustache:"handlebars",hs:"haskell",idr:"idris",gitignore:"ignore",hgignore:"ignore",npmignore:"ignore",webmanifest:"json",kt:"kotlin",kts:"kotlin",kum:"kumir",tex:"latex",context:"latex",ly:"lilypond",emacs:"lisp",elisp:"lisp","emacs-lisp":"lisp",md:"markdown",moon:"moonscript",n4jsd:"n4js",nani:"naniscript",objc:"objectivec",qasm:"openqasm",objectpascal:"pascal",px:"pcaxis",pcode:"peoplecode",plantuml:"plant-uml",pq:"powerquery",mscript:"powerquery",pbfasm:"purebasic",purs:"purescript",py:"python",qs:"qsharp",rkt:"racket",razor:"cshtml",rpy:"renpy",res:"rescript",robot:"robotframework",rb:"ruby","sh-session":"shell-session",shellsession:"shell-session",smlnj:"sml",sol:"solidity",sln:"solution-file",rq:"sparql",sclang:"supercollider",t4:"t4-cs",trickle:"tremor",troy:"tremor",trig:"turtle",ts:"typescript",tsconfig:"typoscript",uscript:"unrealscript",uc:"unrealscript",url:"uri",vb:"visual-basic",vba:"visual-basic",webidl:"web-idl",mathematica:"wolfram",nb:"wolfram",wl:"wolfram",xeoracube:"xeora",yml:"yaml"},d={},e="components/",(o=Prism.util.currentScript())&&(t=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,n=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,null!=(i=o.getAttribute("data-autoloader-path"))?e=i.trim().replace(/\/?$/,"/"):(o=o.src,t.test(o)?e=o.replace(t,"components/"):n.test(o)&&(e=o.replace(n,"$1components/")))),p=Prism.plugins.autoloader={languages_path:e,use_minified:!0,loadLanguages:h},Prism.hooks.add("complete",function(e){var t,n=e.element,i=e.language;n&&i&&"none"!==i&&((e=((t=n).getAttribute("data-dependencies")||"").trim())||(t=t.parentElement)&&"pre"===t.tagName.toLowerCase()&&(e=(t.getAttribute("data-dependencies")||"").trim()),e=e?e.split(/\s*,\s*/g):[],/^diff-./i.test(i)?(e.push("diff"),e.push(i.substr("diff-".length))):e.push(i),e.every(m)||h(e,function(){Prism.highlightElement(n)}))}))}(),function(){var i=window.matchMedia("(max-width: 767px)");const e=document.querySelector(".gh-head"),o=e.querySelector(".gh-head-menu"),r=o.querySelector(".nav");if(r){document.querySelector(".gh-head-logo");var a,t=r.innerHTML;if(i.matches){const s=r.querySelectorAll("li");s.forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"})}function n(){if(!i.matches){const e=[];for(;r.offsetWidth+64>o.offsetWidth;){if(!r.lastElementChild)return;e.unshift(r.lastElementChild),r.lastElementChild.remove()}if(e.length){const t=document.createElement("button");t.setAttribute("class","nav-more-toggle"),t.setAttribute("aria-label","More"),t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="currentColor"><path d="M21.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM13.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0zM5.333 16c0-1.473 1.194-2.667 2.667-2.667v0c1.473 0 2.667 1.194 2.667 2.667v0c0 1.473-1.194 2.667-2.667 2.667v0c-1.473 0-2.667-1.194-2.667-2.667v0z"></path></svg>';const n=document.createElement("div");n.setAttribute("class","gh-dropdown"),10<=e.length?(document.body.classList.add("is-dropdown-mega"),n.style.gridTemplateRows="repeat("+Math.ceil(e.length/2)+", 1fr)"):document.body.classList.remove("is-dropdown-mega"),e.forEach(function(e){n.appendChild(e)}),t.appendChild(n),r.appendChild(t),document.body.classList.add("is-dropdown-loaded"),t.addEventListener("click",function(){document.body.classList.toggle("is-dropdown-open")}),a=function(e){!t.contains(e.target)&&document.body.classList.contains("is-dropdown-open")&&document.body.classList.remove("is-dropdown-open")},window.addEventListener("click",a)}else document.body.classList.add("is-dropdown-loaded")}}imagesLoaded(e,function(){n()}),window.addEventListener("resize",function(){setTimeout(function(){window.removeEventListener("click",a),r.innerHTML=t,n()},1)})}}(),function(t,n){var i,o,r,a,s,l,c,u;function d(){if(404===this.status)return t.removeEventListener("scroll",m),void t.removeEventListener("resize",h);this.response.querySelectorAll("article.post-card").forEach(function(e){o.appendChild(n.importNode(e,!0))});var e=this.response.querySelector("link[rel=next]");e?i.href=e.href:(t.removeEventListener("scroll",m),t.removeEventListener("resize",h)),u=n.documentElement.scrollHeight,s=a=!1}function e(){var e;s||(l+c<=u-r?a=!1:(s=!0,(e=new t.XMLHttpRequest).responseType="document",e.addEventListener("load",d),e.open("GET",i.href),e.send(null)))}function p(){a||t.requestAnimationFrame(e),a=!0}function m(){l=t.scrollY,p()}function h(){c=t.innerHeight,u=n.documentElement.scrollHeight,p()}n.documentElement.classList.contains("no-infinite-scroll")||(!(i=n.querySelector("link[rel=next]"))||(o=n.querySelector(".post-feed"))&&(s=a=!(r=300),l=t.scrollY,c=t.innerHeight,u=n.documentElement.scrollHeight,t.addEventListener("scroll",m,{passive:!0}),t.addEventListener("resize",h),p()))}(window,document),lightbox(".kg-image-card > .kg-image[width][height], .kg-gallery-image > img");
|
|
//# sourceMappingURL=casper.js.map
|