1let p,nt,n,i,m,_,M,$,T,A,F,D,w,it,b,S,B,W,V,G,E,Y;const N=[];let P,j,O,J,R,X,a,l,H,k={},q,u;const s="appendChild",d="createElement",y="removeChild",pt=t=>(nt||lt(t),w&&(clearTimeout(it),et()),u=t,D=t.ytSrc||t.vimeoSrc,j=t.animationStart,O=t.animationEnd,J=t.onChangeImage,p=t.el,P=!1,W=p.getAttribute("data-caption"),t.gallery?st(t.gallery,t.position):D||t.iframeSrc?(i=$,dt()):t.imgSrc?(P=!0,A=t.imgSrc,!~N.indexOf(A)&&C(!0),i=m,i.src=A):t.audio?(C(!0),i=M,i.src=t.audio,Q("audio file")):t.vidSrc?(C(!0),t.dimensions&&f(_,`width:${t.dimensions[0]}px`),ct(t.vidSrc),Q("video")):(i=m,i.src=p.tagName==="IMG"?p.src:window.getComputedStyle(p).backgroundImage.replace(/^url|[(|)|'|"]/g,"")),n[s](i),document.body[s](n),{close:Z,opts:u,updateDimensions:tt,display:i,next:()=>v(1),prev:()=>v(-1)});function lt(t){let e,o;function c(r){const x=document[d]("button");return x.className=r,x.innerHTML='<svg viewBox="0 0 48 48"><path d="M28 24L47 5a3 3 0 1 0-4-4L24 20 5 1a3 3 0 1 0-4 4l19 19L1 43a3 3 0 1 0 4 4l19-19 19 19a3 3 0 0 0 4 0v-4L28 24z"/></svg>',x}function g(r,x){const z=document[d]("button");return z.className="bp-lr",z.innerHTML='<svg viewBox="0 0 129 129" height="70" fill="#fff"><path d="M88.6 121.3c.8.8 1.8 1.2 2.9 1.2s2.1-.4 2.9-1.2a4.1 4.1 0 0 0 0-5.8l-51-51 51-51a4.1 4.1 0 0 0-5.8-5.8l-54 53.9a4.1 4.1 0 0 0 0 5.8l54 53.9z"/></svg>',f(z,x),z.onclick=at=>{at.stopPropagation(),v(r)},z}const h=document[d]("STYLE"),L=t&&t.overlayColor?t.overlayColor:"rgba(0,0,0,.7)";h.innerHTML=`#bp_caption,#bp_container{bottom:0;left:0;right:0;position:fixed;opacity:0}
1#bp_container>*,#bp_loader{position:absolute;right:0;z-index:10}#bp_container,#bp_caption,#bp_container svg{pointer-events:none}#bp_container{top:0;z-index:9999;background:${L};opacity:0;transition:opacity .35s}#bp_loader{top:0;left:0;bottom:0;display:flex;align-items:center;cursor:wait;background:0;z-index:9}#bp_loader svg{width:50%;max-width:300px;max-height:50%;margin:auto;animation:bpturn 1s infinite linear}#bp_aud,#bp_container img,#bp_sv,#bp_vid{user-select:none;max-height:96%;max-width:96%;top:0;bottom:0;left:0;margin:auto;box-shadow:0 0 3em rgba(0,0,0,.4);z-index:-1}#bp_sv{background:#111}#bp_sv svg{width:66px}#bp_caption{font-size:.9em;padding:1.3em;background:rgba(15,15,15,.94);color:#fff;text-align:center;transition:opacity .3s}#bp_aud{width:650px;top:calc(50% - 20px);bottom:auto;box-shadow:none}#bp_count{left:0;right:auto;padding:14px;color:rgba(255,255,255,.7);font-size:22px;cursor:default}#bp_container button{position:absolute;border:0;outline:0;background:0;cursor:pointer;transition:all .1s}#bp_container>.bp-x{padding:0;height:41px;width:41px;border-radius:100%;top:8px;right:14px;opacity:.8;line-height:1}#bp_container>.bp-x:focus,#bp_container>.bp-x:hover{background:rgba(255,255,255,.2)}.bp-x svg,.bp-xc svg{height:21px;width:20px;fill:#fff;vertical-align:top;}.bp-xc svg{width:16px}#bp_container .bp-xc{left:2%;bottom:100%;padding:9px 20px 7px;background:#d04444;border-radius:2px 2px 0 0;opacity:.85}#bp_container .bp-xc:focus,#bp_container .bp-xc:hover{opacity:1}.bp-lr{top:50%;top:calc(50% - 130px);padding:99px 0;width:6%;background:0;border:0;opacity:.4;transition:opacity .1s}.bp-lr:focus,.bp-lr:hover{opacity:.8}@keyframes bpf{50%{transform:translatex(15px)}100%{transform:none}}@keyframes bpl{50%{transform:translatex(-15px)}100%{transform:none}}@keyframes bpfl{0%{opacity:0;transform:translatex(70px)}100%{opacity:1;transform:none}}@keyframes bpfr{0%{opacity:0;transform:translatex(-70px)}100%{opacity:1;transform:none}}@keyframes bpfol{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(-70px)}}@keyframes bpfor{0%{opacity:1;transform:none}100%{opacity:0;transform:translatex(70px)}}@keyframes bpturn{0%{transform:none}100%{transform:rotate(360deg)}}@media (max-width:600px){.bp-lr{font-size:15vw}}`,document.head[s](h),n=document[d]("DIV"),n.id="bp_container",n.onclick=Z,F=c("bp-x"),n[s](F),"ontouchend"in window&&window.visualViewport&&(q=!0,n.ontouchstart=({touches:r,changedTouches:x})=>{o=r.length>1,e=x[0].pageX},n.ontouchend=({changedTouches:r})=>{if(E&&!o&&window.visualViewport.scale<=1){let x=r[0].pageX-e;x<-30&&v(1),x>30&&v(-1)}}),m=document[d]("IMG"),_=document[d]("VIDEO"),_.id="bp_vid",_.setAttribute("playsinline",!0),_.controls=!0,_.loop=!0,M=document[d]("audio"),M.id="bp_aud",M.controls=!0,M.loop=!0,H=document[d]("span"),H.id="bp_count",S=document[d]("DIV"),S.id="bp_caption",V=c("bp-xc"),V.onclick=K.bind(null,!1),S[s](V),B=document[d]("SPAN"),S[s](B),n[s](S),R=g(1,"transform:scalex(-1)"),X=g(-1,"left:0;right:auto"),b=document[d]("DIV"),b.id="bp_loader",b.innerHTML='<svg viewbox="0 0 32 32" fill="#fff" opacity=".8"><path d="M16 0a16 16 0 0 0 0 32 16 16 0 0 0 0-32m0 4a12 12 0 0 1 0 24 12 12 0 0 1 0-24" fill="#000" opacity=".5"/><path d="M16 0a16 16 0 0 1 16 16h-4A12 12 0 0 0 16 4z"/></svg>',$=document[d]("DIV"),$.id="bp_sv",T=document[d]("IFRAME"),T.setAttribute("allowfullscreen",!0),T.allow="autoplay; fullscreen",T.onload=()=>$[y](b),f(T,"border:0;position:absolute;height:100%;width:100%;left:0;top:0"),$[s](T),m.onload=I,m.onerror=I.bind(null,"image"),window.addEventListener("resize",()=>{E||w&&C(!0),i===$&&tt()}),document.addEventListener("keyup",({keyCode:r})=>{r===27&&G&&Z(),E&&(r===39&&v(1),r===37&&v(-1),r===38&&v(10),r===40&&v(-10))}),document.addEventListener("keydown",r=>{E&&~[37,38,39,40].indexOf(r.keyCode)&&r.preventDefault()}),document.addEventListener("focus",r=>{G&&!n.contains(r.target)&&(r.stopPropagation(),F.focus())},!0),nt=!0}function ot(){const{top:t,left:e,width:o,height:c}=p.getBoundingClientRect(),g=e-(n.clientWidth-o)/2,h=t-(n.clientHeight-c)/2,L=p.clientWidth/i.clientWidth,r=p.clientHeight/i.clientHeight;return`transform:translate3D(${g}px, ${h}px, 0) scale3D(${L}, ${r}, 0)`}
1function ct(t){Array.isArray(t)?(i=_.cloneNode(),t.forEach(e=>{const o=document[d]("SOURCE");o.src=e,o.type=`video/${e.match(/.(\w+)$/)[1]}`,i[s](o)})):(i=_,i.src=t)}function st(t,e){let o=u.galleryAttribute||"data-bp";if(Array.isArray(t))a=e||0,l=t,W=t[a].caption;else{l=[].slice.call(typeof t=="string"?document.querySelectorAll(`${t} [${o}]`):t);const c=l.indexOf(p);a=e===0||e?e:c!==-1?c:0,l=l.map(g=>({el:g,src:g.getAttribute(o),caption:g.getAttribute("data-caption")}))}P=!0,A=l[a].src,!~N.indexOf(A)&&C(!0),l.length>1?(n[s](H),H.innerHTML=`${a+1}/${l.length}`,q||(n[s](R),n[s](X))):l=!1,i=m,i.src=A}function v(t){const e=l.length-1;if(w)return;if(t>0&&a===e||t<0&&!a){if(!u.loop){f(m,""),setTimeout(f,9,m,`animation:${t>0?"bpl":"bpf"} .3s;transition:transform .35s`);return}a=t>0?-1:e+1}if(a=Math.max(0,Math.min(a+t,e)),[a-1,a,a+1].forEach(c=>{if(c=Math.max(0,Math.min(c,e)),k[c])return;const g=l[c].src,h=document[d]("IMG");h.addEventListener("load",rt.bind(null,g)),h.src=g,k[c]=h}),k[a].complete)return U(t);w=!0,f(b,"opacity:.4;"),n[s](b),k[a].onload=()=>{E&&U(t)},k[a].onerror=()=>{l[a]={error:"Error loading image"},E&&U(t)}}function U(t){w&&(n[y](b),w=!1);const e=l[a];if(e.error)alert(e.error);else{const o=n.querySelector("img:last-of-type");m=i=k[a],f(m,`animation:${t>0?"bpfl":"bpfr"} .35s;transition:transform .35s`),f(o,`animation:${t>0?"bpfol":"bpfor"} .35s both`),n[s](m),e.el&&(p=e.el)}H.innerHTML=`${a+1}/${l.length}`,K(l[a].caption),J&&J([m,l[a]])}function dt(){let t;const e="https://",o="autoplay=1";u.ytSrc?t=`${e}www.youtube${u.ytNoCookie?"-nocookie":""}.com/embed/${D}?html5=1&rel=0&playsinline=1&${o}`:u.vimeoSrc?t=`${e}player.vimeo.com/video/${D}?${o}`:u.iframeSrc&&(t=u.iframeSrc),f(b,""),$[s](b),T.src=t,tt(),setTimeout(I,9)}function tt(){let t,e;const o=window.innerHeight*.95,c=window.innerWidth*.95,g=o/c,[h,L]=u.dimensions||[1920,1080],r=L/h;r>g?(t=Math.min(L,o),e=t/r):(e=Math.min(h,c),t=e*r),$.style.cssText+=`width:${e}px;height:${t}px;`}function Q(t){~[1,4].indexOf(i.readyState)?(I(),setTimeout(()=>{i.play()},99)):i.error?I(t):it=setTimeout(Q,35,t)}function C(t){u.noLoader||(t&&f(b,`top:${p.offsetTop}px;left:${p.offsetLeft}px;height:${p.clientHeight}px;width:${p.clientWidth}px`),p.parentElement[t?s:y](b),w=t)}function K(t){t&&(B.innerHTML=t),f(S,`opacity:${t?"1;pointer-events:auto":"0"}`)}function rt(t){!~N.indexOf(t)&&N.push(t)}function I(t){if(w&&C(),j&&j(),typeof t=="string")return et(),u.onError?u.onError():alert(`Error: The requested ${t} could not be loaded.`);P&&rt(A),i.style.cssText+=ot(),f(n,"opacity:1;pointer-events:auto"),O&&(O=setTimeout(O,410)),G=!0,E=!!l,setTimeout(()=>{i.style.cssText+="transition:transform .35s;transform:none",W&&setTimeout(K,250,W)},60)}function Z(t){const e=t?t.target:n,o=[S,V,_,M,B,X,R,b];e.blur(),!(Y||~o.indexOf(e))&&(i.style.cssText+=ot(),f(n,"pointer-events:auto"),setTimeout(et,350),clearTimeout(O),G=!1,Y=!0)}function et(){if((i===$?T:i).removeAttribute("src"),document.body[y](n),n[y](i),f(n,""),f(i,""),K(!1),E){const e=n.querySelectorAll("img");for(let o=0;o<e.length;o++)n[y](e[o]);w&&n[y](b),n[y](H),E=l=!1,k={},q||n[y](R),q||n[y](X),m.onload=I,m.onerror=I.bind(null,"image")}u.onClose&&u.onClose(),Y=w=!1}function f({style:t},e){t.cssText=e}export{pt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.