UNPKG

@ekolabs/eko-gallery-react

Version:

eko gallery for react framework

2 lines • 94.6 kB
"use strict";function t(t){return"object"==typeof t?t:{forceMobile:t}}function e(t,e,o){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:o;throw new TypeError("Private element is not present on this object")}function o(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(t,o){return t.get(e(t,o))}function i(t,e,n){o(t,e),e.set(t,n)}function a(t,o,n){return t.set(e(t,o),n),n}function r(t,e){o(t,e),e.add(t)}function s(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function l(t){var e,o,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(o=l(t[e]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}const d=300,c=60,u="none";function p(t,e,o){return t.addEventListener(e,o),()=>t.removeEventListener(e,o)}function v(t,e,o){const{x:n,y:i}=function(t,e){const o=t.getBoundingClientRect();return{x:Math.round(e.clientX-o.left),y:Math.round(e.clientY-o.top)}}(t,e);return{event:e,pointersCount:o.length,target:e.target,x:n,y:i,attachmentNode:t}}function h(t,e,o,n,i){const a=v(t,o,n);return t.dispatchEvent(new CustomEvent(`${e}${i}`,{detail:a})),a}function _(){let t=[],e=()=>{},o=[];return{setPointerControls:(n,i,a,r,s,l=u,d=[])=>{var c;if(i.style.touchAction=(c=l,Array.isArray(c)?c:[c]).join(" "),o=d,o.forEach((e=>{var o;null===(o=e.onInit)||void 0===o||o.call(e,t)})),!t.length){function v(e){t.push(e);const l=h(i,n,e,t,"down");function d(e){const a=t.length;t=function(t,e){return e.filter((e=>t.pointerId!==e.pointerId))}(e,t);if(a>t.length){t.length||(c(),u(),v(),_());const a=h(i,n,e,t,"up");null==s||s(t,e),setTimeout((()=>{o.forEach((e=>{var o;null===(o=e.onUp)||void 0===o||o.call(e,a,t)}))}))}}null==r||r(t,e),setTimeout((()=>{o.forEach((e=>{var o;null===(o=e.onDown)||void 0===o||o.call(e,l,t)}))}));const c=p(i,"pointermove",(e=>{t=t.map((t=>e.pointerId===t.pointerId?e:t));const r=h(i,n,e,t,"move");null==a||a(t,e),o.forEach((e=>{var o;null===(o=e.onMove)||void 0===o||o.call(e,r,t)}))})),u=p(i,"lostpointercapture",(t=>{d(t)})),v=p(i,"pointerup",(t=>{d(t)})),_=p(i,"pointerleave",(t=>{d(t)}))}e=p(i,"pointerdown",v)}return{destroy:()=>{t.length||(e(),o.forEach((t=>{var e;null===(e=t.onDestroy)||void 0===e||e.call(t)})))}}}}}const g="@attach";function x(){return Symbol(g)}const m="swipe";function f(t,e,o,n=!1){const{setPointerControls:i}=_(),a=n?m:x();return{...o,[`on${m}`]:t,[a]:t=>{const{onDown:o,onUp:n,parameters:a}=function(t,e){const o={timeframe:d,minSwipeDistance:c,touchAction:u,composed:!1,...e};let n,i,a,r;function s(t,e){i=e.clientX,a=e.clientY,n=Date.now(),1===t.length&&(r=e.target)}function l(e,s){if("pointerup"===s.type&&0===e.length&&Date.now()-n<o.timeframe){const e=s.clientX-i,n=s.clientY-a,l=Math.abs(e),d=Math.abs(n);let c=null;l>=2*d&&l>o.minSwipeDistance?c=e>0?"right":"left":d>=2*l&&d>o.minSwipeDistance&&(c=n>0?"bottom":"top"),c&&t.dispatchEvent(new CustomEvent(m,{detail:{direction:c,target:r,pointerType:s.pointerType}}))}}return{onDown:s,onUp:l,parameters:o}}(t,null==e?void 0:e());return i(m,t,null,o,n,a.touchAction,a.plugins).destroy}}}const b="tap";function y(t,e,o,n=!1){const{setPointerControls:i}=_(),a=n?b:x();return{...o,[`on${b}`]:t,[a]:t=>{const{onDown:o,onUp:n,parameters:a}=function(t,e){const o={timeframe:d,composed:!1,touchAction:"auto",...e};let n,i,a;function r(e,r){if(Math.abs(r.clientX-i)<4&&Math.abs(r.clientY-a)<4&&Date.now()-n<o.timeframe){const e=t.getBoundingClientRect(),o=Math.round(r.clientX-e.left),n=Math.round(r.clientY-e.top);t.dispatchEvent(new CustomEvent(b,{detail:{x:o,y:n,target:r.target,pointerType:r.pointerType}}))}}function s(t,e){i=e.clientX,a=e.clientY,n=Date.now()}return{onDown:s,onUp:r,parameters:o}}(t,null==e?void 0:e());return i(b,t,null,o,n,a.touchAction,a.plugins).destroy}}}const w=t=>{const e={color:"#00ff00",fadeTime:1e3,zIndex:1e6,lineWidth:4};let o,n,i,a=null,r=!1,s=Date.now();const l={x:void 0,y:void 0};function d(){var l;const c=null!==(l=t.fadeTime)&&void 0!==l?l:e.fadeTime,u=Date.now(),p=u-s;p>c/20&&(a&&n&&i&&o&&(i.drawImage(o,0,0),a.clearRect(0,0,o.width,o.height),a.globalAlpha=1-3*p/c,a.drawImage(n,0,0),a.globalAlpha=1,i.clearRect(0,0,o.width,o.height)),s=u),r&&requestAnimationFrame(d)}function c(t){l.x=t.x,l.y=t.y}function u(){a&&n&&o&&(a.canvas.width=window.innerWidth,a.canvas.height=window.innerHeight,n.width=o.width,n.height=o.height)}function p(s){var l;v(),o=window.document.createElement("canvas"),o.id="svelte-gestures-highlight-plugin",a=o.getContext("2d"),o.style.cssText=`\ndisplay: block; \nwidth: 100dvw;\nheight: 100dvh;\ntop: 0;\nleft: 0;\nposition: fixed;\npointer-events: none;\nz-index: ${null!==(l=t.zIndex)&&void 0!==l?l:e.zIndex};\n`,window.document.body.appendChild(o),window.addEventListener("resize",u),s&&c(s.event),n=document.createElement("canvas"),u(),i=n.getContext("2d"),r=!0,d()}function v(){var t;r=!1,null===(t=window.document.getElementById("svelte-gestures-highlight-plugin"))||void 0===t||t.remove(),window.removeEventListener("resize",u)}return{onMove:o=>{var n,i,r;n=o.event,a&&(a.beginPath(),a.lineWidth=null!==(i=t.lineWidth)&&void 0!==i?i:e.lineWidth,a.lineCap="round",a.strokeStyle=null!==(r=t.color)&&void 0!==r?r:e.color,void 0!==l.x&&void 0!==l.y?(a.moveTo(l.x,l.y),c(n),a.lineTo(l.x,l.y)):c(n),a.stroke())},onDown:t=>{p(t)},onUp:(t,e)=>{0===e.length&&v()},onDestroy:v,onInit:t=>{t.length&&(l.x=void 0,l.y=void 0,p())}}};var M;const I=1,F=2,k=4,C=Symbol(),B=/[&"<]/g,j=/[&<]/g;function S(t,e){const o=String(null!=t?t:""),n=e?B:j;n.lastIndex=0;let i="",a=0;for(;n.test(o);){const t=n.lastIndex-1,e=o[t];i+=o.substring(a,t)+("&"===e?"&amp;":'"'===e?"&quot;":"&lt;"),a=t+1}return i+o.substring(a)}const $={translate:new Map([[!0,"yes"],[!1,"no"]])};function E(t,e,o=!1){if("hidden"===t&&"until-found"!==e&&(o=!0),null==e||!e&&o)return"";const n=t in $&&$[t].get(e)||e;return` ${t}${o?"":`="${S(n,!0)}"`}`}function A(t){return"object"==typeof t?function(){for(var t,e,o=0,n="",i=arguments.length;o<i;o++)(t=arguments[o])&&(e=l(t))&&(n&&(n+=" "),n+=e);return n}(t):null!=t?t:""}const z=[..." \t\n\r\f \v\ufeff"];function T(t,e,o){var n=null==t?"":""+t;if(e&&(n=n?n+" "+e:e),o)for(var i in o)if(o[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,r=0;(r=n.indexOf(i,r))>=0;){var s=r+a;0!==r&&!z.includes(n[r-1])||s!==n.length&&!z.includes(n[s])?r=s:n=(0===r?"":n.substring(0,r))+n.substring(s+1)}return""===n?null:n}function P(t,e=!1){var o=e?" !important;":";",n="";for(var i in t){var a=t[i];null!=a&&""!==a&&(n+=" "+i+": "+a+o)}return n}function W(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function L(t,e){if(e){var o,n,i="";if(Array.isArray(e)?(o=e[0],n=e[1]):o=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,r=0,s=!1,l=[];o&&l.push(...Object.keys(o).map(W)),n&&l.push(...Object.keys(n).map(W));var d=0,c=-1;const e=t.length;for(var u=0;u<e;u++){var p=t[u];if(s?"/"===p&&"*"===t[u-1]&&(s=!1):a?a===p&&(a=!1):"/"===p&&"*"===t[u+1]?s=!0:'"'===p||"'"===p?a=p:"("===p?r++:")"===p&&r--,!s&&!1===a&&0===r)if(":"===p&&-1===c)c=u;else if(";"===p||u===e-1){if(-1!==c){var v=W(t.substring(d,c).trim());if(!l.includes(v))";"!==p&&u++,i+=" "+t.substring(d,u).trim()+";"}d=u+1,c=-1}}}return o&&(i+=P(o)),n&&(i+=P(n,!0)),""===(i=i.trim())?null:i}return null==t?null:String(t)}const R=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};const D=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function O(t){return D.includes(t)}const H="\x3c!--[--\x3e",q="\x3c!--]--\x3e";let N=null;var V=null;function X(t){V=t}function U(t){return Y().get(t)}function Y(t){var e,o;return null===V&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),null!==(o=(e=V).c)&&void 0!==o?o:e.c=new Map(function(t){let e=t.p;for(;null!==e;){const t=e.c;if(null!==t)return t;e=e.p}return null}(V)||void 0)}function G(t){V={p:V,c:null,r:null}}function K(){V=V.p}var Z=new WeakMap,J=new WeakMap,Q=new WeakMap,tt=new WeakMap,et=new WeakSet;class ot{constructor(t,e){r(this,et),i(this,Z,[]),i(this,J,void 0),i(this,Q,!1),s(this,"type",void 0),i(this,tt,void 0),s(this,"promise",void 0),s(this,"global",void 0),s(this,"local",void 0),a(tt,this,e),this.global=t,this.local=e?{...e.local}:{select_value:void 0},this.type=e?e.type:"body"}head(t){const e=new ot(this.global,this);e.type="head",n(Z,this).push(e),e.child(t)}async_block(t,e){n(Z,this).push(H),this.async(t,e),n(Z,this).push(q)}async(t,e){let o=e;if(t.length>0){const n=V;o=o=>Promise.all(t).then((()=>{const t=V;try{return X(n),e(o)}finally{X(t)}}))}this.child(o)}run(t){const e=V;let o=Promise.resolve(t[0]());const n=[o];for(const i of t.slice(1))o=o.then((()=>{const t=V;X(e);try{return i()}finally{X(t)}})),n.push(o);return n}child(t){const e=new ot(this.global,this);n(Z,this).push(e);const o=V;X({...V,p:o,c:null,r:e});const i=t(e);return X(o),i instanceof Promise&&("sync"===e.global.mode&&function(){const t=new Error("await_invalid\nEncountered asynchronous work while rendering synchronously.\nhttps://svelte.dev/e/await_invalid");throw t.name="Svelte error",t}(),i.catch((()=>{})),e.promise=i),e}component(t,e){G();const o=this.child(t);a(Q,o,!0),K()}select(t,e,o,n,i,a,r){const{value:s,...l}=t;this.push(`<select${ht(l,o,n,i,a)}>`),this.child((t=>{t.local.select_value=s,e(t)})),this.push((r?"<!>":"")+"</select>")}option(t,o,i,a,r,s,l){n(Z,this).push(`<option${ht(t,i,a,r,s)}`);const d=(e,o,{head:i,body:a})=>{"value"in t&&(o=t.value),o===this.local.select_value&&n(Z,e).push(" selected"),n(Z,e).push(`>${a}${l?"<!>":""}</option>`),i&&e.head((t=>t.push(i)))};"function"==typeof o?this.child((t=>{const n=new ot(this.global,this);if(o(n),"async"===this.global.mode)return e(et,n,lt).call(n).then((e=>{d(t,e.body.replaceAll("\x3c!----\x3e",""),e)}));{const o=e(et,n,st).call(n);d(t,o.body.replaceAll("\x3c!----\x3e",""),o)}})):d(this,o,{body:o})}title(t){const o=this.get_path(),n=t=>{this.global.set_title(t,o)};this.child((o=>{const i=new ot(o.global,o);if(t(i),"async"===o.global.mode)return e(et,i,lt).call(i).then((t=>{n(t.head)}));{const t=e(et,i,st).call(i);n(t.head)}}))}push(t){"function"==typeof t?this.child((async e=>e.push(await t()))):n(Z,this).push(t)}on_destroy(t){var e;(null!==(e=n(J,this))&&void 0!==e?e:a(J,this,[])).push(t)}get_path(){return n(tt,this)?[...n(tt,this).get_path(),n(Z,n(tt,this)).indexOf(this)]:[]}copy(){const t=new ot(this.global,n(tt,this));return a(Z,t,n(Z,this).map((t=>t instanceof ot?t.copy():t))),t.promise=this.promise,t}subsume(t){if(this.global.mode!==t.global.mode)throw new Error("invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!");this.local=t.local,a(Z,this,n(Z,t).map((t=>(t instanceof ot&&t.subsume(t),t)))),this.promise=t.promise,this.type=t.type}get length(){return n(Z,this).length}static render(t,e={}){let o;const n={};return Object.defineProperties(n,{html:{get:()=>{var n;return(null!==(n=o)&&void 0!==n?n:o=rt.call(ot,t,e)).body}},head:{get:()=>{var n;return(null!==(n=o)&&void 0!==n?n:o=rt.call(ot,t,e)).head}},body:{get:()=>{var n;return(null!==(n=o)&&void 0!==n?n:o=rt.call(ot,t,e)).body}},hashes:{value:{script:""}},then:{value:(n,i)=>{{var a;const i=null!==(a=o)&&void 0!==a?a:o=rt.call(ot,t,e),r=n({head:i.head,body:i.body,html:i.body,hashes:{script:[]}});return Promise.resolve(r)}}}}),n}}function*nt(){for(const t of e(et,this,it).call(this))yield*e(et,t,at).call(t)}function*it(){for(const t of n(Z,this))"string"!=typeof t&&(yield*e(et,t,it).call(t));n(Q,this)&&(yield this)}function*at(){if(n(J,this))for(const t of n(J,this))yield t;for(const t of n(Z,this))t instanceof M&&!n(Q,t)&&(yield*e(et,t,at).call(t))}function rt(t,o){var n,i=V;try{const n=dt.call(M,"sync",t,o),i=e(et,n,st).call(n);return ct.call(M,i,n)}finally{null===(n=N)||void 0===n||n.abort(R),N=null,X(i)}}function st(t={head:"",body:""}){for(const o of n(Z,this))"string"==typeof o?t[this.type]+=o:o instanceof M&&e(et,o,st).call(o,t);return t}async function lt(t={head:"",body:""}){await this.promise;for(const o of n(Z,this))"string"==typeof o?t[this.type]+=o:o instanceof M&&await e(et,o,lt).call(o,t);return t}function dt(t,e,o){var n;const i=new M(new ut(t,o.idPrefix?o.idPrefix+"-":"",o.csp));return i.push(H),o.context&&(G(),V.c=o.context,V.r=i),e(i,null!==(n=o.props)&&void 0!==n?n:{}),o.context&&K(),i.push(q),i}function ct(t,o){for(const t of e(et,o,nt).call(o))t();let n=t.head+o.global.get_title(),i=t.body;for(const{hash:t,code:e}of o.global.css)n+=`<style id="${t}">${e}</style>`;return{head:n,body:i,hashes:{script:o.global.csp.script_hashes}}}M=ot;class ut{csp;mode;uid;css=new Set;#t={path:[],value:""};constructor(t,e="",o={hash:!1}){this.mode=t,this.csp={...o,script_hashes:[]};let n=1;this.uid=()=>`${e}s${n++}`}get_title(){return this.#t.value}set_title(t,e){const o=this.#t.path;let n=0,i=Math.min(e.length,o.length);for(;n<i&&e[n]===o[n];)n+=1;void 0!==e[n]&&(void 0===o[n]||e[n]>o[n])&&(this.#t.path=e,this.#t.value=t)}}const pt=/[\s'">/=\u{FDD0}-\u{FDEF}\u{FFFE}\u{FFFF}\u{1FFFE}\u{1FFFF}\u{2FFFE}\u{2FFFF}\u{3FFFE}\u{3FFFF}\u{4FFFE}\u{4FFFF}\u{5FFFE}\u{5FFFF}\u{6FFFE}\u{6FFFF}\u{7FFFE}\u{7FFFF}\u{8FFFE}\u{8FFFF}\u{9FFFE}\u{9FFFF}\u{AFFFE}\u{AFFFF}\u{BFFFE}\u{BFFFF}\u{CFFFE}\u{CFFFF}\u{DFFFE}\u{DFFFF}\u{EFFFE}\u{EFFFF}\u{FFFFE}\u{FFFFF}\u{10FFFE}\u{10FFFF}]/u;function vt(t,e={}){var o;return null!==(o=e.csp)&&void 0!==o&&o.hash&&e.csp.nonce&&function(){const t=new Error("invalid_csp\n`csp.nonce` was set while `csp.hash` was `true`. These options cannot be used simultaneously.\nhttps://svelte.dev/e/invalid_csp");throw t.name="Svelte error",t}(),ot.render(t,e)}function ht(t,e,o,n,i=0){n&&(t.style=L(t.style,n)),t.class&&(t.class=A(t.class)),(e||o)&&(t.class=T(t.class,e,o));let a,r="";const s=!(i&I),l=!(i&F),d=!!(i&k);for(a in t)if("function"!=typeof t[a]&&("$"!==a[0]||"$"!==a[1])&&!pt.test(a)){var c=t[a];l&&(a=a.toLowerCase()),d&&("defaultvalue"===a||"defaultchecked"===a)&&(a="defaultvalue"===a?"value":"checked",t[a])||(r+=E(a,c,s&&O(a)))}return r}function _t(t){return"string"==typeof t?t:null==t?"":t+""}function gt(t,e,o){var n=T(t,e,o);return n?` class="${S(n,!0)}"`:""}function xt(t,e){var o=L(t,e);return o?` style="${S(o,!0)}"`:""}function mt(t){return t?void 0!==t.length?t:Array.from(t):[]}function ft(t){const e=function(t){let e=C;return()=>(e===C&&(e=t()),e)}(t);let o;return function(t){var n;return 0===arguments.length?null!==(n=o)&&void 0!==n?n:e():(o=t,o)}}function bt(t,{include:e,exclude:o}={}){const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e?e.some(n):!o||!o.some(n)};for(const[e,o]of(t=>{const e=new Set;do{for(const o of Reflect.ownKeys(t))e.add([t,o])}while((t=Reflect.getPrototypeOf(t))&&t!==Object.prototype);return e})(t.constructor.prototype)){if("constructor"===o||!n(o))continue;const i=Reflect.getOwnPropertyDescriptor(e,o);i&&"function"==typeof i.value&&(t[o]=t[o].bind(t))}return t}function yt(t,e){t.getNodesAtTime(0)[0].once("nodestart",e)}class wt{constructor({position:t,gallery:e,config:o}){this.config=o,this.position=t,this.gallery=e,this.name=o.name;const{variantId:n,itemIndex:i,moduleIndex:a}=t;this.id=`${o.itemType}_${n}_${i}_${a}`,bt(this)}#e={};#o=null;#n=!1;#i=null;id;player;position;config;timeline;moduleEndListener;hasDuration=!1;coverAssets=[];get state(){return this.#e}set state(t){this.#e=t}get cover(){return this.#o}set cover(t){this.#o=t}get showCover(){return this.#n}set showCover(t){this.#n=t}get Component(){return this.#i}set Component(t){this.#i=t}emitModuleEnd(){var t;null===(t=this.moduleEndListener)||void 0===t||t.call(this)}start(t){this.player=t}setPosition(){this.gallery.state.playingModulePosition=this.position}play(){this.gallery.track("moduleview"),this.timeline?(yt(this.timeline,(()=>{this.setPosition()})),this.player.switchTimeline(this.timeline)):this.setPosition()}get duration(){return this.hasDuration&&this.timeline?this.timeline.placements.reduce(((t,e)=>t+this.player.getNode(e.nodeId).duration),0):0}}const Mt="cmaf:";function It(t,e,o){var n,i,a;const r=(null==e||null===(n=e.entity)||void 0===n?void 0:n.entityId)||(null==e?void 0:e.assetId),s=null!==(i=null==e||null===(a=e.entity)||void 0===a?void 0:a.entityRevision)&&void 0!==i?i:null==e?void 0:e.assetRevision,l=function(t){return t&&t.find((t=>t.startsWith(Mt)))?t.filter((t=>t.startsWith(Mt))):t}(null==e?void 0:e.availableEncodeProfiles);return o.addNode({id:t,manifestRef:{type:"assets-delivery-service",assetId:r,assetRevision:s,availableEncodeProfiles:l}})}const Ft={hash:"svelte-wejicf",code:".eko-gallery-app {--textBox_bg: linear-gradient(\n      rgba(255, 255, 255, 0) 0%,\n      rgba(255, 255, 255, 0.9) 27.79%,\n      rgba(255, 255, 255, 0.95) 100%\n  );--textBox_border: 0;--textBox_borderRadius: 0;--textBox_maxWidth: 100%;--textBox_margin: 0;--textBox_padding: 16px 16px 64px 16px;--textBox_padding_mobile: 8px 16px;--textBox_gap: 8px;--textBox_expandedContent_gap: 8px;--textBox_expandButton_gap: 6px;--textBox_button_color: #014FD3;--textBox_button_fontSize: 12px;--textBox_button_fontWeight: 500;--textBox_button_lineHeight: 18px;--textBox_button_lineHeight_mobile: 12px;--textBox_button_letterSpacing: 0;--textBox_collapse_marginBottom: 8px;}.step-description-container.svelte-wejicf {width:100%;max-width:var(--textBox_maxWidth);margin:var(--textBox_margin);position:absolute;bottom:0;display:flex;justify-content:space-between;gap:var(--textBox_gap);box-sizing:border-box;padding:var(--textBox_padding);font-family:var(--textBox_fontFamily, var(--fontName));font-size:var(--textBox_fontSize, 12px);font-weight:var(--textBox_fontWeight, 400);font-style:var(--textBox_fontStyle, normal);line-height:var(--textBox_lineHeight, 18px);letter-spacing:var(--textBox_letterSpacing, 0);color:var(--textBox_color, #030303);overflow:hidden;pointer-events:none;background:var(--textBox_bg);border:var(--textBox_border);border-radius:var(--textBox_borderRadius);}.step-description-container.mobile.svelte-wejicf {padding:var(--textBox_padding_mobile);line-height:var(--textBox_lineHeight_mobile, 16px);}.step-description-container.expanded.svelte-wejicf {flex-direction:column;justify-content:flex-start;gap:0;}.expanded-text-content.svelte-wejicf:not([hidden]) {display:flex;flex-direction:column;gap:var(--textBox_expandedContent_gap);}button.svelte-wejicf {background:none;border:none;padding:0;cursor:pointer;font-family:var(--textBox_fontFamily, var(--fontName));font-size:var(--textBox_button_fontSize, 12px);font-weight:var(--textBox_button_fontWeight, 500);line-height:var(--textBox_button_lineHeight, 18px);letter-spacing:var(--textBox_button_letterSpacing, 0);color:var(--textBox_button_color, #014FD3);gap:var(--textBox_expandButton_gap, 6px);flex-shrink:0;text-align:left;pointer-events:auto;}.step-description-container.mobile.svelte-wejicf button:where(.svelte-wejicf) {line-height:var(--textBox_button_lineHeight_mobile);}.collapse-description-button.svelte-wejicf {margin-top:var(--textBox_gap);margin-bottom:var(--textBox_collapse_marginBottom);}.step-description-container.mobile.svelte-wejicf .collapse-description-button:where(.svelte-wejicf) {margin-bottom:0;}.text-wrapper.svelte-wejicf {width:100%;display:flex;flex-direction:column;}.text-box-title.svelte-wejicf {margin:0;font-family:var(--textBox_title_fontFamily, var(--textBox_fontFamily, var(--fontName)));font-size:var(--textBox_title_fontSize, var(--textBox_fontSize, 12px));font-weight:var(--textBox_title_fontWeight, 500);color:var(--textBox_title_color, var(--textBox_color, #030303));}.text-box-title.desktop-title.svelte-wejicf {display:var(--textBox_desktop_title_display, none);margin-bottom:var(--textBox_expandedContent_gap);}.text-box-description.svelte-wejicf {margin:0;font-family:var(--textBox_description_fontFamily, var(--textBox_fontFamily, var(--fontName)));font-size:var(--textBox_description_fontSize, var(--textBox_fontSize, 12px));font-weight:var(--textBox_description_fontWeight, var(--textBox_fontWeight, 400));color:var(--textBox_description_color, var(--textBox_color, #030303));text-align:var(--textBox_description_textAlign, left);}.minimized-description.svelte-wejicf {overflow:hidden;line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:var(--textBox_description_fontWeight, var(--textBox_fontWeight, 400));}.expand-description-button.svelte-wejicf {width:100%;display:flex;justify-content:space-between;gap:var(--textBox_expandButton_gap);flex-wrap:nowrap;}.expand-description-button.svelte-wejicf .read-more-cta:where(.svelte-wejicf) {color:var(--textBox_button_color, #014FD3);flex-shrink:0;}"};function kt(t,e){t.global.css.add(Ft),t.component((t=>{let{textBox:o=null,isMobile:n=!1,gallery:i}=e,a=(null==o?void 0:o.title)||"",r=(null==o?void 0:o.description)||"",s=[(null==o?void 0:o.textColor)&&`--textBox_textColor: ${o.textColor}`,(null==o?void 0:o.bgColor)&&`--textBox_bgColor: ${o.bgColor}`].filter(Boolean).join("; ");a||r?(t.push("\x3c!--[--\x3e"),t.push(`<section${gt("step-description-container svelte-wejicf",void 0,{mobile:n,expanded:false})}${xt(s)} aria-label="Feature description" aria-live="polite"><div class="text-wrapper svelte-wejicf">`),a&&!n?(t.push("\x3c!--[--\x3e"),t.push(`<h3 class="text-box-title desktop-title svelte-wejicf">${S(a)}</h3>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),t.push("\x3c!--[--\x3e"),t.push('<button class="expand-description-button svelte-wejicf" aria-expanded="false" aria-controls="expanded-text-content" aria-label="Expand feature description">'),n&&a?(t.push("\x3c!--[--\x3e"),t.push(`<span class="text-box-title svelte-wejicf">${S(a)}</span>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<span class="text-box-description minimized-description svelte-wejicf">${S(r)}</span>`)),t.push("\x3c!--]--\x3e "),n?(t.push("\x3c!--[--\x3e"),t.push('<span class="read-more-cta svelte-wejicf" aria-hidden="true">Read more</span>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</button>"),t.push("\x3c!--]--\x3e</div> "),t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</section>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}))}function Ct(t,e){const{state:o,isMobile:n,gallery:i}=e,{textBox:a}=o;kt(t,{textBox:a,isMobile:n,gallery:i})}const Bt=new Set;function jt(t){if("undefined"!=typeof window)for(const e of t)if(!Bt.has(e)){const t=new Image;t.src=e,window[e]=t,Bt.add(e)}}var St=new WeakSet;class $t extends wt{constructor({config:t,...o}){super({...o,config:t}),r(this,St),this.synced=t.sync,this.startOnLoop=t.startOnLoop,this.switchTo=()=>{},bt(this);const n=t[this.constructor.itemsKey];this.coverAssets=n.flatMap((t=>[t.intro,t.video])).filter(Boolean),this.itemsCovers=n.map((t=>({intro:t.intro||t.video,loop:t.video}))),this.cover=this.getCorrectCover(this.itemsCovers[0]),this.state={items:n.map((t=>this.mapItem(t))),currentIndex:0,onItemClicked:e(St,this,Et).bind(this),textBox:n[0].textBox}}getCorrectCover(t){return this.synced||this.startOnLoop?t.loop:t.intro}mapItem(t){return t}start(t){super.start(t);const e=this.config[this.constructor.itemsKey],{nodePrefix:o}=this.constructor;this.synced?(this.timeline=t.createTimeline(),e.forEach(((e,n)=>{this.timeline.placeOnTimeline(It(`${this.id}_${o}_${n}`,e.video,t),0,{loop:!0})})),this.timeline.placeRenderNodeOnTimeline("switch",0,1/0,{params:{switchCrossfadeSeconds:.25,initSwitching:({switchTo:t})=>{this.switchTo=t,t(this.state.currentIndex,{crossfadeSeconds:0})}}})):(this.timelines=e.map(((e,n)=>{const i=t.createTimeline(),a=t.createTimeline(),r=It(`${this.id}_${o}_${n}`,e.video,t);return e.intro&&i.placeOnTimeline(It(`${this.id}_${o}_${n}_intro`,e.intro,t)),i.placeOnTimeline(r,"end",{loop:!0}),a.placeOnTimeline(r,0,{loop:!0}),{withIntro:i,justLoop:a}})),this.timeline=this.timelines[this.state.currentIndex][this.startOnLoop?"justLoop":"withIntro"])}play(){if(super.play(),!this.synced){jt(this.coverAssets.filter((t=>t!==this.cover)).map((t=>this.gallery.getCoverUrl(t,1920))))}}}function Et(t){if(t===this.state.currentIndex)return;const e=this.config[this.constructor.itemsKey];var o,n;(this.state.currentIndex=t,this.state.textBox=e[t].textBox,this.synced)?(this.cover=this.itemsCovers[t].loop,this.switchTo(t)):(this.cover=this.itemsCovers[t].intro,this.timeline=null===(o=this.timelines)||void 0===o?void 0:o[t].withIntro,this.showCover=!0,yt(this.timeline,(()=>{var e;(this.showCover=!1,this.startOnLoop)&&(this.cover=this.itemsCovers[t].loop,this.timeline=null===(e=this.timelines)||void 0===e?void 0:e[t].justLoop)})),null===(n=this.player)||void 0===n||n.switchTimeline(this.timeline))}s($t,"itemsKey","items"),s($t,"nodePrefix","item");const At={hash:"svelte-16pmvvn",code:".eko-gallery-app {--toggleModule_gap: 8px;--toggleModule_padding: 10px 58px 0 0;--toggleModule_alignItems: center;--toggleModule_justifyContent: end;--toggleModule_options_padding: 0;--toggleModule_options_height: auto;--toggleModule_options_width: 100%;--toggleModule_options_maxWidth: 100%;--toggleModule_options_gap: 8px;--toggleModule_options_bgColor: transparent;--toggleModule_options_border: 0;--toggleModule_options_borderRadius: 0;--toggleModule_options_boxShadow: none;--toggleModule_options_alignItems: stretch;--toggleModule_button_padding: 8px 12px;--toggleModule_button_border: #E4E5E8 solid 1px;--toggleModule_button_borderRadius: 100px;--toggleModule_button_bgColor: #FBFBFB;--toggleModule_button_bgColor_hover: #F3F4F6;--toggleModule_button_bgColor_active: #E4E5E8;--toggleModule_button_boxShadow: 0px 2px 8px 2px rgba(0, 0, 0, 0.07);--toggleModule_button_text_fontFamily: var(--fontName);--toggleModule_button_text_fontSize: 12px;--toggleModule_button_text_fontWeight: 400;--toggleModule_button_text_fontStyle: normal;--toggleModule_button_text_lineHeight: 16px;--toggleModule_button_text_letterSpacing: -0.2px;--toggleModule_button_text_color: #000;--toggleModule_button_selected_bgColor: #014FD3;--toggleModule_button_selected_borderColor: #014FD3;--toggleModule_button_selected_boxShadow: none;--toggleModule_button_selected_text_color: #FFFFFF;--toggleModule_button_selected_text_fontWeight: var(--toggleModule_button_text_fontWeight);--toggleModule_title_fontFamily: var(--fontName);--toggleModule_title_fontSize: 13px;--toggleModule_title_fontWeight: 400;--toggleModule_title_fontStyle: normal;--toggleModule_title_lineHeight: 120%;--toggleModule_title_letterSpacing: 0;--toggleModule_title_color: #666;--toggleModule_title_textAlignment: center;--toggleModule_note_fontFamily: var(--fontName);--toggleModule_note_fontSize: 12px;--toggleModule_note_fontWeight: 400;--toggleModule_note_fontStyle: normal;--toggleModule_note_lineHeight: 120%;--toggleModule_note_letterSpacing: 0;--toggleModule_note_color: #888;--toggleModule_note_topMargin: 4px;}.toggle-container.svelte-16pmvvn {position:absolute;top:0;padding:var(--toggleModule_padding);width:100%;display:flex;flex-direction:column;align-items:var(--toggleModule_alignItems);gap:var(--toggleModule_gap);pointer-events:auto;box-sizing:border-box;}.toggle-options.svelte-16pmvvn {width:var(--toggleModule_options_width);max-width:var(--toggleModule_options_maxWidth);height:var(--toggleModule_options_height);padding:var(--toggleModule_options_padding);gap:var(--toggleModule_options_gap);background-color:var(--toggleModule_options_bgColor);border:var(--toggleModule_options_border);border-radius:var(--toggleModule_options_borderRadius);box-shadow:var(--toggleModule_options_boxShadow);display:flex;justify-content:var(--toggleModule_justifyContent);align-items:var(--toggleModule_options_alignItems);margin:0;}.toggle-option-container.svelte-16pmvvn {position:relative;min-width:0;}.toggle-option-button.svelte-16pmvvn {min-width:24px;min-height:24px;border-radius:var(--toggleModule_button_borderRadius);font-family:var(--toggleModule_button_text_fontFamily);font-size:var(--toggleModule_button_text_fontSize);font-weight:var(--toggleModule_button_text_fontWeight);font-style:var(--toggleModule_button_text_fontStyle);line-height:var(--toggleModule_button_text_lineHeight);letter-spacing:var(--toggleModule_button_text_letterSpacing);color:var(--toggleModule_button_text_color);padding:var(--toggleModule_button_padding);border:var(--toggleModule_button_border);background:var(--toggleModule_button_bgColor);box-shadow:var(--toggleModule_button_boxShadow);display:flex;width:100%;height:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;cursor:pointer;position:relative;transition:all 0.3s ease-in-out;animation-duration:0.5s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:calc(var(--button-index) * 90ms);\n  animation-name: svelte-16pmvvn-button-back-appear-anim;transform-origin:bottom center;}.toggle-option-button.selected.svelte-16pmvvn {background:var(--toggleModule_button_selected_bgColor);border-color:var(--toggleModule_button_selected_borderColor);box-shadow:var(--toggleModule_button_selected_boxShadow);color:var(--toggleModule_button_selected_text_color);font-weight:var(--toggleModule_button_selected_text_fontWeight);}.toggle-option-button.svelte-16pmvvn:hover:not(.selected) {background:var(--toggleModule_button_bgColor_hover);}.toggle-option-button.svelte-16pmvvn:active:not(.selected) {background:var(--toggleModule_button_bgColor_active);}.toggle-option-button.svelte-16pmvvn:focus {outline-offset:4px;outline-width:2px;}\n\n@keyframes svelte-16pmvvn-button-back-appear-anim {\n  from {\n    transform: scale(0);\n  }\n  to {\n    transform: scale(1);\n  }\n}\n@keyframes svelte-16pmvvn-optionNoteIn {\n  0% {\n    opacity: 0;\n    translate: -50% -5px;\n  }\n  100% {\n    opacity: 1;\n    translate: -50% var(--toggleModule_note_topMargin);\n  }\n}"};function zt(t,e){t.global.css.add(At),t.component((t=>{const{state:o,isMobile:n,gallery:i}=e,{items:a,currentIndex:r,onItemClicked:s,textBox:l}=o;t.push(`<div class="toggle-container svelte-16pmvvn"><div${gt(`toggle-options selected-${_t(r)}`,"svelte-16pmvvn")}>\x3c!--[--\x3e`);const d=mt(a);for(let e=0,o=d.length;e<o;e++){let o=d[e];t.push(`<div class="toggle-option-container svelte-16pmvvn"${xt(`--button-index: ${_t(e)};`)}><button${gt("toggle-option-button svelte-16pmvvn",void 0,{selected:r===e})}${E("aria-pressed",r===e)}${E("data-elementid",`${e+1}`)} data-elementtype="toggle"${E("data-elementname",o.label)} data-interactiontype="module-ui">${S(o.label)}</button></div>`)}t.push("\x3c!--]--\x3e</div></div> "),l?(t.push("\x3c!--[--\x3e"),kt(t,{textBox:l,isMobile:n,gallery:i})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}))}const Tt={hash:"svelte-1650wj7",code:".eko-gallery-app {--modesModule_gap: 16px;--modesModule_width: 100%;--modesModule_top: unset;--modesModule_left: 0;--modesModule_right: unset;--modesModule_bottom: 0;--modesModule_flexDirection: row;--modesModule_alignItems: flex-start;--modesModule_justifyContent: center;--modesModule_padding: 0 0 32px 0;--modesModule_paddingWithSteps: 0 0 48px 0;--modesModule_paddingWithTextBox: 28px 0 0 0;--modesModule_background: none;--modesModule_border: none;--modesModule_borderRadius: 0;--modesModule_transform: none;--modesModule_mode_width: 64px;--modesModule_mode_titleGap: 6px;--modesModule_mode_title_fontFamily: var(--fontName);--modesModule_mode_title_fontSize: 12px;--modesModule_mode_title_fontWeight: 500;--modesModule_mode_title_lineHeight: 120%;--modesModule_mode_title_letterSpacing: -0.2px;--modesModule_mode_title_textAlign: center;--modesModule_mode_description_fontFamily: var(--fontName);--modesModule_mode_description_fontSize: 11px;--modesModule_mode_description_fontWeight: 400;--modesModule_mode_description_lineHeight: 120%;--modesModule_mode_description_letterSpacing: -0.2px;--modesModule_mode_description_textAlign: center;--modesModule_mode_image_strokeSize: 2px;}.modes-container.svelte-1650wj7 {position:absolute;top:var(--modesModule_top);left:var(--modesModule_left);right:var(--modesModule_right);bottom:var(--modesModule_bottom);width:var(--modesModule_width);display:flex;flex-direction:var(--modesModule_flexDirection);align-items:var(--modesModule_alignItems);justify-content:var(--modesModule_justifyContent);gap:var(--modesModule_gap);flex-wrap:wrap;padding:var(--modesModule_padding);background:var(--modesModule_background);border:var(--modesModule_border);border-radius:var(--modesModule_borderRadius);transform:var(--modesModule_transform);}.mode-button.svelte-1650wj7 {display:flex;flex-direction:column;align-items:center;width:var(--modesModule_mode_width);background:none;border:none;padding:0;pointer-events:auto;cursor:pointer;color:rgba(var(--unselectedColor, 111, 111, 111), 1);gap:var(--modesModule_mode_titleGap);flex-shrink:0;}.mode-button.svelte-1650wj7 .mode-title:where(.svelte-1650wj7) {font-family:var(--modesModule_mode_title_fontFamily);font-size:var(--modesModule_mode_title_fontSize);font-weight:var(--modesModule_mode_title_fontWeight);line-height:var(--modesModule_mode_title_lineHeight);letter-spacing:var(--modesModule_mode_title_letterSpacing);text-align:var(--modesModule_mode_title_textAlign);}.mode-button.svelte-1650wj7 .mode-description:where(.svelte-1650wj7) {font-family:var(--modesModule_mode_description_fontFamily);font-size:var(--modesModule_mode_description_fontSize);font-weight:var(--modesModule_mode_description_fontWeight);line-height:var(--modesModule_mode_description_lineHeight);letter-spacing:var(--modesModule_mode_description_letterSpacing);text-align:var(--modesModule_mode_description_textAlign);}.mode-button.svelte-1650wj7 div:where(.svelte-1650wj7) {width:100%;}.mode-button.svelte-1650wj7 img:where(.svelte-1650wj7) {width:100%;aspect-ratio:1;object-fit:cover;border-radius:100%;box-shadow:0 0 0 var(--modesModule_mode_image_strokeSize) rgba(var(--unselectedColor, 111, 111, 111), 0.15);background-color:rgba(var(--unselectedColor, 111, 111, 111), 0.15);pointer-events:none;}.mode-button.selected.svelte-1650wj7 {color:var(--selectedColor, #000000);}.mode-button.selected.svelte-1650wj7 img:where(.svelte-1650wj7) {background-color:var(--selectedColor, #000000);box-shadow:0 0 0 var(--modesModule_mode_image_strokeSize) var(--selectedColor, #000000);}"};function Pt(t,e){t.global.css.add(Tt),t.component((t=>{const{state:o,isMobile:n,gallery:i}=e,{items:a,currentIndex:r,onItemClicked:s,textBox:l}=o;t.push('<div class="modes-container svelte-1650wj7">\x3c!--[--\x3e');const d=mt(a);for(let e=0,o=d.length;e<o;e++){let o=d[e];t.push(`<button${gt("mode-button svelte-1650wj7",void 0,{selected:r===e})}${E("aria-pressed",r===e)}${E("data-elementid",`${e+1}`)} data-elementtype="mode"${E("data-elementname",o.title||`mode-${e+1}`)} data-interactiontype="module-ui"><img${E("src",i.getCoverUrl(o.image,375))}${E("alt",`Mode ${_t(e+1)}`)} class="svelte-1650wj7"/> <div class="svelte-1650wj7">`),o.title?(t.push("\x3c!--[--\x3e"),t.push(`<div class="mode-title svelte-1650wj7">${S(o.title)}</div>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),o.description?(t.push("\x3c!--[--\x3e"),t.push(`<div class="mode-description svelte-1650wj7">${S(o.description)}</div>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div></button>")}t.push("\x3c!--]--\x3e</div> "),l?(t.push("\x3c!--[--\x3e"),kt(t,{textBox:l,isMobile:n,gallery:i})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")}))}const Wt={hash:"svelte-16kucsb",code:".eko-gallery-app {--tryItModule_justifyContent: center;--tryItModule_alignItems: flex-end;--tryItModule_padding: 16px 20px 48px 20px;--tryItModule_button_padding: 16px 32px;--tryItModule_button_textAlign: center;--tryItModule_button_borderRadius: 100px;--tryItModule_button_border: 0;--tryItModule_button_boxShadow: 0 4px 24px 2px rgba(0, 0, 0, 0.12);--tryItModule_button_background: #FFFFFF;--tryItModule_button_text_fontFamily: var(--fontName);--tryItModule_button_text_fontSize: 18px;--tryItModule_button_text_color: #222;--tryItModule_button_text_weight: 500;--tryItModule_button_text_lineHeight: 120%;--tryItModule_button_text_letterSpacing: -0.1px;}.tryIt-container.svelte-16kucsb {position:relative;padding:var(--tryItModule_padding);width:100%;height:100%;box-sizing:border-box;display:flex;justify-content:var(--tryItModule_justifyContent);align-items:var(--tryItModule_alignItems);}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) {position:relative;padding:var(--tryItModule_button_padding);text-align:var(--tryItModule_button_textAlign);border-radius:var(--tryItModule_button_borderRadius);border:var(--tryItModule_button_border);background:var(--tryItModule_button_background);box-shadow:var(--tryItModule_button_boxShadow);font-family:var(--tryItModule_button_text_fontFamily);font-size:var(--tryItModule_button_text_fontSize);color:var(--tryItModule_button_text_color);font-weight:var(--tryItModule_button_text_weight);line-height:var(--tryItModule_button_text_lineHeight);letter-spacing:var(--tryItModule_button_text_letterSpacing);cursor:pointer;opacity:0;}.tryIt-container.svelte-16kucsb button:where(.svelte-16kucsb) .cta-text:where(.svelte-16kucsb) {opacity:0;}"};function Lt(t,e){t.global.css.add(Wt),t.component((t=>{const{state:o,gallery:n}=e,{ctaText:i,animationConfig:a,showCta:r,onCtaClick:s}=o;t.push('<div class="tryIt-container svelte-16kucsb">'),r?(t.push("\x3c!--[--\x3e"),t.push(`<button${E("disabled",!0,!0)}${E("inert",!0,!0)}${E("aria-hidden",!0)} data-elementid="start_cta" data-elementtype="button"${E("data-elementname",i)} data-interactiontype="start" class="svelte-16kucsb"><div class="cta-text svelte-16kucsb">${S(i)}</div></button>`)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}))}var Rt=new WeakSet;function Dt(){this.mainTimeline?this.player.switchTimeline(this.mainTimeline):this.emitModuleEnd(),this.state.showCta=!1}function Ot(t,e){const{state:o,isMobile:n,gallery:i}=e,{textBox:a}=o;kt(t,{textBox:a,isMobile:n,gallery:i})}const Ht={hash:"svelte-1jfcowt",code:".eko-gallery-app {--tryItModule_justifyContent: center;--tryItModule_alignItems: flex-end;--tryItModule_padding: 16px 20px 48px 20px;--tryItModule_button_padding: 16px 32px;--tryItModule_button_textAlign: center;--tryItModule_button_borderRadius: 100px;--tryItModule_button_border: 0;--tryItModule_button_boxShadow: 0 4px 24px 2px rgba(0, 0, 0, 0.12);--tryItModule_button_background: #FFFFFF;--introModule_button_text_fontFamily: var(--fontName);--introModule_button_text_fontSize: 18px;--introModule_button_text_color: #222;--introModule_button_text_weight: 500;--introModule_button_text_lineHeight: 120%;--introModule_button_text_letterSpacing: -0.1px;--introModule_ripple_color: #FFFFFF;--introModule_ripple_borderWidth: 4px;--introModule_ripple_inset_top: -42px;--introModule_ripple_inset_right: -45px;--introModule_ripple_inset_bottom: -30px;--introModule_ripple_inset_left: -57px;--introModule_hand_fill: #FFFFFF;--introModule_hand_stroke: #000000;--introModule_hand_strokeWidth: 29;--introModule_hand_boxWidth: 75px;--introModule_hand_boxHeight: 95px;--introModule_hand_svgWidth: 60px;--introModule_hand_svgHeight: 75px;--introModule_hand_top: 24px;--introModule_hand_right: -79px;}.tryIt-container.svelte-1jfcowt {position:relative;padding:var(--tryItModule_padding);width:100%;height:100%;box-sizing:border-box;display:flex;justify-content:var(--tryItModule_justifyContent);align-items:var(--tryItModule_alignItems);}.tryIt-container.svelte-1jfcowt .cta-wrapper:where(.svelte-1jfcowt) {position:relative;width:fit-content;}.tryIt-container.svelte-1jfcowt button:where(.svelte-1jfcowt) {position:relative;padding:var(--tryItModule_button_padding);text-align:var(--tryItModule_button_textAlign);border-radius:var(--tryItModule_button_borderRadius);border:var(--tryItModule_button_border);background:var(--tryItModule_button_background);box-shadow:var(--tryItModule_button_boxShadow);font-family:var(--introModule_button_text_fontFamily);font-size:var(--introModule_button_text_fontSize);color:var(--introModule_button_text_color);font-weight:var(--introModule_button_text_weight);line-height:var(--introModule_button_text_lineHeight);letter-spacing:var(--introModule_button_text_letterSpacing);cursor:pointer;opacity:0;overflow:visible;pointer-events:auto;}.tryIt-container.svelte-1jfcowt button.has-hand-anim:where(.svelte-1jfcowt) {\n  animation: svelte-1jfcowt-intro-bump 2s ease-out infinite;}.tryIt-container.svelte-1jfcowt button:where(.svelte-1jfcowt) .cta-text:where(.svelte-1jfcowt) {opacity:0;}.tryIt-container.svelte-1jfcowt button:where(.svelte-1jfcowt) .ripple:where(.svelte-1jfcowt) {position:absolute;inset:0;border-radius:inherit;border:var(--introModule_ripple_borderWidth) solid var(--introModule_ripple_color);pointer-events:none;box-sizing:border-box;\n  animation: svelte-1jfcowt-intro-ripple-grow 2s cubic-bezier(0.32, 0.33, 0.08, 1) infinite, svelte-1jfcowt-intro-ripple-fade 2s linear infinite;}.tryIt-container.svelte-1jfcowt .hand-anim:where(.svelte-1jfcowt) {position:absolute;top:var(--introModule_hand_top);right:var(--introModule_hand_right);width:var(--introModule_hand_boxWidth);height:var(--introModule_hand_boxHeight);pointer-events:none;transform-origin:86.4% 98%;\n  animation: svelte-1jfcowt-intro-hand-tap 2s cubic-bezier(0.32, 0.33, 0.08, 1) infinite;}.tryIt-container.svelte-1jfcowt .hand-anim:where(.svelte-1jfcowt) svg:where(.svelte-1jfcowt) {width:var(--introModule_hand_svgWidth);height:var(--introModule_hand_svgHeight);display:block;}.tryIt-container.svelte-1jfcowt .hand-anim:where(.svelte-1jfcowt) .hand-fill:where(.svelte-1jfcowt) {fill:var(--introModule_hand_fill);}.tryIt-container.svelte-1jfcowt .hand-anim:where(.svelte-1jfcowt) .hand-stroke:where(.svelte-1jfcowt) {fill:none;stroke:var(--introModule_hand_stroke);stroke-width:var(--introModule_hand_strokeWidth);stroke-linecap:round;}\n\n@keyframes svelte-1jfcowt-intro-ripple-grow {\n  0% {\n    inset: 0;\n  }\n  60% {\n    inset: var(--introModule_ripple_inset_top) var(--introModule_ripple_inset_right) var(--introModule_ripple_inset_bottom) var(--introModule_ripple_inset_left);\n  }\n  100% {\n    inset: var(--introModule_ripple_inset_top) var(--introModule_ripple_inset_right) var(--introModule_ripple_inset_bottom) var(--introModule_ripple_inset_left);\n  }\n}\n@keyframes svelte-1jfcowt-intro-ripple-fade {\n  0% {\n    opacity: 1;\n  }\n  20% {\n    opacity: 1;\n  }\n  60% {\n    opacity: 0;\n  }\n  100% {\n    opacity: 0;\n  }\n}\n@keyframes svelte-1jfcowt-intro-hand-tap {\n  0% {\n    transform: translateX(0) translateY(0) rotate(0) scale(1);\n  }\n  10% {\n    transform: translateX(-10px) translateY(-20px) rotate(-40deg) scale(0.9);\n  }\n  35% {\n    transform: translateX(0) translateY(0) rotate(15deg) scale(1);\n  }\n  100% {\n    transform: translateX(0) translateY(0) rotate(0) scale(1);\n  }\n}\n@keyframes svelte-1jfcowt-intro-bump {\n  0% {\n    transform: scale(1);\n  }\n  5% {\n    transform: scale(1);\n  }\n  10% {\n    transform: scale(0.8);\n  }\n  20% {\n    transform: scale(1);\n  }\n  100% {\n    transform: scale(1);\n  }\n}"};function qt(t,e){t.global.css.add(Ht),t.component((t=>{const{state:o,gallery:n}=e,{buttonText:i,animateHand:a,onCtaClick:r}=o;t.push(`<div class="tryIt-container svelte-1jfcowt"><div class="cta-wrapper svelte-1jfcowt"><button data-elementid="start_cta" data-elementtype="button"${E("data-elementname",i)} data-interactiontype="start"${gt("svelte-1jfcowt",void 0,{"has-hand-anim":a})}><div class="cta-text svelte-1jfcowt">${S(i)}</div> `),a?(t.push("\x3c!--[--\x3e"),t.push('<div class="ripple svelte-1jfcowt"></div>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</button> "),a?(t.push("\x3c!--[--\x3e"),t.push('<div class="hand-anim svelte-1jfcowt" aria-hidden="true"><svg viewBox="0 0 518 658" xmlns="http://www.w3.org/2000/svg" class="svelte-1jfcowt"><path class="hand-fill svelte-1jfcowt" d="M139.234 341.909V67.9226C139.234 53.292 145.203 40.0053 154.838 30.3866C175.516 9.69329 209.234 9.70929 229.912 30.3866C239.547 40.0064 245.516 53.288 245.516 67.9226V148.699C254.536 141.662 265.854 137.454 278.13 137.454C292.745 137.454 306.048 143.443 315.666 153.058C325.302 162.693 331.27 175.979 331.27 190.61V194.146C340.291 187.11 351.609 182.901 363.885 182.901C378.499 182.901 391.802 188.891 401.421 198.505C409.785 206.87 415.38 217.984 416.728 230.333C425.785 223.146 437.238 218.844 449.623 218.844C464.254 218.844 477.541 224.833 487.175 234.448C496.795 244.083 502.779 257.369 502.779 272V412.373C502.779 438.608 503.92 455.092 498.212 481.513C493.831 501.664 487.134 519.816 479.54 537.461C462.846 576.289 432.461 604.503 395.878 622.055C367.378 635.732 335.086 642.883 302.638 643.461C270.174 644.039 237.502 638.07 208.258 625.477C169.898 608.972 137.285 581.128 118.425 541.8C105.477 514.816 90.6385 488.097 75.9878 461.753C55.6131 425.06 35.5918 389.018 20.8838 352.665C15.8316 340.165 13.6234 326.692 15.889 314.4C20.6598 288.373 45.5823 272.597 71.217 277.296C83.6806 279.598 95.4463 286.598 103.925 297.301L139.234 341.909Z"></path><path class="hand-stroke svelte-1jfcowt" d="M244.917 166V269M330.917 201V305M419.917 246V326M139.234 341.909V67.9226C139.234 53.292 145.203 40.0053 154.838 30.3866C175.516 9.69329 209.234 9.70929 229.912 30.3866C239.547 40.0064 245.516 53.288 245.516 67.9226V148.699C254.536 141.662 265.854 137.454 278.13 137.454C292.745 137.454 306.048 143.443 315.666 153.058C325.302 162.693 331.27 175.979 331.27 190.61V194.146C340.291 187.11 351.609 182.901 363.885 182.901C378.499 182.901 391.802 188.891 401.421 198.505C409.785 206.87 415.38 217.984 416.728 230.333C425.785 223.146 437.238 218.844 449.623 218.844C464.254 218.844 477.541 224.833 487.175 234.448C496.795 244.083 502.779 257.369 502.779 272V412.373C502.779 438.608 503.92 455.092 498.212 481.513C493.831 501.664 487.134 519.816 479.54 537.461C462.846 576.289 432.461 604.503 395.878 622.055C367.378 635.732 335.086 642.883 302.638 643.461C270.174 644.039 237.502 638.07 208.258 625.477C169.898 608.972 137.285 581.128 118.425 541.8C105.477 514.816 90.6385 488.097 75.9878 461.753C55.6131 425.06 35.5918 389.018 20.8838 352.665C15.8316 340.165 13.6234 326.692 15.889 314.4C20.6598 288.373 45.5823 272.597 71.217 277.296C83.6806 279.598 95.4463 286.598 103.925 297.301L139.234 341.909Z"></path></svg></div>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div></div>")}))}var Nt=new WeakSet;function Vt(){this.emitModuleEnd()}const Xt={videoModule:class extends wt{constructor({config:t,...e}){var o;super({...e,config:t}),this.Component=Ct,this.hasDuration=!t.loop,bt(this),this.coverAssets.push(null!==(o=t.intro)&&void 0!==o?o:t.video),this.cover=this.coverAssets[0],this.state={textBox:t.textBox}}start(t){super.start(t),this.timeline=t.createTimeline();const e=this.config;e.intro&&this.timeline.placeOnTimeline(It(`${this.id}_intro`,e.intro,t),"end");const o=It(this.id,e.video,t);this.timeline.placeOnTimeline(o,"end",{loop:e.loop}),e.loop||o.on("nodeend",this.emitModuleEnd)}},toggleModule:class extends $t{static itemsKey="options";static nodePrefix="option";constructor(t){super(t),this.Component=zt}mapItem(t){return{label:t.label,note:t.note}}},modesModule:class extends $t{static itemsKey="modes";static nodePrefix="mode";constructor(t){super(t),this.Component=Pt}mapItem(t){return{title:t.title,description:t.description,image:t.image}}},tryItModule:class extends wt{constructor({config:t,...o}){var n;super({...o,config:t}),r(this,Rt),bt(this);const{introVideo:i}=t;this.coverAssets.push(null!==(n=i.intro)&&void 0!==n?n:i.loop),this.cover=this.coverAssets[0],this.state={ctaText:t.ctaText,animationConfig:t.animationConfig,showCta:!0,onCtaClick:e(Rt,this,Dt).bind(this)}}start(t){super.start(t),this.Component=Lt,this.timeline=t.createTimeline();const{introVideo:e,mainVideo:o}=this.config;if(e.intro&&this.timeline.placeOnTimeline(It(`${this.id}_intro_intro`,e.intro,t)),this.timeline.placeOnTimeline(It(`${this.id}_intro_loop`,e.loop,t),"end",{loop:!0}),o){this.mainTimeline=t.createTimeline(),o.intro&&this.mainTimeline.placeOnTimeline(It(`${this.id}_main_intro`,o.intro,t));const e=It(`${this.id}_main_loop`,o.loop,t);this.mainTimeline.placeOnTimeline(e,"end",{loop:!0})}}play(){this.state.showCta=!0,super.play()}},imageModule:class extends wt{constructor({config:t,...e}){super({...e,config:t}),this.Component=Ot,bt(this),this.coverAssets.push(t.image),this.cover=this.coverAssets[0],this.showCover=!0,this.state={textBox:t.textBox}}start(t){super.start(t),this.timeline=t.createTimeline();const e=It(this.id,this.config.image,t);delete e.manifestRef.availableEncodeProfiles,e.manifestRef.assetType="image",this.timeline.placeOnTimeline(e,0,{loop:!0})}},introModule:class extends wt{constructor({config:t,...o}){var n,i,a;super({...o,config:t}),r(this,Nt),bt(this),this.coverAssets.push(null!==(n=t.intro)&&void 0!==n?n:t.video),this.cover=this.coverAssets[0],this.state={buttonText:t.buttonText,animateHand:null===(i=null!==(a=t.animateHand)&&void 0!==a?a:t.animatedHand)||void 0===i||i,onCtaClick:e(Nt,this,Vt).bind(this)}}start(t){super.start(t),this.Component=qt,this.timeline=t.createTimeline();const e=this.config;e.intro&&this.timeline.placeOnTimeline(It(`${this.id}_intro`,e.intro,t)),this.timeline.placeOnTimeline(It(`${this.id}_loop`,e.video,t),"end",{loop:!0})}play(){this.timeline?this.player.switchTimeline(this.timeline):this.setPosition()}}};class Ut{#a=null;#r=!1;#s={};#l="ekonovar";#d=0;#c=0;#u={variantId:this.#l,itemIndex:0,moduleIndex:0};#p=ft((()=>{var t;return null===(t=this.#s)||void 0===t?void 0:t[this.#l]}));#v=ft((()=>{var t;return null===(t=this.#p())||void 0===t?void 0:t[this.#d]}));#h=ft((()=>{var t,e;return this.#_?null===(e=this.#p())||void 0===e||null===(e=e[this.#u.itemIndex])||void 0===e?void 0:e.modules[this.#u.moduleIndex]:null===(t=this.#v())||void 0===t?void 0:t.modules[this.#c]}));#g=ft((()=>{var t;return(null===(t=this.#p())||void 0===t?void 0:t.flatMap((t=>t.modules)))||[]}));#x=!1;#m=!1;#_=!1;#f=ft((()=>!(this.#u.itemIndex===this.activeItemIndex&&this.#u.moduleIndex===this.activeModuleIndex)));#b=!1;set introModule(t){this.#a=t}set introModulePlayed(t){this.#r=t}set variants(t){this.#s=t}set activeVariant(t){this.#l=t}set activeItemIndex(t){this.#d=t}set activeModuleIndex(t){this.#c=t}set playingModulePosition(t){this.#u=t}set playerLoaded(t){this.#x=t}set paused(t){this.#m=t}set startedPlaying(t){this.#_=t}set themeLoaded(t){this.#b=t}get introModule(){return this.#a}get introModulePlayed(){return this.#r}get variants(){return this.#s}get activeVariant(){return this.#l}get availableVariants(){return Object.keys(this.#s)}get activeItemIndex(){return this.#d}get activeModuleIndex(){return this.#c}get playingModulePosition(){return this.#u}get currentItemsList(){return this.#p()}get currentItem(){return this.#v()}get currentModule(){return this.#h()}get playerLoaded(){return this.#x}get paused(){return this.#m}get startedPlaying(){return this.#_}get seeking(){return this.#f()}get currentModulesList(){return this.#g()}get themeLoaded(){return this.#b}}const Yt={assetsDeliveryBase:"https://{{env}}assets.eko.com",galleryAppDelivery:"https://{{env}}play.eko.com/video-apps/eko-gallery-app"};function Gt(t,...e){function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function n(t,e){if(Array.isArray(e)){Array.isArray(t)||(t=Array.isArray(t)?t.slice():[]);const i=Math.max(t.length,e.length);for(let a=0;a<i;a++){const i=t[a],r=e[a];null!==r&&(void 0!==r&&(o(i)&&o(r)?t[a]=n({...i},r):Array.isArray(i)&&Array.isArray(r)?t[a]=n(i.slice(),r):o(r)?t[a]=n({},r):Array.isArray(r)?t[a]=n([],r):t[a]=r))}return t}if(o(e)){o(t)||(t={});for(const i of Object.keys(e)){const a=t[i],r=e[i];o(a)&&o(r)?t[i]=n({...a},r):Array.isArray(a)&&Array.isArray(r)?t[i]=n(a.slice(),r):o(r)?t[i]=n({},r):Array.isArray(r)?t[i]=n([],r):void 0!==r&&(t[i]=r)}return t}return e}for(const o of e)null!==o&&n(t,o);return t}const Kt=["elementid","elementtype","elementname","interactiontype"];const Zt="ekonovar",Jt=2,Qt=5,te=10,ee=(t,e)=>{let o=t.findIndex((t=>t.variantAware&&t.id===e.id));return-1===o&&(o=t.findIndex((t=>t.variantAware))),-1===o?0:o};var oe=new WeakMap,ne=new WeakMap,ie=new WeakMap,ae=new WeakMap,re=new WeakMap,se=new WeakMap,le=new WeakSet;class de{constructor(t){var o,l,d,c,u;r(this,le),i(this,oe,void 0),i(this,ne,void 0),i(this,ie,void 0),i(this,ae,void 0),i(this,re,void 0),i(this,se,void 0),s(this,"version","0.0.23"),bt(this),a(oe,this,(null===(o=crypto)||void 0===o||null===(l=o.randomUUID)||void 0===l?void 0:l.call(o))||`eko-gallery-${Date.now()}`),a(ae,this,t),a(se,this,(null==t?void 0:t.onEvent)||(()=>{})),a(ne,this,new Ut),a(re,this,((t="")=>("production"===t&&(t=""),Object.fromEntries(Object.entries(Yt).map((([e,o])=>[e,o.replaceAll("{{env}}",t)])))))(null==t||null===(d=t.options)||void 0===d?void 0:d.galleryEnv)),a(ie,this,[]);const p=null==t||null===(c=t.instance)||void 0===c||null===(c=c.data)||void 0===c||null===(c=c.blocks)||void 0===c||null===(c=c.blocksArr)||void 0===c||null===(c=c.find((t=>"GalleryBlock"===t.blockType)))||void 0===c?void 0:c.config;p?(e(le,this,ce).call(this,p.items),e(le,this,ue).call(this,p.items),function(t,e){function o(e){window.EkoAnalytics("registerContextPacker",{tag:t,...e})}function n(e){return function(...o){return o.pop()!==t?null:e(...o)}}"undefined"!=typeof window&&window.EkoAnalytics&&(o({schema:"iglu:com.helloeko/gallery-app/jsonschema/1-0-0",match:/.*/,getData:n((()=>{var t,o,n,i,a;const r=null===(t=e.currentItem)||void 0===t?void 0:t.modules[e.activeModuleIndex];return{itemid:(null===(o=e.currentItem)||void 0===o?void 0:o.id)||"",itemindex:e.activeItemIndex,totalitems:(null===(n=e.currentItemsList)||void 0===n?void 0:n.length)||0,itemname:(null===(i=e.currentItem)||void 0===i?void 0:i.name)||"",moduleid:(null==r?void 0:r.id)||"",modulename:(null==r?void 0:r.name)||"",moduletype:(null==r?void 0:r.config.itemType)||"",moduleindex:e.activeModuleIndex,totalmodules:(null===(a=e.currentItem)||void 0===a?void 0:a.modules.length)||0,version:"0.0.23"}}))}),o({schema:"iglu:com.helloeko/implementation_interactions/jsonschema/1-0-6",match:"interaction",getData:n((t=>t))}))}(n(oe,this),n(ne,this))):console.warn("[eko-gallery-app] Gallery initiated without an instance, results will be empty");const v=null==t||null===(u=t.instance)||void 0===u||null===(u=u.data)||void 0===u||null===(u=u.blocks)||void 0===u||null===(u=u.blocksArr)||void 0===u||null===(u=u.find((t=>"FullScreenIntro"===t.blockType)))||void 0===u?void 0:u.config;v&&(n(ne,this).introModule=new Xt.introModule({position:{variantId:"intro",itemIndex:0,moduleIndex:0},config:{itemType:"introModule",...v},gallery:this}))}dispose(){var t,e;"undefined"!=typeof window&&(null===(t=(e=window).EkoAnalytics)||void 0===t||t.call(e,"reset",n(oe,this)),function(){if("undefined"!=typeof window){for(const t of Bt)delete window[t];Bt.clear()}}())}start(t){n(ne,this).playerLoaded=!0,n(ie,this).forEach((e=>{e.start(t)})),a(ie,this,null),e(le,this,pe).call(this,t),n(ne,this).introModule?(n(ne,this).introModule.start(t),n(ne,this).introModule.moduleEndListener=()=>{n(ne,this).introModulePlayed=!0,n(ne,this).currentModule.play()},n(ne,this).introModule.play()):n(ne,this).currentModule.play()}selectVariant(t){const{variants:e,currentItem:o,activeItemIndex:i,activeModuleIndex:a}=n(ne,this);if(e[t]){const i=ee(e[t],o);n(ne,this).activeVariant=t,n(ne,this).activeItemIndex=i,n(ne,this).activeModuleIndex=0}else n(ne,this).activeVariant=Zt,n(ne,this).activeItemIndex=0,n(ne,this).activeModuleIndex=0;i===n(ne,this).activeItemIndex&&a===n(ne,this).activeModuleIndex&&n(ne,this).currentModule.play()}selectItem(t){e(le,this,he).call(this);const o=n(ne,this);t!==o.activeItemIndex&&(o.activeItemIndex=t,o.activeModuleIndex=0)}selectItemAndStep(t,o){e(le,this,he).call(this);const i=n(ne,this);t===i.activeItemIndex&&o===i.activeModuleIndex||(i.activeItemIndex=t,i.activeModuleIndex=o)}next(){e(le,this,he).call(this)||e(le,this,_e).call(this)}prev(){if(e(le,this,he).call(this))return;const t=n(ne,this);if(t.activeModuleIndex=t.activeModuleIndex-1,!t.currentItem.modules[t.activeModuleIndex])if(t.currentItemsList[t.activeItemIndex-1]){t.activeItemIndex=t.activeItemIndex-1;const e=t.currentItemsList[t.activeItemIndex];t.activeModuleIndex=e.modules.length-1}else t.activeModuleIndex=t.activeModuleIndex+1}getCoverUrl(t,e){var o,i,a,r;const s=(null==t||null===(o=t.entity)||void 0===o?void 0:o.entityId)||(null==t?void 0:t.assetId),l=null!==(i=null==t||null===(a=t.entity)||void 0===a?void 0:a.entityRevision)&&void 0!==i?i:null==t?void 0:t.assetRevision;if(!s)throw new Error(`[getCoverUrl] No assetId found in assetConfig: ${JSON.stringify(t||{},null,2)}`);if(!l&&0!==l)throw new Error(`[getCoverUrl] No assetRevision found for asset ${s}.`);let d;return null!==(r=n(ae,this))&&void 0!==r&&null!==(r=r.coverAssetsMap)&&void 0!==r&&r[s]?(d=new URL(n(ae,this).coverAssetsMap[s]),/^[a-z0-9]*assets.eko.com$/.test(d.host)&&e&&(d.pathname=d.pathname.replace(".png",".webp"))):(d=new URL(`${n(re,this).assetsDeliveryBase}/image/${s}/${l}?startOffset=0`),d.pathname+=e?".webp":".png"),e&&d.searchParams.set("width",e),d.href}track(t,...e){var o,i;"undefined"!=typeof window&&(null===(o=(i=window).EkoAnalytics)||void 0===o||o.call(i,"track",t,...e,n(oe,this)))}interaction(t,e){const o=n(oe,this);return i=>{if("undefined"!=typeof window){var a,r;const t=function(t,e={}){var o,n,i,a;const r=null==t||null===(o=t.currentTarget)||void 0===o?void 0:o.dataset,s=null==t||null===(n=t.target)||void 0===n?void 0:n.dataset,l=Object.fromEntries(Kt.map((t=>{const o=(null==r?void 0:r[t])||(null==s?void 0:s[t])||(null==e?void 0:e[t])||"";return[t,String(o)]})));return"left"===(null==t||null===(i=t.detail)||void 0===i?void 0:i.direction)?l.interactiontype="swipe_next":"right"===(null==t||null===(a=t.detail)||void 0===a?void 0:a.direction)&&(l.interactiontype="swipe_prev"),l}(i,e);null===(a=(r=window).EkoAnalytics)||void 0===a||a.call(r,"track","interaction",t,o),n(se,this).call(this,"interaction",t)}t(i)}}preloadVariantsCovers(t,e){const{activeVariant:o,variants:i}=n(ne,this);jt(Object.entries(i).filter((([t])=>t!==o)).map((([,o])=>{const n=ee(o,t);return this.getCoverUrl(o[n].modules[0].cover,e)})))}get uuid(){return n(oe,this)}get state(){return n(ne,this)}get urls(){return n(re,this)}}function ce(t){const e={};for(let o of t)for(let t of Object.keys(o.variants||{}))e[t]=[];e[Zt]=[],n(ne,this).variants=e}function ue(t){const o=(t=[],o)=>{const n=[];for(let[i,a]of t.entries()){if(!Xt[a.itemType])throw new Error(`Unknown module type ${a.itemType}`);const t=new Xt[a.itemType]({position:{...o,moduleIndex:i},config:a,gallery:this});t.moduleEndListener=e(le,this,ve).bind(this),n.push(t)}return n},i=Object.entries(n(ne,this).variants);for(const e of t)if("galleryItemV2"===e.itemType){const{variants:t,...o}=e;for(const[n,a]of i){const i=null==t?void 0:t[n];if(!i&&e.variantSpecific)continue;let r={...o};i&&(r=Gt({},o,i)),a.push({...r,variantAware:!!i})}}for(const[t,e]of i)if(0!==e.length)for(const[i,r]of e.entries())r.modules=o(r.modules,{variantId:t,itemIndex:i}),a(ie,this,[...n(ie,this),...r.modules]);else delete n(ne,this).variants[t]}function pe(t){const e=Object.entries(n(ne,this).variants);for(const[o,n]of e){const i=e.filter((([t])=>t!==o));for(const[e,o]of n.entries()){const a=o.modules,r=n.filter((t=>t!==o)).map((t=>t.modules[0])),s=i.map((([,t])=>({nodeId:t[ee(t,o)].modules[0].timeline.getNodesAtTime(0)[0].id,weight:te})));for(const[o,i]of a.entries()){let l=a[o+1];l||(l=n[(e+1)%n.length].modules[0]);const d=l.timeline.getNodesAtTime(0)[0],c=r.filter((t=>t!==l)).map((t=>t.timeline.getNodesAtTime(0)[0])),u=[{nodeId:d.id,weight:Jt},...c.map((t=>({nodeId:t.id,weight:Qt}))),...s];for(const e of i.timeline.placements){t.getNode(e.nodeId).setChildren(u)}}}}}function ve(){const t=n(ne,this),o=t.currentItem.modules;o.length>1&&t.activeModuleIndex===o.length-1?t.activeModuleIndex=0:e(le,this,_e).call(this)}function he(){const{introModule:t,introModulePlayed:e}=n(ne,this);return!(!t||e)&&(n(ne,this).introModulePlayed=!0,!0)}function _e(){const t=n(ne,this);t.activeModuleIndex=t.activeModuleIndex+1,t.currentItem.modules[t.activeModuleIndex]||(t.currentItemsList[t.activeItemIndex+1]?(t.activeItemIndex=t.activeItemIndex+1,t.activeModuleIndex=0):t.activeModuleIndex=t.activeModuleIndex-1)}const ge={hash:"svelte-er27y2",code:".eko-gallery-app {--nav_gap: 10px;--nav_padding: 12px 16px;--nav_bgColor: #FFFFFF;--nav_justifyContent: center;--nav_tray_margin: 0;--nav_tray_padding: 2px;--nav_tray_width: fit-content;--nav_tray_maxWidth: 100%;--nav_tray_bgColor: transparent;--nav_tray_border: 0;--nav_tray_borderRadius: 0;--nav_tray_boxShadow: none;--nav_tray_overflow: auto;--nav_button_width: fit-content;--nav_button_bgColor: #FFFFFF;--nav_button_borderRadius: 100px;--nav_button_paddingTop: 8px;--nav_button_paddingBottom: var(--nav_button_paddingTop);--nav_button_paddingLeft: 12px;--nav_button_paddingRight: var(--nav_button_paddingLeft);--nav_button_boxShadow: 0 0 0 1px #E7E7E7;--nav_button_gap: 2px;--nav_button_selected_boxShadow: 0 0 0 1px #000000;--nav_button_selected_bgColor: var(--nav_button_bgColor);--nav_button_text_color: #000000;--nav_button_text_fontSize: 14px;--nav_button_text_fontWeight: 500;--nav_button_text_fontFamily: var(--fontName);--nav_button_text_lineHeight: 120%;--nav_button_text_letterSpacing: 0px;--nav_button_text_align: center;--nav_button_selected_text_color: var(--nav_button_text_color);--nav_button_selected_text_fontWeight: var(--nav_button_text_fontWeight);--nav_button_image_borderRadius: calc(var(--nav_button_borderRadius) - var(--nav_button_paddingTop));--nav_button_icon_size: 20px;--nav_button_icon_filter: none;--nav_button_selected_icon_filter: none;--nav_arrow_color: var(--secondaryColor);--nav_arrow_bgColor: transparent;--nav_arrow_borderRadius: 100%;--nav_arrow_padding: 9px;--nav_arrow_size: 30px;--nav_arrow_boxShadow: none;--nav_arrow_iconOpacity: 0.6;--nav_arrow_bgColor_hover: #FFFFFF;--nav_arrow_boxShadow_hover: 0 0 8px 0 rgba(0, 0, 0, 0.12);}.nav-buttons-container.svelte-er27y2 {width:100%;background-color:var(--nav_bgColor);display:flex;box-sizing:border-box;text-align:center;justify-content:var(--nav_justifyContent);align-items:center;position:relative;flex-shrink:0;opacity:0;transition:opacity 0.2s ease-in-out;}.nav-buttons-container.theme-loaded.svelte-er27y2 {opacity:1;}.nav-buttons-container.svelte-er27y2 :where(.svelte-er27y2) {touch-action:auto;}.nav-buttons.svelte-er27y2 {display:flex;margin:var(--nav_tray_margin);gap:var(--nav_gap);height:100%;align-items:center;padding:var(--nav_tray_padding, var(--nav_padding));background-color:var(--nav_tray_bgColor);border:var(--nav_tray_border);border-radius:var(--nav_tray_borderRadius);box-shadow:var(--nav_tray_boxShadow);box-sizing:border-box;overflow-x:var(--nav_tray_overflow);scrollbar-width:none;max-width:var(--nav_tray_maxWidth);width:var(--nav_tray_width);overflow-y:hidden;overscroll-behavior-y:none;}.nav-button.svelte-er27y2 {display:flex;outline:none;flex-shrink:0;height:100%;width:var(--nav_button_width);border:none;cursor:pointer;outline-color:#3191fc;align-items:center;gap:var(--nav_button_gap);background-color:var(--nav_button_bgColor);border-radius:var(--nav_button_borderRadius);\n  /* eslint-disable-next-line max-len */padding:var(--nav_button_paddingTop) var(--nav_button_paddingRight) var(--nav_button_paddingBottom) var(--nav_button_paddingLeft);box-shadow:var(--nav_button_boxShadow);}.nav-button.svelte-er27y2 .nav-button-icon:where(.svelte-er27y2) {width:var(--nav_button_icon_size);height:var(--nav_button_icon_size);flex:0 0 auto;object-fit:contain;filter:var(--nav_button_icon_filter);pointer-events:none;display:block;}.nav-button.svelte-er27y2 span:where(.svelte-er27y2) {flex:1 0 0;transition:color 0.2s ease-in-out;color:var(--nav_button_text_color);font-weight:var(--nav_button_text_fontWeight);font-size:var(--nav_button_text_fontSize);font-family:var(--nav_button_text_fontFamily);line-height:var(--nav_button_text_lineHeight);letter-spacing:var(--nav_button_text_letterSpacing);text-align:var(--nav_button_text_align);}.nav-button.selected.svelte-er27y2 {background-color:var(--nav_button_selected_bgColor);box-shadow:var(--nav_button_selected_boxShadow);}.nav-button.selected.svelte-er27y2 .nav-button-icon:where(.svelte-er27y2) {filter:var(--nav_button_selected_icon_filter);}.nav-button.selected.svelte-er27y2 span:where(.svelte-er27y2) {color:var(--nav_button_selected_text_color);font-weight:var(--nav_button_selected_text_fontWeight);}.nav-button.svelte-er27y2:focus-visible {outline-offset:2px;outline-style:solid;outline-width:2px;}"};const xe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20320%20512'%3e%3cpath%20d='M310.6%20233.4c12.5%2012.5%2012.5%2032.8%200%2045.3l-192%20192c-12.5%2012.5-32.8%2012.5-45.3%200s-12.5-32.8%200-45.3L242.7%20256%2073.4%2086.6c-12.5-12.5-12.5-32.8%200-45.3s32.8-12.5%2045.3%200l192%20192z'/%3e%3c/svg%3e",me={hash:"svelte-1al44kl",code:'.nav-button.svelte-1al44kl {height:var(--nav_arrow_size, 30px);width:var(--nav_arrow_size, 30px);border-radius:var(--nav_arrow_borderRadius, 100%);background-color:var(--nav_arrow_bgColor, transparent);padding:var(--nav_arrow_padding, 9px);box-shadow:var(--nav_arrow_boxShadow, none);box-sizing:border-box;display:flex;align-items:center;justify-content:center;pointer-events:auto;border:0;opacity:100%;cursor:pointer;transition:background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;position:relative;}.nav-button.prev.svelte-1al44kl {transform:rotate(180deg);}.nav-button.hidden.svelte-1al44kl {opacity:0;pointer-events:none;}.nav-button.svelte-1al44kl::before {content:"";position:absolute;top:-8px;right:-8px;bottom:-8px;left:-8px;}.nav-button.svelte-1al44kl img:where(.svelte-1al44kl) {height:100%;opacity:var(--nav_arrow_iconOpacity, 1);}'};function fe(t,e){t.global.css.add(me),t.component((t=>{const{type:o,hidden:n=!1,onClick:i,gallery:a}=e,r="prev"===o?"Previous item":"Next item";t.push(`<button${gt(`nav-button ${_t(o)}`,"svelte-1al44kl",{hidden:n})}${E("aria-label",r)}${E("data-elementid",`gallery_${_t(o)}`)} data-elementtype="button"${E("data-elementname",r)} data-interactiontype="navigation"><img${E("src",xe)} alt="" aria-hidden="true" class="svelte-1al44kl"/></button>`)}))}const be={hash:"svelte-1mxltt0",code:'.eko-gallery-app {--stepsIndicator_container_bottom: 12px;--stepsIndicator_container_left: 8px;--stepsIndicator_container_right: auto;--stepsIndicator_container_width: calc(100% - 16px);--stepsIndicator_padding: 4px 4px;--stepsIndicator_margin: 0 16px;--stepsIndicator_gap: 8px;--stepsIndicator_justifyContent: flex-start;--stepsIndicator_mask_left: linear-gradient(to left, black calc(100% - 20px), transparent);--stepsIndicator_mask_right: linear-gradient(to right, black calc(100% - 20px), transparent);\n  /* stylelint-disable-next-line max-line-length */--stepsIndicator_mask_both: linear-gradient(\n      to right,\n      transparent,\n      black 20px,\n      black calc(100% - 20px),\n      transparent\n  );--stepsIndicator_button_padding: 8px 12px;--stepsIndicator_button_border: #E4E5E8 solid 1px;--stepsIndicator_button_borderRadius: 100px;--stepsIndicator_button_bgColor: #FBFBFB;--stepsIndicator_button_bgColor_hover: #F3F4F6;--stepsIndicator_button_bgColor_active: #E4E5E8;--stepsIndicator_button_boxShadow: none;--stepsIndicator_button_color: #030303;--stepsIndicator_button_fontSize: 12px;--stepsIndicator_button_fontWeight: 500;--stepsIndicator_button_lineHeight: 16px;--stepsIndicator_button_active_bgColor: #014FD3;--stepsIndicator_button_active_borderColor: #014FD3;--stepsIndicator_button_active_boxShadow: none;--stepsIndicator_button_active_color: #FFFFFF;--stepsIndicator_span_display: block;--stepsIndicator_span_width: auto;--stepsIndicator_span_height: auto;--stepsIndicator_span_borderRadius: 0;--stepsIndicator_span_bgColor: transparent;--stepsIndicator_span_border: 0;--stepsIndicator_span_boxShadow: none;--stepsIndicator_span_fontSize: inherit;--stepsIndicator_span_color: inherit;--stepsIndicator_span_active_width: var(--stepsIndicator_span_width);--stepsIndicator_span_active_height: var(--stepsIndicator_span_height);--stepsIndicator_span_active_bgColor: var(--stepsIndicator_span_bgColor);--stepsIndicator_span_active_border: var(--stepsIndicator_span_border);--stepsIndicator_span_active_boxShadow: var(--stepsIndicator_span_boxShadow);--stepsIndicator_arrow_display: flex;}.steps-indicator-container.svelte-1mxltt0 {width:var(--stepsIndicator_container_width);position:absolute;bottom:var(--stepsIndicator_container_bottom);left:var(--stepsIndicator_container_left);right:var(--stepsIndicator_container_right);animation-duration:0.75s;animation-timing-function:cubic-bezier(0.36, 0, 0, 1);animation-fill-mode:both;animation-delay:0.15s;\n  animation-name: svelte-1mxltt0-gallery-steps-appear-anim;}.steps-indicator-container.mobile-indicators.svelte-1mxltt0 {display:var(--stepsIndicator_mobile_display, none);}.steps-indicator.svelte-1mxltt0 {--stepSize: 6px;--stepPadding: 7px;padding:var(--stepsIndicator_padding);margin:var(--stepsIndicator_margin);display:flex;gap:var(--stepsIndicator_gap);align-items:center;justify-content:var(--stepsIndicator_justifyContent);overflow-x:auto;pointer-events:all;scrollbar-width:none;}.steps-indicator.fade-right.svelte-1mxltt0 {mask-image:var(--stepsIndicator_mask_right);}.steps-indicator.fade-left.svelte-1mxltt0 {mask-image:var(--stepsIndicator_mask_left);}.steps-indicator.fade-left.fade-right.svelte-1mxltt0 {mask-image:var(--stepsIndicator_mask_both);}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0) {position:relative;overflow:hidden;}.steps-indicator.with-duration.svelte-1mxltt0 .step-button:where(.svelte-1mxltt0) span:where(.svelte-1mxltt0):after {transition:0.3s ease-in-out;transition-property:opacity, width;}.step-button.svelte-1mxltt0 {min-width:24px;min-height:24px;padding:var(--stepsIndicator_button_padding);border:var(--stepsIndicator_button_border);background-color:var(--stepsIndicator_button_bgColor);box-shadow:var(--stepsIndicator_button_boxShadow);border-radius:var(--stepsIndicator_button_borderRadius);font-size:var(--stepsIndicator_button_fontSize);font-weight:var(--stepsIndicator_button_fontWeight);line-height:var(--stepsIndicator_button_lineHeight);color:var(--stepsIndicator_button_color);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;pointer-events:all;flex-shrink:0;transition:all 0.3s ease-in-out;outline-color:#3191fc;}.step-button.active.svelte-1mxltt0 {background-color:var(--stepsIndicator_button_active_bgColor);color:var(--stepsIndicator_button_active_color);box-shadow:var(--stepsIndicator_button_active_boxShadow);border-color:var(--stepsIndicator_button_active_borderColor);}.step-button.active.svelte-1mxltt0:after {opacity:100%;\n  animation: svelte-1mxltt0-stepDurationAnimation var(--stepDuration) linear forwards;animation-play-state:running;}.step-button.svelte-1mxltt0:hover:not(.active) {background:var(--stepsIndicator_button_bgColor_hover);}.step-button.svelte-1mxltt0:active:not(.active) {background:var(--stepsIndicator_button_bgColor_active);}.step-button.svelte-1mxltt0:focus {outline-offset:4px;outline-width:2px;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0) {display:var(--stepsIndicator_span_display);width:var(--stepsIndicator_span_width);height:var(--stepsIndicator_span_height);border-radius:var(--stepsIndicator_span_borderRadius);background-color:var(--stepsIndicator_span_bgColor);border:var(--stepsIndicator_span_border);box-shadow:var(--stepsIndicator_span_boxShadow);font-size:var(--stepsIndicator_span_fontSize);color:var(--stepsIndicator_span_color);box-sizing:border-box;pointer-events:none;white-space:nowrap;}.step-button.svelte-1mxltt0 span:where(.svelte-1mxltt0):after {content:"";background-color:rgba(0, 0, 0, 0.6);position:absolute;border-radius:var(--stepSize);width:0;height:100%;top:0;left:-100%;opacity:0;transform:translateX(0);animation-play-state:paused;}.step-button.active.svelte-1mxltt0 span:where(.svelte-1mxltt0) {width:var(--stepsIndicator_span_active_width);height:var(--stepsIndicator_span_active_height);background-color:var(--stepsIndicator_span_active_bgColor);border:var(--stepsIndicator_span_active_border);box-shadow:var(--stepsIndicator_span_active_boxShadow);}.step-arrow.svelte-1mxltt0 {display:var(--stepsIndicator_arrow_display);width:34px;height:34px;position:absolute;z-index:10;bottom:4px;border:1px solid #C4C8CF;border-radius:50%;background-color:#FFFFFF;box-shadow:0 2px 3px 0 rgba(0, 0, 0, 0.05);box-sizing:border-box;align-items:center;justify-content:center;pointer-events:none;cursor:pointer;opacity:0;}.step-arrow.svelte-1mxltt0:hover {background:#F6F6F7;}.step-arrow.svelte-1mxltt0:active {background:#E4E5E8;}.step-arrow-prev.svelte-1mxltt0 {left:3px;transform:translateX(-100%);\n  animation: svelte-1mxltt0-arrow-left-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-prev.visible.svelte-1mxltt0 {pointer-events:auto;\n  animation: svelte-1mxltt0-arrow-left-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.svelte-1mxltt0 {right:3px;transform:translateX(100%);\n  animation: svelte-1mxltt0-arrow-right-disappear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}.step-arrow-next.visible.svelte-1mxltt0 {pointer-events:auto;\n  animation: svelte-1mxltt0-arrow-right-appear 0.3s cubic-bezier(0.36, 0, 0, 1) both;}\n\n@keyframes svelte-1mxltt0-gallery-steps-appear-anim {\n  from {\n    opacity: 0;\n    transform: translate(0, 10px);\n  }\n  to {\n    opacity: 1;\n    transform: translate(0, 0);\n  }\n}\n@keyframes svelte-1mxltt0-gallery-steps-disappear-anim {\n  from {\n    opacity: 1;\n    transform: translate(0, 0);\n  }\n  to {\n    opacity: 0;\n    transform: translate(0, 10px);\n  }\n}\n@keyframes svelte-1mxltt0-arrow-left-appear {\n  from {\n    opacity: 0;\n    transform: translateX(-100%);\n  }\n  to {\n    opacity: 1;\n    transform: translateX(0);\n  }\n}\n@keyframes svelte-1mxltt0-arrow-left-disappear {\n  from {\n    opacity: 1;\n    transform: translateX(0);\n  }\n  to {\n    opacity: 0;\n    transform: translateX(-100%);\n  }\n}\n@keyframes svelte-1mxltt0-arrow-right-appear {\n  from {\n    opacity: 0;\n    transform: translateX(100%);\n  }\n  to {\n    opacity: 1;\n    transform: translateX(0);\n  }\n}\n@keyframes svelte-1mxltt0-arrow-right-disappear {\n  from {\n    opacity: 1;\n    transform: translateX(0);\n  }\n  to {\n    opacity: 0;\n    transform: translateX(100%);\n  }\n}\n@keyframes svelte-1mxltt0-stepDurationAnimation {\n  0% {\n    transform: translateX(0);\n  }\n  100% {\n    transform: translateX(100%);\n  }\n}'};const ye={hash:"svelte-a3r6re",code:".eko-gallery-app {--pauseButton_top: 10px;--pauseButton_right: 10px;--pauseButton_bottom: auto;--pauseButton_left: auto;--pauseButton_size: 32px;--pauseButton_borderRadius: 100%;--pauseButton_border: 1px solid #C4C8CF;--pauseButton_boxShadow: none;--pauseButton_backdropFilter: none;--pauseButton_bgColor: #FFFFFF;--pauseButton_bgColor_hover: #F6F6F7;--pauseButton_bgColor_active: #E4E5E8;--pauseButton_iconSize: 16px;--pauseButton_iconColor: #030303;--pauseButton_playIconFill: none;--pauseButton_playIconStroke: currentColor;--pauseButton_playIconStrokeWidth: 1.5;--pauseButton_pauseIconStrokeWidth: 1.5;--pauseButton_pauseIconStrokeLinecap: butt;--pauseButton_pauseIconScaleY: 1;--pauseButton_pauseIconBarSpread: 0px;}.pause-button.svelte-a3r6re {position:absolute;top:var(--pauseButton_top);right:var(--pauseButton_right);bottom:var(--pauseButton_bottom);left:var(--pauseButton_left);width:var(--pauseButton_size);height:var(--pauseButton_size);padding:0;background:var(--pauseButton_bgColor);border:var(--pauseButton_border);border-radius:var(--pauseButton_borderRadius);box-shadow:var(--pauseButton_boxShadow);backdrop-filter:var(--pauseButton_backdropFilter);-webkit-backdrop-filter:var(--pauseButton_backdropFilter);color:var(--pauseButton_iconColor);display:flex;justify-content:center;align-items:center;pointer-events:auto;transition:background 0.2s ease-in-out;cursor:pointer;outline-color:#3191fc;}.pause-button.svelte-a3r6re:hover {background:var(--pauseButton_bgColor_hover);}.pause-button.svelte-a3r6re:active {background:var(--pauseButton_bgColor_active);}.pause-button.svelte-a3r6re:focus {outline-offset:8px;outline-width:2px;}.pause-button.svelte-a3r6re .pause-button-icon:where(.svelte-a3r6re) {width:var(--pauseButton_iconSize);height:var(--pauseButton_iconSize);pointer-events:none;display:block;}.pause-button.svelte-a3r6re .pause-button-icon--pause:where(.svelte-a3r6re) {fill:none;stroke:currentColor;stroke-width:var(--pauseButton_pauseIconStrokeWidth, 1.5);stroke-linecap:var(--pauseButton_pauseIconStrokeLinecap, butt);transform:scaleY(var(--pauseButton_pauseIconScaleY, 1));transform-origin:center;overflow:visible;}.pause-button.svelte-a3r6re .pause-button-icon--pause:where(.svelte-a3r6re) .pause-bar--left:where(.svelte-a3r6re) {transform:translateX(calc(-1 * var(--pauseButton_pauseIconBarSpread, 0px)));}.pause-button.svelte-a3r6re .pause-button-icon--pause:where(.svelte-a3r6re) .pause-bar--right:where(.svelte-a3r6re) {transform:translateX(var(--pauseButton_pauseIconBarSpread, 0px));}.pause-button.svelte-a3r6re .pause-button-icon--play:where(.svelte-a3r6re) {fill:var(--pauseButton_playIconFill, none);stroke:var(--pauseButton_playIconStroke, currentColor);stroke-width:var(--pauseButton_playIconStrokeWidth, 1.5);stroke-linejoin:round;stroke-linecap:round;}"};const we={hash:"svelte-1fv6njc",code:".swiper.svelte-1fv6njc {position:absolute;top:0;left:0;pointer-events:auto;width:100%;height:100%;}"};const Me={hash:"svelte-1rvgxfc",code:".covers-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;display:flex;gap:0.5px;}.covers-container.svelte-1rvgxfc::-webkit-scrollbar {display:none;}.cover-container.svelte-1rvgxfc {position:relative;display:flex;width:100%;height:100%;flex-shrink:0;scroll-snap-align:center;user-select:none;justify-content:center;align-items:center;}.cover-image.svelte-1rvgxfc {width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);object-fit:cover;pointer-events:none;background:#ffffff;}.cover-image.content-playing.svelte-1rvgxfc {opacity:0;}.cover-image.content-playing.force-show.svelte-1rvgxfc {opacity:1;background:transparent;transition:opacity 0s 0.2s;}.ui-container.svelte-1rvgxfc {position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;}"};function Ie(t,e){t.global.css.add(Me),t.component((t=>{let{scrollOffset:o,isMobile:n=!1,swipeEnabled:i,gallery:a,debug:r,onEvent:s}=e;a.state.playingModulePosition;let l=!a.state.introModulePlayed&&a.state.introModule,d=a.state.startedPlaying,c=a.state.currentModulesList,u=c.findIndex((t=>{return e=a.state.playingModulePosition,o=t.position,e.itemIndex===o.itemIndex&&e.moduleIndex===o.moduleIndex;var e,o}));function p(t,e,o,l,d){t.push('<div class="cover-container svelte-1rvgxfc">'),t.push("\x3c!--[--\x3e"),t.push(`<img${gt("cover-image svelte-1rvgxfc",void 0,{"content-playing":e,"force-show":o.showCover})}${E("src",a.getCoverUrl(o.cover,1920))}${E("alt",o.name)}${E("fetchpriority",l)} onload="this.__e=event"/>`),t.push("\x3c!--]--\x3e "),function(t,e){t.global.css.add(we),t.component((t=>{const{gallery:o,debug:n,swipeEnabled:i,onEvent:a}=e,r={color:"#e3e3e3",fadeTime:300,lineWidth:8},s=f(o.interaction((t=>{const{direction:e}=t.detail;"left"===e?(null==o||o.next(),a("swipe",[-1,0])):"right"===e&&(null==o||o.prev(),a("swipe",[1,0]))}),{elementid:"swiper"}),(()=>({touchAction:"pan-y",plugins:n?[w(r)]:[]}))),l=y((function(t){const{x:e,y:o}=t.detail;a("click",{x:e,y:o})}),(()=>({touchAction:"pan-y"})));i?(t.push("\x3c!--[--\x3e"),t.push(`<div${ht({...s,...l,class:"swiper"},"svelte-1fv6njc")}></div>`)):(t.push("\x3c!--[!--\x3e"),t.push(`<div${ht({...l,class:"swiper"},"svelte-1fv6njc")}></div>`)),t.push("\x3c!--]--\x3e")}))}(t,{gallery:a,debug:r,swipeEnabled:i,onEvent:s}),t.push("\x3c!----\x3e "),a.state.themeLoaded&&null!=o&&o.Component?(t.push("\x3c!--[--\x3e"),t.push('<div class="ui-container svelte-1rvgxfc">\x3c!----\x3e'),o.Component(t,{state:o.state,gallery:a,isMobile:n}),t.push("\x3c!----\x3e</div>")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div>")}if(c){if(t.push("\x3c!--[--\x3e"),t.push('<div class="covers-container svelte-1rvgxfc" style="scroll-behavior: auto;">'),l)t.push("\x3c!--[--\x3e"),p(t,d,l,"high");else{t.push("\x3c!--[!--\x3e"),t.push("\x3c!--[--\x3e");const e=mt(c);for(let o=0,n=e.length;o<n;o++){p(t,d&&o===u,e[o],0===o?"high":"auto",0!==o||a.state.introModule)}t.push("\x3c!--]--\x3e")}t.push("\x3c!--]--\x3e</div>")}else t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e"),function(t,e){for(const n in e){var o;const i=t[n],a=e[n];void 0===i&&void 0!==a&&null!==(o=Object.getOwnPropertyDescriptor(t,n))&&void 0!==o&&o.set&&(t[n]=a)}}(e,{scrollOffset:o})}))}const Fe="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof global&&global||{};let ke;function Ce(){const t=Fe&&Fe.navigator&&(Fe.navigator.userAgent||Fe.navigator.platform||Fe.navigator.vendor)||"";if(ke&&ke.ua===t)return ke;const e=t.toLowerCase(),o=e.includes("android"),n=e.includes("iphone")||e.includes("ipad")||e.includes("ipod")||e.includes("ios"),i=o||n||e.includes("mobile");return ke={ua:t,isMobile:i},ke}const Be="https://storage.eko.com/efu/ekoanalytics/master/latest/EkoAnalyticsPlatform.min.gz.js";function je(t){var e,o;if("undefined"==typeof window||null!==(e=window.EkoAnalytics)&&void 0!==e&&e.cb||null!==(o=window.EkoAnalytics)&&void 0!==o&&o.configure)return;if(function(t){let e,o;"undefined"==typeof window||(e=window,o="EkoAnalytics",e[o]=function(){e[o].f?(e[o].q.push(arguments),e[o].ts.push(Date.now())):e[o].apply(e,arguments)},e[o].f=!0,e[o].q=e[o].q||[],e[o].ts=e[o].ts||[],e[o].t=Number(new Date),e[o].sa=[],e[o].cb=[],e[o].init=function(t){e[o].id=t},e[o].childRequestIdsCallback=function(t){t.data&&"ea-ids-request"===t.data.type&&e[o].sa.push(t.source)},e.addEventListener("message",e[o].childRequestIdsCallback)),window.EkoAnalytics.cb.push((()=>{let t=(t,e,o="")=>{let n=window.location.hostname,i=n,a=n.split(".");a.length>2&&(i=a.slice(-2).join(".")),window.document.cookie=`${t}=${e}; domain=.${i}; path=/; secure; samesite=lax; ${o}`};t("easid",encodeURIComponent(window.EkoAnalytics("getSid"))),t("eauid",encodeURIComponent(window.EkoAnalytics("getUid")),"max-age=2147483647")})),window.EkoAnalytics("configure",{snowplow:{options:{appId:"ekoGalleryApp"}},ekoEnv:t?"production":"development",env:"website"})}(!t||"production"===t),!window.EkoAnalytics)return void console.warn("Failed to load LUDA script.");if(0===document.querySelectorAll(`script[src="${Be}"]`).length){const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=Be,document.head.appendChild(t)}}var Se,$e;"undefined"!=typeof window&&(window.addEventListener("pageshow",(function(t){t.persisted&&setTimeout((function(){window.location.reload()}),10)}),!1),null===(Se=($e=window).EkoAnalytics)||void 0===Se||Se.call($e,"track","init"));let Ee=!1;const Ae={hash:"svelte-1n46o8q",code:'.eko-gallery-app.svelte-1n46o8q {position:relative;width:100%;height:100%;display:flex;flex-direction:column;box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;}.eko-gallery-app.svelte-1n46o8q:hover .paging-buttons:where(.svelte-1n46o8q) .nav-button {background-color:var(--nav_arrow_bgColor_hover, #FFFFFF);box-shadow:var(--nav_arrow_boxShadow_hover, 0 0 8px 0 rgba(0, 0, 0, 0.12));}.eko-gallery-app.svelte-1n46o8q * {box-sizing:border-box;touch-action:pan-y;font-family:var(--fontName, "Human BBY Digital"), sans-serif;}.player-container.svelte-1n46o8q {position:relative;flex:1;width:100%;pointer-events:none;overflow:hidden;border-radius:var(--playerContainer_borderRadius, 16px);display:flex;align-items:center;justify-content:center;}.player-container.svelte-1n46o8q .pause-button {opacity:var(--pauseButton_opacity, 1);}.player-container.svelte-1n46o8q:hover .pause-button {opacity:var(--pauseButton_opacity_hover, 1);}.player-container.svelte-1n46o8q:focus-within .pause-button,\n.player-container.svelte-1n46o8q .pause-button:focus-visible {opacity:var(--pauseButton_opacity_hover, 1);}\n\n@media (hover: none), (pointer: coarse) {.player-container.svelte-1n46o8q .pause-button {opacity:1;}\n}.player-div.svelte-1n46o8q {position:absolute;width:var(--videoWidth);height:var(--videoHeight);aspect-ratio:var(--videoAspect);}.swipable.svelte-1n46o8q {will-change:transform;transform:translate3d(var(--uiTranformX, 0), 0, 0);}.paging-buttons.svelte-1n46o8q {position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;padding:0 12px;}.paging-buttons.svelte-1n46o8q .nav-button {transition:0.2s ease-in-out;box-shadow:none;}.paging-buttons.svelte-1n46o8q .nav-button img {opacity:0.6;}\n\n@media (prefers-reduced-motion: reduce) {.eko-gallery-app.svelte-1n46o8q * {animation-duration:0.01ms !important;animation-iteration-count:1 !important;scroll-behavior:auto !important;transition-delay:0ms !important;transition-duration:0.01ms !important;}\n}'};function ze(t,e){t.global.css.add(Ae),t.component((t=>{var o,n,i,a;let{EkoPlayer:r,config:s={},variant:l,debug:d,playerOptions:c,forceMobile:u=!1,videoAspectRatio:p="unset",theme:v,loadAnalytics:h=!0,onGalleryReady:_=()=>{},onGalleryReinitializing:g,onEvent:x=()=>{},onGalleryError:m}=e;var f;!Ee&&h&&(je(null==s||null===(f=s.options)||void 0===f?void 0:f.galleryEnv),Ee=!0);let b=new de({...s,onEvent:x}),y=u||Ce().isMobile,w=v||(null==s||null===(o=s.options)||void 0===o?void 0:o.theme),M=y&&!(null!=s&&null!==(n=s.options)&&void 0!==n&&n.disableSwipes),I=y?null==s||null===(i=s.layout)||void 0===i?void 0:i.mobile:null==s||null===(a=s.layout)||void 0===a?void 0:a.desktop,F=null==I?void 0:I.hideNav,k=0,C={width:"100%",height:"100%"};var B,j;function $(){null==b||b.next()}function A(){null==b||b.prev()}B="state",j=()=>b.state,Y().set(B,j),b.state.activeVariant=function(t,e,o){const n=function(t,e){var o,n;return null!==(o=null===(n=e.variantMap)||void 0===n?void 0:n[t])&&void 0!==o?o:t}(t,e);return o.variants[n]?n:o.availableVariants[0]}(l,s,b.state);let z,T=!0;function P(t){if(t.push(`<div${gt(`eko-gallery-app ${_t(w?`theme-${w}`:"")}`,"svelte-1n46o8q")}>`),s){t.push("\x3c!--[--\x3e");const o=b.state.introModule;var e;if(t.push(`<div class="player-container svelte-1n46o8q"${xt(`--uiTranformX: ${k}px;--videoAspect: ${p};--videoWidth: ${C.width};--videoHeight: ${C.height};`)}><div class="player-div swipable svelte-1n46o8q"></div> `),Ie(t,{isMobile:y,gallery:b,debug:d,swipeEnabled:M,onEvent:x,get scrollOffset(){return k},set scrollOffset(t){k=t,T=!1}}),t.push("\x3c!----\x3e "),o&&!b.state.introModulePlayed||!b.state.themeLoaded)t.push("\x3c!--[!--\x3e");else t.push("\x3c!--[--\x3e"),M||F?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),t.push('<div class="paging-buttons svelte-1n46o8q">'),fe(t,{type:"prev",onClick:A,gallery:b}),t.push("\x3c!----\x3e "),fe(t,{type:"next",onClick:$,gallery:b}),t.push("\x3c!----\x3e</div>")),t.push("\x3c!--]--\x3e "),(null===(e=b.state.currentItem)||void 0===e?void 0:e.modules.length)>1?(t.push("\x3c!--[--\x3e"),function(t,e){t.global.css.add(be),t.component((t=>{let{gallery:o,isMobile:n}=e,i=!1,a=!1;const r=(()=>{let t=[];return t=o.state.currentItem.modules.map(((t,e)=>({index:e,type:e===o.state.activeModuleIndex?"active":"",name:t.name}))),t})();t.push("\x3c!----\x3e");{var s,l;t.push(`<div${gt("steps-indicator-container svelte-1mxltt0",void 0,{"mobile-indicators":n})}><button${gt("step-arrow step-arrow-prev svelte-1mxltt0",void 0,{visible:i})} aria-label="Scroll to previous steps"${E("disabled",!0,!0)}><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M12.8333 16.6668C12.68 16.6668 12.5266 16.5935 12.4266 16.4601L9.42663 12.2935C9.36482 12.2081 9.33154 12.1055 9.33154 12.0001C9.33154 11.8948 9.36482 11.7921 9.42663 11.7068L12.4266 7.54012C12.4651 7.48671 12.5138 7.44142 12.5698 7.40682C12.6259 7.37222 12.6882 7.349 12.7532 7.33848C12.8182 7.32795 12.8846 7.33033 12.9487 7.34549C13.0128 7.36064 13.0732 7.38826 13.1266 7.42678C13.18 7.46531 13.2253 7.51397 13.2599 7.56999C13.2945 7.62602 13.3177 7.68831 13.3283 7.75331C13.3388 7.81831 13.3364 7.88475 13.3213 7.94883C13.3061 8.01291 13.2785 8.07338 13.24 8.12678L10.4466 12.0001L13.2333 15.8735C13.2864 15.9479 13.3181 16.0355 13.3251 16.1267C13.332 16.2179 13.314 16.3092 13.2728 16.3909C13.2316 16.4725 13.1689 16.5414 13.0915 16.59C13.014 16.6386 12.9247 16.6652 12.8333 16.6668Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button> <div${gt("steps-indicator svelte-1mxltt0",void 0,{"with-duration":null===(s=o.state.currentModule)||void 0===s?void 0:s.hasDuration,paused:o.state.paused,"fade-left":i,"fade-right":a})} role="group" aria-roledescription="Sequence navigation buttons"${xt(`--stepDuration: ${_t(null===(l=o.state.currentModule)||void 0===l?void 0:l.duration)}s`)}>\x3c!--[--\x3e`);const e=mt(r);for(let o=0,n=e.length;o<n;o++){let n=e[o];t.push(`<button${gt("step-button svelte-1mxltt0",void 0,{active:"active"===n.type})}${E("aria-current","active"===n.type?"step":void 0)}${E("aria-label",n.name?`Go to step ${n.index+1}: ${n.name}`:`Go to step ${n.index+1}`)}${E("data-elementid",`${n.index+1}`)} data-elementtype="step-indicator"${E("data-elementname",n.name||`Step ${n.index+1}`)} data-interactiontype="navigation"><span class="svelte-1mxltt0">${S(n.name)}</span></button>`)}t.push(`\x3c!--]--\x3e</div> <button${gt("step-arrow step-arrow-next svelte-1mxltt0",void 0,{visible:a})} aria-label="Scroll to next steps"${E("disabled",!0,!0)}><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="svelte-1mxltt0"><path d="M11.1668 16.6666C11.0668 16.6666 10.9601 16.6333 10.8734 16.5733C10.8199 16.5348 10.7746 16.4862 10.7399 16.4302C10.7053 16.3741 10.682 16.3118 10.6715 16.2468C10.6609 16.1818 10.6634 16.1153 10.6786 16.0512C10.6938 15.9871 10.7215 15.9266 10.7601 15.8733L13.5534 11.9999L10.7601 8.12661C10.6001 7.89994 10.6468 7.59328 10.8734 7.42661C11.1001 7.26661 11.4068 7.31994 11.5734 7.53994L14.5734 11.7066C14.7001 11.8799 14.7001 12.1133 14.5734 12.2933L11.5734 16.4599C11.4734 16.5933 11.3201 16.6666 11.1668 16.6666Z" fill="#030303" class="svelte-1mxltt0"></path></svg></button></div>`)}t.push("\x3c!----\x3e")}))}(t,{gallery:b,isMobile:y})):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e "),b.state.startedPlaying?(t.push("\x3c!--[--\x3e"),function(t){t.global.css.add(ye),t.component((t=>{let e=U("state")().paused;t.push(`<button class="pause-button svelte-a3r6re"${E("aria-label",e?"Play":"Pause")} data-elementid="play_pause" data-elementtype="button"${E("data-elementname",e?"Play":"Pause")}${E("data-interactiontype",e?"play":"pause")}>`),e?(t.push("\x3c!--[--\x3e"),t.push('<svg class="pause-button-icon pause-button-icon--play svelte-a3r6re" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M5.23 3.75c0-1.11 1.19-1.82 2.17-1.28l15 8.25a1.46 1.46 0 0 1 0 2.56l-15 8.25a1.46 1.46 0 0 1-2.17-1.28V3.75z"></path></svg>')):(t.push("\x3c!--[!--\x3e"),t.push('<svg class="pause-button-icon pause-button-icon--pause svelte-a3r6re" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><line class="pause-bar pause-bar--left svelte-a3r6re" x1="8" y1="3.5" x2="8" y2="20.5"></line><line class="pause-bar pause-bar--right svelte-a3r6re" x1="16" y1="3.5" x2="16" y2="20.5"></line></svg>')),t.push("\x3c!--]--\x3e</button>")}))}(t)):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e");t.push("\x3c!--]--\x3e "),b.state.startedPlaying?(t.push("\x3c!--[--\x3e"),d?(t.push("\x3c!--[--\x3e"),t.push('<div style="position: absolute; top: 0; left: 0; width: 100%;"></div>')):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e")):t.push("\x3c!--[!--\x3e"),t.push("\x3c!--]--\x3e</div> "),F||o&&!b.state.introModulePlayed?t.push("\x3c!--[!--\x3e"):(t.push("\x3c!--[--\x3e"),function(t,e){t.global.css.add(ge),t.component((t=>{let{gallery:o}=e;const n=U("state");function i(t){var e;if(!t)return null;if("string"==typeof t)return t;if(null!=(null===(e=t.entity)||void 0===e?void 0:e.entityId))try{return o.getCoverUrl(t,40)}catch{return null}return null}t.push(`<div${gt("nav-buttons-container svelte-er27y2",void 0,{"theme-loaded":n().themeLoaded})}><div class="nav-buttons svelte-er27y2">\x3c!--[--\x3e`);const a=mt(n().currentItemsList);for(let e=0,o=a.length;e<o;e++){var r,s,l;let o=a[e];const d=i(o.icon),c=String(o.name||`Gallery item ${e+1}`);t.push(`<button${gt("nav-button svelte-er27y2",void 0,{selected:e===n().activeItemIndex})}${E("data-item-name",null!==(r=null===(s=o.name)||void 0===s?void 0:s.toLowerCase())&&void 0!==r?r:"")}${E("data-elementid",String(null!==(l=o.id)&&void 0!==l?l:e+1))} data-elementtype="gallery item"${E("data-elementname",c)} data-interactiontype="navigation"${E("aria-label",c)}${E("aria-current",e===n().activeItemIndex?"true":void 0)}>`),d?(t.push("\x3c!--[--\x3e"),t.push(`<img class="nav-button-icon svelte-er27y2"${E("src",d)} alt="" aria-hidden="true"/>`)):t.push("\x3c!--[!--\x3e"),t.push(`\x3c!--]--\x3e <span class="svelte-er27y2">${S(o.name)}</span></button>`)}t.push("\x3c!--]--\x3e</div></div>")}))}(t,{gallery:b})),t.push("\x3c!--]--\x3e")}else t.push("\x3c!--[!--\x3e");t.push("\x3c!--]--\x3e</div>")}do{T=!0,z=t.copy(),P(z)}while(!T);t.subsume(z)}))}var Te=Object.freeze({__proto__:null,render:function(t){const e=vt(ze,{props:t});return e.head+e.body}});exports.getSsrHtml=async function(e,o){const{render:n}=await Promise.resolve().then((function(){return Te}));return{ssrHtml:n({config:e,hideNav:!0,...t(o)})}};