29 lines
122 KiB
JavaScript
29 lines
122 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){var n;if(e&&t)return-1==(n=(n=this._events=this._events||{})[e]=n[e]||[]).indexOf(t)&&n.push(t),this},t.once=function(e,t){var n;if(e&&t)return this.on(e,t),((n=this._onceEvents=this._onceEvents||{})[e]=n[e]||{})[t]=!0,this},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length)return-1!=(t=e.indexOf(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){var i,o;return this instanceof a?(i="string"==typeof(i=e)?document.querySelectorAll(e):i)?(this.elements=(o=i,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?c.call(o):[o]),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 "+(i||e)):new a(e,t,n)}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,u=((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)}}},{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){e=new i(e,t);this.images.push(e)},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(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,A.timeToIdle&&A.mouseUsed&&!v&&l();for(var t,n,i=(e.target||e.srcElement).getAttribute("class")||"",o=0;o<P.length;o++)(t=P[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 n(){var e=1===A.getNumItemsFn();e!==S&&(D(m,"ui--one-slide",e),S=e)}function a(){D(y,"share-modal--hidden",L)}function o(){if((L=!L)?(s.removeClass(y,"pswp__share-modal--fade-in"),setTimeout(function(){L&&a()},300)):(a(),setTimeout(function(){L||s.addClass(y,"pswp__share-modal--fade-in")},30)),!L){for(var e,t,n,i,o="",r=0;r<A.shareButtons.length;r++)e=A.shareButtons[r],t=A.getImageURLForShare(e),n=A.getPageURLForShare(e),i=A.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>",A.parseShareButtonOut&&(o=A.parseShareButtonOut(e,o));y.children[0].innerHTML=o,y.children[0].onclick=j}}function r(e){for(var t=0;t<A.closeElClasses.length;t++)if(s.hasClass(e,"pswp__"+A.closeElClasses[t]))return!0}function l(){clearTimeout(_),N=0,v&&I.setIdle(!1)}function c(e){(e=(e=e||window.event).relatedTarget||e.toElement)&&"HTML"!==e.nodeName||(clearTimeout(_),_=setTimeout(function(){I.setIdle(!0)},A.timeToIdleOutside))}function u(e){k!==e&&(D(x,"preloader--active",!e),k=e)}function d(e){var t,n=e.vGap;!i.likelyTouchDevice||A.mouseUsed||screen.width>A.fitControlsWidth?(t=A.barsSize,A.captionEl&&"auto"===t.bottom?(g||((g=s.createEl("pswp__caption pswp__caption--fake")).appendChild(s.createEl("pswp__caption__center")),m.insertBefore(g,f),s.addClass(m,"pswp__ui--fit")),A.addCaptionHTMLFn(e,g,!0)?(e=g.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 M(){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<P.length;i++)a=P[i],-1<r.indexOf("pswp__"+a.name)&&(A[a.option]?(s.removeClass(o,"pswp__element--disabled"),a.onInit&&a.onInit(o)):s.addClass(o,"pswp__element--disabled"))}}e(m.children);var o,r,a,t=s.getChildByClass(m,"pswp__top-bar");t&&e(t.children)}var p,m,f,g,t,h,y,b,v,w,x,k,E,S,A,T,C,_,I=this,O=!1,F=!0,L=!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},D=function(e,t,n){s[(n?"add":"remove")+"Class"](e,"pswp__"+t)},j=function(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)),L||o(),1))},N=0,P=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){y=e},onTap:function(){o()}},{name:"button--share",option:"shareEl",onInit:function(e){h=e},onTap:function(){o()}},{name:"button--zoom",option:"zoomEl",onTap:i.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){t=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){x=e}}];I.init=function(){var t;s.extend(i.options,R,!0),A=i.options,m=s.getChildByClass(i.scrollWrap,"pswp__ui"),(w=i.listen)("onVerticalDrag",function(e){F&&e<.95?I.hideControls():!F&&.95<=e&&I.showControls()}),w("onPinchClose",function(e){F&&e<.9?(I.hideControls(),t=!0):t&&!F&&.9<e&&I.showControls()}),w("zoomGestureEnded",function(){(t=!1)&&!F&&I.showControls()}),w("beforeChange",I.update),w("doubleTap",function(e){var t=i.currItem.initialZoomLevel;i.getZoomLevel()!==t?i.zoomTo(t,e,333):i.zoomTo(A.getDoubleTapZoom(!1,i.currItem),e,333)}),w("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)}),w("bindEvents",function(){s.bind(m,"pswpTap click",e),s.bind(i.scrollWrap,"pswpTap",I.onGlobalTap),i.likelyTouchDevice||s.bind(i.scrollWrap,"mouseover",I.onMouseOver)}),w("unbindEvents",function(){L||o(),C&&clearInterval(C),s.unbind(document,"mouseout",c),s.unbind(document,"mousemove",l),s.unbind(m,"pswpTap click",e),s.unbind(i.scrollWrap,"pswpTap",I.onGlobalTap),s.unbind(i.scrollWrap,"mouseover",I.onMouseOver),p&&(s.unbind(document,p.eventK,I.updateFullscreen),p.isFullscreen()&&(A.hideAnimationDuration=0,p.exit()),p=null)}),w("destroy",function(){A.captionEl&&(g&&m.removeChild(g),s.removeClass(f,"pswp__caption--empty")),y&&(y.children[0].onclick=null),s.removeClass(m,"pswp__ui--over-close"),s.addClass(m,"pswp__ui--hidden"),I.setIdle(!1)}),A.showAnimationDuration||s.removeClass(m,"pswp__ui--hidden"),w("initialZoomIn",function(){A.showAnimationDuration&&s.removeClass(m,"pswp__ui--hidden")}),w("initialZoomOut",function(){s.addClass(m,"pswp__ui--hidden")}),w("parseVerticalMargin",d),M(),A.shareEl&&h&&y&&(L=!0),n(),A.timeToIdle&&w("mouseUsed",function(){s.bind(document,"mousemove",l),s.bind(document,"mouseout",c),C=setInterval(function(){2===++N&&I.setIdle(!0)},A.timeToIdle/2)}),A.fullscreenEl&&!s.features.isOldAndroid&&((p=p||I.getFullscreenAPI())?(s.bind(document,p.eventK,I.updateFullscreen),I.updateFullscreen(),s.addClass(i.template,"pswp--supports-fs")):s.removeClass(i.template,"pswp--supports-fs")),A.preloaderEl&&(u(!0),w("beforeChange",function(){clearTimeout(E),E=setTimeout(function(){i.currItem&&i.currItem.loading?i.allowProgressiveImg()&&(!i.currItem.img||i.currItem.img.naturalWidth)||u(!1):u(!0)},A.loadingIndicatorDelay)}),w("imageLoadComplete",function(e,t){i.currItem===t&&u(!0)}))},I.setIdle=function(e){D(m,"ui--idle",v=e)},I.update=function(){O=!(!F||!i.currItem||(I.updateIndexIndicator(),A.captionEl&&(A.addCaptionHTMLFn(i.currItem,f),D(f,"caption--empty",!i.currItem.title)),0)),L||o(),n()},I.updateFullscreen=function(e){e&&setTimeout(function(){i.setScrollOffset(0,s.getScrollY())},50),s[(p.isFullscreen()?"add":"remove")+"Class"](i.template,"pswp--fs")},I.updateIndexIndicator=function(){A.counterEl&&(t.innerHTML=i.getCurrentIndex()+1+A.indexIndicatorSep+A.getNumItemsFn())},I.onGlobalTap=function(e){var t=(e=e||window.event).target||e.srcElement;if(!T)if(e.detail&&"mouse"===e.detail.pointerType)r(t)?i.close():s.hasClass(t,"pswp__img")&&(1===i.getZoomLevel()&&i.getZoomLevel()<=i.currItem.fitRatio?A.clickToCloseNonZoomable&&i.close():i.toggleDesktopZoom(e.detail.releasePoint));else if(A.tapToToggleControls&&(F?I.hideControls():I.showControls()),A.tapToClose&&(s.hasClass(t,"pswp__img")||r(t)))return void i.close()},I.onMouseOver=function(e){e=(e=e||window.event).target||e.srcElement;D(m,"ui--over-close",r(e))},I.hideControls=function(){s.addClass(m,"pswp__ui--hidden"),F=!1},I.showControls=function(){F=!0,O||I.update(),s.removeClass(m,"pswp__ui--hidden")},I.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},I.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 b=A.closeOnScroll,A.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?i.template[this.enterK]():void i.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},e.exit=function(){return A.closeOnScroll=b,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(p,R,t,j){var m={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){m.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){m.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(m.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(m.features)return m.features;var e,t,n=m.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++){for(var i=c[u],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,m.features=o}},f=(m.detectFeatures(),m.features.oldIE&&(m.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)}),this),z=25,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"};m.extend(g,j);function e(){return{x:0,y:0}}function H(e,t){m.extend(f,t.publicMethods),Ze.push(e)}function $(e){var t=D();return t-1<e?e-t:e<0?t+e:e}function r(e,t){return Ke[e]||(Ke[e]=[]),Ke[e].push(t)}function B(e,t,n,i){i===f.currItem.initialZoomLevel?n[e]=f.currItem.initialPosition[e]:(n[e]=Qe(e,i),n[e]>t.min[e]?n[e]=t.min[e]:n[e]<t.max[e]&&(n[e]=t.max[e]))}function q(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 U(e){e&&(Ie||_e||b||Ae)&&(e.preventDefault(),e.stopPropagation())}function Z(){f.setScrollOffset(0,m.getScrollY())}function G(e){var t;"mousedown"===e.type&&0<e.button||(Qt?e.preventDefault():Te&&"mousedown"===e.type||(Ft(e,!0)&&e.preventDefault(),E("pointerDown"),me&&((t=m.arraySearch(gt,e.pointerId,"id"))<0&&(t=gt.length),gt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}),e=(t=zt(e)).length,c=null,ct(),l&&1!==e||(l=Pe=!0,m.bind(window,ee,f),Se=je=Me=Ae=Fe=Ie=Ce=_e=!1,Ne=null,E("firstTouchStart",t),C($e,v),He.x=He.y=0,C(F,t[0]),C(ft,F),ht.x=x.x*Be,yt=[{x:F.x,y:F.y}],ke=xe=S(),it(y,!0),Tt(),Ct()),!u&&1<e&&!b&&!Fe&&(ne=y,u=Ce=!(_e=!1),He.y=He.x=0,C($e,v),C(I,t[0]),C(mt,t[1]),Dt(I,mt,Et),kt.x=Math.abs(Et.x)-v.x,kt.y=Math.abs(Et.y)-v.y,Le=At(I,mt))))}function W(e){var t;e.preventDefault(),me&&-1<(t=m.arraySearch(gt,e.pointerId,"id"))&&((t=gt[t]).x=e.pageX,t.y=e.pageY),l&&(t=zt(e),Ne||Ie||u?c=t:L.x!==x.x*Be?Ne="h":(e=Math.abs(t[0].x-F.x)-Math.abs(t[0].y-F.y),Math.abs(e)>=pt&&(Ne=0<e?"h":"v",c=t)))}function K(e){if(s.isOldAndroid){if(Te&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Te),Te=setTimeout(function(){Te=0},600))}var t;E("pointerUp"),Ft(e,!1)&&e.preventDefault(),me&&-1<(r=m.arraySearch(gt,e.pointerId,"id"))&&(t=gt.splice(r,1)[0],navigator.msPointerEnabled&&(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type)||(t.type=e.pointerType||"mouse"));var n=(r=zt(e)).length;if(2===(n="mouseup"===e.type?0:n))return!(c=null);1===n&&C(ft,r[0]),0!==n||Ne||b||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),E("touchRelease",e,t));var i,o,r=-1;if(0===n&&(l=!1,m.unbind(window,ee,f),Tt(),u?r=0:-1!==xt&&(r=S()-xt)),xt=1===n?S():-1,e=-1!==r&&r<150?"zoom":"swipe",u&&n<2&&(u=!1,1===n&&(e="zoomPointerUp"),E("zoomGestureEnded")),c=null,Ie||_e||b||Ae)if(ct(),(Ee=Ee||Bt()).calculateSwipeSpeed("x"),Ae)Pt()<g.verticalDragRange?f.close():(i=v.y,o=Re,ut("verticalDrag",0,1,300,m.easing.cubic.out,function(e){v.y=(f.currItem.initialPosition.y-i)*e+i,A((1-o)*e+o),T()}),E("onVerticalDrag",1));else{if((Fe||b)&&0===n){if(Ut(e,Ee))return;e="zoomPointerUp"}if(!b)return"swipe"!==e?void Gt():void(!Fe&&y>f.currItem.fitRatio&&qt(Ee))}}var Y,X,V,h,J,Q,ee,te,i,y,ne,ie,oe,re,ae,a,se,le,ce,ue,de,pe,me,o,fe,ge,he,ye,be,ve,s,we,xe,ke,Ee,Se,Ae,Te,l,Ce,_e,Ie,Oe,Fe,c,u,Le,d,De,b,Ne,Pe,Me,Re,je,ze,He=e(),$e=e(),v=e(),w={},Be=0,qe={},x=e(),k=0,Ue=!0,Ze=[],Ge={},We=!1,Ke={},E=function(e){var t=Ke[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)}},S=function(){return(new Date).getTime()},A=function(e){Re=e,f.bg.style.opacity=e*g.bgOpacity},Ye=function(e,t,n,i,o){(!We||o&&o!==f.currItem)&&(i/=(o||f.currItem).fitRatio),e[pe]=ie+t+"px, "+n+"px"+oe+" scale("+i+")"},T=function(e){De&&(e&&(y>f.currItem.fitRatio?We||(cn(f.currItem,!1,!0),We=!0):We&&(cn(f.currItem),We=!1)),Ye(De,v.x,v.y,y))},Xe=function(e){e.container&&Ye(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Ve=function(e,t){t[pe]=ie+e+"px, 0px"+oe},Je=function(e,t){var n;!g.loop&&t&&(t=h+(x.x*Be-e)/x.x,n=Math.round(e-L.x),t<0&&0<n||t>=D()-1&&n<0)&&(e=L.x+n*g.mainScrollEndFriction),L.x=e,Ve(e,J)},Qe=function(e,t){var n=kt[e]-qe[e];return $e[e]+He[e]+n-t/ne*n},C=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},et=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},tt=null,nt=function(){tt&&(m.unbind(document,"mousemove",nt),m.addClass(p,"pswp--has_mouse"),g.mouseUsed=!0,E("mouseUsed")),tt=setTimeout(function(){tt=null},100)},it=function(e,t){e=sn(f.currItem,w,e);return t&&(d=e),e},ot=function(e){return(e=e||f.currItem).initialZoomLevel},rt=function(e){return 0<(e=e||f.currItem).w?g.maxSpreadZoom:1},_={},at=0,st=function(e){_[e]&&(_[e].raf&&ge(_[e].raf),at--,delete _[e])},lt=function(e){_[e]&&st(e),_[e]||(at++,_[e]={})},ct=function(){for(var e in _)_.hasOwnProperty(e)&&st(e)},ut=function(e,t,n,i,o,r,a){function s(){_[e]&&(l=S()-c,i<=l?(st(e),r(n),a&&a()):(r((n-t)*o(l/i)+t),_[e].raf=fe(s)))}var l,c=S();lt(e);s()},j={shout:E,listen:r,viewportSize:w,options:g,isMainScrollAnimating:function(){return b},getZoomLevel:function(){return y},getCurrentIndex:function(){return h},isDragging:function(){return l},isZooming:function(){return u},setScrollOffset:function(e,t){qe.x=e,ve=qe.y=t,E("updateScrollOffset",qe)},applyZoomPan:function(e,t,n,i){v.x=t,v.y=n,y=e,T(i)},init:function(){if(!Y&&!X){f.framework=m,f.template=p,f.bg=m.getChildByClass(p,"pswp__bg"),he=p.className,Y=!0,s=m.detectFeatures(),fe=s.raf,ge=s.caf,pe=s.transform,be=s.oldIE,f.scrollWrap=m.getChildByClass(p,"pswp__scroll-wrap"),f.container=m.getChildByClass(f.scrollWrap,"pswp__container"),J=f.container.style,f.itemHolders=a=[{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}],a[0].el.style.display=a[2].el.style.display="none",pe?(t=s.perspective&&!o,ie="translate"+(t?"3d(":"("),oe=s.perspective?", 0px)":")"):(pe="left",m.addClass(p,"pswp--ie"),Ve=function(e,t){t.left=e+"px"},Xe=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"},T=function(){var e,t,n,i;De&&(e=De,n=(i=1<(t=f.currItem).fitRatio?1:t.fitRatio)*t.w,i=i*t.h,e.width=n+"px",e.height=i+"px",e.left=v.x+"px",e.top=v.y+"px")}),i={resize:f.updateSize,orientationchange:function(){clearTimeout(we),we=setTimeout(function(){w.x!==f.scrollWrap.clientWidth&&f.updateSize()},500)},scroll:Z,keydown:q,click:U};var e,t=s.isOldIOSPhone||s.isOldAndroid||s.isMobileOpera;for(s.animationName&&s.transform&&!t||(g.showAnimationDuration=g.hideAnimationDuration=0),e=0;e<Ze.length;e++)f["init"+Ze[e]]();R&&(f.ui=new R(f,m)).init(),E("firstUpdate"),h=h||g.index||0,(isNaN(h)||h<0||h>=D())&&(h=0),f.currItem=en(h),(s.isOldIOSPhone||s.isOldAndroid)&&(Ue=!1),p.setAttribute("aria-hidden","false"),g.modal&&(Ue?p.style.position="fixed":(p.style.position="absolute",p.style.top=m.getScrollY()+"px")),void 0===ve&&(E("initialLayout"),ve=ye=m.getScrollY());var n="pswp--open ";for(g.mainClass&&(n+=g.mainClass+" "),g.showHideOpacity&&(n+="pswp--animate_opacity "),n=(n=(n+=o?"pswp--touch":"pswp--notouch")+(s.animationName?" pswp--css_animation":""))+(s.svg?" pswp--svg":""),m.addClass(p,n),f.updateSize(),Q=-1,k=null,e=0;e<3;e++)Ve((e+Q)*x.x,a[e].el.style);be||m.bind(f.scrollWrap,te,f),r("initialZoomInEnd",function(){f.setContent(a[0],h-1),f.setContent(a[2],h+1),a[0].el.style.display=a[2].el.style.display="block",g.focus&&p.focus(),m.bind(document,"keydown",f),s.transform&&m.bind(f.scrollWrap,"click",f),g.mouseUsed||m.bind(document,"mousemove",nt),m.bind(window,"resize scroll orientationchange",f),E("bindEvents")}),f.setContent(a[1],h),f.updateCurrItem(),E("afterInit"),Ue||(re=setInterval(function(){at||l||u||y!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),m.addClass(p,"pswp--visible")}var t},close:function(){Y&&(X=!(Y=!1),E("close"),m.unbind(window,"resize scroll orientationchange",f),m.unbind(window,"scroll",i.scroll),m.unbind(document,"keydown",f),m.unbind(document,"mousemove",nt),s.transform&&m.unbind(f.scrollWrap,"click",f),l&&m.unbind(window,ee,f),clearTimeout(we),E("unbindEvents"),tn(f.currItem,null,!0,f.destroy))},destroy:function(){E("destroy"),Xt&&clearTimeout(Xt),p.setAttribute("aria-hidden","true"),p.className=he,re&&clearInterval(re),m.unbind(f.scrollWrap,te,f),m.unbind(window,"scroll",f),Tt(),ct(),Ke=null},panTo:function(e,t,n){n||(e>d.min.x?e=d.min.x:e<d.max.x&&(e=d.max.x),t>d.min.y?t=d.min.y:t<d.max.y&&(t=d.max.y)),v.x=e,v.y=t,T()},handleEvent:function(e){e=e||window.event,i[e.type]&&i[e.type](e)},goTo:function(e){var t=(e=$(e))-h;k=t,h=e,f.currItem=en(h),Be-=t,Je(x.x*Be),ct(),b=!1,f.updateCurrItem()},next:function(){f.goTo(h+1)},prev:function(){f.goTo(h-1)},updateCurrZoomItem:function(e){var t;e&&E("beforeChange",0),De=a[1].el.children.length&&(t=a[1].el.children[0],m.hasClass(t,"pswp__zoom-wrap"))?t.style:null,d=f.currItem.bounds,ne=y=f.currItem.initialZoomLevel,v.x=d.center.x,v.y=d.center.y,e&&E("afterChange")},invalidateCurrItems:function(){ae=!0;for(var e=0;e<3;e++)a[e].item&&(a[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==k){var t,n=Math.abs(k);if(!(e&&n<2)){f.currItem=en(h),We=!1,E("beforeChange",k),3<=n&&(Q+=k+(0<k?-3:3),n=3);for(var i=0;i<n;i++)0<k?(t=a.shift(),a[2]=t,Ve((++Q+2)*x.x,t.el.style),f.setContent(t,h-n+i+1+1)):(t=a.pop(),a.unshift(t),Ve(--Q*x.x,t.el.style),f.setContent(t,h+n-i-1-1));De&&1===Math.abs(k)&&(e=en(se)).initialZoomLevel!==y&&(sn(e,w),cn(e),Xe(e)),k=0,f.updateCurrZoomItem(),se=h,E("afterChange")}}},updateSize:function(e){if(!Ue&&g.modal){var t=m.getScrollY();if(ve!==t&&(p.style.top=t+"px",ve=t),!e&&Ge.x===window.innerWidth&&Ge.y===window.innerHeight)return;Ge.x=window.innerWidth,Ge.y=window.innerHeight,p.style.height=Ge.y+"px"}if(w.x=f.scrollWrap.clientWidth,w.y=f.scrollWrap.clientHeight,Z(),x.x=w.x+Math.round(w.x*g.spacing),x.y=w.y,Je(x.x*Be),E("beforeResize"),void 0!==Q){for(var n,i,o,r=0;r<3;r++)n=a[r],Ve((r+Q)*x.x,n.el.style),o=h+r-1,g.loop&&2<D()&&(o=$(o)),(i=en(o))&&(ae||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&&(sn(i,w),cn(i),Xe(i));ae=!1}ne=y=f.currItem.initialZoomLevel,(d=f.currItem.bounds)&&(v.x=d.center.x,v.y=d.center.y,T(!0)),E("resize")},zoomTo:function(t,e,n,i,o){e&&(ne=y,kt.x=Math.abs(e.x)-v.x,kt.y=Math.abs(e.y)-v.y,C($e,v));function r(e){1===e?(y=t,v.x=a.x,v.y=a.y):(y=(t-s)*e+s,v.x=(a.x-l.x)*e+l.x,v.y=(a.y-l.y)*e+l.y),o&&o(e),T(1===e)}var e=it(t,!1),a={},s=(B("x",e,a,t),B("y",e,a,t),y),l={x:v.x,y:v.y};et(a);n?ut("customZoomTo",0,1,n,i||m.easing.sine.inOut,r):r(1)}},dt=30,pt=10,I={},mt={},O={},F={},ft={},gt=[],ht={},yt=[],bt={},vt=0,wt=e(),xt=0,L=e(),kt=e(),Et=e(),St=function(e,t){return e.x===t.x&&e.y===t.y},At=function(e,t){return bt.x=Math.abs(e.x-t.x),bt.y=Math.abs(e.y-t.y),Math.sqrt(bt.x*bt.x+bt.y*bt.y)},Tt=function(){Oe&&(ge(Oe),Oe=null)},Ct=function(){l&&(Oe=fe(Ct),$t())},_t=function(){return!("fit"===g.scaleMode&&y===f.currItem.initialZoomLevel)},It=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:It(e.parentNode,t))},Ot={},Ft=function(e,t){return Ot.prevent=!It(e.target,g.isClickableElement),E("preventDragEvent",e,t,Ot),Ot.prevent},Lt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Dt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},Nt=function(e,t,n){var i;50<e-ke&&((i=2<yt.length?yt.shift():{}).x=t,i.y=n,yt.push(i),ke=e)},Pt=function(){var e=v.y-f.currItem.initialPosition.y;return 1-Math.abs(e/(w.y/2))},Mt={},Rt={},jt=[],zt=function(e){for(;0<jt.length;)jt.pop();return me?(ze=0,gt.forEach(function(e){0===ze?jt[0]=e:1===ze&&(jt[1]=e),ze++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(jt[0]=Lt(e.touches[0],Mt),1<e.touches.length)&&(jt[1]=Lt(e.touches[1],Rt)):(Mt.x=e.pageX,Mt.y=e.pageY,Mt.id="",jt[0]=Mt),jt},Ht=function(e,t){var n,i,o,r=v[e]+t[e],a=0<t[e],s=L.x+t.x,l=L.x-ht.x,c=r>d.min[e]||r<d.max[e]?g.panEndFriction:1,r=v[e]+t[e]*c;return!g.allowPanToNext&&y!==f.currItem.initialZoomLevel||(De?"h"!==Ne||"x"!==e||_e||(a?(r>d.min[e]&&(c=g.panEndFriction,d.min[e],n=d.min[e]-$e[e]),(n<=0||l<0)&&1<D()?(o=s,l<0&&s>ht.x&&(o=ht.x)):d.min.x!==d.max.x&&(i=r)):(r<d.max[e]&&(c=g.panEndFriction,d.max[e],n=$e[e]-d.max[e]),(n<=0||0<l)&&1<D()?(o=s,0<l&&s<ht.x&&(o=ht.x)):d.min.x!==d.max.x&&(i=r))):o=s,"x"!==e)?void(b||Fe||y>f.currItem.fitRatio&&(v[e]+=t[e]*c)):(void 0!==o&&(Je(o,!0),Fe=o!==ht.x),d.min.x!==d.max.x&&(void 0!==i?v.x=i:Fe||(v.x+=t.x*c)),void 0!==o)},$t=function(){var e,t,n,i,o,r;c&&0!==(e=c.length)&&(C(I,c[0]),O.x=I.x-F.x,O.y=I.y-F.y,u&&1<e?(F.x=I.x,F.y=I.y,!O.x&&!O.y&&St(c[1],mt)||(C(mt,c[1]),_e||(_e=!0,E("zoomGestureStarted")),e=At(I,mt),(t=Zt(e))>f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(je=!0),n=1,i=ot(),o=rt(),t<i?g.pinchToClose&&!je&&ne<=f.currItem.initialZoomLevel?(A(r=1-(i-t)/(i/1.2)),E("onPinchClose",r),Me=!0):t=i-(n=1<(n=(i-t)/i)?1:n)*(i/3):o<t&&(t=o+(n=1<(n=(t-o)/(6*i))?1:n)*i),n<0&&(n=0),Dt(I,mt,wt),He.x+=wt.x-Et.x,He.y+=wt.y-Et.y,C(Et,wt),v.x=Qe("x",t),v.y=Qe("y",t),Se=y<t,y=t,T())):Ne&&(Pe&&(Pe=!1,Math.abs(O.x)>=pt&&(O.x-=c[0].x-ft.x),Math.abs(O.y)>=pt)&&(O.y-=c[0].y-ft.y),F.x=I.x,F.y=I.y,0===O.x&&0===O.y||("v"===Ne&&g.closeOnVerticalDrag&&!_t()?(He.y+=O.y,v.y+=O.y,r=Pt(),Ae=!0,E("onVerticalDrag",r),A(r),T()):(Nt(S(),I.x,I.y),Ie=!0,d=f.currItem.bounds,Ht("x",O)||(Ht("y",O),et(v),T())))))},Bt=function(){var t,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=(1<yt.length?(t=S()-ke+50,yt[yt.length-2]):(t=S()-xe,ft))[e],i.lastFlickOffset[e]=F[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]||(v[t]>d.min[t]?i.backAnimDestination[t]=d.min[t]:v[t]<d.max[t]&&(i.backAnimDestination[t]=d.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,ut("bounceZoomPan"+t,v[t],i.backAnimDestination[t],e||300,m.easing.sine.out,function(e){v[t]=e,T()})))},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,v[e]+=i.distanceOffset[e])},panAnimLoop:function(){_.zoomPan&&(_.zoomPan.raf=fe(i.panAnimLoop),i.now=S(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),T(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05)&&i.speedDecelerationRatioAbs.y<.05&&(v.x=Math.round(v.x),v.y=Math.round(v.y),T(),st("zoomPan"))}};return i},qt=function(e){return e.calculateSwipeSpeed("y"),d=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):(lt("zoomPan"),e.lastNow=S(),void e.panAnimLoop())},Ut=function(e,t){var n,i,o;b||(vt=h),"swipe"===e&&(e=F.x-ft.x,r=t.lastFlickDist.x<10,dt<e&&(r||20<t.lastFlickOffset.x)?i=-1:e<-dt&&(r||t.lastFlickOffset.x<-20)&&(i=1)),i&&((h+=i)<0?(h=g.loop?D()-1:0,o=!0):h>=D()&&(h=g.loop?0:D()-1,o=!0),o&&!g.loop||(k+=i,Be-=i,n=!0));var e=x.x*Be,r=Math.abs(e-L.x),a=n||e>L.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 vt===h&&(n=!1),b=!0,E("mainScrollAnimStart"),ut("mainScroll",L.x,e,a,m.easing.cubic.out,Je,function(){ct(),b=!1,vt=-1,!n&&vt===h||f.updateCurrItem(),E("mainScrollAnimComplete")}),n&&f.updateCurrItem(!0),n},Zt=function(e){return 1/Le*e*ne},Gt=function(){var e=y,t=ot(),n=rt();y<t?e=t:n<y&&(e=n);var i,o=Re;return Me&&!Se&&!je&&y<t?f.close():(Me&&(i=function(e){A((1-o)*e+o)}),f.zoomTo(e,0,200,m.easing.cubic.out,i)),!0};H("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,i,o){le=e+t,ce=e+n,ue=e+i,de=o?e+o:""}(me=s.pointerEvent)&&s.touch&&(s.touch=!1),me?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):s.touch?(e("touch","start","move","end","cancel"),o=!0):e("mouse","down","move","up"),ee=ce+" "+ue+" "+de,te=le,me&&!o&&(o=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),f.likelyTouchDevice=o,i[le]=G,i[ce]=W,i[ue]=K,de&&(i[de]=i[ue]),s.touch&&(te+=" mousedown",ee+=" mousemove mouseup",i.mousedown=i[le],i.mousemove=i[ce],i.mouseup=i[ue]),o||(g.allowPanToNext=!1)}}});function Wt(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=m.createEl("pswp__img","img");n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src}function Kt(e,t){return e.src&&e.loadError&&e.container&&(t&&(e.container.innerHTML=""),e.container.innerHTML=g.errorMsg.replace("%url%",e.src),1)}function Yt(){if(nn.length){for(var e,t=0;t<nn.length;t++)(e=nn[t]).holder.index===e.index&&ln(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);nn=[]}}var Xt,Vt,Jt,Qt,en,D,tn=function(r,e,a,t){function s(){st("initialZoom"),a?(f.template.removeAttribute("style"),f.bg.removeAttribute("style")):(A(1),e&&(e.style.display="block"),m.addClass(p,"pswp--animated-in"),E("initialZoom"+(a?"OutEnd":"InEnd"))),t&&t(),Qt=!1}Xt&&clearTimeout(Xt),Jt=Qt=!0,r.initialLayout?(l=r.initialLayout,r.initialLayout=null):l=g.getThumbBoundsFn&&g.getThumbBoundsFn(h);var l,c,u,d=a?g.hideAnimationDuration:g.showAnimationDuration;d&&l&&void 0!==l.x?(c=V,u=!f.currItem.src||f.currItem.loadError||g.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),a||(y=l.w/r.w,v.x=l.x,v.y=l.y-ye,f[u?"template":"bg"].style.opacity=.001,T()),lt("initialZoom"),a&&!c&&m.removeClass(p,"pswp--animated-in"),u&&(a?m[(c?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){m.addClass(p,"pswp--animate_opacity")},30)),Xt=setTimeout(function(){var t,n,i,o,e;E("initialZoom"+(a?"Out":"In")),a?(t=l.w/r.w,n={x:v.x,y:v.y},i=y,o=Re,e=function(e){1===e?(y=t,v.x=l.x,v.y=l.y-ve):(y=(t-i)*e+i,v.x=(l.x-n.x)*e+n.x,v.y=(l.y-ve-n.y)*e+n.y),T(),u?p.style.opacity=1-e:A(o-e*o)},c?ut("initialZoom",0,1,d,m.easing.cubic.out,e,s):(e(1),Xt=setTimeout(s,d+20))):(y=r.initialZoomLevel,C(v,r.initialPosition),T(),A(1),u?p.style.opacity=1:A(1),Xt=setTimeout(s,d+20))},a?25:90)):(E("initialZoom"+(a?"Out":"In")),y=r.initialZoomLevel,C(v,r.initialPosition),T(),p.style.opacity=a?0:1,A(1),d?setTimeout(function(){s()},d):s())},N={},nn=[],on={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 Vt.length}},rn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},an=function(e,t,n){var i=e.bounds;i.center.x=Math.round((N.x-t)/2),i.center.y=Math.round((N.y-n)/2)+e.vGap.top,i.max.x=t>N.x?Math.round(N.x-t):i.center.x,i.max.y=n>N.y?Math.round(N.y-n)+e.vGap.top:i.center.y,i.min.x=t>N.x?0:i.center.x,i.min.y=n>N.y?e.vGap.top:i.center.y},sn=function(e,t,n){var i,o;return e.src&&!e.loadError?((i=!n)&&(e.vGap||(e.vGap={top:0,bottom:0}),E("parseVerticalMargin",e)),N.x=t.x,N.y=t.y-e.vGap.top-e.vGap.bottom,i&&(t=N.x/e.w,o=N.y/e.h,e.fitRatio=t<o?t:o,"orig"===(t=g.scaleMode)?n=1:"fit"===t&&(n=e.fitRatio),e.initialZoomLevel=n=1<n?1:n,e.bounds||(e.bounds=rn())),n?(an(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0):(e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=rn(),e.initialPosition=e.bounds.center,e.bounds)},ln=function(e,t,n,i,o,r){t.loadError||i&&(t.imageAppended=!0,cn(t,i,t===f.currItem&&We),n.appendChild(i),r)&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500)},cn=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")};H("Controller",{publicMethods:{lazyLoadItem:function(e){e=$(e);var t=en(e);t&&(!t.loaded&&!t.loading||ae)&&(E("gettingData",e,t),t.src)&&Wt(t)},initController:function(){m.extend(g,on,!0),f.items=Vt=t,en=f.getItemAt,D=g.getNumItemsFn,g.loop,D()<3&&(g.loop=!1),r("beforeChange",function(e){for(var t=g.preload,n=null===e||0<=e,i=Math.min(t[0],D()),o=Math.min(t[1],D()),r=1;r<=(n?o:i);r++)f.lazyLoadItem(h+r);for(r=1;r<=(n?i:o);r++)f.lazyLoadItem(h-r)}),r("initialLayout",function(){f.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(h)}),r("mainScrollAnimComplete",Yt),r("initialZoomInEnd",Yt),r("destroy",function(){for(var e,t=0;t<Vt.length;t++)(e=Vt[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);nn=null})},getItemAt:function(e){return 0<=e&&void 0!==Vt[e]&&Vt[e]},allowProgressiveImg:function(){return g.forceProgressiveLoading||!o||g.mouseUsed||1200<screen.width},setContent:function(t,n){g.loop&&(n=$(n));var e=f.getItemAt(t.index);e&&(e.container=null);var i,o,r,e=f.getItemAt(n);e?(E("gettingData",n,e),t.index=n,o=(t.item=e).container=m.createEl("pswp__zoom-wrap"),!e.src&&e.html&&(e.html.tagName?o.appendChild(e.html):o.innerHTML=e.html),Kt(e),sn(e,w),!e.src||e.loadError||e.loaded?e.src&&!e.loadError&&((i=m.createEl("pswp__img","img")).style.opacity=1,i.src=e.src,cn(e,i),ln(n,e,o,i,!0)):(e.loadComplete=function(e){if(Y){if(t&&t.index===n){if(Kt(e,!0))return e.loadComplete=e.img=null,sn(e,w),Xe(e),void(t.index===h&&f.updateCurrZoomItem());e.imageAppended?!Qt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):s.transform&&(b||Qt)?nn.push({item:e,baseDiv:o,img:e.img,index:n,holder:t,clearPlaceholder:!0}):ln(n,e,o,e.img,b||Qt,!0)}e.loadComplete=null,e.img=null,E("imageLoadComplete",n,e)}},m.features.transform&&(r="pswp__img pswp__img--placeholder",r+=e.msrc?"":" pswp__img--placeholder--blank",r=m.createEl(r,e.msrc?"img":""),e.msrc&&(r.src=e.msrc),cn(e,r),o.appendChild(r),e.placeholder=r),e.loading||Wt(e),f.allowProgressiveImg()&&(!Jt&&s.transform?nn.push({item:e,baseDiv:o,img:e.img,index:n,holder:t}):ln(n,e,o,e.img,!0,!0))),Jt||n!==h?Xe(e):(De=o.style,tn(e,i||e.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 un(e,t,n){var i=document.createEvent("CustomEvent"),t={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,t),e.target.dispatchEvent(i)}var dn,P,pn={};H("Tap",{publicMethods:{initTap:function(){r("firstTouchStart",f.onTapStart),r("touchRelease",f.onTapRelease),r("destroy",function(){pn={},dn=null})},onTapStart:function(e){1<e.length&&(clearTimeout(dn),dn=null)},onTapRelease:function(e,t){var n,i,o;!t||Ie||Ce||at||(n=t,dn&&(clearTimeout(dn),dn=null,i=n,o=pn,Math.abs(i.x-o.x)<z)&&Math.abs(i.y-o.y)<z?E("doubleTap",n):"mouse"===t.type?un(e,t,"mouse"):"BUTTON"===e.target.tagName.toUpperCase()||m.hasClass(e.target,"pswp__single-tap")?un(e,t):(C(pn,n),dn=setTimeout(function(){un(e,t),dn=null},300)))}}}),H("DesktopZoom",{publicMethods:{initDesktopZoom:function(){be||(o?r("mouseUsed",function(){f.setupDesktopZoom()}):f.setupDesktopZoom(!0))},setupDesktopZoom:function(e){P={};var t="wheel mousewheel DOMMouseScroll";r("bindEvents",function(){m.bind(p,t,f.handleMouseWheel)}),r("unbindEvents",function(){P&&m.unbind(p,t,f.handleMouseWheel)}),f.mouseZoomedIn=!1;function n(){f.mouseZoomedIn&&(m.removeClass(p,"pswp--zoomed-in"),f.mouseZoomedIn=!1),y<1?m.addClass(p,"pswp--zoom-allowed"):m.removeClass(p,"pswp--zoom-allowed"),o()}var i,o=function(){i&&(m.removeClass(p,"pswp--dragging"),i=!1)};r("resize",n),r("afterChange",n),r("pointerDown",function(){f.mouseZoomedIn&&(i=!0,m.addClass(p,"pswp--dragging"))}),r("pointerUp",o),e||n()},handleMouseWheel:function(e){if(y<=f.currItem.fitRatio)return g.modal&&(!g.closeOnScroll||at||l?e.preventDefault():pe&&2<Math.abs(e.deltaY)&&(V=!0,f.close())),!0;if(e.stopPropagation(),P.x=0,"deltaX"in e)1===e.deltaMode?(P.x=18*e.deltaX,P.y=18*e.deltaY):(P.x=e.deltaX,P.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(P.x=-.16*e.wheelDeltaX),e.wheelDeltaY?P.y=-.16*e.wheelDeltaY:P.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;P.y=e.detail}it(y,!0);var t=v.x-P.x,n=v.y-P.y;(g.modal||t<=d.min.x&&t>=d.max.x&&n<=d.min.y&&n>=d.max.y)&&e.preventDefault(),f.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:w.x/2+qe.x,y:w.y/2+qe.y};var t=g.getDoubleTapZoom(!0,f.currItem),n=y===t;f.mouseZoomedIn=!n,f.zoomTo(n?f.currItem.initialZoomLevel:t,e,333),m[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function mn(){gn&&clearTimeout(gn),yn&&clearTimeout(yn)}function fn(){var e=Tn(),t={};if(!(e.length<5)){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<Vt.length;r++)if(Vt[r].pid===o){t.pid=r;break}}else t.pid=parseInt(t.pid,10)-1;t.pid<0&&(t.pid=0)}return t}var gn,hn,yn,bn,vn,wn,n,xn,kn,En,M,Sn,An={history:!0,galleryUID:1},Tn=function(){return M.hash.substring(1)},Cn=function(){var e,t;yn&&clearTimeout(yn),at||l?yn=setTimeout(Cn,500):(bn?clearTimeout(hn):bn=!0,t=h+1,(e=en(h)).hasOwnProperty("pid")&&(t=e.pid),e=n+"&gid="+g.galleryUID+"&pid="+t,xn||-1===M.hash.indexOf(e)&&(En=!0),t=M.href.split("#")[0]+"#"+e,Sn?"#"+e!==window.location.hash&&history[xn?"replaceState":"pushState"]("",document.title,t):xn?M.replace(t):M.hash=e,xn=!0,hn=setTimeout(function(){bn=!1},60))};H("History",{publicMethods:{initHistory:function(){var e,t;m.extend(g,An,!0),g.history&&(M=window.location,xn=kn=En=!1,n=Tn(),Sn="pushState"in history,-1<n.indexOf("gid=")&&(n=(n=n.split("&gid=")[0]).split("?gid=")[0]),r("afterChange",f.updateURL),r("unbindEvents",function(){m.unbind(window,"hashchange",f.onHashChange)}),e=function(){wn=!0,kn||(En?history.back():n?M.hash=n:Sn?history.pushState("",document.title,M.pathname+M.search):M.hash=""),mn()},r("unbindEvents",function(){V&&e()}),r("destroy",function(){wn||e()}),r("firstUpdate",function(){h=fn().pid}),-1<(t=n.indexOf("pid="))&&"&"===(n=n.substring(0,t)).slice(-1)&&(n=n.slice(0,-1)),setTimeout(function(){Y&&m.bind(window,"hashchange",f.onHashChange)},40))},onHashChange:function(){return Tn()===n?(kn=!0,void f.close()):void(bn||(vn=!0,f.goTo(fn().pid),vn=!1))},updateURL:function(){mn(),vn||(xn?gn=setTimeout(Cn,800):Cn())}}}),m.extend(f,j)}});var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(l){var e,n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,i={},O={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof F?new F(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||{},O.util.type(e)){case"Object":if(t=O.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=O.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:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n,i=O.util.clone(O.languages[e]);for(n in t)i[n]=t[n];return i},insertBefore:function(n,e,t,i){var o,r=(i=i||O.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,O.languages.DFS(O.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=O.util.objId;for(r in t)t.hasOwnProperty(r)&&(n.call(t,r,t[r],i||r),a=t[r],"Object"!==(s=O.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){O.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'};O.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),O.hooks.run("before-all-elements-highlight",i);for(var o,r=0;o=i.elements[r++];)O.highlightElement(o,!0===t,i.callback)},highlightElement:function(e,t,n){var i=O.util.getLanguage(e),o=O.languages[i],r=(O.util.setLanguage(e,i),e.parentElement),a=(r&&"pre"===r.nodeName.toLowerCase()&&O.util.setLanguage(r,i),{element:e,language:i,grammar:o,code:e.textContent});function s(e){a.highlightedCode=e,O.hooks.run("before-insert",a),a.element.innerHTML=a.highlightedCode,O.hooks.run("after-highlight",a),O.hooks.run("complete",a),n&&n.call(a.element)}O.hooks.run("before-sanity-check",a),(r=a.element.parentElement)&&"pre"===r.nodeName.toLowerCase()&&!r.hasAttribute("tabindex")&&r.setAttribute("tabindex","0"),a.code?(O.hooks.run("before-highlight",a),a.grammar?t&&l.Worker?((i=new Worker(O.filename)).onmessage=function(e){s(e.data)},i.postMessage(JSON.stringify({language:a.language,code:a.code,immediateClose:!0}))):s(O.highlight(a.code,a.grammar,a.language)):s(O.util.encode(a.code))):(O.hooks.run("complete",a),n&&n.call(a.element))},highlight:function(e,t,n){e={code:e,grammar:t,language:n};if(O.hooks.run("before-tokenize",e),e.grammar)return e.tokens=O.tokenize(e.code,e.grammar),O.hooks.run("after-tokenize",e),F.stringify(O.util.encode(e.tokens),e.language);throw new Error('The language "'+e.language+'" has no grammar.')},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}for(var o=new c,r=(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,f=!!d.greedy,g=d.alias;f&&!d.pattern.global&&(u=d.pattern.toString().match(/[imsuy]*$/)[0],d.pattern=RegExp(d.pattern.source,u+"g"));for(var h=d.pattern||d,y=o.next,b=r;y!==n.tail&&!(a&&b>=a.reach);b+=y.value.length,y=y.next){var v=y.value;if(n.length>t.length)return;if(!(v instanceof F)){var w,x=1;if(f){if(!(w=L(h,b,t,m))||w.index>=t.length)break;var k=w.index,E=w.index+w[0].length,S=b;for(S+=y.value.length;S<=k;)S+=(y=y.next).value.length;if(b=S-=y.value.length,y.value instanceof F)continue;for(var A=y;A!==n.tail&&(S<E||"string"==typeof A.value);A=A.next)x++,S+=A.value.length;x--,v=t.slice(b,S),w.index-=b}else if(!(w=L(h,0,v,m)))continue;k=w.index;var T=w[0],C=v.slice(0,k),_=v.slice(k+T.length),v=b+v.length,I=(a&&v>a.reach&&(a.reach=v),y.prev);C&&(I=D(n,I,C),b+=C.length),N(n,I,x),y=D(n,I,new F(s,p?O.tokenize(T,p):T,g,T)),_&&D(n,y,_),1<x&&(C={cause:s+","+c,reach:v},e(t,n,i,y.prev,b,C),a)&&C.reach>a.reach&&(a.reach=C.reach)}}}}}(e,o,t,o.head,0),o),a=[],s=r.head.next;s!==r.tail;)a.push(s.value),s=s.next;return a},hooks:{all:{},add:function(e,t){var n=O.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=O.hooks.all[e];if(n&&n.length)for(var i,o=0;i=n[o++];)i(t)}},Token:F};function F(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function L(e,t,n,i){e.lastIndex=t;t=e.exec(n);return t&&i&&t[1]&&(e=t[1].length,t.index+=e,t[0]=t[0].slice(e)),t}function c(){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 N(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}return(l.Prism=O,F.stringify=function t(e,n){if("string"==typeof e)return e;var i;if(Array.isArray(e))return i="",e.forEach(function(e){i+=t(e,n)}),i;var o,r={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},e=e.alias,a=(e&&(Array.isArray(e)?Array.prototype.push.apply(r.classes,e):r.classes.push(e)),O.hooks.run("wrap",r),"");for(o in r.attributes)a+=" "+o+'="'+(r.attributes[o]||"").replace(/"/g,""")+'"';return"<"+r.tag+' class="'+r.classes.join(" ")+'"'+a+">"+r.content+"</"+r.tag+">"},l.document)?((i=O.util.currentScript())&&(O.filename=i.src,i.hasAttribute("data-manual"))&&(O.manual=!0),O.manual||("loading"===(e=document.readyState)||"interactive"===e&&i&&i.defer?document.addEventListener("DOMContentLoaded",o):window.requestAnimationFrame?window.requestAnimationFrame(o):window.setTimeout(o,16))):l.addEventListener&&!O.disableWorkerMessageHandler&&l.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,n=e.code,e=e.immediateClose;l.postMessage(O.highlight(n,O.languages[t],t)),e&&l.close()},!1),O;function o(){O.manual||O.highlightAll()}}(_self);function dropdown(){const i=window.matchMedia("(max-width: 767px)"),o=document.querySelector(".gh-navigation"),r=o.querySelector(".gh-navigation-menu"),a=r?.querySelector(".nav");if(a){const e=document.querySelector(".gh-navigation-logo"),t=a.innerHTML;i.matches&&a.querySelectorAll("li").forEach(function(e,t){e.style.transitionDelay=.03*(t+1)+"s"});const n=function(){if(!i.matches){for(var e=[];a.offsetWidth+64>r.offsetWidth&&a.lastElementChild;)e.unshift(a.lastElementChild),a.lastElementChild.remove();if(e.length){const t=document.createElement("button"),n=(t.setAttribute("class","gh-more-toggle gh-icon-button"),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>',document.createElement("div"));n.setAttribute("class","gh-dropdown"),10<=e.length?(o.classList.add("is-dropdown-mega"),n.style.gridTemplateRows=`repeat(${Math.ceil(e.length/2)}, 1fr)`):o.classList.remove("is-dropdown-mega"),e.forEach(function(e){n.appendChild(e)}),t.appendChild(n),a.appendChild(t),o.classList.add("is-dropdown-loaded"),window.addEventListener("click",function(e){o.classList.contains("is-dropdown-open")?o.classList.remove("is-dropdown-open"):t.contains(e.target)&&o.classList.add("is-dropdown-open")})}else o.classList.add("is-dropdown-loaded")}};imagesLoaded(e,function(){n()}),window.addEventListener("load",function(){e||n()}),window.addEventListener("resize",function(){setTimeout(()=>{a.innerHTML=t,n()},1)})}}function lightbox(e){document.querySelectorAll(e).forEach(function(e){e.addEventListener("click",function(e){var t=e;t.preventDefault();for(var n,i=[],o=0,r=t.target.closest(".kg-card").previousElementSibling;r&&(r.classList.contains("kg-image-card")||r.classList.contains("kg-gallery-card"));){var a=[];r.querySelectorAll("img").forEach(function(e){a.push({src:e.getAttribute("src"),msrc:e.getAttribute("src"),w:e.getAttribute("width"),h:e.getAttribute("height"),el:e}),o+=1}),r=r.previousElementSibling,i=a.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 s=t.target.closest(".kg-card").nextElementSibling;s&&(s.classList.contains("kg-image-card")||s.classList.contains("kg-gallery-card"));)s.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})}),s=s.nextElementSibling;e=document.querySelectorAll(".pswp")[0];new PhotoSwipe(e,PhotoSwipeUI_Default,i,{bgOpacity:.9,closeOnScroll:!0,fullscreenEl:!1,history:!1,index:o,shareEl:!1,zoomEl:!1,getThumbBoundsFn:function(e){var e=i[e].el,t=window.pageYOffset||document.documentElement.scrollTop,e=e.getBoundingClientRect();return{x:e.left,y:e.top+t,w:e.width}}}).init()})})}"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={},n=(n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}),t=(n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]},{});t[e]={pattern:RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp("(^|[\"'\\s])(?:"+e+")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))","i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:[^;{\\s\"']|\\s+(?!\\s)|"+t.source+")*?(?:;|(?=\\s*\\{))"),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup);t&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(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:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp("(^|[^\\w$])(?:NaN|Infinity|0[bB][01]+(?:_[01]+)*n?|0[oO][0-7]+(?:_[0-7]+)*n?|0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?|\\d+(?:_\\d+)*n|(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?)(?![\\w$])"),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp("((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)/(?:(?:\\[(?:[^\\]\\\\\r\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}|(?:\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.|\\[(?:[^[\\]\\\\\r\n]|\\\\.)*\\])*\\])*\\]|\\\\.|[^/\\\\\\[\r\n])+/[dgimyus]{0,7}v[dgimyus]{0,7})(?=(?:\\s|/\\*(?:[^*]|\\*(?!/))*\\*/)*(?:$|[\r\n,.;:})\\]]|//))"),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)","javascript")),Prism.languages.js=Prism.languages.javascript,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.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"],Prism.languages["go-mod"]=Prism.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/},Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},n=(delete e.languages.ruby.function,"(?:"+["([^a-zA-Z0-9\\s{(\\[<=])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1","\\((?:[^()\\\\]|\\\\[^]|\\((?:[^()\\\\]|\\\\[^])*\\))*\\)","\\{(?:[^{}\\\\]|\\\\[^]|\\{(?:[^{}\\\\]|\\\\[^])*\\})*\\}","\\[(?:[^\\[\\]\\\\]|\\\\[^]|\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\])*\\]","<(?:[^<>\\\\]|\\\\[^]|<(?:[^<>\\\\]|\\\\[^])*>)*>"].join("|")+")"),i='(?:"(?:\\\\.|[^"\\\\\r\n])*"|(?:\\b[a-zA-Z_]\\w*|[^\\s\0-\\x7F]+)[?!]?|\\$.)';e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp("%r"+n+"[egimnosux]{0,6}"),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp("(^|[^:]):"+i),lookbehind:!0,greedy:!0},{pattern:RegExp("([\r\n{(,][ \t]*)"+i+"(?=:(?!:))"),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp("%[qQiIwWs]?"+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp("%x"+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o="(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g,function(){return"[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"}),r="\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'";function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n="([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\\]|\\}|(?:[\r\n]\\s*)?#))".replace(/<<prop>>/g,function(){return i}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp("((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g,function(){return i}).replace(/<<key>>/g,function(){return"(?:"+o+"|"+r+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),lookbehind:!0,alias:"number"},boolean:{pattern:a("false|true","i"),lookbehind:!0,alias:"important"},null:{pattern:a("null|~","i"),lookbehind:!0,alias:"important"},string:{pattern:a(r),lookbehind:!0,greedy:!0},number:{pattern:a("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)","i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism),function(){var y,b,v,w,x,o;function k(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function E(e,t){return e.classList.contains(t)}function S(e){e()}function r(e){return!!(e&&/pre/i.test(e.nodeName)&&(e.hasAttribute("data-line")||e.id&&Prism.util.isActive(e,v)))}function a(){var e=location.hash.slice(1),t=(k(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)}),(e.match(/\.([\d,-]+)$/)||[,""])[1]);t&&!document.getElementById(e)&&(e=e.slice(0,e.lastIndexOf(".")),e=document.getElementById(e))&&(e.hasAttribute("data-line")||e.setAttribute("data-line",""),Prism.plugins.lineHighlight.highlightLines(e,t,"temporary ")(),x)&&document.querySelector(".temporary.line-highlight").scrollIntoView()}void 0!==Prism&&"undefined"!=typeof document&&document.querySelector&&(b="line-numbers",v="linkable-line-numbers",w=/\n(?!$)/g,x=!0,Prism.plugins.lineHighlight={highlightLines:function(l,e,c){var t,n,e=(e="string"==typeof e?e:l.getAttribute("data-line")||"").replace(/\s+/g,"").split(",").filter(Boolean),u=+l.getAttribute("data-line-offset")||0,d=(void 0===y&&((i=document.createElement("div")).style.fontSize="13px",i.style.lineHeight="1.5",i.style.padding="0",i.style.border="0",i.innerHTML=" <br /> ",document.body.appendChild(i),y=38===i.offsetHeight,document.body.removeChild(i)),(y?parseInt:parseFloat)(getComputedStyle(l).lineHeight)),p=Prism.util.isActive(l,b),i=l.querySelector("code"),m=!p&&i||l,f=[],o=i.textContent.match(w),g=o?o.length+1:1,h=i&&m!=i?(o=i,t=getComputedStyle(l),n=getComputedStyle(o),o.offsetTop+r(n.borderTopWidth)+r(n.paddingTop)-r(t.paddingTop)):0;function r(e){return+e.substr(0,e.length-2)}e.forEach(function(e){var t,n,i,o,r=e.split("-"),a=+r[0],s=+r[1]||a;(s=Math.min(g+u,s))<a||(t=l.querySelector('.line-highlight[data-range="'+e+'"]')||document.createElement("div"),f.push(function(){t.setAttribute("aria-hidden","true"),t.setAttribute("data-range",e),t.className=(c||"")+" line-highlight"}),p&&Prism.plugins.lineNumbers?(r=Prism.plugins.lineNumbers.getLine(l,a),n=Prism.plugins.lineNumbers.getLine(l,s),r&&(i=r.offsetTop+h+"px",f.push(function(){t.style.top=i})),n&&(o=n.offsetTop-r.offsetTop+n.offsetHeight+"px",f.push(function(){t.style.height=o}))):f.push(function(){t.setAttribute("data-start",String(a)),a<s&&t.setAttribute("data-end",String(s)),t.style.top=(a-u-1)*d+h+"px",t.textContent=new Array(s-a+2).join(" \n")}),f.push(function(){t.style.width=l.scrollWidth+"px"}),f.push(function(){m.appendChild(t)}))});var a,s=l.id;return p&&Prism.util.isActive(l,v)&&s&&(E(l,v)||f.push(function(){l.classList.add(v)}),a=parseInt(l.getAttribute("data-start")||"1"),k(".line-numbers-rows > span",l).forEach(function(e,t){var n=t+a;e.onclick=function(){x=!1,location.hash=s+"."+n,setTimeout(function(){x=!0},1)}})),function(){f.forEach(S)}}},o=0,Prism.hooks.add("before-sanity-check",function(e){var t,n=e.element.parentElement;r(n)&&(t=0,k(".line-highlight",n).forEach(function(e){t+=e.textContent.length,e.parentNode.removeChild(e)}),t)&&/^(?: \n)+$/.test(e.code.slice(-t))&&(e.code=e.code.slice(0,-t))}),Prism.hooks.add("complete",function e(t){var n,i=t.element.parentElement;r(i)&&(clearTimeout(o),n=Prism.plugins.lineNumbers,t=t.plugins&&t.plugins.lineNumbers,E(i,b)&&n&&!t?Prism.hooks.add("line-numbers",e):(Prism.plugins.lineHighlight.highlightLines(i)(),o=setTimeout(a,1)))}),window.addEventListener("hashchange",a),window.addEventListener("resize",function(){k("pre").filter(r).map(function(e){return Prism.plugins.lineHighlight.highlightLines(e)}).forEach(S)}))}(),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,n=e.querySelector("code"),i=e.querySelector(".line-numbers-rows");if(n&&i)return i=e.querySelector(".line-numbers-sizer"),t=n.textContent.split(r),i||((i=document.createElement("span")).className="line-numbers-sizer",n.appendChild(i)),i.innerHTML="0",i.style.display="block",n=i.getBoundingClientRect().height,i.innerHTML="",{element:e,lines:t,lineHeights:[],oneLinerHeight:n,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,i=e.querySelector(".line-numbers-rows");if(i)return n=(t=(n=(e=parseInt(e.getAttribute("data-start"),10)||1)+(i.children.length-1))<(t=t<e?e:t)?n:t)-e,i.children[n]}},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=(i=e.element).parentNode)&&/pre/i.test(t.nodeName)&&!i.querySelector(".line-numbers-rows")&&Prism.util.isActive(i,o)&&(i.classList.remove(o),t.classList.add(o),i=(i=e.code.match(r))?i.length+1:1,i=new Array(i+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 d,p,m,e,t,n,i,o,f;function g(e){return!(0<=e.indexOf("!"))&&((e=p[e]||e)in Prism.languages||(e=m[e])&&!e.error&&!1===e.loading)}function h(e,t,i){var n=(e="string"==typeof e?[e]:e).length,o=0,c=!1;function u(){c||++o===n&&t&&t(e)}0!==n?e.forEach(function(e){function t(){var e,t,n,i,o=m[r];(o=o||(m[r]={callbacks:[]})).callbacks.push({success:a,error:s}),!l&&g(r)?y(r,"success"):!l&&o.error?y(r,"error"):!l&&o.loading||(o.loading=!0,o.error=!1,i=r,i=f.languages_path+"prism-"+i+(f.use_minified?".min":"")+".js",e=function(){o.loading=!1,y(r,"success")},t=function(){o.loading=!1,o.error=!0,y(r,"error")},(n=document.createElement("script")).src=i,n.async=!0,n.onload=function(){document.body.removeChild(n),e()},n.onerror=function(){document.body.removeChild(n),t()},document.body.appendChild(n))}var r,a,s,l,n;a=u,s=function(){c||(c=!0,i&&i(e))},l=0<=(r=e).indexOf("!"),r=r.replace("!",""),(n=d[r=p[r]||r])&&n.length?h(n,t,s):t()}):t&&setTimeout(t,0)}function y(e,t){if(m[e]){for(var n=m[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&&(d={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"},p={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"},m={},e="components/",(t=Prism.util.currentScript())&&(n=/\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,i=/(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i,null!=(o=t.getAttribute("data-autoloader-path"))?e=o.trim().replace(/\/?$/,"/"):(o=t.src,n.test(o)?e=o.replace(n,"components/"):i.test(o)&&(e=o.replace(i,"$1components/")))),f=Prism.plugins.autoloader={languages_path:e,use_minified:!0,loadLanguages:h},Prism.hooks.add("complete",function(e){var t,n,i=e.element,e=e.language;i&&e&&"none"!==e&&((n=((t=i).getAttribute("data-dependencies")||"").trim())||(t=t.parentElement)&&"pre"===t.tagName.toLowerCase()&&(n=(t.getAttribute("data-dependencies")||"").trim()),t=n?n.split(/\s*,\s*/g):[],/^diff-./i.test(e)?(t.push("diff"),t.push(e.substr("diff-".length))):t.push(e),t.every(g)||h(t,function(){Prism.highlightElement(i)}))}))}(),function(){var r,a,s,e,t;void 0!==Prism&&"undefined"!=typeof document&&(r=[],a={},s=function(){},Prism.plugins.toolbar={},e=Prism.plugins.toolbar.registerButton=function(e,n){var t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),n.className&&t.classList.add(n.className),t.textContent=n.text,t};e in a?console.warn('There is a button with the key "'+e+'" registered already.'):r.push(a[e]=t)},t=Prism.plugins.toolbar.hook=function(n){var e,i,t,o=n.element.parentNode;o&&/pre/i.test(o.nodeName)&&!o.parentNode.classList.contains("code-toolbar")&&((e=document.createElement("div")).classList.add("code-toolbar"),o.parentNode.insertBefore(e,o),e.appendChild(o),(i=document.createElement("div")).classList.add("toolbar"),o=r,(o=(t=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(n.element))?t.map(function(e){return a[e]||s}):o).forEach(function(e){var t,e=e(n);e&&((t=document.createElement("div")).classList.add("toolbar-item"),t.appendChild(e),i.appendChild(t))}),e.appendChild(i))},e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,i,o=t.getAttribute("data-label");try{i=document.querySelector("template#"+o)}catch(e){}return i?n=i.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=o),n}}),Prism.hooks.add("complete",t))}(),function(){function l(e){var t=document.createElement("textarea");t.value=e.getText(),t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand("copy");setTimeout(function(){n?e.success():e.error()},1)}catch(t){setTimeout(function(){e.error(t)},1)}document.body.removeChild(t)}void 0!==Prism&&"undefined"!=typeof document&&(Prism.plugins.toolbar?Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(e){var t,n=e.element,i=function(e){var t,n={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3};for(t in n){for(var i="data-prismjs-"+t,o=e;o&&!o.hasAttribute(i);)o=o.parentElement;o&&(n[t]=o.getAttribute(i))}return n}(n),o=document.createElement("button"),r=(o.className="copy-to-clipboard-button",o.setAttribute("type","button"),document.createElement("span"));return o.appendChild(r),s("copy"),t={getText:function(){return n.textContent},success:function(){s("copy-success"),a()},error:function(){s("copy-error"),setTimeout(function(){var e;e=n,window.getSelection().selectAllChildren(e)},1),a()}},o.addEventListener("click",function(){var e;e=t,navigator.clipboard?navigator.clipboard.writeText(e.getText()).then(e.success,function(){l(e)}):l(e)}),o;function a(){setTimeout(function(){s("copy")},i["copy-timeout"])}function s(e){r.textContent=i[e],o.setAttribute("data-copy-state",e)}}):console.warn("Copy to Clipboard plugin loaded before Toolbar plugin."))}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).DOMPurify=t()}(this,function(){"use strict";function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t,n){return(i=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),1}catch(e){}}}()?Reflect.construct:function(e,t,n){var i=[null],t=(i.push.apply(i,t),new(Function.bind.apply(e,i)));return n&&o(t,n.prototype),t}).apply(null,arguments)}function $e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}()||function(e){var t;if(e)return"string"==typeof e?n(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,void 0):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p(r,t)}var r,a=Object.hasOwnProperty,s=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,qe=Object.freeze,e=Object.seal,f=Object.create,t="undefined"!=typeof Reflect&&Reflect,d=(d=t.apply)||function(e,t,n){return e.apply(t,n)},qe=qe||function(e){return e},e=e||function(e){return e},p=(p=t.construct)||function(e,t){return i(e,$e(t))},lt=m(Array.prototype.forEach),Ue=m(Array.prototype.pop),Ze=m(Array.prototype.push),Ge=m(String.prototype.toLowerCase),We=m(String.prototype.toString),ct=m(String.prototype.match),Ke=m(String.prototype.replace),ut=m(String.prototype.indexOf),dt=m(String.prototype.trim),Ye=m(RegExp.prototype.test);r=TypeError;function m(o){return function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return d(o,e,n)}}function Xe(e,t,n){n=n||Ge,s&&s(e,null);for(var i=t.length;i--;){var o,r=t[i];"string"==typeof r&&(o=n(r))!==r&&(l(t)||(t[i]=o),r=o),e[r]=!0}return e}function Ve(e){var t,n=f(null);for(t in e)d(a,e,[t])&&(n[t]=e[t]);return n}function Je(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return m(n.get);if("function"==typeof n.value)return m(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var Qe=qe(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),et=qe(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tt=qe(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pt=qe(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nt=qe(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mt=qe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),it=qe(["#text"]),ot=qe(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),rt=qe(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),at=qe(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),st=qe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ft=e(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gt=e(/<%[\w\W]*|[\w\W]*%>/gm),ht=e(/\${[\w\W]*}/gm),yt=e(/^data-[\-\w.\u00B7-\uFFFF]/),bt=e(/^aria-[\-\w]+$/),vt=e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),wt=e(/^(?:\w+script|data):/i),xt=e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),kt=e(/^html$/i);return function P(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,c=function(e){return P(e)};if(c.version="2.4.1",c.removed=[],s&&s.document&&9===s.document.nodeType){var l=s.document,o=s.document,M=s.DocumentFragment,e=s.HTMLTemplateElement,u=s.Node,R=s.Element,t=s.NodeFilter,n=s.NamedNodeMap,j=void 0===n?s.NamedNodeMap||s.MozNamedAttrMap:n,z=s.HTMLFormElement,H=s.DOMParser,d=s.trustedTypes,n=R.prototype,$=Je(n,"cloneNode"),B=Je(n,"nextSibling"),q=Je(n,"childNodes"),p=Je(n,"parentNode"),m=("function"==typeof e&&(n=o.createElement("template")).content&&n.content.ownerDocument&&(o=n.content.ownerDocument),function(e,t){if("object"!==He(e)||"function"!=typeof e.createPolicy)return null;var n=null,i="data-tt-policy-suffix",t="dompurify"+((n=t.currentScript&&t.currentScript.hasAttribute(i)?t.currentScript.getAttribute(i):n)?"#"+n:"");try{return e.createPolicy(t,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+t+" could not be created."),null}}(d,l)),U=m?m.createHTML(""):"",e=o,Z=e.implementation,G=e.createNodeIterator,W=e.createDocumentFragment,K=e.getElementsByTagName,Y=l.importNode,n={};try{n=Ve(o).documentMode?o.documentMode:{}}catch(e){}var i={};c.isSupported="function"==typeof p&&Z&&void 0!==Z.createHTMLDocument&&9!==n;var f,g,X,V=ft,J=gt,Q=ht,ee=yt,te=bt,ne=wt,ie=xt,oe=vt,h=null,re=Xe({},[].concat($e(Qe),$e(et),$e(tt),$e(nt),$e(it))),y=null,ae=Xe({},[].concat($e(ot),$e(rt),$e(at),$e(st))),b=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),v=null,se=null,le=!0,ce=!0,ue=!1,w=!1,x=!1,de=!1,pe=!1,k=!1,E=!1,S=!1,me=!0,fe=!1,ge="user-content-",he=!0,A=!1,r={},T=null,ye=Xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),be=null,ve=Xe({},["audio","video","img","source","image","track"]),we=null,xe=Xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),C="http://www.w3.org/1998/Math/MathML",_="http://www.w3.org/2000/svg",I="http://www.w3.org/1999/xhtml",O=I,ke=null,Ee=Xe({},[C,_,I],We),Se=["application/xhtml+xml","text/html"],a=null,Ae=o.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(e){a&&a===e||(e=Ve(e=e&&"object"===He(e)?e:{}),f=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,g="application/xhtml+xml"===f?We:Ge,h="ALLOWED_TAGS"in e?Xe({},e.ALLOWED_TAGS,g):re,y="ALLOWED_ATTR"in e?Xe({},e.ALLOWED_ATTR,g):ae,ke="ALLOWED_NAMESPACES"in e?Xe({},e.ALLOWED_NAMESPACES,We):Ee,we="ADD_URI_SAFE_ATTR"in e?Xe(Ve(xe),e.ADD_URI_SAFE_ATTR,g):xe,be="ADD_DATA_URI_TAGS"in e?Xe(Ve(ve),e.ADD_DATA_URI_TAGS,g):ve,T="FORBID_CONTENTS"in e?Xe({},e.FORBID_CONTENTS,g):ye,v="FORBID_TAGS"in e?Xe({},e.FORBID_TAGS,g):{},se="FORBID_ATTR"in e?Xe({},e.FORBID_ATTR,g):{},r="USE_PROFILES"in e&&e.USE_PROFILES,le=!1!==e.ALLOW_ARIA_ATTR,ce=!1!==e.ALLOW_DATA_ATTR,ue=e.ALLOW_UNKNOWN_PROTOCOLS||!1,w=e.SAFE_FOR_TEMPLATES||!1,x=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,E=e.RETURN_DOM_FRAGMENT||!1,S=e.RETURN_TRUSTED_TYPE||!1,pe=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,fe=e.SANITIZE_NAMED_PROPS||!1,he=!1!==e.KEEP_CONTENT,A=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||oe,O=e.NAMESPACE||I,e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(b.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),w&&(ce=!1),E&&(k=!0),r&&(h=Xe({},$e(it)),y=[],!0===r.html&&(Xe(h,Qe),Xe(y,ot)),!0===r.svg&&(Xe(h,et),Xe(y,rt),Xe(y,st)),!0===r.svgFilters&&(Xe(h,tt),Xe(y,rt),Xe(y,st)),!0===r.mathMl)&&(Xe(h,nt),Xe(y,at),Xe(y,st)),e.ADD_TAGS&&Xe(h=h===re?Ve(h):h,e.ADD_TAGS,g),e.ADD_ATTR&&Xe(y=y===ae?Ve(y):y,e.ADD_ATTR,g),e.ADD_URI_SAFE_ATTR&&Xe(we,e.ADD_URI_SAFE_ATTR,g),e.FORBID_CONTENTS&&Xe(T=T===ye?Ve(T):T,e.FORBID_CONTENTS,g),he&&(h["#text"]=!0),x&&Xe(h,["html","head","body"]),h.table&&(Xe(h,["tbody"]),delete v.tbody),qe&&qe(e),a=e)},_e=Xe({},["mi","mo","mn","ms","mtext"]),Ie=Xe({},["foreignobject","desc","title","annotation-xml"]),Oe=Xe({},["title","style","font","a","script"]),F=Xe({},et),Fe=(Xe(F,tt),Xe(F,pt),Xe({},nt)),L=(Xe(Fe,mt),function(t){Ze(c.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=U}catch(e){t.remove()}}}),Le=function(e,t){try{Ze(c.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ze(c.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!y[e])if(k||E)try{L(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},De=function(e){pe?e="<remove></remove>"+e:n=(n=ct(e,/^[\r\n\t ]+/))&&n[0],"application/xhtml+xml"===f&&O===I&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var t,n,i=m?m.createHTML(e):e;if(O===I)try{t=(new H).parseFromString(i,f)}catch(e){}if(!t||!t.documentElement){t=Z.createDocument(O,"template",null);try{t.documentElement.innerHTML=X?"":i}catch(e){}}i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),O===I?K.call(t,x?"html":"body")[0]:x?t.documentElement:i},Ne=function(e){return G.call(e.ownerDocument||e,e,t.SHOW_ELEMENT|t.SHOW_COMMENT|t.SHOW_TEXT,null,!1)},D=function(e){return"object"===He(u)?e instanceof u:e&&"object"===He(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},N=function(e,t,n){i[e]&<(i[e],function(e){e.call(c,t,n,a)})},Pe=function(e){if(N("beforeSanitizeElements",e,null),(!((r=e)instanceof z)||"string"==typeof r.nodeName&&"string"==typeof r.textContent&&"function"==typeof r.removeChild&&r.attributes instanceof j&&"function"==typeof r.removeAttribute&&"function"==typeof r.setAttribute&&"string"==typeof r.namespaceURI&&"function"==typeof r.insertBefore&&"function"==typeof r.hasChildNodes)&&!Ye(/[\u0080-\uFFFF]/,e.nodeName)){var t,n,i,o,r=g(e.nodeName);if(N("uponSanitizeElement",e,{tagName:r,allowedTags:h}),(!e.hasChildNodes()||D(e.firstElementChild)||D(e.content)&&D(e.content.firstElementChild)||!Ye(/<[/\w]/g,e.innerHTML)||!Ye(/<[/\w]/g,e.textContent))&&("select"!==r||!Ye(/<template/i,e.innerHTML))){if(h[r]&&!v[r])return(!(e instanceof R)||((n=p(t=e))&&n.tagName||(n={namespaceURI:O,tagName:"template"}),i=Ge(t.tagName),o=Ge(n.tagName),ke[t.namespaceURI]&&(t.namespaceURI===_?n.namespaceURI===I?"svg"===i:n.namespaceURI===C?"svg"===i&&("annotation-xml"===o||_e[o]):Boolean(F[i]):t.namespaceURI===C?n.namespaceURI===I?"math"===i:n.namespaceURI===_?"math"===i&&Ie[o]:Boolean(Fe[i]):t.namespaceURI===I?!(n.namespaceURI===_&&!Ie[o]||n.namespaceURI===C&&!_e[o]||Fe[i]||!Oe[i]&&F[i]):"application/xhtml+xml"===f&&ke[t.namespaceURI])))&&("noscript"!==r&&"noembed"!==r||!Ye(/<\/no(script|embed)/i,e.innerHTML))?(w&&3===e.nodeType&&(n=e.textContent,n=Ke(n,V," "),n=Ke(n,J," "),n=Ke(n,Q," "),e.textContent!==n)&&(Ze(c.removed,{element:e.cloneNode()}),e.textContent=n),N("afterSanitizeElements",e,null),!1):(L(e),!0);if(!v[r]&&Re(r)){if(b.tagNameCheck instanceof RegExp&&Ye(b.tagNameCheck,r))return!1;if(b.tagNameCheck instanceof Function&&b.tagNameCheck(r))return!1}if(he&&!T[r]){var a=p(e)||e.parentNode,s=q(e)||e.childNodes;if(s&&a)for(var l=s.length-1;0<=l;--l)a.insertBefore($(s[l],!0),B(e))}}}return L(e),!0},Me=function(e,t,n){if(me&&("id"===t||"name"===t)&&(n in o||n in Ae))return!1;if((!ce||se[t]||!Ye(ee,t))&&(!le||!Ye(te,t)))if(!y[t]||se[t]){if(!(Re(e)&&(b.tagNameCheck instanceof RegExp&&Ye(b.tagNameCheck,e)||b.tagNameCheck instanceof Function&&b.tagNameCheck(e))&&(b.attributeNameCheck instanceof RegExp&&Ye(b.attributeNameCheck,t)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(t))||"is"===t&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&Ye(b.tagNameCheck,n)||b.tagNameCheck instanceof Function&&b.tagNameCheck(n))))return!1}else if(!we[t]&&!Ye(oe,Ke(n,ie,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ut(n,"data:")||!be[e])&&(!ue||Ye(ne,Ke(n,ie,"")))&&n)return!1;return!0},Re=function(e){return 0<e.indexOf("-")},je=function(e){N("beforeSanitizeAttributes",e,null);var t=e.attributes;if(t){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y},i=t.length;i--;){s=t[i];var o=s.name,r=s.namespaceURI,a="value"===o?s.value:dt(s.value),s=g(o);if(n.attrName=s,n.attrValue=a,n.keepAttr=!0,n.forceKeepAttr=void 0,N("uponSanitizeAttribute",e,n),a=n.attrValue,!n.forceKeepAttr&&(Le(o,e),n.keepAttr))if(Ye(/\/>/i,a))Le(o,e);else{w&&(a=Ke(a,V," "),a=Ke(a,J," "),a=Ke(a,Q," "));var l=g(e.nodeName);if(Me(l,s,a)){if(!fe||"id"!==s&&"name"!==s||(Le(o,e),a=ge+a),m&&"object"===He(d)&&"function"==typeof d.getAttributeType&&!r)switch(d.getAttributeType(l,s)){case"TrustedHTML":a=m.createHTML(a);break;case"TrustedScriptURL":a=m.createScriptURL(a)}try{r?e.setAttributeNS(r,o,a):e.setAttribute(o,a),Ue(c.removed)}catch(e){}}}}N("afterSanitizeAttributes",e,null)}},ze=function e(t){var n,i=Ne(t);for(N("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)N("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof M&&e(n.content),je(n));N("afterSanitizeShadowDOM",t,null)};c.sanitize=function(e){var t,n,i,o,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof(e=(X=!e)?"\x3c!--\x3e":e)&&!D(e)){if("function"!=typeof e.toString)throw Be("toString is not a function");if("string"!=typeof(e=e.toString()))throw Be("dirty is not a string, aborting")}if(!c.isSupported){if("object"===He(s.toStaticHTML)||"function"==typeof s.toStaticHTML){if("string"==typeof e)return s.toStaticHTML(e);if(D(e))return s.toStaticHTML(e.outerHTML)}return e}if(de||Ce(r),c.removed=[],A="string"==typeof e?!1:A){if(e.nodeName){var r=g(e.nodeName);if(!h[r]||v[r])throw Be("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)1===(r=(t=De("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!k&&!w&&!x&&-1===e.indexOf("<"))return m&&S?m.createHTML(e):e;if(!(t=De(e)))return k?null:S?U:""}t&&pe&&L(t.firstChild);for(var a=Ne(A?e:t);n=a.nextNode();)3===n.nodeType&&n===i||Pe(n)||(n.content instanceof M&&ze(n.content),je(n),i=n);if(i=null,A)return e;if(k){if(E)for(o=W.call(t.ownerDocument);t.firstChild;)o.appendChild(t.firstChild);else o=t;return o=y.shadowroot?Y.call(l,o,!0):o}r=x?t.outerHTML:t.innerHTML;return x&&h["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&Ye(kt,t.ownerDocument.doctype.name)&&(r="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+r),w&&(r=Ke(r,V," "),r=Ke(r,J," "),r=Ke(r,Q," ")),m&&S?m.createHTML(r):r},c.setConfig=function(e){Ce(e),de=!0},c.clearConfig=function(){a=null,de=!1},c.isValidAttribute=function(e,t,n){a||Ce({});e=g(e),t=g(t);return Me(e,t,n)},c.addHook=function(e,t){"function"==typeof t&&(i[e]=i[e]||[],Ze(i[e],t))},c.removeHook=function(e){if(i[e])return Ue(i[e])},c.removeHooks=function(e){i[e]&&(i[e]=[])},c.removeAllHooks=function(){i={}}}else c.isSupported=!1;return c}()}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).reframe=t()}(this,function(){"use strict";function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),o=0,t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}return function(e,o){return void 0===o&&(o="js-reframe"),("string"==typeof e?t(document.querySelectorAll(e)):"length"in e?t(e):[e]).forEach(function(e){var t,n,i;-1!==e.className.split(" ").indexOf(o)||-1<e.style.width.indexOf("%")||(t=e.getAttribute("height")||e.offsetHeight,n=e.getAttribute("width")||e.offsetWidth,t=("string"==typeof t?parseInt(t):t)/("string"==typeof n?parseInt(n):n)*100,(n=document.createElement("div")).className=o,(i=n.style).position="relative",i.width="100%",i.paddingTop=t+"%",(i=e.style).position="absolute",i.width="100%",i.height="100%",i.left="0",i.top="0",null!=(t=e.parentNode)&&t.insertBefore(n,e),null!=(i=e.parentNode)&&i.removeChild(e),n.appendChild(e))})}}),function(){const e=document.querySelector(".gh-navigation");var t=e.querySelector(".gh-burger");t&&t.addEventListener("click",function(){e.classList.contains("is-open")?e.classList.remove("is-open"):e.classList.add("is-open")})}(),lightbox(".kg-image-card > .kg-image[width][height], .kg-gallery-image > img"),reframe(document.querySelectorAll(['.gh-content iframe[src*="youtube.com"]','.gh-content iframe[src*="youtube-nocookie.com"]','.gh-content iframe[src*="player.vimeo.com"]','.gh-content iframe[src*="kickstarter.com"][src*="video.html"]',".gh-content object",".gh-content embed"].join(","))),dropdown(),document.body.classList.contains("post-template")||pagination();const MASTODON_ACCOUNT_ID="109285376472065471",MASTODON_HOST="social.sd.ai";async function copyElementTextToClipboard(e){var t=e.textContent;await navigator.clipboard.writeText(t),e.classList.add("tootClick"),setTimeout(()=>{e.classList.remove("tootClick")},600)}function escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function renderMastodonContent(e,t,n){if(t.innerHTML="",Array.isArray(e)&&0!==e.length){for(const o of e)if(!o.sensitive){o.account.display_name=escapeHtml(o.account.display_name),o.account.emojis.forEach(e=>{o.account.display_name=o.account.display_name.replace(`:${e.shortcode}:`,`<img src="${escapeHtml(e.static_url)}" alt="Emoji ${e.shortcode}" class="mastodon-emoji" />`)}),o.emojis.forEach(e=>{o.content=o.content.replace(`:${e.shortcode}:`,`<img src="${escapeHtml(e.static_url)}" alt="Emoji ${e.shortcode}" class="mastodon-emoji" />`)});var i=`<div class="mastodon-comment">
|
|
<div class="mastodon-avatar">
|
|
<img src="${escapeHtml(o.account.avatar_static)}" height=60 width=60 alt="${escapeHtml(o.account.display_name)}'s avatar">
|
|
</div>
|
|
<div class="mastodon-body">
|
|
<div class="mastodon-meta">
|
|
<div class="mastodon-author">
|
|
<div class="mastodon-author-link">
|
|
<a href="${o.account.url}" target="_blank" rel="nofollow">
|
|
<span>${o.account.display_name}</span>
|
|
</a>
|
|
<br/>
|
|
<span class="mastodon-author-uid">(@${escapeHtml("s"===o.account.acct?"s@sd.ai":o.account.acct)})</span>
|
|
</div>
|
|
</div>
|
|
<div class="toot-link">
|
|
<a class="date" href="${o.uri}" rel="nofollow" target="_blank">
|
|
${o.created_at.substring(0,10)}
|
|
</a>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="mastodon-comment-content">
|
|
${o.content}
|
|
<span class="tootlink" ${n?"":'style="display: none;"'}>${o.uri}</span>
|
|
</div>
|
|
</div>
|
|
</div>`,i=DOMPurify.sanitize(i,{RETURN_DOM_FRAGMENT:!0});for(const r of i.querySelectorAll(".tootlink"))r.onclick=function(){return copyElementTextToClipboard(this)};t.appendChild(i)}}else document.getElementById("mastodon-comments-list").innerHTML="<div class='mastodon-comment'>No comments (yet)!</div>"}let MASTODON_POST_ID;function pagination(e=!0,s,l=!1){const c=document.querySelector(".gh-feed");if(!c)return;let t=!1;async function n(){var t=document.querySelector("link[rel=next]");if(t)try{var e=await(await fetch(t.href)).text(),n=(new DOMParser).parseFromString(e,"text/html"),i=n.querySelectorAll(".gh-feed:not(.gh-featured):not(.gh-related) > *");const r=document.createDocumentFragment(),a=[];i.forEach(function(e){e=document.importNode(e,!0);l&&(e.style.visibility="hidden"),r.appendChild(e),a.push(e)}),c.appendChild(r),s&&s(a,d);var o=n.querySelector("link[rel=next]");o&&o.href?t.href=o.href:(t.remove(),u&&u.remove())}catch(e){throw t.remove(),e}}const i=c.nextElementSibling||document.querySelector(".gh-footer"),u=document.querySelector(".gh-loadmore"),d=(!document.querySelector("link[rel=next]")&&u&&u.remove(),async function(){i.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]")&&await n()});const o=new IntersectionObserver(async function(e){if(!t){if(t=!0,e[0].isIntersecting)if(l)await n();else for(;i.getBoundingClientRect().top<=window.innerHeight&&document.querySelector("link[rel=next]");)await n();t=!1,document.querySelector("link[rel=next]")||o.disconnect()}});e?o.observe(i):u.addEventListener("click",n)}document.addEventListener("DOMContentLoaded",async e=>{let t,n;var i=/bot|google|baidu|bing|msn|teoma|slurp|yandex/i.test(navigator.userAgent),i=(0<document.getElementsByClassName("gh-sidebar").length&&(t=`https://${MASTODON_HOST}/api/v1/accounts/${MASTODON_ACCOUNT_ID}/statuses?exclude_replies=true&exclude_reblogs=true`),MASTODON_POST_ID&&!i&&(t=`https://${MASTODON_HOST}/api/v1/statuses/${MASTODON_POST_ID}/context`,n=!0),document.getElementById("mastodon-comments-list"));if(t&&i){var o=document.getElementById("toot-link-top"),r=document.getElementById("toot-link-clip"),a=`https://${MASTODON_HOST}/@s/`+MASTODON_POST_ID;o&&(o.href=a),r&&(r.innerText=a);let e=await(await fetch(t)).json();n&&(e=e.descendants);o=document.getElementById("mastodon-comments-header");return o&&(o.style.display=""),renderMastodonContent(e,i,n)}});const isOSLight=window.matchMedia("(prefers-color-scheme: light)").matches,localTheme=window.localStorage&&window.localStorage.getItem("lightTheme"),themeToggle=document.querySelector(".theme-toggle");function changeFavicon(){var e=document.documentElement.classList.contains("dark-theme")?"/assets/images/favicon-dark.png":"/assets/images/favicon.png",t=document.createElement("link"),n=document.getElementById("dynamic-favicon");t.id="dynamic-favicon",t.rel="shortcut icon",t.href=e,n&&document.head.removeChild(n),document.head.appendChild(t)}function changeTheme(e){document.documentElement.classList.remove("light-theme","dark-theme","has-light-text","has-dark-text"),e?document.documentElement.classList.add("light-theme","has-dark-text"):document.documentElement.classList.add("dark-theme","has-light-text"),window.localStorage&&window.localStorage.setItem("lightTheme",e?"light":"dark"),changeFavicon()}themeToggle.addEventListener("click",()=>{changeTheme(document.documentElement.classList.contains("dark-theme"))}),"light"===localTheme?changeTheme(!0):changeTheme(isOSLight);
|
|
//# sourceMappingURL=source.js.map
|