@micrio/client 5.4.33 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/micrio.min.b.js +25 -0
- package/micrio.min.d.ts +238 -192
- package/micrio.min.js +5 -6
- package/package.json +1 -1
package/micrio.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* Micrio Client 5.
|
|
2
|
-
* Copyright (C) 2015 -
|
|
1
|
+
/* Micrio Client 5.5.1
|
|
2
|
+
* Copyright (C) 2015 - 2026 Q42 Internet B.V., Micrio <https://micr.io>
|
|
3
3
|
*
|
|
4
4
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
5
5
|
* and associated documentation files (the "Software"), to deal in the Software without
|
|
@@ -18,9 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
((M,I,C,R='O')=>{
|
|
21
|
-
if(!(typeof window !== undefined && typeof window !== 'undefined')) return;M='H4sIAAAAAAACA9y9e2BdVZUwvvd53XPvvsndbdMQmiL7nnYk0hbiiDWtQHJCWlJ5BahaHb8haZLSpK+0SXmZkiiIFXWm4m#gg3ofCaDoiIq2UrDF8QGjjp0ZdRhFp4oPHJ2x+o0jMzr0Y621zzn73JtCceb3zy$Qe$Zj7b3Xfq+99lprs4HxbZwxxj$vdPbzKdZvTU2xfj7Fp+Bnst+emsLASYzhU$3u1#Tk5CTr55N8sp$xqX5nCv3WFARYk$DrTGEqD0GnWL89Bb8Z8pJ$UmeFeUqMAY928CksbZKywJyzUxoEy2X9PpQxpb#f2o#$k1Cmxs+e2qNLYohihA8A+eQAVHyN1BTTJRDqjq7kzdA#gA60A5+KSkV3gcpPI72HT$VnpvbgHwZM6iaCFAsjeJ0GM4#I5jkjoubGPDx0RLlFIZSvH7Ufn+oX2q0xyhteiLYwlE$xPdjCe7DZ+J6oc6BxdW7oboySU71rQyZxiED#k9aveKM9vP06d2Djjl0TrMHZNjCyPTc+PPG6kf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U44$WAAA=',I=window.DecompressionStream,C=(b,t,d,a)=>(a=atob(b.replace(/\$/g,'/').replace(/#/g,'O')).split('').map(x=>x.charCodeAt(0)),d=I?new Response(new Blob([new Uint8Array(a)]).stream().pipeThrough(new I('gzip'))):(new Zlib.Gunzip(a)).decompress())&&(I?t?d.arrayBuffer():d.text():t?d:new self.TextDecoder('utf-8').decode(d));(I?new Promise(a=>a()):fetch('https://r2.micr.io/gunzip.min.js').then(r=>r.text()).then(js=>Function(js)())).then(()=>(function(){const [_c,_u,_b]=arguments,_css=document.createElement('style');
|
|
21
|
+
if(!(typeof window !== undefined && typeof window !== 'undefined')) return;M='H4sIAAAAAAACA+29e3xc1XUovPd5zJyZPdJsGy#EZWDNsZsM2AIRE1d2AM0RMshgwIBJnLSNJUsylvySJeEYIiMl#MRNk4aQpBdcGmZGdqA3SUuaNHBDiJ02aaFJb2mb9KZNHzRJW$L4GufRW3JL8WWttc85+8gCnNzv+$74fp$885z9WPv9WmvttdYWg5#7pRBCfsPrHZAzYkD#yJkBZ4Zd0+gi$7QY8Gemp6enxYCcltMD7gyCCDkz4M1QqD#Dwd4MhTvT6MlRghkx4M5MT8sZ$MyIgQKFTs8QPGY$PaA5aHpmxjjkDJVGZec5F5PrDJXMn2kx4E5PYwbyLg45KAZaTRaY2QxFFmZirxgI0D0znTjRFxdmMp+WBwdyM6at$gyno3bJGYwwLSRwZ+Yg9sC06YEZeRB7Zwa77uBAMMNVwHTGje0vs8Nua1scYAK5EEx39oIxVJG47jmq#2aj4qZzriXL#xMPlPkm7afG4PgIzhI7Nd#FM8lIkst0II2vGZkk2LjdmYMzYiA$c5D+5MyAEM4PZas7sme$P7ht78SUKHm7B0f3FCdHpt44#jm6bdeIcCgkP7hntG$vnhEhyBsM7hmNKAH71f7RkbeN752YumVkSuQ4KM3jdSaT1smRqc2ju0ZuHB8cGp26Q1QsQE4uqhRUmByZun5wamL0QFze8MTg2266fXBYXMQ53ZbNaWUKhcFiFVcaa4U1EtjC3#6R3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uPvVfnr$gDdWfPvlriy75Qfl+$+$$7K41uy$YXXzL9p6rb3ys8#XX$vFnX3t753e3fuTf1+avePsP$+l7n9z6Hzu$e9$N77m6y31j8CvvuwA+92cnP7bz7S8MfuBbv33emp8c2fquB0aCjn9+6+zXT72vtq#+5E1n53KXvnbyehG90HL6rFn6Mu#fdEH08dbseKM7mD$u0Vdaz7SjJ8U#KgeHbn5Hv7ecLes8U5aTXTPlM5mBXzkjq#+fEdR79atD$W9i5tK1m7gAAA==',I=window.DecompressionStream,C=(b,t,d,a)=>(a=atob(b.replace(/\$/g,'/').replace(/#/g,'O')).split('').map(x=>x.charCodeAt(0)),d=I?new Response(new Blob([new Uint8Array(a)]).stream().pipeThrough(new I('gzip'))):(new Zlib.Gunzip(a)).decompress())&&(I?t?d.arrayBuffer():d.text():t?d:new self.TextDecoder('utf-8').decode(d));(I?new Promise(a=>a()):fetch('https://r2.micr.io/gunzip.min.js').then(r=>r.text()).then(js=>Function(js)())).then(()=>(function(){const [_c,_u,_b]=arguments,_css=document.createElement('style');
|
|
22
22
|
_css.className='micrio-interface';_css.textContent=_c;
|
|
23
23
|
document.head.insertBefore(_css,document.head.firstChild);
|
|
24
|
-
!function(){"use strict";var t,e,i;"undefined"!=typeof window&&((t=window.__svelte??(window.__svelte={})).v??(t.v=new Set)).add("5");const r=Symbol(),n=!1,s=32,o=64,a=128,l=256,c=512,d=1024,u=2048,h=4096,m=8192,v=16384,p=65536,g=1<<20,f=1<<21,w=Symbol("$state"),b=Symbol("legacy props"),y=Symbol("");var k=Array.isArray,x=Array.prototype.indexOf,T=Array.from,E=Object.defineProperty,_=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyDescriptors,S=Object.prototype,I=Array.prototype,M=Object.getPrototypeOf,$=Object.isExtensible;function P(t){return"function"==typeof t}const L=()=>{};function C(t){return t()}function R(t){for(var e=0;e<t.length;e++)t[e]()}let D=[],F=[];function z(){var t=D;D=[],R(t)}function O(t){0===D.length&&queueMicrotask(z),D.push(t)}function N(){var t;D.length>0&&z(),F.length>0&&(t=F,F=[],R(t))}function V(t){return t===this.v}function U(t,e){return t!=t?e==e:t!==e||null!==t&&"object"==typeof t||"function"==typeof t}function B(t){return!U(t,this.v)}let W=!1;function q(t,e){if("object"!=typeof t||null===t||w in t)return t;const i=M(t);if(i!==S&&i!==I)return t;var n=new Map,s=k(t),o=j(0),a=kt,l=t=>{var e,i=kt;return Tt(a),e=t(),Tt(i),e};return s&&n.set("length",j(t.length)),new Proxy(t,{defineProperty(t,e,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=n.get(e);return void 0===r?(r=l((()=>j(i.value))),n.set(e,r)):Z(r,l((()=>q(i.value)))),!0},deleteProperty(t,e){var i=n.get(e);if(void 0===i)e in t&&n.set(e,l((()=>j(r))));else{if(s&&"string"==typeof e){var a=n.get("length"),c=Number(e);Number.isInteger(c)&&c<a.v&&Z(a,c)}Z(i,r),X(o)}return!0},get(e,i,s){var o;if(i===w)return t;var a=n.get(i),c=i in e;if(void 0!==a||c&&!(null==(o=_(e,i))?void 0:o.writable)||(a=l((()=>j(q(c?e[i]:r)))),n.set(i,a)),void 0!==a){var d=jt(a);return d===r?void 0:d}return Reflect.get(e,i,s)},getOwnPropertyDescriptor(t,e){var i=Reflect.getOwnPropertyDescriptor(t,e);if(i&&"value"in i){var s=n.get(e);s&&(i.value=jt(s))}else if(void 0===i){var o=n.get(e),a=null==o?void 0:o.v;if(void 0!==o&&a!==r)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return i},has(t,e){var i;if(e===w)return!0;var s=n.get(e),o=void 0!==s&&s.v!==r||Reflect.has(t,e);if((void 0!==s||null!==Et&&(!o||(null==(i=_(t,e))?void 0:i.writable)))&&(void 0===s&&(s=l((()=>j(o?q(t[e]):r))),n.set(e,s)),jt(s)===r))return!1;return o},set(t,e,i,a){var c,d=n.get(e),u=e in t;if(s&&"length"===e)for(var h=i;h<d.v;h+=1){var m=n.get(h+"");void 0!==m?Z(m,r):h in t&&(m=l((()=>j(r))),n.set(h+"",m))}void 0===d?u&&!(null==(c=_(t,e))?void 0:c.writable)||(Z(d=l((()=>j(void 0))),l((()=>q(i)))),n.set(e,d)):(u=d.v!==r,Z(d,l((()=>q(i)))));var v=Reflect.getOwnPropertyDescriptor(t,e);if((null==v?void 0:v.set)&&v.set.call(a,i),!u){if(s&&"string"==typeof e){var p=n.get("length"),g=Number(e);Number.isInteger(g)&&g>=p.v&&Z(p,g+1)}X(o)}return!0},ownKeys(t){jt(o);var e=Reflect.ownKeys(t).filter((t=>{var e=n.get(t);return void 0===e||e.v!==r}));for(var[i,s]of n)s.v===r||i in t||e.push(i);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function X(t,e=1){Z(t,t.v+e)}const Y=new Map;function G(t,e){return{f:0,v:t,reactions:null,equals:V,rv:0,wv:0}}function j(t,e){const i=G(t);return St(i),i}function H(t,e=!1){var i;const r=G(t);return e||(r.equals=B),W&&null!==ye&&null!==ye.l&&((i=ye.l).s??(i.s=[])).push(r),r}function Z(t,e,i=!1){return null!==kt&&!xt&&Ae()&&18&kt.f&&!(null==At?void 0:At.includes(t))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),J(t,i?q(e):e)}function J(t,e){if(!t.equals(e)){var i=t.v;wt?Y.set(t,e):Y.set(t,i),t.v=e,t.wv=Rt(),K(t,u),Ae()&&null!==Et&&Et.f&d&&!(96&Et.f)&&(null===$t?function(t){$t=t}([t]):$t.push(t))}return e}function K(t,e){var i=t.reactions;if(null!==i)for(var r=Ae(),n=i.length,s=0;s<n;s++){var o=i[s],a=o.f;a&u||(r||o!==Et)&&(Jt(o,e),1280&a&&(2&a?K(o,h):Xt(o)))}}function Q(t){var e=2050,i=null!==kt&&2&kt.f?kt:null;null===Et||null!==i&&i.f&l?e|=l:Et.f|=g;return{ctx:ye,deps:null,effects:null,equals:V,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??Et}}function tt(t){const e=Q(t);return St(e),e}function et(t){const e=Q(t);return e.equals=B,e}function it(t){var e=t.effects;if(null!==e){t.effects=null;for(var i=0;i<e.length;i+=1)he(e[i])}}function rt(t){var e=function(t){var e,i=Et;_t(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{it(t),e=Ot(t)}finally{_t(i)}return e}(t);Jt(t,(Ct||t.f&l)&&null!==t.deps?h:d),t.equals(e)||(t.v=e,t.wv=Rt())}var nt,st,ot,at;function lt(t=""){return document.createTextNode(t)}function ct(t){return ot.call(t)}function dt(t){return at.call(t)}function ut(t,e){return ct(t)}function ht(t,e){var i=ct(t);return i instanceof Comment&&""===i.data?dt(i):i}function mt(t,e=1,i=!1){let r=t;for(;e--;)r=dt(r);return r}let vt=!1,pt=!1,gt=null,ft=!1,wt=!1;function bt(t){wt=t}let yt=[],kt=null,xt=!1;function Tt(t){kt=t}let Et=null;function _t(t){Et=t}let At=null;function St(t){null!==kt&&kt.f&f&&(null===At?At=[t]:At.push(t))}let It=null,Mt=0,$t=null;let Pt=1,Lt=0,Ct=!1;function Rt(){return++Pt}function Dt(t){var e,i=t.f;if(i&u)return!0;if(i&h){var r=t.deps,n=!!(i&l);if(null!==r){var s,o,a=!!(i&c),m=n&&null!==Et&&!Ct,v=r.length;if(a||m){var p=t,g=p.parent;for(s=0;s<v;s++)o=r[s],!a&&(null==(e=null==o?void 0:o.reactions)?void 0:e.includes(p))||(o.reactions??(o.reactions=[])).push(p);a&&(p.f^=c),!m||null===g||g.f&l||(p.f^=l)}for(s=0;s<v;s++)if(Dt(o=r[s])&&rt(o),o.wv>t.wv)return!0}n&&(null===Et||Ct)||Jt(t,d)}return!1}function Ft(t,e,i,r){if(vt){if(null===i&&(vt=!1),function(t){return!(t.f&v||null!==t.parent&&t.parent.f&a)}(e))throw t}else null!==i&&(vt=!0),function(t,e){for(var i=e;null!==i;){if(i.f&a)try{return void i.fn(t)}catch{i.f^=a}i=i.parent}throw vt=!1,t}(t,e)}function zt(t,e,i=!0){var r=t.reactions;if(null!==r)for(var n=0;n<r.length;n++){var s=r[n];(null==At?void 0:At.includes(t))||(2&s.f?zt(s,e,!1):e===s&&(i?Jt(s,u):s.f&d&&Jt(s,h),Xt(s)))}}function Ot(t){var e,i=It,r=Mt,n=$t,s=kt,o=Ct,a=At,c=ye,d=xt,u=t.f;It=null,Mt=0,$t=null,Ct=!!(u&l)&&(xt||!ft||null===kt),kt=96&u?null:t,At=null,ke(t.ctx),xt=!1,Lt++,t.f|=f;try{var h=(0,t.fn)(),m=t.deps;if(null!==It){var v;if(Vt(t,Mt),null!==m&&Mt>0)for(m.length=Mt+It.length,v=0;v<It.length;v++)m[Mt+v]=It[v];else t.deps=m=It;if(!Ct)for(v=Mt;v<m.length;v++)((e=m[v]).reactions??(e.reactions=[])).push(t)}else null!==m&&Mt<m.length&&(Vt(t,Mt),m.length=Mt);if(Ae()&&null!==$t&&!xt&&null!==m&&!(6146&t.f))for(v=0;v<$t.length;v++)zt($t[v],t);return null!==s&&(Lt++,null!==$t&&(null===n?n=$t:n.push(...$t))),h}finally{It=i,Mt=r,$t=n,kt=s,Ct=o,At=a,ke(c),xt=d,t.f^=f}}function Nt(t,e){let i=e.reactions;if(null!==i){var r=x.call(i,t);if(-1!==r){var n=i.length-1;0===n?i=e.reactions=null:(i[r]=i[n],i.pop())}}null===i&&2&e.f&&(null===It||!It.includes(e))&&(Jt(e,h),768&e.f||(e.f^=c),it(e),Vt(e,0))}function Vt(t,e){var i=t.deps;if(null!==i)for(var r=e;r<i.length;r++)Nt(t,i[r])}function Ut(t){var e=t.f;if(!(e&v)){Jt(t,d);var i=Et,r=ye,o=ft;Et=t,ft=!0;try{16&e?function(t){var e=t.first;for(;null!==e;){var i=e.next;e.f&s||he(e),e=i}}(t):ue(t),de(t);var a=Ot(t);t.teardown="function"==typeof a?a:null,t.wv=Pt;t.deps;n}catch(l){Ft(l,t,i,r||t.ctx)}finally{ft=o,Et=i}}}function Bt(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){if(null===gt)throw t;Ft(t,gt,null)}}function Wt(){var t=ft;try{var e=0;for(ft=!0;yt.length>0;){e++>1e3&&Bt();var i=yt,r=i.length;yt=[];for(var n=0;n<r;n++){qt(Yt(i[n]))}}}finally{pt=!1,ft=t,gt=null,Y.clear()}}function qt(t){var e=t.length;if(0!==e)for(var i=0;i<e;i++){var r=t[i];if(!(24576&r.f))try{Dt(r)&&(Ut(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?me(r):r.fn=null))}catch(n){Ft(n,r,null,r.ctx)}}}function Xt(t){pt||(pt=!0,queueMicrotask(Wt));for(var e=gt=t;null!==e.parent;){var i=(e=e.parent).f;if(96&i){if(!(i&d))return;e.f^=d}}yt.push(e)}function Yt(t){for(var e=[],i=t;null!==i;){var r=i.f,n=!!(96&r);if(!(n&&!!(r&d)||r&m)){if(4&r)e.push(i);else if(n)i.f^=d;else{var s=kt;try{kt=i,Dt(i)&&Ut(i)}catch(l){Ft(l,i,null,i.ctx)}finally{kt=s}}var o=i.first;if(null!==o){i=o;continue}}var a=i.parent;for(i=i.next;null===i&&null!==a;)i=a.next,a=a.parent}return e}async function Gt(){await Promise.resolve(),function(){for(N();yt.length>0;)pt=!0,Wt(),N()}()}function jt(t){var e=!!(2&t.f);if(null===kt||xt){if(e&&null===t.deps&&null===t.effects){var i=t,r=i.parent;null===r||r.f&l||(i.f^=l)}}else if(!(null==At?void 0:At.includes(t))){var n=kt.deps;t.rv<Lt&&(t.rv=Lt,null===It&&null!==n&&n[Mt]===t?Mt++:null===It?It=[t]:Ct&&It.includes(t)||It.push(t))}return e&&Dt(i=t)&&rt(i),wt&&Y.has(t)?Y.get(t):t.v}function Ht(t){var e=xt;try{return xt=!0,t()}finally{xt=e}}const Zt=-7169;function Jt(t,e){t.f=t.f&Zt|e}function Kt(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(w in t)Qt(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&w in i&&Qt(i)}}function Qt(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let n in t)try{Qt(t[n],e)}catch(i){}const r=M(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=A(r);for(let r in e){const n=e[r].get;if(n)try{n.call(t)}catch(i){}}}}}function te(t){null===Et&&null===kt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==kt&&kt.f&l&&null===Et&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),wt&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function ee(t,e,i,r=!0){var n=Et,s={ctx:ye,deps:null,nodes_start:null,nodes_end:null,f:t|u,first:null,fn:e,last:null,next:null,parent:n,prev:null,teardown:null,transitions:null,wv:0};if(i)try{Ut(s),s.f|=32768}catch(a){throw he(s),a}else null!==e&&Xt(s);if(!(i&&null===s.deps&&null===s.first&&null===s.nodes_start&&null===s.teardown&&!(1048704&s.f))&&r&&(null!==n&&function(t,e){var i=e.last;null===i?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}(s,n),null!==kt&&2&kt.f)){var o=kt;(o.effects??(o.effects=[])).push(s)}return s}function ie(t){const e=ee(8,null,!1);return Jt(e,d),e.teardown=t,e}function re(t){if(te(),!(null!==Et&&!!(Et.f&s)&&null!==ye&&!ye.m))return ne(t);var e=ye;(e.e??(e.e=[])).push({fn:t,effect:Et,reaction:kt})}function ne(t){return ee(4,t,!1)}function se(t,e){var i=ye,r={effect:null,ran:!1};i.l.r1.push(r),r.effect=oe((()=>{t(),r.ran||(r.ran=!0,Z(i.l.r2,!0),Ht(e))}))}function oe(t){return ee(8,t,!0)}function ae(t,e=[],i=Q){const r=e.map(i);return le((()=>t(...r.map(jt))))}function le(t,e=0){return ee(24|e,t,!0)}function ce(t,e=!0){return ee(40,t,!0,e)}function de(t){var e=t.teardown;if(null!==e){const t=wt,i=kt;bt(!0),Tt(null);try{e.call(null)}finally{bt(t),Tt(i)}}}function ue(t,e=!1){var i=t.first;for(t.first=t.last=null;null!==i;){var r=i.next;i.f&o?i.parent=null:he(i,e),i=r}}function he(t,e=!0){var i=!1;if((e||524288&t.f)&&null!==t.nodes_start){for(var r=t.nodes_start,n=t.nodes_end;null!==r;){var s=r===n?null:dt(r);r.remove(),r=s}i=!0}ue(t,e&&!i),Vt(t,0),Jt(t,v);var o=t.transitions;if(null!==o)for(const l of o)l.stop();de(t);var a=t.parent;null!==a&&null!==a.first&&me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function me(t){var e=t.parent,i=t.prev,r=t.next;null!==i&&(i.next=r),null!==r&&(r.prev=i),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function ve(t,e){var i=[];ge(t,i,!0),pe(i,(()=>{he(t),e&&e()}))}function pe(t,e){var i=t.length;if(i>0){var r=()=>--i||e();for(var n of t)n.out(r)}else e()}function ge(t,e,i){if(!(t.f&m)){if(t.f^=m,null!==t.transitions)for(const r of t.transitions)(r.is_global||i)&&e.push(r);for(var r=t.first;null!==r;){var n=r.next;ge(r,e,!!(!!(r.f&p)||!!(r.f&s))&&i),r=n}}}function fe(t){we(t,!0)}function we(t,e){if(t.f&m){t.f^=m,t.f&d||(t.f^=d),Dt(t)&&(Jt(t,u),Xt(t));for(var i=t.first;null!==i;){var r=i.next;we(i,!!(!!(i.f&p)||!!(i.f&s))&&e),i=r}if(null!==t.transitions)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function be(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let ye=null;function ke(t){ye=t}function xe(t){return Se().get(t)}function Te(t,e){return Se().set(t,e),e}function Ee(t,e=!1,i){var r=ye={p:ye,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};W&&!e&&(ye.l={s:null,u:null,r1:[],r2:G(!1)}),ie((()=>{r.d=!0}))}function _e(t){const e=ye;if(null!==e){void 0!==t&&(e.x=t);const o=e.e;if(null!==o){var i=Et,r=kt;e.e=null;try{for(var n=0;n<o.length;n++){var s=o[n];_t(s.effect),Tt(s.reaction),ne(s.fn)}}finally{_t(i),Tt(r)}}ye=e.p,e.m=!0}return t||{}}function Ae(){return!W||null!==ye&&null===ye.l}function Se(t){return null===ye&&be(),ye.c??(ye.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}(ye)||void 0))}function Ie(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Me=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $e(t){return Me.includes(t)}const Pe={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Le(t){return t=t.toLowerCase(),Pe[t]??t}const Ce=["touchstart","touchmove"];function Re(t){return Ce.includes(t)}function De(t,e){if(e){const e=document.body;t.autofocus=!0,O((()=>{document.activeElement===e&&t.focus()}))}}function Fe(t,e,i,r=!0){for(var n of(r&&i(),e))t.addEventListener(n,i);ie((()=>{for(var r of e)t.removeEventListener(r,i)}))}function ze(t){var e=kt,i=Et;Tt(null),_t(null);try{return t()}finally{Tt(e),_t(i)}}const Oe=new Set,Ne=new Set;function Ve(t,e,i,r={}){function n(t){if(r.capture||We.call(e,t),!t.cancelBubble)return ze((()=>null==i?void 0:i.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?O((()=>{e.addEventListener(t,n,r)})):e.addEventListener(t,n,r),n}function Ue(t,e,i,r,n){var s={capture:r,passive:n},o=Ve(t,e,i,s);e!==document.body&&e!==window&&e!==document||ie((()=>{e.removeEventListener(t,o,s)}))}function Be(t){for(var e=0;e<t.length;e++)Oe.add(t[e]);for(var i of Ne)i(t)}function We(t){var e,i=this,r=i.ownerDocument,n=t.type,s=(null==(e=t.composedPath)?void 0:e.call(t))||[],o=s[0]||t.target,a=0,l=t.__root;if(l){var c=s.indexOf(l);if(-1!==c&&(i===document||i===window))return void(t.__root=i);var d=s.indexOf(i);if(-1===d)return;c<=d&&(a=c)}if((o=s[a]||t.target)!==i){E(t,"currentTarget",{configurable:!0,get:()=>o||r});var u=kt,h=Et;Tt(null),_t(null);try{for(var m,v=[];null!==o;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+n];if(null!=g&&(!o.disabled||t.target===o))if(k(g)){var[f,...w]=g;f.apply(o,[t,...w])}else g.call(o,t)}catch(b){m?v.push(b):m=b}if(t.cancelBubble||p===i||null===p)break;o=p}if(m){for(let t of v)queueMicrotask((()=>{throw t}));throw m}}finally{t.__root=i,delete t.currentTarget,Tt(u),_t(h)}}}function qe(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Xe(t,e){var i=Et;null===i.nodes_start&&(i.nodes_start=t,i.nodes_end=e)}function Ye(t,e){var i,r=!!(1&e),n=!!(2&e),s=!t.startsWith("<!>");return()=>{void 0===i&&(i=qe(s?t:"<!>"+t),r||(i=ct(i)));var e=n||st?document.importNode(i,!0):i.cloneNode(!0);r?Xe(ct(e),e.lastChild):Xe(e,e);return e}}function Ge(t,e,i="svg"){var r,n=!t.startsWith("<!>"),s=!!(1&e),o=`<${i}>${n?t:"<!>"+t}</${i}>`;return()=>{if(!r){var t=ct(qe(o));if(s)for(r=document.createDocumentFragment();ct(t);)r.appendChild(ct(t));else r=ct(t)}var e=r.cloneNode(!0);s?Xe(ct(e),e.lastChild):Xe(e,e);return e}}function je(t=""){var e=lt(t+"");return Xe(e,e),e}function He(){var t=document.createDocumentFragment(),e=document.createComment(""),i=lt();return t.append(e,i),Xe(e,i),t}function Ze(t,e){null!==t&&t.before(e)}let Je=!0;function Ke(t){Je=t}function Qe(t,e){var i=null==e?"":"object"==typeof e?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function ti(t,e){return function(t,{target:e,anchor:i,props:r={},events:n,context:s,intro:a=!0}){!function(){if(void 0===nt){nt=window,st=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ot=_(e,"firstChild").get,at=_(e,"nextSibling").get,$(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),$(i)&&(i.__t=void 0)}}();var l=new Set,c=t=>{for(var i=0;i<t.length;i++){var r=t[i];if(!l.has(r)){l.add(r);var n=Re(r);e.addEventListener(r,We,{passive:n});var s=ei.get(r);void 0===s?(document.addEventListener(r,We,{passive:n}),ei.set(r,1)):ei.set(r,s+1)}}};c(T(Oe)),Ne.add(c);var d=void 0,u=function(t){const e=ee(o,t,!0);return(t={})=>new Promise((i=>{t.outro?ve(e,(()=>{he(e),i(void 0)})):(he(e),i(void 0))}))}((()=>{var o=i??e.appendChild(lt());return ce((()=>{s&&(Ee({}),ye.c=s);n&&(r.$$events=n),Je=a,d=t(o,r)||{},Je=!0,s&&_e()})),()=>{var t;for(var r of l){e.removeEventListener(r,We);var n=ei.get(r);0==--n?(document.removeEventListener(r,We),ei.delete(r)):ei.set(r,n)}Ne.delete(c),o!==i&&(null==(t=o.parentNode)||t.removeChild(o))}}));return ii.set(d,u),d}(t,e)}const ei=new Map;let ii=new WeakMap;function ri(t,e,[i,n]=[0,0]){var s=t,o=null,a=null,l=r,c=!1;const d=(t,e=!0)=>{c=!0,u(e,t)},u=(t,e)=>{l!==(l=t)&&(l?(o?fe(o):e&&(o=ce((()=>e(s)))),a&&ve(a,(()=>{a=null}))):(a?fe(a):e&&(a=ce((()=>e(s,[i+1,n])))),o&&ve(o,(()=>{o=null}))))};le((()=>{c=!1,e(d),c||u(null,null)}),i>0?p:0)}function ni(t,e){return e}function si(t,e,i,r,n,s=null){var o=t,a={flags:e,items:new Map,first:null};!(4&e)||(o=t.appendChild(lt()));var l=null,c=!1,d=et((()=>{var t=i();return k(t)?t:null==t?[]:T(t)}));le((()=>{var t=jt(d),u=t.length;c&&0===u||(c=0===u,function(t,e,i,r,n,s,o){var a,l,c,d,u,h,v,p,g,f,w=!!(8&n),b=!!(3&n),y=t.length,k=e.items,x=e.first,E=x,_=null,A=[],S=[];if(w)for(f=0;f<y;f+=1)p=s(v=t[f],f),void 0!==(g=k.get(p))&&(null==(a=g.a)||a.measure(),(h??(h=new Set)).add(g));for(f=0;f<y;f+=1)if(p=s(v=t[f],f),void 0!==(g=k.get(p))){if(b&&oi(g,v,f,n),g.e.f&m&&(fe(g.e),w&&(null==(l=g.a)||l.unfix(),(h??(h=new Set)).delete(g))),g!==E){if(void 0!==u&&u.has(g)){if(A.length<S.length){var I,M=S[0];_=M.prev;var $=A[0],P=A[A.length-1];for(I=0;I<A.length;I+=1)li(A[I],M,i);for(I=0;I<S.length;I+=1)u.delete(S[I]);ci(e,$.prev,P.next),ci(e,_,$),ci(e,P,M),E=M,_=P,f-=1,A=[],S=[]}else u.delete(g),li(g,E,i),ci(e,g.prev,g.next),ci(e,g,null===_?e.first:_.next),ci(e,_,g),_=g;continue}for(A=[],S=[];null!==E&&E.k!==p;)E.e.f&m||(u??(u=new Set)).add(E),S.push(E),E=E.next;if(null===E)continue;g=E}A.push(g),_=g,E=g.next}else{_=ai(E?E.e.nodes_start:i,e,_,null===_?e.first:_.next,v,p,f,r,n,o),k.set(p,_),A=[],S=[],E=_.next}if(null!==E||void 0!==u){for(var L=void 0===u?[]:T(u);null!==E;)E.e.f&m||L.push(E),E=E.next;var C=L.length;if(C>0){var R=4&n&&0===y?i:null;if(w){for(f=0;f<C;f+=1)null==(c=L[f].a)||c.measure();for(f=0;f<C;f+=1)null==(d=L[f].a)||d.fix()}!function(t,e,i,r){for(var n=[],s=e.length,o=0;o<s;o++)ge(e[o].e,n,!0);var a=s>0&&0===n.length&&null!==i;if(a){var l=i.parentNode;l.textContent="",l.append(i),r.clear(),ci(t,e[0].prev,e[s-1].next)}pe(n,(()=>{for(var i=0;i<s;i++){var n=e[i];a||(r.delete(n.k),ci(t,n.prev,n.next)),he(n.e,!a)}}))}(e,L,R,k)}}w&&O((()=>{var t;if(void 0!==h)for(g of h)null==(t=g.a)||t.apply()}));Et.first=e.first&&e.first.e,Et.last=_&&_.e}(t,a,o,n,e,r,i),null!==s&&(0===u?l?fe(l):l=ce((()=>s(o))):null!==l&&ve(l,(()=>{l=null}))),jt(d))}))}function oi(t,e,i,r){1&r&&J(t.v,e),2&r?J(t.i,i):t.i=i}function ai(t,e,i,r,n,s,o,a,l,c){var d=!!(1&l)?!(16&l)?H(n):G(n):n,u=2&l?G(o):o,h={i:u,v:d,k:s,a:null,e:null,prev:i,next:r};try{return h.e=ce((()=>a(t,d,u,c)),false),h.e.prev=i&&i.e,h.e.next=r&&r.e,null===i?e.first=h:(i.next=h,i.e.next=h.e),null!==r&&(r.prev=h,r.e.prev=h.e),h}finally{}}function li(t,e,i){for(var r=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==r;){var o=dt(s);n.before(s),s=o}}function ci(t,e,i){null===e?t.first=i:(e.next=i,e.e.next=i&&i.e),null!==i&&(i.prev=e,i.e.prev=e&&e.e)}function di(t,e,i,r,n){var s,o=t,a="";le((()=>{a!==(a=e()??"")&&(void 0!==s&&(he(s),s=void 0),""!==a&&(s=ce((()=>{var t=qe(a+"");Xe(ct(t),t.lastChild),o.before(t)}))))}))}function ui(t,e,...i){var r,n=t,s=L;le((()=>{s!==(s=e())&&(r&&(he(r),r=null),r=ce((()=>s(n,...i))))}),p)}function hi(t,e,i,r,n,s){var o,a,l,c=null,d=t;le((()=>{const t=e()||null;var i="svg"===t?"http://www.w3.org/2000/svg":null;t!==o&&(l&&(null===t?ve(l,(()=>{l=null,a=null})):t===a?fe(l):(he(l),Ke(!1))),t&&t!==a&&(l=ce((()=>{if(Xe(c=i?document.createElementNS(i,t):document.createElement(t),c),r){var e=c.appendChild(lt());r(c,e)}Et.nodes_end=c,d.before(c)}))),(o=t)&&(a=o),Ke(!0))}),p)}function mi(t,e,i){ne((()=>{var r=Ht((()=>e(t,null==i?void 0:i())||{}));if(i&&(null==r?void 0:r.update)){var n=!1,s={};oe((()=>{var t=i();Kt(t),n&&U(s,t)&&(s=t,r.update(t))})),n=!0}if(null==r?void 0:r.destroy)return()=>r.destroy()}))}function vi(t){var e,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=vi(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function pi(t){return"object"==typeof t?function(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=vi(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const gi=[..." \t\n\r\f \v\ufeff"];function fi(t,e=!1){var i=e?" !important;":";",r="";for(var n in t){var s=t[n];null!=s&&""!==s&&(r+=" "+n+": "+s+i)}return r}function wi(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function bi(t,e,i,r,n,s){var o=t.__className;if(o!==i||void 0===o){var a=function(t,e,i){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),i)for(var n in i)if(i[n])r=r?r+" "+n:n;else if(r.length)for(var s=n.length,o=0;(o=r.indexOf(n,o))>=0;){var a=o+s;0!==o&&!gi.includes(r[o-1])||a!==r.length&&!gi.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(i,r,s);null==a?t.removeAttribute("class"):e?t.className=a:t.setAttribute("class",a),t.__className=i}else if(s&&n!==s)for(var l in s){var c=!!s[l];null!=n&&c===!!n[l]||t.classList.toggle(l,c)}return s}function yi(t,e={},i,r){for(var n in i){var s=i[n];e[n]!==s&&(null==i[n]?t.style.removeProperty(n):t.style.setProperty(n,s,r))}}function ki(t,e,i,r){if(t.__style!==e){var n=function(t,e){if(e){var i,r,n="";if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,o=0,a=!1,l=[];i&&l.push(...Object.keys(i).map(wi)),r&&l.push(...Object.keys(r).map(wi));var c=0,d=-1;const e=t.length;for(var u=0;u<e;u++){var h=t[u];if(a?"/"===h&&"*"===t[u-1]&&(a=!1):s?s===h&&(s=!1):"/"===h&&"*"===t[u+1]?a=!0:'"'===h||"'"===h?s=h:"("===h?o++:")"===h&&o--,!a&&!1===s&&0===o)if(":"===h&&-1===d)d=u;else if(";"===h||u===e-1){if(-1!==d){var m=wi(t.substring(c,d).trim());l.includes(m)||(";"!==h&&u++,n+=" "+t.substring(c,u).trim()+";")}c=u+1,d=-1}}}return i&&(n+=fi(i)),r&&(n+=fi(r,!0)),""===(n=n.trim())?null:n}return null==t?null:String(t)}(e,r);null==n?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else r&&(Array.isArray(r)?(yi(t,null==i?void 0:i[0],r[0]),yi(t,null==i?void 0:i[1],r[1],"important")):yi(t,i,r));return r}const xi=Symbol("class"),Ti=Symbol("style"),Ei=Symbol("is custom element"),_i=Symbol("is html");function Ai(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Si(t,e,i,r){var n=$i(t);n[e]!==(n[e]=i)&&("loading"===e&&(t[y]=i),null==i?t.removeAttribute(e):"string"!=typeof i&&Li(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ii(t,e,i){var r=kt,n=Et;Tt(null),_t(null);try{"style"!==e&&(Pi.has(t.nodeName)||!customElements||customElements.get(t.tagName.toLowerCase())?Li(t).includes(e):i&&"object"==typeof i)?t[e]=i:Si(t,e,null==i?i:String(i))}finally{Tt(r),_t(n)}}function Mi(t,e,i,r,n=!1){var s=$i(t),o=s[Ei],a=!s[_i],l=e||{},c="OPTION"===t.tagName;for(var d in e)d in i||(i[d]=null);i.class?i.class=pi(i.class):(r||i[xi])&&(i.class=null),i[Ti]&&(i.style??(i.style=null));var u=Li(t);for(const f in i){let n=i[f];if(c&&"value"===f&&null==n)t.value=t.__value="",l[f]=n;else if("class"!==f)if("style"!==f){var h=l[f];if(n!==h){l[f]=n;var m=f[0]+f[1];if("$$"!==m)if("on"===m){const e={},i="$$"+f;let r=f.slice(2);var v=$e(r);if(Ie(r)&&(r=r.slice(0,-7),e.capture=!0),!v&&h){if(null!=n)continue;t.removeEventListener(r,l[i],e),l[i]=null}if(null!=n)if(v)t[`__${r}`]=n,Be([r]);else{let n=function(t){l[f].call(this,t)};l[i]=Ve(r,t,n,e)}else v&&(t[`__${r}`]=void 0)}else if("style"===f)Si(t,f,n);else if("autofocus"===f)De(t,Boolean(n));else if(o||"__value"!==f&&("value"!==f||null==n))if("selected"===f&&c)Ai(t,n);else{var p=f;a||(p=Le(p));var g="defaultValue"===p||"defaultChecked"===p;if(null!=n||o||g)g||u.includes(p)&&(o||"string"!=typeof n)?t[p]=n:"function"!=typeof n&&Si(t,p,n);else if(s[f]=null,"value"===p||"checked"===p){let i=t;const r=void 0===e;if("value"===p){let t=i.defaultValue;i.removeAttribute(p),i.defaultValue=t,i.value=i.__value=r?t:null}else{let t=i.defaultChecked;i.removeAttribute(p),i.defaultChecked=t,i.checked=!!r&&t}}else t.removeAttribute(f)}else t.value=t.__value=n}}else ki(t,n,null==e?void 0:e[Ti],i[Ti]),l[f]=n,l[Ti]=i[Ti];else bi(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,n,r,null==e?void 0:e[xi],i[xi]),l[f]=n,l[xi]=i[xi]}return l}function $i(t){return t.__attributes??(t.__attributes={[Ei]:t.nodeName.includes("-"),[_i]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Pi=new Map;function Li(t){var e,i=Pi.get(t.nodeName);if(i)return i;Pi.set(t.nodeName,i=[]);for(var r=t,n=Element.prototype;n!==r;){for(var s in e=A(r))e[s].set&&i.push(s);r=M(r)}return i}const Ci={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function Ri(){const t=Ci.now();Ci.tasks.forEach((e=>{e.c(t)||(Ci.tasks.delete(e),e.f())})),0!==Ci.tasks.size&&Ci.tick(Ri)}function Di(t,e){ze((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Fi(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("")}function zi(t){const e={},i=t.split(";");for(const r of i){const[t,i]=r.split(":");if(!t||void 0===i)break;e[Fi(t.trim())]=i.trim()}return e}const Oi=t=>t;function Ni(t,e,i,r){var n,s,o,a=!!(1&t),l=!!(2&t),c=!!(4&t),d=a&&l?"both":a?"in":"out",u=e.inert,h=e.style.overflow;function m(){var t=kt,s=Et;Tt(null),_t(null);try{return n??(n=i()(e,(null==r?void 0:r())??{},{direction:d}))}finally{Tt(t),_t(s)}}var v={is_global:c,in(){var t;if(e.inert=u,!a)return null==o||o.abort(),void(null==(t=null==o?void 0:o.reset)||t.call(o));l||null==s||s.abort(),Di(e,"introstart"),s=Vi(e,m(),o,1,(()=>{Di(e,"introend"),null==s||s.abort(),s=n=void 0,e.style.overflow=h}))},out(t){if(!l)return null==t||t(),void(n=void 0);e.inert=!0,Di(e,"outrostart"),o=Vi(e,m(),s,0,(()=>{Di(e,"outroend"),null==t||t()}))},stop:()=>{null==s||s.abort(),null==o||o.abort()}},g=Et;if((g.transitions??(g.transitions=[])).push(v),a&&Je){var f=c;if(!f){for(var w=g.parent;w&&w.f&p;)for(;(w=w.parent)&&!(16&w.f););f=!w||!!(32768&w.f)}f&&ne((()=>{Ht((()=>v.in()))}))}}function Vi(t,e,i,r,n){var s=1===r;if(P(e)){var o,a=!1;return O((()=>{if(!a){var l=e({direction:s?"in":"out"});o=Vi(t,l,i,r,n)}})),{abort:()=>{a=!0,null==o||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(null==i||i.deactivate(),!(null==e?void 0:e.duration))return n(),{abort:L,deactivate:L,reset:L,t:()=>r};const{delay:l=0,css:c,tick:d,easing:u=Oi}=e;var h=[];if(s&&void 0===i&&(d&&d(0,1),c)){var m=zi(c(0,1));h.push(m,m)}var v=()=>1-r,p=t.animate(h,{duration:l});return p.onfinish=()=>{var s=(null==i?void 0:i.t())??1-r;null==i||i.abort();var o=r-s,a=e.duration*Math.abs(o),l=[];if(a>0){var h=!1;if(c)for(var m=Math.ceil(a/(1e3/60)),g=0;g<=m;g+=1){var f=s+o*u(g/m),w=zi(c(f,1-f));l.push(w),h||(h="hidden"===w.overflow)}h&&(t.style.overflow="hidden"),v=()=>{var t=p.currentTime;return s+o*u(t/a)},d&&function(t){let e;0===Ci.tasks.size&&Ci.tick(Ri),new Promise((i=>{Ci.tasks.add(e={c:t,f:i})}))}((()=>{if("running"!==p.playState)return!1;var t=v();return d(t,1-t),!0}))}(p=t.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{v=()=>r,null==d||d(r,1-r),n()}},{abort:()=>{p&&(p.cancel(),p.effect=null,p.onfinish=L)},deactivate:()=>{n=L},reset:()=>{0===r&&(null==d||d(1,0))},t:()=>v()}}function Ui(t,e,i=e){var r,n,s=()=>{cancelAnimationFrame(r),t.paused||(r=requestAnimationFrame(s));var e=t.currentTime;n!==e&&i(n=e)};r=requestAnimationFrame(s),t.addEventListener("timeupdate",s),oe((()=>{var i=Number(e());n===i||isNaN(i)||(t.currentTime=n=i)})),ie((()=>{cancelAnimationFrame(r),t.removeEventListener("timeupdate",s)}))}function Bi(t,e){Fe(t,["seeking","seeked"],(()=>e(t.seeking)))}function Wi(t,e,i=e){var r=e();Fe(t,["play","pause","canplay"],(()=>{r!==t.paused&&i(r=t.paused)}),null==r),ne((()=>{(r=!!e())!==t.paused&&(r?t.pause():t.play().catch((()=>{i(r=!0)})))}))}function qi(t,e){return t===e||(null==t?void 0:t[w])===e}function Xi(t={},e,i,r){return ne((()=>{var r,n;return oe((()=>{r=n,n=[],Ht((()=>{t!==i(...n)&&(e(t,...n),r&&qi(i(...r),t)&&e(null,...r))}))})),()=>{O((()=>{n&&qi(i(...n),t)&&e(null,...n)}))}})),t}function Yi(t,e,i,r,n){var s=()=>{r(i[t])};i.addEventListener(e,s),s(),i!==document.body&&i!==window&&i!==document||ie((()=>{i.removeEventListener(e,s)}))}function Gi(t=!1){const e=ye,i=e.l.u;if(!i)return;let r=()=>Kt(e.s);if(t){let t=0,i={};const n=Q((()=>{let r=!1;const n=e.s;for(const t in n)n[t]!==i[t]&&(i[t]=n[t],r=!0);return r&&t++,t}));r=()=>jt(n)}var n;i.b.length&&(n=()=>{ji(e,r),R(i.b)},te(),oe(n)),re((()=>{const t=Ht((()=>i.m.map(C)));return()=>{for(const e of t)"function"==typeof e&&e()}})),i.a.length&&re((()=>{ji(e,r),R(i.a)}))}function ji(t,e){if(t.l.s)for(const i of t.l.s)jt(i);e()}function Hi(t){var e,i;null===ye&&be(),W&&null!==ye.l?(e=ye,i=e.l,i.u??(i.u={a:[],b:[],m:[]})).m.push(t):re((()=>{const e=Ht(t);if("function"==typeof e)return e}))}function Zi(t){null===ye&&be(),Hi((()=>()=>Ht(t)))}function Ji(t,e,i){if(null==t)return e(void 0),L;const r=Ht((()=>t.subscribe(e,i)));return r.unsubscribe?()=>r.unsubscribe():r}const Ki=[];function Qi(t,e=L){let i=null;const r=new Set;function n(e){if(U(t,e)&&(t=e,i)){const e=!Ki.length;for(const i of r)i[1](),Ki.push(i,t);if(e){for(let t=0;t<Ki.length;t+=2)Ki[t][0](Ki[t+1]);Ki.length=0}}}function s(e){n(e(t))}return{set:n,update:s,subscribe:function(o,a=L){const l=[o,a];return r.add(l),1===r.size&&(i=e(n,s)||L),o(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function tr(t){let e;return Ji(t,(t=>e=t))(),e}let er=!1,ir=Symbol();function rr(t,e,i){const r=i[e]??(i[e]={store:null,source:H(void 0),unsubscribe:L});if(r.store!==t&&!(ir in i))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=L;else{var n=!0;r.unsubscribe=Ji(t,(t=>{n?r.source.v=t:Z(r.source,t)})),n=!1}return t&&ir in i?tr(t):jt(r.source)}function nr(t,e,i){let r=i[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=L),t}function sr(){const t={};return[t,function(){ie((()=>{for(var e in t){t[e].unsubscribe()}E(t,ir,{enumerable:!1,value:!0})}))}]}const or={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(P(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,i){let r=t.props.length;for(;r--;){let n=t.props[r];P(n)&&(n=n());const s=_(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(P(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=_(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===w||e===b)return!1;for(let i of t.props)if(P(i)&&(i=i()),null!=i&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props){P(i)&&(i=i());for(const t in i)e.includes(t)||e.push(t)}return e}};function ar(...t){return new Proxy({props:t},or)}function lr(t){var e;return(null==(e=t.ctx)?void 0:e.d)??!1}function cr(t,e,i,r){var n,s,o=!!(1&i),a=!W||!!(2&i),l=!!(8&i),c=!!(16&i),d=!1;l?[s,d]=function(t){var e=er;try{return er=!1,[t(),er]}finally{er=e}}((()=>t[e])):s=t[e];var u,h=w in t||b in t,m=l&&((null==(n=_(t,e))?void 0:n.set)??(h&&e in t&&(i=>t[e]=i)))||void 0,v=r,p=!0,g=!1,f=()=>(g=!0,p&&(p=!1,v=c?Ht(r):r),v);if(void 0===s&&void 0!==r&&(m&&a&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),s=f(),m&&m(s)),a)u=()=>{var i=t[e];return void 0===i?f():(p=!0,g=!1,i)};else{var y=(o?Q:et)((()=>t[e]));y.f|=131072,u=()=>{var t=jt(y);return void 0!==t&&(v=void 0),void 0===t?v:t}}if(!(4&i))return u;if(m){var k=t.$$legacy;return function(t,e){return arguments.length>0?(a&&e&&!k&&!d||m(e?u():t),t):u()}}var x=!1,T=H(s),E=Q((()=>{var t=u(),e=jt(T);return x?(x=!1,e):T.v=t}));return l&&jt(E),o||(E.equals=B),function(t,e){if(arguments.length>0){const i=e?jt(E):a&&l?q(t):t;if(!E.equals(i)){if(x=!0,Z(T,i),g&&void 0!==v&&(v=i),lr(E))return t;Ht((()=>jt(E)))}return t}return lr(E)?E.v:jt(E)}}const dr="E001",ur="E002",hr="E003",mr="E004",vr="E005",pr="E100",gr="E101",fr="E102",wr="E103",br="E200",yr="E201",kr="E202",xr="E203",Tr="E300",Er="E301",_r="E302",Ar="E303",Sr="E999",Ir={[dr]:"You appear to be offline. Please check your internet connection and try again.",[ur]:"The connection timed out. Please try again.",[hr]:"Unable to load content due to security restrictions.",[mr]:"The requested image or content could not be found.",[vr]:"The server encountered an error. Please try again later.",[pr]:"Your browser does not support WebGL, which is required to view this content. Please try a different browser.",[gr]:"The graphics context was lost. The page will attempt to recover.",[fr]:"There was a problem initializing the graphics. Please try refreshing the page.",[wr]:"Your device is low on memory. Try closing other browser tabs or applications.",[br]:"The image data appears to be invalid or corrupted.",[yr]:"The requested content could not be loaded.",[kr]:"There was a problem processing the image information.",[xr]:"This image uses an unsupported format version.",[Tr]:"Failed to load the image viewer engine. Please try refreshing the page.",[Er]:"An error occurred in the image viewer. Please try refreshing the page.",[_r]:"Failed to load the image. Please try again.",[Ar]:"Failed to load the tour. Some features may be unavailable.",[Sr]:"An unexpected error occurred. Please try refreshing the page."};class Mr extends Error{constructor(t,e){super(t),this.name="MicrioError",this.code=(null==e?void 0:e.code)??Sr,this.displayMessage=(null==e?void 0:e.displayMessage)??Ir[this.code],this.cause=null==e?void 0:e.cause,this.statusCode=null==e?void 0:e.statusCode,"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Mr)}static fromResponse(t,e){const i=t.status;let r=Sr;return 404===i?r=mr:i>=500&&i<600?r=vr:0===i?r=dr:408!==i&&504!==i||(r=ur),new Mr(`${e?e+": ":""}HTTP ${i}`,{code:r,statusCode:i})}static fromError(t,e){const i=t.message.toLowerCase();let r=Sr;return i.includes("network")||i.includes("internet")||i.includes("offline")?r=dr:i.includes("timeout")?r=ur:i.includes("cors")||i.includes("cross-origin")?r=hr:i.includes("webgl")||i.includes("webglcontext")?r=pr:i.includes("memory")||i.includes("out of memory")?r=wr:(i.includes("wasm")||i.includes("webassembly"))&&(r=Tr),new Mr(`${e?e+": ":""}${t.message}`,{code:r,cause:t})}}const $r=(t,e)=>Math.sqrt(t*t+e*e),Pr=(t,e=1)=>(t%e+e)%e,Lr=t=>JSON.parse(JSON.stringify(t));function Cr(t,e,i={}){var r;if(!t||"object"!=typeof t)return e;for(const n in t){const s=t[n];if(s&&"object"==typeof s&&"Object"===(null==(r=s.constructor)?void 0:r.name)){const t=e;t[n]&&"object"==typeof t[n]||(t[n]={}),Cr(s,t[n],i)}else{const t=e;i.mergeArrays&&t[n]instanceof Array&&s instanceof Array?t[n].push(...s):i.noOverwrite&&n in e||(t[n]=s)}}return e}const Rr=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),Dr=()=>Rr()+Rr()+"-"+Rr()+"-"+Rr()+"-"+Rr()+"-"+Rr()+Rr()+Rr(),Fr=t=>{if(void 0===t)return t;t=(t=t.replace(/^\s+|\s+$/g,"")).toLowerCase();const e="àáäâèéëêìíïîòóöôùúüûñç·/_,:;";for(let i=0,r=28;i<r;i++)t=t.replace(new RegExp(e.charAt(i),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(i));return t=t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")};function zr(t){const e=t<0;e&&(t*=-1);let i=[0,0,Math.ceil(t)];for(let r of[0,1])for(;i[2-r]>=60&&(i[2-r]-=60,++i[1-r]););return(e?"-":"")+i.filter(((t,e)=>e>0||t)).map(((t,e)=>(t<10&&e?"0":"")+t)).join(":")}const Or=navigator.userAgent,Nr={iOS:/ipad|iphone|ipod/i.test(Or),firefox:/firefox/i.test(Or),OSX:/macintosh/i.test(Or)&&/os\ x/i.test(Or),hasTouch:"TouchEvent"in self,safari:!1};Nr.safari=(Nr.OSX||Nr.iOS)&&(/safari/i.test(Or)||/instagram/i.test(Or))&&!/chrome/i.test(Or),Nr.OSX&&Nr.safari&&"TouchEvent"in self&&(Nr.iOS=!0,Nr.OSX=!1);const Vr=t=>new Promise((e=>t?setTimeout(e,t):e())),Ur=[],Br=(t,e,i)=>new Promise(((r,n)=>{if(i||Ur.includes(t))return r();const s=document.createElement("script"),o=()=>{Ur.push(t),r()};e?self[e]=o:s.onload=o,s.onerror=()=>n&&n(),s.async=!0,s.defer=!0,self.crossOriginIsolated&&(s.crossOrigin="anonymous"),s.src=t,document.head.appendChild(s)})),Wr=(t,e={})=>new Promise((i=>{let r,n=!0;r=t.subscribe((t=>{n&&e.allowUndefined&&void 0===t||(n=!1,(void 0!==e.targetValue?t===e.targetValue:e.allowUndefined||void 0!==t)&&(r?r():Gt().then((()=>r())),i(t)))}))})),qr=new Set,Xr={fromLegacy:t=>{if(!t)return;if(qr.has(t))return t;const e=[t[0],t[1],t[2]-t[0],t[3]-t[1]];return qr.add(e),e},toCenterJSON:t=>({centerX:t[0]+t[2]/2,centerY:t[1]+t[3]/2,width:t[2],height:t[3]}),rectToCenterJSON:t=>Xr.toCenterJSON([t[0],t[1],t[2]-t[0],t[3]-t[1]])},Yr={"micrio-cdn.azureedge.net":"micrio.vangoghmuseum.nl/micrio","micrio-cdn.vangoghmuseum.nl":"micrio.vangoghmuseum.nl/micrio","rijks-micrio.azureedge.net":"micrio.rijksmuseum.nl"},Gr=t=>{if(t instanceof Object&&"fileUrl"in t&&!t.src&&(t.src=t.fileUrl),null==t?void 0:t.src)for(let e in Yr)t.src.includes(e)&&(t.src=t.src.replace(e,Yr[e]))},jr=t=>!t.viewsWH,Hr=new WeakMap,Zr=t=>{var e;Gr(t.image),null==(e=t.children)||e.forEach(Zr)},Jr=[],Kr=(t,e,i,r)=>{var n,s,o,a;const l=e+"-"+t.id;if(Jr.includes(l))return;Jr.push(l),t.data||(t.data={}),t.id||(t.id=Dr()),t.tags||(t.tags=[]),"type"in t||(t.type="default"),t.popupType||(t.popupType="popup"),"string"==typeof t.data.icon&&(t.data.icon={title:"",size:0,uploaded:0,width:-1,height:-1,src:t.data.icon}),null==(n=t.images)||n.forEach(Gr),Gr(t.positionalAudio),Gr(null==(s=t.data)?void 0:s.icon),Object.values(t.i18n??{}).forEach((t=>Gr(t.audio)));const c="embedImages"in t?t.embedImages:void 0;c&&c.forEach((t=>Gr(t)));const d=null==(a=null==(o=t.data)?void 0:o._meta)?void 0:a.secondary;d&&(t.data.micrioSplitLink=d),i&&"class"in t&&t.tags.push(...t.class.split(" ").map((t=>t.trim())).filter((e=>!!e&&!t.tags.includes(e)))),t.tags.includes("default")&&(t.type="default"),r&&(t.view=Xr.fromLegacy(t.view),Qr(t.videoTour))};function Qr(t){var e;if(!t||!("i18n"in t)&&!("timeline"in t))return;const i="i18n"in t?t.i18n:{en:t};for(const r in i)null==(e=i[r])||e.timeline.forEach((t=>t.rect=Xr.fromLegacy(t.rect)))}const tn=new Map,en=new Map,rn=new Map,nn=async(t,e)=>{if(!e&&tn.has(t))return Lr(tn.get(t));if(en.has(t))return en.get(t);if(rn.has(t))throw rn.get(t)[1];const i=fetch(t+(e?"?"+Math.random():"")).then((async e=>{if(200==e.status)return e.json();{const i=await e.text();throw rn.set(t,[e.status,i]),i}})).then((i=>(e||tn.set(t,i),en.delete(t),Lr(i)))).catch((e=>{throw en.delete(t),e}));return en.set(t,i),i},sn=t=>"MICRIO_DATA"in self?(null==self?void 0:self.MICRIO_DATA).find((e=>e[0]==t)):void 0,on=(t,e,i)=>{var r;const n=null==(r=sn(t))?void 0:r[1];return n?Promise.resolve(n):nn(`${e??"https://i.micr.io/"}${t}/info.json`,i).then((t=>(t&&("Height"in t&&(t.height=t.Height,t.version=1,t.tileSize=512),"Width"in t&&(t.width=t.Width)),(t=>{var e,i,r,n,s,o,a,l;t&&(Hr.has(t)||(Gr(null==(e=t.organisation)?void 0:e.logo),Gr(null==(r=null==(i=t.settings)?void 0:i._markers)?void 0:r.markerIcon),null==(o=null==(s=null==(n=t.settings)?void 0:n._markers)?void 0:s.customIcons)||o.forEach(Gr),Gr(null==(l=null==(a=t.settings)?void 0:a._360)?void 0:l.video),(null==t?void 0:t.settings)&&jr(t)&&(t.settings.view=Xr.fromLegacy(t.settings.view),t.settings.restrict=Xr.fromLegacy(t.settings.restrict)),Hr.set(t,!0)))})(t),t)))};async function an(t,e,i,r){if(!("steps"in e)||e.stepInfo)return;const n=[...new Set(e.steps.map((t=>t.split(",")[1])).filter((e=>!!e&&e!=t.id)))],[s,o]=await Promise.all([Promise.all(n.map((e=>nn((e=>t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json"))(e))))),Promise.all(n.map((t=>on(t))))]);s.forEach(((e,r)=>{var n;const s=jr(o[r]);null==(n=null==e?void 0:e.markers)||n.forEach((e=>Kr(e,i,!t.isV5,s)))})),Gr(e.image);let a=-1;const l=[];e.stepInfo=e.steps.map(((e,o)=>{var c,d,u,h,m,v,p,g,f,w;const[b,y]=e.split(","),k=s[n.indexOf(y)]??r,x=null==(c=null==k?void 0:k.markers)?void 0:c.find((t=>t.id==b)),T=(null==(d=null==x?void 0:x.i18n)?void 0:d[i])??x;(null==T?void 0:T.title)&&(a=o);const E=(null==x?void 0:x.videoTour)?"timeline"in x.videoTour?x.videoTour:(null==(u=x.videoTour.i18n)?void 0:u[i])??void 0:void 0;return Gr(null==E?void 0:E.audio),Gr(null==E?void 0:E.subtitle),x?(Gr(null==T?void 0:T.audio),x.videoTour&&(null==T?void 0:T.audio)&&(x.videoTour.audio=T.audio),{markerId:b,marker:x,micrioId:y||t.id,duration:Number((null==E?void 0:E.duration)||(null==(h=null==T?void 0:T.audio)?void 0:h.duration)||0),startView:(null==(m=null==E?void 0:E.timeline)?void 0:m.length)?E.timeline[0].rect:null==x?void 0:x.view,imageHasOtherMarkers:!!y&&!!(null==(v=null==k?void 0:k.markers)?void 0:v.find((t=>t.id!=b&&!t.noMarker))),gridView:!(!(null==(g=null==(p=x.data)?void 0:p._meta)?void 0:g.gridView)&&!(null==(w=null==(f=x.data)?void 0:f._meta)?void 0:w.gridAction)),chapter:a,hasSubtitle:!!(null==E?void 0:E.subtitle)}):(console.warn(`[Micrio] Warning: tour step ${o+1} with id [${b}] not found! Removing it from the tour`),void l.push(o))})).filter((t=>void 0!==t)),l.reverse().forEach((t=>e.steps.splice(t,1))),e.initialStep=0,e.duration=e.stepInfo.reduce(((t,e)=>t+(e.duration||0)),0)}const ln=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},cn=t=>6==t.length||7==t.length;function dn(t,e){var i,r;const n=t.$current;if(!n)return;const s=null==(i=t.spaceData)?void 0:i.images.find((t=>t.id==n.id)),o=null==(r=t.spaceData)?void 0:r.images.find((t=>t.id==e));if(!s||!o)return;const a=[(o.x??.5)-(s.x??.5),(s.y??.5)-(o.y??.5),(o.z??.5)-(s.z??.5)];let l=a[0]*a[0]+a[1]*a[1]+a[2]*a[2];l>0&&(l=1/Math.sqrt(l));const c=[a[0]*l,a[1]*l,a[2]*l],d=Pr(Math.atan2(-c[0],c[2])/Math.PI/2);return{v:a,vN:c,directionX:d,vector:{direction:d%1,distanceX:Math.max(0,Math.min(.4,Math.sqrt(c[0]*c[0]+c[2]*c[2]))),distanceY:-a[1]}}}var un=(t=>(t[t.None=0]="None",t[t.IFrame=1]="IFrame",t[t.Video=2]="Video",t[t.Audio=3]="Audio",t[t.VideoTour=4]="VideoTour",t[t.Micrio=5]="Micrio",t))(un||{}),hn=(t=>(t[t.YouTube=1]="YouTube",t[t.Vimeo=2]="Vimeo",t))(hn||{});const mn=/((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be|youtube-nocookie\.com))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/,vn=/vimeo\.com/,pn=/^.*t=(\d+).*$/,gn="https://www.youtube-nocookie.com";let fn;const wn=t=>t;function bn(t){const e=t-1;return e*e*e+1}function yn(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function kn(t,{delay:e=0,duration:i=400,easing:r=wn}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:t=>"opacity: "+t*n}}function xn(t,{delay:e=0,duration:i=400,easing:r=bn,x:n=0,y:s=0,opacity:o=0}={}){const a=getComputedStyle(t),l=+a.opacity,c="none"===a.transform?"":a.transform,d=l*(1-o),[u,h]=yn(n),[m,v]=yn(s);return{delay:e,duration:i,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${c} translate(${(1-t)*u}${h}, ${(1-t)*m}${v});\n\t\t\topacity: ${l-d*e}`}}var Tn=Ye('<a rel="noopener" href="https://micr.io/" title="Powered by Micrio" aria-label="Micrio homepage"></a>');function En(t,e){Ee(e,!0);const[i,r]=sr(),n=xe("micrio"),{tour:s,marker:o}=n.state,a=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let l,c=j(!1);Hi((()=>n.loading.subscribe((t=>{clearTimeout(l),t?jt(c)||(l=setTimeout((()=>Z(c,!0)),750)):Z(c,!1)}))));const d=tt((()=>!!rr(s,"$tour",i)||!!rr(o,"$marker",i)));var u=He(),h=ht(u),m=t=>{var e=Tn();let i;Si(e,"target",a),ae((t=>i=bi(e,1,"micrio-logo",null,i,t)),[()=>({loading:jt(c)})]),Ni(3,e,(()=>kn),(()=>({duration:200}))),Ze(t,e)};ri(h,(t=>{jt(d)||t(m)})),Ze(t,u),_e(),r()}var _n=Ye('<a rel="noopener" target="_blank" class="micrio-logo-org"><img alt="Logo" class="micrio-logo-org"></a>');function An(t,e){Ee(e,!0);const[i,r]=sr(),n=xe("micrio"),{tour:s,marker:o,popover:a}=n.state;const l=tt((()=>!!rr(s,"$tour",i)||!!rr(o,"$marker",i)||!!rr(a,"$popover",i)));var c=He(),d=ht(c),u=t=>{var i=_n(),r=ut(i);ae((t=>{Si(i,"href",e.organisation.href??"#"),Si(i,"title",e.organisation.name),Si(i,"aria-label",`${e.organisation.name??""} homepage`),Si(r,"src",t)}),[()=>function(t){if("string"==typeof t)return t;let e=0,i=Math.max(t.width,t.height);for(;i>1024;)e++,i/=2;return t.micrioId&&t.width>1024?"https://r2.micr.io/"+t.micrioId+"/"+e+"/0-0."+(t.isPng?"png":t.isWebP?"webp":"jpg"):t.src}(e.organisation.logo)]),Ni(3,i,(()=>kn),(()=>({duration:200}))),Ze(t,i)};ri(d,(t=>{!jt(l)&&e.organisation.logo&&t(u)})),Ze(t,c),_e(),r()}const Sn={en:{close:"Close",zoomIn:"Zoom in",zoomOut:"Zoom out",fullscreenToggle:"Toggle fullscreen",switchLanguage:"Switch language",share:"Share",audioMute:"Mute audio",audioUnmute:"Unmute audio",closeMarker:"Close this marker",tourStepNext:"Next step",tourStepPrev:"Previous step",tourStop:"Stop this tour",minimize:"Minimize",play:"Play",pause:"Pause",stop:"Stop",subtitlesToggle:"Toggle subtitles",galleryPrev:"Previous image",galleryNext:"Next image",menuToggle:"Toggle menu",waypointFollow:"Go this way"},nl:{close:"Sluit",zoomIn:"Zoom in",zoomOut:"Zoom uit",fullscreenToggle:"Volledig scherm aan / uit",switchLanguage:"Kies taal",share:"Deel",audioMute:"Geluid uit",audioUnmute:"Geluid aan",closeMarker:"Sluit deze marker",tourStepNext:"Volgende stap",tourStepPrev:"Vorige stap",tourStop:"Stop deze tour",minimize:"Minimaliseer",play:"Start",pause:"Pauzeer",stop:"Stop",subtitlesToggle:"Ondertitels aan / uit",galleryPrev:"Vorige afbeelding",galleryNext:"Volgende afbeelding",menuToggle:"Menu openen / sluiten",waypointFollow:"Ga deze richting"}},In=Qi(Sn.en),Mn={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},$n={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Pn={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},Ln={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},Cn={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},Rn={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},Dn={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]},Fn={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},zn={prefix:"fas",iconName:"arrow-up-right-from-square",icon:[512,512,["external-link"],"f08e","M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3l0 82.7c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},On={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Nn={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},Vn={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Un={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},Bn={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},Wn={prefix:"fas",iconName:"closed-captioning",icon:[576,512,[],"f20a","M0 96C0 60.7 28.7 32 64 32l448 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM200 208c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48s21.5-48 48-48zm144 48c0-26.5 21.5-48 48-48c14.2 0 27 6.1 35.8 16c8.8 9.9 24 10.7 33.9 1.9s10.7-24 1.9-33.9c-17.5-19.6-43.1-32-71.5-32c-53 0-96 43-96 96s43 96 96 96c28.4 0 54-12.4 71.5-32c8.8-9.9 8-25-1.9-33.9s-25-8-33.9 1.9c-8.8 9.9-21.6 16-35.8 16c-26.5 0-48-21.5-48-48z"]},qn={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Xn={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Yn={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},Gn={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},jn={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Hn={prefix:"fas",iconName:"volume-xmark",icon:[576,512,["volume-mute","volume-times"],"f6a9","M301.1 34.8C312.6 40 320 51.4 320 64l0 384c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352 64 352c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l67.8 0L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3zM425 167l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},Zn={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Jn={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},Kn={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Qn={prefix:"fas",iconName:"share",icon:[512,512,["mail-forward"],"f064","M307 34.8c-11.5 5.1-19 16.6-19 29.2l0 64-112 0C78.8 128 0 206.8 0 304C0 417.3 81.5 467.9 100.2 478.1c2.5 1.4 5.3 1.9 8.1 1.9c10.9 0 19.7-8.9 19.7-19.7c0-7.5-4.3-14.4-9.8-19.5C108.8 431.9 96 414.4 96 384c0-53 43-96 96-96l96 0 0 64c0 12.6 7.4 24.1 19 29.2s25 3 34.4-5.4l160-144c6.7-6.1 10.6-14.7 10.6-23.8s-3.8-17.7-10.6-23.8l-160-144c-9.4-8.5-22.9-10.6-34.4-5.4z"]},ts={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};function es(t,e){t.style.fontSize=e&&"lg"!==e&&"sm"!==e&&"xs"!==e?e.replace("x","em"):""}W=!0;var is=Ge('<title class="micrio-fa"> </title>'),rs=Ge('<path class="micrio-fa"></path>'),ns=Ge('<path class="micrio-fa"></path><path class="micrio-fa"></path>',1),ss=Ge('<svg aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg"><!><g class="micrio-fa"><g class="micrio-fa"><!></g></g></svg>');function os(t,e){Ee(e,!1);const i=H(),r=H();let n=cr(e,"class",24,(()=>{})),s=cr(e,"id",24,(()=>{})),o=cr(e,"style",24,(()=>{})),a=cr(e,"icon",8),l=cr(e,"title",24,(()=>{})),c=cr(e,"size",24,(()=>{})),u=cr(e,"color",24,(()=>{})),m=cr(e,"fw",8,!1),v=cr(e,"pull",24,(()=>{})),p=cr(e,"scale",8,1),g=cr(e,"translateX",8,0),f=cr(e,"translateY",8,0),w=cr(e,"rotate",24,(()=>{})),b=cr(e,"flip",24,(()=>{})),y=cr(e,"spin",8,!1),k=cr(e,"pulse",8,!1),x=cr(e,"primaryColor",8,""),T=cr(e,"secondaryColor",8,""),E=cr(e,"primaryOpacity",8,1),_=cr(e,"secondaryOpacity",8,.4),A=cr(e,"swapOpacity",8,!1),S=H();var I;se((()=>(jt(S),Kt(c()),es)),(()=>{jt(S)&&c()&&es(jt(S),c())})),se((()=>Kt(a())),(()=>{Z(i,a()&&a().icon||[0,0,"",[],""])})),se((()=>(Kt(p()),Kt(g()),Kt(f()),Kt(w()),Kt(b()))),(()=>{Z(r,function(t,e,i,r,n,s=1,o="",a=""){let l=1,c=1;n&&("horizontal"==n?l=-1:"vertical"==n?c=-1:l=c=-1),"string"==typeof t&&(t=parseFloat(t)),"string"==typeof e&&(e=parseFloat(e)),"string"==typeof i&&(i=parseFloat(i));let d=`translate(${e*s}${o},${i*s}${o}) scale(${l*t},${c*t})`;return r&&(d+=` rotate(${r}${a})`),d}(p(),g(),f(),w(),b(),512))})),I=ye,oe((()=>{if(jt(I.l.r2)){for(var t of I.l.r1){var e=t.effect;e.f&d&&Jt(e,h),Dt(e)&&Ut(e),t.ran=!1}I.l.r2.v=!1}})),Gi();var M=He(),$=ht(M),P=t=>{var e=ss();let a;var d=ut(e),h=t=>{var e=is(),i=ut(e);ae((()=>Qe(i,l()))),Ze(t,e)};ri(d,(t=>{l()&&t(h)}));var p=mt(d),g=ut(p),f=ut(g),w=t=>{var e=rs();ae((()=>{Si(e,"d",jt(i)[4]),Si(e,"fill",u()||x()||"currentColor"),Si(e,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`)})),Ze(t,e)},b=t=>{var e=ns(),r=ht(e),n=mt(r);ae((()=>{Si(r,"d",jt(i)[4][0]),Si(r,"fill",T()||u()||"currentColor"),Si(r,"fill-opacity",0!=A()?E():_()),Si(r,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`),Si(n,"d",jt(i)[4][1]),Si(n,"fill",x()||u()||"currentColor"),Si(n,"fill-opacity",0!=A()?_():E()),Si(n,"transform",`translate(${jt(i)[0]/-2} ${jt(i)[1]/-2})`)})),Ze(t,e)};ri(f,(t=>{"string"==typeof jt(i)[4]?t(w):t(b,!1)})),Xi(e,(t=>Z(S,t)),(()=>jt(S))),ae((t=>{Si(e,"id",s()),a=bi(e,0,`svelte-fa svelte-fa-base ${n()??""}`,"micrio-fa",a,t),ki(e,o()),Si(e,"viewBox",`0 0 ${jt(i)[0]??""} ${jt(i)[1]??""}`),Si(p,"transform",`translate(${jt(i)[0]/2} ${jt(i)[1]/2})`),Si(p,"transform-origin",jt(i)[0]/4+" 0"),Si(g,"transform",jt(r))}),[()=>({pulse:k(),"svelte-fa-size-lg":"lg"===c(),"svelte-fa-size-sm":"sm"===c(),"svelte-fa-size-xs":"xs"===c(),"svelte-fa-fw":m(),"svelte-fa-pull-left":"left"===v(),"svelte-fa-pull-right":"right"===v(),spin:y()})],et),Ze(t,e)};ri($,(t=>{jt(i)[4]&&t(P)})),Ze(t,M),_e()}function as(t,e){var i,r;Ee(e,!0);let n=cr(e,"style",3,void 0);const s=xe("micrio"),o="chevron-down"==e.name||"link-ext"==e.name,a=null==(r=null==(i=s.defaultSettings)?void 0:i.ui)?void 0:r.icons,l=tt((()=>a&&("zoom-in"==e.name?a.zoomIn:"zoom-out"==e.name?a.zoomOut:"maximize"==e.name?a.fullscreenEnter:"minimize"==e.name?a.fullscreenLeave:"close"==e.name?a.close:"arrow-right"==e.name?a.next:"arrow-left"==e.name?a.prev:"arrow-up"==e.name?a.up:"arrow-down"==e.name?a.down:"play"==e.name?a.play:"pause"==e.name?a.pause:"subtitles"==e.name?a.subtitles:"subtitles-off"==e.name?a.subtitlesOff:"volume-off"==e.name?a.muted:"volume-up"==e.name?a.unmuted:null))),c=new Map([["play",Yn],["pause",Dn],["close",Kn],["play-filled",Rn],["a11y",Ln],["menu",Mn],["zoom-in",Zn],["zoom-out",Un],["maximize",Jn],["minimize",Pn],["volume-off",Hn],["volume-up",Nn],["subtitles",Wn],["subtitles-off",Wn],["arrow-left",Vn],["arrow-up",jn],["arrow-right",On],["arrow-down",qn],["video",ts],["audio",Nn],["image",Cn],["share",Qn],["error",$n],["chevron-down",Gn],["link",Xn],["link-ext",zn],["ellipsis-vertical",Bn]]),d=tt((()=>c.get(e.name)));var u=He(),h=ht(u),m=t=>{var e=He();di(ht(e),(()=>jt(l))),Ze(t,e)},v=(t,e)=>{var i=t=>{os(t,{get icon(){return jt(d)},size:o?"xs":"sm",get style(){return n()}})};ri(t,(t=>{jt(d)&&t(i)}),e)};ri(h,(t=>{jt(l)?t(m):t(v,!1)})),Ze(t,u),_e()}const ls=Qi(void 0),cs=()=>ls.set(void 0);let ds=!1;ls.subscribe((t=>{t?ds||window.addEventListener("click",cs):ds&&window.removeEventListener("click",cs),ds=!!t}));var us=Ye('<a class="micrio-menu-action micrio-menu"><strong class="micrio-menu"> <!></strong></a>'),hs=Ye('<button class="micrio-menu-action micrio-menu" type="button"><!> <strong class="micrio-menu"> <!></strong></button>'),ms=Ye('<div class="items micrio-menu"></div>'),vs=Ye("<menu><!> <!></menu>");function ps(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(ls,"$opened",i);let s=cr(e,"menu",15),o=cr(e,"originalId",3,null);const a=xe("micrio"),{events:l,state:c,_lang:d}=a;let u=j(void 0);const h=tt((()=>{return t=s(),e=rr(d,"$_lang",i),(null==(r=t.i18n)?void 0:r[e])??t;var t,e,r}));function m(t){var i;s().link||t.preventDefault(),s().action&&s().action();const r=!!(jt(p)||s().action||s().link);ls.set(r?void 0:s()),r&&(null==(i=e.onclose)||i.call(e))}Hi((()=>{var t,e,i,r;(null==(t=jt(h))?void 0:t.title)||1!=(null==(e=s().children)?void 0:e.length)||s(s().children[0]),s().action||(s().markerId?s(s().action=()=>{var t,e;o()&&(null==(t=a.$current)?void 0:t.id)!=o()&&a.open(o()),null==(e=a.$current)||e.state.marker.set(s().markerId)},!0):((null==(i=jt(h))?void 0:i.content)||(null==(r=jt(h))?void 0:r.embed)||s().image)&&s(s().action=()=>{l.dispatch("page-open",s()),c.popover.set({contentPage:s()})},!0)),s(s()._button=jt(u),!0)}));const v=t=>{var e;return t==n()||!!(null==(e=t.children)?void 0:e.some(v))},p=tt((()=>n()&&v(s())));var g=vs();let f;var w=ut(g),b=t=>{var e=us();e.__click=m;var i=ut(e),r=ut(i),n=mt(r);const o=tt((()=>s().linkTargetBlank?"link-ext":"link"));as(n,{style:"opacity:.75",get name(){return jt(o)}}),ae((()=>{var t;Si(e,"href",s().link),Si(e,"target",s().linkTargetBlank?"_blank":void 0),Qe(r,`${(null==(t=jt(h))?void 0:t.title)??"(Unknown)"} `)})),Ze(t,e)},y=t=>{var e=hs();e.__click=m;var i=ut(e),r=t=>{os(t,{get icon(){return s().icon},style:"margin-right:10px;"})};ri(i,(t=>{s().icon&&t(r)}));var n=ut(mt(i,2)),o=mt(n),a=t=>{as(t,{name:"chevron-down"})};ri(o,(t=>{s().children&&s().children.length&&t(a)})),Xi(e,(t=>Z(u,t)),(()=>jt(u))),ae((()=>{var t;return Qe(n,`${(null==(t=jt(h))?void 0:t.title)??"(Unknown)"} `)})),Ze(t,e)};ri(w,(t=>{s().link?t(b):t(y,!1)}));var k=mt(w,2),x=t=>{var e=ms();si(e,23,(()=>s().children),((t,e)=>e+t.id),((t,e)=>{ps(t,{get menu(){return jt(e)},get originalId(){return o()},onclose:cs})})),Ze(t,e)};ri(k,(t=>{s().children&&s().children.length&&t(x)})),ae(((t,e)=>{Si(g,"data-title",t),f=bi(g,1,"micrio-menu",null,f,e)}),[()=>{var t,e;return null==(e=null==(t=jt(h))?void 0:t.title)?void 0:e.toLowerCase()},()=>({opened:jt(p)})]),Ze(t,g),_e(),r()}Be(["click"]);var gs=Ye('<img alt="Icon" class="micrio-button">'),fs=Ye("<!><!>",1);function ws(t,e){Ee(e,!0);let i=cr(e,"type",3,void 0),r=cr(e,"icon",3,void 0),n=cr(e,"title",3,null),s=cr(e,"disabled",3,!1),o=cr(e,"active",3,!1),a=cr(e,"className",3,""),l=cr(e,"href",3,void 0),c=cr(e,"blankTarget",3,!1),d=cr(e,"noClick",3,!1);var u=He();hi(ht(u),(()=>l()?"a":"button"),0,((t,u)=>{var h=t=>{var i;return null==(i=e.onclick)?void 0:i.call(e,t)},m=t=>{var i;return null==(i=e.onfocus)?void 0:i.call(e,t)},v=t=>{var i;return null==(i=e.onpointerdown)?void 0:i.call(e,t)};let p;ae((e=>p=Mi(t,p,{href:l(),target:c()?"_blank":void 0,disabled:!!s()||void 0,title:n(),"aria-label":n(),role:l()?void 0:"button",tabindex:l()?void 0:0,class:`micrio-button ${i()??""} ${a()??""}`,onclick:h,onfocus:m,onpointerdown:v,[xi]:e},"micrio-button")),[()=>({active:o(),"no-click":d()})]);var g=fs(),f=ht(g),w=t=>{as(t,{get name(){return i()}})},b=(t,e)=>{var i=t=>{var e=gs();ae((()=>Si(e,"src",r().src))),Ze(t,e)};ri(t,(t=>{r()&&t(i)}),e)};ri(f,(t=>{i()?t(w):t(b,!1)})),ui(mt(f),(()=>e.children??L)),Ze(u,g)})),Ze(t,u),_e()}var bs=Ye("<menu><!> <!> <!></menu> <!>",1);function ys(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(c,"$current",i),s=()=>rr(d,"$_lang",i);let o=j(void 0);const a=xe("micrio"),{state:l,current:c,_lang:d,spaceData:u}=a,{tour:h,marker:m,popover:v}=l;let p=j(!1),g=j(!1);const f=n().id;let w=j(void 0),b=j(window.innerWidth<=500);const y=()=>Z(b,window.innerWidth<=500),k=()=>{jt(b)&&Z(p,!1)},x=tt((()=>!!rr(h,"$tour",i)||!!rr(m,"$marker",i)||!!rr(v,"$popover",i))),T=tt((()=>{var t;return((null==(t=jt(o))?void 0:t.markerTours)??[]).concat((null==u?void 0:u.markerTours)??[])})),E=tt((()=>{var t;return(null==(t=jt(T))?void 0:t.length)>0})),_=tt((()=>{var t,e,i;return(null==(t=jt(o))?void 0:t.tours)&&(null==(i=null==(e=jt(o))?void 0:e.tours)?void 0:i.length)>0})),A=tt((()=>jt(E)&&jt(_))),S=tt((()=>{var t;return!((null==(t=jt(w))?void 0:t.length)||jt(E)||jt(_))})),I=[],M=(t,e)=>{var i,r;return("title"in t?t.title:null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.title)??"(Untitled)"};Hi((()=>{const t=a.current.subscribe((t=>{var e;if(t){for(;I.length;)null==(e=I.shift())||e();Wr(t.info).then((()=>Z(g,!t.$settings.noLogo))),I.push(t.data.subscribe((t=>{Z(o,t,!0),Gt().then((()=>{var e,i,r;if(!(null==t?void 0:t.pages))return;jt(w)||Z(w,null==(e=t.pages)?void 0:e.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})),!0);const n=null==(i=t.pages)?void 0:i.filter((t=>{var e;return null==(e=t.id)?void 0:e.startsWith("_")}));n.length&&Z(w,[...(null==(r=jt(w))?void 0:r.filter((t=>{var e;return!(null==(e=t.id)?void 0:e.startsWith("_"))})))??[],...n],!0)}))})))}}));return window.addEventListener("resize",y),()=>{var e;for(window.removeEventListener("resize",y);I.length;)null==(e=I.shift())||e();t()}}));var $=He(),P=ht($),L=t=>{var e=bs(),r=ht(e);let l;var c=ut(r),d=t=>{var e=He();si(ht(e),17,(()=>jt(w)),(t=>t.id),((t,e)=>{ps(t,{get menu(){return jt(e)},originalId:f,onclose:k})})),Ze(t,e)};ri(c,(t=>{jt(w)&&t(d)}));var u=mt(c,2),m=t=>{const e=tt((()=>({id:Dr(),i18n:{[s()]:{title:jt(A)?"Marker tours":"Tours"}},children:jt(T).map((t=>({id:Dr(),i18n:{[s()]:{title:M(t,s())}},action:()=>{t.initialStep=0,h.set(t)}})))})));ps(t,{onclose:k,get menu(){return jt(e)}})};ri(u,(t=>{jt(E)&&t(m)}));var v=mt(u,2),y=t=>{const e=tt((()=>({id:Dr(),i18n:{[s()]:{title:jt(A)?"Video tours":"Tours"}},children:jt(o)&&jt(o).tours?jt(o).tours.map((t=>({id:Dr(),i18n:{[s()]:{title:M(t,s())}},action:()=>{n()&&n().id!=f&&a.open(f),h.set(t)}}))):[]})));ps(t,{onclose:k,get menu(){return jt(e)}})};ri(v,(t=>{jt(_)&&t(y)}));var S=mt(r,2),I=t=>{const e=tt((()=>jt(p)?"close":"ellipsis-vertical")),r=tt((()=>"toggle transparent"+(jt(g)?" indent":"")));ws(t,{get title(){return rr(In,"$i18n",i).menuToggle},get type(){return jt(e)},get className(){return jt(r)},onclick:()=>Z(p,!jt(p))})};ri(S,(t=>{jt(b)&&t(I)})),ae((t=>l=bi(r,1,"micrio-toolbar micrio-toolbar",null,l,t)),[()=>({shown:!jt(x)&&jt(p),indent:jt(g)})]),Ni(3,r,(()=>kn),(()=>({duration:200}))),Ze(t,e)};ri(P,(t=>{jt(S)||jt(x)||t(L)})),Ze(t,$),_e(),r()}var ks=Ye("<canvas></canvas>");function xs(t,e){Ee(e,!0);const[i,r]=sr(),n=xe("micrio"),{current:s}=n;n.canvas.viewport;const o=e.image.$info,a=e.image.camera,l=e.image.$settings,c=l.minimapWidth??200,d=l.minimapHeight??160,u=!l.alwaysShowMinimap,h=!!l.noControls,m=o.width/o.height,v=c/m>d?Math.round(d*m):c,p=c/m<=d?Math.round(c/m):d;let g,f=j(void 0),w=j(!1),b=j(q(!o.is360&&a.isZoomedOut()));function y(t){if(!t||!g)return;I();const i=Xr.toCenterJSON(t);if(g.clearRect(0,0,v,p),e.image.thumbSrc?(g.globalCompositeOperation="source-over",g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p),g.globalAlpha=1,g.globalCompositeOperation="destination-out"):(g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,v,p)),g.beginPath(),g.fillStyle="white",o.is360){const e=function(t){const e=[];let{centerX:i,centerY:r,width:n,height:s}=Xr.toCenterJSON(t);i=(i%1+1)%1;let o=i-n/2,a=i+n/2;const l=Math.max(0,r-s/2),c=Math.min(1,r+s/2);return o<0?(e.push({x:o+1,y:l,width:1-(o+1),height:c-l}),e.push({x:0,y:l,width:a,height:c-l})):a>1?(e.push({x:o,y:l,width:1-o,height:c-l}),e.push({x:0,y:l,width:a-1,height:c-l})):e.push({x:o,y:l,width:a-o,height:c-l}),e}(t);for(const t of e)g.rect(Math.floor(t.x*v),Math.floor(t.y*p),Math.ceil(t.width*v),Math.ceil(t.height*p))}else Z(b,a.isZoomedOut(),!0),g.rect(Math.floor((i.centerX-i.width/2)*v),Math.floor((i.centerY-i.height/2)*p),Math.ceil(i.width*v),Math.ceil(i.height*p));e.image.thumbSrc&&(g.fill(),g.globalCompositeOperation="source-over"),g.stroke()}const k=-1!=navigator.userAgent.indexOf("Firefox");let x,T=j(!1);let E,_=j(void 0);function A(t){if(x){const e=Math.max(0,Math.min(1,(t.clientX-x.left)/x.width)),i=Math.max(0,Math.min(1,(t.clientY-x.top)/x.height));if(jt(_)){const t=[e-jt(_).width/2,i-jt(_).height/2,jt(_).width,jt(_).height];a.setView(t)}else a.setCoo(e,i)}}function S(){window.removeEventListener("mousemove",A),window.removeEventListener("mouseup",S),Z(T,!1),Z(_,void 0)}function I(){Z(w,!1),clearTimeout(E),E=setTimeout((()=>Z(w,!0)),2500)}const M=.5-e.image.camera.trueNorth,$=self.crossOriginIsolated;let P=j(q($?void 0:e.image.thumbSrc));const L={passive:!0};let C=j(!1);Hi((()=>{let t;g=jt(f).getContext("2d"),g&&(g.lineWidth=1,g.strokeStyle="white"),$&&e.image.thumbSrc&&fetch(e.image.thumbSrc).then((t=>t.blob())).then((e=>Z(P,t=URL.createObjectURL(e),!0))),n.canvas.element.addEventListener("mousemove",I,L);const i=e.image.state.view.subscribe(y);return setTimeout((()=>Z(C,!0)),10),()=>{t&&URL.revokeObjectURL(t),n.canvas.element.removeEventListener("mousemove",I,L),S(),i()}}));const R=tt((()=>jt(P)?`background-image: url('${jt(P)}')`+(0!=M?`;background-position-x:${v*M}px`:""):null));var D=ks();let F;Si(D,"width",v),Si(D,"height",p),D.__mousedown=function(t){if(0!=t.button)return;window.addEventListener("mousemove",A),window.addEventListener("mouseup",S),x=jt(f).getClientRects()[0];const e=a.getView();e&&Z(_,{width:e[2],height:e[3]},!0),A(t),Z(T,!0)},Xi(D,(t=>Z(f,t)),(()=>jt(f))),ae((t=>{ki(D,jt(R)),F=bi(D,1,"micrio-minimap",null,F,t)}),[()=>({hidden:!jt(C)||rr(s,"$current",i)!=e.image||u&&(jt(b)||jt(w)),dragging:jt(T),controls:!h})]),Ue("wheel",D,(function(t){a.zoom(t.deltaY*(k?50:1))})),Ze(t,D),_e(),r()}Be(["mousedown"]);const Ts=(null==navigator?void 0:navigator.language)??"en-EN",Es="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([Ts],{type:"language"}):void 0,_s=["ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-YE","dv","dv-MV","fa","fa-AF","fa-IR","he","he-IL","iw","iw-PS","kd","ku","ku-IQ","ku-IR","ku-SY","ku-TR","pk-PK","ps","ps-AF","sd","sd-PK","syr-SY","ug","ug-CN","ur","ur-IN","ur-PK","yi","yi-IL","yi-US"];var As=Ye("<div><!></div>");function Ss(t,e){let i=cr(e,"className",3,"");var r=As();ui(ut(r),(()=>e.children??L)),ae((()=>bi(r,1,pi(i()),"micrio-button-group"))),Ze(t,r)}function Is(t,e){Ee(e,!0);const[i,r]=sr(),n="requestFullscreen"in e.el,s="webkitRequestFullscreen"in e.el,o=xe("micrio"),a=()=>n?document.fullscreenElement:document.webkitFullscreenElement??null;let l=j(a()===e.el);const c=n||s&&!a(),d=()=>new Promise((t=>setTimeout(t,500)));let u;function h(){jt(l)?async function(){n?(await document.exitFullscreen().then(d),u&&u instanceof HTMLElement&&u.requestFullscreen(),u=void 0):"webkitExitFullscreen"in document&&document.webkitExitFullscreen()}():async function(){n?(u=a(),Nr.safari&&u&&await document.exitFullscreen().then(d),e.el.requestFullscreen()):"webkitRequestFullscreen"in e.el&&e.el.webkitRequestFullscreen()}()}const m=e.el==o&&!o.events.scrollHooked,v=()=>{Z(l,a()===e.el),m&&(jt(l)?o.events.hookScroll():o.events.unhookScroll())};c&&Hi((()=>{const t=n?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,v),()=>document.removeEventListener(t,v)}));var p=He(),g=ht(p),f=t=>{const e=tt((()=>jt(l)?"minimize":"maximize"));ws(t,{get type(){return jt(e)},get title(){return rr(In,"$i18n",i).fullscreenToggle},onclick:h})};ri(g,(t=>{c&&t(f)})),Ze(t,p),_e(),r()}var Ms=Ye("<!> <!>",1);function $s(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(In,"$i18n",i);let s=cr(e,"image",15,void 0);const o=xe("micrio");let a=j(!1),l=j(!1),c=j(!1),d=j(!1);const u=()=>{o.events.clicked=!0},h=()=>{var t;u(),null==(t=s())||t.camera.zoomIn().then((()=>o.events.clicked=!1))},m=()=>{var t;u(),null==(t=s())||t.camera.zoomOut().then((()=>o.events.clicked=!1))};function v(){var t,e,i,r;Z(a,(null==(t=s())?void 0:t.camera.isZoomedIn())??!0,!0),Z(l,(null==(e=s())?void 0:e.camera.isZoomedOut(!0))??!0,!0);const n=(null==(i=s())?void 0:i.camera.getMinScale())??0;Z(c,n>1&&n>((null==(r=s())?void 0:r.$settings.zoomLimit)??1),!0)}let p,g;Hi((()=>(s()?p=s().state.view.subscribe(v):g=o.current.subscribe((t=>{p&&(p(),p=void 0),Z(d,!0),s(t)?Wr(t.info).then((()=>{s()&&(p=s().state.view.subscribe(v)),Z(d,!1)})):Z(d,!1)})),()=>{g&&g(),p&&p()})));var f=He(),w=ht(f),b=t=>{var e=Ms(),i=ht(e);const r=tt((()=>jt(d)||jt(a)));ws(i,{type:"zoom-in",get title(){return n().zoomIn},get disabled(){return jt(r)},onclick:h});var s=mt(i,2);const o=tt((()=>jt(d)||jt(l)));ws(s,{type:"zoom-out",get title(){return n().zoomOut},get disabled(){return jt(o)},onclick:m}),Ze(t,e)};ri(w,(t=>{jt(c)||jt(a)&&jt(l)||t(b)})),Ze(t,f),_e(),r()}var Ps=Ye('<menu class="popout micrio-controls"><!> <!></menu>'),Ls=Ye("<!> <!> <!>",1),Cs=Ye("<!> <!>",1),Rs=Ye("<aside><!></aside>"),Ds=Ye('<aside class="micrio-controls"><!> <!></aside> <!>',1);function Fs(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(m,"$current",i),s=()=>rr(jt(x),"$info",i),o=()=>rr(g,"$_lang",i),a=()=>rr(f,"$tour",i),l=()=>rr(y,"$zoom",i),c=()=>rr(p,"$isMuted",i),d=()=>rr(In,"$i18n",i);let u=cr(e,"hasAudio",3,!1);const h=q(xe("micrio")),{current:m,state:v,isMuted:p,_lang:g}=h,{tour:f,popup:w}=v,{controls:b,zoom:y,hidden:k}=h.state.ui,x=tt((()=>{var t;return null==(t=n())?void 0:t.info})),T=tt((()=>{var t;return s()&&n()?n().isV5?Object.keys(s().revision??{[o()]:0}):(null==(t="cultures"in s()?s().cultures:"")?void 0:t.split(","))??[]:[]})),E=tt((()=>a()&&"steps"in a()&&a().isSerialTour));function _(){var t,e,i;if(navigator.share&&(null==(t=n())?void 0:t.$info)){const t=n().$data?(null==(e=n().$data)?void 0:e.i18n)?n().$data.i18n[o()]:n().$data:void 0;navigator.share({title:null==(i=n().$info)?void 0:i.title,text:(null==t?void 0:t.description)||`${n().$info.width} x ${n().$info.height} | Micrio`,url:location.href})}}let A=j(null),S=j(!1);function I(t){const e=t.detail;Z(S,h.canvas.viewport.portrait,!0),e.opts.isPassive||Z(A,e,!0)}function M(){Z(A,null)}let $=j(!1),P=j(!1),L=j(!1);function C(t){var e,i;y.set(!t.noZoom),b.set(!t.noControls),Z($,!!(null==(i=null==(e=t.ui)?void 0:e.controls)?void 0:i.cultureSwitch)),Z(P,!!t.social),Z(L,!!t.fullscreen)}n()&&C(n().$settings),Hi((()=>{let t;h.addEventListener("splitscreen-start",I),h.addEventListener("splitscreen-stop",M);const e=h.current.subscribe((e=>{e&&Wr(e.info).then((i=>{!i||a()&&"steps"in a()||(null==t||t(),t=e.settings.subscribe(C))}))}));return()=>{h.removeEventListener("splitscreen-start",I),h.removeEventListener("splitscreen-stop",M),null==t||t(),e()}}));const R=tt((()=>"micrioAudioContext"in window||u())),D=tt((()=>jt($)&&jt(T).length>1)),F=tt((()=>jt(P)&&"share"in navigator)),z=tt((()=>jt(L)&&!jt(E))),O=tt((()=>rr(b,"$controls",i)&&!rr(k,"$hidden",i)&&(jt(R)||jt(D)||jt(F)||l()||jt(z)))),N=tt((()=>rr(w,"$popup",i)&&h.canvas.$isMobile));var V=He(),U=ht(V),B=t=>{var e=Ds(),i=ht(e),r=ut(i),n=t=>{var e=Ls(),i=ht(e),r=t=>{const e=tt((()=>c()?"volume-off":"volume-up")),i=tt((()=>c()?d().audioUnmute:d().audioMute));ws(t,{get type(){return jt(e)},get title(){return jt(i)},onclick:()=>p.set(!c())})};ri(i,(t=>{jt(R)&&t(r)}));var n=mt(i,2),s=t=>{var e=Ps(),i=ut(e);ws(i,{get title(){return d().switchLanguage},type:"a11y"}),si(mt(i,2),17,(()=>jt(T)),ni,((t,e)=>{const i=tt((()=>(null==Es?void 0:Es.of(jt(e)))??jt(e))),r=tt((()=>jt(e)==o()));ws(t,{onclick:()=>h.lang=jt(e),get title(){return jt(i)},get active(){return jt(r)},children:(t,i)=>{var r=je();ae((t=>Qe(r,t)),[()=>jt(e).toUpperCase()]),Ze(t,r)},$$slots:{default:!0}})})),Ze(t,e)};ri(n,(t=>{jt(D)&&t(s)}));var a=mt(n,2),l=t=>{ws(t,{type:"share",get title(){return d().share},onclick:_})};ri(a,(t=>{jt(F)&&t(l)})),Ze(t,e)};ri(r,(t=>{jt(N)||t(n)})),Ss(mt(r,2),{children:(t,e)=>{var i=Cs(),r=ht(i),n=t=>{var e=He(),i=ht(e),r=t=>{$s(t,{get image(){return jt(A)}})},n=t=>{$s(t,{})};ri(i,(t=>{jt(A)?t(r):t(n,!1)})),Ze(t,e)};ri(r,(t=>{l()&&!jt(N)&&t(n)}));var s=mt(r,2),o=t=>{Is(t,{get el(){return h}})};ri(s,(t=>{jt(z)&&t(o)})),Ze(t,i)},$$slots:{default:!0}});var s=mt(i,2),a=t=>{var e=Rs();let i;Ss(ut(e),{children:(t,e)=>{$s(t,{})},$$slots:{default:!0}}),ae((t=>i=bi(e,1,"primary micrio-controls",null,i,t)),[()=>({portrait:jt(S)})]),Ni(3,e,(()=>kn)),Ze(t,e)};ri(s,(t=>{l()&&jt(A)&&t(a)})),Ze(t,e)};ri(U,(t=>{jt(O)&&t(B)})),Ze(t,V),_e(),r()}class zs{constructor(t,e){var i;this.image=t,this.data=e,this.timeline=[],this._paused=!0,this.playing=!1,this.wasPaused=!1,this.unhookEvents=!1,this.micrio=t.wasm.micrio,this.initialView=t.camera.getView();const r="timeline"in e?e:(null==(i=e.i18n)?void 0:i[tr(this.micrio._lang)])??void 0;if(!r)throw new Error("No valid content for video tour!");this.content=r,this.unhookEvents=!e.keepInteraction&&this.micrio.events.$enabled,e.instance=this,this.read(),this.micrio.events.dispatch("videotour-start",this.data)}destroy(){this.unhookEvents&&this.micrio.events.enabled.set(!0),this.playing&&(this.image.camera.stop(),this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-stop",this.data),this.playing=!1,delete this.startedAt,delete this.data.instance,this.startAt=void 0,clearTimeout(this._to))}read(){const t=!!this.data.i18n?1:this.content.duration,e=this.content.timeline;this.timeline.length=0;for(let i=0;i<e.length;i++){const r=e[i],n=e[i-1],s=n?n.end*t:0;this.timeline.push({view:this.data.isLegacy?Xr.fromLegacy(r.rect):r.rect,start:1e3*s,duration:1e3*(r.start*t-s),pauseDuration:(r.end-r.start)*t*1e3})}this.startedAt&&!this.playing&&(this.progress=this.currentTime)}get duration(){return Number(this.content.duration)}set duration(t){this.content.duration=t}get paused(){return this._paused}get ended(){return this.currentTime>=this.duration}get currentTime(){return(this.pausedAt?this.pausedAt:this.startedAt?Date.now()-this.startedAt:0)/1e3}set currentTime(t){this.setProgress(t/this.content.duration)}get progress(){return this.currentTime/this.content.duration}set progress(t){this.setProgress(t)}play(){this.startedPlaying(),this.wasPaused=!1,this.pausedAt?(this.startedAt=Date.now()-this.pausedAt,this._paused=!1,this.gotoTime(this.pausedAt),this.pausedAt=void 0):this.playing||(this.startedAt=Date.now(),void 0===this.startAt?this.gotoStep(0,0):this.gotoTime(this.duration*this.startAt*1e3),this.startAt=void 0),this._paused=!1,this.playing=!0}pause(){this._paused||null==this.currentIndex||null==this.startedAt||(this._paused=!0,this.stoppedPlaying(),clearTimeout(this._to),this.currentIndex>=0&&this.image.camera.stop(),this.ended?this.reset():this.pausedAt=Date.now()-this.startedAt)}reset(){this.stoppedPlaying(),this.pausedAt=void 0,this.playing=!1,this.read()}gotoStep(t,e){if(null==this.startedAt)return;if(clearTimeout(this._to),!this.timeline[t]){if(!this.paused||!this.wasPaused){const t=Math.max(0,Math.round(1e3*this.duration-(Date.now()-this.startedAt)));this._to=setTimeout((()=>this.pause()),t)}return}const i=this.timeline[t],r=Math.round(i.start-(Date.now()-this.startedAt));this.currentIndex=t,this.image.camera.stop(),r>0?this._paused||(this._to=setTimeout((()=>this.startAni(e)),r)):this.startAni(e)}nextStep(){null!=this.currentIndex&&this.gotoStep(this.currentIndex+1)}getView(t){const e=this.timeline[t];return null==e?void 0:e.view}startAni(t=0){var e;if(null==this.currentIndex||isNaN(t))return;const i=this.timeline[this.currentIndex];if(null==i)return;const r=Xr.toCenterJSON(i.view),n=this.getView(this.currentIndex-1),s=n?Xr.toCenterJSON(n):void 0,o=null==(e=this.image.opts)?void 0:e.area;if(this.wasPaused&&s){const e=this.micrio.wasm.e.ease(t),i={centerX:s.centerX*(1-e)+r.centerX*e,centerY:s.centerY*(1-e)+r.centerY*e,width:s.width*(1-e)+r.width*e,height:s.height*(1-e)+r.height*e};this.image.camera.setView([i.centerX-i.width/2,i.centerY-i.height/2,i.width,i.height],{noLimit:!0,area:o}),this.nextStep()}else this.image.camera.flyToView(i.view,{duration:i.duration,progress:t,prevView:s?[s.centerX-s.width/2,s.centerY-s.height/2,s.width,s.height]:void 0,area:o}).then((()=>{null!=this.currentIndex&&i==this.timeline[this.currentIndex]&&this.nextStep()})).catch((()=>{}))}startedPlaying(){this.micrio.setAttribute("data-videotour-playing",""),this.micrio.events.dispatch("videotour-play"),this.unhookEvents&&this.micrio.events.enabled.set(!1)}stoppedPlaying(){this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-pause"),this.unhookEvents&&this.micrio.events.enabled.set(!0)}setProgress(t){t=Math.max(0,Math.min(1,t)),this.wasPaused=!!this.paused||!this.playing,this.pause(),this.wasPaused||(this._paused=!1,this.startedPlaying());const e=this.duration*t*1e3;this.pausedAt=e,this.gotoTime(e),this.wasPaused?this.pause():(this.pausedAt=void 0,this._paused=!1)}gotoTime(t){let e=null,i=0;for(;i<this.timeline.length&&!(this.timeline[i].start>t);i++)e=this.timeline[i];if(i--,e||!(i>0))if(e){this.image.camera.stop();const r=e.duration>0?(t-e.start)/e.duration:0;this.startedAt=Date.now()-e.start-e.duration*r,isNaN(this.startedAt)&&(this.startedAt=Date.now()-t),r>1?(this.gotoStep(i+1),null!=e.view&&this.image.camera.setView(e.view,{noLimit:!0})):(i>0&&this.image.camera.setView(this.timeline[i-1].view,{noLimit:!0}),this.gotoStep(i,r))}else this.timeline.length&&this.image.camera.stop(),this.paused||this.gotoStep(0)}}window.MicrioVideoTour=zs;const Os={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};class Ns{constructor(t,e,i={}){this.frame=t,this.config=e,this.callbacks=i,this.requiresTimeTick=!0,this.destroyed=!1}async initialize(){if("YT"in window||await Br("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),!("YT"in window))throw new Error("Failed to load YouTube API");return new Promise(((t,e)=>{this.player=new window.YT.Player(this.frame,{host:gn,width:this.config.width.toString(),height:this.config.height.toString(),playerVars:{controls:0},events:{onError:()=>{var t,i;null==(i=(t=this.callbacks).onError)||i.call(t,new Error("YouTube player error")),e(new Error("YouTube player error"))},onReady:()=>{var i,r,n,s;this.destroyed?e(new Error("Player destroyed during initialization")):(null==(r=(i=this.callbacks).onReady)||r.call(i),null==(s=(n=this.callbacks).onDurationChange)||s.call(n,this.player.getDuration()),t())},onStateChange:t=>this.handleStateChange(t.data)}})}))}handleStateChange(t){var e,i,r,n,s,o,a,l,c,d,u,h,m,v,p,g;switch(t){case Os.UNSTARTED:null==(i=(e=this.callbacks).onBlocked)||i.call(e),null==(n=(r=this.callbacks).onPause)||n.call(r);break;case Os.ENDED:null==(o=(s=this.callbacks).onEnded)||o.call(s);break;case Os.PLAYING:null==(l=(a=this.callbacks).onPlay)||l.call(a),null==(d=(c=this.callbacks).onSeeked)||d.call(c);break;case Os.PAUSED:null==(h=(u=this.callbacks).onPause)||h.call(u);break;case Os.BUFFERING:null==(v=(m=this.callbacks).onBuffering)||v.call(m),null==(g=(p=this.callbacks).onSeeking)||g.call(p)}}async play(){var t;null==(t=this.player)||t.playVideo()}pause(){var t,e;this.destroyed||null==(e=null==(t=this.player)?void 0:t.pauseVideo)||e.call(t)}async getCurrentTime(){var t,e;return(null==(e=null==(t=this.player)?void 0:t.getCurrentTime)?void 0:e.call(t))??0}setCurrentTime(t){var e,i,r,n;null==(i=(e=this.callbacks).onSeeking)||i.call(e),null==(n=null==(r=this.player)?void 0:r.seekTo)||n.call(r,t)}async getDuration(){var t,e;return(null==(e=null==(t=this.player)?void 0:t.getDuration)?void 0:e.call(t))??0}async isPaused(){var t,e;if(!this.player)return!0;const i=null==(e=(t=this.player).getPlayerState)?void 0:e.call(t);return void 0===i||[Os.UNSTARTED,Os.ENDED,Os.PAUSED].includes(i)}setMuted(t){var e,i,r,n;t?null==(i=null==(e=this.player)?void 0:e.mute)||i.call(e):null==(n=null==(r=this.player)?void 0:r.unMute)||n.call(r)}setVolume(t){}destroy(){var t,e;this.destroyed=!0,null==(e=null==(t=this.player)?void 0:t.destroy)||e.call(t),this.player=void 0}}class Vs{constructor(t,e,i={}){this.frame=t,this.config=e,this.callbacks=i,this.requiresTimeTick=!1,this.destroyed=!1}async initialize(){if("Vimeo"in window||await Br("https://i.micr.io/vimeo.min.js"),!("Vimeo"in window))throw new Error("Failed to load Vimeo API");return new Promise(((t,e)=>{this.player=new window.Vimeo.Player(this.frame,{width:this.config.width.toString(),height:this.config.height.toString(),title:!1,autoplay:!1});const i=this.player;i.on("error",(()=>{var t,i;null==(i=(t=this.callbacks).onError)||i.call(t,new Error("Vimeo player error")),e(new Error("Vimeo player error"))})),i.on("loaded",(()=>{this.destroyed?e(new Error("Player destroyed during initialization")):i.getVolume().then((()=>{var e,i;null==(i=(e=this.callbacks).onReady)||i.call(e),t()}))})),i.on("play",(()=>{var t,e,i,r;null==(e=(t=this.callbacks).onPlay)||e.call(t),null==(r=(i=this.callbacks).onSeeked)||r.call(i)})),i.on("bufferstart",(()=>{var t,e,i,r;null==(e=(t=this.callbacks).onBuffering)||e.call(t),null==(r=(i=this.callbacks).onSeeking)||r.call(i)})),i.on("seeked",(()=>{var t,e;null==(e=(t=this.callbacks).onSeeked)||e.call(t)})),i.on("pause",(()=>{var t,e;null==(e=(t=this.callbacks).onPause)||e.call(t)})),i.on("timeupdate",(t=>{var e,i,r,n;t&&(null==(i=(e=this.callbacks).onDurationChange)||i.call(e,t.duration),null==(n=(r=this.callbacks).onTimeUpdate)||n.call(r,t.seconds))})),i.on("ended",(()=>{var t,e;null==(e=(t=this.callbacks).onEnded)||e.call(t)}))}))}async play(){var t;null==(t=this.player)||t.play()}pause(){var t;null==(t=this.player)||t.pause()}async getCurrentTime(){var t,e;return await(null==(e=null==(t=this.player)?void 0:t.getCurrentTime)?void 0:e.call(t))??0}setCurrentTime(t){var e,i;null==(i=null==(e=this.player)?void 0:e.setCurrentTime)||i.call(e,t)}async getDuration(){var t,e;return await(null==(e=null==(t=this.player)?void 0:t.getDuration)?void 0:e.call(t))??0}async isPaused(){var t,e;return await(null==(e=null==(t=this.player)?void 0:t.getPaused)?void 0:e.call(t))??!0}setMuted(t){var e,i;null==(i=null==(e=this.player)?void 0:e.setVolume)||i.call(e,t?0:1)}setVolume(t){var e,i;null==(i=null==(e=this.player)?void 0:e.setVolume)||i.call(e,Math.max(0,Math.min(1,t)))}destroy(){if(this.destroyed=!0,this.player){const t=["error","loaded","play","bufferstart","seeked","pause","volumechange","timeupdate","ended"];for(const e of t)this.player.off(e);this.player.destroy(),this.player=void 0}}}class Us{constructor(t,e={}){this.element=t,this.callbacks=e,this.requiresTimeTick=!1,this.attachEventListeners()}attachEventListeners(){const t=this.element,e=this.callbacks;e.onPlay&&t.addEventListener("play",e.onPlay),e.onPause&&t.addEventListener("pause",e.onPause),e.onEnded&&t.addEventListener("ended",e.onEnded),e.onSeeking&&t.addEventListener("seeking",e.onSeeking),e.onSeeked&&t.addEventListener("seeked",e.onSeeked),e.onTimeUpdate&&t.addEventListener("timeupdate",(()=>{var i;return null==(i=e.onTimeUpdate)?void 0:i.call(e,t.currentTime)})),e.onDurationChange&&t.addEventListener("durationchange",(()=>{var i;return null==(i=e.onDurationChange)?void 0:i.call(e,t.duration)})),e.onError&&t.addEventListener("error",(()=>{var t;return null==(t=e.onError)?void 0:t.call(e,new Error("Media playback error"))})),e.onReady&&t.addEventListener("canplay",e.onReady)}async play(){var t,e;try{await this.element.play()}catch(i){throw i instanceof Error&&!/pause\(\)/.test(i.message)&&(null==(e=(t=this.callbacks).onBlocked)||e.call(t)),i}}pause(){this.element.pause()}async getCurrentTime(){return this.element.currentTime}setCurrentTime(t){this.element.currentTime=t}async getDuration(){return this.element.duration}async isPaused(){return this.element.paused}setMuted(t){this.element.muted=t}setVolume(t){this.element.volume=Math.max(0,Math.min(1,t))}destroy(){const t=this.element,e=this.callbacks;e.onPlay&&t.removeEventListener("play",e.onPlay),e.onPause&&t.removeEventListener("pause",e.onPause),e.onEnded&&t.removeEventListener("ended",e.onEnded),e.onSeeking&&t.removeEventListener("seeking",e.onSeeking),e.onSeeked&&t.removeEventListener("seeked",e.onSeeked)}}class Bs{constructor(t,e,i={}){this.element=t,this.hlsSrc=e,this.callbacks=i,this.requiresTimeTick=!1,this.destroyed=!1}async initialize(){var t,e;if("Hls"in window||await Br("https://r2.micr.io/hls-1.6.15.min.js",void 0,"Hls"in window?{}:void 0),!("Hls"in window))throw new Error("Failed to load HLS.js");if(this.destroyed)throw new Error("Adapter destroyed during initialization");this.hls=new window.Hls({abrEwmaDefaultEstimate:1e7,abrEwmaDefaultEstimateMax:5e7}),this.hls.loadSource(this.hlsSrc),this.hls.attachMedia(this.element),this.html5Adapter=new Us(this.element,this.callbacks),null==(e=(t=this.callbacks).onReady)||e.call(t)}async play(){var t;return null==(t=this.html5Adapter)?void 0:t.play()}pause(){var t;null==(t=this.html5Adapter)||t.pause()}async getCurrentTime(){var t;return(null==(t=this.html5Adapter)?void 0:t.getCurrentTime())??Promise.resolve(0)}setCurrentTime(t){var e;null==(e=this.html5Adapter)||e.setCurrentTime(t)}async getDuration(){var t;return(null==(t=this.html5Adapter)?void 0:t.getDuration())??Promise.resolve(0)}async isPaused(){var t;return(null==(t=this.html5Adapter)?void 0:t.isPaused())??Promise.resolve(!0)}setMuted(t){var e;null==(e=this.html5Adapter)||e.setMuted(t)}setVolume(t){var e;null==(e=this.html5Adapter)||e.setVolume(t)}destroy(){var t,e;this.destroyed=!0,null==(t=this.html5Adapter)||t.destroy(),null==(e=this.hls)||e.destroy(),this.hls=void 0,this.html5Adapter=void 0}}const Ws="micrio-captions-disable",qs=Qi("1"!=localStorage.getItem(Ws));qs.subscribe((t=>{t?localStorage.removeItem(Ws):localStorage.setItem(Ws,"1")}));var Xs=Ye('<div><p class="micrio-subtitles"> </p></div>');function Ys(t,e){Ee(e,!0);const[i,r]=sr();let n=cr(e,"raised",3,!1);const s=q([]);fetch(e.src).then((t=>t.text())).then((t=>{const e=t.split("\n");for(let i=0;i<e.length;i++)if(/-->/.test(e[i])){let t=i+1;const r=[];for(;!e[t]&&t<e.length;)t++;for(;e[t]&&e[t].trim();)r.push(e[t++]);const[n,o]=e[i].split(" --\x3e ").map((t=>t.trim().replace(",",".").split(":").map(Number))).map((t=>3===t.length?3600*t[0]+60*t[1]+t[2]:2===t.length?60*t[0]+t[1]:0));s.push({start:n,end:o,data:r.join("\n")}),i+=r.length+1}})).catch((t=>console.error("Subtitles: fetch error:",t)));const o=xe("micrio");let a=j(0);const l=t=>Z(a,t.detail,!0);Hi((()=>(o.addEventListener("timeupdate",l),()=>o.removeEventListener("timeupdate",l))));const c=tt((()=>s.filter((t=>t.start<=jt(a)&&t.end>=jt(a)))));var d=He(),u=ht(d),h=t=>{var e=He();si(ht(e),16,(()=>jt(c)),(t=>t),((t,e)=>{var i=Xs();let r;var s=ut(i),o=ut(s);ae((t=>{r=bi(i,1,"micrio-subtitles",null,r,t),Qe(o,e.data)}),[()=>({raised:n()})]),Ni(3,i,(()=>kn)),Ze(t,i)})),Ze(t,e)};ri(u,(t=>{rr(qs,"$captionsEnabled",i)&&t(h)})),Ze(t,d),_e(),r()}var Gs=t=>t.stopPropagation(),js=t=>t.stopPropagation(),Hs=Ye('<div class="container micrio-progress-bar"><div class="bars micrio-progress-bar"><!></div> <div class="time micrio-progress-bar"> </div></div>');function Zs(t,e){Ee(e,!0);let i=cr(e,"ended",11,!1);var r=Hs();r.__click=[Gs],r.__keydown=[js];var n=ut(r);ui(ut(n),(()=>e.children??L));var s=ut(mt(n,2));ae(((t,e)=>{ki(r,t),Qe(s,e)}),[()=>`--progress: ${Math.round((e.currentTime??0)/e.duration*1e4)/100}%;--time: '${zr(e.currentTime??0)}';`,()=>zr(i()||!e.currentTime||e.currentTime<=0?e.duration:(e.currentTime??0)-e.duration)]),Ze(t,r),_e()}Be(["click","keydown"]);var Js=t=>t.stopPropagation(),Ks=t=>t.stopPropagation(),Qs=Ge('<svg height="42" width="42" class="micrio-media-controls"><circle r="19" cx="21" cy="21" class="micrio-media-controls"></circle></svg>'),to=Ye("<!> <!> <!>",1),eo=Ye('<div class="bar active"></div>'),io=Ye('<aside class="micrio-media-controls"><!> <!></aside> <!>',1);Be(["click","keydown","mousedown"]);var ro=(t,e,i)=>{t.target==jt(e)&&i(t)},no=Ye("<iframe></iframe>"),so=Ye('<source type="video/mp4;codecs=hvc1">'),oo=Ye("<!> <source>",1),ao=Ye('<video playsinline="" class="micrio-media"><!></video>',2),lo=Ye("<audio></audio>"),co=Ye("<micr-io></micr-io>",2),uo=Ye("<aside><!></aside>"),ho=Ye('<figcaption class="micrio-media"><!></figcaption>'),mo=Ye('<div class="show-play micrio-media"><!></div>'),vo=Ye("<figure><div><!> <!> <!></div> <!></figure> <!>",1);function po(t,e){var i,r,n,s,o;Ee(e,!0);const[a,l]=sr(),c=()=>rr(B,"$_lang",a),d=xe("micrio");let u=cr(e,"src",11,void 0),h=cr(e,"volume",15,1),m=cr(e,"width",3,640),v=cr(e,"height",3,380),p=cr(e,"frameScale",3,1),g=cr(e,"autoplay",15,!1),f=cr(e,"loop",3,!1),w=cr(e,"loopDelay",3,void 0),b=cr(e,"controls",15,!1),y=cr(e,"title",3,void 0),k=cr(e,"figcaption",3,null),x=cr(e,"paused",15,!0),T=cr(e,"forcePause",3,void 0),E=cr(e,"seeking",15,!0),_=cr(e,"duration",31,(()=>-1)),A=cr(e,"currentTime",15),S=cr(e,"is360",3,!1),I=cr(e,"tour",3,null),M=cr(e,"secondary",3,!1),$=cr(e,"fullscreen",3,void 0),P=cr(e,"className",3,null),L=cr(e,"hasTransparentH265",3,!1),C=cr(e,"noPlayOverlay",3,!1),R=cr(e,"uuid",15,""),D=cr(e,"image",19,(()=>tr(d.current))),F=cr(e,"destroying",3,void 0),z=cr(e,"_media",15,void 0),O=j(!1);R(R()+(u()??(null==(i=I())?void 0:i.id)));const N=D().$info,{events:V,state:U,_lang:B}=d,W=xe("volume"),X=0==rr(W,"$mainVolume",a),Y=xe("srt"),G=xe("mediaPaused"),H=d.hasAttribute("data-native-frame"),J=function(t,e,i=!1,r=0){const n=null==(t=function(t){if(t)return/<iframe /.test(t)&&(t=t.replace(/^.* src="([^"]+)".*$/,"$1")),t.startsWith("video://")&&(t=t.replace("video:","https:")),t}(t))?void 0:t.toLowerCase(),s={type:un.None,originalSrc:t,isCloudflare:!1};if(!t&&e)return s.type=un.VideoTour,s;if(!t||!n)return s;if(t.startsWith("cfvid://"))return s.isCloudflare=!0,s.cloudflareId=t.slice(8),s.hlsSrc=`https://videodelivery.net/${s.cloudflareId}/manifest/video.m3u8`,s.type=un.Video,s;if(n.endsWith(".mp3"))return s.type=un.Audio,s.src=t,s;if(n.endsWith(".mp4")||n.endsWith(".webm"))return s.type=un.Video,s.src=t,s;if(n.startsWith("micrio://"))return s.type=un.Micrio,s.micrioEmbed=t.slice(9).split(","),s;if(!i){const e=mn.exec(t);if(null==e?void 0:e[5]){if("playlist"!==e[5]){s.type=un.IFrame,s.frameType=hn.YouTube,s.youtubeId=e[5];const i=pn.test(t)?Number(t.replace(pn,"$1")):r;return s.startTime=Math.round(i),s.src=`${gn}/embed/${e[5]}?autoplay=0&enablejsapi=1&controls=0&start=${s.startTime}`,s}{const e=/list=([^&]+)/.exec(t);if(null==e?void 0:e[1])return s.type=un.IFrame,s.src=`${gn}/embed/videoseries?list=${e[1]}`,s}}if(vn.test(t)){const e=t.match(/\/(\d+)/);if(null==e?void 0:e[1]){s.type=un.IFrame,s.frameType=hn.Vimeo,s.vimeoId=e[1];const i=t.slice(t.indexOf(e[1])+e[1].length+1);s.vimeoToken=i.replace(/\?.*$/,"")||void 0;const n=Math.round(r);return s.src=`https://player.vimeo.com/video/${e[1]}?${s.vimeoToken?`h=${s.vimeoToken}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=${n}s`,s}}}return n.startsWith("http")?(s.type=un.IFrame,s.src=t,s):s}(u(),I(),H,A()??0),{type:K,frameType:Q,isCloudflare:et,micrioEmbed:it,hlsSrc:rt}=J;let nt,st=j(q(J.src??u()));K==un.Micrio&&x(!1),(K==un.Micrio||K==un.IFrame&&!Q)&&b(!1);let ot=-1,at=j(q(Q==hn.YouTube||Q==hn.Vimeo));const lt=K==un.Audio&&Nr.iOS;let ct,dt=j(void 0);const vt=U.mediaState.get(R());vt&&(A(vt.currentTime),g(!x(vt.paused))),U.mediaState.set(R(),{get currentTime(){return A()??0},set currentTime(t){Pt(t)},get paused(){return x()},set paused(t){t?_t():Et()}});let pt=j(void 0);if(I()){const t=new zs(D(),I());null!=A()&&A()>0&&(t.currentTime=A()),K==un.VideoTour&&(_("duration"in I()?Number(I().duration):(null==(n=null==(r=I().i18n)?void 0:r[c()])?void 0:n.duration)??0),h(NaN)),Z(pt,t,!0)}const gt=I()&&!("steps"in I())?"subtitle"in I()?I().subtitle:null==(o=null==(s=I().i18n)?void 0:s[d.lang])?void 0:o.subtitle:void 0,ft=gt&&("fileUrl"in gt?gt.fileUrl:gt.src);let wt,bt=j(!1),yt=j(!1),kt=!1,xt=j(!1);function Tt(t){t&&"button"in t&&0!=t.button||(x()?Et():_t())}async function Et(t){var i,r,n,s;if(!(t instanceof PointerEvent&&0!=t.button)&&(!kt||await async function(){return z()?z().paused:jt(pt)?x():!!nt&&nt.isPaused()}())){switch(Z(yt,!1),_()>0&&null!=A()&&A()>=_()&&A(0),!M()&&ft&&Y.set(ft),K){case un.VideoTour:x(E(!1)),null==(i=jt(pt))||i.play(),Rt();break;case un.Audio:case un.Video:null==(r=z())||r.addEventListener("play",(()=>{z()&&(isNaN(z().duration)?z().addEventListener("durationchange",At,{once:!0}):At())}),{once:!0}),null==(n=z())||n.play().catch((t=>{var i;C()?x(!0):/pause\(\)/.test(t.toString())||(Z(bt,!0),d.events.dispatch("media-blocked"),null==(i=e.onblocked)||i.call(e))}));break;case un.IFrame:null==nt||nt.play();break;default:return}kt=!0,V.dispatch("media-play"),G.set(!1),null==(s=e.onplay)||s.call(e),S()||X||jt(pt)&&!z()||W.set(D().$settings.mutedVolume||0)}}function _t(){V.dispatch("media-pause"),G.set(!0),z()?(z().pause(),lt&&x(!0)):jt(pt)?(jt(pt).pause(),x(!0),Dt()):nt&&!jt(Vt)&&nt.pause()}function At(){Z(bt,!1),x(!1),jt(pt)&&z()&&(z().duration>jt(pt).duration&&(jt(pt).duration=z().duration),jt(pt).currentTime=z().currentTime,jt(pt).play())}function St(){E(!1),S()&&D()&&!D()._video&&D().video.set(z())}function It(){var t;jt(yt)||(jt(pt)?_t():(x(!0),Dt()),Z(yt,!0),V.dispatch("media-ended"),null==(t=e.onended)||t.call(e),Nt())}function Mt(t){z()?z(z().muted=t,!0):nt&&nt.setMuted(t)}function $t(){Z(O,!jt(O)),Mt(jt(O)),X||W.set(jt(O)?1:D().$settings.mutedVolume||0)}function Pt(t){E(!0),z()?z(z().currentTime=t,!0):jt(pt)?(A(jt(pt).currentTime=t),E(!1)):nt&&nt.setCurrentTime(t)}function Lt(){jt(pt)?(A(jt(pt).currentTime),jt(pt).ended&&It()):nt&&nt.getCurrentTime().then((t=>{A(t)})),Ct()}function Ct(){M()||V.dispatch("timeupdate",A())}function Rt(){ot>=0||(ot=setInterval(Lt,250),Lt())}function Dt(){clearInterval(ot),ot=-1}async function Ft(){if(et&&rt&&("MediaSource"in window||"ManagedMediaSource"in window)){const t=new Bs(z(),rt,{onReady:()=>E(!1),onEnded:It});return await t.initialize(),void(nt=t)}if(K==un.IFrame&&jt(dt)){if(Q==hn.YouTube){const t=new Ns(jt(dt),{width:jt(Ht),height:jt(Zt)},{onReady:()=>E(!1),onDurationChange:t=>_(t),onPlay:()=>{Rt(),Z(xt,x(E(!1)),!0)},onPause:()=>{x(!0),Dt()},onEnded:It,onBlocked:()=>{Z(xt,x(!0),!0),Dt()},onSeeking:()=>{Lt(),E(!0),Dt()}});return E(!0),await t.initialize(),void(nt=t)}if(Q==hn.Vimeo){const t=new Vs(jt(dt),{width:jt(Ht),height:jt(Zt)},{onReady:()=>E(!1),onPlay:()=>x(E(!1)),onPause:()=>x(!0),onSeeking:()=>E(!0),onSeeked:()=>E(!1),onTimeUpdate:t=>A(t),onDurationChange:t=>_(t),onEnded:It});return E(!0),await t.initialize(),void(nt=t)}}z()&&(et&&rt&&Z(st,rt,!0),function(){if(!z())return;z(z().ontimeupdate=Ct,!0),jt(pt)&&(z(z().onpause=()=>{var t,e;Ot=!!(null==(t=z())?void 0:t.ended),(null==(e=z())?void 0:e.ended)||jt(pt).pause()},!0),z(z().onseeked=()=>{!z()||z().ended||Ot||(jt(pt).currentTime=z().currentTime,zt&&(z().pause(),zt=!1))},!0));null!=A()&&A()>0&&(z().duration>0?z(z().currentTime=A(),!0):z(z().oncanplay=()=>{z()&&(z(z().oncanplay=null,!0),g()||(z().play(),zt=!0),z(z().currentTime=ct,!0))},!0));const t=f()&&void 0!==w()?w():-1;z(z().onended=t>=0?()=>{clearTimeout(wt),wt=setTimeout((()=>{var t;T()||null==(t=z())||t.play()}),1e3*t)}:It,!0)}())}let zt=!1,Ot=!1;function Nt(){X||W.set(1)}let Vt=j(!1);const Ut=F()&&F().subscribe((t=>{t&&Wt()})),Bt=()=>{var t;return A((null==(t=z())?void 0:t.currentTime)??0)};function Wt(){jt(Vt)||(Z(Vt,!0),Ut&&Ut(),S()&&D()&&D().video.set(void 0),U.mediaState.delete(R()),Dt(),_t(),Nt(),ft&&Y.set(void 0),z()&&(z(z().onended=null,!0),lt&&(z(z().onloadedmetadata=z(z().onplay=z(z().onseeking=z(z().onseeked=null,!0),!0),!0),!0),z().removeEventListener("timeupdate",Bt)),z(z().ontimeupdate=z(z().onpause=z(z().onseeked=z(z().oncanplay=null,!0),!0),!0),!0)),jt(pt)&&jt(pt).destroy(),nt&&(nt.destroy(),nt=void 0))}const qt=K==un.Video;let Xt=j(q(qt&&et&&1!=p()&&Nr.iOS));const Yt=N.is360?Math.PI/2:1,Gt=tt((()=>qt?p()*Yt:K==un.IFrame?Math.max(p(),Math.min(m()/512,v()/512)):1)),Ht=tt((()=>qt?m():Math.round(m()/jt(Gt)*Yt))),Zt=tt((()=>qt?v():Math.round(v()/jt(Gt)*Yt)));let Jt=j(void 0),Kt=j(void 0);const Qt=tt((()=>{var t,e;return jt(pt)&&I()?"events"in I()?I().events:(null==(e=null==(t=I().i18n)?void 0:t[c()])?void 0:e.events)??void 0:void 0}));Hi((()=>{var t,i;null==(t=e.onid)||t.call(e,R()),u()&<&&(z((fn||(fn=new Audio),fn)),z(z().controls=!1,!0),z(z().onloadedmetadata=()=>{var t;return _((null==(t=z())?void 0:t.duration)??0)},!0),z(z().src=u(),!0),z(z().oncanplay=St,!0),z(z().onended=It,!0),z().addEventListener("timeupdate",Bt),z(z().onseeking=()=>E(!0),!0),z(z().onseeked=()=>E(!1),!0)),ct=A()||0,Z(at,Q==hn.YouTube||Q==hn.Vimeo,!0),Ft().then((()=>{g()&&Et()})).catch((()=>{})),jt(Xt)&&(null==(i=z())||i.addEventListener("playing",(()=>Z(Xt,!1)),{once:!0}));let r=!1;const n=d.isMuted.subscribe((t=>{r?(Z(O,t,!0),Mt(t)):r=!0}));return()=>{Wt(),n(),lt&&z(void 0),null==nt||nt.destroy()}})),re((()=>{void 0!==T()&&x(T())})),re((()=>{f()&&void 0!==w()&&clearTimeout(wt)}));var te=He(),ee=ht(te),ie=t=>{var e=vo(),i=ht(e);let r;ki(i,null);var n=ut(i);let s;n.__pointerup=[ro,Kt,Tt];var o=ut(n),l=t=>{var e=no();let i;Xi(e,(t=>Z(dt,t)),(()=>jt(dt))),ae(((t,r)=>i=Mi(e,i,{...t,title:y(),src:jt(st),width:jt(Ht),height:jt(Zt),frameborder:"0",allow:"fullscreen *;autoplay *;encrypted-media *",[xi]:r},"micrio-media")),[()=>({credentialless:!0}),()=>({hooked:jt(at)&&!jt(xt)})]),Ze(t,e)},c=(t,e)=>{var i=t=>{var e=ao();e.controls=!1;var i=ut(e),r=t=>{var e=oo(),i=ht(e),r=t=>{var e=so();ae((t=>Si(e,"src",t)),[()=>jt(st).replace(".webm",".mp4")]),Ze(t,e)};ri(i,(t=>{L()&&jt(st).endsWith(".webm")&&t(r)}));var n=mt(i,2);Si(n,"type",et?"application/x-mpegURL":void 0),ae((()=>Si(n,"src",jt(st)))),Ze(t,e)};ri(i,(t=>{jt(st)&&t(r)})),Xi(e,(t=>z(t)),(()=>z())),ae((()=>{e.loop=f()&&(null==w()||w()<=0),Si(e,"width",m()),Si(e,"height",v()),ki(e,jt(Xt)?"opacity: 0":void 0),e.muted=jt(O),e.autoplay=!!g()})),Ue("canplay",e,St),Ue("ended",e,It),Yi("duration","durationchange",e,_),Ui(e,A),Bi(e,E),Wi(e,x),Ze(t,e)},r=(t,e)=>{var i=t=>{var e=lo();e.controls=!1,Xi(e,(t=>z(t)),(()=>z())),ae((()=>{Si(e,"src",jt(st)),e.muted=jt(O)})),Ue("canplay",e,(()=>E(!1))),Ue("ended",e,It),Yi("duration","durationchange",e,_),Ui(e,A),Bi(e,E),Wi(e,x),Ze(t,e)},r=(t,e)=>{var i=t=>{var e=co();Ii(e,"data-logo","false"),ae((()=>Ii(e,"id",it[0]))),ae((()=>Ii(e,"width",it[1]))),ae((()=>Ii(e,"height",it[2]))),ae((()=>Ii(e,"lang",it[3]))),ae((()=>Ii(e,"data-path",N.path))),Ze(t,e)};ri(t,(t=>{K==un.Micrio&&it&&t(i)}),e)};ri(t,(t=>{K!=un.Audio||lt?t(r,!1):t(i)}),e)};ri(t,(t=>{K==un.Video?t(i):t(r,!1)}),e)};ri(o,(t=>{K==un.IFrame?t(l):t(c,!1)}));var d=mt(o,2),u=t=>{!function(t,e){Ee(e,!0);let i=cr(e,"currentTime",11,0);const r=xe("micrio");e.events.forEach((t=>{t.start=Number(t.start||0),t.end=Math.min(Number(t.end||0),e.duration)}));const n=t=>e.events.forEach((e=>{const i=e.start<=t&&e.end>=t;i!=!!e.active&&(e.active=i,r.events.dispatch("tour-event",{...e}))}));re((()=>{n(i())})),Zi((()=>n(1/0))),_e()}(0,{get events(){return jt(Qt)},get currentTime(){return A()},set currentTime(t){A(t)},get duration(){return _()},set duration(t){_(t)}})};ri(d,(t=>{var e;(null==(e=jt(Qt))?void 0:e.length)&&_()>0&&!jt(Vt)&&t(u)}));var p=mt(d,2),T=t=>{var e=uo();let i;var r=ut(e);const n=tt((()=>!isNaN(h()))),s=tt((()=>S()||K!=un.IFrame&&K!=un.Video?$():jt(Jt)));!function(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(In,"$i18n",i),s=()=>rr(qs,"$captionsEnabled",i);let o=cr(e,"currentTime",15),a=cr(e,"duration",11,0),l=cr(e,"seeking",11,!0),c=cr(e,"minimal",3,!1),d=cr(e,"ended",15),u=cr(e,"fullscreen",3,void 0),h=cr(e,"subtitles",3,!1),m=cr(e,"hasAudio",3,!0),v=cr(e,"muted",3,!1),p=j(void 0);function g(t){0==t.button&&(window.addEventListener("mousemove",f),window.addEventListener("mouseup",w),f(t))}function f(t){var i;const r=jt(p).getClientRects()[0],n=Math.min(1,Math.max(0,(t.clientX-r.left)/r.width));null==(i=e.onseek)||i.call(e,n*a())}function w(){window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",w)}var b=io(),y=ht(b);y.__click=[Js],y.__keydown=[Ks];var k=ut(y);const x=tt((()=>e.paused?"play":"pause")),T=tt((()=>e.paused?n().play:n().pause));ws(k,{get type(){return jt(x)},get title(){return jt(T)},get onclick(){return e.onplaypause},children:(t,e)=>{var i=He(),r=ht(i),n=t=>{var e=Qs(),i=ut(e);ae((()=>Si(i,"stroke-dashoffset",119.4*(1-o()/a())))),Ze(t,e)};ri(r,(t=>{c()&&void 0!==o()&&o()>0&&t(n)})),Ze(t,i)},$$slots:{default:!0}});var E=mt(k,2),_=t=>{var i=to(),r=ht(i),o=t=>{const i=tt((()=>v()?"volume-off":"volume-up")),r=tt((()=>v()?n().audioUnmute:n().audioMute));ws(t,{get disabled(){return l()},get type(){return jt(i)},get title(){return jt(r)},get onclick(){return e.onmute}})};ri(r,(t=>{m()&&t(o)}));var a=mt(r,2),c=t=>{const e=tt((()=>s()?"subtitles":"subtitles-off"));ws(t,{get type(){return jt(e)},get active(){return s()},get title(){return n().subtitlesToggle},onclick:()=>qs.set(!s())})};ri(a,(t=>{h()&&t(c)}));var d=mt(a,2),p=t=>{Is(t,{get el(){return u()}})};ri(d,(t=>{u()&&t(p)})),Ze(t,i)};ri(E,(t=>{c()||t(_)}));var A=mt(y,2),S=t=>{Zs(t,{get duration(){return a()},get currentTime(){return o()},set currentTime(t){o(t)},get ended(){return d()},set ended(t){d(t)},children:(t,e)=>{var i=eo();i.__mousedown=g,Xi(i,(t=>Z(p,t)),(()=>jt(p))),ae((()=>ki(i,`--progress:${(o()??0)/a()*100}%;`))),Ze(t,i)},$$slots:{default:!0}})};ri(A,(t=>{c()||t(S)})),Ze(t,b),_e(),r()}(r,{subtitles:!!ft,get hasAudio(){return jt(n)},get muted(){return jt(O)},get fullscreen(){return jt(s)},onplaypause:Tt,onmute:$t,onseek:t=>Pt(t),get paused(){return x()},set paused(t){x(t)},get seeking(){return E()},set seeking(t){E(t)},get duration(){return _()},set duration(t){_(t)},get currentTime(){return A()},set currentTime(t){A(t)},get ended(){return jt(yt)},set ended(t){Z(yt,t,!0)}}),ae((t=>i=bi(e,1,"micrio-media",null,i,t)),[()=>({inside:"inside"==b()})]),Ze(t,e)};ri(p,(t=>{b()&&t(T)})),Xi(n,(t=>Z(Kt,t)),(()=>jt(Kt)));var I=mt(n,2),M=t=>{var e=ho();di(ut(e),k),Ze(t,e)};ri(I,(t=>{k()&&t(M)})),Xi(i,(t=>Z(Jt,t)),(()=>jt(Jt)));var C=mt(i,2),R=t=>{var e=mo();e.__pointerup=Et,ws(ut(e),{get title(){return rr(In,"$i18n",a).play},type:"play"}),Ze(t,e)};ri(C,(t=>{jt(bt)&&t(R)})),ae(((t,e)=>{r=bi(i,1,pi(P()),"micrio-media",r,t),ki(n,1==jt(Gt)||K!=un.Video&&N.is360?"":`transform:scale(${jt(Gt)})`),s=bi(n,1,"micrio-media",null,s,e)}),[()=>({paused:x(),is360:S(),"media-video":K==un.IFrame||K==un.Video,"media-micrio":K==un.Micrio}),()=>({videotour:!!jt(pt)})]),Ze(t,e)};ri(ee,(t=>{D().$settings.noUI||t(ie)})),Ze(t,te),_e(),l()}Be(["pointerup"]);var go=t=>t.stopPropagation(),fo=Ye("<article><!></article>");function wo(t,e){Ee(e,!0);let i=cr(e,"cn",3,null);function r(t){var e;t.target&&t.target instanceof HTMLAnchorElement&&!(null==(e=t.target.getAttribute("href"))?void 0:e.startsWith("#"))&&(t.target.target="_blank")}var n=fo();n.__click=[go],n.__keydown=r,n.__pointerdown=r,ui(ut(n),(()=>e.children??L)),ae((()=>bi(n,1,pi(i()),"micrio-article"))),Ze(t,n),_e()}Be(["click","keydown","pointerdown"]);var bo=Ye('<h1 class="micrio-marker-content"> </h1>'),yo=Ye('<figcaption class="micrio-marker-content"> </figcaption>'),ko=Ye('<button class="micrio-marker-content"><figure class="micrio-marker-content"><img class="micrio-marker-content"> <!></figure></button>'),xo=Ye('<section class="micrio-marker-content"></section>'),To=Ye("<!> <!>",1),Eo=Ye("<main><!> <!> <!> <!> <!> <!> <!></main>");function _o(t,e){var i,r,n;Ee(e,!0);const[s,o]=sr(),a=()=>rr(g,"$tour",s),l=()=>rr(p,"$lang",s);let c=cr(e,"noEmbed",3,!1),d=cr(e,"noImages",3,!1),u=cr(e,"noGallery",3,!1),h=cr(e,"_content",15),m=cr(e,"_title",15);const v=xe("micrio"),p=v._lang,g=v.state.tour,f=a()&&"steps"in a()&&a().isSerialTour,w=xe("markerImages").get(e.marker.id),b=w.$settings._markers??{},y=!b.preventAutoPlay,k=!(null==(i=e.marker.data)?void 0:i.preventImageOpen)&&!u(),x=1==(null==(r=e.marker.images)?void 0:r.length),T=tt((()=>e.marker.i18n?e.marker.i18n[l()]:e.marker)),E=tt((()=>{var t,i,r,n,s;return!((null==(t=jt(T))?void 0:t.title)||(null==(i=jt(T))?void 0:i.audio)||e.marker.images&&e.marker.images.length||(null==(r=jt(T))?void 0:r.embedUrl)||e.marker.videoTour||(null==(n=jt(T))?void 0:n.body)||(null==(s=jt(T))?void 0:s.bodySecondary))})),_=()=>{var t;a()&&"steps"in a()&&(a().isSerialTour||b.tourAutoProgress)&&(null==(t=e.onclose)||t.call(e))};const A=tt((()=>{var t;return!y||!(null==(t=e.marker)?void 0:t.audioAutoPlay)})),S=tt((()=>{var t,i,r;return!1===(null==(t=e.marker)?void 0:t.embedAutoPlay)||!y||!(!(null==(i=jt(T))?void 0:i.audio)||!(null==(r=e.marker)?void 0:r.audioAutoPlay))})),I=null==(n=w.tileBase)?void 0:n.includes("micrio.dev"),M=t=>{var e,i;return null==(i=null==(e=t.i18n)?void 0:e[l()])?void 0:i.title},$=tt((()=>{var t,i,r,n;return(null==(r=null==(i=null==(t=e.marker.videoTour)?void 0:t.i18n)?void 0:i[l()])?void 0:r.audio)??(null==(n=jt(T))?void 0:n.audio)})),P=tt((()=>jt($)?"fileUrl"in jt($)?jt($).fileUrl:jt($).src:void 0)),L=tt((()=>{var t,i,r,n;return x&&(null==(n=null==(r=null==(i=null==(t=e.marker.images)?void 0:t[0])?void 0:i.i18n)?void 0:r[l()])?void 0:n.description)}));var C=He(),R=ht(C),D=t=>{var i=Eo();let r;var n=ut(i),s=t=>{var e=bo(),i=ut(e);Xi(e,(t=>m(t)),(()=>m())),ae((()=>Qe(i,jt(T).title))),Ze(t,e)};ri(n,(t=>{jt(T).title&&t(s)}));var o=mt(n,2),a=t=>{wo(t,{children:(t,e)=>{var i=He();di(ht(i),(()=>jt(T).body)),Ze(t,i)},$$slots:{default:!0}})};ri(o,(t=>{jt(T).body&&b.primaryBodyFirst&&t(a)}));var l=mt(o,2),u=t=>{const i=tt((()=>e.marker.audioAutoPlay||!jt(T).audio&&!!e.marker.videoTour)),r=tt((()=>!e.marker.videoTour||!jt(T)||!jt(T).embedUrl));po(t,{get src(){return jt(P)},noPlayOverlay:!0,image:w,get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return jt(i)},get controls(){return jt(r)},onended:_,get paused(){return jt(A)}})};ri(l,(t=>{!f&&((!jt(T)||!jt(T).embedUrl)&&e.marker.videoTour||jt(T)&&jt(T).audio)&&t(u)}));var p=mt(l,2),g=t=>{var i=xo();si(i,21,(()=>e.marker.images),(t=>t.id??t.src),((t,i)=>{var r=ko();r.__click=function(...t){var r;null==(r=k?()=>{return t=jt(i).micrioId,void(k&&v.state.popover.set({gallery:e.marker.images,galleryStart:t,image:w}));var t}:void 0)||r.apply(this,t)},r.disabled=!k;var n=ut(r),s=ut(n),o=mt(s,2),a=t=>{var e=yo(),i=ut(e);ae((()=>Qe(i,jt(L)))),Ze(t,e)};ri(o,(t=>{jt(L)&&t(a)})),ae(((t,e,i)=>{Si(r,"title",t),Si(s,"alt",e),Si(s,"src",i)}),[()=>M(jt(i)),()=>M(jt(i)),()=>jt(i).micrioId?`https://iiif.${I?"micrio.dev":"micr.io"}/${jt(i).micrioId}/full/${x?"^"+Math.min(jt(i).width,640)+",":"^,320"}/0/default.webp`:jt(i).src]),Ze(t,r)})),Ze(t,i)};ri(p,(t=>{var i;!d()&&(null==(i=e.marker.images)?void 0:i.length)&&t(g)}));var $=mt(p,2),C=t=>{var i=To(),r=ht(i),n=t=>{po(t,{image:w,className:"hidden",get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},autoplay:y,secondary:!0})};ri(r,(t=>{!jt(T).audio&&e.marker.videoTour&&t(n)}));var s=mt(r,2);const o=tt((()=>!jt(S)));po(s,{image:w,get src(){return jt(T).embedUrl},get uuid(){return e.marker.id},width:400,height:240,controls:!0,get title(){return jt(T).embedTitle},get figcaption(){return jt(T).embedDescription},get autoplay(){return jt(o)},onended:_,get paused(){return jt(S)}}),Ze(t,i)};ri($,(t=>{jt(T).embedUrl&&!c()&&t(C)}));var R=mt($,2),D=t=>{wo(t,{children:(t,e)=>{var i=He();di(ht(i),(()=>jt(T).body)),Ze(t,i)},$$slots:{default:!0}})};ri(R,(t=>{jt(T).body&&!b.primaryBodyFirst&&t(D)}));var F=mt(R,2),z=t=>{wo(t,{cn:"secondary",children:(t,e)=>{var i=He();di(ht(i),(()=>jt(T).bodySecondary)),Ze(t,i)},$$slots:{default:!0}})};ri(F,(t=>{jt(T).bodySecondary&&t(z)})),Xi(i,(t=>h(t)),(()=>h())),ae((t=>r=bi(i,1,"micrio-marker-content",null,r,t)),[()=>({empty:jt(E)})]),Ze(t,i)};ri(R,(t=>{jt(T)&&t(D)})),Ze(t,C),_e(),o()}Be(["click"]);var Ao=Ye('<button class="micrio-button tour-step micrio-marker-popup" disabled> </button>'),So=Ye("<!> <!> <!>",1),Io=Ye('<progress class="progress micrio-marker-popup"></progress> <!>',1),Mo=Ye('<div><aside class="micrio-marker-popup"><!> <!> <!></aside> <!></div>');function $o(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(c,"$tour",i),s=()=>rr(l,"$current",i),o=()=>rr(In,"$i18n",i),a=xe("micrio"),{current:l}=a,c=a.state.tour,d=xe("markerImages").get(e.marker.id),u=d.$settings._markers??{},h=tt((()=>n()&&"steps"in n()?a.canvases.find((t=>{var e,i;return null==(i=null==(e=t.$data)?void 0:e.markerTours)?void 0:i.find((t=>t.id===n().id))})):void 0)),m=e.marker.data||{},v=u.canMinimizePopup;let p=j(void 0);function g(t){var e,i,r;n()&&jt(w)&&"steps"in n()?t instanceof Event&&jt(x)?c.set(void 0):null==(i=(e=n()).next)||i.call(e):s()&&!d.opts.secondaryTo&&s().id!=d.id&&(null==(r=m.micrioLink)?void 0:r.id)==s().id?(a.open(d.id),d.state.marker.set(void 0),a.state.popup.set(void 0)):d.state.marker.set(void 0)}const f=tt((()=>n()&&"steps"in n()?n():void 0)),w=tt((()=>{var t;return jt(f)&&(null==(t=jt(f))?void 0:t.steps.findIndex((t=>t.startsWith(e.marker.id))))>=0})),b=tt((()=>{var t,e,i;return jt(w)&&!(null==(t=jt(f))?void 0:t.isSerialTour)&&((null==(i=null==(e=jt(h))?void 0:e.$settings._markers)?void 0:i.tourControlsInPopup)??u.tourControlsInPopup)})),y=tt((()=>{var t,e,i;return jt(w)&&!(null==(t=jt(f))?void 0:t.isSerialTour)&&((null==(i=null==(e=jt(h))?void 0:e.$settings._markers)?void 0:i.tourStepCounterInPopup)??u.tourStepCounterInPopup)})),k=tt((()=>{var t;return(null==(t=jt(f))?void 0:t.currentStep)??-1})),x=tt((()=>jt(b)||(jt(f)?jt(f).currentStep==jt(f).steps.length-1:void 0)));let T=j(!1);const E=(t=!1)=>{var e,i,r,n;jt(f)&&(t?null==(i=(e=jt(f)).prev)||i.call(e):null==(n=(r=jt(f)).next)||n.call(r),Z(T,!0),setTimeout((()=>Z(T,!1)),200))};let _=j(!1),A=j(void 0),S=j(void 0);const I=new WeakMap,M=()=>{if(Z(_,!jt(_)),jt(A))for(let t=0;t<jt(A).children.length;t++){const e=jt(A).children[t];e instanceof HTMLElement&&e!=jt(S)&&(I.has(e)||(I.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout((()=>{e.style.height=jt(_)?"0px":I.get(e)+"px"}),100))}};let $=j(!1);Hi((()=>{var t;e.marker.tags.forEach((t=>{var e;return null==(e=jt(p))?void 0:e.classList.add(t)})),setTimeout((()=>{var t,e;return null==(e=null==(t=jt(p))?void 0:t.querySelector("button"))?void 0:e.focus()}),500);const i="embedImages"in e.marker?e.marker.embedImages:void 0;i&&(null==(t=a.$current)||t.data.update((t=>(t||(t={embeds:[]}),t.embeds=[...t.embeds??[],...i],t))));const r=a.state.popup.subscribe((t=>Z($,!t||t!=e.marker,!0)));return()=>{var t;r(),i&&(null==(t=a.$current)||t.data.update((t=>(null==t?void 0:t.embeds)?(t.embeds=t.embeds.filter((t=>!i.find((e=>e.id==t.id)))),t):t)))}}));var P=Mo();let L;var C=ut(P),R=ut(C),D=t=>{const e=tt((()=>!jt(w)||jt(x)?"close":"arrow-right")),i=tt((()=>!jt(w)||jt(x)?o().closeMarker:o().tourStepNext));ws(t,{get type(){return jt(e)},get title(){return jt(i)},get disabled(){return jt(T)},onclick:g})};ri(R,(t=>{m.alwaysOpen||t(D)}));var F=mt(R,2),z=t=>{const e=tt((()=>jt(_)?"arrow-up":"arrow-down"));ws(t,{get type(){return jt(e)},get title(){return o().minimize},onclick:M})};ri(F,(t=>{v&&t(z)}));var O=mt(F,2),N=t=>{var e=Io(),i=ht(e);Si(i,"aria-hidden",!0),Ss(mt(i,2),{className:"micrio-tour-controls",children:(t,e)=>{var i=So(),r=ht(i);const s=tt((()=>jt(T)||0==jt(k)));ws(r,{type:"arrow-left",get disabled(){return jt(s)},get title(){return o().tourStepPrev},onclick:()=>E(!0)});var a=mt(r,2),l=t=>{var e=Ao(),i=ut(e);ae((()=>Qe(i,`${jt(k)+1} / ${n().steps.length??""}`))),Ze(t,e)};ri(a,(t=>{jt(y)&&t(l)}));var c=mt(a,2);const d=tt((()=>jt(T)||jt(k)+1==n().steps.length));ws(c,{type:"arrow-right",get disabled(){return jt(d)},get title(){return o().tourStepNext},onclick:()=>E()}),Ze(t,i)},$$slots:{default:!0}}),ae((()=>{return t=i,e=(jt(k)+1)/n().steps.length,void((r=$i(t)).value!==(r.value=e??void 0)&&(t.value!==e||0===e&&"PROGRESS"===t.nodeName)&&(t.value=e??""));var t,e,r})),Ze(t,e)};ri(O,(t=>{jt(b)&&n()&&"steps"in n()&&t(N)})),_o(mt(C,2),{get marker(){return e.marker},onclose:g,get _content(){return jt(A)},set _content(t){Z(A,t,!0)},get _title(){return jt(S)},set _title(t){Z(S,t,!0)}}),Xi(P,(t=>Z(p,t)),(()=>jt(p))),ae((t=>L=bi(P,1,"micrio-marker-popup",null,L,t)),[()=>({destroying:jt($),minimized:jt(_)})]),Ni(3,P,(()=>xn),(()=>u.popupAnimation)),Ze(t,P),_e(),r()}var Po=Ye('<li><button class="micrio-serial-tour"> </button></li>'),Lo=Ye('<ol class="micrio-serial-tour"></ol>'),Co=Ye("<!> <!> <!> <!>",1),Ro=Ye('<div role="progressbar"></div>'),Do=Ye('<!> <aside class="micrio-media-controls micrio-serial-tour"><!> <!></aside> <!>',1);function Fo(t,e){var i,r;Ee(e,!0);const[n,s]=sr(),o=()=>rr(u,"$lang",n),a=()=>rr(In,"$i18n",n),l=()=>rr(qs,"$captionsEnabled",n),c=e.tour.stepInfo,d=xe("micrio"),u=d._lang,h=d.$current,m=d.state.marker,v=h.$settings,p=!!(null==(r=null==(i=null==v?void 0:v.ui)?void 0:i.controls)?void 0:r.serialTourNoTimeScrub),g=c.reduce(((t,e)=>t+e.duration),0)??0,f="controls"in e.tour?!1!==e.tour.controls:!e.tour.noControls;let w=j(!1),b=j(!1),y=j(!1);re((()=>d.isMuted.subscribe((t=>{Z(y,t,!0)}))));let k=j(void 0),x=j(void 0),T=j(0),E=j("");function _(){const t=d.state.mediaState.get(jt(E));t&&(t.paused=Z(w,!t.paused)),jt(w)?(d.events.dispatch("serialtour-pause",e.tour),d.events.enabled.set(!0)):(d.events.dispatch("serialtour-play",e.tour),d.events.enabled.set(!1))}function A(t,i){var r;if(!e.tour.goto)return;const n=t==e.tour.currentStep;if(p&&n)return;n||e.tour.goto(t);const s=!p&&i?i.offsetX/i.target.offsetWidth:0;c.forEach(((e,r)=>e.ended=!i&&r<t)),M();const o=c[t];o.currentTime=s*o.duration,n&&(null==(r=jt(k))?void 0:r.instance)&&(jt(k).instance.currentTime=o.currentTime),P(t)}function S(){d.isMuted.update((t=>!t))}function I(){var t;const i=jt(x);i&&(i.ended=!0),null!=e.tour.currentStep&&e.tour.currentStep<e.tour.steps.length-1&&e.tour.next?e.tour.next():(Z(w,Z(b,!0),!0),null==(t=e.onended)||t.call(e)),Gt().then((()=>{M(),i&&(i.ended=!1)}))}function M(){var t;null==(t=e.tour.stepInfo)||t.forEach((t=>t.currentTime=0))}const $=Qi([]);function P(t=e.tour.currentStep??0){const i=c.map(((e,i)=>i<t||e.ended||jt(b)?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0));Z(T,i.reduce(((t,e,i)=>t+e/100*c[i].duration),0),!0),$.set(i)}function L(t){const i=t&&!!e.tour.steps.find((e=>e.startsWith(t.id)));Z(k,void 0),i&&t.videoTour&&setTimeout((()=>{const i=c[e.tour.currentStep??0];i.markerId==t.id&&(i.ended=!1,Z(x,i,!0),Z(k,t.videoTour,!0),P())}),10)}const C=t=>{var e;return t.i18n?null==(e=t.i18n[o()])?void 0:e.title:t.title};Hi((()=>{const t=()=>P();d.addEventListener("timeupdate",t);const e=m.subscribe(L);return()=>{e(),d.removeEventListener("timeupdate",t),M()}}));const R=tt((()=>{var t,e;return jt(k)?"audio"in jt(k)?jt(k).audio:null==(e=null==(t=jt(k).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),D=tt((()=>jt(R)?"fileUrl"in jt(R)?jt(R).fileUrl:jt(R).src:void 0)),F=tt((()=>{var t;return!!(null==(t=jt(x))?void 0:t.hasSubtitle)})),z=tt((()=>c.some((t=>t.hasSubtitle))));var O=Do(),N=ht(O),V=t=>{var e=Lo();si(e,21,(()=>c),ni,((t,e,i)=>{var r=He(),n=ht(r),s=t=>{var r=Po();let n;var s=ut(r);s.__click=()=>A(i);var o=ut(s);ae(((t,e)=>{n=bi(r,1,"micrio-serial-tour",null,n,t),Qe(o,e)}),[()=>({active:jt(x)&&jt(x).chapter==i,enriched:jt(e).imageHasOtherMarkers}),()=>C(jt(e).marker)]),Ze(t,r)};ri(n,(t=>{C(jt(e).marker)&&t(s)})),Ze(t,r)})),Ze(t,e)};ri(N,(t=>{e.tour.printChapters&&t(V)}));var U=mt(N,2),B=ut(U),W=t=>{const e=tt((()=>!jt(w)));po(t,{get tour(){return jt(k)},get src(){return jt(D)},get autoplay(){return jt(e)},onid:t=>Z(E,t,!0),onended:I,onplay:()=>Z(w,!1),onblocked:()=>Z(w,!0),get currentTime(){return jt(x).currentTime},set currentTime(t){jt(x).currentTime=t}})};ri(B,(t=>{jt(k)&&jt(x)&&t(W)}));var q=mt(B,2),X=t=>{var e=Co(),i=ht(e);const r=tt((()=>jt(w)?"play":"pause")),n=tt((()=>jt(w)?a().play:a().pause));ws(i,{get type(){return jt(r)},get title(){return jt(n)},onclick:_});var s=mt(i,2);const o=tt((()=>jt(y)?"volume-off":"volume-up")),c=tt((()=>jt(y)?a().audioUnmute:a().audioMute));ws(s,{get type(){return jt(o)},get title(){return jt(c)},onclick:S});var u=mt(s,2),h=t=>{const e=tt((()=>!jt(F))),i=tt((()=>l()?"subtitles":"subtitles-off"));ws(t,{get disabled(){return jt(e)},get type(){return jt(i)},get active(){return l()},get title(){return a().subtitlesToggle},onclick:()=>qs.set(!l())})};ri(u,(t=>{jt(z)&&t(h)})),Is(mt(u,2),{el:d}),Ze(t,e)};ri(q,(t=>{f&&t(X)}));var Y=mt(U,2),G=t=>{Zs(t,{duration:g,get currentTime(){return jt(T)},set currentTime(t){Z(T,t,!0)},get ended(){return jt(b)},set ended(t){Z(b,t,!0)},children:(t,i)=>{var r=He();si(ht(r),17,(()=>c),ni,((t,i,r)=>{var s=He(),o=ht(s),a=t=>{var s=Ro();let o;s.__click=t=>A(r,t),ae(((t,e)=>{o=bi(s,1,"bar",null,o,t),Si(s,"title",e),ki(s,`width:${jt(i).duration/g*100}%; --progress: ${rr($,"$times",n)[r]||0}%`)}),[()=>({active:r==e.tour.currentStep}),()=>C(jt(i).marker)]),Ue("keypress",s,(t=>{"Enter"===t.key&&A(r)})),Ze(t,s)};ri(o,(t=>{jt(i).duration>0&&t(a)})),Ze(t,s)})),Ze(t,r)},$$slots:{default:!0}})};ri(Y,(t=>{f&&t(G)})),Ze(t,O),_e(),s()}Be(["click"]);var zo=Ye('<article class="scroll-tour micrio-tour"></article> <!>',1),Oo=Ye("<!> <!> <!>",1),No=Ye("<div><!> <!></div>");function Vo(t,e){var i,r;Ee(e,!0);const[n,s]=sr(),o=()=>rr(m,"$_lang",n),a=()=>rr(In,"$i18n",n);let l=cr(e,"tour",15),c=cr(e,"noHTML",3,!1);const d=xe("micrio"),{events:u,state:h,_lang:m}=d,v=d.$current,p=v.$data,g=v.$settings,f=d.canvases[0].grid,w=v.state.marker,b="steps"in l()&&l().isSerialTour,y=!("steps"in l()),k="scrollable"in l()&&l().scrollable,x="steps"in l()&&("controls"in l()?!1!==l().controls:!!l().noControls),T=!(!b&&"steps"in l()&&(null==(i=g._markers)?void 0:i.tourControlsInPopup)),E=T&&(y||b),_=!!(null==(r=g._markers)?void 0:r.keepPopupsDuringTourTransitions),A=()=>$(jt(D)-1),S=()=>$(jt(D)+1),I=()=>u.enabled.set(!0);let M;function $(t){var e,i,r,n;if(!("steps"in l())||!l().stepInfo)return;const s=l().stepInfo[t];if(s&&s.markerId==(null==(e=d.state.$marker)?void 0:e.id))return P(s);const o=null==(r=null==(i=l().stepInfo[jt(D)])?void 0:i.micrioImage)?void 0:r.state;o&&o.marker.set(void 0),null==(n=d.$current)||n.state.marker.set(void 0),_||d.state.popup.set(void 0),d.removeEventListener("marker-opened",I),w.set(void 0),s&&(M=setTimeout(L,200,s))}async function P(t){var e,i,r,n,s,o,a;let c=v,u=!1;if(f&&!t.gridView&&f.images.find((e=>e.id==t.micrioId))){const s=!!("steps"in l()&&l().stepInfo&&t)&&(null==(e=l().stepInfo)?void 0:e.indexOf(t))<jt(D),o=(null==(i=t.marker.data)?void 0:i.gridTourTransition)??(null==(n=null==(r=t.marker.data)?void 0:r._meta)?void 0:n.gridTourTransition),a=(null==o?void 0:o.startsWith("slide"))?"slide":"swipe";await Gt().then((()=>{const e=f.focus(c=f.images.find((e=>e.id==t.micrioId)),{view:t.startView,transition:o==a||o==`${a}-horiz`?s?`${a}-left`:`${a}-right`:o==`${a}-vert`?s?`${a}-up`:`${a}-down`:"behind"==o?s?"behind-left":"behind-right":o}).catch((()=>u=!0));return d.events.enabled.set(!1),e}))}else if((null==(s=d.$current)?void 0:s.id)!=t.micrioId){if(t.gridView&&(null==(a=null==(o=t.marker.data)?void 0:o._meta)?void 0:a.gridAction)&&f){t.micrioImage||(t.micrioImage=f.images.find((e=>e.id==t.micrioId))),c=t.micrioImage;const e=t.marker.data._meta.gridAction.split("|");f.action(e.shift(),e.join("|"))}else"steps"in l()&&l().stepInfo&&Z(D,l().stepInfo.indexOf(t),!0),c=d.open(t.micrioId,{gridView:t.gridView,startView:t.startView});await Gt()}else c=d.$current;return[c,u]}async function L(t){let e=v,i=!1;t.micrioId&&([e,i]=await P(t)),i||(t.micrioImage||(t.micrioImage=e),u.enabled.set(!1),e.state.marker.set(t.markerId),d.addEventListener("marker-opened",I,{once:!0}),await Gt(),u.dispatch("tour-step",l()))}function C(){h.tour.set(void 0)}function R(){u.dispatch("tour-ended",l()),(l().closeOnFinish||!l().cannotClose&&x)&&C()}let D=j(-1),F=j(!1);const z=v.camera.getView(),O=g._markers;"steps"in l()&&(l(l().prev=A,!0),l(l().next=S,!0),l(l().goto=$,!0),re((()=>{l(l().currentStep=jt(D),!0)})));const N=Qi(!1);let V;function U(){N.set(!1),clearTimeout(V),V=setTimeout((()=>N.set(!0)),5e3)}N.subscribe((t=>u.dispatch("tour-minimize",t)));let B,W=j(void 0);function q(t){var e,i;if(!("steps"in l())||!jt(W))return;const r=l().steps,n=t.filter((t=>t.isIntersecting)).map((t=>t.target))[0];if(n)for(let s=0;s<jt(W).children.length;s++)if(jt(W).children[s]==n){const t=null==(e=p.markers)?void 0:e.find((t=>t.id==r[s].split(",")[0]));return void(t&&(null==(i=d.$current)||i.camera.flyToView(t.view).catch((()=>{}))))}}let X=[];Hi((()=>("steps"in l()&&an(v,l(),o(),v.$data).then((()=>function(t){var e;if(k||(null==(e=d.$current)?void 0:e.state.$marker)||void 0!==t.initialStep&&$(t.initialStep),k&&jt(W)){B=new IntersectionObserver(q,{root:jt(W),threshold:1});for(let t=0;t<jt(W).children.length;t++)B.observe(jt(W).children[t])}X.push(d.state.marker.subscribe((e=>{if(!e)return void Z(F,!1);const i="string"==typeof e?e:e.id,r=t.steps.findIndex((t=>t.startsWith(i)));if(r>=0&&t.stepInfo){const e=t.stepInfo[Z(D,r,!0)];e&&!e.micrioImage&&(e.micrioImage=d.canvases.find((t=>t.id==e.micrioId))??(null==f?void 0:f.images.find((t=>t.id==e.micrioId)))??d.$current)}Z(F,r<0)})))}(l()))),x||X.push(N.subscribe((t=>{var i;return null==(i=e.onminimize)?void 0:i.call(e,t)}))),c()||"steps"in l()&&!b||!1===l().minimize||(d.addEventListener("pointermove",U),d.addEventListener("touchstart",U),U()),E&&d.setAttribute("data-tour-active",""),()=>{var t,e;for(clearTimeout(V),clearTimeout(M);X.length;)null==(t=X.shift())||t();d.removeEventListener("pointermove",U),d.removeEventListener("touchstart",U),d.removeEventListener("marker-opened",I),E&&d.removeAttribute("data-tour-active"),I(),B&&B.disconnect();const i=d.state.$marker;if("steps"in l()&&l().stepInfo&&null!=l().currentStep){const t=l().stepInfo[l().currentStep];delete l().goto,delete l().next,delete l().prev,i&&(null==t?void 0:t.markerId)==i.id&&(null==(e=t.micrioImage)||e.state.marker.set(void 0),d.state.marker.set(void 0))}v.camera.aniDone=void 0,f||"steps"in l()&&l().keepLastStep||d.$current==v||d.open(v.id),Gt().then((()=>{u.dispatch("tour-stop",l()),"steps"in l()&&delete l().currentStep,!("steps"in l())&&(null==O?void 0:O.zoomOutAfterClose)&&!i&&z&&v.camera.flyToView(z,{speed:null==O?void 0:O.zoomOutAfterCloseSpeed})}))}))),u.dispatch("tour-start",l());let Y=j(0),G=j(!1);const H=tt((()=>"steps"in l()?void 0:l())),J=tt((()=>{var t,e;return jt(H)?"audio"in l()?l().audio:null==(e=null==(t=jt(H).i18n)?void 0:t[o()])?void 0:e.audio:void 0})),K=tt((()=>jt(J)?"fileUrl"in jt(J)?jt(J).fileUrl:jt(J).src:void 0));var Q=He(),et=ht(Q),it=t=>{var e=He(),i=ht(e),r=t=>{var e=zo(),i=ht(e);si(i,21,(()=>l().steps.map((t=>p.markers&&p.markers.find((e=>e.id==t.split(",")[0]))))),ni,((t,e)=>{var i=He(),r=ht(i),n=t=>{$o(t,{get marker(){return jt(e)}})};ri(r,(t=>{jt(e)&&t(n)})),Ze(t,i)})),Xi(i,(t=>Z(W,t)),(()=>jt(W)));var r=mt(i,2),n=t=>{ws(t,{type:"close",get title(){return a().tourStop},className:"scroll-tour-end",onclick:C})};ri(r,(t=>{l().cannotClose||t(n)})),Ze(t,e)},s=(t,e)=>{var i=t=>{var e=No();let i;var r=ut(e),s=t=>{var e=He(),i=ht(e),r=t=>{Fo(t,{get tour(){return l()},onended:R})},n=t=>{var e=Oo(),i=ht(e);const r=tt((()=>0==jt(D)));ws(i,{type:"arrow-left",get title(){return a().tourStepPrev},get disabled(){return jt(r)},onclick:A});var n=mt(i,2);ws(n,{noClick:!0,children:(t,e)=>{var i=je();ae((()=>Qe(i,`${jt(D)+1} / ${l().steps.length??""}`))),Ze(t,i)},$$slots:{default:!0}});var s=mt(n,2);const o=tt((()=>jt(D)==l().steps.length-1));ws(s,{type:"arrow-right",get title(){return a().tourStepNext},get disabled(){return jt(o)},onclick:S}),Ze(t,e)};ri(i,(t=>{b?t(r):t(n,!1)})),Ze(t,e)},o=t=>{po(t,{get tour(){return l()},get src(){return jt(K)},fullscreen:d,controls:!0,autoplay:!0,onended:R,get paused(){return jt(G)},set paused(t){Z(G,t,!0)},get currentTime(){return jt(Y)},set currentTime(t){Z(Y,t,!0)}})};ri(r,(t=>{"steps"in l()?t(s):t(o,!1)}));var c=mt(r,2),u=t=>{ws(t,{type:"close",get title(){return a().close},onclick:C})};ri(c,(t=>{l().cannotClose||t(u)})),ae((t=>i=bi(e,1,"micrio-tour",null,i,t)),[()=>({left:b,"serial-tour":b,"video-tour":y,"no-controls":x,minimized:!jt(G)&&(rr(N,"$minimized",n)||jt(F))})]),Ni(1,e,(()=>kn),(()=>({duration:200}))),Ze(t,e)},r=(t,e)=>{var i=t=>{po(t,{get tour(){return jt(H)},get src(){return jt(K)},autoplay:!0,onended:R,get currentTime(){return jt(Y)},set currentTime(t){Z(Y,t,!0)}})};ri(t,(t=>{jt(H)&&t(i)}),e)};ri(t,(t=>{T?t(i):t(r,!1)}),e)};ri(i,(t=>{k&&"steps"in l()?t(r):t(s,!1)})),Ze(t,e)},rt=(t,e)=>{var i=t=>{po(t,{get tour(){return jt(H)},get src(){return jt(K)},autoplay:!0,onended:R,get currentTime(){return jt(Y)},set currentTime(t){Z(Y,t,!0)}})};ri(t,(t=>{jt(H)&&t(i)}),e)};ri(et,(t=>{c()?t(rt,!1):t(it)})),Ze(t,Q),_e(),s()}class Uo{constructor(t,e,i,r={}){this.micrio=t,this.length=e,this.goto=i,this.opts=r,this.hitTresh=!1,this.snapTo=[],this.pointers=new Map,this.isFullWidth=!1,this.startedWithShift=!1,this.isDragging=()=>2==this.pointers.size||(this.isFullWidth||this.startedWithShift)&&1==this.pointers.size,r.sensitivity||(r.sensitivity=Number(t.getAttribute("data-swipe-sensitivity")??1));const n=t.getAttribute("data-swipe-snap");n&&(this.snapTo=n.split(",").map(Number)),this.micrio.setAttribute("data-hooked",""),this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.mouseleave=this.mouseleave.bind(this),this.image=t.$current,this.image.state.view.subscribe((t=>this.isFullWidth=r.coverLimit?this.image.camera.isZoomedOut():!t||Math.round(1e3*t[3])/1e3>=1));const s=t.wasm.getPtr();t.wasm.e.setNoPinchPan(s,!0),t.wasm.e.setIsSwipe(s,!0),this.micrio.canvas.element.addEventListener("pointerdown",this.dStart)}get currentIndex(){return this.micrio.wasm.e._getActiveImageIdx(this.image.ptr)}destroy(){this.micrio.canvas.element.removeEventListener("pointerdown",this.dStart),this.mouseleave()}dStart(t){this.startedWithShift=t.shiftKey;const e=!this.isDragging();this.pointers.set(t.pointerId,!0),this.pointers.size>2&&this.mouseleave(),e&&(this.hitTresh=!1,this.micrio.setAttribute("data-panning",""),this.startIndex=this.currentIndex,this.startX=t.clientX,this.firstTouchId=t.pointerId,this.micrio.addEventListener("pointermove",this.dMove),this.micrio.addEventListener("pointerup",this.dStop),this.micrio.setPointerCapture(t.pointerId))}dMove(t){if(!this.isDragging()||t.pointerId!=this.firstTouchId||void 0===this.startX||void 0===this.startIndex)return;if(!this.hitTresh&&void 0!==this.startX&&(this.hitTresh=2!=this.pointers.size||Math.abs(t.clientX-this.startX)>(this.micrio.events.pinchFactor&&this.micrio.events.pinchFactor>1.25?.3:.15)*this.micrio.offsetWidth)&&(this.startX=t.clientX),!this.hitTresh)return;const e=this.micrio.$current.camera,i=this.opts.continuous?Math.max(.1,(e.getXY(1,.5)[0]-e.getXY(0,.5)[0])/this.micrio.offsetWidth):1,r=Math.round((t.clientX-this.startX)/(this.micrio.offsetWidth*i)*this.length*(this.opts.sensitivity??1));let n=this.startIndex-r;if(this.opts.continuous){for(;n<0;)n+=this.length;for(;n>this.length-1;)n-=this.length}n=Math.max(0,Math.min(this.length-1,n)),n!=this.currentIndex&&this.goto(n)}dStop(t){this.pointers.delete(t.pointerId),t.pointerId==this.firstTouchId&&(this.micrio.releasePointerCapture(this.firstTouchId),this.firstTouchId=void 0),this.pointers.size||this.swipeEnd()}mouseleave(){this.pointers.clear(),this.swipeEnd()}swipeEnd(){if(this.micrio.removeAttribute("data-panning"),this.micrio.removeEventListener("pointermove",this.dMove),this.micrio.removeEventListener("pointerup",this.dStop),this.hitTresh=!1,this.snapTo.length){const t=this.snapTo[this.snapTo.map(((t,e)=>[e,Math.abs(t-this.currentIndex)])).sort(((t,e)=>t[1]>e[1]?1:t[1]<e[1]?-1:0))[0][0]];t!=this.currentIndex&&this.animateTo(t)}}animateTo(t){this.raf&&cancelAnimationFrame(this.raf);const e=performance.now(),i=this.currentIndex,r=i-t,n=t=>{const s=Math.min(1,(t-e)/250);s<1&&(this.raf=requestAnimationFrame(n));const o=i-Math.round(this.micrio.wasm.e.ease(s)*r);o!=this.currentIndex&&this.goto(o)};this.raf=requestAnimationFrame(n)}}var Bo=Ye('<span class="micrio-dial"> </span>'),Wo=Ye('<div data-scroll-through="" class="micrio-dial"><!></div>');function qo(t,e,i,r){jt(e)||Z(i,r(t)[1],!0)}var Xo=Ye("<button>✥</button>"),Yo=Ye('<li><button class="bullet micrio-gallery">•</button></li>'),Go=Ye('<div><!> <ul class="micrio-gallery"><!> <button aria-label="drag handle"></button></ul> <!></div>');function jo(t,e){var i,r,n,s,o,a;Ee(e,!0);const[l,c]=sr(),d=()=>rr(E,"$settings",l),u=()=>rr(T,"$layer",l),h=()=>rr(In,"$i18n",l);let m=cr(e,"images",19,(()=>[])),v=cr(e,"omni",3,null);const p=xe("micrio"),{wasm:g,current:f,events:w,_lang:b}=p,y=!p.canvas.isMobile,k=rr(f,"$current",l),x=k.$info,T=k.state.layer,E=k.settings,_=k.camera;if(v())for(let j=0;j<v().frames;j++)m().push({id:x.id+"/"+j,image:k,visible:Qi(!1),frame:j,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:k.getTileSrc(k.levels,0,0,j)});const A=d().gallery,S="omni"==A.type,I=S||"swipe-full"==A.type,M=I||"switch"==A.type,$=S,P=!!A.isSpreads,L=A.coverPages??0,C=d().omni,R=S&&!!(null==C?void 0:C.twoAxes),D=A.startId||p.getAttribute("data-gallery-start-id"),F=A.archive,z=!!d().limitToCoverScale,O=!!d().noUI,N=(null==C?void 0:C.frontIndex)??0,V=(null==(i=null==C?void 0:C.layers)?void 0:i.length)??1,U=p.hasAttribute("data-gallery-start")?Number(p.getAttribute("data-gallery-start")):null==(n=null==(r=d())?void 0:r.omni)?void 0:n.startIndex;let B=null==U||isNaN(U)?D?m().findIndex((t=>t.id==D)):0:U;B<0&&(B=0);const W=[],q=[];if(m())for(let j=0;j<m().length;j++){let t=null==(s=m()[j].opts)?void 0:s.area;if(!t)continue;const e=t.slice(0);if(q.push([j]),P&&j-L>=0&&(j-L)%2==0&&m()[j+1]){if(t=null==(o=m()[++j].opts)?void 0:o.area,!t)continue;q[q.length-1].push(j),e[2]=t[2],e[3]=t[3]}W.push(e)}const X=W.length/V,Y=(null==(a=null==C?void 0:C.layers)?void 0:a.map((t=>({i18n:Object.fromEntries(Object.entries(t.i18n).map((([t,e],i)=>[t,{title:e??"Layer "+(i+1)}])))}))))??[];Object.keys(x.revision??{[(()=>rr(b,"$_lang",l))()]:0}).forEach((t=>Y.forEach(((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}))));let G=j(-1),H=M,J=j(!0),K=j(!1),Q=j(!0),et=!1,it=j(0);function rt(t,e=!1,i=150,r=!1){if($){for(;t<0;)t+=X;t%=X}const n=t=Math.round(Math.max(0,Math.min(X-1,t))),s=r||n!=jt(G);if(Z(G,n,!0),s&&st(),M)s&&(g.setActiveImage(k.ptr,q[jt(G)][0],q[jt(G)].length-1),S?g.render():(_.flyToView(W[jt(G)],{duration:i,speed:2}).then((()=>dt(W[jt(G)],!0))).catch((()=>{})),Bt()));else{const r=_.getViewLegacy(),n=W[t],o=Xr.fromLegacy(n),a=et&&(H&&!jt(K)||s||r[0]<n[0]!=r[2]>n[2]);Z(K,!1),a?_.flyToView(o,{duration:i,speed:1,progress:e?.5:0}).then((()=>dt(n,!0))).catch((()=>{})):(o&&0==i&&_.setView(o),dt(n,!0))}k.album.hooked=et=!0}function st(t){if(Vt&&t){if(Vt.currentIndex==jt(G))return;Z(G,Vt.currentIndex,!0)}ct(jt(G)),w.dispatch("gallery-show",jt(G)),S&&Z(it,(jt(G)-N)/X*360)}const ot="requestIdleCallback"in self?S?Math.max(36,2*Math.floor(m().length/8)):100:50,at=new Map,lt=self.requestIdleCallback??self.requestAnimationFrame;function ct(t){const e=[];Y.length&&(t+=u()*Math.floor(m().length/Y.length)),P&&t>=L&&(t=2*t-L);const i=Math.floor(t/Ct);for(let r=-ot;r<=ot;r++)if(r){let n=t+r;if(R){const t=Math.floor(n/Ct);t<i&&(n+=Ct),t>i&&(n-=Ct)}if($){for(;n<0;)n+=m().length;for(;n>=m().length;)n-=m().length}e.push(n)}if(R)for(let r=-ot;r<=ot;r++)r&&e.push(t+r*Ct);e.filter(((t,i)=>t>=0&&t<m().length&&e.indexOf(t)==i)).map((t=>m()[t])).filter((t=>!!t&&!at.has(t.id))).forEach((t=>at.set(t.id,lt((()=>g.getTexture(t.baseTileIdx,t.thumbSrc,!1,{force:!!F}))))))}function dt(t,e){H=_.isZoomedOut(),_.setLimit(!e&&H?[-1,t[1],2,t[3]]:t)}function vt(t){var e;const i=null==(e=jt(gt))?void 0:e.childNodes[t];return i?-2+i.offsetLeft+i.offsetWidth/2:0}let pt,gt=j(void 0),ft=j(0);const wt=tt((()=>!jt(gt)||jt(J)?jt(ft):vt(jt(G))));let bt=!1;function yt(t){t.preventDefault(),t.stopPropagation(),jt(J)||(bt="button"in t)&&0!=t.button||!jt(gt)||(pt=jt(gt).getClientRects()[0],p.keepRendering=Z(J,!0),Z(_t,-1),window.addEventListener(bt?"pointermove":"touchmove",xt),window.addEventListener(bt?"pointerup":"touchend",At),xt(t))}function kt(t){const e=pt??jt(gt).getClientRects()[0],i="button"in t?t.clientX:t.touches[0].clientX,r=Math.min(1,Math.max(0,(i-e.left-14)/(e.width-32)));return[r,Math.max(0,Math.min(X-1,Math.floor(r*X)))]}function xt(t){const[e,i]=kt(t);Z(ft,16+e*(pt.width-32)),i!=jt(G)&&rt(i,!0)}let Tt,Et,_t=j(-1);function At(){window.removeEventListener(bt?"pointermove":"touchmove",xt),window.removeEventListener(bt?"pointerup":"touchend",At),Z(J,p.keepRendering=!1,!0),rt(jt(G))}function St(){H&&(Et=Tt=jt(G),Z(K,H,!0),dt(W[jt(G)],!1))}function It(t){const e=t.detail;"panend"!=t.type||e?rt(Et!=jt(G)?Et:jt(G)+(Tt==jt(G)&&jt(K)&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):Z(K,!1)}function Mt(t){if(!t)return;const e=Xr.toCenterJSON(t),i=e.centerX,r=W.map(((t,r)=>(1-Math.min(Math.abs(i-t[0]),Math.abs(i-t[2])))*Math.max(0,(Math.min(i+e.width/2,t[2])-Math.max(i-e.width/2,t[0]))/(t[2]-t[0]))*(1-.1*Math.abs(jt(G)-r))));g.setFocus(k.ptr,W[Et=r.every((t=>!t))?jt(G):r.indexOf(Math.max(...r))],jt(K)),H=_.isZoomedOut()}let $t=0,Pt=[0,0,0,0];function Lt(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(Z(J,!0),Pt=[t.clientX,t.clientY,jt(G),$t],window.addEventListener("pointermove",Dt),window.addEventListener("pointerup",Ft))}const Ct=m().length,Rt=1;function Dt(t){$t=Math.max(0,Math.min(Rt-1,Pt[3]+Math.round((Pt[1]-t.clientY)/360*Rt)));let e=(Pt[2]+Math.round((Pt[0]-t.clientX)/360*Ct))%Ct;for(;e<0;)e+=Ct;rt($t*Ct+e)}function Ft(){removeEventListener("pointermove",Dt),removeEventListener("pointerup",Ft),Z(J,!1)}let zt=-1;const Ot=()=>{Y.length&&k.data.update((t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:Y[u()].i18n,icon:Fn,children:Y.map(((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>{T.set(e),ct(jt(G))}}))).filter((t=>t.id!="omni-layer-"+u()))};return zt>=0&&zt<t.pages.length?t.pages.splice(zt,1,e):t.pages.push(e),zt=t.pages.length-1,t}))};let Nt,Vt,Ut=p.state.ui.hidden;function Bt(){Ut.set(!1),clearTimeout(Nt),Nt=setTimeout((()=>Ut.set(!0)),2e3)}k.album={numPages:W.length,get currentIndex(){return jt(G)},info:k.$settings.album,prev:()=>rt(jt(G)-1),next:()=>rt(jt(G)+1),goto:rt},Hi((()=>{Promise.all(m().map((t=>("state"in t&&!("image"in t)&&(t.camera=k.camera),g.addEmbed(t,k,{opacity:0,asImage:"camera"in t}))))).then((()=>{g.setActiveImage(k.ptr,B),rt(B,!1,0),Z(J,!1)})),S&&V>1&&Ot(),Z(Q,!1),p.goto=rt;const t=[],e=[];return S&&t.push(k.state.layer.subscribe(Ot)),I&&(Vt=k.swiper=new Uo(p,X,rt,{continuous:$,coverLimit:z})),e.push((()=>{p.canvas.element.removeEventListener("pointermove",Bt),p.canvas.element.removeEventListener("pointerdown",Bt)})),!y||S||R||I||(p.canvas.element.addEventListener("pointermove",Bt),p.canvas.element.addEventListener("pointerdown",Bt),Bt()),M&&t.push(k.state.view.subscribe((()=>{H=_.isZoomedOut()}))),M||I||m().length<=1||(R||Z(ft,vt(B),!0),t.push(k.state.view.subscribe(Mt)),p.addEventListener("panstart",St),p.addEventListener("panend",It),p.addEventListener("pinchend",It),e.push((()=>{p.removeEventListener("panstart",St),p.removeEventListener("panend",It),p.removeEventListener("pinchend",It)}))),S&&p.addEventListener("move",st),()=>{var i,r;for(Vt&&Vt.destroy();t.length;)null==(i=t.shift())||i();for(;e.length;)null==(r=e.shift())||r();S&&p.removeEventListener("move",st)}}));var Wt=He();Ue("keydown",nt,(function(t){var e;if(!(null==(e=d().omni)?void 0:e.noKeys)){switch(t.key){case"PageUp":case"ArrowLeft":rt(jt(G)-(S?-1:1),!0);break;case"PageDown":case"ArrowRight":rt(jt(G)+(S?-1:1),!0);break;case"ArrowUp":R&&rt(jt(G)+Ct);break;case"ArrowDown":R&&rt(jt(G)-Ct);break;case"Home":rt(0);break;case"End":rt(X);break;default:return}Bt()}}));var qt=ht(Wt),Xt=t=>{var e=He(),i=ht(e),r=t=>{var e=Xo();let i;ae((t=>i=bi(e,1,"angular micrio-gallery",null,i,t)),[()=>({dragging:jt(J)})]),Ue("pointerdown",e,Lt,!0),Ze(t,e)},n=(t,e)=>{var i=t=>{const e=tt((()=>{var t;return null==(t=d().omni)?void 0:t.showDegrees}));!function(t,e){Ee(e,!0);const i=xe("micrio"),r=i.$current.camera;let n,s=j(void 0),o=0,a=0;function l(t){var n;const l=Math.max(1,(r.getXY(1,.5)[0]-r.getXY(0,.5)[0])/i.offsetWidth),c=(a/360+(o-t.clientX)/(jt(s).offsetWidth*l))*e.frames;null==(n=e.onturn)||n.call(e,c)}function c(){n&&i.releasePointerCapture(n),i.removeAttribute("data-panning"),i.removeEventListener("pointermove",l),i.removeEventListener("pointerup",c)}const d=tt((()=>{var t;return-e.currentRotation/360*((null==(t=jt(s))?void 0:t.offsetWidth)??0)}));var u=Wo(),h=ut(u),m=t=>{var i=Bo(),r=ut(i);ae((t=>Qe(r,`${t??""}º`)),[()=>Math.round(10*e.currentRotation)/10]),Ze(t,i)};ri(h,(t=>{e.degrees&&t(m)})),Xi(u,(t=>Z(s,t)),(()=>jt(s))),ae((()=>ki(u,`--micrio-dial-offset:${jt(d)??""}px;`))),Ue("pointerdown",u,(function(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(i.addEventListener("pointermove",l),i.addEventListener("pointerup",c),i.setAttribute("data-panning",""),i.setPointerCapture(n=t.pointerId),a=e.currentRotation,o=t.clientX)}),!0),Ze(t,u),_e()}(t,{get currentRotation(){return jt(it)},frames:X,get degrees(){return jt(e)},onturn:t=>rt(t)})},r=(t,e)=>{var i=t=>{var e=Go();let i;var r=ut(e);const n=tt((()=>0==jt(G)));ws(r,{type:"arrow-left",get title(){return h().galleryPrev},className:"gallery-btn",onpointerdown:t=>0===t.button&&rt(jt(G)-1),get disabled(){return jt(n)}});var s=mt(r,2);s.__pointermove=[qo,J,_t,kt];var o=ut(s);si(o,17,(()=>W),ni,((t,e,i)=>{var r=Yo();let n;var s=ut(r);s.__click=()=>rt(i,!0),ae((t=>n=bi(r,1,"micrio-gallery",null,n,t)),[()=>({active:i==jt(G),hover:i==jt(_t)})]),Ue("keypress",s,(t=>{"Enter"===t.key&&rt(i,!0)})),Ze(t,r)}));var a=mt(o,2);let c;Xi(s,(t=>Z(gt,t)),(()=>jt(gt)));var d=mt(s,2);const u=tt((()=>jt(G)==m().length-1));ws(d,{type:"arrow-right",get title(){return h().galleryNext},className:"gallery-btn",onpointerdown:t=>0===t.button&&rt(jt(G)+1),get disabled(){return jt(u)}}),ae(((t,r)=>{i=bi(e,1,"micrio-gallery",null,i,t),ki(a,`left: ${jt(wt)}px`),c=bi(a,1,"micrio-gallery",null,c,r)}),[()=>({hidden:jt(Q)||rr(Ut,"$hidden",l)&&!jt(J)&&!jt(K)}),()=>({dragging:jt(J)})]),Ue("pointerleave",s,(()=>Z(_t,-1))),Ue("pointerdown",a,yt,!0),Ue("touchstart",a,yt,!0,!0),Ze(t,e)};ri(t,(t=>{!I&&m().length>1&&t(i)}),e)};ri(t,(t=>{C&&!C.noDial&&S?t(i):t(r,!1)}),e)};ri(i,(t=>{R?t(r):t(n,!1)})),Ze(t,e)};ri(qt,(t=>{O||t(Xt)})),Ze(t,Wt),_e(),c()}let Ho;Be(["pointermove","click"]);const Zo={},Jo=Qi();let Ko,Qo;const ta=Qi(!1);function ea(t,e,i){Qo&&(Qo.setPosition?Qo.setPosition(t,e,i):"positionX"in Qo&&(Qo.positionX.value=t,Qo.positionY.value=e,Qo.positionZ.value=i))}function ia(t,e,i){Qo&&(Qo.setOrientation?Qo.setOrientation(t,e,i,0,1,0):"forwardX"in Qo&&(Qo.forwardX.value=t,Qo.forwardY.value=e,Qo.forwardZ.value=i))}function ra(t,e){Ee(e,!0);const[i,r]=sr();let n=cr(e,"volume",3,1);const{events:s,current:o}=xe("micrio"),a=rr(o,"$current",i),l=a.$info,c=l.height/l.width,d="AudioContext"in window||"webkitAudioContext"in window;const u=()=>ta.set(!0),h=new Audio("data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");h.volume=Nr.iOS?0:1e-4,d&&Hi((()=>{let t,i;return i=ta.subscribe((r=>{var o;r&&(Ko||(!function(t){if(!Ho){if(Ko||(Ko="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!Ko)return console.warn("[Micrio] Your browser does not support the Web Audio API");Ho=Ko.createGain(),Ho.connect(Ko.destination),Ho.gain.value=t,Jo.set(Ko),Qo=Ko.listener,"upX"in Qo&&(Qo.upX.value=0,Qo.upY.value=1,Qo.upZ.value=0)}}(n()),s.dispatch("audio-init")),Ko&&(null==(o=e.data.markers)?void 0:o.filter((t=>!!t.positionalAudio)).length)&&(t=a.state.view.subscribe((t=>{if(!t)return;const i=Math.max(0,1.05-a.camera.getScale());!function(t,i,r){if(e.is360){t*=2*-Math.PI,i-=.5,i*=-Math.PI;const e=10*(1-r),n=Math.cos(i)*Math.sin(t)*e,s=Math.sin(i)*e,o=Math.cos(i)*Math.cos(t)*e;ea(n,s,o);let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),ia(n*a,s*a,o*a)}else ea(2*(t-.5),2*(.5-i)*c,r),ia(0,0,-1)}(t[0]+t[2]/2,t[1]+t[3]/2,i*(e.is360?1:1.5))}))),i&&(i(),i=null))})),Ko||h.play().then(u).catch((()=>{s.dispatch("autoplay-blocked"),addEventListener("pointerup",u,{once:!0})})),()=>{t&&t(),i&&i(),removeEventListener("pointerup",u)}})),re((()=>{Ho&&(Ho.gain.value=n())}));var m=He(),v=ht(m),p=t=>{const i=tt((()=>n()*(e.data.music.volume??1)));!function(t,e){Ee(e,!0);let i=cr(e,"loop",3,!0),r=cr(e,"volume",3,1);const n=q(new Audio);n.preload="none",n.loop=!1,n.onended=o;let s=-1;function o(){if(!i()&&s+1==e.list.length)return;const t=e.list[++s%e.list.length];n.src="fileUrl"in t?t.fileUrl:t.src,n.play()}Hi((()=>(o(),()=>n.pause()))),re((()=>{n.volume=r()})),_e()}(0,{get list(){return e.data.music.items},get loop(){return e.data.music.loop},get volume(){return jt(i)}})};ri(v,(t=>{var r;rr(ta,"$interacted",i)&&rr(Jo,"$ctx",i)&&(null==(r=e.data.music)?void 0:r.items.length)&&t(p)})),Ze(t,m),_e(),r()}var na=Ye('<cite class="micrio-details"> </cite>'),sa=Ye('<small class="micrio-details"> </small>'),oa=Ye('<summary class="micrio-details"><!> <!></summary>'),aa=Ye('<p class="micrio-details"><a rel="noopener noreferrer" target="_blank"> </a></p>'),la=Ye("<details><!> <!> <!> <!></details>");function ca(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(a,"$current",i),s=()=>rr(e.data,"$data",i),{_lang:o,current:a}=xe("micrio");let l=j(!1);function c(t){let e="cm";return t>=1e5?(e="km",t/=1e5):t>=100?(e="m",t/=100):t<1e-6?(e="nm",t*=1e7):t<.001?(e="µm",t*=1e4):t<1&&(e="mm",t*=10),t.toFixed(2)+" "+e}const d=tt((()=>{var t;return null==(t=n())?void 0:t.$settings.cmWidth})),u=tt((()=>{var t;return null==(t=n())?void 0:t.$settings.cmHeight})),h=tt((()=>{var t;return s()?(null==(t=s())?void 0:t.i18n)?s().i18n[rr(o,"$_lang",i)]:s():void 0})),m=tt((()=>{var t,r;return(null==(t=jt(h))?void 0:t.title)??(null==(r=rr(e.info,"$info",i))?void 0:r.title)??""})),v=tt((()=>{var t;return null==(t=jt(h))?void 0:t.description})),p=tt((()=>{var t;return null==(t=jt(h))?void 0:t.sourceUrl})),g=tt((()=>{var t;return null==(t=jt(h))?void 0:t.copyright})),f=tt((()=>jt(d)&&jt(u)?c(jt(d))+" x "+c(jt(u)):null));let w=j(void 0);Hi((()=>{jt(w).ontoggle=()=>{Z(l,jt(w).open,!0)}}));var b=He(),y=ht(b),k=t=>{var e=la();let r;var n=ut(e),s=t=>{var e=oa(),i=ut(e),r=t=>{var e=na(),i=ut(e);ae((()=>Qe(i,jt(m)))),Ze(t,e)};ri(i,(t=>{jt(m)&&t(r)}));var n=mt(i,2),s=t=>{var e=sa(),i=ut(e);ae((()=>Qe(i,jt(f)))),Ze(t,e)};ri(n,(t=>{jt(f)&&t(s)})),Ze(t,e)};ri(n,(t=>{(jt(m)||jt(f))&&t(s)}));var o=mt(n,2),a=t=>{var e=He();di(ht(e),(()=>jt(v))),Ze(t,e)};ri(o,(t=>{jt(v)&&t(a)}));var c=mt(o,2),d=t=>{var e=aa(),i=ut(e),r=ut(i);ae((()=>{Si(i,"href",jt(p)),Qe(r,jt(g)||jt(p))})),Ze(t,e)};ri(c,(t=>{jt(p)&&t(d)}));var u=mt(c,2),h=t=>{ws(t,{type:"close",get title(){return rr(In,"$i18n",i).close},onclick:()=>jt(w).open=!1})};ri(u,(t=>{jt(l)&&t(h)})),Xi(e,(t=>Z(w,t)),(()=>jt(w))),ae((t=>r=bi(e,1,"micrio-details",null,r,t)),[()=>({opened:jt(l)})]),Ni(3,e,(()=>kn),(()=>({duration:200}))),Ze(t,e)};ri(y,(t=>{(jt(m)||jt(v)||jt(p))&&t(k)})),Ze(t,b),_e(),r()}var da=Ye('<div class="micrio-error"><!> </div>');var ua=Ye('<figcaption class="micrio-micrio-gallery"><!></figcaption>'),ha=Ye('<figure class="micrio-micrio-gallery"><micr-io></micr-io> <!></figure>',2);function ma(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(l,"$current",i);let s=cr(e,"startId",3,void 0);const o=xe("micrio"),{_lang:a,current:l}=o;let c=j(void 0),d=j(0);const u=tt((()=>e.gallery[jt(d)])),h=tt((()=>{var t,e,r;return(null==(r=null==(e=null==(t=jt(u))?void 0:t.i18n)?void 0:e[rr(a,"$_lang",i)])?void 0:r.description)??void 0}));Zi((()=>{var t;return null==(t=jt(c))?void 0:t.destroy()}));var m=ha(),v=ut(m);ae((()=>Ii(v,"data-gallery",e.gallery.map((t=>{var e,i;return`${t.micrioId},${t.width},${t.height},${t.isDeepZoom?"d":""}${t.isWebP?",w":t.isPng||!(null==(e=n())?void 0:e.isV5)&&(null==(i=t.src)?void 0:i.endsWith(".png"))?",p":""}`})).join(";")))),ae((()=>Ii(v,"data-start",s()))),ae((()=>Ii(v,"data-path",n()&&n().$info&&n().$info.path))),Ii(v,"data-logo","false"),bi(v,1,"micrio-micrio-gallery"),Xi(v,(t=>Z(c,t)),(()=>jt(c)));var p=mt(v,2),g=t=>{var e=ua();di(ut(e),(()=>jt(h))),Ze(t,e)};ri(p,(t=>{jt(h)&&t(g)})),Ue("gallery-show",v,(t=>{Z(d,t.detail,!0)})),Ze(t,m),_e(),r()}var va=Ye("<!> <!>",1),pa=Ye("<aside><!> <!></aside>"),ga=Ye("<!> <!>",1),fa=Ye('<menu class="micrio-popover"></menu>'),wa=Ye('<h2 class="micrio-popover"> </h2>'),ba=Ye('<img alt="">'),ya=Ye("<!> <!> <!> <!>",1),ka=Ye('<menu class="right micrio-popover"></menu>'),xa=Ye("<!> <!> <!>",1),Ta=Ye("<dialog><!> <!></dialog>");function Ea(t,e){var i;Ee(e,!0);const[r,n]=sr(),s=()=>rr(u,"$current",r),o=()=>rr(h,"$_lang",r),a=()=>rr(In,"$i18n",r),l=q(xe("micrio")),{events:c,state:d,current:u,_lang:h}=l,m=null==(i=s())?void 0:i.$data,v=Object.keys((null==m?void 0:m.revision)??{[o()]:0});function p(){var t;null==(t=jt(b))||t.close()}const g=Qi(!1);let f=j(!0),w=o(),b=j(void 0);Hi((()=>{jt(b).showModal(),Gt().then((()=>{const t=jt(b).querySelector("button.active")??jt(b).querySelector("button");null==t||t.focus()}));const t=h.subscribe((t=>{t&&t!=w&&(Z(f,!1),w=t,setTimeout((()=>Z(f,!0)),200))}));return()=>{t()}}));const y=tt((()=>e.popover.marker)),k=tt((()=>jt(y)?jt(y).i18n?jt(y).i18n[o()]:jt(y):void 0)),x=tt((()=>e.popover.markerTour)),T=tt((()=>e.popover.contentPage)),E=tt((()=>{var t;return jt(T)?(null==(t=jt(T).i18n)?void 0:t[o()])??jt(T):void 0})),_=tt((()=>{var t,e;return jt(T)&&jt(E)&&!(null==(e=null==(t=jt(T))?void 0:t.buttons)?void 0:e.length)?!(!jt(E).embed||jt(E).content&&!(jt(E).content.length<250)||jt(T).image):void 0})),A=tt((()=>{var t;return(null==(t=jt(T))?void 0:t.image)?"string"==typeof jt(T).image?jt(T).image:jt(T).image.src:void 0})),S=tt((()=>{var t;return!!(null==(t=jt(E))?void 0:t.embed)||!!jt(A)})),I=tt((()=>{var t,e;return!!(null==(e=null==(t=jt(T))?void 0:t.buttons)?void 0:e.find((t=>"close"==t.type)))})),M=tt((()=>{var t;return!!(null==(t=e.popover.marker)?void 0:t.images)&&e.popover.marker.images.length>0})),$=tt((()=>!(!jt(k)||!jt(k).body)||jt(M))),P=tt((()=>{var t;return jt(k)&&jt(k).body||jt(M)&&(null==(t=jt(E))?void 0:t.embed)})),L=tt((()=>!jt(I)||jt(x)&&null!=jt(x).currentStep));var C=Ta();let R;var D=ut(C),F=t=>{var e=pa();let i;var r=ut(e),n=t=>{ws(t,{type:"close",get title(){return a().close},className:"close-popover",onclick:p})};ri(r,(t=>{jt(I)||t(n)}));var s=mt(r,2),o=t=>{var e=va(),i=ht(e),r=t=>{ws(t,{type:"arrow-left",get title(){return a().tourStepPrev},className:"prev-tour-step",onclick:()=>jt(x)&&jt(x).prev&&jt(x).prev()})};ri(i,(t=>{jt(x).currentStep>0&&t(r)}));var n=mt(i,2),s=t=>{ws(t,{type:"arrow-right",get title(){return a().tourStepNext},className:"next-tour-step",onclick:()=>jt(x)&&jt(x).next&&jt(x).next()})};ri(n,(t=>{jt(x).currentStep<jt(x).steps.length-1&&t(s)})),Ze(t,e)};ri(s,(t=>{jt(x)&&null!=jt(x).currentStep&&t(o)})),ae((t=>i=bi(e,1,"micrio-popover",null,i,t)),[()=>{var t;return{inside:jt(T)?!jt(_):!jt($)&&!(null==(t=jt(k))?void 0:t.embedUrl)}}]),Ze(t,e)};ri(D,(t=>{jt(L)&&t(F)}));var z=mt(D,2),O=t=>{var e=ga(),i=ht(e),r=t=>{po(t,{get src(){return jt(k).embedUrl},get uuid(){return jt(y).id},get figcaption(){return jt(k).embedDescription},controls:!0,get autoplay(){return jt(y).embedAutoPlay}})},n=(t,e)=>{var i=t=>{ma(t,{get gallery(){return jt(y).images}})};ri(t,(t=>{jt(y).images&&jt(y).images.length&&t(i)}),e)};ri(i,(t=>{jt(k)&&jt(k).embedUrl?t(r):t(n,!1)}));var s=mt(i,2),o=t=>{const e=tt((()=>!jt(k)||!jt(k).embedUrl));_o(t,{get marker(){return jt(y)},noEmbed:!0,noGallery:!0,get noImages(){return jt(e)},onclose:p})};ri(s,(t=>{jt(P)&&t(o)})),Ze(t,e)},N=(t,i)=>{var r=t=>{ma(t,{get gallery(){return e.popover.gallery},get startId(){return e.popover.galleryStart}})},n=(t,e)=>{var i=t=>{var e=xa(),i=ht(e),r=t=>{var e=fa();si(e,21,(()=>v),ni,((t,e)=>{const i=tt((()=>(null==Es?void 0:Es.of(jt(e)))??jt(e))),r=tt((()=>jt(e)==o()));ws(t,{onclick:()=>l.lang=jt(e),get title(){return jt(i)},get active(){return jt(r)},children:(t,i)=>{var r=je();ae((t=>Qe(r,t)),[()=>jt(e).toUpperCase()]),Ze(t,r)},$$slots:{default:!0}})})),Ze(t,e)};ri(i,(t=>{v.length>1&&t(r)}));var n=mt(i,2),a=t=>{var e=He(),i=ht(e),r=t=>{po(t,{get src(){return jt(E).embed},get figcaption(){return jt(E).content},controls:!0,autoplay:!0})};ri(i,(t=>{jt(f)&&t(r)})),Ze(t,e)},c=t=>{wo(t,{children:(t,e)=>{var i=ya(),r=ht(i),n=t=>{var e=wa(),i=ut(e);ae((()=>Qe(i,jt(E).title))),Ze(t,e)};ri(r,(t=>{jt(E).title&&t(n)}));var s=mt(r,2),o=t=>{po(t,{get src(){return jt(E).embed},controls:!0})};ri(s,(t=>{jt(E).embed&&jt(f)&&t(o)}));var a=mt(s,2),l=t=>{var e=ba();ae((()=>Si(e,"src",jt(A)))),Ze(t,e)};ri(a,(t=>{jt(A)&&t(l)}));var c=mt(a,2),d=t=>{var e=He();di(ht(e),(()=>jt(E).content)),Ze(t,e)};ri(c,(t=>{jt(E).content&&t(d)})),Ze(t,i)},$$slots:{default:!0}})};ri(n,(t=>{jt(_)?t(a):t(c,!1)}));var d=mt(n,2),u=t=>{var e=ka();si(e,21,(()=>jt(T).buttons),ni,((t,e)=>{const i=tt((()=>"link"==jt(e).type?jt(e).action:void 0));ws(t,{get href(){return jt(i)},get blankTarget(){return jt(e).blankTarget},onclick:()=>function(t){p(),"close"!=t.type&&setTimeout((()=>{var e,i,r;switch(t.type){case"marker":null==(e=s())||e.state.marker.set(t.action);break;case"mtour":l.state.tour.set(null==(i=null==m?void 0:m.markerTours)?void 0:i.find((e=>e.id==t.action)));break;case"vtour":l.state.tour.set(null==(r=null==m?void 0:m.tours)?void 0:r.find((e=>e.id==t.action)))}}),200)}(jt(e)),children:(t,i)=>{var r=je();ae((()=>Qe(r,jt(e).i18nTitle[o()]))),Ze(t,r)},$$slots:{default:!0}})})),Ze(t,e)};ri(d,(t=>{jt(T).buttons&&jt(T).buttons.length&&t(u)})),Ze(t,e)};ri(t,(t=>{jt(T)&&jt(E)&&t(i)}),e)};ri(t,(t=>{e.popover.gallery?t(r):t(n,!1)}),i)};ri(z,(t=>{jt(y)?t(O):t(N,!1)})),Xi(C,(t=>Z(b,t)),(()=>jt(b))),ae((t=>R=bi(C,1,"micrio-popover",null,R,t)),[()=>({page:!!jt(T),article:!!jt(T)&&!jt(_),"has-media":jt(S),gallery:!!e.popover.gallery})]),Ue("close",C,(function(){var t;e.popover.contentPage?c.dispatch("page-closed"):jt(x)?d.tour.set(void 0):e.popover.marker&&(null==(t=e.popover.image)||t.state.marker.set(void 0)),d.popover.set(void 0)})),Ue("outrostart",C,(()=>g.set(!0))),Ze(t,C),_e(),n()}function _a(t,e){Ee(e,!0);const i=tt((()=>e.marker.positionalAudio)),r=e.ctx.createGain();r.connect(Ho);const n=xe("micrio"),s=n.$current.$info,o=s.width,a=s.height,l=e.ctx.createPanner();l.panningModel="equalpower",l.rolloffFactor=1,l.coneOuterGain=0;function c(){if(r.gain.value=jt(i).volume??1,e.is360){l.refDistance=2.75*jt(i).radius,l.maxDistance=jt(i).radius*(11/3);const t=e.marker.x*-Math.PI*2,r=(e.marker.y-.5)*-Math.PI,n=Math.cos(r)*Math.sin(t)*11,s=11*Math.sin(r),o=Math.cos(r)*Math.cos(t)*11;l.positionX.value=n,l.positionY.value=s,l.positionZ.value=o;let a=n*n+s*s+o*o;a>0&&(a=1/Math.sqrt(a)),l.orientationX.value=n*a,l.orientationY.value=s*a,l.orientationZ.value=o*a}else l.distanceModel="linear",l.positionX.value=2*(e.marker.x-.5),l.positionY.value=2*(.5-e.marker.y)*(a/o),l.positionZ.value=-.2,l.rolloffFactor=2,l.refDistance=jt(i).radius*jt(i).radius*10,l.maxDistance=5*jt(i).radius}let d,u;function h(){d&&d.disconnect(),d=e.ctx.createBufferSource(),jt(i).loop&&(jt(i).repeatAfter>0?d.onended=()=>{u=setTimeout(h,1e3*jt(i).repeatAfter)}:d.loop=!0),r.gain.value=jt(i).volume??1,d.buffer=Zo[jt(i).src],d.connect(l),d.start()}let m=j(q(JSON.stringify(e.marker.positionalAudio)));re((()=>{const t=JSON.stringify(jt(i));jt(m)!=t&&Z(m,t,!0)&&c()})),Hi((()=>(c(),l.connect(r),async function(){jt(i).src&&(Zo[jt(i).src]||(Zo[jt(i).src]=await fetch(jt(i).src).then((t=>t.arrayBuffer())).then((t=>e.ctx.decodeAudioData(t)))),jt(i).alwaysPlay&&jt(i).repeatAfter>0?u=setTimeout(h,1e3*jt(i).repeatAfter):h())}(),n.addEventListener("audio-update",c),()=>{n.removeEventListener("audio-update",c),d&&d.disconnect(),clearTimeout(u),l.disconnect(),r.disconnect()}))),_e()}function Aa(t,e,i,r,n,s,o){var a,l;if(e(),i().onclick)return i().onclick(i());if(!r.noMarkerActions)if("cluster"==i().type){if(i().view&&(null==(a=n())?void 0:a.$info)){const t=n().camera.getScale();o().camera.flyToView(i().view,{area:null==(l=o().opts)?void 0:l.area,limitZoom:!0,margin:[20/n().$info.width*t,20/n().$info.height*t]})}}else o().state.marker.set(i())}var Sa=Ye('<img alt="" class="micrio-marker">'),Ia=Ye('<label data-scroll-through=""> </label>'),Ma=Ye('<button data-scroll-through="" class="micrio-marker"><!> <!></button>'),$a=Ye("<div><!></div>"),Pa=Ye("<!> <!>",1);function La(t,e){var i,r,n,s,o,a,l,c,d,u,h,m,v;Ee(e,!0);const[p,g]=sr(),f=()=>rr(E,"$current",p),w=()=>rr(R,"$tour",p),b=()=>rr(C,"$currentPopup",p),y=()=>rr(S,"$_lang",p),k=()=>rr(M,"$isMobile",p),x=()=>rr(Jo,"$ctx",p),T=xe("micrio"),{current:E,events:_,state:A,_lang:S,spaceData:I}=T,M=T.canvas.isMobile,$=A.markerHoverId,P=xe("inView"),L=xe("markerImages"),C=T.state.popup,R=A.tour;let D=cr(e,"marker",15),F=cr(e,"image",31,(()=>q(f()))),z=cr(e,"forceHidden",3,!1),O=cr(e,"coords",3,void 0),N=cr(e,"overlapped",3,!1);D().tags||D(D().tags=[],!0);const V=L.has(D().id);!V&&F()&&L.set(D().id,F());const U=!(!F().isOmni||!(null==(i=F().$settings.omni)?void 0:i.sideLabels)||(null==(r=F().$settings._markers)?void 0:r.noTitles)),B=t=>t.steps.findIndex((t=>t.startsWith(D().id)))>=0,W=D().data??{},X=W._meta||{},Y=F().$settings.omni;D().imageLayer&&D().imageLayer>((null==(n=null==Y?void 0:Y.layers)?void 0:n.length)??1)-1&&delete D().imageLayer,(null==(a=null==(o=null==(s=f())?void 0:s.$data)?void 0:o.markers)?void 0:a.find((t=>{var e,i;return(null==(i=null==(e=t.data)?void 0:e._micrioSplitLink)?void 0:i.markerId)==D().id&&"none"!=t.popupType})))&&(D(D().popupType="none",!0),D(D().noMarker=!0,!0)),"embedUrl"in D()&&D().embedUrl&&"embedInPopover"in D()&&D().embedInPopover&&D(D().popupType="popover",!0);const G=F().$settings._markers??{},H=!!F().$settings.doTourJumps,J=D().tags.join(" "),K="cluster"==D().type,Q=!1===(null==(l=D().data)?void 0:l.showTitle)||!!G.noTitles||!!(null==Y?void 0:Y.sideLabels),et=!!W.scales||!!F().$settings.markersScale,it=et&&!!G.titlesNoScale,rt=W._micrioSplitLink,nt=!!G.keepPopupsDuringTourTransitions,st=/[?&]micrioNoTooltips/.test(location.search)||!!(null==Y?void 0:Y.sideLabels),ot=X.gridAction,at=(null==(d=null==(c=F().$settings)?void 0:c._markers)?void 0:d.autoStartTour)?T.wasm.images.map((t=>{var e,i;return"camera"in t?null==(i=null==(e=t.$data)?void 0:e.markerTours)?void 0:i.find(B):void 0})).filter((t=>!!t))[0]??(null==(u=null==I?void 0:I.markerTours)?void 0:u.find(B)):void 0,lt=null==at?void 0:at.steps.findIndex((t=>t.startsWith(D().id))),ct=!!(null==(m=null==(h=F().$settings)?void 0:h._markers)?void 0:m.autoStartTourAtBeginning);let dt=!V&&(!!W.alwaysOpen||A.$marker==D())||(null==(v=A.$tour)?void 0:v.id)==(null==at?void 0:at.id)&&(null==at?void 0:at.currentStep)==(lt??0);const vt=V&&F().state.$marker==D();let pt,gt,ft,wt=j(q(vt)),bt=j(q(vt)),yt=j(!1),kt=j(""),xt=j(0),Tt=j(0),Et=j(1),_t=!1;function At(){var t,e;G.noMarkerActions||(null==(e=null==(t=jt(Nt))?void 0:t.parentNode)||e.scrollTo(0,0),St(),ft=setTimeout((()=>{const t=F().camera.getXY(D().x,D().y);!jt(wt)&&(t[0]<0||t[0]>=T.offsetWidth||t[1]<0||t[1]>=T.offsetHeight||F().is360&&t[3]>4)&&F().camera.flyToCoo([D().x,D().y],{speed:2,limit:!0}).catch((()=>{}))}),150))}function St(){clearTimeout(ft)}const It=()=>$.set(D().id),Mt=()=>$.set(void 0);let $t;async function Pt(){var t,e,i,r,n;if(K)return;if(F().state.$marker!=D())return F().state.marker.set(D());if(G.noMarkerActions)return;if(at&&at.id!=(null==(t=w())?void 0:t.id)&&!w()){at.initialStep=ct?0:lt;const t=null==(e=at.stepInfo)?void 0:e[0];if(ct&&t&&t.micrioId!=F().id){const e=null==(i=T.canvases[0])?void 0:i.grid;(null==e?void 0:e.images.find((e=>e.id==t.micrioId)))?T.current.set(e.image):T.open(t.micrioId)}if(R.set(at),setTimeout((()=>X.gridAction=ot),100),ct&&null!=lt&<>0)return void F().state.marker.set(void 0);await Gt()}dt=!1,Z(bt,!0),_.dispatch("marker-opened",D());const s=w()&&"steps"in w()&&w().isSerialTour&&w().printChapters&&w().steps.findIndex((t=>t.startsWith(D().id)))>=0&&D().videoTour;var o;s||(jt(Xt)?"popover"==D().popupType?(await Gt(),T.state.popover.set({marker:D(),image:F(),markerTour:w()&&"steps"in w()?w():void 0})):D().videoTour&&!w()&&(R.set(D().videoTour),(o=R,new Promise((t=>{let e;e=o.subscribe((i=>{null==i&&(e?e():Gt().then((()=>e())),t(i))}))}))).then((()=>F().state.marker.set(void 0)))):Gt().then((()=>C.set(D()))));const a=null==(r=W.micrioLink)?void 0:r.id;if(a&&Gt().then((()=>{F().camera.stop();const t=dn(T,a);t&&(F(F().openedView=void 0,!0),F().state.marker.set(void 0)),T.open(a,{vector:null==t?void 0:t.vector})})),rt&&!_t&&!F().opts.secondaryTo){const t=null==(n=T.canvases[0])?void 0:n.grid;(null==t?void 0:t.lastPromise)&&await t.lastPromise,$t=setTimeout((()=>{rt&&(gt=T.open(rt.micrioId,{splitScreen:!0,splitTo:F(),isPassive:!(!rt.follows||T.state.$tour),startView:rt.view}),_t=!0)}),200)}}let Lt,Ct,Rt=j(!1);function Dt(){var t,e,i,r,n,s;if(F().is360&&et)Z(kt,F().camera.getMatrix(D().x,D().y,1,1,0,0,0).join(","),!0);else{let o=jt(xt),a=jt(Tt);if(s=F().camera.getXYDirect(D().x,D().y,{radius:D().radius,rotation:D().rotation}),Z(xt,s[0],!0),Z(Tt,s[1],!0),Z(Et,s[2],!0),pt=s[3],F().is360)Z(yt,pt>0);else if(F().isOmni&&Y){if(null!=jt(Ht)[0]&&null!=jt(Ht)[1]&&null!=D().rotation){const i=Y.frames/((null==(t=Y.layers)?void 0:t.length)??1);let r=((null==(e=F().swiper)?void 0:e.currentIndex)??0)-(jt(Yt)??0);r>i/2&&(r-=i),r<-i/2&&(r+=i),Z(yt,r<=jt(Ht)[0]||r>=jt(Ht)[1],!0)}else Y.distance&&Z(yt,pt<0);Y.sideLabels&&!G.noTitles&&(null==(i=jt(Bt))?void 0:i.title)&&P&&(o!=jt(xt)||a!=jt(Tt))&&function(t,e){const i=T.canvas.element.offsetWidth,r=T.canvas.element.offsetHeight,n=!(t<0||t>i||e<0||e>r||jt(yt));(n||jt(Rt))&&P.update((r=>{const s=r.findIndex((([t])=>t==D()));return n?s>=0?r[s]=[D(),t/i,e]:r.push([D(),t/i,e]):s>=0&&r.splice(s,1),Z(Rt,n,!0),r}))}(jt(xt),jt(Tt))}F().$settings.clusterMarkers&&O()&&O().set(D().id,[jt(xt),jt(Tt),N()?Lt:Lt=null==(r=jt(Vt))?void 0:r.offsetWidth,N()?Ct:Ct=null==(n=jt(Vt))?void 0:n.offsetHeight])}}function Ft(t){const e=t.detail;D(D().x=e.x,!0),D(D().y=e.y,!0),Dt()}function zt(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}let Ot=j(void 0),Nt=j(void 0),Vt=j(void 0);const Ut=xe("mediaPaused");Hi((()=>{var t,e;if(D().videoTour){const i="timeline"in D().videoTour?D().videoTour.timeline:null==(e=null==(t=D().videoTour.i18n)?void 0:t[y()])?void 0:e.timeline;(null==i?void 0:i.length)&&D(D().view=i[0].rect,!0)}const i=[F().state.marker.subscribe((t=>{"string"==typeof t&&t==D().id?F().state.marker.set(D()):t==D()?async function(){var t,e;if(jt(wt))return;if(Z(wt,!0),St(),G.noMarkerActions)return;_.dispatch("marker-open",D()),!w()||"steps"in w()&&(B(w())||w().cannotClose)||(R.set(void 0),await Gt());const i=w()&&"steps"in w();jt(Xt)||i&&nt||(C.set(void 0),T.state.popover.set(void 0)),Mt(),(null==rt?void 0:rt.markerId)&&(gt||(gt=T.canvases.find((t=>t.id==rt.micrioId))),gt&&(_t=tr(gt.visible),_t&&(null==rt?void 0:rt.view)&>.camera.flyToView(rt.view,{isJump:!0}).catch((()=>{})))),void 0!==D().imageLayer&&F().state.layer.set(D().imageLayer);const r=at&&ct&&at!=w()&&null!=lt&<>0;r&&delete X.gridAction;const n=D().view;r||!n||W.noAnimate||D().videoTour||X.gridView?Pt():dt?(F().camera.setView(D().view,{area:null==(t=F().opts)?void 0:t.area}),Pt()):F().camera.flyToView(D().view,{omniIndex:jt(Yt),area:null==(e=F().opts)?void 0:e.area,isJump:!!W.doJump||H&&!!A.$tour}).then(Pt).catch((()=>{w()||F().state.marker.set(void 0)}))}():W.alwaysOpen||(jt(wt)&&function(){var t;clearTimeout($t),_.dispatch("marker-closed",D());const e=w()&&"steps"in w();if(!w()&&!F().state.$marker&&(D().videoTour||F().openedView?setTimeout((()=>F().camera.aniDoneAdd.push((()=>{var t;tr(R)||F().state.$marker||null==(t=jt(Ot))||t.focus()}))),10):null==(t=jt(Ot))||t.focus()),T.state.popover.set(void 0),!jt(Xt)){b()!=D()||e&&nt||C.set(void 0);const t=T.canvases.find((t=>t!=F()&&t.state.$marker));t&&Gt().then((()=>{const e=t.state.$marker;e&&"popup"==e.popupType&&C.set(e)}))}rt&>&&setTimeout((()=>{var t,e;const i=tr(T.state.marker);gt&&rt.micrioId!=(null==(e=null==(t=null==i?void 0:i.data)?void 0:t._micrioSplitLink)?void 0:e.micrioId)&&T.close(gt)}),210)}(),Z(wt,Z(bt,!1),!0))}))];return jt(qt)||(i.push(F().camera.image.state.view.subscribe(Dt)),Dt()),z()||Gt().then((()=>{jt(wt)&&!D().noMarker&&b()&&b()!=D()&&!w()?F().state.marker.set(void 0):(dt||W.alwaysOpen)&&Pt()})),D().htmlElement&&jt(Nt)&&jt(Nt).appendChild(D().htmlElement),()=>{var t;for(clearTimeout($t);i.length;)null==(t=i.shift())||t()}}));const Bt=tt((()=>D().i18n?D().i18n[y()]:D())),Wt=tt((()=>{var t,e,i,r;return!((null==(t=jt(Bt))?void 0:t.title)||(null==(e=jt(Bt))?void 0:e.body)||(null==(i=jt(Bt))?void 0:i.bodySecondary)||(null==(r=jt(Bt))?void 0:r.embedUrl)||D().images&&D().images.length)})),qt=tt((()=>z()||D().noMarker)),Xt=tt((()=>"popup"!=D().popupType||jt(Wt))),Yt=tt((()=>F().camera.getOmniFrame((D().rotation??0)+(D().backside?Math.PI:0)))),Ht=tt((()=>D().visibleArc?[F().camera.getOmniFrame(D().visibleArc[0]),F().camera.getOmniFrame(D().visibleArc[1])]:[])),Zt=tt((()=>w()&&(!("steps"in w())&&!w().keepMarkers||G.hideMarkersDuringTour&&!rr(Ut,"$tourPaused",p))&&!jt(wt)));re((()=>{jt(Zt)&&jt(Rt)&&P.update((t=>{const e=t.findIndex((t=>t[0]==D()));return e>=0&&t.splice(e,1),t}))}));const Jt=tt((()=>"default"==D().type?void 0:"link"==D().type?"link":"media"==D().type?"play":"cluster"==D().type?void 0:D().type??void 0)),Kt=tt((()=>{var t,e,i,r,n;return(null!=(null==(t=D().data)?void 0:t.customIconIdx)?null==(r=null==(e=F().$settings._markers)?void 0:e.customIcons)?void 0:r[null==(i=D().data)?void 0:i.customIconIdx]:void 0)??(null==(n=D().data)?void 0:n.icon)??G.markerIcon??void 0})),Qt=tt((()=>!!jt(Jt)||!!jt(Kt))),te=tt((()=>!("class"in D()&&""===D().class||!jt(Qt)&&"default"!=D().type))),ee=tt((()=>jt(Bt)&&(!Q||k()&&U)&&(jt(Bt).label||jt(Bt).title)));var ie=Pa(),ne=ht(ie),se=t=>{var e=$a();let i;var r=ut(e),n=t=>{var e=Ma();e.__click=[Aa,St,D,G,f,E,F];var i=ut(e),r=t=>{var e=Sa();ae((()=>Si(e,"src","string"==typeof jt(Kt)?jt(Kt):jt(Kt).src))),Ze(t,e)},n=(t,e)=>{var i=t=>{as(t,{get name(){return jt(Jt)}})};ri(t,(t=>{jt(Jt)&&t(i)}),e)};ri(i,(t=>{jt(Kt)?t(r):t(n,!1)}));var s=mt(i,2),o=t=>{var e=Ia();bi(e,1,"micrio-marker",null,{},{static:it});var i=ut(e);Xi(e,(t=>Z(Vt,t)),(()=>jt(Vt))),ae((()=>{Si(e,"for",D().id),Qe(i,jt(Bt).label||jt(Bt).title)})),Ze(t,e)};ri(s,(t=>{jt(ee)&&t(o)})),Xi(e,(t=>Z(Ot,t)),(()=>jt(Ot))),ae((()=>{Si(e,"title",st||K?null:jt(Bt)?jt(Bt).label||jt(Bt).title:null),Si(e,"id",D().id)})),Ue("focus",e,At),Ue("blur",e,St),Ue("mouseenter",e,It),Ue("mouseleave",e,Mt),Ze(t,e)};ri(r,(t=>{D().htmlElement||t(n)})),Xi(e,(t=>Z(Nt,t)),(()=>jt(Nt))),mi(e,((t,e)=>null==zt?void 0:zt(t,e)),(()=>Ft)),ae((t=>{Si(e,"id",`m-${D().id}`),i=bi(e,1,pi(J),"micrio-marker",i,t),ki(e,jt(kt)?`--mat:matrix3d(${jt(kt)})`:jt(xt)?`--x:${jt(xt)}px;--y:${jt(Tt)}px${et?`;--scale:${jt(Et)}`:""}`:null)}),[()=>({overlapped:N()&&!jt(wt),cluster:K,behind:jt(yt),hovered:rr($,"$hovered",p)==D().id,default:jt(te),mat3d:!!jt(kt),opened:jt(wt),"micrio-link":!!W.micrioLink,"has-icon":jt(Qt),"has-custom-icon":!!jt(Kt)})]),Ze(t,e)};ri(ne,(t=>{jt(qt)||!F()||jt(Zt)||t(se)}));var oe=mt(ne,2),le=t=>{_a(0,{get marker(){return D()},get ctx(){return x()},get is360(){return F().is360}})};ri(oe,(t=>{D().positionalAudio&&x()&&(!D().positionalAudio.noMobile||k())&&(D().positionalAudio.alwaysPlay||jt(wt))&&t(le)})),Ze(t,ie),_e(),g()}Be(["click"]);var Ca=Ye("<div><!></div>");function Ra(t,e){var i,r;Ee(e,!0);const[n,s]=sr(),o=()=>rr(d,"$_lang",n);let a=cr(e,"settings",31,(()=>q({i18n:{}}))),l=cr(e,"image",15);const c=xe("micrio"),{_lang:d,spaceData:u}=c,h=l().$info,m=l().$settings,v=null==(i=sn(e.targetId))?void 0:i[2],p=dn(c,e.targetId);p||console.error(`[Micrio Waypoint] Could not calculate vector for target ${e.targetId}`);const{directionX:g,v:f,vN:w,vector:b}=p;let y=j(void 0);const k=Math.abs(w[1])<.3,x=k?.65:.5+w[1]/10,T={x:g,y:x,baseScale:h.width/1024,scale:1,rotX:(1+(k?-(1-x):w[1]))*Math.PI/2,rotY:0,rotZ:0},E=(null==(r=a())?void 0:r.coords)??Lr(T);let _,A=E.custom,S=A?E:T;function I(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(jt(y).parentNode.scrollTo(0,0),clearTimeout(_),_=setTimeout((()=>{const t=l().camera.getXY(S.x,S.y);!jt(L)&&(t[0]<0||t[0]>=c.offsetWidth||t[1]<0||t[1]>=c.offsetHeight||l().is360&&t[3]>4)&&l().camera.flyToCoo([S.x,S.y],{speed:2,limit:!0}).catch((()=>{}))}),150))}let M=j(""),$=a().customIconIdx;const P=()=>{D.deleted?Z(R,!0):($!=D.settings.customIconIdx&&(a(a().customIconIdx=D.settings.customIconIdx,!0),$=a().customIconIdx),E.custom!=A&&(A=E.custom,S=A?E:T),Z(M,l().camera.getMatrix(S.x,S.y,S.baseScale*S.scale,1,S.rotX,S.rotY,S.rotZ,0,1,1,!0).join(","),!0))};let L=j(!1);function C(){var t;(null==(t=m._markers)?void 0:t.noMarkerActions)||(Z(L,!0),l(l().openedView=void 0,!0),l().state.marker.set(void 0),c.open(e.targetId,{vector:b}))}let R=j(!1);const D={coords:E,settings:a()};P(),Hi((()=>{D.el=jt(y),jt(y)._iface=D,c.dispatchEvent(new CustomEvent("wp-print",{detail:D}));const t=l().state.view.subscribe(P);return()=>t()}));const F=tt((()=>{var t,e,i,r;return(null==(e=null==(t=a().i18n)?void 0:t[o()])?void 0:e.title)||(null==(r=null==(i=null==v?void 0:v.i18n)?void 0:i[o()])?void 0:r.title)})),z=tt((()=>{var t;return null==(t=null==u?void 0:u.icons)?void 0:t[a().customIconIdx??-1]}));var O=He(),N=ht(O),V=t=>{var i=Ca();let r;var s=ut(i);const o=tt((()=>jt(z)?void 0:"arrow-up")),a=tt((()=>jt(F)??rr(In,"$i18n",n).waypointFollow));ws(s,{get type(){return jt(o)},get icon(){return jt(z)},onclick:C,onfocus:I,get title(){return jt(a)}}),Xi(i,(t=>Z(y,t)),(()=>jt(y))),ae((t=>{ki(i,`--matrix: matrix3d(${jt(M)??""})`),Si(i,"id",`w-${e.targetId}`),r=bi(i,1,"micrio-waypoint",null,r,t)}),[()=>({clicked:jt(L),active:jt(L),"direction-up":f[1]<0,"direction-down":f[1]>0})]),Ni(3,i,(()=>kn)),Ze(t,i)};ri(N,(t=>{jt(R)||t(V)})),Ze(t,O),_e(),s()}const Da="5.4.33",Fa="https://b.micr.io/",za="https://r2.micr.io/",Oa=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],Na={b64:_b,ugz:_u},Va="micrio-muted",Ua={id:"",version:Da,path:Fa,width:0,height:0,tileSize:1024,lang:"en",settings:{camspeed:1,view:[0,0,1,1],restrict:[0,0,1,1],focus:[.5,.5],zoomLimit:1,fullscreen:!0,hookEvents:!0,hookScroll:!0,hookPinch:!0,hookDrag:!0,minimap:!0,doTourJumps:!0,audio:!0,startVolume:1,mutedVolume:0,_markers:{showTitles:!1,popupAnimation:{duration:200,x:-50},zoomOutAfterClose:!0},ui:{controls:{cultureSwitch:!0}},_360:{},_meta:{}}},Ba={STRINGS:{id:{r:!0},lang:{r:!0},"data-thumb":{f:"thumbSrc"},"data-title":{r:!0},"data-format":{r:!0},"data-extension":{r:!0,f:"tileExtension"},"data-tiles":{r:!0,f:"tilesId"},"data-path":{r:!0},"data-sources":{r:!0},"data-inittype":{f:"initType"},"data-type":{},"data-start":{f:"gallery.startId"},"data-gallery":{f:"gallery.archive"},"data-gallery-sort":{f:"gallery.sort"},"data-iiif":{r:!0,f:"iiifManifest"},"data-grid":{r:!0},"data-gallery-type":{f:"gallery.type"}},BOOLEANS:{"data-static":{},muted:{f:"audio",n:!0},"data-png":{r:!0,f:"isPng"},"data-webp":{r:!0,f:"isWebP"},"data-dz":{r:!0,f:"isDeepZoom"},"data-is360":{r:!0},"data-no-externals":{f:"noExternals"},"data-skipmeta":{f:"skipMeta"},"data-force-data-refresh":{f:"forceDataRefresh"},"data-keeprendering":{f:"keepRendering"},"data-coverlimit":{f:"limitToCoverScale"},"data-events":{f:"hookEvents"},"data-keys":{f:"hookKeys"},"data-zooming":{f:"noZoom",n:!0},"data-scroll-zoom":{f:"hookScroll"},"data-pinch-zoom":{f:"hookPinch"},"data-dragging":{f:"hookDrag"},"data-two-finger-pan":{f:"twoFingerPan"},"data-control-zoom":{f:"controlZoom"},"data-ui":{f:"noUI",n:!0},"data-gtag":{f:"noGTag",n:!0},"data-controls":{f:"noControls",n:!0},"data-logo":{f:"noLogo",n:!0},"data-logo-org":{f:"noOrgLogo",n:!0},"data-toolbar":{f:"noToolbar",n:!0},"data-show-info":{f:"showInfo"},"data-social":{},"data-fullscreen":{},"data-minimap":{},"data-minimap-hide":{f:"alwaysShowMinimap",n:!0},"data-omni-y":{f:"OmniTwoAxes"},"data-normalize-dpr":{f:"zoomLimitDPRFix"},"data-grid-clickable":{f:"gridClickable"},"data-gallery-spreads":{f:"gallery.isSpreads"},"data-freemove":{f:"freeMove"},"data-force-path":{f:"forceInfoPath",r:!0}},NUMBERS:{"data-version":{r:!0},height:{r:!0},width:{r:!0},volume:{f:"startVolume"},"data-tilesize":{r:!0,f:"tileSize"},"data-camspeed":{},"data-zoomlimit":{f:"zoomLimit"},"data-minimap-height":{f:"minimapHeight"},"data-minimap-width":{f:"minimapWidth"},"data-mutedvolume":{f:"mutedVolume"},"data-width-cm":{f:"cmWidth"},"data-height-cm":{f:"cmHeight"},"data-gallery-cover-pages":{f:"gallery.coverPages"},lazyload:{dN:0},"data-elasticity":{f:"dragElasticity"},"data-skip-base-levels":{f:"skipBaseLevels"},"data-watermark-opacity":{f:"watermarkOpacity"}},ARRAYS:{"data-focus":{},"data-view":{}}};var Wa,qa,Xa,Ya,Ga,ja,Ha;qa=Wa||(Wa={}),Xa=qa.Grid||(qa.Grid={}),(Ya=Xa.GridActionType||(Xa.GridActionType={}))[Ya.focus=0]="focus",Ya[Ya.flyTo=1]="flyTo",Ya[Ya.focusWithTagged=2]="focusWithTagged",Ya[Ya.focusTagged=3]="focusTagged",Ya[Ya.reset=4]="reset",Ya[Ya.back=5]="back",Ya[Ya.switchToGrid=6]="switchToGrid",Ya[Ya.filterTourImages=7]="filterTourImages",Ya[Ya.nextFadeDuration=8]="nextFadeDuration",Ga=qa.Camera||(qa.Camera={}),(ja=Ga.TimingFunction||(Ga.TimingFunction={}))[ja.ease=0]="ease",ja[ja["ease-in"]=1]="ease-in",ja[ja["ease-out"]=2]="ease-out",ja[ja.linear=3]="linear";class Za{constructor(t){var e;if(this.image=t,this.center=[0,0,1],this.view=[0,0,1,1],this.trueNorth=.5,this.aniDoneAdd=[],this.cooToArea=(t,e,i)=>({x:i[0]+t*(i[2]-i[0]),y:i[1]+e*(i[3]-i[1])}),this.getView=()=>this.view,this.getViewRaw=()=>this._view,this.getViewLegacy=()=>{if(this.e)return[this._view[0]-this._view[2]/2,this._view[1]-this._view[3]/2,this._view[0]+this._view[2]/2,this._view[1]+this._view[3]/2]},this.getCoo=(t,e,i=!1,r=!1)=>this.getCooDirect(t,e,i,r).slice(0).map((t=>Math.round(1e6*t)/1e6)),this.getXY=(t,e,i=!1,r,n,s)=>this.getXYDirect(t,e,{abs:i,radius:r,rotation:n,noTrueNorth:s}).slice(0),this.getScale=()=>this.center[2]??1,this.setScale=t=>this.setCoo(this.center[0],this.center[1],t),this.getCoverScale=()=>{var t;return(null==(t=this.e)?void 0:t._getCoverScale(this.image.ptr))??1},this.getMinScale=()=>{var t;return(null==(t=this.e)?void 0:t._getMinScale(this.image.ptr))??.1},this.isZoomedIn=()=>{var t;return 1==(null==(t=this.e)?void 0:t._isZoomedIn(this.image.ptr))},this.isZoomedOut=(t=!1)=>{var e;return 1==(null==(e=this.e)?void 0:e._isZoomedOut(this.image.ptr,t))},this.getCoverLimit=()=>{var t;return!!(null==(t=this.e)?void 0:t._getCoverLimit(this.image.ptr))},this.flyToView=(t,e={})=>new Promise(((i,r)=>{var n,s,o;if(!this.e)return r(new Error("Wasm not ready"));let{centerX:a,centerY:l,width:c,height:d}=Xr.toCenterJSON(t);if(2==(null==(n=e.margin)?void 0:n.length)&&(a+=e.margin[0],l+=e.margin[1],c-=2*e.margin[0],d-=2*e.margin[1]),e.area){const t=this.cooToArea(a,l,e.area);a=t.x,l=t.y,c*=e.area[2]-e.area[0],d*=e.area[3]-e.area[1]}if(e.prevView){const t=Xr.toCenterJSON(e.prevView);this.e._setStartView(this.image.ptr,t.centerX,t.centerY,t.width,t.height)}if(null==(s=this.image.$settings.omni)?void 0:s.frames){const i=(null==(o=this.image.$settings.omni.layers)?void 0:o.length)??1,r=this.image.$settings.omni.frames/i;if(null==e.omniIndex){const i=t[4]?t[4]:Array.isArray(t)&&void 0!==t[5]?t[5]:void 0;void 0!==i&&(e.omniIndex=Math.round(Pr(i/(2*Math.PI))*r))}null!=e.omniIndex&&(e.omniIndex=Pr(e.omniIndex,r))}const u=this.e._flyTo(this.image.ptr,a,l,c,d,e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,Wa.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==u?i():this.setAniPromises(i,r)})),this.flyToFullView=(t={})=>this.flyToCoo([.5,.5,this.getMinScale()],t),this.flyToCoverView=(t={})=>{const e=this.image.$settings.focus??[.5,.5];return e[2]=this.getCoverScale(),this.flyToCoo(e,t)},this.flyToCoo=(t,e={})=>new Promise(((i,r)=>{if(!this.e)return r(new Error("Wasm not ready"));e.duration=this.e._setCoo(this.image.ptr,t[0],t[1],t[2]||this.center[2],e.duration??-1,e.speed??-1,e.limit??!1,Wa.Camera.TimingFunction[e.timingFunction??"ease"],performance.now()),this.image.wasm.render(),0==e.duration?i():this.setAniPromises(i,r)})),this.zoom=(t,e=0,i=void 0,r=void 0,n=1,s=!1)=>new Promise(((o,a)=>{if(!this.e)return a(new Error("Wasm not ready"));const l=this.getXY(this.center[0],this.center[1]);if(null==i&&(i=l[0]),null==r&&(r=l[1]),this.image.album&&!this.image.album.hooked)return o();e=this.e._zoom(this.image.ptr,t,i,r,e,n,s,performance.now()),this.image.wasm.render(),0==e?o():this.setAniPromises(o,a)})),this.zoomIn=(t=1,e=250,i=1)=>this.zoom(200*-t,e,void 0,void 0,i).catch((()=>{})),this.zoomOut=(t=1,e=250,i=1)=>{const r=this.image.wasm.micrio.canvas.viewport,n=r.width/r.height,s=this.image.$info.width/this.image.$info.height;return this.zoom(t*(400/Math.max(1,n/s/2)),e,void 0,void 0,i).catch((()=>{}))},this.getDirection=()=>{var t;return(null==(t=this.e)?void 0:t._getYaw(this.image.ptr))??0},this.getPitch=()=>{var t;return(null==(t=this.e)?void 0:t._getPitch(this.image.ptr))??0},!t.is360){const i=t.state.$view;i&&(null==(e=t.$info)?void 0:e.width)&&Gt().then((()=>this.setView(i)))}}assign(t,e,i,r,n){this.e=t,this._view=e,this._xy=i,this._coo=r,this._mat=n}viewChanged(){var t;const e=this._view,i=this.center.join(","),r=this.getCoo(0,0);this.view[0]=e[0]-e[2]/2,this.view[1]=e[1]-e[3]/2,this.view[2]=e[2],this.view[3]=e[3],this.center[0]=e[0],this.center[1]=e[1],this.center[2]=r[2],this.image.is360&&(this.center[3]=r[3],this.center[4]=r[4]),this.image.isOmni&&(this.center[5]=null==(t=this.image.swiper)?void 0:t.currentIndex),(this.center.join(",")!=i||this.image.wasm.micrio.canvas.resizing||this.image.wasm.e._areaAnimating(this.image.ptr))&&this.image.state.view.set(this.view)}getXYDirect(t,e,i={}){var r;const n=this.image.is360&&!i.noTrueNorth?.5-((null==(r=this.image.$settings._360)?void 0:r.trueNorth)??.5):0;return this.e._getXY(this.image.ptr,t-n,e,!0===i.abs,i.radius,i.rotation),this._xy}getCooDirect(t,e,i=!1,r=!1){if(i){const i=this.image.wasm.micrio.getBoundingClientRect();t-=i.left,e-=i.top}return this.e._getCoo(this.image.ptr,t,e,!0===i,!0===r),this._coo}setView(t,e={}){if(!this.e)return;let{centerX:i,centerY:r,width:n,height:s}=Xr.toCenterJSON(t);if(e.area){const t=this.cooToArea(i,r,e.area);i=t.x,r=t.y,n*=e.area[2]-e.area[0],s*=e.area[3]-e.area[1]}this.e._setView(this.image.ptr,i,r,n,s,!!e.noLimit,!1,e.correctNorth),e.noRender||this.image.wasm.render()}setCoo(t,e,i=this.center[2]??1){this.e&&(this.e._setCoo(this.image.ptr,t,e,i,0,0),this.image.wasm.render())}getMatrix(t,e,i,r,n,s,o,a,l,c,d){return this.e?(this.e._getMatrix(this.image.ptr,t,e,i,r,n||0,s||0,o||0,a||0,l??1,c??1,d),this._mat):new Float32Array(16)}setMinScale(t){var e;null==(e=this.e)||e._setMinScale(this.image.ptr,t)}setMinScreenSize(t){var e;this.image.album||null==(e=this.e)||e._setMinSize(this.image.ptr,Math.max(0,Math.min(1,t??1)))}setLimit(t){if(!this.e)return;const e=Xr.rectToCenterJSON(t);this.e._setLimit(this.image.ptr,e.centerX,e.centerY,e.width,e.height),this.image.wasm.render()}setCoverLimit(t){this.e&&this.e._setCoverLimit(this.image.ptr,!!t)}set360RangeLimit(t=0,e=0){this.e&&(this.e._set360RangeLimit(this.image.ptr,t,e),this.image.wasm.render())}setAniPromises(t,e){this.aniDone=t,this.aniAbort=e}pan(t,e,i=0,r={}){this.e&&(this.e._pan(this.image.ptr,t,e,i,!!r.noLimit,performance.now()),(i>0||r.render)&&this.image.wasm.render())}stop(){this.e&&this.e._aniStop(this.image.ptr)}pause(){this.e&&this.e._aniPause(this.image.ptr,performance.now())}resume(){this.e&&(this.e._aniResume(this.image.ptr,performance.now()),this.image.wasm.render())}aniIsKinetic(){var t;return!!(null==(t=this.e)?void 0:t._isKinetic(this.image.ptr))}setDirection(t,e){if(!this.e)return;const i=this.image.wasm;i.e._setDirection(this.image.ptr,t,e),i.render()}setArea(t,e={}){const i=this.image.wasm.e;i&&(this.image.opts.isEmbed?this.image.ptr>0&&(this.image.opts.area=t,i._setImageArea(this.image.ptr,t[0],t[1],t[2],t[3])):(this.image.opts.area=t,i._setArea(this.image.ptr,t[0],t[1],t[2],t[3],!!e.direct,!!e.noDispatch)),e.noRender||this.image.wasm.render())}setRotation(t=0,e=0,i=0){!this.image.opts.isEmbed||this.image.ptr<=0||!this.image.wasm.e||(this.image.wasm.e._setImageRotation(this.image.ptr,t,e,i),this.image.wasm.render())}getOmniRotation(){var t,e;const i=this.image.$settings.omni;return i&&this.e?((null==(t=this.image.swiper)?void 0:t.currentIndex)??0)/(((null==i?void 0:i.frames)??1)/((null==(e=null==i?void 0:i.layers)?void 0:e.length)??1))*Math.PI*2:0}getOmniFrame(t){var e;const i=this.image.$settings.omni;if(!i||null==t)return;const r=i.frames/((null==(e=i.layers)?void 0:e.length)??1);return Math.floor(t/(2*Math.PI)*r)}getOmniXY(t,e,i){return this.e?(this.e._getOmniXY(this.image.ptr,t,e,i),this._xy):new Float64Array(5)}setOmniSettings(){const t=this.image,e=t.$settings.omni;e&&this.e&&(t.wasm.e._setOmniSettings(t.ptr,-e.distance||0,e.fieldOfView??0,e.verticalAngle??0,e.offsetX??0),this.image.state.view.set(this.view))}}(t=>{t.Main=class{constructor(t){this.micrio=t,this.tour=Qi(),this.marker=Qi(),this.markerHoverId=Qi(),this.popup=Qi(),this.popover=Qi(),this.ui={controls:Qi(!0),zoom:Qi(!0),hidden:Qi(!1)},this.mediaState=new Map,this.tour.subscribe((t=>{"string"!=typeof t&&(this._tour=t)})),this.marker.subscribe((t=>{"string"!=typeof t&&(this._marker=t)}))}get $tour(){return this._tour}get $marker(){return this._marker}get(){if(this.micrio.$current)return this.value={id:this.micrio.$current.id,c:this.micrio.canvases.map((t=>t.state.get()))},this._tour&&(this.value.t=[this._tour.id],"instance"in this._tour&&this._tour.instance?this.value.t.push(this._tour.instance.currentTime,this._tour.instance.paused?"p":void 0):"steps"in this._tour&&void 0!==this._tour.currentStep&&this.value.t.push(this._tour.currentStep)),this.value}async set(t){var e,i,r;if(this.value=t){if(void 0!==(null==(e=t.t)?void 0:e[1])){const e=t.t[0],i=this.mediaState.get(e);i?(i.currentTime=t.t[1],i.paused="p"==t.t[2]):this.mediaState.set(e,{currentTime:t.t[1],paused:"p"==t.t[2]})}if(null==(i=t.c)||i.forEach((t=>{if(void 0!==t[6]&&void 0!==t[7]){const e=t[6],i=this.mediaState.get(e);i?(i.currentTime=t[7],i.paused="p"==t[8]):this.mediaState.set(e,{currentTime:t[7],paused:"p"==t[8]})}})),t.t&&await this.setTour(t.t[0]),(null==(r=this.micrio.$current)?void 0:r.id)!=t.id&&(this.micrio.open(t.id),this.micrio.$current&&await Wr(this.micrio.$current.data,{allowUndefined:!0})),this.micrio.canvases.forEach((e=>{e.state.set(t.c.find((t=>t[0]==e.id)))})),t.t)return this.setTour(t.t[0],t.t[1]);{const e=t.c.find((e=>e[0]==t.id));e&&!e[5]&&this.micrio.$current&&this.micrio.$current.camera.flyToView(e.slice(1,5),{speed:2}).catch((()=>{}))}}}async setTour(t,e){var i,r,n;if(!this.micrio.$current)return;const s=await Wr(this.micrio.$current.data,{allowUndefined:!0});if(s){const o=(null==(i=s.markerTours)?void 0:i.find((e=>e.id==t)))||(null==(r=s.tours)?void 0:r.find((e=>e.id==t)));o&&"steps"in o&&void 0!==e&&(o.initialStep=e),(null==(n=this._tour)?void 0:n.id)!=t&&this.tour.set(o)}}};t.Image=class{constructor(t){this.image=t,this.view=Qi(void 0),this.marker=Qi(void 0),this.layer=Qi(0);const e=t.wasm.micrio;let i,r,n;this.view.subscribe((s=>{this._view=s;const o=null==s?void 0:s.toString();if(s&&o&&i!=o){const a={image:t,view:s};i=o;const l=s[2],c=s[3];(!r||!n||Math.abs(l-r+(c-n))>1e-5)&&(e.events.dispatch("zoom",a),r=l,n=c),e.events.dispatch("move",a)}})),this.marker.subscribe((t=>{const i=this._marker;this._marker=t&&"string"!=typeof t?t:void 0,this._marker?e.state.marker.set(this._marker):t||e.state.$marker!=i||e.state.marker.set(void 0)}))}get $view(){return this._view}get $marker(){return this._marker}hookOmni(){const t=this.image;this.layer.subscribe((e=>{t.ptr<0||!t.wasm.e||(t.wasm.setActiveLayer(t.ptr,e),t.wasm.render())}))}get(){const t=this._marker,e=t?Array.from(this.image.wasm.micrio.state.mediaState).reverse().find((e=>e[0].startsWith(t.id))):null;return[this.image.id,...this._view?this._view.slice(0,4):[0,0,1,1],...t?[t.id,...e?[e[0],e[1].currentTime,e[1].paused?"p":void 0]:[]]:[void 0]].filter((t=>void 0!==t))}set(t){var e;(null==t?void 0:t.length)&&(this.view.set(t.slice(1,4)),t[5]?(null==(e=this._marker)?void 0:e.id)!=t[5]&&this.marker.set(t[5]):this._marker&&this.marker.set(void 0))}}})(Ha||(Ha={}));const Ja=new class{constructor(){this.data=new Map,this.db=new Map,this.images=[],this.get=t=>new Promise(((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const n=new FileReader;n.onload=()=>e(JSON.parse(n.result)),n.readAsText(new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]))})),this.getImage=async t=>new Promise(((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const n=new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]);if("createImageBitmap"in self)e(self.createImageBitmap(n));else{let t=this.images.find((t=>!t.src));t||this.images.push(t=new Image),t.onload=()=>{t&&(e(t),requestAnimationFrame((()=>{t&&(URL.revokeObjectURL(t.src),t.src=null)})))},t.src=URL.createObjectURL(n)}}))}async load(t,e,i){if(this.data.has(e))return;const r=e.replace(/^.*\//,"").split(".")[0],n=/\/base$/.test(e),s=n||cn(r),o=new XMLHttpRequest,a=await new Promise(((r,n)=>{let a=0;o.responseType="arraybuffer",o.onprogress=t=>{a||(a=Number(o.getResponseHeader("Content-Length"))),null==i||i(Math.min(1,t.loaded/a))},o.onload=()=>{4===o.readyState&&200===o.status?(null==i||i(1),r(o.response)):n()},o.onerror=n,o.open("GET",t+e+(s?".bin":".mdp")),o.send()}));if(!a)return;this.data.set(e,a);const l=n?e.split("/")[0]+"/":"";let c=0;for(;c<a.byteLength&&!(c+32>a.byteLength);){const i=this.parseHeader(new Uint8Array(a,c,32));if(i.name&&i.size>0)this.db.set(t+l+i.name.replace("./",""),[e,c+32,i.size]);else if(0===i.size&&!i.name)break;c+=32+i.size}}parseHeader(t){const e=(new TextDecoder).decode(t),i=t=>e.slice(r,r+=t).replace(/\x00/g,"").trim();let r=0;return{name:i(20),size:parseInt(i(12),8)}}},Ka=[];class Qa{constructor(t,e,i={}){if(this.wasm=t,this.attr=e,this.opts=i,this.uuid=Dr(),this.__info=JSON.parse(JSON.stringify(Ua)),this.settings=Qi({}),this.data=Qi(void 0),this.video=Qi(void 0),this.visible=Qi(!1),this.ptr=-1,this.baseTileIdx=-1,this.is360=!1,this.isVideo=!1,this.isOmni=!1,this.levels=1,this.dzLevels=0,this.noImage=!1,this.opacity=1,this.viewport=Qi(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new Ha.Image(this),i.useParentCamera||(this.camera=new Za(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.id.startsWith("external/")){const t=this.id.indexOf("/",this.id.indexOf("/")+1);-1!==t&&(this.id=this.id.substring(0,t+1)+encodeURIComponent(this.id.substring(t+1)))}this.isV5=cn(this.id.split("/")[0]),this.infoBasePath=e.path&&e.forceInfoPath?e.path:void 0,this.dataPath=e.path||this.__info.path,this.isV5&&!e.path&&(this.dataPath=za),i.secondaryTo?(this.opacity=0,i.area=this.wasm.micrio.canvas.viewport.portrait?[0,1,1,1]:[1,0,1,1],void 0===i.isPassive&&(i.isPassive=!0)):i.area||(i.area=[0,0,1,1]),this.preset=sn(this.id);let r=!1;this.info={subscribe:Qi(void 0,(t=>{r?t(this.__info):this.load().then(t),r=!0})).subscribe};const n=this.wasm.micrio,s=!!this.attr.revision;let o,a=tr(this.visible);i.isEmbed&&!s||this.visible.subscribe((t=>{t!=a&&(a=t,t&&!this._loadedData&&(!s&&this.isV5?(this._loadedData=!0,this.data.set(void 0)):this.loadData()),i.secondaryTo&&(i.isPassive&&(o?(o(),o=null):t&&(o=i.secondaryTo.state.view.subscribe((t=>{t&&!this.camera.aniDone&&this.camera.setView(t,{noLimit:!0})})))),t?n.events.dispatch("splitscreen-start",this):n.events.dispatch("splitscreen-stop",this)),n.visible.update((e=>(t?e.push(this):e.splice(e.indexOf(this),1),e))),t&&n.$current==this&&n.switching.set(!1))})),this.video.subscribe((t=>this._video=t)),this.data.subscribe((t=>{t&&((t,e,i,r)=>{var n,s,o,a,l,c;t&&(t.revision&&(t.revision=Object.fromEntries(Object.entries(t.revision??{}).filter((t=>Number(t[1])>0)))),null==(n=t.embeds)||n.forEach((t=>{t.uuid||(t.uuid=t.id??t.micrioId),Gr(t.video),Gr(t),r&&(t.area=Xr.fromLegacy(t.area))})),null==(s=t.markers)||s.forEach((t=>Kr(t,e,i,r))),r&&(null==(o=t.tours)||o.forEach(Qr)),null==(l=null==(a=t.music)?void 0:a.items)||l.forEach(Gr),null==(c=t.pages)||c.forEach(Zr))})(t,n.lang,this.isV5,jr(this.__info))}))}get $info(){return this.__info}get $settings(){return tr(this.settings)}get $data(){return tr(this.data)}setError(t,e){const i=t instanceof Mr?t.displayMessage:e??(t instanceof Error?t.message:t)??"An unknown error has occurred";throw this.error=i,this.wasm.micrio.printError(t instanceof Mr?t:i),this.wasm.micrio.loading.set(!1),t instanceof Error?t:new Error(i)}async load(){var t,e,i,r,n,s,o,a,l,c,d,u,h,m,v,p,g,f,w,b,y,k;let x=this.__info;const T=this.attr,E=this.wasm.micrio;T.id&&T.width&&(T.settings&&Cr(Ua.settings,T.settings,{noOverwrite:!0}),this.__info=x=T);let _=x.iiifManifest||T.iiifManifest;x.isIIIF=this.id.startsWith("http")||"iiif"==x.format;const A=!!(null==(t=T.settings)?void 0:t.forceDataRefresh);let S;if(!this.id||T.width&&T.height&&!_)(null==(o=this.preset)?void 0:o[1])&&Cr(this.preset[1],x);else{const t=t=>this.setError(t,"string"==typeof t?t:'Image with id "'+this.id+'" not found, published, or embeddable.');Cr((null==(e=this.preset)?void 0:e[1])||await(x.isIIIF?nn(this.id):on(this.id,this.infoBasePath,A).then((t=>((null==t?void 0:t.id)&&!x.isIIIF&&this.id.split("/").length>=3&&this.id.startsWith("external/")&&(S=t.id.split("/").reverse()[0],(this.isV5=cn(S))&&(this.dataPath=t.path||za)),t)))).catch(t),x),!_&&x.iiifManifest&&(_=x.iiifManifest),x.isIIIF||(x.isIIIF=!!_),_&&Cr(await nn(_).catch(t),x),(null==(r=null==(i=x.settings)?void 0:i._meta)?void 0:r.noLogo)&&(x.settings.noLogo=!0),(null==(s=null==(n=x.settings)?void 0:n._meta)?void 0:s.noSmoothing)&&(x.settings.noSmoothing=!0)}const I="https://iiif.micr.io/";if(x.id.startsWith(I)&&(x.id=x.id.slice(21)),7==(null==(a=this.id)?void 0:a.length)){const t=ln(this.id[1+ln(this.id)%6]);x.is360=!!(t>>4&1)||x.is360,x.isWebP=!(3&t),x.isPng=2==(3&t),t>>3&1&&cn(x.tilesId??this.id)&&(x.format="dz"),x.path||(x.path=`https://${t>>2&1?"eu":"r2"}.micr.io/`)}const M=this.isV5&&this.id.startsWith("i")&&!this.id.includes("/");M&&!x.tilesId&&(x.tilesId=this.id.slice(1));const $=Oa.includes(x.id)||x.tilesId&&Oa.includes(x.tilesId);Cr(T,x),S&&(this.id=x.id=S);const P=M&&!(null==(l=x.tileBasePath)?void 0:l.includes("micr.io"));if(this.tileBase=P?x.tileBasePath??Fa:$||M?Fa:x.tileBasePath??x.path??(this.isV5?za:Fa),(null==(c=x.organisation)?void 0:c.baseUrl)&&!T.path?(this.dataPath=x.path=x.organisation.baseUrl,M&&!$||(this.tileBase=this.dataPath)):"https://eu.micr.io/"==x.path&&(this.dataPath=x.path),(null==(d=x.settings)?void 0:d.omni)&&(this.isOmni=!0,parseFloat(x.version)>=5&&(await Ja.load(this.tileBase??this.dataPath,(x.tilesId??x.id)+"/base",(t=>{var e,i;return null==(i=null==(e=E._ui)?void 0:e.setProps)?void 0:i.call(e,{loadingProgress:t})})).catch((t=>this.setError(t,"Could not find object base package."))),x.settings.gallery||(x.settings.gallery={}),x.settings.gallery.type="omni",x.settings.gallery.archive=x.id)),!(null==(u=x.organisation)?void 0:u.branding)||x.settings&&x.settings.noUI||this.loadStyle(this.dataPath+"style/"+x.organisation.slug+".css").then((()=>{var t;const e=null==(t=getComputedStyle(this.wasm.micrio).getPropertyValue("--micrio-font-family"))?void 0:t.replace(/^'([^']+)'.*$/,"$1");e&&document.fonts.ready.then((()=>{document.fonts.check("16px "+e)||this.loadStyle(`https://fonts.googleapis.com/css2?family=${e}:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&display=swap`)}))})),x.isIIIF)if(x.sequences&&x.sequences.length)this.parseIIIFSequenceV2(x,!!_);else if("Manifest"==x.type)this.parseIIIFSequenceV3(x);else{const t=(_||("@id"in x?x["@id"]:x.id)).replace("/info.json","");x.path=t.replace(/\/[^/]*$/,""),x.id=t.replace(/^.*\/([^/]*)$/,"$1")}if(x.spacesId&&!E.spaceData&&(E.spaceData="MICRIO_SPACE_DATA"in self?self.MICRIO_SPACE_DATA:await nn("https://i.micr.io/spaces/"+x.spacesId+".json"),1==(null==(h=E.spaceData)?void 0:h.images.length)&&delete E.spaceData),null==(m=x.settings)?void 0:m._360){let t=(null==(p=null==(v=E.spaceData)?void 0:v.images.find((t=>t.id==this.id)))?void 0:p.rotationY)??0;for(;t<0;)t+=2*Math.PI;x.settings._360.trueNorth=(.5+t/Math.PI/2)%1}this.noImage=this.noImage||this.isOmni||!x.id&&!x.tilesId,this.extension=x.tileExtension||x.isPng&&"png"||x.isWebP&&"webp"||"jpg","dz"==x.format&&(x.isDeepZoom=!0),this.is360=!!x.is360,this.isVideo=!!x.isVideo;let L=this.isV5?tr(E._lang):("cultures"in x?void 0:T.lang)??void 0;if(this.isV5){if(x.revision){const t=Object.keys(x.revision);t.length&&!t.includes(L)&&(E.lang=t[0])}}else if(!(null==(g=x.settings)?void 0:g.skipMeta)&&"cultures"in x){const t=(x.cultures||"").split(","),e=this.opts.isEmbed||!!this.opts.area,i=(null==(f=x.settings)?void 0:f.onlyPreferredLang)||e;L=x.lang&&t.includes(x.lang)?x.lang:i?void 0:t[0],L&&!e&&(E.lang=L)}const C=x.settings;C&&!(null==C?void 0:C.noExternals)&&await Promise.all([C.css?this.loadStyle(C.css.href):null,C.js?this.loadScript(C.js.href,L):null].filter((t=>!!t)));for(let D=x.tileSize;D<Math.max(x.width,x.height);D*=2,this.levels++);let R=Math.max(x.width,x.height);do{this.dzLevels++}while((R/=2)>1);return(null==(w=null==C?void 0:C.gallery)?void 0:w.archive)&&(this.levels-=1-(C.gallery.archiveLayerOffset??0)),this.noImage||(this.thumbSrc=this.getTileSrc(this.levels,0,0)),E.events.dispatch("pre-info",x),this.isV5&&null!=x.revision&&!this.opts.isEmbed?await this.loadData():(null==(b=x.settings)?void 0:b.skipMeta)||this.opts.isEmbed||this.isV5||E._lang.subscribe((t=>{var e,i;!t||!this.id||"cultures"in this.__info&&(this.__info.cultures||"").split(",").includes(t)||(t=void 0),this.data.set(void 0),!t&&(null==(e=this.preset)?void 0:e[2])&&(t="preset"),t&&this.id&&(this.isV5||(E.state.tour.set(void 0),this.state.marker.set(void 0)),(null==(i=this.preset)?void 0:i[2])?this.enrichData(this.preset[2]).then((t=>{var e;this.data.set(t),(null==(e=this.preset)?void 0:e[2])&&(this.preset[2]=void 0)})):nn(this.dataPath+this.id+"/data."+t+".json").catch((()=>{})).then((t=>t&&this.enrichData(t).then((t=>this.data.update((e=>(Cr(t,e||(e={}),{mergeArrays:!0}),e))))))))})),(null==(y=x.settings)?void 0:y.micrioSplitLink)&&!this.opts.secondaryTo&&E.open({id:x.settings.micrioSplitLink,settings:{hookEvents:!1!==x.settings.secondaryInteractive}},{splitScreen:!0,isPassive:!x.settings.noFollow}),x.settings&&this.settings.set(x.settings),x.watermark&&this.wasm.micrio.webgl.loadWatermark(x.watermark,null==(k=x.settings)?void 0:k.watermarkOpacity),delete x.settings,this.isOmni&&this.state.hookOmni(),x}async loadData(){var t,e,i,r;const n=(null==(t=this.$settings)?void 0:t.skipMeta)||(null==(e=this.__info.settings)?void 0:e.skipMeta);if(this._loadedData||n)return Promise.resolve();this._loadedData=!0;const s=(null==(i=this.preset)?void 0:i[2])??(this.isV5&&await nn(this.dataPath+this.id+"/data/pub.json",null==(r=this.__info.settings)?void 0:r.forceDataRefresh).catch((()=>{})));s&&this.enrichData(s).then((t=>this.data.set(t)))}getTileSrc(t,e,i,r){var n,s,o;const a=this.__info;if(a){if(a.isDeepZoom&&(t=this.dzLevels-t),a.isIIIF){const r=a.tileSize,n=Math.pow(2,t)*r,s=Math.min(a.width,e*n),o=Math.min(a.height,i*n),l=Math.min(a.width-s,n),c=Math.min(a.height-o,n),d=Math.round(Math.min(r,l/n*r)),u=Math.round(Math.min(r,c/n*r));return`${a.path}/${a.id}/${[s,o,l,c].join(",")}/${[d,u].join(",")}/0/default.jpg`}if(null==(o=null==(s=null==(n=a.settings)?void 0:n._360)?void 0:s.video)?void 0:o.src)throw"Video thumb";return`${this.tileBase}${a.tilesId||a.id}/${void 0!==r?r+"/":""}${t}/${e}${a.isDeepZoom?"_":"-"}${i}.${this.extension}`}}loadScript(t,e=""){return new Promise((i=>{if(Ka.includes(t)||document.querySelector('script[src="'+t+'"]'))i();else{Ka.push(t);const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.defer=!0,r.micrioElement=this.wasm.micrio,r.src=t.replace("$lang",e),r.onload=i,document.head.appendChild(r)}}))}loadStyle(t){return new Promise((e=>{if(Ka.includes(t)||document.head.querySelector('link[href="'+t+'"]'))e();else{Ka.push(t);const i=document.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),i.onload=e,document.head.appendChild(i)}}))}async enrichData(t){var e,i,r,n,s;if(!t)return t;"error"in t&&(this.__info.error="403"==t.status?"Could not load image data. Are you logged in and do you have the right credentials?":t.error);const o=this.wasm.micrio.lang,a=[];null==(e=t.markers)||e.forEach((t=>{var e;if(Kr(t,o,!this.isV5,jr(this.__info)),null==(e=t.data)?void 0:e.micrioSplitLink){const e=t.data.micrioSplitLink.split(",").map((t=>t.trim())),i=t.data._micrioSplitLink={micrioId:e[0],markerId:e[1],follows:!!e[2]&&"false"!=e[2]};i.markerId&&a.push(i.micrioId)}})),(null==(i=t.markerTours)?void 0:i.length)&&a.push(...t.markerTours.flatMap((t=>t.steps)).map((t=>t.split(",")[1])).filter((t=>!!t&&t!=this.id)));const l=t=>"autostart"in t&&t.autostart,c=(null==(r=t.markerTours)?void 0:r.find(l))||(null==(n=t.tours)?void 0:n.find(l));c&&(this.$settings.start={type:"steps"in c?"markerTour":"tour",id:c.id});const d=a.filter(((t,e)=>a.indexOf(t)==e)),u=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+o+".json"),[h,m]=await Promise.all([Promise.all(d.map((t=>nn(u(t))))),Promise.all(d.map((t=>on(t,this.infoBasePath))))]);h.forEach(((t,e)=>{var i;const r=jr(m[e]);null==(i=null==t?void 0:t.markers)||i.forEach((t=>Kr(t,o,5==d[e].length,r)))}));const v=this.wasm.micrio.spaceData;return t.markerTours&&(await Promise.all(t.markerTours.map((e=>an(this,e,o,t)))),v&&(t.markerTours=t.markerTours.filter((t=>!t.steps.find((t=>t.includes(","))))))),(null==v?void 0:v.markerTours)&&await Promise.all(v.markerTours.filter((t=>!t.stepInfo)).map((e=>an(this,e,o,t)))),null==(s=t.markers)||s.forEach((t=>{var e,i,r,n,s;if(!(null==(e=t.data)?void 0:e._micrioSplitLink))return;const o=null==(r=null==(i=t.data)?void 0:i._micrioSplitLink)?void 0:r.markerId;if(o)for(let a=0;a<h.length;a++){const e=null==(s=null==(n=h[a])?void 0:n.markers)?void 0:s.find((t=>t.id==o));if(e)return void(t.data._micrioSplitLink.view=e.view)}})),this.wasm.micrio.events.dispatch("pre-data",{[this.id]:t,...Object.fromEntries(d.map(((t,e)=>[t,h[e]])))}),h.forEach(((t,e)=>{if(t){const r=this.wasm.images.find((t=>t.id==d[e]));r&&r instanceof Qa&&!r.$data&&(i=u(r.id),!tn.has(i)&&!en.has(i))&&r.data.set(t)}var i})),t}parseIIIFSequenceV2(t,e=!1){var i;const r=null==(i=t.sequences)?void 0:i[0];if(!r)return;const n="top-to-bottom"==r.viewingDirection,s=r.canvases.map((t=>t.images[0])).map((t=>t.resource));this.noImage=!0,t.width=n?Math.max(...s.map((t=>t.width))):s.reduce(((t,e)=>t+e.width),0),t.height=n?s.reduce(((t,e)=>t+e.height),0):Math.max(...s.map((t=>t.height)));let o=0,a=this.embeds;t.settings||(t.settings={}),e&&s.length>10&&(a=t.gallery=[],t.settings.gallery||(t.settings.gallery={})),s.forEach((e=>{const i=[(1-e.width/t.width)/2,(1-e.height/t.height)/2];a.push(new Qa(this.wasm,{id:e.service["@id"],width:e.width,height:e.height,isPng:"image/png"==e.format,settings:{}},{area:n?[i[0],o/t.height,1-i[0],(o+e.height)/t.height]:[o/t.width,i[1],(o+e.width)/t.width,1-i[1]]})),o+=n?e.height:e.width}))}parseIIIFSequenceV3(t){var e;const i=null==(e=t.items)?void 0:e.flatMap((t=>{var e,i,r,n;return null==(n=null==(r=null==(i=null==(e=t.items)?void 0:e[0])?void 0:i.items)?void 0:r[0])?void 0:n.body})).filter((t=>{var e,i;return!!(null==(i=null==(e=null==t?void 0:t.service)?void 0:e[0])?void 0:i.id)})).filter((t=>!!t));if(!(null==i?void 0:i.length))return;this.noImage=!0,t.width=i.reduce(((t,e)=>t+e.width),0),t.height=Math.max(...i.map((t=>t.height)));let r=0;const n=t.gallery=[];t.settings||(t.settings={}),t.settings.gallery||(t.settings.gallery={}),i.forEach((e=>{const i=[(1-e.width/t.width)/2,(1-e.height/t.height)/2];n.push(new Qa(this.wasm,{id:e.service[0].id,width:e.width,height:e.height,isPng:"image/png"==e.format,tileSize:t.tileSize,settings:{}},{area:[r/t.width,i[1],(r+e.width)/t.width,1-i[1]]})),r+=e.width}))}addEmbed(t,e,i={}){const r=e.slice(0),n=new Qa(this.wasm,t,{area:r,isEmbed:!0,useParentCamera:i.asImage});return n.camera||(n.camera=this.camera),this.embeds.push(n),void 0===i.opacity&&(i.opacity=1),Wr(n.info).then((t=>{if(t){if("cover"==i.fit||"contain"==i.fit){const e=this.is360?2:1,n="cover"==i.fit,s=r[2]-r[0],o=r[3]-r[1],a=r[0]+s/2,l=r[1]+o/2,c=s/o*e,d=t.width/t.height;if(n&&d<c||!n&&d>=c){const t=s/d*e;r[1]=l-t/2,r[3]=l+t/2}else{const t=o*d/e;r[0]=a-t/2,r[2]=a+t/2}}this.wasm.addEmbed(n,this,i),this.wasm.render()}})),n}setEmbedMediaElement(t,e){e?this.embedElements.set(t,e):this.embedElements.delete(t)}getEmbedMediaElement(t){return this.embedElements.get(t)}splitStart(){var t,e,i;const r=this.wasm.micrio.canvas.viewport.portrait;null==(t=this.opts.secondaryTo)||t.camera.setArea(r?[0,0,1,.5]:[0,0,.5,1],{noRender:!0}),this.camera.setArea(r?[0,.5,1,1]:[.5,0,1,1],{noRender:!0}),this.camera.setView((null==(i=null==(e=this.__info)?void 0:e.settings)?void 0:i.view)??[0,0,1,1]),this.wasm.render()}splitEnd(){var t,e;const i=this.opts.area;if(!i)return;const r=i[2]-i[0],n=i[3]-i[1];if(Math.round(1e3*r)/1e3==0||Math.round(1e3*n)/1e3==0)return;const s=r>n;this.camera.setArea(s?[0,1,1,1]:[1,0,1,1],{noRender:!0}),(null==(t=this.opts.secondaryTo)?void 0:t.grid)&&this.opts.secondaryTo.camera.aniDone||null==(e=this.opts.secondaryTo)||e.camera.setArea([0,0,1,1],{noRender:!0}),this.wasm.render()}fadeIn(t=!1){this.wasm.fadeImage(this.ptr,1,t),this.wasm.render()}fadeOut(t=!1){this.wasm.fadeImage(this.ptr,0,t),this.wasm.render()}}class tl{constructor(t,e,i,r,n){var s,o,a;this.wasm=t,this.image=e,this.embed=i,this.paused=r,this.moved=n,this.ism3u=!1,this.hlsPlayer=void 0,this.usVid=void 0,this.vidRepeatTo=void 0,this.placeTo=void 0,this.autoplay=!0,this._vid=void 0,this.isMounted=!0,this.events={play:()=>this.setPlaying(!0),pause:()=>this.setPlaying(!1),playing:()=>{!this.image._video&&this._vid&&("requestVideoFrameCallback"in this._vid?this._vid.requestVideoFrameCallback((()=>{this._vid&&this.isMounted&&(this.image.video.set(this._vid),this.wasm.render())})):this.image.video.set(this._vid))},canplayEvt:Nr.iOS?"loadedmetadata":"canplay",canplay:()=>{this._vid&&this.isMounted&&(this.autoplay&&!this.paused?(this._vid.play().catch((t=>console.warn("WebGL Embed video play() failed on canplay:",t))),this.moved()):this.embed.hideWhenPaused||(this.setPlaying(!0),Gt().then((()=>{this.setPlaying(!1),setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.remove()}),50)}))))}},this.ism3u=!!(null==(s=i.video)?void 0:s.streamId)&&!(null==(o=i.video)?void 0:o.transparent),this._vid=e._video,this.autoplay=(null==(a=i.video)?void 0:a.autoplay)??!0;let l=!0;this.usVid=this.image.visible.subscribe((t=>{clearTimeout(this.placeTo),this.placeTo=t?setTimeout((()=>{this.isMounted&&(this._vid?(this.hook(),this.autoplay&&!this.paused&&this._vid.play().catch((t=>console.warn("WebGL Embed video play() failed",t)))):this.load())}),l?0:100):setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.pause()}),0),l=!1}))}unmount(){var t,e;this.isMounted=!1,clearTimeout(this.placeTo),clearTimeout(this.vidRepeatTo),null==(t=this._vid)||t.pause(),this.unhook(),null==(e=this.usVid)||e.call(this)}setPlaying(t){this._vid&&(this.paused=!t,t?this._vid.dataset.playing="1":delete this._vid.dataset.playing,this.wasm.e._setImageVideoPlaying(this.image.ptr,t),this.embed.hideWhenPaused&&this.wasm.fadeImage(this.image.ptr,t?1:0),t&&this.wasm.render())}load(){if(!this.embed.video||this._vid)return;const t=this.ism3u?`https://videodelivery.net/${this.embed.video.streamId}/manifest/video.m3u8`:this.embed.video.src;t?(this._vid=document.createElement("video"),this._vid.crossOrigin="anonymous",this._vid.playsInline=!0,this._vid.width=this.embed.width,this._vid.height=this.embed.height,this._vid.muted=this.embed.video.muted,this.hook(),this.ism3u&&("MediaSource"in window||"ManagedMediaSource"in window)?Br("https://r2.micr.io/hls-1.6.15.min.js",void 0,"Hls"in window?{}:void 0).then((()=>{this.hlsPlayer=new window.Hls({abrEwmaDefaultEstimate:1e7,abrEwmaDefaultEstimateMax:5e7}),this.hlsPlayer.loadSource(t),this._vid&&this.hlsPlayer.attachMedia(this._vid)})).catch((t=>console.error("[Micrio GL Embed] Failed to load HLS.js:",t))):this._vid.src=t):console.error("[Micrio GL Embed] No video source found for embed:",this.embed.id)}hook(){if(!this.embed.video||!this._vid)return;const t=this.embed.video.loopAfter;this.embed.video.loop&&t?(this._vid.loop=!1,this._vid.onended=()=>{this.setPlaying(!1),this.vidRepeatTo=setTimeout((()=>{var t;return null==(t=this._vid)?void 0:t.play().catch((t=>console.warn("WebGL Embed video loop play() failed:",t)))}),1e3*t)},this._vid.onplay=()=>this.setPlaying(!0)):(this._vid.loop=this.embed.video.loop,this._vid.onended=null,this._vid.onplay=null),this._vid.parentNode||this.autoplay||this.ism3u||(this._vid.setAttribute("style","opacity:0;position:absolute;top:0;left:0;transform-origin:left top;transform:scale(0.1);pointer-events:none;"),document.body.appendChild(this._vid)),this._vid.addEventListener("play",this.events.play),this._vid.addEventListener("pause",this.events.pause),this._vid.addEventListener("playing",this.events.playing,{once:!0}),this._vid.addEventListener(this.events.canplayEvt,this.events.canplay,{once:!0})}unhook(){this._vid&&(this._vid.removeEventListener("play",this.events.play),this._vid.removeEventListener("pause",this.events.pause),this._vid.removeEventListener("playing",this.events.playing),this._vid.removeEventListener(this.events.canplayEvt,this.events.canplay),this._vid.onended=null,this._vid.onplay=null)}}var el=Ye('<img alt="Embed" data-scroll-through="" class="micrio-embed">'),il=Ye('<button data-scroll-through="" aria-label="embed-button" class="micrio-embed"></button>');function rl(t,e){var i,r,n;Ee(e,!0);const[s,o]=sr(),a=()=>rr(c,"$current",s),l=xe("micrio"),{current:c,wasm:d,canvas:u,_lang:h}=l;let m=cr(e,"embed",15);(null==(i=m().src)?void 0:i.startsWith("/r2"))&&m(m().src="http://localhost:6100"+m().src,!0);const v=a(),p=v.$info;m().uuid||m(m().uuid=Dr(),!0);const g=m().uuid,f=v.is360,w=(null==(r=m().video)?void 0:r.autoplay)??!0;let b=v.embeds.find((t=>{var e;return t.uuid==g||(null==(e=t.$info)?void 0:e.title)==g}));const y=window.matchMedia("(dynamic-range: high)").matches||Nr.OSX,k=m().area,x=null==(n=m().src)?void 0:n.toLowerCase().endsWith(".svg"),T=!(!m().width||!m().height)&&m().width*m().height<Math.pow(1024,2),E=/iPhone OS 14_/i.test(navigator.userAgent),_="data-embeds-inside-gl",A=l.getAttribute(_),S=!(x||E||!y&&!l.hasAttribute(_)&&m().video||"false"==A||(!m().micrioId||T&&m().src)&&(!m().video||m().video.controls||m().video.transparent)),I=!m().clickAction&&!m().frameSrc&&!e.marker,M="href"==m().clickAction?m().clickTarget:void 0,$=M&&m().clickTargetBlank;let P=j(q(k[2])),L=j(q(k[3])),C=j(k[0]+k[2]/2),R=j(k[1]+k[3]/2),D=j(q(m().scale||1)),F=j(q(m().rotX??0)),z=j(q(m().rotY??0)),O=j(q(m().rotZ??0)),N=j(q(m().scaleX??1)),V=j(q(m().scaleY??1)),U=j(""),B=j(0);function W(){const t=m().area;Z(P,t[2],!0),Z(L,t[3],!0),Z(C,t[0]+jt(P)/2),Z(R,t[1]+jt(L)/2),Z(D,m().scale||1,!0),Z(F,m().rotX??0,!0),Z(z,m().rotY??0,!0),Z(O,m().rotZ??0,!0),Z(N,m().scaleX??1,!0),Z(V,m().scaleY??1,!0);const e=S&&m().micrioId&&m().width,i=e?10:1;let r=jt(P)*p.width/(m().width??100)/(S?m().width?jt(P):1:jt(D))*(f?Math.PI/2:1);const n=[];e&&m().width&&(r=jt(P)/(m().width/p.width)*i*(f?Math.PI/2:1),n.push(`width:${m().width/i}px`)),n.push(`--ratio:${jt(P)/jt(L)*p.width/p.height};--scale:${r}`),x&&Z(U,jt(U)+`height:${m().height}px`),Z(U,n.join(";"),!0),m().video&&(m().video.width>m().video.height?Z(B,Math.min(m().video.width,jt(P)*p.width,2048),!0):Z(B,Math.min(m().video.height,jt(L)*p.height,2048)/(m().video.height/m().video.width)))}W();const X=tt((()=>Math.round(jt(P)*p.width))),Y=tt((()=>Math.round(jt(L)*p.height)));let G,H=j(!1),J=j(0),K=j(0),Q=j(""),et=j(!1),it=j("");function rt(){var t,e,i,r;if(!v.camera.e)return;const n=v.camera.getXYDirect(jt(C),jt(R));if(Z(J,n[0],!0),Z(K,n[1],!0),G=n[2],f&&(Z(Q,v.camera.getMatrix(jt(C),jt(R),jt(D),1,jt(F),jt(z),jt(O),void 0,jt(N),jt(V)).join(","),!0),Z(et,n[3]>2)),Z(it,(f?`transform:matrix3d(${jt(Q)});`:`--x:${jt(J)}px;--y:${jt(K)}px;--s:${G};`)+(void 0!==m().opacity&&1!==m().opacity?`--opacity:${m().opacity};`:"")),((null==(t=m().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=m().video)?void 0:e.pauseWhenLargerThan))&&jt(X)){const t=jt(H);Z(H,function(){var t,e;if(!(null==(t=m().video)?void 0:t.pauseWhenSmallerThan)&&!(null==(e=m().video)?void 0:e.pauseWhenLargerThan))return!w;const i=G?Math.max(jt(X)*G/u.viewport.width,jt(Y)*G/u.viewport.height):0;return!!(m().video.pauseWhenSmallerThan&&i<m().video.pauseWhenSmallerThan||m().video.pauseWhenLargerThan&&i>m().video.pauseWhenLargerThan)}(),!0),(null==(i=jt(ct))?void 0:i._vid)&&jt(H)!=t&&(jt(H)?jt(ct)._vid.pause():((null==(r=null==v?void 0:v.$settings)?void 0:r.embedRestartWhenShown)&&(jt(ct)._vid.currentTime=0),jt(ct)._vid.play()))}}function nt(){var t;const i="markerId"==m().clickAction?m().clickTarget:null==(t=e.marker)?void 0:t.id;i&&a()&&!M&&a().state.marker.set(i)}function st(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)m(m()[t]=e[t],!0)}W(),rt()}function ot(t,e){return t.addEventListener("change",e),{destroy:()=>t.removeEventListener("change",e)}}const at=Qi(!1);m().video&&(m().video.controls||m(m().video.muted=!0,!0));const lt=S&&!!m().video;let ct=j(void 0);const dt=!S||!!m().clickAction;let ut=j(void 0);re((()=>{var t;m().video&&m().id&&a()&&a().setEmbedMediaElement(m().id,jt(ut)??(null==(t=jt(ct))?void 0:t._vid))}));const mt=tt((()=>m().video||S?jt(B):jt(X))),vt=tt((()=>m().video?jt(B)/(m().video.width/m().video.height):jt(Y))),pt=tt((()=>jt(X)/jt(mt)));Hi((()=>{var t,e;const i=[];return S&&function(){const t=m().hideWhenPaused?.01:m().opacity??1,e=[m().area[0],m().area[1],m().area[0]+m().area[2],m().area[1]+m().area[3]];b&&b.ptr>=0?(b.camera.setArea(e),b.camera.setRotation(m().rotX,m().rotY,m().rotZ),d.fadeImage(b.ptr,t)):b=v.addEmbed({id:m().video?m().id:m().micrioId,title:g,width:m().width,height:m().height,isPng:m().isPng,isWebP:m().isWebP,isDeepZoom:m().isDeepZoom,path:p.tileBasePath??p.path,isSingle:!!m().video,isVideo:!!m().video,settings:{_360:{rotX:jt(F),rotY:jt(z),rotZ:jt(O)}}},e,{opacity:t,asImage:!1}),lt&&Wr(b.visible,{targetValue:!0}).then((()=>{Z(ct,new tl(d,b,m(),jt(H),rt),!0)})),d.render()}(),(dt||(null==(t=m().video)?void 0:t.pauseWhenSmallerThan)||(null==(e=m().video)?void 0:e.pauseWhenLargerThan))&&i.push(v.state.view.subscribe(rt)),()=>{var t,e;for(null==(t=jt(ct))||t.unmount(),b&&b.ptr>=0&&(d.fadeImage(b.ptr,0),d.render()),m().video&&m().id&&a()&&a().setEmbedMediaElement(m().id);i.length;)null==(e=i.shift())||e()}}));var gt=He(),ft=ht(gt),wt=t=>{var i=He();hi(ht(i),(()=>M?"a":"div"),0,((t,i)=>{let r;mi(t,((t,e)=>null==ot?void 0:ot(t,e)),(()=>st)),ae((e=>r=Mi(t,r,{id:m().id?"e-"+m().id:void 0,style:jt(it),role:M?void 0:"figure",onclick:nt,onkeypress:nt,href:M,target:M&&$?"_blank":null,class:"",[xi]:e},"micrio-embed")),[()=>({"embed-container":!0,embed3d:f,"no-events":I,behind:f&&jt(et)})]);var n=He(),o=ht(n),a=t=>{const e=tt((()=>m().video.streamId&&!m().video.transparent?"cfvid://"+m().video.streamId:m().video.src)),i=tt((()=>m().video.muted?0:1)),r=tt((()=>!jt(H)&&m().video.autoplay)),n=tt((()=>m().video.transparent&&m().video.hasH265));po(t,{get forcePause(){return jt(H)},get src(){return jt(e)},get width(){return jt(mt)},get height(){return jt(vt)},get frameScale(){return jt(pt)},get controls(){return m().video.controls},destroying:at,get loop(){return m().video.loop},get loopDelay(){return m().video.loopAfter},get volume(){return jt(i)},get autoplay(){return jt(r)},get hasTransparentH265(){return jt(n)},get _media(){return jt(ut)},set _media(t){Z(ut,t,!0)}})},l=(t,i)=>{var r=t=>{po(t,{get src(){return m().frameSrc},get width(){return jt(X)},get height(){return jt(Y)},get frameScale(){return m().scale},get autoplay(){return m().autoplayFrame},destroying:at})},n=(t,i)=>{var r=t=>{var e=el();ae((()=>{Si(e,"src",m().src),ki(e,jt(U)),Si(e,"width",x?m().width:void 0),Si(e,"height",x?m().height:void 0)})),Ze(t,e)},n=t=>{var i=il();ae((()=>{var t,r,n;ki(i,jt(U)),Si(i,"title",m().title||(null==(n=null==(r=null==(t=e.marker)?void 0:t.i18n)?void 0:r[rr(h,"$_lang",s)])?void 0:n.title))})),Ze(t,i)};ri(t,(t=>{!S&&m().src?t(r):t(n,!1)}),i)};ri(t,(t=>{m().frameSrc?t(r):t(n,!1)}),i)};ri(o,(t=>{m().video&&!S?t(a):t(l,!1)})),Ze(i,n)})),Ze(t,i)};ri(ft,(t=>{dt&&(jt(Q)||jt(J)||jt(K))&&t(wt)})),Ze(t,gt),_e(),o()}var nl=Ge("<line></line>"),sl=Ye('<article class="micrio-markers"><label> </label></article>'),ol=Ye('<article class="micrio-markers"><label> </label></article>'),al=Ye('<svg class="micrio-markers"></svg> <aside class="micrio-markers"><section class="micrio-markers"></section> <section class="micrio-markers"></section></aside>',1),ll=Ye("<!> <!>",1),cl=Ye("<div><!> <!></div>"),dl=Ye("<!> <!> <!> <!>",1);function ul(t,e){var i;Ee(e,!0);const[r,n]=sr(),s=()=>rr(v,"$settings",r),o=()=>rr(A,"$inView",r),a=()=>rr(_,"$hoveredId",r),l=()=>rr(f,"$switching",r),c=()=>rr(h,"$data",r),d=()=>rr(w,"$_lang",r);let u=cr(e,"image",15);const{data:h,info:m,settings:v}=u(),p=u().state.marker,g=u().wasm.micrio,{switching:f,_lang:w,state:b}=g,y=g.canvas.isMobile,k=null==(i=g.canvases[0])?void 0:i.grid,x=null==k?void 0:k.focussed,T=null==k?void 0:k.markersShown,E=s().clusterMarkerRadius??16,_=b.markerHoverId,A=Qi([]);Te("inView",A);const S=s()._markers??{},I=s().omni,M=!(!!S.noTitles||!!(null==I?void 0:I.sideLabels)||!S.showTitles&&5!=u().id.length);let $=!1;function P(t){t?"string"==typeof t||u().openedView||t.noMarker||!t.view||(u(u().openedView=g.state.$tour&&!("steps"in g.state.$tour)?void 0:Lr(u().state.$view),!0),$=!!t.videoTour):u().openedView&&!g.state.$tour&&setTimeout((()=>{var t;jt(Q)||u().camera.aniDone||!u().openedView||u().camera.flyToView((t=>{const e=Math.min(1,t[2]),i=Math.min(1,t[3]),r=e/2,n=i/2;return[Math.max(r,Math.min(1-r,t[0]+t[2]/2))-r,Math.max(n,Math.min(1-n,t[1]+t[3]/2))-n,e,i]})(u().openedView),{speed:null==(t=s()._markers)?void 0:t.zoomOutAfterCloseSpeed}).catch((()=>{})),u(u().openedView=void 0,!0),$=!1}),$?250:10)}let L=!1;b.tour.subscribe((t=>{t&&"steps"in t?(L=!0,t.keepLastStep&&u(u().openedView=void 0,!0)):(t||u().openedView||!L||u().camera.stop(),L=!1)}));const C=[];let R=j(""),D=j(!1),F=j(!1);const z=t=>(t=null==t?void 0:t.map((t=>Math.round(100*t)/100)))&&Z(R,[...C,t[0]?`left: ${t[0]}px`:null,t[1]?`top: ${t[1]}px`:null,`width: ${t[2]}px`,`height: ${t[3]}px`].filter((t=>!!t)).join(";")+";");let O=j(q([])),N=E,V=j(q([]));const U=new Map,B=([t,e,i=0,r=0],[n,s,o=0,a=0])=>{const l=Math.max(r/2,N),c=Math.max(a/2,N);return!(t+i+N<n-N||t-N>n+o+N||e+l<s-c||e-l>s+c)},W=()=>{var t;if(!jt(it))return Z(O,[],!0),void Z(V,[],!0);const e=jt(it),i=[],r=e.length;let n=0,s=0;for(Z(O,[],!0),n=0;n<r;n++)for(s=n+1;s<r;s++){if(null==(t=e[s].tags)?void 0:t.includes("no-cluster"))continue;const r=U.get(e[n].id),o=U.get(e[s].id);if(r&&o&&B(r,o)){jt(O).push(n,s);const t=i.find((t=>t.findIndex((t=>t==n||t==s))>-1));t?t.push(n,s):i.push([n,s])}}Z(V,i.map((t=>t.filter(((e,i)=>t.indexOf(e)===i)))).map((t=>{const i=u().isOmni;let r,n,s,o,a,l;if(i){a=t.reduce(((t,i)=>t+e[i].x),0)/t.length,l=t.reduce(((t,i)=>t+e[i].y),0)/t.length;const i=.3;r=Math.max(0,a-i/2),s=Math.max(0,l-i/2),n=Math.min(1,a+i/2),o=Math.min(1,l+i/2)}else r=Math.min(...t.map((t=>e[t].view?e[t].view[0]:e[t].x))),n=Math.max(...t.map((t=>e[t].view?e[t].view[0]+e[t].view[2]:e[t].x))),s=Math.min(...t.map((t=>e[t].view?e[t].view[1]:e[t].y))),o=Math.max(...t.map((t=>e[t].view?e[t].view[1]+e[t].view[3]:e[t].y))),a=(r+n)/2,l=(s+o)/2;const c=i?t.reduce(((t,i)=>t+(e[i].rotation??0)),0)/t.length:void 0,d=i?t.reduce(((t,i)=>t+(e[i].radius??1)),0)/t.length:void 0;return{title:t.length+"",type:"cluster",view:[r,s,Math.max(.1,n-r),Math.max(.1,o-s)],x:a,y:l,rotation:c,radius:d,id:t.sort(((t,e)=>t-e)).join(","),data:{},popupType:"none",tags:[]}})),!0)},X=[];Hi((()=>{const t=[];return Wr(m).then((e=>{var i,r,n;if(!e)return;Z(D,!!e.is360);const o=s()._markers;if(!o)return;const a=parseFloat(e.version)>=4.2;o.markerIcon&&C.push(`--micrio-marker-icon: url("${o.markerIcon}")`),o.markerColor&&o.markerColor!=(a?"#ffffff":"#ffbb00")&&C.push("--micrio-marker-color: "+o.markerColor),o.markerSize&&o.markerSize!=(a?"16":"25")&&C.push("--micrio-marker-size: "+(N=Number(o.markerSize))+"px"),t.push(u().viewport.subscribe(z)),s().clusterMarkers&&(t.push(u().state.view.subscribe(W)),t.push(u().data.subscribe((()=>Gt().then(W))))),!u().grid&&(null==(i=s()._markers)?void 0:i.zoomOutAfterClose)&&t.push(u().state.marker.subscribe(P));!(!u().isOmni||!(null==(r=s().omni)?void 0:r.sideLabels)||(null==(n=s()._markers)?void 0:n.noTitles))&&t.push(y.subscribe((t=>{t&&jt(F)?function(){for(var t;X.length;)null==(t=X.shift())||t()}():t||jt(F)||(X.push(u().state.view.subscribe(J)),X.push(_.subscribe(J)),X.push(p.subscribe(J))),Z(F,!t)})))})),()=>{for(var e;t.length;)null==(e=t.shift())||e()}}));const Y=t=>!t.noMarker;let G=j(void 0),H=j(q([]));function J(){Gt().then((()=>{if(!jt(G))return;const t=g.canvas,e=t.element.offsetWidth,i=[];o().forEach((([r,n,s])=>{var o;const l=null==(o=jt(G).querySelector('label[for="'+r.id+'"]'))?void 0:o.getBoundingClientRect();(null==l?void 0:l.width)&&l.width>0&&i.push([n*e,s,(n>=.5?l.left:l.right)-t.viewport.left,l.top+l.height/2-t.viewport.top,a()==r.id])})),Z(H,i,!0)}))}const K=(t,e)=>{var i;return t.i18n?null==(i=t.i18n[e])?void 0:i.title:t.title},Q=tt((()=>k&&rr(x,"$focussed",r)!=u()&&T&&tr(T).indexOf(u())<0)),et=tt((()=>!l()&&g.spaceData?g.spaceData.links.filter((t=>t[0]==u().id||t[1]==u().id)).map((t=>{var e;return{targetId:t[0]==u().id?t[1]:t[0],settings:null==(e=t[2])?void 0:e[u().id]}})):void 0)),it=tt((()=>{var t,e;return jt(Q)?[]:null==(e=null==(t=c())?void 0:t.markers)?void 0:e.filter(Y)})),rt=tt((()=>{var t,e,i;return jt(Q)?null==(t=c())?void 0:t.markers:null==(i=null==(e=c())?void 0:e.markers)?void 0:i.filter((t=>!Y(t)))})),nt=tt((()=>{var t,e;return jt(Q)?[]:null==(e=null==(t=c())?void 0:t.markers)?void 0:e.filter((t=>t.clickableArea))})),st=tt((()=>{var t,e;return!(!(null==(t=jt(it))?void 0:t.length)&&!(null==(e=jt(et))?void 0:e.length))})),ot=tt((()=>o().sort((([,,t],[,,e])=>t>e?1:t<e?-1:0))));var at=dl(),lt=ht(at),ct=t=>{var e=al(),i=ht(e);si(i,21,(()=>jt(H)),ni,((t,e)=>{var i=nl();let r;ae((t=>{Si(i,"x1",jt(e)[0]),Si(i,"y1",jt(e)[1]),Si(i,"x2",jt(e)[2]),Si(i,"y2",jt(e)[3]),r=bi(i,0,"micrio-markers",null,r,t)}),[()=>({hovered:jt(e)[4]})]),Ze(t,i)}));var r=mt(i,2),n=ut(r);si(n,21,(()=>jt(ot).filter((([,t])=>t<.5))),(t=>t[0].id),((t,e)=>{var i=sl(),r=ut(i);let n;var s=ut(r);ae(((t,i)=>{Si(r,"for",jt(e)[0].id),n=bi(r,1,"micrio-markers",null,n,t),Qe(s,i)}),[()=>({hover:a()==jt(e)[0].id}),()=>K(jt(e)[0],d())]),Ue("mouseenter",r,(()=>_.set(jt(e)[0].id))),Ue("mouseleave",r,(()=>_.set(void 0))),Ze(t,i)})),si(mt(n,2),21,(()=>jt(ot).filter((([,t])=>t>=.5))),(t=>t[0].id),((t,e)=>{var i=ol(),r=ut(i);let n;var s=ut(r);ae(((t,i)=>{Si(r,"for",jt(e)[0].id),n=bi(r,1,"micrio-markers",null,n,t),Qe(s,i)}),[()=>({hover:a()==jt(e)[0].id}),()=>K(jt(e)[0],d())]),Ue("mouseenter",r,(()=>_.set(jt(e)[0].id))),Ue("mouseleave",r,(()=>_.set(void 0))),Ze(t,i)})),Xi(r,(t=>Z(G,t)),(()=>jt(G))),Ze(t,e)};ri(lt,(t=>{jt(F)&&jt(ot).length&&!rr(p,"$currentMarker",r)&&t(ct)}));var dt=mt(lt,2),vt=t=>{var e=He();si(ht(e),17,(()=>jt(nt)),(t=>t.id),((t,e)=>{var i=He(),r=ht(i),n=t=>{rl(t,{get embed(){return jt(e).clickableArea},get marker(){return jt(e)}})};ri(r,(t=>{jt(e).clickableArea&&t(n)})),Ze(t,i)})),Ze(t,e)};ri(dt,(t=>{jt(nt)&&t(vt)}));var pt=mt(dt,2),gt=t=>{var e=cl();let i;var r=ut(e),n=t=>{var e=He();si(ht(e),17,(()=>jt(et)),(t=>t.targetId),((t,e)=>{Ra(t,ar({get image(){return u()}},(()=>jt(e))))})),Ze(t,e)};ri(r,(t=>{jt(et)&&jt(et).length&&t(n)}));var s=mt(r,2),o=t=>{var e=ll(),i=ht(e);si(i,19,(()=>jt(it)),(t=>t.id),((t,e,i)=>{const r=tt((()=>jt(O).includes(jt(i))));La(t,{get marker(){return jt(e)},get image(){return u()},coords:U,get overlapped(){return jt(r)}})})),si(mt(i,2),17,(()=>jt(V)),(t=>t.id),((t,e)=>{La(t,{get marker(){return jt(e)},get image(){return u()}})})),Ze(t,e)};ri(s,(t=>{jt(it)&&t(o)})),ae((t=>{ki(e,jt(st)?jt(R):null),i=bi(e,1,"micrio-markers",null,i,t)}),[()=>({"show-titles":M,is360:jt(D),inactive:jt(Q)||jt(D)&&l()})]),Ze(t,e)};ri(pt,(t=>{jt(st)&&t(gt)}));var ft=mt(pt,2),wt=t=>{var e=He();si(ht(e),17,(()=>jt(rt)),(t=>t.id),((t,e)=>{La(t,{get marker(){return jt(e)},get image(){return u()},forceHidden:!0})})),Ze(t,e)};ri(ft,(t=>{jt(rt)&&t(wt)})),Ze(t,at),_e(),n()}var hl=Ge('<svg width="100" height="100" class="micrio-progress-circle"><circle fill="transparent" stroke="#e0e0e0" stroke-width="8px" class="micrio-progress-circle"></circle><circle fill="transparent" stroke="#00d4ee" stroke-width="8px" class="micrio-progress-circle"></circle></svg>');var ml=Ye("<!> <!> <!>",1),vl=Ye("<!> <!> <!>",1),pl=Ye("<!> <!>",1),gl=Ye("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);const fl=!self.createImageBitmap,wl=URL.createObjectURL(new Blob(["let controller = null, prevUri = null;\nself.addEventListener('message', e => {\n\t// Handle abort message\n\tif(e.data == 'abort') return controller && controller.abort();\n\t// Create new AbortController for this fetch\n\tcontroller = new AbortController();\n\t// Fetch the image blob\n\tfetch(e.data.src, { signal: controller.signal })\n\t\t.then(r => r.blob())"+(fl?"\n\t\t// Fallback for older Safari: create Object URL\n\t\t.then(blob => {\n\t\t\t// Revoke previous Object URL to free memory\n\t\t\tURL.revokeObjectURL(prevUri);\n\t\t\t// Post Object URL back\n\t\t\tself.postMessage({src: (prevUri = URL.createObjectURL(blob, {type: e.data.type}))})\n\t\t})":"\n\t\t// If createImageBitmap is supported, use it (preferred)\n\t\t.then(blob => self.createImageBitmap(blob))\n\t\t// Post ImageBitmap back, transferring ownership\n\t\t.then(data => self.postMessage({data:data, src:e.data.src}, [data]))")+"\n\t\t// Handle fetch errors (including abort)\n\t\t.catch(err => self.postMessage({error: e.data.src+': '+err.message, type: err.name}))\n})"],{type:"text/javascript"})),bl=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),yl=[],kl=new Map,xl=new Map,Tl=[],El=new Map;for(let dc=0;dc<bl;dc++){const t=new Worker(wl);t.onmessage=t=>Al(dc,t.data.src,t.data.data,t.data.error,t.data.type),kl.set(dc,t),fl&&xl.set(dc,new Image)}const _l=t=>new Promise(((e,i)=>{Tl.push([t,e,i]),function(){if(!Tl.length)return;let t=0;for(;t<bl&&yl.includes(t);t++);if(t>=bl)return;yl.push(t);const e=Tl.shift();if(!e)return void yl.splice(yl.indexOf(t),1);El.set(t,e);const i=kl.get(t);if(!i)return console.error(`[Micrio Texture] Worker ${t} not found!`),e[2]("Internal error: Worker not found"),void yl.splice(yl.indexOf(t),1);i.postMessage({src:e[0],type:"image/"+e[0].split(".").pop()})}()}));function Al(t,e,i,r,n){const s=El.get(t);if(null!=s)if(El.delete(t),setTimeout((()=>{yl.splice(yl.indexOf(t),1)}),50),r)s[2](r),"AbortError"!=n&&console.error(`[Micrio Texture] Error loading ${s[0]}: ${n} - ${r}`);else if(i)s[1](i);else if(e&&fl){const i=xl.get(t);if(!i)return void s[2]("Internal error: Image element fallback not found");i.onload=()=>{s[1](i)},i.onerror=()=>{s[2](`Failed to load image from Object URL: ${e}`)},i.src=e}else s[2](`Worker ${t} sent invalid message.`),console.error(`[Micrio Texture] Worker ${t} sent invalid message for ${s[0]}`);else console.warn(`[Micrio Texture] Received message from worker ${t} but no matching promise found.`)}function Sl(){return yl.length}function Il(t){const e=[...El.entries()].find((e=>e[1][0]==t));if(null==e)return;const i=kl.get(e[0]);i&&i.postMessage("abort")}const Ml=null==(i=null==(e=document.currentScript)?void 0:e.getAttribute("src"))?void 0:i.toString(),$l=(null==Ml?void 0:Ml.includes(".safe-wasm.js"))?Ml.replace(".safe-wasm.js",".wasm"):"http://localhost:2000/build/optimized.wasm",Pl=Na.ugz?Na.ugz(Na.b64,!0):fetch($l).then((t=>t.arrayBuffer())),Ll=class t{constructor(t){this.micrio=t,this.ready=!1,this.memory=new self.WebAssembly.Memory({initial:100,maximum:100}),this.b=this.memory.buffer,this.i=-1,this.c=-1,this.now=-1,this.raf=-1,this.drawing=!1,this.images=[],this.bareBone=!1,this.baseTiles=[],this.drawnSet=new Set,this.prevDrawnSet=new Set,this.tiles=new Map,this.requests=new Map,this.unsubscribe=[],this.cameras=new Map,this.preventDirectionSet=!1,this._pMatrices={},this.isGallery=!1,this.imports={env:{memory:this.memory,abort:console.error},main:{"console.log":console.log,"console.log2":console.log,"console.log3":console.log,"console.log4":console.log,drawTile:this.drawTile.bind(this),drawQuad:t=>this.micrio.webgl.drawTile(void 0,t),aniAbort:t=>{const e=this.cameras.get(t);e&&(e.aniAbort&&e.aniAbort(),e.aniDoneAdd.length=0,e.aniAbort=e.aniDone=void 0)},aniDone:t=>{var e;const i=this.cameras.get(t);if(i){for(i.aniDone&&i.aniDone();i.aniDoneAdd.length;)null==(e=i.aniDoneAdd.shift())||e();i.aniAbort=i.aniDone=void 0}},getTileOpacity:t=>{var e;return(null==(e=this.tiles.get(t))?void 0:e.opacity)||0},setTileOpacity:(t,e=!1,i=1)=>{const r=this.tiles.get(t);return r?(r.opacity<1&&(r.opacity=e?1:r.loadedAt&&r.loadedAt>0?Math.min(1,(this.now-r.loadedAt)/250)*i:0),r.opacity):0},setMatrix:t=>this.micrio.webgl.gl.uniformMatrix4fv(this.micrio.webgl.pmLoc,!1,this._pMatrices[t]),setViewport:(t,e,i,r)=>this.micrio.webgl.gl.viewport(Math.floor(t),Math.floor(e),Math.ceil(i),Math.ceil(r)),viewSet:t=>{var e;return null==(e=this.cameras.get(t))?void 0:e.viewChanged()},viewportSet:(t,e,i,r,n)=>{const s=this.images.find((e=>e.ptr==t));s&&"camera"in s&&s.viewport.set([e,i,r,n])},setVisible:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)},setVisible2:(t,e)=>{var i;return null==(i=this.images.find((e=>e.ptr==t)))?void 0:i.visible.set(1===e)}}},this.addImage=async(t,e,i=!1,r=1)=>Wr(t.info).then((n=>{if(!n)return;this.images.push(t);const s=t.opts.area??[0,0,1,1],o=t.$settings._360??{};if(t.ptr=i?this.e._addImage(e.ptr,s[0],s[1],s[2],s[3],n.width,n.height,n.tileSize||1024,n.isSingle??!1,n.isVideo??!1,r,o.rotX??0,o.rotY??0,o.rotZ??0,o.scale??1,0):this.e._addChild(e.ptr,s[0],s[1],s[2],s[3],n.width,n.height),!i){this.bindCamera(t),t.$settings.focus&&this.e._setCoo(t.ptr,t.$settings.focus[0],t.$settings.focus[1],0,0,performance.now());const e=this.e._getPMatrix(t.ptr);this._pMatrices[e]=new Float32Array(this.b,e+32,16);const i=t.$info.view;i&&"0,0,1,1"!=i.toString()&&this.e._setView(t.ptr,i[0],i[1],i[2],i[3]),this.e._sendViewport(t.ptr)}t.baseTileIdx=this.e.getNumTiles(this.i)-1,this.getTileEntry(t.baseTileIdx).opacity=1,this.baseTiles.push(t.baseTileIdx)})),this.addChild=(t,e)=>this.addImage(t,e),this.deleteAfterSeconds=Nr.iOS?5:tr(this.micrio.canvas.isMobile)?30:90,this.render=this.render.bind(this),this.draw=this.draw.bind(this),this.unsubscribe.push(t.current.subscribe(this.setCanvas.bind(this)))}static getTextureBuffer(t,e){const i=new Float32Array(12*t*e),r=1/t,n=1/e;for(let s=0,o=0;o<e;o++)for(let e=0;e<t;e++,s+=12)i[s+3]=i[s+7]=i[s+9]=(i[s+1]=i[s+5]=i[s+11]=o*n)+n,i[s+4]=i[s+8]=i[s+10]=(i[s+0]=i[s+2]=i[s+6]=e*r)+r;return i}async load(){if(this.i>=0)return;this.i=0;const e=await Pl;if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new Mr("Invalid WebAssembly binary data",{code:Tr,displayMessage:"Failed to load the image viewer engine. Please try refreshing the page."});const i=await self.WebAssembly.instantiate(e,this.imports);this.e=i.instance.exports,this.i=this.e.constructor(),t.segsX=this.e.segsX.value,t.segsY=this.e.segsY.value,t._textureBuffer360=t.getTextureBuffer(t.segsX,t.segsY),this._vertexBuffer=new Float32Array(this.b,this.e.getVertexBuffer(this.i)+32,18),this._vertexBuffer360=new Float32Array(this.b,this.e.getVertexBuffer360(this.i)+32,18*t.segsX*t.segsY),this.unsubscribe.push(this.micrio.barebone.subscribe((t=>this.e.setBareBone(this.i,this.bareBone=t))))}unbind(){var t;for(this.stop();this.unsubscribe.length;)null==(t=this.unsubscribe.shift())||t();this.requests.forEach((t=>Il(t))),this.requests.clear();for(const[e,i]of this.tiles.entries())i.timeoutId&&clearTimeout(i.timeoutId),this.deleteTile(e);this.tiles.clear(),this.i>0&&this.e.reset(this.i)}getPtr(){return this.i}addCanvas(t){var e,i,r,n,s,o,a,l,c,d,u;const h=t.$info;if(!h)return;if(t.error)return void this.micrio.loading.set(!1);if(!(t.noImage||h.width&&h.height))throw"Invalid Micrio image size";const m=t.$settings;this.isGallery=!!h.gallery||t.isOmni,(null==(e=m.gallery)?void 0:e.archive)&&this.e.setHasArchive(this.i,!0,m.gallery.archiveLayerOffset??0),h.version&&parseFloat(h.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0),h.is360&&(m.limitToCoverScale=!1);const v=!!m.limitToCoverScale,p=v||"cover"==m.initType;t.noImage&&this.micrio.loading.set(!1);const g=[.5,.5],f=m.focus,w=!!h.spacesId;f&&(isNaN(f[0])||null===f[0]||(g[0]=f[0]),isNaN(f[1])||null===f[1]||(g[1]=f[1])),h.is360&&(t.camera.trueNorth=(null==(i=m._360)?void 0:i.trueNorth)??.5);const b=null==(r=m._360)?void 0:r.video,y=h.is360&&b&&(b.src||"video"in b&&b.video),k=!!this.isGallery&&("switch"==(null==(n=m.gallery)?void 0:n.type)||"omni"==(null==(s=m.gallery)?void 0:s.type)||"swipe-full"==(null==(o=m.gallery)?void 0:o.type)),x=(null==(l=null==(a=m.omni)?void 0:a.layers)?void 0:l.length)??1;m.omni&&(m.omni.layerStartIndex=Math.min(x-1,(null==(c=m.omni)?void 0:c.layerStartIndex)??0)),t.ptr=this.e._constructor(this.i,h.width,h.height,h.tileSize??1024,h.is360??!1,t.noImage,!(!h.isSingle&&!y),t.opacity,m.freeMove??!1,v,p,m.zoomLimit||1,!1!==m.zoomLimitDPRFix?this.micrio.canvas.getRatio(t.$settings):1,m.camspeed??1,t.camera.trueNorth,k,!!(null==(d=m.gallery)?void 0:d.isSpreads)&&"swipe"==m.gallery.type,t.isOmni,m.pinchZoomOutLimit??!1,x,(null==(u=m.omni)?void 0:u.layerStartIndex)??0),this.bindCamera(t),t.opts.area&&t.camera.setArea(t.opts.area,{direct:!0,noDispatch:!0,noRender:!0}),(null==m?void 0:m.restrict)&&t.camera.setLimit(m.restrict),(null==m?void 0:m.crossfadeDuration)&&this.e.setCrossfadeDuration(this.i,m.crossfadeDuration),(null==m?void 0:m.embedFadeDuration)&&this.e.setEmbedFadeDuration(this.i,m.embedFadeDuration),void 0!==(null==m?void 0:m.dragElasticity)&&this.e.setDragElasticity(this.i,m.dragElasticity),(null==m?void 0:m.skipBaseLevels)&&this.e.setSkipBaseLevels(this.i,m.skipBaseLevels),(null==m?void 0:m.omni)&&t.camera.setOmniSettings(),this.micrio.hasAttribute("data-limited")&&this.e._setLimited(t.ptr,!0),this.images.push(t),this.e._sendViewport(t.ptr);const T=this.e.getNumTiles(this.i);if(T>0){const t=T-1;this.getTileEntry(t).opacity=1,this.baseTiles.push(t)}const E=this.e._getPMatrix(t.ptr);this._pMatrices[E]=new Float32Array(this.b,E+32,16);const _=tr(t.state.view)||m.view;!_||0==_[0]&&0==_[1]&&1==_[2]&&1==_[3]?!w&&h.is360||!g||"0.5,0.5"==g.toString()||(this.e._setCoo(t.ptr,g[0],g[1],0,0,performance.now()),m.focus=void 0):this.e._setView(t.ptr,_[0]+_[2]/2,_[1]+_[3]/2,_[2],_[3],!1,!1,!1),t.video.subscribe((t=>t&&t.addEventListener("play",this.render))),t.noImage&&t.visible.set(!0),this.setCanvas(t)}bindCamera(t){this.cameras.set(t.ptr,t.camera),t.camera.assign(this.e,new Float64Array(this.b,this.e._getView(t.ptr)+32,4),new Float64Array(this.b,this.e._getXY(t.ptr,0,0)+32,5),new Float64Array(this.b,this.e._getCoo(t.ptr,0,0)+32,5),new Float32Array(this.b,this.e._getMatrix(t.ptr)+32,16))}setCanvas(t){var e,i,r;if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)Wr(t.info).then((e=>{e&&this.micrio.$current&&(e.isIIIF||t.opts.secondaryTo||e.id==this.micrio.$current.id)&&(this.addCanvas(t),t.embeds.length&&t.embeds.forEach((e=>this.addEmbed(e,t))))}));else if(this.c!=t.ptr){const n=t.is360&&this.c>=0?this.e._getYaw(this.c,!0):0,s=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&n&&s&&this.e._setDirection(this.c,n+(.5-((null==(i=null==(e=t.$settings)?void 0:e._360)?void 0:i.trueNorth)||0))*Math.PI*2,s,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),(null==(r=t.$settings.omni)?void 0:r.layerStartIndex)&&t.state.layer.set(t.$settings.omni.layerStartIndex),this.preventDirectionSet=!1,this.ready=!0,this.render()}}removeCanvas(t){if(t.ptr<0)throw"Canvas is not placed yet";this.e._remove(t.ptr),this.render()}render(){this.raf<0&&(this.raf=this.micrio.webgl.display.requestAnimationFrame(this.draw))}draw(t=performance.now()){var e,i;this.micrio.isConnected&&this.micrio.$current&&(this.raf=-1,this.drawing=!1,this.now=t,(1==this.e.shouldDraw(this.i,t)||this.micrio.keepRendering||this.micrio.events.isNavigating||!1===(null==(i=null==(e=this.micrio._current)?void 0:e._video)?void 0:i.paused))&&this.render(),this.isGallery&&this.drawStart(),this.drawnSet.clear(),this.e.draw(this.i),this.micrio.events.dispatch("draw"),this.cleanup(),this.micrio.webgl.drawEnd())}stop(){this.raf<0||(this.micrio.webgl.display.cancelAnimationFrame(this.raf),this.raf=-1)}getTileEntry(t){let e=this.tiles.get(t);return e||(e={loadState:0,opacity:0},this.tiles.set(t,e)),e}drawTile(t,e,i,r,n,s,o,a){this.drawnSet.add(e);const l=this.getTileEntry(e);l.deleteAt=void 0;const c=Sl(),d=this.images[t],u="camera"in d&&d.isVideo,h="camera"in d&&d.is360,m="camera"in d?d:d.image,v="frame"in d?d.frame:void 0;if(0===l.loadState&&c<bl){if(this.bareBone?c>2&&o:a&&o&&c>0)return!1;if(u&&!h)l.loadState=2,l.texture=this.micrio.webgl.getTexture();else{l.loadState=1;const t=m.getTileSrc(i,r,n,v);if(!t)return l.loadState=0,!1;this.getTexture(e,t,o,{noSmoothing:"$info"in d&&d.$settings.noSmoothing})}}else if(l.loadState>=2){if(this.drawing||this.drawStart(),l.texture){if(u){if(!m._video||!m._video.dataset.playing)return!1;this.micrio.webgl.updateTexture(l.texture,m._video)}this.micrio.webgl.drawTile(l.texture,s,h)}return 2===l.loadState&&(l.loadState=3,l.loadedAt=this.now),!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,r={}){const n=this.tiles.get(t);if((null==n?void 0:n.texture)||this.requests.has(t)||!r.force&&Sl()>=bl)return;const s=Ja.db.has(e);s||this.micrio.loading.set(!0),this.requests.set(t,e),(s?Ja.getImage(e):_l(e)).then((e=>this.gotTexture(t,e,i,r.noSmoothing))).catch((()=>this.deleteRequest(t)))}gotTexture(t,e,i,r){const n=this.getTileEntry(t);n.texture=this.micrio.webgl.getTexture(e,n.texture,r),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),n.loadState=2,n.timeoutId=setTimeout((()=>{this.deleteRequest(t)}),i?150:50)}deleteRequest(t){this.requests.delete(t);const e=this.tiles.get(t);(null==e?void 0:e.timeoutId)&&(clearTimeout(e.timeoutId),e.timeoutId=void 0),this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){const e=this.tiles.get(t);e&&(e.texture&&this.micrio.webgl.gl.deleteTexture(e.texture),e.timeoutId&&clearTimeout(e.timeoutId),this.tiles.delete(t))}cleanup(){const t=performance.now();for(const e of this.prevDrawnSet){if(this.drawnSet.has(e))continue;if(this.baseTiles.includes(e))continue;const i=this.tiles.get(e);if(i&&0!==i.loadState)switch(i.opacity=0,i.loadState){case 1:const r=this.requests.get(e);r&&Il(r),i.loadState=0;break;case 2:this.requests.has(e)&&this.deleteRequest(e),this.deleteTile(e);break;case 3:i.deleteAt||(i.deleteAt=t)}}this.prevDrawnSet=new Set(this.drawnSet);for(const[e,i]of this.tiles.entries())i.deleteAt&&(t-i.deleteAt)/1e3>this.deleteAfterSeconds&&this.deleteTile(e)}resize(t){this.e.resize(this.i,t.width,t.height,t.left,t.top,t.ratio,t.scale,t.portrait),this.ready&&(this.stop(),this.draw())}addEmbed(t,e,i={}){if("camera"in t&&i.asImage)return this.addImage(t,e,!0,i.opacity??1);{const r="$info"in t?t.$info:e.$info;if(!r)return;this.images.push(t);const n=t.opts.area??[0,0,1,1],s=t instanceof Qa?t.$settings._360??{}:{};t.ptr=this.e._addImage(e.ptr,n[0],n[1],n[2],n[3],r.width,r.height,r.tileSize||1024,r.isSingle??!1,r.isVideo??!1,i.opacity??1,s.rotX??0,s.rotY??0,s.rotZ??0,s.scale??1,i.fromScale??0),t.baseTileIdx=this.e.getNumTiles(this.i)-1,this.getTileEntry(t.baseTileIdx).opacity=1,this.baseTiles.push(t.baseTileIdx)}}setActiveImage(t,e,i){this.e._setActiveImage(t,e,i??0)}setActiveLayer(t,e){this.e._setActiveLayer(t,e)}fadeImage(t,e,i=!1){this.cameras.has(t)?this.e._fadeTo(t,e,i):this.e._fadeImage(t,e,i),this.render()}setFocus(t,e,i=!1){this.e._setFocus(t,e[0],e[1],e[2],e[3],i)}};Ll._textureBuffer=Ll.getTextureBuffer(1,1);let Cl=Ll;const Rl=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);class Dl{constructor(t,e,i){if(this.gl=t,this.program=t.createProgram(),e.webgl.getShader(this.program,t.VERTEX_SHADER,"\nattribute vec2 a_position; // Vertex position (-1 to 1)\nattribute vec2 a_texCoord; // Texture coordinate (0 to 1)\n\nvarying vec2 v_texCoord; // Pass texCoord to fragment shader\n\nvoid main() {\n\tv_texCoord = a_texCoord; // Pass through texture coordinate\n\tgl_Position = vec4(a_position, 0.0, 1.0); // Set clip space position\n}"),e.webgl.getShader(this.program,t.FRAGMENT_SHADER,i),t.linkProgram(this.program),t.getProgramParameter(this.program,t.LINK_STATUS)||console.error("Postprocess shader link error:",t.getProgramInfoLog(this.program)),t.useProgram(this.program),this.ppPositionLoc=t.getAttribLocation(this.program,"a_position"),this.ppTexCoordLoc=t.getAttribLocation(this.program,"a_texCoord"),this.ppTimeLoc=t.getUniformLocation(this.program,"u_time"),this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),this.frameBuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture,0),t.checkFramebufferStatus(t.FRAMEBUFFER)!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete");t.bindFramebuffer(t.FRAMEBUFFER,null),this.quad=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.bufferData(t.ARRAY_BUFFER,Rl,t.STATIC_DRAW)}render(){const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null),t.useProgram(this.program),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.enableVertexAttribArray(this.ppPositionLoc),t.vertexAttribPointer(this.ppPositionLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,0),t.enableVertexAttribArray(this.ppTexCoordLoc),t.vertexAttribPointer(this.ppTexCoordLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,2*Float32Array.BYTES_PER_ELEMENT),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.texture),t.uniform1f(this.ppTimeLoc,performance.now()/1e3),t.drawArrays(t.TRIANGLE_STRIP,0,4)}resize(){const t=this.gl;t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null)}dispose(){const t=this.gl;t.deleteFramebuffer(this.frameBuffer),t.deleteTexture(this.texture),t.deleteBuffer(this.quad),t.deleteProgram(this.program)}}const Fl=/firefox/i.test(navigator.userAgent),zl=`\nprecision mediump float; // Use medium precision for fragment calculations\n\nvarying highp vec2 vTextureCoord; // Received texture coordinate from vertex shader\n\nuniform sampler2D uSampler; // The tile texture\nuniform float opacity; // Tile opacity (for fading)\nuniform int noTexture; // Flag indicating if texture is missing/not loaded\n\nvoid main() {\n\tif(noTexture==1) { // If texture is missing\n\t\tgl_FragColor = vec4(.1,.1,.1,.1); // Draw a placeholder color (dark semi-transparent gray)\n\t} else {\n\t${Fl?"\n\t\t// Firefox premultiplied alpha workaround\n\t\tvec4 textureColor = texture2D(uSampler, vTextureCoord);\n\t\t// Manually apply opacity to RGB based on new alpha\n\t\tfloat newAlpha = min(1., textureColor.a * opacity);\n\t\tgl_FragColor = vec4(textureColor.rgb * newAlpha, newAlpha);":"\n\t\t// Standard alpha blending (premultiplied alpha assumed in blendFunc)\n\t\tgl_FragColor = texture2D(uSampler, vTextureCoord) * opacity;"}\n\t\t// Debug: Draw red instead of texture\n\t\t//gl_FragColor = vec4(1.,0.,0.,1.);\n\t}\n}`,Ol=256;class Nl{constructor(t){this.micrio=t,this.display=self,this.txtAttr=-1,this.wmTexture=null,this.wmUrl=null,this.wmVerts=new Float32Array([-1,-1,0,1,-1,0,-1,1,0,-1,1,0,1,-1,0,1,1,0]),this.wmUvs=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0]),this.wmMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.wmOpacity=.075,this.posAttr=-1,this.was360=!1}init(){var t;const e="WebGL2RenderingContext"in window,i=this.micrio.canvas.element.getContext(e?"webgl2":"webgl",{alpha:!0,preserveDrawingBuffer:this.micrio.hasAttribute("data-preserve-drawing-buffer"),stencil:!1,antialias:!1,depth:!1,desynchronized:!1});if(e?!(i instanceof window.WebGL2RenderingContext):!(i instanceof window.WebGLRenderingContext))throw new Mr("WebGL context creation failed",{code:pr,displayMessage:"Your browser does not support WebGL, which is required to view this content. Please try a different browser."});this.gl=i;const r=null==(t=this.micrio.$current)?void 0:t.$settings.postProcessingFragmentShader;r&&(this.postpocessor=new Dl(i,this.micrio,r),this.micrio.keepRendering=!0);const n=i.createProgram();if(!(n instanceof WebGLProgram))throw new Mr("Failed to create WebGL program",{code:fr,displayMessage:"There was a problem initializing the graphics. Please try refreshing the page."});this.program=n,this.getShader(this.program,i.VERTEX_SHADER,"\nuniform mat4 GLMatrix; // Combined ModelViewProjection matrix from Wasm\n\nattribute vec3 pos; // Vertex position (from Wasm buffer)\nattribute vec2 aTextureCoord; // Texture coordinate (from static buffer)\n\nvarying highp vec2 vTextureCoord; // Pass texture coordinate to fragment shader\n\nvoid main()\n{\n\tgl_Position = GLMatrix * vec4(pos, 1.0); // Calculate clip space position\n\tvTextureCoord = aTextureCoord; // Pass through texture coordinate\n}"),this.getShader(this.program,i.FRAGMENT_SHADER,zl),i.linkProgram(this.program),i.getProgramParameter(this.program,i.LINK_STATUS)||console.error("Main shader link error:",i.getProgramInfoLog(this.program)),i.useProgram(this.program),i.blendFunc(i.ONE,i.ONE_MINUS_SRC_ALPHA),i.enable(i.BLEND),i.disable(i.DEPTH_TEST),i.clearColor(0,0,0,0);const s=i.getUniformLocation(this.program,"opacity");if(!s)throw new Mr("Failed to bind WebGL opacity uniform",{code:fr});this.opaLoc=s;const o=i.getUniformLocation(this.program,"GLMatrix");if(!o)throw new Mr("Failed to bind WebGL matrix uniform",{code:fr});this.pmLoc=o;const a=i.getUniformLocation(this.program,"noTexture");if(!a)throw new Mr("Failed to bind WebGL texture uniform",{code:fr});this.noTxtLoc=a,this.txtAttr=i.getAttribLocation(this.program,"aTextureCoord");const l=i.createBuffer();if(!l)throw new Mr("Failed to create WebGL texture buffer",{code:wr,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.txtBuffer=l,i.bindBuffer(i.ARRAY_BUFFER,this.txtBuffer),i.bufferData(i.ARRAY_BUFFER,Cl._textureBuffer,i.STATIC_DRAW);const c=i.createBuffer();if(!c)throw new Mr("Failed to create WebGL watermark buffer",{code:wr,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.wmTxtBuffer=c;const d=i.createBuffer();if(!d)throw new Mr("Failed to create WebGL geometry buffer",{code:wr,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.geomBuffer=d,this.posAttr=i.getAttribLocation(this.program,"pos"),this.linkBuffers(),i.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}linkBuffers(){const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.micrio.wasm._vertexBuffer,t.DYNAMIC_DRAW),t.enableVertexAttribArray(this.txtAttr),t.bindBuffer(t.ARRAY_BUFFER,this.txtBuffer),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(this.posAttr),t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0)}dispose(t=!1){var e;const i=this.gl;if(i){if(i.bindBuffer(i.ARRAY_BUFFER,null),i.bindTexture(i.TEXTURE_2D,null),i.deleteBuffer(this.txtBuffer),i.deleteBuffer(this.geomBuffer),i.deleteBuffer(this.wmTxtBuffer),i.deleteProgram(this.program),null==(e=this.postpocessor)||e.dispose(),this.wmTexture&&i.deleteTexture(this.wmTexture),t){const t=i.getExtension("WEBGL_lose_context");t instanceof Object&&t.loseContext instanceof Function&&t.loseContext()}this.gl=null}}getShader(t,e,i){const r=this.gl.createShader(e);if(!r)throw new Error(`Could not create WebGL shader (type: ${e})`);if(this.gl.shaderSource(r,i),this.gl.compileShader(r),!this.gl.getShaderParameter(r,this.gl.COMPILE_STATUS))throw console.error("Error compiling shader",this.gl.getShaderInfoLog(r)),this.gl.deleteProgram(t),new Error(`Shader compilation failed: ${this.gl.getShaderInfoLog(r)}`);this.gl.attachShader(t,r),this.gl.deleteShader(r)}getTexture(t,e,i){const r=this.gl,n=e??r.createTexture();if(!n)throw new Error("Could not create WebGL texture");return r.bindTexture(r.TEXTURE_2D,n),t&&r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,i?r.NEAREST:r.LINEAR),n}updateTexture(t,e){const i=this.gl;i.bindTexture(i.TEXTURE_2D,t),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e),i.bindTexture(i.TEXTURE_2D,null)}drawStart(){const t=this.gl;this.postpocessor&&t.bindFramebuffer(t.FRAMEBUFFER,this.postpocessor.frameBuffer),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}drawEnd(){this.postpocessor&&(this.postpocessor.render(),this.gl.useProgram(this.program),this.linkBuffers()),this.wmTexture&&this.drawWatermark()}drawTile(t,e=1,i=!1){this.gl.uniform1i(this.noTxtLoc,t?0:1),this.gl.uniform1f(this.opaLoc,e),t&&(this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,t));const r=i?6*Cl.segsX*Cl.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?Cl._textureBuffer360:Cl._textureBuffer,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.geomBuffer),this.was360=i),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?this.micrio.wasm._vertexBuffer360:this.micrio.wasm._vertexBuffer,this.gl.STATIC_DRAW),this.gl.drawArrays(this.gl.TRIANGLES,0,r)}loadWatermark(t,e){if(t===this.wmUrl)return;this.wmUrl=t;const i=new Image;e&&(this.wmOpacity=e),i.crossOrigin="anonymous",i.src=t,i.onload=()=>{const t=document.createElement("canvas");t.width=Ol,t.height=Ol;const e=t.getContext("2d");if(!e)return;const r=Math.min(96/i.width,64/i.height),n=i.width*r,s=i.height*r;e.drawImage(i,(Ol-n)/2,(Ol-s)/2,n,s),this.wmTexture&&this.gl.deleteTexture(this.wmTexture),this.wmTexture=this.getTexture(t);const o=this.gl;o.bindTexture(o.TEXTURE_2D,this.wmTexture),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_S,o.REPEAT),o.texParameteri(o.TEXTURE_2D,o.TEXTURE_WRAP_T,o.REPEAT),o.bindTexture(o.TEXTURE_2D,null),this.micrio.wasm.render()}}drawWatermark(){const t=this.gl;if(!this.wmTexture)return;t.useProgram(this.program),t.blendFunc(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA),t.uniformMatrix4fv(this.pmLoc,!1,this.wmMatrix),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.wmTexture),t.uniform1i(this.noTxtLoc,0),t.uniform1f(this.opaLoc,this.wmOpacity);const e=t.drawingBufferWidth/Ol,i=t.drawingBufferHeight/Ol,r=this.wmUvs;r[1]=i,r[2]=e,r[3]=i,r[8]=e,r[9]=i,r[10]=e,t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmVerts,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,this.wmTxtBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmUvs,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.linkBuffers(),this.was360=!1}}const Vl={passive:!0},Ul={passive:!0,capture:!0},Bl={passive:!1};function Wl(t){t.stopPropagation(),t.preventDefault()}class ql{constructor(t){this.ctx=t,this.hooked=!1,this.start=this.start.bind(this),this.move=this.move.bind(this),this.stop=this.stop.bind(this)}hook(){this.hooked||(this.hooked=!0,this.ctx.micrio.addEventListener("dragstart",Wl),this.ctx.micrio.addEventListener("pointerdown",this.start,Vl),this.ctx.micrio.setAttribute("data-hooked",""))}unhook(){this.hooked&&(this.hooked=!1,this.ctx.micrio.removeEventListener("pointerdown",this.start,Vl),this.ctx.micrio.removeEventListener("dragstart",Wl),this.ctx.micrio.removeAttribute("data-hooked"))}start(t,e=!1){var i;if(0!=t.button||"touch"==t.pointerType&&this.ctx.isTwoFingerPan())return;if(!(e||t.target==this.ctx.el||t.target instanceof Element&&t.target.closest("[data-scroll-through]")))return;if((null==(i=this.ctx.micrio.$current)?void 0:i.isOmni)&&t.shiftKey)return;if(this.ctx.isPinching())return;if(this.ctx.isPanning())return void(t instanceof TouchEvent&&t.touches.length>1&&this.stop());const r=this.ctx.getImage({x:t.clientX,y:t.clientY});r&&(this.ctx.setPanning(!0),this.ctx.vars.drag.start=[t.clientX,t.clientY,performance.now()],this.ctx.micrio.addEventListener("pointermove",this.move,Vl),this.ctx.micrio.addEventListener("pointerup",this.stop,Vl),this.ctx.micrio.setAttribute("data-panning",""),this.ctx.micrio.wasm.e._panStart(r.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("panstart"))}move(t){var e;const i=t.clientX,r=t.clientY,n=$r(this.ctx.vars.drag.start[0]-t.clientX,this.ctx.vars.drag.start[1]-t.clientY);!this.ctx.capturedPointerId&&n>10&&(this.ctx.setCapturedPointerId(t.pointerId),this.ctx.micrio.setPointerCapture(t.pointerId)),this.ctx.vars.drag.prev&&(null==(e=this.ctx.getImage({x:i,y:r}))||e.camera.pan(this.ctx.vars.drag.prev[0]-i,this.ctx.vars.drag.prev[1]-r)),this.ctx.vars.drag.prev=[i,r]}stop(t,e=!1,i=!1){if(this.ctx.isPanning()){if(this.ctx.setPanning(!1),this.ctx.vars.drag.prev=void 0,this.ctx.micrio.removeEventListener("pointermove",this.move,Vl),this.ctx.micrio.removeEventListener("pointerup",this.stop,Vl),this.ctx.capturedPointerId&&this.ctx.micrio.releasePointerCapture(this.ctx.capturedPointerId),this.ctx.setCapturedPointerId(void 0),this.ctx.micrio.removeAttribute("data-panning"),t&&0==e){const e=this.ctx.getImage({x:t.clientX,y:t.clientY});e&&(this.ctx.micrio.wasm.e._panStop(e.ptr),this.ctx.micrio.wasm.render())}i||this.ctx.dispatch("panend",t?{duration:performance.now()-this.ctx.vars.drag.start[2],movedX:t.clientX-this.ctx.vars.drag.start[0],movedY:t.clientY-this.ctx.vars.drag.start[1]}:void 0)}}}class Xl{constructor(t,e){this.ctx=t,this.dragHandler=e,this.start=this.start.bind(this),this.move=this.move.bind(this),this.stop=this.stop.bind(this)}hook(){Nr.iOS&&this.ctx.hasTouch&&this.ctx.el.addEventListener("touchstart",this.start,Vl)}unhook(){Nr.iOS&&this.ctx.hasTouch&&this.ctx.el.removeEventListener("touchstart",this.start,Vl),self.removeEventListener("touchmove",this.move,Ul),self.removeEventListener("touchend",this.stop,Ul)}start(t){if(!(Nr.hasTouch&&t instanceof TouchEvent))return;if(this.ctx.isTwoFingerPan()&&t.touches.length<2)return;if(this.ctx.isPinching()||2!=t.touches.length)return void this.stop(t);t.stopPropagation(),this.ctx.vars.pinch.wasPanning=this.ctx.isPanning(),this.dragHandler.stop(void 0,!1,!0);const e=t.touches;this.ctx.setPinching(!0),self.addEventListener("touchmove",this.move,Ul),self.addEventListener("touchend",this.stop,Ul),this.ctx.micrio.setAttribute("data-pinching",""),this.ctx.vars.pinch.image=this.ctx.getImage({x:e[0].clientX,y:e[0].clientY}),this.ctx.vars.pinch.sDst=$r(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY),this.ctx.setPinchFactor(void 0),this.ctx.vars.pinch.image&&this.ctx.micrio.wasm.e._pinchStart(this.ctx.vars.pinch.image.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("pinchstart"),this.ctx.isTwoFingerPan()&&this.ctx.dispatch("panstart")}move(t){if(!(Nr.hasTouch&&t instanceof TouchEvent))return;const e=t.touches;if((null==e?void 0:e.length)<2)return;const i={x:e[0].clientX,y:e[0].clientY},r={x:e[1].clientX,y:e[1].clientY},n=this.ctx.vars.pinch,s=n.image;if(s){if((null==s?void 0:s.opts.secondaryTo)&&s.opts.isPassive&&s.opts.area){const t=s.opts.area[0]*this.ctx.micrio.offsetWidth,e=s.opts.area[1]*this.ctx.micrio.offsetHeight;i.x-=t,r.x-=t,i.y-=e,r.y-=e}this.ctx.setPinchFactor($r(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY)/n.sDst),this.ctx.micrio.wasm.e._pinch(s.ptr,i.x,i.y,r.x,r.y)}}stop(t){if(!this.ctx.isPinching())return;this.ctx.setPinching(!1),self.removeEventListener("touchmove",this.move,Ul),self.removeEventListener("touchend",this.stop,Ul),this.ctx.micrio.removeAttribute("data-pinching");const e=this.ctx.vars.pinch.image;e&&(this.ctx.micrio.wasm.e._pinchStop(e.ptr,performance.now()),this.ctx.micrio.wasm.render()),this.ctx.vars.pinch.image=void 0,this.ctx.setPinchFactor(void 0),this.ctx.dispatch("pinchend"),this.ctx.isTwoFingerPan()&&!this.ctx.vars.pinch.wasPanning&&this.ctx.dispatch("panend"),t instanceof TouchEvent&&1==t.touches.length&&this.dragHandler.start(t,!0)}}class Yl{constructor(t,e){this.ctx=t,this.dragHandler=e,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this)}hook(){this.ctx.el.addEventListener("pointerdown",this.start,Vl),self.addEventListener("pointerup",this.end,Vl),self.addEventListener("pointercancel",this.end,Vl)}unhook(){this.ctx.el.removeEventListener("pointerdown",this.start,Vl),self.removeEventListener("pointerup",this.end,Vl),self.removeEventListener("pointercancel",this.end,Vl),self.removeEventListener("pointermove",this.move,Ul),this.ctx.activePointers.clear()}start(t){if("touch"===t.pointerType&&(this.ctx.activePointers.set(t.pointerId,{x:t.clientX,y:t.clientY}),2===this.ctx.activePointers.size&&!this.ctx.isPinching())){this.ctx.vars.pinch.wasPanning=this.ctx.isPanning(),this.dragHandler.stop(void 0,!1,!0),this.ctx.setPinching(!0),self.addEventListener("pointermove",this.move,Ul),this.ctx.micrio.setAttribute("data-pinching","");const t=Array.from(this.ctx.activePointers.values()),e=t[0],i=t[1];this.ctx.vars.pinch.image=this.ctx.getImage({x:e.x,y:e.y}),this.ctx.vars.pinch.sDst=$r(e.x-i.x,e.y-i.y),this.ctx.setPinchFactor(void 0),this.ctx.vars.pinch.image&&this.ctx.micrio.wasm.e._pinchStart(this.ctx.vars.pinch.image.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("pinchstart"),this.ctx.isTwoFingerPan()&&this.ctx.dispatch("panstart")}}move(t){if("touch"!==t.pointerType)return;if(!this.ctx.activePointers.has(t.pointerId))return;if(this.ctx.activePointers.set(t.pointerId,{x:t.clientX,y:t.clientY}),!this.ctx.isPinching()||2!==this.ctx.activePointers.size)return;const e=Array.from(this.ctx.activePointers.values()),i=e[0],r=e[1],n=this.ctx.vars.pinch,s=n.image;if(!s)return;const o={x:i.x,y:i.y},a={x:r.x,y:r.y};if((null==s?void 0:s.opts.secondaryTo)&&s.opts.isPassive&&s.opts.area){const t=s.opts.area[0]*this.ctx.micrio.offsetWidth,e=s.opts.area[1]*this.ctx.micrio.offsetHeight;o.x-=t,a.x-=t,o.y-=e,a.y-=e}this.ctx.setPinchFactor($r(i.x-r.x,i.y-r.y)/n.sDst),this.ctx.micrio.wasm.e._pinch(s.ptr,o.x,o.y,a.x,a.y)}end(t){if("touch"===t.pointerType&&(this.ctx.activePointers.delete(t.pointerId),this.ctx.isPinching()&&this.ctx.activePointers.size<2)){this.ctx.setPinching(!1),self.removeEventListener("pointermove",this.move,Ul),this.ctx.micrio.removeAttribute("data-pinching");const t=this.ctx.vars.pinch.image;if(t&&(this.ctx.micrio.wasm.e._pinchStop(t.ptr,performance.now()),this.ctx.micrio.wasm.render()),this.ctx.vars.pinch.image=void 0,this.ctx.setPinchFactor(void 0),this.ctx.dispatch("pinchend"),this.ctx.isTwoFingerPan()&&!this.ctx.vars.pinch.wasPanning&&this.ctx.dispatch("panend"),1===this.ctx.activePointers.size){const t=Array.from(this.ctx.activePointers.entries())[0],e={button:0,pointerType:"touch",target:this.ctx.el,clientX:t[1].x,clientY:t[1].y,pointerId:t[0]};this.dragHandler.start(e,!0)}}}}class Gl{constructor(t){this.ctx=t,this.handle=this.handle.bind(this)}hook(){Nr.OSX&&(this.ctx.micrio.addEventListener("gesturestart",this.handle,Bl),this.ctx.micrio.addEventListener("gesturechange",this.handle,Bl),this.ctx.micrio.addEventListener("gestureend",this.handle,Bl))}unhook(){Nr.OSX&&(this.ctx.micrio.removeEventListener("gesturestart",this.handle,Bl),this.ctx.micrio.removeEventListener("gesturechange",this.handle,Bl),this.ctx.micrio.removeEventListener("gestureend",this.handle,Bl))}getGestureEvent(t){if("scale"in t&&"number"==typeof t.scale){const e=t;return{scale:e.scale,clientX:e.clientX,clientY:e.clientY}}return null}handle(t){var e;const i=this.getGestureEvent(t);if(!i||1===i.scale)return;const r=this.ctx.pScale-i.scale;this.ctx.setPScale(i.scale),t.stopPropagation(),t.preventDefault(),"gesturechange"==t.type&&(null==(e=this.ctx.getImage({x:i.clientX,y:i.clientY}))||e.camera.zoom(r*this.ctx.micrio.canvas.viewport.height,0,i.clientX,i.clientY))}}class jl{constructor(t){this.ctx=t,this.hooked=!1,this.wheelEndTo=-1,this.handle=this.handle.bind(this),this.end=this.end.bind(this)}hook(){this.hooked||(this.ctx.micrio.addEventListener("wheel",this.handle,Bl),this.hooked=!0)}unhook(){this.ctx.micrio.removeEventListener("wheel",this.handle,Bl),this.hooked=!1}handle(t,e=!1,i=0){var r;if(!(t instanceof WheelEvent))return;if(this.ctx.isControlZoom()&&!t.ctrlKey)return;if(!e&&t.target instanceof Element&&t.target!=this.ctx.el&&!t.target.classList.contains("marker")&&!t.target.closest("[data-scroll-through]"))return;let n=t.deltaY;t.ctrlKey&&this.ctx.setHasUsedCtrl(!0);const s=this.ctx.isControlZoom()&&10*n%1==0,o=this.ctx.hasUsedCtrl&&!s,a=Nr.firefox||t.ctrlKey||!o;if(this.ctx.isTwoFingerPan()&&(null==(r=this.ctx.micrio.$current)?void 0:r.camera.isZoomedOut()))return;t.stopPropagation(),t.preventDefault(),(Nr.OSX||o)&&t.ctrlKey&&(n*=10);const l={x:t.clientX,y:t.clientY},c=this.ctx.getImage(l);if(c){if(a){const t=this.ctx.micrio.canvas.viewport;let e=0;const r=this.ctx.micrio.getBoundingClientRect();c.camera.zoom(1*n/Math.sqrt(t.scale),0,l.x-i-r.left,l.y-r.top-e)}else c.camera.pan(t.deltaX,t.deltaY);this.ctx.setWheeling(!0),clearTimeout(this.wheelEndTo),this.wheelEndTo=setTimeout(this.end,50)}}end(){this.ctx.setWheeling(!1)}}class Hl{constructor(t){this.ctx=t,this.handle=this.handle.bind(this)}hook(){document.addEventListener("keydown",this.handle)}unhook(){document.removeEventListener("keydown",this.handle)}handle(t){var e;if(this.ctx.isPanning()||this.ctx.isPinching()||!(null==(e=this.ctx.micrio.$current)?void 0:e.camera))return;const i=this.ctx.micrio.$current.camera,r=this.ctx.micrio.offsetWidth/2,n=this.ctx.micrio.offsetHeight/2;let s=0,o=0;switch(t.key){case"ArrowUp":o-=n;break;case"ArrowDown":o+=n;break;case"ArrowLeft":s-=r;break;case"ArrowRight":s+=r;break;case"+":case"=":i.zoom(-200,150).catch((()=>{}));break;case"-":case"_":i.zoom(200,150).catch((()=>{}));break;default:return}t.preventDefault(),t.stopPropagation(),0==s&&0==o||i.pan(s,o,150)}}class Zl{constructor(t){this.ctx=t,this.tap=this.tap.bind(this),this.click=this.click.bind(this)}hookTap(){this.ctx.el.addEventListener("touchstart",this.tap)}unhookTap(){this.ctx.el.removeEventListener("touchstart",this.tap)}hookClick(){this.ctx.el.addEventListener("dblclick",this.click)}unhookClick(){this.ctx.el.removeEventListener("dblclick",this.click)}tap(t){if(!(Nr.hasTouch&&t instanceof TouchEvent))return;const e=performance.now();1==t.touches.length&&e-this.ctx.vars.dbltap.lastTapped<250&&(t.stopPropagation(),t.preventDefault(),this.click(t)),this.ctx.vars.dbltap.lastTapped=e}click(t){var e;const i=t instanceof TouchEvent?t.touches[0]:t,r=this.ctx.getImage({x:i.clientX,y:i.clientY});null==r||r.camera.zoom(-300,500,i.clientX,i.clientY,1,!(null==(e=this.ctx.micrio.$current)?void 0:e.album)).catch((()=>{}))}}const Jl=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"];class Kl{constructor(t){this.ctx=t,this.handleEvent=this.handleEvent.bind(this),this.dispatch=this.dispatch.bind(this)}hook(){Jl.forEach((t=>this.ctx.micrio.addEventListener(t,this.handleEvent)))}unhook(){Jl.forEach((t=>this.ctx.micrio.removeEventListener(t,this.handleEvent)))}handleEvent(t){if("move"==t.type&&!this.ctx.isPanning()&&!this.ctx.isPinching()&&!this.ctx.isWheeling())return;const e=this.ctx.vars.updates.stack;e[e.length-1]!=t.type&&e.push(t.type),clearTimeout(this.ctx.vars.updates.to),this.ctx.vars.updates.to<0&&(this.ctx.vars.updates.to=setTimeout(this.dispatch))}dispatch(){const t=this.ctx.vars.updates;clearTimeout(t.to),t.to=-1,t.stack.length&&(this.ctx.dispatch("update",t.stack),t.stack.length=0,t.to=setTimeout(this.dispatch,500))}}class Ql{constructor(t){this.micrio=t,this.enabled=Qi(!1),this.hooked=!1,this.panning=!1,this.pinching=!1,this.clicked=!1,this.wheeling=!1,this.controlZoom=!1,this.twoFingerPan=!1,this.pScale=1,this.hasTouch=Nr.hasTouch&&"ontouchstart"in self,this.hasUsedCtrl=!1,this.vars={drag:{prev:void 0,start:[0,0,0]},dbltap:{lastTapped:0},pinch:{image:void 0,sDst:0,wasPanning:!1},updates:{to:-1,stack:[]}},this.activePointers=new Map,this.el=t.canvas.element,this.dragHandler=new ql(this),this.pinchHandler=new Xl(this,this.dragHandler),this.pointerPinchHandler=new Yl(this,this.dragHandler),this.gestureHandler=new Gl(this),this.wheelHandler=new jl(this),this.keyboardHandler=new Hl(this),this.doubleTapHandler=new Zl(this),this.updateHandler=new Kl(this),this.enabled.subscribe((t=>{t?this.hook():this.unhook()})),t.visible.subscribe((t=>this.visible=t)),t.current.subscribe((t=>{t&&!this.settings&&Wr(t.info).then((e=>{e&&(this.settings=t.$settings,!t.error&&this.settings.hookEvents&&this.enabled.set(!0))}))}))}get $enabled(){return tr(this.enabled)}isEnabled(){return this.$enabled}isPanning(){return this.panning}isPinching(){return this.pinching}setPanning(t){this.panning=t}setPinching(t){this.pinching=t}isWheeling(){return this.wheeling}setWheeling(t){this.wheeling=t}isControlZoom(){return this.controlZoom}isTwoFingerPan(){return this.twoFingerPan}getVisible(){return this.visible}setCapturedPointerId(t){this.capturedPointerId=t}setPinchFactor(t){this.pinchFactor=t}setPScale(t){this.pScale=t}setHasUsedCtrl(t){this.hasUsedCtrl=t}get isNavigating(){return this.panning||this.pinching||this.wheeling||this.clicked}dispatch(t,e){this.micrio.dispatchEvent(new CustomEvent(t,void 0!==e?{detail:e}:void 0))}getImage(t){var e;if(!this.visible)return;const i=this.micrio.offsetWidth,r=this.micrio.offsetHeight,n=Math.max(0,Math.min(1,t.x/i)),s=Math.max(0,Math.min(1,t.y/r)),o=null==(e=this.visible)?void 0:e.find((t=>!!t.opts.secondaryTo)),a=1==this.visible.length?this.visible[0]:this.visible.find((({grid:t,opts:{area:e}})=>(!o||!t)&&(!!e&&(n>=e[0]&&n<=e[2]&&s>=e[1]&&s<=e[3]))));return a&&a.opts.secondaryTo&&a.opts.isPassive&&a.opts.area&&(t.x-=a.opts.area[0]*i,t.y-=a.opts.area[1]*r),!a||a.grid||a.opts.secondaryTo&&a.opts.isPassive?this.micrio.$current:a}hook(){if(this.hooked)return;this.hooked=!0;const t=this.settings;t&&(this.twoFingerPan=!!t.twoFingerPan,this.twoFingerPan?this.micrio.setAttribute("data-can-pan",""):this.micrio.removeAttribute("data-can-pan"),(null==t?void 0:t.hookKeys)&&this.hookKeys(),t.hookDrag&&this.hookDrag(),t.noZoom||this.hookZoom(),this.hookUpdate())}unhook(){this.hooked&&(this.hooked=!1,this.activePointers.clear(),this.unhookDrag(),this.unhookZoom(),this.unhookKeys(),this.unhookUpdate())}hookKeys(){this.keyboardHandler.hook()}unhookKeys(){this.keyboardHandler.unhook()}hookZoom(){const t=this.settings;this.controlZoom=!!(null==t?void 0:t.controlZoom),t&&!t.hookPinch||this.hookPinch(),(!t||t.hookScroll||this.controlZoom)&&this.hookScroll(),this.micrio.canvas.$isMobile?this.doubleTapHandler.hookTap():this.doubleTapHandler.hookClick()}unhookZoom(){this.unhookPinch(),this.unhookScroll(),this.micrio.canvas.$isMobile?this.doubleTapHandler.unhookTap():this.doubleTapHandler.unhookClick()}get scrollHooked(){return this.wheelHandler.hooked}hookScroll(){this.wheelHandler.hook()}unhookScroll(){this.wheelHandler.unhook()}hookPinch(){Nr.iOS&&this.hasTouch?this.pinchHandler.hook():this.pointerPinchHandler.hook(),this.gestureHandler.hook()}unhookPinch(){Nr.iOS&&this.hasTouch?this.pinchHandler.unhook():this.pointerPinchHandler.unhook(),this.gestureHandler.unhook()}hookDrag(){this.dragHandler.hook()}unhookDrag(){this.dragHandler.unhook()}hookUpdate(){this.updateHandler.hook()}unhookUpdate(){this.updateHandler.unhook()}}const tc=class t{constructor(t){this.micrio=t,this.isStatic=!1,this.loaded=!1,this.inited=!1,this.setting=!1,this.writeTitle=!1}hook(){this.isStatic="static"==this.micrio.getAttribute("data-router"),this.read=this.read.bind(this),this.write=this.write.bind(this),this.writeDeferred=this.writeDeferred.bind(this),Wr(this.micrio.current).then((()=>{this.loaded=!0,this.read()})),t.events.forEach((t=>this.micrio.addEventListener(t,this.write))),"i.micr.io"==location.hostname&&(this.writeTitle=!0),window.addEventListener(this.isStatic?"popstate":"hashchange",this.read)}unhook(){t.events.forEach((t=>this.micrio.removeEventListener(t,this.write))),window.removeEventListener(this.isStatic?"popstate":"hashchange",this.read)}findPage(t,e,i){var r,n;if(e)for(let s=0;s<e.length;s++){const o=(null==(n=null==(r=e[s])?void 0:r.i18n)?void 0:n[i])??e[s];let a=Fr(o.title)==t?e[s]:this.findPage(t,e[s].children,i);if(a)return a}}read(){if(!this.loaded||this.setting)return;this.route=(this.isStatic?location.pathname:location.hash).slice(1);const[t,e,i,r,n]=this.route.split("/"),s=this.micrio.$current,o=t&&(null==s?void 0:s.id)!=t?this.micrio.open(t):void 0;s&&Promise.all([Wr(s.data,{allowUndefined:!0}),o?Wr(o.data,{allowUndefined:!0}):void 0]).then((t=>{var i,a;if(!t[0])return this.inited=!0;if(void 0===this.prevLang&&(this.prevLang=this.micrio.lang),!1===(null==o?void 0:o.$settings.routerMarkerTours))return;if((null==(i=t[0].pages)?void 0:i.length)&&r){const i=this.findPage(r.toLowerCase(),t[0].pages,e);if(i)return void this.micrio.state.popover.set({contentPage:i})}const l=r?n?t.map((t=>{var i;return null==(i=null==t?void 0:t.markerTours)?void 0:i.find((t=>{var i,n;return Fr(null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)==r}))}))[0]:t.map((t=>{var i;return null==(i=null==t?void 0:t.tours)?void 0:i.find((t=>{var i,n;return Fr(null==(n=null==(i=t.i18n)?void 0:i[e])?void 0:n.slug)==r}))}))[0]:void 0,c=n||!l&&r,d=c?null==(a=(t[1]??t[0]).markers)?void 0:a.find((t=>{var i,r,n;return((null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.slug)??Fr(t.title))==c||l&&"steps"in l&&(null==(n=l.stepInfo)?void 0:n.map((t=>t.marker)).find((t=>{var i,r;return(null==(r=null==(i=t.i18n)?void 0:i[e])?void 0:r.slug)==c})))})):void 0;d&&l&&"steps"in l?l.initialStep=Math.max(0,l.steps.findIndex((t=>t.startsWith(d.id)))):(d||this.micrio.state.popup.set(void 0),(o??s).state.marker.set(d)),this.micrio.state.tour.set(l),this.writeTitle&&this.setTitle(),this.inited=!0}))}setTitle(){var t,e,i,r,n,s,o,a,l,c;const d=tr(this.micrio._lang),u=this.micrio.$current;if(!u)return;const h=[(null==(i=null==(e=null==(t=u.$data)?void 0:t.i18n)?void 0:e[d])?void 0:i.title)??(null==(r=null==u?void 0:u.$info)?void 0:r.title),null==(o=null==(s=null==(n=this.micrio.state.$tour)?void 0:n.i18n)?void 0:s[d])?void 0:o.title,null==(c=null==(l=null==(a=this.micrio.state.$marker)?void 0:a.i18n)?void 0:l[d])?void 0:c.title].filter((t=>!!t)).reverse();document.title=h.join(" - ")+" | Micrio"}write(t){if(this.micrio.$current&&this.loaded&&this.inited){if("marker-open"===t.type){const t=this.micrio.state.$marker;if(t&&t.data&&t.data.micrioLink)return}clearTimeout(this._to),this._to=setTimeout((()=>this.writeDeferred("load"==t.type)),50)}}writeDeferred(t){var e,i,r,n,s,o,a,l,c;const d=this.micrio.state.$tour;let u=this.micrio.$current,h=null==u?void 0:u.state.$marker;const m=this.micrio.lang;m!=this.prevLang&&(t=!0,this.prevLang=m);const v=(null==(r=null==(i=null==(e=null==u?void 0:u.$data)?void 0:e.i18n)?void 0:i[m])?void 0:r.title)??(null==(n=null==u?void 0:u.$info)?void 0:n.title)??"",p=!1===(null==u?void 0:u.$settings.routerMarkerTours),g=h&&"string"!=typeof h?(null==(s=h.i18n)?void 0:s[m])??h:void 0,f=null==(o=tr(this.micrio.state.popover))?void 0:o.contentPage,w=f?(null==(a=f.i18n)?void 0:a[m])??f:void 0;let b=null==u?void 0:u.id;if(d&&"steps"in d&&d.steps.length&&d.stepInfo){const t=d.stepInfo.find((t=>t.markerId==d.steps.find((t=>!t.includes(",")))));t&&(b=t.micrioId,u=this.micrio.wasm.images.find((t=>t.id==b)),h||void 0===d.initialStep||(h=d.stepInfo[Math.max(0,d.initialStep)].marker))}const y=[b,m,Fr(v)??"",...p?[]:w?[Fr(w.title)]:[(null==(c=null==(l=null==d?void 0:d.i18n)?void 0:l[m])?void 0:c.slug)??null,(null==g?void 0:g.slug)??Fr(null==g?void 0:g.title)??null]].filter((t=>!!t)).join("/");y!=this.route&&(this.setting=!0,this.isStatic?t?history.replaceState(null,"","/"+y+location.search):history.pushState(null,"","/"+y+location.search):location.hash=y,this.route=y,this.writeTitle&&this.setTitle(),setTimeout((()=>this.setting=!1),250))}};tc.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"];let ec=tc;const ic=class t{constructor(t){this.micrio=t,this.gtag="gtag"in window?window.gtag:void 0,this.hooked=!1,this.tag=this.tag.bind(this)}hook(){!this.hooked&&this.gtag&&(this.hooked=!0,this.tag(new CustomEvent("init")),t.events.forEach((t=>this.micrio.addEventListener(t,this.tag))))}unhook(){this.hooked&&(this.hooked=!1,this.tag(new CustomEvent("hide")),t.events.forEach((t=>this.micrio.removeEventListener(t,this.tag))))}tag(t){if(!this.gtag)return;const e=t.detail,i=this.micrio.$current,r={event_category:"Micrio",event_action:t.type};this.micrio.lang&&(r.culture=this.micrio.lang),"init"==t.type&&(r.micrio_version=Da),"load"==t.type&&(null==i?void 0:i.$info)&&(r.image_version=i.$info.version);const n=null!==e&&"object"==typeof e&&"currentStep"in e?e.currentStep:null;null!=n&&(r.event_value=n);const s=e&&e.title?e.title:i&&i.$info&&i.$info.title;r.event_label=this.micrio.id+(s?" - "+s:""),this.gtag("event",t.type,r)}};ic.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"];let rc=ic;const nc=t=>Math.round(1e5*t)/1e5,sc=class t{constructor(e,i){var r;this.micrio=e,this.image=i,this.images=[],this.current=[],this._grid=document.createElement("div"),this._buttons=new Map,this.clickable=!1,this.focussed=Qi(),this.markersShown=Qi([]),this.history=[],this.depth=Qi(0),this.aniDurationIn=1.5,this.aniDurationOut=.5,this.transitionDelay=.5,this.isHorizontal=!1,this.cellSizes=new Map,this.nextSize=new Map,this.timingFunction="ease",this.getString=(e,i={})=>{var r;return t.getString(e,{view:i.view,area:i.area,size:i.size??this.nextSize.get(e.id),cultures:null==(r="cultures"in e&&e.cultures?e.cultures:"")?void 0:r.replace(/,/g,"-")})},this.tourEvent=this.tourEvent.bind(this),this.updateGrid=this.updateGrid.bind(this);const n=i.$settings;this.clickable=!!n.gridClickable,void 0!==n.gridTransitionDuration&&(this.aniDurationIn=this.aniDurationOut=n.gridTransitionDuration),void 0!==n.gridTransitionDurationOut&&(this.aniDurationOut=n.gridTransitionDurationOut),this._grid.className="micrio-grid",this.set(null==(r=i.$info)?void 0:r.grid);const s=()=>Gt().then((()=>{this.hook(),e.events.dispatch("grid-load")}));i.isV5?s():e._lang.subscribe((t=>{t?Promise.all(this.images.filter((e=>{var i;return(e.$info&&"cultures"in e.$info&&(null==(i=e.$info)?void 0:i.cultures)||"").indexOf(t)>=0})).map((t=>Wr(t.data)))).then(s):s()})),e.events.dispatch("grid-init",this)}get $focussed(){return tr(this.focussed)}hook(){if(this.micrio.state.marker.subscribe((t=>{var e,i;if(t&&"string"!=typeof t){const r=null==(e=t.data)?void 0:e._meta;if(null==r?void 0:r.gridSize){const e="number"==typeof r.gridSize?[r.gridSize,r.gridSize]:r.gridSize.split(",").map(Number),n=null==(i=this.images.find((e=>{var i,r;return null==(r=null==(i=e.$data)?void 0:i.markers)?void 0:r.find((e=>e==t))})))?void 0:i.id;n&&this.nextSize.set(n,e)}Gt().then((()=>{var t;const e=null==(t=null==r?void 0:r.gridAction)?void 0:t.split("|");(null==e?void 0:e.length)&&"string"==typeof e[0]&&this.action(e.shift(),e.join("|"))}))}})),this.clickable){this._grid.addEventListener("click",(t=>{const e=t.target.dataset.id;e&&this.focus(this.images.find((t=>t.id==e)))}));const t=t=>{t?this.removeGrid():this.placeGrid()};this.micrio.state.tour.subscribe(t),this.micrio.state.marker.subscribe(t),this.focussed.subscribe(t)}this.micrio.addEventListener("tour-event",this.tourEvent),this.micrio.addEventListener("serialtour-pause",(()=>this.images.forEach((t=>t.camera.pause())))),this.micrio.addEventListener("serialtour-play",(()=>this.images.forEach((t=>t.camera.resume()))))}clearTimeouts(){clearTimeout(this._to),clearTimeout(this._fadeTo)}set(t="",e={}){return this.lastPromise=new Promise(((i,r)=>{var n,s,o;null==(s=null==(n=this.image.$info)?void 0:n.settings)||delete s.focus,this.lastAction=void 0,!1===e.cover&&e.coverLimit&&(e.coverLimit=!1),e.coverLimit&&null==e.cover&&(e.cover=e.coverLimit),"string"!=typeof t&&(t=t.map((t=>t instanceof Qa?{image:t}:t)).filter((t=>!!t.image.$info)).map((t=>this.getString(t.image.$info,t))).join(";"));const a=t.split(";").filter((t=>!!t)).map((t=>this.getImage(t))),l=this.$focussed,c=null==(o=e.transition)?void 0:o.endsWith("-delayed"),d="behind-delayed"==e.transition;switch(e.transition){case"crossfade":e.duration=0;break;case"behind":case"behind-delayed":const t=!0===e.coverLimit;e.forceAni=!0,e.coverLimit=t,e.forceAreaAni=!0;const i=c?1/a.length:1;let r=0;this.images.forEach((e=>{e.camera.setCoverLimit(t),a.find((t=>t.id==e.id))&&(e.camera.setArea([0,0,(null==l?void 0:l.id)==e.id?1:i,1],{noDispatch:!0,direct:!0}),e!=l&&e.camera.setView([0,0,1,1]),c&&this.micrio.wasm.e._setZIndex(e.ptr,a.length-r++))})),a.forEach((t=>t.view=[0,0,1,1]))}const u=this.image.ptr>=0,h=e.duration??(e.noHistory?this.aniDurationOut:this.aniDurationIn),m=this.nextCrossFadeDuration??this.image.$settings.crossfadeDuration??1,v=(h||this.aniDurationIn)/(d?2:1);if(this.nextCrossFadeDuration=void 0,u){const t=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionDuration(t,h),this.micrio.wasm.e.setCrossfadeDuration(t,v)}const p=!e.noBlur&&l;p&&this.blur(),!e.noHistory&&this.current.length&&this.depth.set(this.history.push({layout:this.current.map((t=>this.getString(t.$info,{view:t.state.$view,size:this.cellSizes.get(t.id)}))).join(";"),horizontal:this.isHorizontal,view:this.image.camera.getView()})),this.isHorizontal=!!e.horizontal,this.removeImages(this.images.filter((t=>!a.find((e=>e.id==t.id))))),this.printGrid(a,{horizontal:e.horizontal,keepGrid:e.keepGrid,scale:e.scale,columns:e.columns}),this.clearTimeouts();let g=!1;const f=()=>{this.clearTimeouts(),g||r()};u&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(f):this.image.camera.flyToFullView({duration:1e3*h}).catch(f)),this.nextSize.clear(),null==e.coverLimit&&(e.coverLimit=!0),e.coverLimit||a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)}));const w="appear-delayed"==e.transition,b=t=>t*this.transitionDelay+(t>0&&w?h:0);this.current=a.map(((t,i)=>this.placeImage(t,{duration:!e.forceAni&&p&&t.id!=(null==l?void 0:l.id)?0:h,delay:c?b(i):0,noCamAni:!!(w&&i>0)||!!e.noCamAni,forceAreaAni:!(w&&i>0)&&e.forceAreaAni,cover:e.cover}))),w&&this.current.slice(1).forEach((t=>this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0)));const y=()=>this.current.forEach(((t,e)=>Vr(c?1e3*(b(e)+(d?h/2:0)):0).then((()=>this.micrio.wasm.e._fadeIn(t.ptr))))),k=()=>{this.clearTimeouts(),requestAnimationFrame((()=>this.micrio.wasm.e.setCrossfadeDuration(this.micrio.wasm.getPtr(),m))),c&&this.images.forEach((t=>this.micrio.wasm.e._setZIndex(t.ptr,0))),e.coverLimit&&a.forEach((t=>{var i;return null==(i=this.images.find((e=>e.id==t.id)))?void 0:i.camera.setCoverLimit(!!e.coverLimit)})),this.clickable&&this.placeGrid(),this.lastAction=void 0,g=!0,i(this.current)};h||v?(e.noFade||(this._fadeTo=setTimeout(y,Math.max(0,h/2*1e3))),this._to=setTimeout(k,1e3*(Math.max(v,h)+(c?(a.length-1)*this.transitionDelay:0)))):(e.noFade||y(),k())}))}hasChanged(){return this.current.map((t=>t.id)).join(",")!=this.images.map((t=>t.id)).join(",")}getImage(t){var e,i;const r=t.split("|"),n=r[0].split(","),s=r[1]?r[1].split(",").map(Number):[1];let o=0,a=0;return{path:null==(e=this.image.$info)?void 0:e.path,id:n[0],width:o=Number(n[1])||o,height:a=Number(n[2])||a,isDeepZoom:"d"==n[3],isPng:"p"==n[4],isWebP:"w"==n[4],size:s,view:n[5]?n[5].split("/").map(Number):void 0,area:n[6]?n[6].split("/").map(Number):void 0,settings:Cr(this.image.$settings||{},{focus:n[7]?n[7].split("-").map(Number):void 0}),cultures:(null==(i=n[8])?void 0:i.replace(/\-/g,","))||void 0}}getCols(t,e){let i=Math.ceil(e/Math.ceil(Math.sqrt(e)));if(t==e){const e=Math.floor(Math.sqrt(t)),r=[];for(let n=e;n<i+e;n++)t%n||r.push(n);r.length&&(i=r[Math.floor(r.length/2)])}return i}printGrid(t,e){var i;e.keepGrid||this.removeGrid();const r=t.reduce(((t,e)=>t+e.size.reduce(((t,e)=>e*t),1)),0),n=e.columns??(e.horizontal?t.length:this.getCols(t.length,r));this._grid.style.gridTemplateColumns=`repeat(${n}, auto)`,this._grid.textContent="",this._grid.style.removeProperty("--translate"),this._grid.style.removeProperty("--scale"),t.forEach((t=>{if(!t.id)return;this._buttons.has(t.id)||this._buttons.set(t.id,document.createElement("button"));const e=this._buttons.get(t.id);"1"!=t.size.toString()?(e.style.gridArea=`auto / auto / span ${t.size[1]} / span ${t.size[0]||t.size[1]}`,this.cellSizes.set(t.id,t.size)):(e.style.removeProperty("grid-area"),this.cellSizes.delete(t.id)),e.dataset.id=t.id,this._grid.appendChild(e)})),e.keepGrid&&this._grid.parentNode||this.micrio.insertBefore(this._grid,(null==(i=this.micrio.firstChild)?void 0:i.nextSibling)??null),this.micrio.events.dispatch("grid-layout-set",this);const s=this.micrio.offsetWidth,o=this.micrio.offsetHeight,a=Math.max(0,Math.min(1,1-(e.scale??1)));this._grid.style.transform="",this._grid.childNodes.forEach((e=>{if(!e)return;const i=e,r=i.dataset.id,n=i.getBoundingClientRect(),l=t.find((t=>t.id==r)),c=[a/2*n.width,a/2*n.height];l&&!l.area&&(l.area=[(n.x+c[0])/s,(n.y+c[1])/o,(n.x+n.width-c[0])/s,(n.y+n.height-c[1])/o])})),e.keepGrid||this._grid.remove()}placeGrid(){var t;!this.clickable||this.micrio.state.$tour||this.micrio.state.$marker||this._grid.parentNode||(this.micrio.insertBefore(this._grid,(null==(t=this.micrio.firstChild)?void 0:t.nextSibling)??null),this.viewUnsub=this.image.state.view.subscribe(this.updateGrid))}removeGrid(){this._grid.parentNode&&(this.viewUnsub&&this.viewUnsub(),this._grid.remove())}updateGrid(){const t=this.image.camera.getXY(0,0,!0);this._grid.style.setProperty("--translate",`translate3d(${t[0]}px, ${t[1]}px, 0)`),this._grid.style.setProperty("--scale",this.image.camera.getScale().toString()),this._grid.dispatchEvent(new CustomEvent("update"))}placeImage(t,e){let i=this.images.find((e=>e.id==t.id));i&&t.area?Vr(1e3*e.delay).then((()=>{i.camera.setArea(t.area,{direct:0==e.duration||!e.forceAreaAni&&!tr(i.visible)}),e.delay&&this.micrio.wasm.render()})):(t.lang=this.micrio.lang,this.micrio.wasm.addChild(i=new Qa(this.micrio.wasm,t,{area:t.area}),this.image),this.images.push(i));const r={duration:1e3*e.duration,timingFunction:this.timingFunction,limit:!1};if(!e.noCamAni&&!i.camera.aniDone&&i.ptr>0){const n=!!e.cover||i.camera.getCoverLimit();if(t.view||!n)i.camera.flyToView(t.view??[0,0,1,1],r).catch((()=>{}));else if(t.area&&t.width&&t.height){const e=(t.area[2]-t.area[0])*this.micrio.offsetWidth/((t.area[3]-t.area[1])*this.micrio.offsetHeight);i.camera.flyToView(e<t.width/t.height?[.5,0,.5,1]:[0,.5,1,.5],r).catch((()=>{}))}else i.camera.flyToCoverView(r).catch((()=>{}))}return i}removeImages(t){t.forEach((t=>{t.ptr>=0&&this.micrio.wasm.e._fadeOut(t.ptr)})),this.micrio.wasm.render()}insideGrid(){const t=this.micrio.$current;return t==this.image||!!this.images.find((e=>e==t))}async reset(t,e,i){var r,n;const s=this.history[0];return this.images.forEach((t=>t.camera.stop())),this.image.camera.stop(),this.markersShown.set([]),await Gt(),i||e||!(null==(r=this.micrio.camera)?void 0:r.isZoomedOut())||this.micrio.state.$tour||this.$focussed||this.hasChanged()||(t=0),this.set((null==s?void 0:s.layout)||(null==(n=this.image.$info)?void 0:n.grid),{noHistory:!0,duration:t,noCamAni:e,forceAni:i,horizontal:!!s&&s.horizontal}).then((t=>(this.depth.set(this.history.length=0),this.micrio.current.set(this.image),t)))}switchToGrid(){const t=this.$focussed;if(!t)return;const e=t.camera.getView();e&&this.reset(0,!0).then((()=>{t.opts.area&&this.image.camera.setView(t.opts.area,{noLimit:!0}),t.camera.setView(e,{noLimit:!0}),this.micrio.current.set(this.image)}))}async flyToMarkers(t,e,i){const r=null==t?void 0:t.split("|").map((t=>t.trim())),n=(null==r?void 0:r[0])??"",s=n?this.images.filter((t=>{var e,i;return!!(null==(i=null==(e=t.$data)?void 0:e.markers)?void 0:i.find((t=>t.tags.includes(n))))})):this.images;return this.set(s.map((t=>{var e,r;const s=null==(r=null==(e=t.$data)?void 0:e.markers)?void 0:r.find((t=>t.tags.indexOf(n)>=0));return this.getString(t.$info,{view:i||null==s?void 0:s.view})})).join(";"),{duration:e,horizontal:"h"==(null==r?void 0:r[1])})}async back(t){const e=this.history.pop();if(!e)return;this.depth.set(this.history.length),this.micrio.current.set(this.image);this.$focussed&&this.blur(),await this.set(e.layout,{duration:t,noHistory:!0,horizontal:e.horizontal,view:e.view})}setTimingFunction(t){const e=this.micrio.wasm.getPtr();this.micrio.wasm.e.setGridTransitionTimingFunction(e,Wa.Camera.TimingFunction[this.timingFunction=t])}async focus(t,e={}){var i;if(!t)return this.back();e.coverLimit&&(e.cover=!0);const r=!e.view&&!e.cover,n=this.micrio;tr(n.visible).find((t=>t==this.image))||n.current.set(this.image);const s=this.$focussed;if(s==t)return;!(null==(i=e.transition)?void 0:i.startsWith("slide-"))&&(0==e.duration||s&&!n.wasm.e._areaAnimating(s.ptr)&&!this.current.find((e=>e==t)))&&t.camera.setArea([0,0,1,1],{noDispatch:!0,direct:!0}),s&&this.blur(),t.camera.setCoverLimit(!!e.cover),this.setTimingFunction("ease");const o=await this.transition(t,s,this.getString(t.$info,{view:e.view}),e);return n.wasm.e._setZIndex(t.ptr,3),this.focussed.set(t),tr(t.visible)||"crossfade"!=e.transition&&e.transition||(e.duration=0),this.set(o,{noBlur:!0,duration:e.duration,forceAreaAni:"crossfade"!=e.transition,cover:!!e.cover,coverLimit:!!e.coverLimit}).then((()=>{n.events.dispatch("grid-focus",t);const e=t.$info;this.removeGrid(),n.$current!=t&&n.current.set(t);const i=n.offsetWidth/n.offsetHeight,s=(1-e.width/e.height/i)/2;!t.camera.aniDone&&r&&t.camera.flyToFullView({duration:1e3*this.aniDurationIn}).catch((()=>{})),this.image.camera.setLimit([s,0,1-s,1])})).catch((()=>{}))}async transition(t,e,i,{duration:r,view:n,transition:s,noViewAni:o,exitView:a,blur:l,cover:c}){if(!s)return i;if("crossfade"==s&&(t.camera.setArea([0,0,1,1]),o=!0),n&&o&&t.camera.setView(n,{noRender:!0,noLimit:!0}),!e||"crossfade"==s)return i;const d=s.startsWith("slide")||s.startsWith("swipe"),u=s.startsWith("behind"),h=d?s.endsWith("-up")?0:s.endsWith("-down")?180:s.endsWith("-left")?270:90:void 0;if((d||u)&&this.micrio.wasm.e._fadeTo(t.ptr,.9999,!0),s.startsWith("slide"))t.camera.setArea(0==h?[0,-.5,1,0]:180==h?[0,1,1,1.5]:270==h?[-.5,0,0,1]:[1,0,1.5,1],{noDispatch:!0,direct:!0});else if(s.startsWith("swipe"))t.camera.setArea(0==h?[0,-1,1,0]:180==h?[0,1,1,2]:270==h?[-1,0,0,1]:[1,0,2,1],{noDispatch:!0,direct:!0}),i=[this.getString(e.$info,{view:a??e.camera.getView(),area:0==h?[0,1,1,2]:180==h?[0,-1,1,0]:270==h?[1,0,2,1]:[-1,0,0,1]}),this.getString(t.$info,{view:n,area:[0,0,1,1]})].join(";");else if(u){t.camera.setArea([0,0,1,1]),t.camera.setView([0,0,1,1]);const i=[this.getString(e.$info,{view:[0,0,1,1]}),this.getString(t.$info,{view:[0,0,1,1]})];"behind-left"==s&&i.reverse(),await this.set(i.join(";"),{noBlur:!0,horizontal:!0,coverLimit:c}).then((()=>Vr(200)))}if(l&&!isNaN(l)&&l>0){const t=(r=r??this.nextCrossFadeDuration??this.aniDurationIn)/2,e=this.micrio.canvas.element.style;e.transition=`filter ${t}s ease`,e.filter=`blur(${l}px)`,setTimeout((()=>{e.filter="",setTimeout((()=>e.transform=""),1e3*t)}),1e3*t)}return i}blur(){const t=this.$focussed;t&&(this.micrio.wasm.e._setZIndex(t.ptr,2),this.micrio.events.dispatch("grid-blur"),this.focussed.set(void 0),this.image.camera.setLimit([0,0,1,1]),this.micrio.current.set(this.image))}tourEvent(t){var e;const i=t.detail;i&&(null==(e=i.action)?void 0:e.startsWith("grid:"))&&i.active&&this.action(i.action.slice(5),i.data,i.end-i.start)}action(t,e,i){"string"==typeof t&&(t=Wa.Grid.GridActionType[t]);const r=t+(e??"");if(this.lastAction!=r){switch(t){case Wa.Grid.GridActionType.focus:const t=null==e?void 0:e.split("|").map((t=>t.trim())),r=(null==t?void 0:t[0])??"",n=null==r?void 0:r.split(",").map((t=>this.images.find((e=>e.id==(null==t?void 0:t.trim()))))).filter((t=>void 0!==t));1==n.length?this.focus(n[0],{duration:i}):n.length>0&&this.set(n.map((t=>this.getString(t.$info))).join(";"),{duration:i,horizontal:"h"==(null==t?void 0:t[1])});break;case Wa.Grid.GridActionType.flyTo:const s=null==e?void 0:e.split(",").map((t=>this.current.find((e=>e.id==(null==t?void 0:t.trim())))));(null==s?void 0:s.length)?this.image.camera.flyToView([Math.min(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[0])??0}))),Math.min(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[1])??0}))),Math.max(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[2])??1}))),Math.max(...s.map((t=>{var e;return(null==(e=null==t?void 0:t.opts.area)?void 0:e[3])??1})))],{duration:i?1e3*i:void 0}).catch((()=>{})):console.warn("Given image IDs gave no current displayed images",event);break;case Wa.Grid.GridActionType.focusTagged:this.flyToMarkers(e,i);break;case Wa.Grid.GridActionType.focusWithTagged:this.flyToMarkers(e,i,!0);break;case Wa.Grid.GridActionType.reset:this.reset(i);break;case Wa.Grid.GridActionType.back:this.back(i);break;case Wa.Grid.GridActionType.switchToGrid:this.switchToGrid();break;case Wa.Grid.GridActionType.nextFadeDuration:this.nextCrossFadeDuration=Number(e);break;case Wa.Grid.GridActionType.filterTourImages:Wr(this.micrio.state.tour).then((t=>{if(!t)return;if(!("steps"in t)||!t.stepInfo)return;const r=t.stepInfo.map((t=>t.micrioId)),n=r.filter(((t,e)=>r.indexOf(t)==e)).map((t=>this.images.find((e=>e.id==t)))).filter((t=>!!t)).map((t=>this.getString(t.$info))).join(";");n&&this.set(n,{duration:i,horizontal:"h"==e})}));break;default:console.warn("Warning: unknown grid tour event",event)}this.lastAction=r}}async enlarge(t,e,i=e){var r;return this.set(((null==(r=this.history[this.history.length-1])?void 0:r.layout)||this.image.$info.grid).split(";").map(((r,n)=>`${r}|${n==t?`${e},${i}`:1}`)).join(";"),{noHistory:!0,keepGrid:!0,duration:500})}getRelativeView(t,e){const i=t.opts.area??[0,0,1,1],r=i[2]-i[0],n=i[3]-i[1];return[i[0]+r*e[0],i[1]+n*e[1],i[0]+r*e[2],i[1]+n*e[3]]}};sc.getString=(t,e)=>{var i,r,n,s;return[t.id,t.width,t.height,t.isDeepZoom?"d":"",t.isPng?"p":t.isWebP?"w":"",null==(i=e.view)?void 0:i.map(nc).join("/"),null==(r=e.area)?void 0:r.map(nc).join("/"),null==(s=null==(n=t.settings)?void 0:n.focus)?void 0:s.map(nc).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")};let oc=sc;class ac{constructor(t){this.micrio=t,this.element=document.createElement("canvas"),this.resizing=!1,this.hasPerspective=!1,this.viewport={width:0,height:0,left:0,top:0,ratio:0,scale:0,portrait:!1},this.isMobile=Qi(!1),this.getRatio=(t=(t=>null==(t=this.micrio.$current)?void 0:t.$settings)()??{})=>!Nr.iOS&&!(null==t?void 0:t.noRetina)&&self.devicePixelRatio&&Math.max(1,Math.min(2,self.devicePixelRatio))||1,this.onresize=this.onresize.bind(this),self.ResizeObserver&&(this.resizeObserver=new self.ResizeObserver(this.onresize)),this.element.className="micrio"}get $isMobile(){return tr(this.isMobile)}place(){if(this.element.parentNode)return;const t=this.micrio.querySelector("img.preview");this.micrio.insertBefore(this.element,t?t.nextSibling:this.micrio.firstChild)}hook(){this.onresize(),this.resizeObserver?this.resizeObserver.observe(this.element):window.addEventListener("resize",this.onresize)}unhook(){this.resizeObserver?this.resizeObserver.unobserve(this.element):window.removeEventListener("resize",this.onresize)}onresize(){var t,e,i;const r=this.element.getBoundingClientRect();(null==(t=this.micrio.$current)?void 0:t.is360)&&(this.hasPerspective=!0);let n=r.width,s=r.height;if(!n||!s)return;const o=self.getComputedStyle(this.element),a=parseFloat(o.width);isNaN(a)||(s=parseFloat(o.height)*n/Math.max(1,a));const l=this.micrio.hasAttribute("data-static")?1:Math.floor(n)/this.micrio.offsetWidth;n/=l,s/=l;const c=1!=l?1:this.getRatio(),d=this.viewport;d.width==n&&d.height==s&&d.ratio==c&&d.scale==l||(this.hasPerspective&&(this.micrio.style.perspective=s/2+"px"),d.width=n,d.height=s,d.ratio=c,d.scale=l,d.top=r.top,d.left=r.left,d.portrait=(null==(e=window.matchMedia("(orientation: portrait)"))?void 0:e.matches)??s>n,this.resizing=!0,this.element.width=n*c,this.element.height=s*c,this.micrio.webgl.gl.viewport(0,0,d.width*d.ratio,d.height*d.ratio),null==(i=this.micrio.webgl.postpocessor)||i.resize(),this.micrio.wasm.resize(d),this.resizing=!1,this.micrio.events.dispatch("resize",r),this.isMobile.set(/mobile/i.test(navigator.userAgent)))}setMargins(t,e){this.micrio.wasm.e&&this.micrio.wasm.e.setArea(this.micrio.wasm.getPtr(),t,e)}}const lc=class t extends HTMLElement{constructor(){super(),this.printed=!1,this.canvases=[],this.current=Qi(),this.visible=Qi([]),this.canvas=new ac(this),this.events=new Ql(this),this.state=new Ha.Main(this),this.analytics=new rc(this),this._router=new ec(this),this.barebone=Qi(!1),this.webgl=new Nl(this),this.wasm=new Cl(this),this.defaultSettings=this.defaultSettings,this.loading=Qi(!0),this.switching=Qi(!1),this.isMuted=Qi("1"==localStorage.getItem(Va)),this._lang=Qi(),this.keepRendering=!1,this.initedFirst=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):nn(`https://i.micr.io/album/${t}.json`))(t).then((t=>{var i;if(!t)return;const r=t.id+"."+t.revision,n=e.path=(null==(i=t.organisation)?void 0:i.baseUrl)??za;return e.organisation=t.organisation,e.settings.album=t,e.settings.gallery={archive:r,sort:t.sort,type:t.type,startId:e.id,isSpreads:t.isSpreads,coverPages:t.coverPages,revisions:t.published},delete e.id,this.loadArchiveBin(n,r).then((()=>this.loadGallery(e,n,!0)))}),(t=>this.printError((null==t?void 0:t.message)||t))),this.getArchiveIndex=async(t,e=Fa)=>Ja.get(`${e}${t}.json`).then((t=>(t.images.forEach((t=>tn.set(`${e}${t.id}/info.json`,t))),t))),this.current.subscribe((t=>this._current=t));let t=!1;Wr(this.loading,{targetValue:!1}).then((()=>{this.setAttribute("data-loaded",""),this.switching.subscribe((e=>{e?this.setAttribute("data-switching",""):(t||Gt().then((()=>this.events.dispatch("show",this))),t=!0,this.removeAttribute("data-switching"))}));const e=this.querySelector("img.preview");e&&setTimeout((()=>e.remove()),500)}))}static get observedAttributes(){return["id","muted","data-grid","data-limited","lang"]}get $current(){return this._current}get camera(){var t;return null==(t=this._current)?void 0:t.camera}attributeChangedCallback(t,e,i){var r,n,s,o;switch(t){case"id":if(!this.isConnected||!i)return;this.printed?this.open(i):this.print();break;case"muted":this.isMuted.set(this.hasAttribute("muted"));break;case"data-grid":this.printed?null==(n=null==(r=this.$current)?void 0:r.grid)||n.set(i):this.print();break;case"data-limited":(null==(s=this.wasm)?void 0:s._vertexBuffer)&&(null==(o=this.$current)?void 0:o.ptr)&&this.wasm.e._setLimited(this.$current.ptr,!!i);break;case"lang":{let t=tr(this._lang);t!=i&&(this._lang.set(i),In.set(Sn[i]??Sn.en),i&&(_s.includes(i)?this.setAttribute("dir","rtl"):this.removeAttribute("dir")),t&&this.events.dispatch("lang-switch",i));break}}}connectedCallback(){this.canvas.place(),(this.hasAttribute("data-router")||this.hasAttribute("data-space"))&&"false"!=this.getAttribute("data-router")&&this._router.hook(),!this.id&&!this.hasAttribute("data-gallery")||this.printed||this.print(),"muted"in this||(Object.defineProperty(this,"muted",{get(){return tr(this.isMuted)},set(t){t?this.setAttribute("muted",""):this.removeAttribute("muted")}}),this.isMuted.subscribe((t=>{this.muted=t,t?(localStorage.setItem(Va,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(Va),this.events.dispatch("audio-unmute"))})))}addEventListener(t,e,i){super.addEventListener(t,e,i)}removeEventListener(t,e,i){super.removeEventListener(t,e,i)}destroy(){this.current.set(void 0),this._router.unhook(),this.events.enabled.set(!1),this.canvas.unhook(),this.analytics.unhook(),this.wasm.unbind(),this._ui&&function(t,e){const i=ii.get(t);i?(ii.delete(t),i(e)):Promise.resolve()}(this._ui),delete this._ui,this.webgl.dispose(!0),this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),Ja.load(t,"g/"+e,(t=>{var e,i;return null==(i=null==(e=this._ui)?void 0:e.setProps)?void 0:i.call(e,{loadingProgress:t})}))}async print(){var t,e,i,r;if(this.printed)return;this.printed=!0,await Gt();const n=this.getOptions();if(n.settings||(n.settings={}),n.settings.noControls&&this.state.ui.controls.set(!1),null==(t=n.settings.gallery)?void 0:t.archive){const t=null==(e=n.settings.gallery)?void 0:e.archive,i=/\.\d+$/.test(t),r=n.path||(cn(t.replace(/\.\d+$/,""))?za:Fa);i&&await this.loadArchiveBin(r,t),n.settings.gallery.startId=n.id,n.grid?await this.setGrid(n,r):await this.loadGallery(n,r,i),i||delete n.settings.gallery.archive,n.path||(n.path=r),delete n.id}else(null==(i=n.id)?void 0:i.startsWith("album/"))?await this.loadV5Album(n.id.replace("album/",""),n):n.id&&cn(n.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await on(n.id,n.forceInfoPath?n.path:void 0,null==(r=n.settings)?void 0:r.forceDataRefresh).then((t=>(null==t?void 0:t.albumId)?this.loadV5Album(t.albumId,n):void 0)).catch((()=>{}));this.keepRendering=!!n.settings.keepRendering;const s=n.id||n.gallery||n.grid;if(this.events.dispatch("print",n),void 0!==n.settings.lazyload&&"IntersectionObserver"in window){const t=new IntersectionObserver((e=>{e[0]&&e[0].isIntersecting&&(t.unobserve(this),s&&this.open(n))}),{rootMargin:100*n.settings.lazyload+"% 0px"});t.observe(this)}else s&&requestAnimationFrame((()=>this.open(n)))}printUI(e,i){var r,n;this._ui?null==(n=(r=this._ui).setProps)||n.call(r,{noHTML:e,noLogo:i}):this._ui=ti(t.Svelte,{target:this,props:{micrio:this,noHTML:e,noLogo:i}})}printError(t){var e,i;const r=t instanceof Mr?t.displayMessage:(t instanceof Error?t.message:t)??"An unknown error has occurred";console.error("Error:",r+(t instanceof Mr?` (${t.code}: ${t.message})`:"")),null==(i=null==(e=this._ui)?void 0:e.setProps)||i.call(e,{error:r})}open(t,e={}){var i,r,n,s;this.printed||this.print();const o="string"==typeof t,a=this.getOptions();let l=o?{...a,id:t}:t;if(l.settings||(l.settings={}),(null==(r=null==(i=a.settings)?void 0:i.gallery)?void 0:r.archive)&&(/\.\d+$/.test(a.settings.gallery.archive)||delete a.settings.gallery.archive),o||Cr(a.settings,l.settings),this.defaultSettings&&Cr(this.defaultSettings,l.settings),this.$current&&l.id==(null==(n=this.$current)?void 0:n.id))return this.$current;e.splitScreen||e.gridView||!this.$current||this.switching.set(!0),l.settings.noGTag||this.analytics.hook(),this.printed=!0,this.printUI(!!l.settings.noUI,!!l.settings.noLogo);let c=this.canvases.find((t=>l.id&&t.id==l.id)),d=!1;const u=null==(s=this.canvases[0])?void 0:s.grid;if(!c&&u){const t=l.id?u.images.find((t=>t.id==l.id)):void 0;d=!!t,c=l.id?t:this.canvases[0],d&&!u.insideGrid()&&this.current.set(this.canvases[0])}if(!c){if(this.canvases.length){const t=this.canvases[0];l.path=t.dataPath,l.lang=this.lang}this.canvases.push(c=new Qa(this.wasm,l,e.splitScreen?{secondaryTo:e.splitTo??this._current,isPassive:e.isPassive}:void 0));const t=this.state.value&&this.state.value.c.find((t=>t[0]==l.id));t&&c.state.set(t)}e.startView&&(c.state.view.set(l.settings.view=e.startView),c.ptr&&c.camera.e&&c.camera.setView(l.settings.view,{noRender:!0})),this.lang||(this.lang="en");const h=()=>{var t,i,r,n;if(c){if(!this.webgl.gl)try{this.webgl.init()}catch(s){return void this.printError(s)}Wr(c.info).then((t=>{var i,r;if(t&&c){if(!this.initedFirst){switch(this.canvas.hook(),null==(r=null==(i=this._current)?void 0:i.$settings)?void 0:r.theme){case"light":this.setAttribute("data-light-mode","");break;case"os":this.setAttribute("data-auto-scheme","")}this.initedFirst=!0}t.grid&&!c.grid&&(c.grid=new oc(this,c)),Gt().then((()=>this.dispatchEvent(new CustomEvent("load",{detail:c})))),e.splitScreen&&Gt().then((()=>{c&&((null==u?void 0:u.image.camera.aniDoneAdd)&&u.image.camera.aniDoneAdd.length>0?u.image.camera.aniDoneAdd.push((()=>null==c?void 0:c.splitStart())):c.splitStart())}))}})),this.wasm.e.set360Orientation(this.wasm.getPtr(),(null==(t=e.vector)?void 0:t.direction)??0,(null==(i=e.vector)?void 0:i.distanceX)??0,(null==(r=e.vector)?void 0:r.distanceY)??0),this.wasm.preventDirectionSet=!e.vector,!d||e.gridView&&(null==u?void 0:u.current.find((t=>t.id==l.id)))?e.splitScreen?this.wasm.setCanvas(c):this.current.set(c):null==u||u.focus(c,{view:null==(n=l.settings)?void 0:n.view}).then((()=>this.current.set(c)))}};return this.wasm.ready?h():this.wasm.load().then(h).catch((t=>this.printError(t))),c.noImage&&this.loading.set(!1),c}close(t){t.opts.secondaryTo?t.splitEnd():this.wasm.removeCanvas(t)}getOptions(){const t={gallery:{}},e={settings:t,id:this.id},i=(t,e,i)=>{const r=e.split(".");for(let n=0;n<r.length-1;n++)t=t[r[n]];t[r[r.length-1]]=i};for(const r in Ba.STRINGS){const n=Ba.STRINGS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");s&&i(n.r?e:t,o,s)}for(const r in Ba.BOOLEANS){const n=Ba.BOOLEANS[r],s=this.getAttribute(r),o=n.f||r.replace("data-",""),a=null!=s&&""==s||"true"==s;(a||"false"==s)&&i(n.r?e:t,o,n.n?!a:!!a)}for(const r in Ba.NUMBERS){const n=Ba.NUMBERS[r],s=n.f||r.replace("data-","");let o=this.getAttribute(r);void 0!==n.dN&&null==o&&(o=n.dN),null==o||isNaN(Number(o))||i(n.r?e:t,s,Number(o))}for(const r in Ba.ARRAYS){const n=Ba.ARRAYS[r],s=this.getAttribute(r),o=n.f||r.replace("data-","");null!=s&&i(n.r?e:t,o,s.split(",").map((t=>Number(t))))}return t.static&&(t.noUI=t.skipMeta=!0,t.hookEvents=!1),e.settings&&e.grid&&e.grid.indexOf(".")>0&&(e.settings.gallery.archive=e.grid),e}async loadGallery(t,e,i){var r;let n=null==(r=t.settings)?void 0:r.gallery,s=null==n?void 0:n.archive;if(!n||!s)return;const o=t.settings;if(i){const t=await this.getArchiveIndex(s.split(".")[0],e);n.archiveLayerOffset=t.delta,s=t.images.sort("name"==n.sort?(t,e)=>t.title&&e.title?t.title<e.title?-1:t.title>e.title?1:0:0:"-name"==n.sort?(t,e)=>t.title&&e.title?t.title<e.title?1:t.title>e.title?-1:0:0:"-created"==n.sort?(t,e)=>t.created&&e.created?t.created<e.created?1:t.created>e.created?-1:0:0:(t,e)=>t.created&&e.created?t.created<e.created?-1:t.created>e.created?1:0:0).map((t=>`${t.id},${t.width},${t.height},${t.isDeepZoom?"d":""},${t.isPng?"p":t.isWebP?"w":""},${t.tileSize||""}`.replace(/\,+$/,""))).join(";")}const a=s.split(";").map((t=>t.trim()));if(!i){const t=a.filter((t=>t.startsWith("http"))).map((t=>nn(t)));t.length&&await Promise.all(t).then((t=>t.forEach(((t,e)=>{t&&(a[e]=`${t["@id"]},${t.width},${t.height}`)}))))}const l=a.map((t=>t.split(",").map((t=>isNaN(t)?t:Number(t)))));l.forEach(((t,e)=>{e>0&&!t[2]&&t.push(...l[e-1].slice(1))}));const c=t.height=Math.max(...l.map((t=>t[2])));n.type||(n.type="swipe");const d="switch"==n.type||"swipe-full"==n.type||"omni"==n.type,u=n.isSpreads,h=u&&!d?Math.round(l[0][1]/20):0,m=u?n.coverPages??0:0,v=t.width=d?Math.max(...l.map((t=>t[1]*(u?2:1)))):l.reduce(((t,e)=>t+e[1]+h),0);let p=0;t.gallery=l.map(((t,i)=>{var r;return new Qa(this.wasm,{id:t[0],path:e,width:t[1],height:t[2],isDeepZoom:"d"==t[3],isPng:"p"==t[4],isWebP:"w"==t[4],tileSize:t[5]||1024,revision:null==(r=null==n?void 0:n.revisions)?void 0:r[t[0]],settings:{skipMeta:!0,gallery:n}},{isEmbed:d,useParentCamera:d,area:d?u?i-m<0||i==l.length-1&&(i-m)%2==0?[.25,0,.75,1]:(i-m)%2==0?[0,0,.5,1]:[.5,0,1,1]:[0,0,1,1]:[(p+=i>0&&(i<m||(i-m)%2==0)?h:0)/v,(c-t[2])/2/c,(p+=t[1])/v,((c-t[2])/2+t[2])/c]})})),o.pinchZoomOutLimit=!0,t.gallery.length&&(o.view=Xr.fromLegacy(t.gallery[Math.max(0,t.gallery.findIndex((t=>t.id==n.startId)))].opts.area))}async setGrid(t,e){var i;t.settings&&t.grid&&((null==(i=t.settings.gallery)?void 0:i.archive)==t.grid&&(this.gridInfoData=await this.getArchiveIndex(t.grid.split(".")[0],e),t.grid=this.gridInfoData.images.map((t=>oc.getString(t,{cultures:"cultures"in t?t.cultures.join("-"):void 0}))).join(";")),t.width=this.offsetWidth*this.canvas.getRatio(),t.height=this.offsetHeight*this.canvas.getRatio(),t.settings.zoomLimit=15,t.settings.minimap=!1,t.settings.initType="cover",this.removeAttribute("data-grid"))}get lang(){return tr(this._lang)}set lang(t){this.setAttribute("lang",t)}};lc.jsonCache=tn;let cc=lc;cc.Svelte=function(t,e){Ee(e,!0);const[i,r]=sr(),n=()=>rr(jt(S),"$settings",i),s=()=>rr(jt(_),"$info",i),o=()=>rr(jt(A),"$data",i),a=()=>rr(k,"$tour",i),l=()=>rr(L,"$volume",i),c=()=>rr(w,"$visible",i),d=()=>rr(T,"$markerPopup",i),u=()=>rr(E,"$popover",i);let h=cr(e,"noHTML",15),m=cr(e,"noLogo",23,h),v=cr(e,"loadingProgress",7,1),p=cr(e,"error",7,void 0);Te("micrio",e.micrio),Te("markerImages",new Map);const g="markers"==e.micrio.getAttribute("data-ui");g&&h(!0);const f="false"!=e.micrio.getAttribute("data-embeds"),{visible:w,state:b,isMuted:y}=e.micrio,{tour:k,marker:x,popup:T,popover:E}=b;let _=j(void 0),A=j(void 0),S=j(void 0);function I(t,e){if(e)for(let i,r=0;r<e.length;r++)if(e[r].id==t||(i=I(t,e[r].children)))return i??e[r]}let M=j(!1),$=j(void 0);const P=[];e.micrio.current.subscribe((t=>{t&&(nr(Z(_,t.info,!0),"$info",i),nr(Z(S,void 0),"$settings",i),jt(_)&&Wr(jt(_)).then((e=>{var r;e&&(Z(M,!0),nr(Z(S,t.settings,!0),"$settings",i),!jt($)&&(null==(r=e.organisation)?void 0:r.logo)&&Z($,e.organisation,!0))})),nr(Z(A,t.data,!0),"$data",i)&&P.indexOf(t.id)<0&&Wr(jt(A)).then((async i=>{var r,n;if(!i)return;if(P.push(t.id),await Gt().then(Gt),tr(e.micrio.state.popover)||tr(e.micrio.state.marker)||tr(e.micrio.state.tour))return;const s=t.$settings.start;if(s)switch(s.type){case"marker":t.state.marker.set(s.id);break;case"markerTour":const o=null==(r=i.markerTours)?void 0:r.find((t=>t.id==s.id));o&&e.micrio.state.tour.set(o);break;case"tour":const a=null==(n=i.tours)?void 0:n.find((t=>t.id==s.id));a&&e.micrio.state.tour.set(a);break;case"page":const l=I(s.id,i.pages);l&&e.micrio.state.popover.set({contentPage:l,showLangSelect:!0})}})))}));const L=Qi(rr(y,"$isMuted",i)?0:1);Te("volume",L),y.subscribe((t=>L.set(t?0:1))),Te("mediaPaused",Qi(!1));let C=j(!1),R=j(q([]));Te("srt",Qi()).subscribe((t=>setTimeout((()=>{Z(R,t?[t]:[],!0)}),20)));const D=tt((()=>{var t,e;return null==(e=null==(t=n())?void 0:t._360)?void 0:e.video})),F=tt((()=>{var t;return null==(t=jt(D))?void 0:t.src})),z=tt((()=>{var t;return null==(t=n())?void 0:t.omni})),O=tt((()=>{var t;return null==(t=s())?void 0:t.gallery})),N=tt((()=>{var t,e;return null==(e=null==(t=o())?void 0:t.markers)?void 0:e.filter((t=>!!t.positionalAudio))})),V=tt((()=>{var t,e,i;return!!(null==(e=null==(t=o())?void 0:t.music)?void 0:e.items.length)||!!(null==(i=jt(N))?void 0:i.length)})),U=tt((()=>a()||rr(x,"$marker",i))),B=tt((()=>!h()||g)),W=tt((()=>{var t;return!(m()||s()&&h()||(null==(t=n())?void 0:t.noLogo))})),X=tt((()=>{var t;return h()||!jt(W)||(null==(t=n())?void 0:t.noOrgLogo)?void 0:jt($)})),Y=tt((()=>{var t;return!(h()||jt(z)||e.micrio.spaceData||a()||(null==(t=s())?void 0:t.gallery))})),G=tt((()=>!!jt(O)||!!jt(z))),H=tt((()=>!h()&&!!s())),J=tt((()=>{var t;return!h()&&!jt(U)&&(null==(t=n())?void 0:t.showInfo)})),K=tt((()=>{var t;return!h()&&jt(M)&&!(null==(t=n())?void 0:t.noToolbar)}));var Q=gl(),et=ht(Q),it=t=>{const e=tt((()=>!!s().is360));ra(t,{get volume(){return l()},get data(){return o()},get is360(){return jt(e)}})};ri(et,(t=>{jt(V)&&o()&&s()&&t(it)}));var rt=mt(et,2),nt=t=>{po(t,ar({get src(){return jt(F)},get volume(){return l()},is360:!0,get width(){return s().width},get height(){return s().height}},(()=>jt(D))))};ri(rt,(t=>{jt(F)&&s()&&t(nt)}));var st=mt(rt,2),ot=t=>{var e=He();si(ht(e),1,(()=>o().embeds),(t=>t.uuid),((t,e)=>{rl(t,{get embed(){return jt(e)}})})),Ze(t,e)};ri(st,(t=>{f&&o()&&o().embeds&&t(ot)}));var at=mt(st,2),lt=t=>{En(t,{})};ri(at,(t=>{jt(W)&&t(lt)}));var ct=mt(at,2),dt=t=>{ys(t,{})};ri(ct,(t=>{jt(K)&&t(dt)}));var vt=mt(ct,2),pt=t=>{var e=He();si(ht(e),1,c,(t=>t.uuid),((t,e)=>{ul(t,{get image(){return jt(e)}})})),Ze(t,e)};ri(vt,(t=>{jt(B)&&t(pt)}));var gt=mt(vt,2),ft=t=>{var e=He();si(ht(e),1,(()=>c().filter((t=>t.$settings.minimap))),(t=>t.uuid),((t,e)=>{xs(t,{get image(){return jt(e)}})})),Ze(t,e)};ri(gt,(t=>{jt(Y)&&t(ft)}));var wt=mt(gt,2),bt=t=>{const e=tt((()=>jt(V)||!(!jt(F)||!jt(D)||jt(D).muted)));Fs(t,{get hasAudio(){return jt(e)}})};ri(wt,(t=>{jt(H)&&t(bt)}));var yt=mt(wt,2),kt=t=>{var e=ml(),i=ht(e),r=t=>{jo(t,{get images(){return jt(O)},get omni(){return jt(z)}})};ri(i,(t=>{jt(G)&&t(r)}));var n=mt(i,2),s=t=>{An(t,{get organisation(){return jt(X)}})};ri(n,(t=>{jt(X)&&t(s)}));var o=mt(n,2),a=t=>{ca(t,{get info(){return jt(_)},get data(){return jt(A)}})};ri(o,(t=>{jt(J)&&jt(_)&&jt(A)&&t(a)})),Ze(t,e)};ri(yt,(t=>{(jt(G)||jt(X)||jt(J)&&jt(_)&&jt(A))&&t(kt)}));var xt=mt(yt,2),Tt=t=>{var e=vl(),i=ht(e),r=t=>{$o(t,{get marker(){return d()}})};ri(i,(t=>{d()&&t(r)}));var n=mt(i,2),s=t=>{Vo(t,{get tour(){return a()},get noHTML(){return h()},onminimize:t=>Z(C,!t)})};ri(n,(t=>{a()&&t(s)}));var o=mt(n,2),l=t=>{Ea(t,{get popover(){return u()}})};ri(o,(t=>{u()&&t(l)})),Ze(t,e)};ri(xt,(t=>{(d()||a()||u())&&t(Tt)}));var Et=mt(xt,2);si(Et,16,(()=>jt(R)),(t=>t),((t,e)=>{Ys(t,{get src(){return e},get raised(){return jt(C)}})}));var _t=mt(Et,2),At=t=>{var e=pl(),i=ht(e),r=t=>{!function(t,e){var i=da(),r=ut(i);as(r,{name:"error"});var n=mt(r);ae((()=>Qe(n,` ${e.message??""}`))),Ze(t,i)}(t,{get message(){return p()}})};ri(i,(t=>{p()&&t(r)}));var n=mt(i,2),s=t=>{!function(t,e){const i=2*Math.PI*40,r=tt((()=>i*(1-e.progress)));var n=hl();Si(n,"viewBox","0 0 100 100");var s=ut(n);Si(s,"r",40),Si(s,"cx",50),Si(s,"cy",50);var o=mt(s);Si(o,"r",40),Si(o,"cx",50),Si(o,"cy",50),Si(o,"stroke-dasharray",`${i??""}px`),ae((()=>Si(o,"stroke-dashoffset",`${jt(r)??""}px`))),Ni(1,n,(()=>kn),(()=>({delay:500}))),Ni(2,n,(()=>kn)),Ze(t,n)}(t,{get progress(){return v()}})};ri(n,(t=>{v()<1&&t(s)})),Ze(t,e)};ri(_t,(t=>{(p()||v()<1)&&t(At)})),Ze(t,Q);var St=_e({setProps:function(t){"error"in t&&p(t.error),void 0!==t.noHTML&&h(t.noHTML),void 0!==t.noLogo&&m(t.noLogo),void 0!==t.loadingProgress&&v(t.loadingProgress)}});return r(),St},cc.VERSION=Da,customElements.define("micr-io",cc),console.log("%c◈%c Micrio %cv"+Da+" - https://micr.io/","color: #00d4ee","color: #c5ff5b","color: inherit")}();
|
|
25
|
-
})(`html{--micrio-color: #fff;--micrio-color-hover: #45A4E4;--micrio-border-radius: 4px;--micrio-background: rgba(41,41,41,.75);--micrio-background-filter: blur(8px);--micrio-popover-background: rgba(41,41,41,.75);--micrio-scrubber-background: rgba(255,255,255,.25);--micrio-icon-size: 18px;--micrio-text-align: left;--micrio-line-height: 1.5em;--micrio-border-margin: 16px;--micrio-button-size: 48px;--micrio-button-shadow: 0 4px 8px rgba(0,0,0,.33);--micrio-marker-size: 16px;--micrio-marker-text-color: #fff;--micrio-marker-text-shadow: 0px 2px 4px rgba(0,0,0,.6);--micrio-marker-highlight: #00d4ee;--micrio-marker-color: #fff;--micrio-marker-border-radius: 100%;--micrio-marker-border-color: rgba(255,255,255,.2);--micrio-marker-border-size: 8px;--micrio-marker-icon: none;--micrio-marker-transition: background-color .25s ease, opacity .15s ease, border-width .15s ease, width .15s ease, height .15s ease;--micrio-popup-shadow: 0 8px 16px rgba(0,0,0,.33);--micrio-popup-padding: 16px;--micrio-progress-bar-background: rgba(255,255,255,.25);--micrio-progress-bar-height: 4px;--micrio-waypoint-size: 120px}micr-io[data-light-mode]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25);--micrio-popover-background: rgba(211,211,211,.75);--micrio-scrubber-background: rgba(255,255,255,.5)}@media (prefers-color-scheme: light){micr-io[data-auto-scheme]{--micrio-color: #000;--micrio-color-hover: #196DA6;--micrio-background: rgba(255,255,255,.66);--micrio-progress-bar-background: rgba(0,0,0,.25);--micrio-popover-background: rgba(211,211,211,.75)}}@media (max-width: 500px){html{--micrio-border-margin: 5px;--micrio-button-size: 48px}}micr-io{display:block;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:hidden;position:relative;width:100%;height:100%;min-height:200px;backface-visibility:hidden;-webkit-backface-visibility:hidden;background-repeat:no-repeat;background-position:center center;background-size:contain;container-type:size}micr-io,micr-io button{font-family:var(--micrio-font-family, inherit);font-size:var(--micrio-font-size, inherit);background-color:var(--micrio-background-color, transparent)}micr-io h3{font-weight:600}micr-io[dir=rtl]{--micrio-text-align: right}canvas.micrio{display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important;backface-visibility:hidden;user-select:none;-webkit-touch-callout:none;-webkit-user-select:none}micr-io:not([static]){overscroll-behavior:none}micr-io[data-hooked]:not([data-panning])>canvas.micrio{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none}micr-io[data-panning]{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}micr-io[data-hooked][data-can-pan]>canvas.micrio{-ms-touch-action:pan-y;touch-action:pan-y;overscroll-behavior:initial}micr-io>.micrio-grid{position:absolute;top:0;left:0;width:100%;height:100%;display:grid;grid-auto-flow:row dense;grid-gap:0;will-change:transform;transform-origin:left top;--translate: none;--scale: 1;transform:var(--translate) scale3d(var(--scale),var(--scale),1)}micr-io>.micrio-grid>button{background:transparent;border:none;padding:0;margin:0;cursor:pointer;grid-area:auto / auto / span 1 / span 1}a.micrio-logo{position:absolute;top:calc(var(--micrio-border-margin) * 2);left:calc(var(--micrio-border-margin) * 2);z-index:2;width:22px;height:22px;transition:transform .25s ease;display:block;cursor:pointer}a.micrio-logo:hover{transform:rotate3d(0,0,1,-90deg)}a.micrio-logo:before,a.micrio-logo:after{display:block;content:"";position:absolute;transform:rotate3d(0,0,1,45deg);will-change:transform;box-sizing:unset}a.micrio-logo:before{border:3px solid #00d4ee;width:16px;height:16px}a.loading.micrio-logo:before{animation:micrio-logo-spin 1s infinite ease-out}a.micrio-logo:after{top:8px;left:8px;width:6px;height:6px;background:#c5ff5b;outline:1px solid #c5ff5b}a.loading.micrio-logo:after{animation:micrio-logo-spin .5s infinite ease-out}@keyframes micrio-logo-spin{0%{transform:rotate3d(0,0,1,45deg)}to{transform:rotate3d(0,0,1,135deg)}}a.micrio-logo-org{position:absolute;top:calc(var(--micrio-border-margin) * 2);right:calc(var(--micrio-border-margin) * 2);z-index:1;display:block}img.micrio-logo-org{max-height:64px;display:block}.svelte-fa-base{height:1em;overflow:visible;transform-origin:center;vertical-align:-.125em}.svelte-fa-fw{text-align:center;width:1.25em}.svelte-fa-pull-left.micrio-fa{float:left}.svelte-fa-pull-right.micrio-fa{float:right}.svelte-fa-size-lg.micrio-fa{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa{font-size:.875em}.svelte-fa-size-xs.micrio-fa{font-size:.75em}.spin.micrio-fa{animation:micrio-fa-spin 2s 0s infinite linear}.pulse.micrio-fa{animation:micrio-fa-spin 1s infinite steps(8)}@keyframes micrio-fa-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.svelte-fa-layers.micrio-fa--layers{display:inline-block;position:relative}.svelte-fa-layers.micrio-fa--layers .svelte-fa{position:absolute;bottom:0;left:0;right:0;top:0;margin:auto;text-align:center}.svelte-fa-layers.micrio-fa--layers .svelte-fa-layers-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.svelte-fa-layers.micrio-fa--layers .svelte-fa-layers-text span{display:inline-block}.svelte-fa-pull-left.micrio-fa--layers{float:left}.svelte-fa-pull-right.micrio-fa--layers{float:right}.svelte-fa-size-lg.micrio-fa--layers{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa--layers{font-size:.875em}.svelte-fa-size-xs.micrio-fa--layers{font-size:.75em}.container.micrio-fa--layers--text{display:inline-block;height:auto}.svelte-fa-size-lg.micrio-fa--layers--text{font-size:1.33333em;line-height:.75em;vertical-align:-.225em}.svelte-fa-size-sm.micrio-fa--layers--text{font-size:.875em}.svelte-fa-size-xs.micrio-fa--layers--text{font-size:.75em}menu.micrio-menu{padding:0;margin:0;transition:background .2s ease,box-shadow .2s ease}.micrio-menu-action.micrio-menu{font-family:inherit;background:transparent;display:block;border:none;padding:0 24px;font-size:.9em;cursor:pointer;text-decoration:none;border-radius:0;color:inherit;text-shadow:inherit;box-sizing:border-box;text-align:center}@media (max-width: 500px){menu.micrio-menu{font-size:1em}.micrio-menu-action.micrio-menu{width:100%;margin-bottom:10px;padding:6px 0}strong.micrio-menu>svg{display:none}.items>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){font-size:1em}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){font-size:1.5em;border-bottom:1px solid rgba(255,255,255,.5);margin-top:24px}}@media (min-width: 501px){div.items.micrio-menu{max-height:calc(100vh - 160px);overflow-y:auto;overflow-x:hidden}menu.micrio-toolbar>menu.micrio-menu{color:#fff;margin-right:var(--micrio-border-margin);border-radius:var(--micrio-border-radius);overflow:hidden}menu.micrio-toolbar>menu.micrio-menu:hover,menu.micrio-toolbar>menu.micrio-menu:focus-within{-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-background);box-shadow:var(--micrio-button-shadow)}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){position:relative}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu)>strong:where(.micrio-menu){padding:5px;margin:0 -5px}menu.micrio-toolbar>menu.micrio-menu:hover .micrio-menu-action:where(.micrio-menu),menu.micrio-toolbar>menu.micrio-menu:focus-within .micrio-menu-action:where(.micrio-menu){text-shadow:none;color:var(--micrio-color)}strong.micrio-menu>svg{margin-left:10px;line-height:2px}menu.micrio-menu{float:left;position:relative}menu.micrio-menu:not(:focus-within):not(:hover) .items:where(.micrio-menu){display:none}.micrio-menu-action.micrio-menu{height:var(--micrio-button-size);line-height:var(--micrio-button-size);width:100%;text-align:var(--micrio-text-align);white-space:pre;font-weight:600}.items menu.micrio-menu{float:none}.items .micrio-menu-action.micrio-menu{width:100%}.micrio-menu-action.micrio-menu:hover,.micrio-menu-action.micrio-menu:focus{text-shadow:none!important;color:var(--micrio-color-hover)!important}}.micrio-button{margin:0;padding:0 8px;cursor:pointer;box-sizing:border-box;display:inline-block;vertical-align:bottom;transition:opacity .25s ease;font:inherit;font-size:90%;position:relative;touch-action:none;color:var(--micrio-color);background:var(--micrio-button-background, var(--micrio-background, none)) var(--background, none) center center no-repeat;background-size:24px;min-width:var(--micrio-button-size);height:var(--micrio-button-size);line-height:var(--micrio-button-size);border:none;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);text-decoration:none}.micrio-button:hover{outline:none}.micrio-button.transparent.micrio-button,.micrio-button.transparent.micrio-button:hover{background-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.micrio-button>*{transition:opacity .25s ease}.micrio-button:disabled{pointer-events:none;cursor:default}.micrio-button:disabled>*{opacity:.4}.micrio-button.no-click.micrio-button{pointer-events:none}img.micrio-button{display:block;margin:0 auto;pointer-events:none;max-width:100%;max-height:100%}.micrio-button>*{height:var(--micrio-icon-size)!important;width:var(--micrio-icon-size);font-size:var(--micrio-icon-size);fill:var(--micrio-color);display:block;margin:0 auto}.micrio-button.active.micrio-button{color:var(--micrio-color-hover)}.micrio-button.active.micrio-button svg{fill:var(--micrio-color-hover)}@media (hover: hover){.micrio-button:hover{background-color:var(--micrio-button-background-hover, var(--micrio-button-background, var(--micrio-background)));color:var(--micrio-color-hover)}.micrio-button:hover svg{fill:var(--micrio-color-hover);stroke:var(--micrio-color-hover)}.micrio-button:focus{outline:1px solid var(--micrio-color-hover)}}menu.micrio-toolbar{position:absolute;top:calc(var(--micrio-border-margin) - (var(--micrio-button-size) / 2 - 27px));left:var(--micrio-border-margin);margin:0;padding:0;color:#fff;text-shadow:1px 1px 2px #000;transition:transform .25s ease;z-index:1}@media (max-width: 500px){.micrio-button.toggle{position:absolute;top:var(--micrio-border-margin);left:0;height:34px;width:34px;box-shadow:none;z-index:2}.micrio-button.toggle.indent{left:35px}menu.micrio-toolbar{transform:translateZ(0);width:100%;height:100%;background:#000000bf;top:0;left:0;padding:32px 0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);z-index:1}menu.micrio-toolbar:not(.shown){transform:translate3d(calc(-100% - var(--micrio-border-margin) * 2),0,0)}}@media (min-width: 501px){menu.indent.micrio-toolbar{margin-left:calc(var(--micrio-border-margin) * 2 + 25px)}menu.micrio-toolbar>.micrio-menu:not(:hover)>button.micrio-menu{margin-bottom:-15px}}canvas.micrio-minimap{position:absolute;bottom:var(--micrio-border-margin);right:5px;transform-origin:right bottom;display:block;background-size:100%;transition:opacity .2s ease;cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none;border-radius:var(--micrio-border-radius)}canvas:not(:hover).hidden.micrio-minimap{opacity:0;pointer-events:none}canvas.dragging.micrio-minimap{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}canvas.controls.micrio-minimap{right:calc(var(--micrio-border-margin) + var(--micrio-button-size) + 8px)}@media (max-width: 800px){canvas.micrio-minimap{transform:scale3d(.5,.5,1);pointer-events:none;right:65px}}div.micrio-button-group{box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-button-background, var(--micrio-background, none))}div.micrio-button-group:empty{display:none}div.micrio-button-group>.micrio-button{display:block;box-shadow:none;--micrio-background-filter: none;--micrio-button-background: none}div.micrio-button-group .micrio-button{border-radius:0}div.micrio-button-group .micrio-button:first-child{border-radius:var(--micrio-border-radius) var(--micrio-border-radius) 0 0}div.micrio-button-group .micrio-button:last-child{border-radius:0 0 var(--micrio-border-radius) var(--micrio-border-radius)}@media (max-width: 500px){div.micrio-button-group>*{height:calc(var(--micrio-button-size) - 4px)}div.micrio-button-group .micrio-button:first-child{padding-top:0}div.micrio-button-group .micrio-button:last-child{padding-bottom:0}}aside.micrio-controls{position:absolute;right:var(--micrio-border-margin);bottom:var(--micrio-border-margin);padding:0;margin:0;transition:transform .5s ease,opacity .5s ease;direction:rtl}aside.primary.micrio-controls:not(.portrait){right:calc(50% + var(--micrio-border-margin))}aside.primary.portrait.micrio-controls{bottom:calc(50% + var(--micrio-border-margin))}micr-io[data-switching]>aside.micrio-controls,micr-io[data-tour-active]>aside.micrio-controls{opacity:0;pointer-events:none}aside.micrio-controls>menu,aside.micrio-controls>button{padding:0;margin:8px 0;display:block;width:var(--micrio-button-size)}menu.popout.micrio-controls{padding:0;width:var(--micrio-button-size);height:var(--micrio-button-size);white-space:pre;direction:rtl;pointer-events:none;box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter)}menu.popout.micrio-controls:focus-within{pointer-events:all}menu.popout.micrio-controls button{pointer-events:all;transition:border-radius .2s ease,opacity .2s ease;--micrio-button-shadow: none;--micrio-background-filter: none}menu.popout.micrio-controls:hover>button:first-child{border-radius:0 var(--micrio-border-radius) var(--micrio-border-radius) 0}menu.popout.micrio-controls>*:not(:nth-child(1)){display:inline-block;padding:0;transition:opacity .2s ease;border-radius:0}menu.popout.micrio-controls>button:last-child{border-radius:var(--micrio-border-radius) 0 0 var(--micrio-border-radius)}menu.popout.micrio-controls:not(:focus-within)>*:not(:nth-child(1)){pointer-events:none;opacity:0}div.micrio-subtitles{position:absolute;bottom:50px;left:50vw;left:50cqw;transform:translate3d(-50%,0,0);text-align:center;color:#fff;width:100vw;width:100cqw;pointer-events:none;transition:transform .2s ease}div.raised.micrio-subtitles{transform:translate3d(-50%,calc(-1 * var(--micrio-button-size)),0)}div.micrio-subtitles p:where(.micrio-subtitles){margin:.5em 0;background-color:#0009;padding:0 14px;-webkit-box-decoration-break:clone;box-decoration-break:clone;white-space:pre-wrap;display:inline;text-shadow:2px 2px 1px #0005;font-size:2.5em;line-height:inherit}@media (max-width: 640px){div.micrio-subtitles{width:95vw;width:95cqw;font-size:.7em}}div.container.micrio-progress-bar{display:flex;width:auto;color:var(--micrio-color);background:var(--micrio-background);line-height:8px;flex:1;align-items:center;cursor:default}div.bars.micrio-progress-bar{flex:1;display:flex;height:var(--micrio-progress-bar-height);background:var(--micrio-progress-bar-background);position:relative}div.bars.micrio-progress-bar>*{height:100%;width:100%;display:block;box-sizing:border-box;position:relative;cursor:pointer;overflow:hidden}div.bars.micrio-progress-bar>*:before{display:block;position:absolute;content:" ";background:var(--micrio-color);height:100%;pointer-events:none;width:var(--progress, 0%);will-change:width}div.bars.micrio-progress-bar:after{content:"";position:absolute;display:block;width:16px;height:16px;left:var(--progress);top:50%;transform:translate3d(-50%,-50%,0);background-color:var(--micrio-color);pointer-events:none;border-radius:8px}div.time.micrio-progress-bar{display:block;font-size:90%;min-width:50px;text-align:center;padding:0 10px;font-variant-numeric:tabular-nums}aside.micrio-media-controls{cursor:default;position:relative;display:flex;align-items:center;margin:0;background:var(--micrio-background)}aside.micrio-media-controls>button{border-radius:0;margin:0;border:none}aside.micrio-media-controls>button:last-child{margin-right:16px}aside.micrio-media-controls>*{--micrio-button-background: none;--micrio-background-filter: none;--micrio-button-shadow: none}:fullscreen>aside.micrio-media-controls{position:absolute;bottom:5px;left:50%;transform:translate(-50%);width:430px;max-width:90vw;max-width:90cqw;border-radius:var(--micrio-border-radius)}svg.micrio-media-controls{pointer-events:none;position:absolute;left:-1px;top:-1px;width:42px;height:42px;transform:rotate(-90deg)}circle.micrio-media-controls{stroke-width:2;stroke:#fff;fill:transparent;stroke-dasharray:119.4 119.4;transition:stroke-dashoffset .25s linear;transform-origin:center center}figure.micrio-media{display:block;margin:0;width:100%;position:relative}figure.micrio-media div:where(.micrio-media){cursor:pointer}figure.micrio-media div.videotour:where(.micrio-media){display:flex}figure.micrio-media:fullscreen div:where(.micrio-media){width:100vw;height:100vh;display:flex;flex-direction:column}figure.micrio-media:fullscreen div:where(.micrio-media)>:first-child{flex:1}.marker-popup>figure.micrio-media>div:where(.micrio-media){width:100%}iframe.micrio-media,video.micrio-media{display:block;max-width:unset}figure.is360.micrio-media{position:absolute;bottom:5px;width:360px;left:50%;transform:translate(-50%)}figure.is360.micrio-media video:where(.micrio-media){display:none;width:200px;height:200px}iframe.hooked.micrio-media{pointer-events:none}figcaption.micrio-media{font-style:italic;margin:.5em 1em;text-align:center;font-size:90%;color:var(--micrio-color)}:not(.micrio-popover)>figure.micrio-media>figcaption:where(.micrio-media)>*{margin:0}.micrio-popover figure.micrio-media{margin:0}aside.micrio-media{width:100%;display:flex}aside.inside.micrio-media{position:absolute;transform:translateY(-100%)}div.show-play.micrio-media{position:fixed;top:0;left:0;width:100%;height:100%;cursor:pointer;background:#0008;display:flex;align-items:center;justify-content:center}div.show-play.micrio-media>button.micrio-button{transform:scale(2)}figure.micrio-media:not(.media-micrio) button.micrio-button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter: none;--micrio-button-shadow: none}figure.media-micrio.micrio-media{text-align:var(--micrio-text-align)}article.micrio-article{text-align:var(--micrio-text-align);line-height:var(--micrio-line-height, 1.5em)}article.micrio-article>*:first-child{margin-top:0}article.micrio-article>*:last-child{margin-bottom:0}article.micrio-article p a{color:var(--micrio-color-hover, inherit);word-wrap:break-word}main.micrio-marker-content{position:relative;padding:var(--micrio-popup-padding);padding-bottom:0;overflow-y:auto;-webkit-user-select:text;user-select:text;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);box-sizing:border-box;text-align:var(--micrio-text-align)}main.micrio-marker-content>*{--micrio-button-background: none;--micrio-background-filter: none;--micrio-button-shadow: none}main.micrio-marker-content .micrio-progress-bar.container{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}main.micrio-marker-content::-webkit-scrollbar{background-color:transparent;width:10px}main.micrio-marker-content::-webkit-scrollbar-thumb{background:var(--micrio-color);border-radius:var(--micrio-border-radius);margin-top:10px}main.empty.micrio-marker-content{width:auto}main.micrio-marker-content h1:where(.micrio-marker-content){font-size:1.5em;font-weight:600;margin:0 0 1.25em}main.micrio-marker-content>figure.micrio-media{margin:calc(-1 * var(--micrio-popup-padding));margin-bottom:0;width:auto;--micrio-background: transparent}main.micrio-marker-content>figure.micrio-media:not(.media-video):not(:last-child)>*:last-child:not(figcaption){margin-bottom:var(--micrio-popup-padding);background:var(--micrio-background);padding:0 var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media.media-video{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media>div>aside.micrio-media{--micrio-background: transparent}main.micrio-marker-content>article:last-child{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content p{white-space:pre-line}main.micrio-marker-content figure.hidden{display:none}main.micrio-marker-content figure>div.micrio-media>*:first-child{width:100%}button.micrio-marker-content{padding:0;margin:0 calc(-1 * var(--micrio-popup-padding)) var(--micrio-popup-padding) calc(-1 * var(--micrio-popup-padding))}button.micrio-marker-content:disabled{cursor:default}figcaption.micrio-marker-content{padding:10px;font-style:italic;font-size:.9em;margin-bottom:var(--micrio-popup-padding);text-align:center}section.micrio-marker-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));column-gap:5px;row-gap:5px;justify-items:center;margin-bottom:var(--micrio-popup-padding)}section.micrio-marker-content button:where(.micrio-marker-content){color:inherit;border:none;display:block;width:100%;cursor:pointer;margin:0}section.micrio-marker-content figure:where(.micrio-marker-content){padding:0;margin:0}section.micrio-marker-content img:where(.micrio-marker-content){width:100%;display:block;object-fit:cover}@media (max-width: 500px){section.micrio-marker-content{display:block;float:right;width:100px;margin-left:var(--micrio-border-margin)}section.micrio-marker-content>button:where(.micrio-marker-content):not(:nth-child(1)){display:none}section.micrio-marker-content figcaption:where(.micrio-marker-content){display:none}}div.micrio-marker-popup{display:block;cursor:auto;pointer-events:all;position:absolute;top:var(--micrio-border-margin);left:var(--micrio-border-margin)}div.destroying.micrio-marker-popup{pointer-events:none}div.micrio-marker-popup>main{max-height:80vh;max-height:80cqh}aside.micrio-marker-popup{padding:var(--micrio-border-margin)}aside.micrio-marker-popup progress:where(.micrio-marker-popup){display:none}@media (min-width: 501px){div.micrio-marker-popup{width:440px;min-width:20%}aside.micrio-marker-popup{position:absolute;left:100%;top:0;padding-top:0}aside.micrio-marker-popup>.micrio-button{padding:0;margin:0 0 8px;display:block}}div.micrio-marker-popup>main>*:not(h3){transition-property:margin-top,margin-bottom,height,opacity;transition-duration:.5s;transition-timing-function:ease;overflow:hidden}div.minimized.micrio-marker-popup>main>*:not(h3){margin-top:0;margin-bottom:0;opacity:0}@media (max-width: 500px){aside.micrio-marker-popup{position:relative;padding:0;display:flex;flex-direction:row-reverse;margin-bottom:var(--micrio-border-margin);align-items:center}aside.micrio-marker-popup progress:where(.micrio-marker-popup){display:block;flex:1;opacity:0;pointer-events:none}aside.micrio-marker-popup .micrio-tour-controls{margin-bottom:0!important;display:flex}aside.micrio-marker-popup .micrio-button{display:block!important;height:var(--micrio-button-size);padding:0!important;margin:0 0 0 8px}div.micrio-marker-popup{width:auto;right:var(--micrio-border-margin);display:flex;bottom:calc(var(--micrio-button-size) + 2 * var(--micrio-border-margin));flex-direction:column;justify-content:space-between}div.micrio-marker-popup>main{max-height:40vh}div.micrio-marker-popup>main>*:not(h3){overflow:visible}}button.tour-step.micrio-marker-popup{height:auto;line-height:normal;vertical-align:middle;cursor:default}ol.micrio-serial-tour{position:absolute;left:0;bottom:75px;color:var(--micrio-color);text-shadow:var(--micrio-marker-text-shadow);list-style-type:decimal-leading-zero;margin:0}ol.micrio-serial-tour>li:where(.micrio-serial-tour){height:1.5em;white-space:pre;transition:height .25s ease,opacity .25s .25s ease}ol.micrio-serial-tour li.active:where(.micrio-serial-tour){font-weight:700}.minimized>ol.micrio-serial-tour>li:where(.micrio-serial-tour):not(.active){height:0em;opacity:0;transition:height .25s .25s ease,opacity .25s ease}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour){font:inherit;background:none;border:none;display:inline;color:inherit;text-shadow:inherit;cursor:pointer}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour):hover{text-decoration:underline}aside.micrio-media-controls.micrio-serial-tour>figure.micrio-media{display:none}div.micrio-tour{position:absolute;bottom:var(--micrio-border-margin);left:50%;max-width:calc(100% - var(--micrio-border-margin) * 2);transform:translate(-50%);box-sizing:border-box;display:flex;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background-color:var(--micrio-button-background, var(--micrio-background, none));padding:0;transition:transform .2s ease}div:not(:hover).minimized.micrio-tour{transform:translate3d(-50%,calc(100% + var(--micrio-border-margin)),0);pointer-events:none}.serial-tour.micrio-tour>*{--micrio-background: none}.serial-tour.minimized.micrio-tour{transform:translate3d(0,calc(100% + var(--micrio-border-margin)),0)}.serial-tour.micrio-tour,.video-tour.micrio-tour{width:500px}div.micrio-tour>*{--micrio-button-background: none}div.micrio-tour button{margin:0;border:none;border-radius:0;white-space:pre;--micrio-background-filter: none;--micrio-button-shadow: none}article.scroll-tour.micrio-tour{position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;scroll-snap-type:y mandatory}button.micrio-button.scroll-tour-end{position:absolute;top:5px;right:5px}article.micrio-tour>div.micrio-marker-popup{margin:20vh 50px 50vh;margin:20cqh 50px 50cqh;scroll-snap-align:center;position:relative!important}article.micrio-tour>div.micrio-marker-popup:nth-child(2n){margin-left:auto}article.micrio-tour>div.micrio-marker-popup>aside{display:none}div.micrio-dial{position:absolute;bottom:var(--micrio-border-margin);width:320px;max-width:calc(100vw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));max-width:calc(100cqw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));left:50%;transform:translate(-50%);height:calc(var(--micrio-button-size) * .6);touch-action:none;background-color:transparent;cursor:w-resize;overflow:hidden}div.micrio-dial:before,div.micrio-dial:after{content:"";display:block;width:100%;position:absolute;background-position:var(--micrio-dial-offset, 0px)}div.micrio-dial:before{height:50%;top:25%;background-image:repeating-linear-gradient(to right,#8888 0%,#8888 .5%,transparent 1%,transparent 2.5%)}div.micrio-dial:after{height:100%;background-image:repeating-linear-gradient(to right,#fff8 0%,#fff8 .5%,transparent 1%,transparent 20%)}span.micrio-dial{position:absolute;display:block;bottom:0;line-height:calc(var(--micrio-button-size) * .6);left:50%;transform:translate(calc(-50% + 5px));color:var(--micrio-color);opacity:.85;pointer-events:none;text-shadow:1px 1px 3px #000,-1px -1px 3px #000;font-size:smaller}ul.micrio-gallery{position:absolute;bottom:var(--micrio-border-margin);left:50%;transform:translate(-50%);display:flex;list-style-type:none;background:var(--micrio-background);border-radius:var(--micrio-border-radius);padding:0 16px;margin:0;color:var(--micrio-color);transition:opacity .25s ease;max-width:calc(100vw - 50px);max-width:calc(100cqw - 50px);width:520px;touch-action:none}@media (max-width: 500px){ul.micrio-gallery{left:5px;right:52px;width:auto;transform:none}div.hidden.micrio-gallery>ul:where(.micrio-gallery){transition-delay:.25s}}li.micrio-gallery{flex:1;transition:none;padding:0;line-height:var(--micrio-button-size);font-size:32px;text-align:center;width:0;transition:opacity .25s ease;opacity:.5;display:block;height:48px;position:relative}li.active.micrio-gallery{transition-duration:0s;opacity:1}li.micrio-gallery>button:where(.micrio-gallery){border:none;color:inherit;cursor:pointer;position:absolute;left:50%;transform:translate3d(-50%,0,0);height:48px;width:100%;min-width:48px;pointer-events:none;background:none;padding:0}li.hover.micrio-gallery>button:where(.micrio-gallery){pointer-events:all}@media (hover: hover){li.hover.micrio-gallery{transition-duration:0s;opacity:1}}button.micrio-gallery:not(.bullet){position:absolute;width:var(--micrio-button-size);height:var(--micrio-button-size);box-sizing:border-box;background:var(--micrio-scrubber-background);border:none;border-radius:var(--micrio-border-radius);touch-action:none;transition:left .15s ease,background-color .2s ease;transform:translate(-50%)}ul.micrio-gallery>button:where(.micrio-gallery){top:0;left:0;cursor:ew-resize}button.angular.micrio-gallery{bottom:42px;left:50%;color:#444;font-size:32px;line-height:42px;padding:0;cursor:move}button.micrio-gallery:not(.bullet):hover{background:#eee8}button:not(.bullet).dragging.micrio-gallery{transition:none}div.micrio-gallery{display:contents;transition:opacity .5s ease}div.hidden.micrio-gallery:not(:hover)>*,div.micrio-gallery>button.gallery-btn:disabled{opacity:0;pointer-events:none}div.micrio-gallery>button.gallery-btn{position:absolute;top:50%;transform:translateY(-50%)}div.micrio-gallery>button.gallery-btn.arrow-left{left:var(--micrio-border-margin)}div.micrio-gallery>button.gallery-btn.arrow-right{right:var(--micrio-border-margin)}details.micrio-details{position:absolute;bottom:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);font-size:.9em;max-width:410px;-webkit-user-select:text;user-select:text;white-space:normal;transition:all .5s ease;box-sizing:border-box;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius)}details.micrio-details summary:where(.micrio-details){cursor:pointer;list-style:none}details.micrio-details summary:where(.micrio-details)::-webkit-details-marker{display:none}details.micrio-details small:where(.micrio-details){display:block;font-style:italic;font-weight:400}details.micrio-details>:where(.micrio-details){margin:0;overflow:hidden;text-overflow:ellipsis}details.micrio-details a{color:var(--micrio-color-hover, inherit)}details.micrio-details button{position:absolute;top:0;left:calc(100% + 8px)}@media (max-width: 600px){details.micrio-details{max-width:calc(100% - 10px)}details.micrio-details:not([open]) cite:where(.micrio-details){display:none}details.micrio-details:not([open]) summary:where(.micrio-details)::marker,details.micrio-details:not([open]) summary:where(.micrio-details)::-webkit-details-marker{display:inline-block;content:"?";font-size:20px;font-weight:700;line-height:20px;margin-right:5px}details.micrio-details button{position:absolute;top:auto;left:auto;right:0;bottom:calc(100% + 8px)}}div.micrio-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000bf;color:#fff;border:1px solid white;border-radius:5px;padding:10px;text-align:center;white-space:pre-wrap;-webkit-user-select:text;user-select:text;line-height:24px;z-index:10}div.micrio-error svg{vertical-align:middle;height:24px;width:24px;fill:var(--micrio-color);margin-right:10px}@media screen and (max-width: 520px){div.micrio-error{box-sizing:border-box;width:90%}}figure.micrio-micrio-gallery{position:relative}micr-io.micrio-micrio-gallery{background:transparent;display:block;width:100%;height:100%}micr-io.micrio-micrio-gallery ul.micrio-gallery{--micrio-border-margin: 16px}figcaption.micrio-micrio-gallery{position:absolute;top:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);max-width:410px;box-sizing:border-box;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius)}@media (min-width: 501px){micr-io.micrio-micrio-gallery:not(:fullscreen)>aside{position:fixed}}@media (max-width: 501px){figcaption.micrio-micrio-gallery{max-width:calc(100% - 3 * var(--micrio-border-margin) - var(--micrio-button-size))}}dialog.micrio-popover::backdrop{color:#fff;animation:micrio-popover-fadeInBg .2s forwards;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}@keyframes micrio-popover-fadeInBg{0%{background:#0000}to{background:var(--micrio-popover-background)}}@keyframes micrio-popover-fadeIn{0%{opacity:0}to{opacity:1}}dialog.micrio-popover{animation:micrio-popover-fadeIn .5s forwards;background:transparent;border:none;overflow:visible;padding:0;pointer-events:all;max-width:90vw;max-height:90vh;max-width:90cqw;max-height:90cqh}dialog.micrio-popover div.micrio-media>*:first-child{border-radius:var(--micrio-border-radius);overflow:hidden}dialog.micrio-popover div.micrio-media>aside{--micrio-background: none;--micrio-button-background: none}dialog.page.article.micrio-popover figure.media-video iframe{width:100%}aside.micrio-popover{--micrio-background-filter: none;position:absolute;z-index:1}dialog.micrio-popover:not(.article){display:flex}dialog.micrio-popover:not(.article) figure>div.micrio-media{height:100%}@media (min-width: 640px){aside.micrio-popover{display:block;left:100%;margin-left:var(--micrio-border-margin);top:0}aside.inside.micrio-popover{right:0;left:auto;top:0;margin-left:0;margin-top:var(--micrio-border-margin);margin-right:var(--micrio-border-margin)}aside.micrio-popover:not(.inside){z-index:2;position:absolute;top:0;left:100%}aside.micrio-popover>.micrio-button{padding:0;margin:0 0 8px;display:block}dialog.micrio-popover:not(.article){width:calc(85vw - 56px);height:47.8125vw;width:calc(85cqw - 56px);height:47.8125cqw}dialog.micrio-popover>main{width:25vw;width:25cqw;min-width:unset;max-width:320px}dialog.micrio-popover>main>h1{margin-right:55px}}@media (max-width: 639px){aside.micrio-popover{position:fixed;top:var(--micrio-border-margin);right:var(--micrio-border-margin)}aside.micrio-popover .micrio-button{display:inline-block!important;border-radius:var(--micrio-border-radius)!important;height:var(--micrio-button-size);box-shadow:var(--micrio-button-shadow);padding:0!important;margin-left:8px}dialog.micrio-popover:not(.article){width:100%;height:100%;flex-direction:column}dialog.micrio-popover:not(.article) figure.micrio-media{flex:1}}dialog.micrio-popover>figure{flex:1;position:relative;margin:0}dialog.micrio-popover>figure>div.micrio-media>*:first-child{width:100%;height:calc(100% - var(--micrio-button-size))}dialog.micrio-popover>figure>div.micrio-media>micr-io{height:100%!important}@media (min-aspect-ratio: 16/9){dialog.micrio-popover:not(.article){height:75vh;width:calc(16 / 9 * 75vh);height:75cqh;width:calc(16 / 9 * 75cqh)}}@media (max-width: 639px){dialog.micrio-popover div.micrio-media>*:first-child{border-radius:0}dialog.micrio-popover:not(.article)>*:first-child{height:50vh;height:50cqh;flex-direction:column;justify-content:center}dialog.micrio-popover:not(.article)>figure:first-child{flex:none;display:flex;flex-direction:column}}dialog.article.micrio-popover>article{text-shadow:none;color:var(--micrio-color);background:var(--micrio-background);padding:20px;box-sizing:border-box;max-height:calc(90cqh - 48px);max-height:calc(90vh - 48px);overflow-x:hidden;overflow-y:auto;border-radius:var(--micrio-border-radius)}@media (min-width: 640px){dialog.article.micrio-popover{width:540px}}dialog.article.micrio-popover h2:where(.micrio-popover){text-align:center}dialog.article.micrio-popover article img{width:100%;height:auto}menu.micrio-popover{margin:10px 0;padding:0;list-style:none}menu.micrio-popover>.micrio-button{margin-right:10px}menu.right.micrio-popover{text-align:right}menu.right.micrio-popover>.micrio-button{margin:0 0 0 10px}dialog.gallery.micrio-popover{width:100%;height:100%;max-width:unset;max-height:unset}div.micrio-marker{position:absolute;display:block;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--scale, 1),var(--scale, 1),1);top:0;left:0;will-change:transform}div.micrio-marker:not(.cluster):not(.no-fade){animation:micrio-marker-fadeIn .25s;animation-fill-mode:forwards}div.overlapped.micrio-marker{display:none}@keyframes micrio-marker-fadeIn{0%{opacity:0}to{opacity:1}}div.behind.micrio-marker{pointer-events:none;opacity:0!important}div.mat3d.micrio-marker{transform:var(--mat);top:50%;left:50%;transform-style:preserve-3d}div.mat3d.micrio-marker>button:where(.micrio-marker){position:absolute;transform:translate3d(-50%,-50%,0)}button.micrio-marker{display:block;width:var(--micrio-marker-size);height:var(--micrio-marker-size);color:var(--micrio-marker-text-color);position:relative;cursor:pointer;font:inherit;padding:0;margin:0;background:transparent none center center no-repeat;background-image:var(--micrio-marker-icon);background-size:contain;border:none}div.micrio-marker:not(.cluster) label:where(.micrio-marker){position:absolute;top:50%;left:100%;text-align:var(--micrio-text-align);cursor:pointer;transform:translateY(-50%);padding-left:10px;max-width:170px;width:max-content;white-space:pre-wrap;font-size:90%;font-weight:600;line-height:1em;text-shadow:var(--micrio-marker-text-shadow);opacity:0;pointer-events:none;transition:opacity .1s ease}div.micrio-marker:hover{z-index:2}.show-titles>div.micrio-marker label:where(.micrio-marker),div.micrio-marker:hover label:where(.micrio-marker){opacity:1}@media (max-width: 640px){div.micrio-marker:not(.cluster) label:where(.micrio-marker){font-size:12px}}.show-titles>div.micrio-marker label:where(.micrio-marker){pointer-events:all}label.static.micrio-marker{transform:translate(-50%,4px) scale3d(calc(1 / var(--scale, 1)),calc(1 / var(--scale, 1)),1)}div.default.micrio-marker button:where(.micrio-marker){box-sizing:content-box;background-clip:content-box;border-radius:var(--micrio-marker-border-radius);border:var(--micrio-marker-border-size) solid var(--micrio-marker-border-color);transition:var(--micrio-marker-transition);background-color:var(--micrio-marker-color)}div.default.micrio-marker:hover,div.default.hovered.micrio-marker,div.default.opened.micrio-marker{z-index:1}div.default.micrio-marker:hover button:where(.micrio-marker),div.default.hovered.micrio-marker button:where(.micrio-marker),div.default.opened.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-highlight);border-width:0;width:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2);height:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2)}div.has-icon.micrio-marker button:where(.micrio-marker){--micrio-marker-icon: none}div.has-custom-icon.micrio-marker{--micrio-marker-size: 32px}div.default.has-icon.micrio-marker button:where(.micrio-marker){color:#fff;width:calc(var(--micrio-marker-size) + 24px);height:calc(var(--micrio-marker-size) + 24px);background-color:var(--micrio-marker-border-color);border:none}div.default.has-icon.micrio-marker button:where(.micrio-marker)>svg{margin:0 auto}div.default.has-icon.opened.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.hovered.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.micrio-marker:hover button:where(.micrio-marker)>svg{color:var(--micrio-marker-highlight)}div.default.has-custom-icon.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-color)}div.default.has-custom-icon.opened.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.hovered.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.micrio-marker:hover button:where(.micrio-marker){background-color:var(--micrio-marker-highlight, var(--micrio-marker-color))}div.cluster.micrio-marker button:where(.micrio-marker){border:2px solid var(--micrio-marker-color);background:var(--micrio-cluster-marker-background, #fff);color:var(--micrio-cluster-marker-color, #000);width:calc(var(--micrio-marker-size) + 12px);height:calc(var(--micrio-marker-size) + 12px);border-radius:100%;box-sizing:content-box}div.cluster.micrio-marker:hover button:where(.micrio-marker){background:var(--micrio-marker-highlight, #fff);border-color:var(--micrio-marker-highlight, #fff)}div.cluster.micrio-marker label:where(.micrio-marker){pointer-events:none;display:none}div.micrio-marker img:where(.micrio-marker){max-width:100%;max-height:100%;display:block;margin:auto}div.micrio-waypoint{display:block;position:absolute;transform-style:preserve-3d;transform:var(--matrix);width:0;height:0;top:50%;left:50%;--micrio-bb: var(--micrio-button-background);--micrio-bbh: var(--micrio-button-background-hover)}div.micrio-waypoint>button{--micrio-button-background: var(--micrio-waypoint-background, var(--micrio-bb));--micrio-button-background-hover: var(--micrio-waypoint-background-hover, var(--micrio-bbh));--micrio-button-size: var(--micrio-waypoint-size);--micrio-border-radius: var(--micrio-waypoint-border-radius, 100%);--micrio-icon-size: var(--micrio-waypoint-icon-size, calc(var(--micrio-button-size) - 50px));transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1);pointer-events:all;transition:background-color .25s ease,opacity .25s ease,border-color .25s ease,transform .25s ease;border:var(--micrio-waypoint-border-size, var(--micrio-marker-border-size)) solid var(--micrio-waypoint-border-color, var(--micrio-marker-border-color));margin:0}div.micrio-waypoint>button>svg{pointer-events:none;margin:0 auto}div.micrio-waypoint:hover>button,div.active.micrio-waypoint>button{transition:background-color .25s ease,opacity .25s ease,transform .25s ease;transform:translate3d(-50%,-50%,0) scale3d(.6,.6,1)}div.clicked.micrio-waypoint>button{animation:micrio-waypoint-pulse .75s ease infinite alternate}@keyframes micrio-waypoint-pulse{0%{transform:translate3d(-50%,-50%,0) scale3d(.5,.5,1)}to{transform:translate3d(-50%,-50%,0) scale3d(.75,.75,1)}}.embed-container.micrio-embed{position:absolute;display:block;top:0;left:0;transform:translate3d(calc(var(--x, 0) - 50%),calc(var(--y, 0) - 50%),0) scale3d(var(--s),var(--s),1);opacity:var(--opacity, 1);direction:ltr;will-change:transform,opacity}.embed3d.micrio-embed{top:50%;left:50%}.embed-container.no-events.micrio-embed{pointer-events:none}.embed-container.micrio-embed>:where(.micrio-embed){cursor:pointer}.embed-container.micrio-embed>*{position:absolute;transform:translate3d(-50%,-50%,0) scale3d(var(--scale, 1),var(--scale, 1),1)}.embed-container.micrio-embed>*:not(button){width:auto!important}.embed-container.micrio-embed:not(.no-events)>*{pointer-events:all}.embed-container.behind.micrio-embed>*{pointer-events:none}.embed-container.micrio-embed>img:where(.micrio-embed){max-width:none}.embed-container.micrio-embed>button{--scale: 1;--ratio: 1;padding:0;margin:0;background:transparent;border:none;width:100px;aspect-ratio:var(--ratio)}div.micrio-markers{pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;will-change:width,height,top,left,opacity;perspective:inherit}div.micrio-markers:empty{display:none}div.micrio-markers>*{pointer-events:all}div.inactive.micrio-markers>*{pointer-events:none}div.is360.micrio-markers{transition:opacity .25s}div.is360.inactive.micrio-markers{opacity:0}aside.micrio-markers{pointer-events:none}aside.micrio-markers section:where(.micrio-markers){position:absolute;top:0;bottom:0;width:10vw;width:10cqw;min-width:200px;font-size:1em;font-weight:500;line-height:1em;color:var(--micrio-marker-color);display:flex;flex-direction:column}aside.micrio-markers section:where(.micrio-markers):nth-child(1){left:10px;align-items:flex-end}aside.micrio-markers section:where(.micrio-markers):nth-child(2){right:10px;align-items:flex-start}aside.micrio-markers section:where(.micrio-markers) article:where(.micrio-markers){flex:1;padding:10px;max-height:30vh;max-height:30cqh;display:flex;align-items:center}aside.micrio-markers section:where(.micrio-markers) label:where(.micrio-markers){pointer-events:all;cursor:pointer;padding:10px;max-width:160px;opacity:.75;transition:opacity .25s ease,color .25s ease;text-shadow:var(--micrio-marker-text-shadow)}label.hover.micrio-markers{color:var(--micrio-marker-highlight);opacity:1}aside.micrio-markers section:where(.micrio-markers):nth-child(1) article:where(.micrio-markers){justify-content:right}aside.micrio-markers section:where(.micrio-markers):nth-child(1) label:where(.micrio-markers){text-align:right}svg.micrio-markers{width:100%;height:100%;pointer-events:none;position:absolute}svg.micrio-markers line:where(.micrio-markers){stroke:var(--micrio-marker-highlight);stroke-width:2}svg.micrio-markers line:where(.micrio-markers):not(.hovered){stroke:var(--micrio-marker-color);stroke-dasharray:10px;stroke-width:1;opacity:.75}svg.micrio-progress-circle{position:absolute;top:50%;left:50%;pointer-events:none;transform:translate(-50%,-50%) rotate(-90deg);z-index:10}circle.micrio-progress-circle{transition:stroke-dashoffset .25s ease}
|
|
26
|
-
`,C,M))})();
|
|
24
|
+
!function(){"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");var t={},e=Symbol(),i=(Symbol("filename"),"http://www.w3.org/2000/svg"),r=Array.isArray,s=Array.prototype.indexOf,n=Array.prototype.includes,a=Array.from,o=Object.keys,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,d=Object.prototype,u=Array.prototype,m=Object.getPrototypeOf,f=Object.isExtensible;function p(t){return"function"==typeof t}var g=()=>{};function v(){var t,e;return{promise:new Promise((i,r)=>{t=i,e=r}),resolve:t,reject:e}}function w(t,e){if(Array.isArray(t))return t;if(void 0===e||!(Symbol.iterator in t))return Array.from(t);const i=[];for(const r of t)if(i.push(r),i.length===e)break;return i}var b=1024,y=2048,k=4096,T=8192,_=32768,x=1<<25,E=65536,S=1<<19,A=1<<25,M=65536,I=1<<21,$=1<<23,P=Symbol("$state"),L=Symbol("legacy props"),C=Symbol(""),R=(Symbol("proxy path"),Symbol("hmr anchor"),new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"}),D=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function F(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function O(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function z(t){console.warn("https://svelte.dev/e/hydration_mismatch")}var N,V=!1;function U(t){V=t}function B(e){if(null===e)throw z(),t;return N=e}function W(){return B(Te(N))}function q(e){if(V){if(null!==Te(N))throw z(),t;N=e}}function X(t=1){if(V){for(var e=t,i=N;e--;)i=Te(i);N=i}}function Y(t=!0){for(var e=0,i=N;;){if(8===i.nodeType){var r=i.data;if("]"===r){if(0===e)return i;e-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(e+=1)}var s=Te(i);t&&i.remove(),i=s}}function j(e){if(!e||8!==e.nodeType)throw z(),t;return e.data}function G(t){return t===this.v}function H(t,e){return t!=t?e==e:t!==e||null!==t&&"object"==typeof t||"function"==typeof t}function Z(t){return!H(t,this.v)}var J=null;function K(t){J=t}function Q(t){return rt("getContext").get(t)}function tt(t,e){return rt("setContext").set(t,e),e}function et(t,e=!1,i){J={p:J,i:!1,c:null,e:null,s:t,x:null,r:ci,l:null}}function it(t){var e=J,i=e.e;if(null!==i)for(var r of(e.e=null,i))ze(r);return void 0!==t&&(e.x=t),e.i=!0,J=e.p,t??{}}function rt(t){return null===J&&F(),J.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}(J)||void 0)}var st=[];function nt(){var t=st;st=[],function(t){for(var e=0;e<t.length;e++)t[e]()}(t)}function at(t){if(0===st.length&&!Mt){var e=st;queueMicrotask(()=>{e===st&&nt()})}st.push(t)}function ot(){for(;st.length>0;)nt()}function ct(t){var e=ci;if(null===e)return ni.f|=$,t;if(!(32768&e.f||4&e.f))throw t;lt(t,e)}function lt(t,e){for(;null!==e;){if(128&e.f){if(!(32768&e.f))throw t;try{return void e.b.error(t)}catch(i){t=i}}e=e.parent}throw t}var ht=-7169;function dt(t,e){t.f=t.f&ht|e}function ut(t){512&t.f||null===t.deps?dt(t,b):dt(t,k)}function mt(t){if(null!==t)for(const e of t)2&e.f&&65536&e.f&&(e.f^=M,mt(e.deps))}function ft(t,e,i){2048&t.f?e.add(t):4096&t.f&&i.add(t),mt(t.deps),dt(t,b)}function pt(t,e,i){if(null==t)return e(void 0),i&&i(void 0),g;const r=$i(()=>t.subscribe(e,i));return r.unsubscribe?()=>r.unsubscribe():r}var gt=[];function vt(t,e=g){let i=null;const r=new Set;function s(e){if(H(t,e)&&(t=e,i)){const e=!gt.length;for(const i of r)i[1](),gt.push(i,t);if(e){for(let t=0;t<gt.length;t+=2)gt[t][0](gt[t+1]);gt.length=0}}}function n(e){s(e(t))}return{set:s,update:n,subscribe:function(a,o=g){const c=[a,o];return r.add(c),1===r.size&&(i=e(s,n)||g),a(t),()=>{r.delete(c),0===r.size&&i&&(i(),i=null)}}}}function wt(t){let e;return pt(t,t=>e=t)(),e}var bt=!1,yt=Symbol();function kt(t,e,i){const r=i[e]??={store:null,source:ae(void 0),unsubscribe:g};if(r.store!==t&&!(yt in i))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=g;else{var s=!0;r.unsubscribe=pt(t,t=>{s?r.source.v=t:oe(r.source,t)}),s=!1}return t&&yt in i?wt(t):Ai(r.source)}function Tt(t,e,i){let r=i[e];return r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=g),t}function _t(){const t={};return[t,function(){Fe(()=>{for(var e in t)t[e].unsubscribe();c(t,yt,{enumerable:!1,value:!0})})}]}var xt=new Set,Et=null,St=null,At=null,Mt=!1,It=!1,$t=null,Pt=null,Lt=0,Ct=1,Rt=class t{id=Ct++;current=new Map;previous=new Map;#t=new Set;#e=new Set;#i=new Set;#r=new Map;#s=new Map;#n=null;#a=[];#o=[];#c=new Set;#l=new Set;#h=new Map;#d=new Set;is_fork=!1;#u=!1;#m=new Set;#f(){return this.is_fork||this.#s.size>0}#p(){for(const i of this.#m)for(const r of i.#s.keys()){for(var t=!1,e=r;null!==e.parent;){if(this.#h.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(t){this.#h.has(t)||this.#h.set(t,{d:[],m:[]}),this.#d.delete(t)}unskip_effect(t,e=t=>this.schedule(t)){var i=this.#h.get(t);if(i){for(var r of(this.#h.delete(t),i.d))dt(r,y),e(r);for(r of i.m)dt(r,k),e(r)}this.#d.add(t)}#g(){if(Lt++>1e3&&(xt.delete(this),function(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){0,lt(t,At)}}()),!this.#f()){for(const t of this.#c)this.#l.delete(t),dt(t,y),this.schedule(t);for(const t of this.#l)dt(t,k),this.schedule(t)}const e=this.#a;this.#a=[],this.apply();var i=$t=[],r=[],s=Pt=[];for(const t of e)try{this.#v(t,i,r)}catch(o){throw Bt(t),o}if(Et=null,s.length>0){var n=t.ensure();for(const t of s)n.schedule(t)}if($t=null,Pt=null,this.#f()||this.#p()){this.#w(r),this.#w(i);for(const[t,e]of this.#h)Ut(t,e)}else{0===this.#r.size&&xt.delete(this),this.#c.clear(),this.#l.clear();for(const t of this.#t)t(this);this.#t.clear(),Ot(r),Ot(i),this.#n?.resolve()}var a=Et;if(this.#a.length>0){const t=a??=this;t.#a.push(...this.#a.filter(e=>!t.#a.includes(e)))}null!==a&&(xt.add(a),a.#g())}#v(t,e,i){t.f^=b;for(var r=t.first;null!==r;){var s=r.f,n=!!(96&s);if(!(n&&1024&s||8192&s||this.#h.has(r))&&null!==r.fn){n?r.f^=b:4&s?e.push(r):yi(r)&&(16&s&&this.#l.add(r),Ei(r));var a=r.first;if(null!==a){r=a;continue}}for(;null!==r;){var o=r.next;if(null!==o){r=o;break}r=r.parent}}}#w(t){for(var e=0;e<t.length;e+=1)ft(t[e],this.#c,this.#l)}capture(t,i,r=!1){t.v===e||this.previous.has(t)||this.previous.set(t,t.v),8388608&t.f||(this.current.set(t,[i,r]),St?.set(t,i)),this.is_fork||(t.v=i)}activate(){Et=this}deactivate(){Et=null,St=null}flush(){try{It=!0,Et=this,this.#g()}finally{Lt=0,At=null,$t=null,Pt=null,It=!1,Et=null,St=null,ie.clear()}}discard(){for(const t of this.#e)t(this);this.#e.clear(),this.#i.clear(),xt.delete(this)}register_created_effect(t){this.#o.push(t)}#b(){for(const l of xt){var t=l.id<this.id,e=[];for(const[r,[s,n]]of this.current){if(l.current.has(r)){var i=l.current.get(r)[0];if(!t||s===i)continue;l.current.set(r,[s,n])}e.push(r)}var r=[...l.current.keys()].filter(t=>!this.current.has(t));if(0===r.length)t&&l.discard();else if(e.length>0){if(t)for(const t of this.#d)l.unskip_effect(t,t=>{4194320&t.f?l.schedule(t):l.#w([t])});l.activate();var s=new Set,n=new Map;for(var a of e)zt(a,r,s,n);n=new Map;var o=[...l.current.keys()].filter(t=>!this.current.has(t)||this.current.get(t)[0]!==t);for(const t of this.#o)155648&t.f||!Nt(t,o,n)||(4194320&t.f?(dt(t,y),l.schedule(t)):l.#c.add(t));if(l.#a.length>0){for(var c of(l.apply(),l.#a))l.#v(c,[],[]);l.#a=[]}l.deactivate()}}for(const l of xt)l.#m.has(this)&&(l.#m.delete(this),0!==l.#m.size||l.#f()||(l.activate(),l.#g()))}increment(t,e){let i=this.#r.get(e)??0;if(this.#r.set(e,i+1),t){let t=this.#s.get(e)??0;this.#s.set(e,t+1)}}decrement(t,e,i){let r=this.#r.get(e)??0;if(1===r?this.#r.delete(e):this.#r.set(e,r-1),t){let t=this.#s.get(e)??0;1===t?this.#s.delete(e):this.#s.set(e,t-1)}this.#u||i||(this.#u=!0,at(()=>{this.#u=!1,this.flush()}))}transfer_effects(t,e){for(const i of t)this.#c.add(i);for(const i of e)this.#l.add(i);t.clear(),e.clear()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}on_fork_commit(t){this.#i.add(t)}run_fork_commit_callbacks(){for(const t of this.#i)t(this);this.#i.clear()}settled(){return(this.#n??=v()).promise}static ensure(){if(null===Et){const e=Et=new t;It||(xt.add(Et),Mt||at(()=>{Et===e&&e.flush()}))}return Et}apply(){St=null}schedule(t){if(At=t,!(t.b?.is_pending&&16777228&t.f)||32768&t.f){for(var e=t;null!==e.parent;){var i=(e=e.parent).f;if(!(null===$t||e!==ci||null!==ni&&2&ni.f))return;if(96&i){if(!(1024&i))return;e.f^=b}}this.#a.push(e)}else t.b.defer_effect(t)}};function Dt(t){var e=Mt;Mt=!0;try{var i;for(t&&(null===Et||Et.is_fork||Et.flush(),i=t());;){if(ot(),null===Et)return i;Et.flush()}}finally{Mt=e}}var Ft=null;function Ot(t){var e=t.length;if(0!==e){for(var i=0;i<e;){var r=t[i++];if(!(24576&r.f)&&yi(r)&&(Ft=new Set,Ei(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&He(r),Ft?.size>0)){ie.clear();for(const t of Ft){if(24576&t.f)continue;const e=[t];let i=t.parent;for(;null!==i;)Ft.has(i)&&(Ft.delete(i),e.push(i)),i=i.parent;for(let t=e.length-1;t>=0;t--){const i=e[t];24576&i.f||Ei(i)}}Ft.clear()}}Ft=null}}function zt(t,e,i,r){if(!i.has(t)&&(i.add(t),null!==t.reactions))for(const s of t.reactions){const t=s.f;2&t?zt(s,e,i,r):4194320&t&&!(2048&t)&&Nt(s,e,r)&&(dt(s,y),Vt(s))}}function Nt(t,e,i){const r=i.get(t);if(void 0!==r)return r;if(null!==t.deps)for(const s of t.deps){if(n.call(e,s))return!0;if(2&s.f&&Nt(s,e,i))return i.set(s,!0),!0}return i.set(t,!1),!1}function Vt(t){Et.schedule(t)}function Ut(t,e){if(!(32&t.f&&1024&t.f)){2048&t.f?e.d.push(t):4096&t.f&&e.m.push(t),dt(t,b);for(var i=t.first;null!==i;)Ut(i,e),i=i.next}}function Bt(t){dt(t,b);for(var e=t.first;null!==e;)Bt(e),e=e.next}var Wt=class{parent;is_pending=!1;transform_error;#y;#k=V?N:null;#T;#_;#x;#E=null;#S=null;#A=null;#M=null;#I=0;#$=0;#P=!1;#c=new Set;#l=new Set;#L=null;#C=function(t){let e,i=0,r=se(0);return()=>{De()&&(Ai(r),Ve(()=>(0===i&&(e=$i(()=>t(()=>he(r)))),i+=1,()=>{at(()=>{i-=1,0===i&&(e?.(),e=void 0,he(r))})})))}}(()=>(this.#L=se(this.#I),()=>{this.#L=null}));constructor(t,e,i,r){this.#y=t,this.#T=e,this.#_=t=>{var e=ci;e.b=this,e.f|=128,i(t)},this.parent=ci.b,this.transform_error=r??this.parent?.transform_error??(t=>t),this.#x=Be(()=>{if(V){const t=this.#k;W();const e="[!"===t.data;if(t.data.startsWith("[?")){const e=JSON.parse(t.data.slice(2));this.#R(e)}else e?this.#D():this.#F()}else this.#O()},589824),V&&(this.#y=N)}#F(){try{this.#E=qe(()=>this.#_(this.#y))}catch(t){this.error(t)}}#R(t){const e=this.#T.failed;e&&(this.#A=qe(()=>{e(this.#y,()=>t,()=>()=>{})}))}#D(){const t=this.#T.pending;t&&(this.is_pending=!0,this.#S=qe(()=>t(this.#y)),at(()=>{var t=this.#M=document.createDocumentFragment(),e=ye();t.append(e),this.#E=this.#z(()=>qe(()=>this.#_(e))),0===this.#$&&(this.#y.before(t),this.#M=null,Ze(this.#S,()=>{this.#S=null}),this.#N(Et))}))}#O(){try{if(this.is_pending=this.has_pending_snippet(),this.#$=0,this.#I=0,this.#E=qe(()=>{this.#_(this.#y)}),this.#$>0){var t=this.#M=document.createDocumentFragment();ti(this.#E,t);const e=this.#T.pending;this.#S=qe(()=>e(this.#y))}else this.#N(Et)}catch(e){this.error(e)}}#N(t){this.is_pending=!1,t.transfer_effects(this.#c,this.#l)}defer_effect(t){ft(t,this.#c,this.#l)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#T.pending}#z(t){var e=ci,i=ni,r=J;li(this.#x),oi(this.#x),K(this.#x.ctx);try{return Rt.ensure(),t()}catch(s){return ct(s),null}finally{li(e),oi(i),K(r)}}#V(t,e){this.has_pending_snippet()?(this.#$+=t,0===this.#$&&(this.#N(e),this.#S&&Ze(this.#S,()=>{this.#S=null}),this.#M&&(this.#y.before(this.#M),this.#M=null))):this.parent&&this.parent.#V(t,e)}update_pending_count(t,e){this.#V(t,e),this.#I+=t,this.#L&&!this.#P&&(this.#P=!0,at(()=>{this.#P=!1,this.#L&&ce(this.#L,this.#I)}))}get_effect_pending(){return this.#C(),Ai(this.#L)}error(t){if(!this.#T.onerror&&!this.#T.failed)throw t;Et?.is_fork?(this.#E&&Et.skip_effect(this.#E),this.#S&&Et.skip_effect(this.#S),this.#A&&Et.skip_effect(this.#A),Et.on_fork_commit(()=>{this.#U(t)})):this.#U(t)}#U(t){this.#E&&(je(this.#E),this.#E=null),this.#S&&(je(this.#S),this.#S=null),this.#A&&(je(this.#A),this.#A=null),V&&(B(this.#k),X(),B(Y()));var e=this.#T.onerror;let i=this.#T.failed;var r=!1,s=!1;const n=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,s&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#A&&Ze(this.#A,()=>{this.#A=null}),this.#z(()=>{this.#O()}))},a=r=>{try{s=!0,e?.(r,n),s=!1}catch(t){lt(t,this.#x&&this.#x.parent)}i&&(this.#A=this.#z(()=>{try{return qe(()=>{var t=ci;t.b=this,t.f|=128,i(this.#y,()=>r,()=>n)})}catch(t){return lt(t,this.#x.parent),null}}))};at(()=>{var e;try{e=this.transform_error(t)}catch(i){return void lt(i,this.#x&&this.#x.parent)}null!==e&&"object"==typeof e&&"function"==typeof e.then?e.then(a,t=>lt(t,this.#x&&this.#x.parent)):a(e)})}};function qt(t,e,i,r){const s=jt;var n=t.filter(t=>!t.settled);if(0!==i.length||0!==n.length){var a=ci,o=function(){var t=ci,e=ni,i=J,r=Et;return function(s=!0){li(t),oi(e),K(i),!s||16384&t.f||(r?.activate(),r?.apply())}}(),c=1===n.length?n[0].promise:n.length>1?Promise.all(n.map(t=>t.promise)):null;if(0!==i.length){var l=Yt();c?c.then(()=>{o(),d(),Xt()}):d()}else c.then(()=>h(e.map(s)))}else r(e.map(s));function h(t){o();try{r(t)}catch(e){16384&a.f||lt(e,a)}Xt()}function d(){Promise.all(i.map(t=>Gt(t))).then(t=>h([...e.map(s),...t])).catch(t=>lt(t,a)).finally(()=>l())}}function Xt(t=!0){li(null),oi(null),K(null),t&&Et?.deactivate()}function Yt(){var t=ci,e=t.b,i=Et,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),(s=!1)=>{e.update_pending_count(-1,i),i.decrement(r,t,s)}}function jt(t){null!==ci&&(ci.f|=S);const i={ctx:J,deps:null,effects:null,equals:G,f:2050,fn:t,reactions:null,rv:0,v:e,wv:0,parent:ci,ac:null};return i}function Gt(t,i,r){let s=ci;null===s&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var n=void 0,a=se(e);var o=!ni,c=new Map;return function(t){Re(4718592,t)}(()=>{var e=ci;var i=v();n=i.promise;try{Promise.resolve(t()).then(i.resolve,i.reject).finally(Xt)}catch(d){i.reject(d),Xt()}var r=Et;if(o){if(32768&e.f)var l=Yt();if(s.b.is_rendered())c.get(r)?.reject(R),c.delete(r);else{for(const t of c.values())t.reject(R);c.clear()}c.set(r,i)}const h=(t,i=void 0)=>{if(l&&l(i===R),!(i===R||16384&e.f)){if(r.activate(),i)a.f|=$,ce(a,i);else{8388608&a.f&&(a.f^=$),ce(a,t);for(const[t,e]of c){if(c.delete(t),t===r)break;e.reject(R)}0}r.deactivate()}};i.promise.then(h,t=>h(null,t||"unknown"))}),Fe(()=>{for(const t of c.values())t.reject(R)}),new Promise(t=>{!function e(i){function r(){i===n?t(a):e(n)}i.then(r,r)}(n)})}function Ht(t){const e=jt(t);return di(e),e}function Zt(t){const e=jt(t);return e.equals=Z,e}function Jt(t){var e=t.effects;if(null!==e){t.effects=null;for(var i=0;i<e.length;i+=1)je(e[i])}}function Kt(t){var e,i=ci,r=t.parent;if(!ri&&null!==r&&24576&r.f)return console.warn("https://svelte.dev/e/derived_inert"),t.v;li(r);try{t.f&=-65537,Jt(t),e=Ti(t)}finally{li(i)}return e}function Qt(t){var e=Kt(t);t.equals(e)||(t.wv=bi(),Et?.is_fork&&null!==t.deps||(null!==Et?Et.capture(t,e,!0):t.v=e,null!==t.deps))?ri||(null!==St?(De()||Et?.is_fork)&&St.set(t,e):ut(t)):dt(t,b)}function te(t){if(null!==t.effects)for(const e of t.effects)e.teardown&&Ei(e)}var ee=new Set,ie=new Map;var re=!1;function se(t,e){var i={f:0,v:t,reactions:null,equals:G,rv:0,wv:0};return i}function ne(t,e){const i=se(t);return di(i),i}function ae(t,e=!1,i=!0){const r=se(t);return e||(r.equals=Z),r}function oe(t,e,i=!1){null!==ni&&(!ai||131072&ni.f)&&4325394&ni.f&&(null===hi||!n.call(hi,t))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let r=i?ue(e):e;return ce(t,r,Pt)}function ce(t,e,i=null){if(!t.equals(e)){ie.set(t,ri?e:t.v);var r=Rt.ensure();if(r.capture(t,e),2&t.f){const e=t;2048&t.f&&Kt(e),null===St&&ut(e)}t.wv=bi(),de(t,y,i),null!==ci&&1024&ci.f&&!(96&ci.f)&&(null===fi?function(t){fi=t}([t]):fi.push(t)),!r.is_fork&&ee.size>0&&!re&&le()}return e}function le(){re=!1;for(const t of ee)1024&t.f&&dt(t,k),yi(t)&&Ei(t);ee.clear()}function he(t){oe(t,t.v+1)}function de(t,e,i){var r=t.reactions;if(null!==r)for(var s=r.length,n=0;n<s;n++){var a=r[n],o=a.f;0;var c=0===(o&y);if(c&&dt(a,e),2&o){var l=a;St?.delete(l),65536&o||(512&o&&(a.f|=M),de(l,k,i))}else if(c){var h=a;16&o&&null!==Ft&&Ft.add(h),null!==i?i.push(h):Vt(h)}}}function ue(t){if("object"!=typeof t||null===t||P in t)return t;const i=m(t);if(i!==d&&i!==u)return t;var s=new Map,n=r(t),a=ne(0),o=vi,c=t=>{if(vi===o)return t();var e=ni,i=vi;oi(null),wi(o);var r=t();return oi(e),wi(i),r};n&&s.set("length",ne(t.length));return new Proxy(t,{defineProperty(t,e,i){"value"in i&&!1!==i.configurable&&!1!==i.enumerable&&!1!==i.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=s.get(e);return void 0===r?c(()=>{var t=ne(i.value);return s.set(e,t),t}):oe(r,i.value,!0),!0},deleteProperty(t,i){var r=s.get(i);if(void 0===r){if(i in t){const t=c(()=>ne(e));s.set(i,t),he(a)}}else oe(r,e),he(a);return!0},get(i,r,n){if(r===P)return t;var a=s.get(r),o=r in i;if(void 0!==a||o&&!l(i,r)?.writable||(a=c(()=>{var t=ne(ue(o?i[r]:e));return t}),s.set(r,a)),void 0!==a){var h=Ai(a);return h===e?void 0:h}return Reflect.get(i,r,n)},getOwnPropertyDescriptor(t,i){var r=Reflect.getOwnPropertyDescriptor(t,i);if(r&&"value"in r){var n=s.get(i);n&&(r.value=Ai(n))}else if(void 0===r){var a=s.get(i),o=a?.v;if(void 0!==a&&o!==e)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(t,i){if(i===P)return!0;var r=s.get(i),n=void 0!==r&&r.v!==e||Reflect.has(t,i);return!((void 0!==r||null!==ci&&(!n||l(t,i)?.writable))&&(void 0===r&&(r=c(()=>{var r=ne(n?ue(t[i]):e);return r}),s.set(i,r)),Ai(r)===e))&&n},set(t,i,r,o){var h=s.get(i),d=i in t;if(n&&"length"===i)for(var u=r;u<h.v;u+=1){var m=s.get(u+"");void 0!==m?oe(m,e):u in t&&(m=c(()=>ne(e)),s.set(u+"",m))}void 0===h?d&&!l(t,i)?.writable||(oe(h=c(()=>ne(void 0)),ue(r)),s.set(i,h)):(d=h.v!==e,oe(h,c(()=>ue(r))));var f=Reflect.getOwnPropertyDescriptor(t,i);if(f?.set&&f.set.call(o,r),!d){if(n&&"string"==typeof i){var p=s.get("length"),g=Number(i);Number.isInteger(g)&&g>=p.v&&oe(p,g+1)}he(a)}return!0},ownKeys(t){Ai(a);var i=Reflect.ownKeys(t).filter(t=>{var i=s.get(t);return void 0===i||i.v!==e});for(var[r,n]of s)n.v===e||r in t||i.push(r);return i},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function me(t){try{if(null!==t&&"object"==typeof t&&P in t)return t[P]}catch{}return t}function fe(t,e){return Object.is(me(t),me(e))}var pe,ge,ve,we;new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function be(){if(void 0===pe){pe=window,document,ge=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;ve=l(e,"firstChild").get,we=l(e,"nextSibling").get,f(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),f(i)&&(i.__t=void 0)}}function ye(t=""){return document.createTextNode(t)}function ke(t){return ve.call(t)}function Te(t){return we.call(t)}function _e(t,e){if(!V)return ke(t);var i=ke(N);if(null===i)i=N.appendChild(ye());else if(e&&3!==i.nodeType){var r=ye();return i?.before(r),B(r),r}return e&&Me(i),B(i),i}function xe(t,e=!1){if(!V){var i=ke(t);return i instanceof Comment&&""===i.data?Te(i):i}if(e){if(3!==N?.nodeType){var r=ye();return N?.before(r),B(r),r}Me(N)}return N}function Ee(t,e=1,i=!1){let r=V?N:t;for(var s;e--;)s=r,r=Te(r);if(!V)return r;if(i){if(3!==r?.nodeType){var n=ye();return null===r?s?.after(n):r.before(n),B(n),n}Me(r)}return B(r),r}function Se(t){t.textContent=""}function Ae(t,e,i){let r=i?{is:i}:void 0;return document.createElementNS(e??"http://www.w3.org/1999/xhtml",t,r)}function Me(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;null!==e&&3===e.nodeType;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Ie(t,e){if(e){const e=document.body;t.autofocus=!0,at(()=>{document.activeElement===e&&t.focus()})}}var $e=!1;function Pe(t,e,i,r=!0){for(var s of(r&&i(),e))t.addEventListener(s,i);Fe(()=>{for(var r of e)t.removeEventListener(r,i)})}function Le(t){var e=ni,i=ci;oi(null),li(null);try{return t()}finally{oi(e),li(i)}}function Ce(t){null===ci&&(null===ni&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),ri&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function Re(t,e){var i=ci;null!==i&&8192&i.f&&(t|=T);var r={ctx:J,deps:null,nodes:null,f:t|y|512,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};Et?.register_created_effect(r);var s=r;if(4&t)null!==$t?$t.push(r):Rt.ensure().schedule(r);else if(null!==e){try{Ei(r)}catch(s){throw je(r),s}null!==s.deps||null!==s.teardown||null!==s.nodes||s.first!==s.last||524288&s.f||(s=s.first,16&t&&65536&t&&null!==s&&(s.f|=E))}if(null!==s&&(s.parent=i,null!==i&&function(t,e){var i=e.last;null===i?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}(s,i),null!==ni&&2&ni.f&&!(64&t))){var n=ni;(n.effects??=[]).push(s)}return r}function De(){return null!==ni&&!ai}function Fe(t){const e=Re(8,null);return dt(e,b),e.teardown=t,e}function Oe(t){Ce();var e=ci.f;if(ni||!(32&e)||32768&e)return ze(t);var i=J;(i.e??=[]).push(t)}function ze(t){return Re(1048580,t)}function Ne(t){return Re(4,t)}function Ve(t,e=0){return Re(8|e,t)}function Ue(t,e=[],i=[],r=[]){qt(r,e,i,e=>{Re(8,()=>t(...e.map(Ai)))})}function Be(t,e=0){var i=Re(16|e,t);return i}function We(t,e=0){var i=Re(16777216|e,t);return i}function qe(t){return Re(524320,t)}function Xe(t){var e=t.teardown;if(null!==e){const t=ri,i=ni;si(!0),oi(null);try{e.call(null)}finally{si(t),oi(i)}}}function Ye(t,e=!1){var i=t.first;for(t.first=t.last=null;null!==i;){const t=i.ac;null!==t&&Le(()=>{t.abort(R)});var r=i.next;64&i.f?i.parent=null:je(i,e),i=r}}function je(t,e=!0){var i=!1;(e||262144&t.f)&&null!==t.nodes&&null!==t.nodes.end&&(Ge(t.nodes.start,t.nodes.end),i=!0),dt(t,x),Ye(t,e&&!i),xi(t,0);var r=t.nodes&&t.nodes.t;if(null!==r)for(const n of r)n.stop();Xe(t),t.f^=x,t.f|=16384;var s=t.parent;null!==s&&null!==s.first&&He(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Ge(t,e){for(;null!==t;){var i=t===e?null:Te(t);t.remove(),t=i}}function He(t){var e=t.parent,i=t.prev,r=t.next;null!==i&&(i.next=r),null!==r&&(r.prev=i),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Ze(t,e,i=!0){var r=[];Je(t,r,!0);var s=()=>{i&&je(t),e&&e()},n=r.length;if(n>0){var a=()=>--n||s();for(var o of r)o.out(a)}else s()}function Je(t,e,i){if(!(8192&t.f)){t.f^=T;var r=t.nodes&&t.nodes.t;if(null!==r)for(const t of r)(t.is_global||i)&&e.push(t);for(var s=t.first;null!==s;){var n=s.next;if(!(64&s.f))Je(s,e,!!(!!(65536&s.f)||!!(32&s.f)&&!!(16&t.f))&&i);s=n}}}function Ke(t){Qe(t,!0)}function Qe(t,e){if(8192&t.f){t.f^=T,1024&t.f||(dt(t,y),Rt.ensure().schedule(t));for(var i=t.first;null!==i;){var r=i.next;Qe(i,!!(!!(65536&i.f)||!!(32&i.f))&&e),i=r}var s=t.nodes&&t.nodes.t;if(null!==s)for(const t of s)(t.is_global||e)&&t.in()}}function ti(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;null!==i;){var s=i===r?null:Te(i);e.append(i),i=s}}var ei=null,ii=!1,ri=!1;function si(t){ri=t}var ni=null,ai=!1;function oi(t){ni=t}var ci=null;function li(t){ci=t}var hi=null;function di(t){null!==ni&&(null===hi?hi=[t]:hi.push(t))}var ui=null,mi=0,fi=null;var pi=1,gi=0,vi=gi;function wi(t){vi=t}function bi(){return++pi}function yi(t){var e=t.f;if(2048&e)return!0;if(2&e&&(t.f&=-65537),4096&e){for(var i=t.deps,r=i.length,s=0;s<r;s++){var n=i[s];if(yi(n)&&Qt(n),n.wv>t.wv)return!0}512&e&&null===St&&dt(t,b)}return!1}function ki(t,e,i=!0){var r=t.reactions;if(null!==r&&(null===hi||!n.call(hi,t)))for(var s=0;s<r.length;s++){var a=r[s];2&a.f?ki(a,e,!1):e===a&&(i?dt(a,y):1024&a.f&&dt(a,k),Vt(a))}}function Ti(t){var e=ui,i=mi,r=fi,s=ni,n=hi,a=J,o=ai,c=vi,l=t.f;ui=null,mi=0,fi=null,ni=96&l?null:t,hi=null,K(t.ctx),ai=!1,vi=++gi,null!==t.ac&&(Le(()=>{t.ac.abort(R)}),t.ac=null);try{t.f|=I;var h=(0,t.fn)();t.f|=_;var d=t.deps,u=Et?.is_fork;if(null!==ui){var m;if(u||xi(t,mi),null!==d&&mi>0)for(d.length=mi+ui.length,m=0;m<ui.length;m++)d[mi+m]=ui[m];else t.deps=d=ui;if(De()&&512&t.f)for(m=mi;m<d.length;m++)(d[m].reactions??=[]).push(t)}else!u&&null!==d&&mi<d.length&&(xi(t,mi),d.length=mi);if(!(null===fi||ai||null===d||6146&t.f))for(m=0;m<fi.length;m++)ki(fi[m],t);if(null!==s&&s!==t){if(gi++,null!==s.deps)for(let t=0;t<i;t+=1)s.deps[t].rv=gi;if(null!==e)for(const t of e)t.rv=gi;null!==fi&&(null===r?r=fi:r.push(...fi))}return 8388608&t.f&&(t.f^=$),h}catch(f){return ct(f)}finally{t.f^=I,ui=e,mi=i,fi=r,ni=s,hi=n,K(a),ai=o,vi=c}}function _i(t,i){let r=i.reactions;if(null!==r){var a=s.call(r,t);if(-1!==a){var o=r.length-1;0===o?r=i.reactions=null:(r[a]=r[o],r.pop())}}if(null===r&&2&i.f&&(null===ui||!n.call(ui,i))){var c=i;512&c.f&&(c.f^=512,c.f&=-65537),c.v!==e&&ut(c),function(t){if(null!==t.effects)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(R),e.teardown=g,e.ac=null,xi(e,0),Ye(e))}(c),xi(c,0)}}function xi(t,e){var i=t.deps;if(null!==i)for(var r=e;r<i.length;r++)_i(t,i[r])}function Ei(t){var e=t.f;if(!(16384&e)){dt(t,b);var i=ci,r=ii;ci=t,ii=!0;try{16777232&e?function(t){for(var e=t.first;null!==e;){var i=e.next;32&e.f||je(e),e=i}}(t):Ye(t),Xe(t);var s=Ti(t);t.teardown="function"==typeof s?s:null,t.wv=pi}finally{ii=r,ci=i}}}async function Si(){await Promise.resolve(),Dt()}function Ai(t){var e=!!(2&t.f);if(ei?.add(t),null!==ni&&!ai&&!(null!==ci&&16384&ci.f||null!==hi&&n.call(hi,t))){var i=ni.deps;if(2097152&ni.f)t.rv<gi&&(t.rv=gi,null===ui&&null!==i&&i[mi]===t?mi++:null===ui?ui=[t]:ui.push(t));else{(ni.deps??=[]).push(t);var r=t.reactions;null===r?t.reactions=[ni]:n.call(r,ni)||r.push(ni)}}if(ri&&ie.has(t))return ie.get(t);if(e){var s=t;if(ri){var a=s.v;return(1024&s.f||null===s.reactions)&&!Ii(s)||(a=Kt(s)),ie.set(s,a),a}var o=!(512&s.f)&&!ai&&null!==ni&&(ii||!!(512&ni.f)),c=0===(s.f&_);yi(s)&&(o&&(s.f|=512),Qt(s)),o&&!c&&(te(s),Mi(s))}if(St?.has(t))return St.get(t);if(8388608&t.f)throw t.v;return t.v}function Mi(t){if(t.f|=512,null!==t.deps)for(const e of t.deps)(e.reactions??=[]).push(t),2&e.f&&!(512&e.f)&&(te(e),Mi(e))}function Ii(t){if(t.v===e)return!0;if(null===t.deps)return!1;for(const e of t.deps){if(ie.has(e))return!0;if(2&e.f&&Ii(e))return!0}return!1}function $i(t){var e=ai;try{return ai=!0,t()}finally{ai=e}}function Pi(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let s in t)try{Pi(t[s],e)}catch(i){}const r=m(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=h(r);for(let r in e){const s=e[r].get;if(s)try{s.call(t)}catch(i){}}}}}var Li=Symbol("events"),Ci=new Set,Ri=new Set;function Di(t,e,i,r={}){function s(t){if(r.capture||Ni.call(e,t),!t.cancelBubble)return Le(()=>i?.call(this,t))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?at(()=>{e.addEventListener(t,s,r)}):e.addEventListener(t,s,r),s}function Fi(t,e,i,r,s){var n={capture:r,passive:s},a=Di(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Fe(()=>{e.removeEventListener(t,a,n)})}function Oi(t,e,i){(e[Li]??={})[t]=i}function zi(t){for(var e=0;e<t.length;e++)Ci.add(t[e]);for(var i of Ri)i(t)}function Ni(t){var e=this,i=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],n=s[0]||t.target,a=0,o=t===t&&t[Li];if(o){var l=s.indexOf(o);if(-1!==l&&(e===document||e===window))return void(t[Li]=e);var h=s.indexOf(e);if(-1===h)return;l<=h&&(a=l)}if((n=s[a]||t.target)!==e){c(t,"currentTarget",{configurable:!0,get:()=>n||i});var d=ni,u=ci;oi(null),li(null);try{for(var m,f=[];null!==n;){var p=n.assignedSlot||n.parentNode||n.host||null;try{var g=n[Li]?.[r];null==g||n.disabled&&t.target!==n||g.call(n,t)}catch(v){m?f.push(v):m=v}if(t.cancelBubble||p===e||null===p)break;n=p}if(m){for(let t of f)queueMicrotask(()=>{throw t});throw m}}finally{t[Li]=e,delete t.currentTarget,oi(d),li(u)}}}var Vi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Ui(t){var e=Ae("template");return e.innerHTML=function(t){return Vi?.createHTML(t)??t}(t.replaceAll("<!>","\x3c!----\x3e")),e.content}function Bi(t,e){var i=ci;null===i.nodes&&(i.nodes={start:t,end:e,a:null,t:null})}function Wi(t,e){var i,r=!!(1&e),s=!!(2&e),n=!t.startsWith("<!>");return()=>{if(V)return Bi(N,null),N;void 0===i&&(i=Ui(n?t:"<!>"+t),r||(i=ke(i)));var e=s||ge?document.importNode(i,!0):i.cloneNode(!0);r?Bi(ke(e),e.lastChild):Bi(e,e);return e}}function qi(t,e,i="svg"){var r,s=!t.startsWith("<!>"),n=!!(1&e),a=`<${i}>${s?t:"<!>"+t}</${i}>`;return()=>{if(V)return Bi(N,null),N;if(!r){var t=ke(Ui(a));if(n)for(r=document.createDocumentFragment();ke(t);)r.appendChild(ke(t));else r=ke(t)}var e=r.cloneNode(!0);n?Bi(ke(e),e.lastChild):Bi(e,e);return e}}function Xi(t,e){return qi(t,e,"svg")}function Yi(t=""){if(!V){var e=ye(t+"");return Bi(e,e),e}var i=N;return 3!==i.nodeType?(i.before(i=ye()),B(i)):Me(i),Bi(i,i),i}function ji(){if(V)return Bi(N,null),N;var t=document.createDocumentFragment(),e=document.createComment(""),i=ye();return t.append(e,i),Bi(e,i),t}function Gi(t,e){if(V){var i=ci;return 32768&i.f&&null!==i.nodes.end||(i.nodes.end=N),void W()}null!==t&&t.before(e)}function Hi(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}var Zi=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ji(t){return Zi.includes(t)}var Ki={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Qi(t){return t=t.toLowerCase(),Ki[t]??t}var tr=["touchstart","touchmove"];function er(t){return tr.includes(t)}var ir=["textarea","script","style","title"];var rr=!0;function sr(t){rr=t}function nr(t,e){var i=null==e?"":"object"==typeof e?`${e}`:e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=`${i}`)}function ar(t,e){return lr(t,e)}function or(e,i){be(),i.intro=i.intro??!1;const r=i.target,s=V,n=N;try{for(var a=ke(r);a&&(8!==a.nodeType||"["!==a.data);)a=Te(a);if(!a)throw t;U(!0),B(a);const s=lr(e,{...i,anchor:a});return U(!1),s}catch(o){if(o instanceof Error&&o.message.split("\n").some(t=>t.startsWith("https://svelte.dev/e/")))throw o;return o!==t&&console.warn("Failed to hydrate: ",o),!1===i.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),be(),Se(r),U(!1),ar(e,i)}finally{U(s),B(n)}}var cr=new Map;function lr(e,{target:i,anchor:r,props:s={},events:n,context:o,intro:c=!0,transformError:l}){be();var h=void 0,d=function(t){Rt.ensure();const e=Re(524352,t);return(t={})=>new Promise(i=>{t.outro?Ze(e,()=>{je(e),i(void 0)}):(je(e),i(void 0))})}(()=>{var d=r??i.appendChild(ye());!function(t,e,i,r){new Wt(t,e,i,r)}(d,{pending:()=>{}},i=>{if(et({}),o&&(J.c=o),n&&(s.$$events=n),V&&Bi(i,null),rr=c,h=e(i,s)||{},rr=!0,V&&(ci.nodes.end=N,null===N||8!==N.nodeType||"]"!==N.data))throw z(),t;it()},l);var u=new Set,m=t=>{for(var e=0;e<t.length;e++){var r=t[e];if(!u.has(r)){u.add(r);var s=er(r);for(const t of[i,document]){var n=cr.get(t);void 0===n&&(n=new Map,cr.set(t,n));var a=n.get(r);void 0===a?(t.addEventListener(r,Ni,{passive:s}),n.set(r,1)):n.set(r,a+1)}}}};return m(a(Ci)),Ri.add(m),()=>{for(var t of u)for(const r of[i,document]){var e=cr.get(r),s=e.get(t);0==--s?(r.removeEventListener(t,Ni),e.delete(t),0===e.size&&cr.delete(r)):e.set(t,s)}Ri.delete(m),d!==r&&d.parentNode?.removeChild(d)}});return hr.set(h,d),h}var hr=new WeakMap;function dr(t,e){const i=hr.get(t);return i?(hr.delete(t),i(e)):Promise.resolve()}var ur,mr=class{anchor;#B=new Map;#W=new Map;#q=new Map;#X=new Set;#Y=!0;constructor(t,e=!0){this.anchor=t,this.#Y=e}#b=t=>{if(this.#B.has(t)){var e=this.#B.get(t),i=this.#W.get(e);if(i)Ke(i),this.#X.delete(e);else{var r=this.#q.get(e);r&&(this.#W.set(e,r.effect),this.#q.delete(e),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[e,i]of this.#B){if(this.#B.delete(e),e===t)break;const r=this.#q.get(i);r&&(je(r.effect),this.#q.delete(i))}for(const[t,r]of this.#W){if(t===e||this.#X.has(t))continue;const s=()=>{if(Array.from(this.#B.values()).includes(t)){var e=document.createDocumentFragment();ti(r,e),e.append(ye()),this.#q.set(t,{effect:r,fragment:e})}else je(r);this.#X.delete(t),this.#W.delete(t)};this.#Y||!i?(this.#X.add(t),Ze(r,s,!1)):s()}}};#j=t=>{this.#B.delete(t);const e=Array.from(this.#B.values());for(const[i,r]of this.#q)e.includes(i)||(je(r.effect),this.#q.delete(i))};ensure(t,e){var i=Et;!e||this.#W.has(t)||this.#q.has(t)||this.#W.set(t,qe(()=>e(this.anchor)));this.#B.set(i,t),V&&(this.anchor=N),this.#b(i)}};function fr(t,e,...i){var r=new mr(t);Be(()=>{const t=e()??null;r.ensure(t,t&&(e=>t(e,...i)))},E)}function pr(t){null===J&&F(),Oe(()=>{const e=$i(t);if("function"==typeof e)return e})}function gr(t){null===J&&F(),pr(()=>()=>$i(t))}function vr(t,e,i=!1){var r;V&&(r=N,W());var s=new mr(t);function n(t,e){if(V){var i=j(r);if(t!==parseInt(i.substring(1))){var n=Y();return B(n),s.anchor=n,U(!1),s.ensure(t,e),void U(!0)}}s.ensure(t,e)}Be(()=>{var t=!1;e((e,i=0)=>{t=!0,n(i,e)}),t||n(-1,null)},i?E:0)}function wr(t,e){return e}function br(t,e,i=!0){var r;if(t.pending.size>0){r=new Set;for(const e of t.pending.values())for(const i of e)r.add(t.items.get(i).e)}for(var s=0;s<e.length;s++){var n=e[s];r?.has(n)?(n.f|=A,ti(n,document.createDocumentFragment())):je(e[s],i)}}function yr(t,e,i,s,n,o=null){var c=t,l=new Map;if(4&e){var h=t;c=V?B(ke(h)):h.appendChild(ye())}V&&W();var d,u=null,m=Zt(()=>{var t=i();return r(t)?t:null==t?[]:a(t)});var f=new Map,p=!0;function g(t){16384&v.effect.f||(v.pending.delete(t),v.fallback=u,function(t,e,i,r,s){var n,o,c,l,h,d=!!(8&r),u=e.length,m=t.items,f=kr(t.effect.first),p=null,g=[],v=[];if(d)for(h=0;h<u;h+=1)c=s(e[h],h),33554432&(l=m.get(c).e).f||(l.nodes?.a?.measure(),(o??=new Set).add(l));for(h=0;h<u;h+=1){if(c=s(e[h],h),l=m.get(c).e,null!==t.outrogroups)for(const e of t.outrogroups)e.pending.delete(l),e.done.delete(l);if(8192&l.f&&(Ke(l),d&&(l.nodes?.a?.unfix(),(o??=new Set).delete(l))),33554432&l.f){if(l.f^=A,l!==f){var w=p?p.next:f;l===t.effect.last&&(t.effect.last=l.prev),l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),xr(t,p,l),xr(t,l,w),_r(l,w,i),g=[],v=[],f=kr((p=l).next);continue}_r(l,null,i)}if(l!==f){if(void 0!==n&&n.has(l)){if(g.length<v.length){var b,y=v[0];p=y.prev;var k=g[0],T=g[g.length-1];for(b=0;b<g.length;b+=1)_r(g[b],y,i);for(b=0;b<v.length;b+=1)n.delete(v[b]);xr(t,k.prev,T.next),xr(t,p,k),xr(t,T,y),f=y,p=T,h-=1,g=[],v=[]}else n.delete(l),_r(l,f,i),xr(t,l.prev,l.next),xr(t,l,null===p?t.effect.first:p.next),xr(t,p,l),p=l;continue}for(g=[],v=[];null!==f&&f!==l;)(n??=new Set).add(f),v.push(f),f=kr(f.next);if(null===f)continue}33554432&l.f||g.push(l),p=l,f=kr(l.next)}if(null!==t.outrogroups){for(const e of t.outrogroups)0===e.pending.size&&(br(t,a(e.done)),t.outrogroups?.delete(e));0===t.outrogroups.size&&(t.outrogroups=null)}if(null!==f||void 0!==n){var _=[];if(void 0!==n)for(l of n)8192&l.f||_.push(l);for(;null!==f;)8192&f.f||f===t.fallback||_.push(f),f=kr(f.next);var x=_.length;if(x>0){var E=4&r&&0===u?i:null;if(d){for(h=0;h<x;h+=1)_[h].nodes?.a?.measure();for(h=0;h<x;h+=1)_[h].nodes?.a?.fix()}!function(t,e,i){for(var r,s=e.length,n=e.length,o=0;o<s;o++){let i=e[o];Ze(i,()=>{if(r){if(r.pending.delete(i),r.done.add(i),0===r.pending.size){var e=t.outrogroups;br(t,a(r.done)),e.delete(r),0===e.size&&(t.outrogroups=null)}}else n-=1},!1)}if(0===n){var c=null!==i;if(c){var l=i,h=l.parentNode;Se(h),h.append(l),t.items.clear()}br(t,e,!c)}else r={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(r)}(t,_,E)}}d&&at(()=>{if(void 0!==o)for(l of o)l.nodes?.a?.apply()})}(v,d,c,e,s),null!==u&&(0===d.length?33554432&u.f?(u.f^=A,_r(u,null,c)):Ke(u):Ze(u,()=>{u=null})))}var v={effect:Be(()=>{var t=(d=Ai(m)).length;let r=!1;V&&"[!"===j(c)!=(0===t)&&(B(c=Y()),U(!1),r=!0);for(var a=new Set,h=Et,v=0;v<t;v+=1){V&&8===N.nodeType&&"]"===N.data&&(c=N,r=!0,U(!1));var w=d[v],b=s(w,v),y=p?null:l.get(b);y?(y.v&&ce(y.v,w),y.i&&ce(y.i,v)):(y=Tr(l,p?c:ur??=ye(),w,b,v,n,e,i),p||(y.e.f|=A),l.set(b,y)),a.add(b)}0===t&&o&&!u&&(p?u=qe(()=>o(c)):(u=qe(()=>o(ur??=ye()))).f|=A),t>a.size&&O(),V&&t>0&&B(Y()),p||(f.set(h,a),g(h)),r&&U(!0),Ai(m)}),flags:e,items:l,pending:f,outrogroups:null,fallback:u};p=!1,V&&(c=N)}function kr(t){for(;null!==t&&!(32&t.f);)t=t.next;return t}function Tr(t,e,i,r,s,n,a,o){var c=1&a?16&a?se(i):ae(i,!1,!1):null,l=2&a?se(s):null;return{v:c,i:l,e:qe(()=>(n(e,c??i,l??s,o),()=>{t.delete(r)}))}}function _r(t,e,i){if(t.nodes)for(var r=t.nodes.start,s=t.nodes.end,n=!e||33554432&e.f?i:e.nodes.start;null!==r;){var a=Te(r);if(n.before(r),r===s)return;r=a}}function xr(t,e,i){null===e?t.effect.first=i:e.next=i,null===i?t.effect.last=e:i.prev=e}function Er(e,r,s=!1,n=!1,a=!1,o=!1){var c=e,l="";if(s){var h=e;V&&(c=B(ke(h)))}Ue(()=>{var e=ci;if(l!==(l=r()??"")){if(s&&!V)return e.nodes=null,h.innerHTML=l,void(""!==l&&Bi(ke(h),h.lastChild));if(null!==e.nodes&&(Ge(e.nodes.start,e.nodes.end),e.nodes=null),""!==l){if(V){N.data;for(var o=W(),d=o;null!==o&&(8!==o.nodeType||""!==o.data);)d=o,o=Te(o);if(null===o)throw z(),t;return Bi(N,d),void(c=B(o))}var u=Ae(n?"svg":a?"math":"template",n?i:a?"http://www.w3.org/1998/Math/MathML":void 0);u.innerHTML=l;var m=n||a?u:u.content;if(Bi(ke(m),m.lastChild),n||a)for(;ke(m);)c.before(ke(m));else c.before(m)}}else V&&W()})}var Sr=()=>performance.now(),Ar={tick:t=>requestAnimationFrame(t),now:()=>Sr(),tasks:new Set};function Mr(){const t=Ar.now();Ar.tasks.forEach(e=>{e.c(t)||(Ar.tasks.delete(e),e.f())}),0!==Ar.tasks.size&&Ar.tick(Mr)}function Ir(t,e){Le(()=>{t.dispatchEvent(new CustomEvent(e))})}function $r(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function Pr(t){const e={},i=t.split(";");for(const r of i){const[t,i]=r.split(":");if(!t||void 0===i)break;e[$r(t.trim())]=i.trim()}return e}var Lr=t=>t;function Cr(t){0}function Rr(t,e,i,r){var s,n,a,o=!!(1&t),c=!!(2&t),l=!!(4&t),h=o&&c?"both":o?"in":"out",d=e.inert,u=e.style.overflow;function m(){return Le(()=>s??=i()(e,r?.()??{},{direction:h}))}var f={is_global:l,in(){if(e.inert=d,!o)return a?.abort(),void a?.reset?.();c||n?.abort(),n=Dr(e,m(),a,1,()=>{Ir(e,"introend"),n?.abort(),n=s=void 0,e.style.overflow=u})},out(t){if(!c)return t?.(),void(s=void 0);e.inert=!0,a=Dr(e,m(),n,0,()=>{Ir(e,"outroend"),t?.()})},stop:()=>{n?.abort(),a?.abort()}},p=ci;if((p.nodes.t??=[]).push(f),o&&rr){var g=l;if(!g){for(var v=p.parent;v&&65536&v.f;)for(;(v=v.parent)&&!(16&v.f););g=!v||!!(32768&v.f)}g&&Ne(()=>{$i(()=>f.in())})}}function Dr(t,e,i,r,s){var n=1===r;if(p(e)){var a,o=!1;return at(()=>{o||(a=Dr(t,e({direction:n?"in":"out"}),i,r,s))}),{abort:()=>{o=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration&&!e?.delay)return Ir(t,n?"introstart":"outrostart"),s(),{abort:g,deactivate:g,reset:g,t:()=>r};const{delay:c=0,css:l,tick:h,easing:d=Lr}=e;var u=[];if(n&&void 0===i&&(h&&h(0,1),l)){var m=Pr(l(0,1));u.push(m,m)}var f=()=>1-r,v=t.animate(u,{duration:c,fill:"forwards"});return v.onfinish=()=>{v.cancel(),Ir(t,n?"introstart":"outrostart");var a=i?.t()??1-r;i?.abort();var o=r-a,c=e.duration*Math.abs(o),u=[];if(c>0){var m=!1;if(l)for(var p=Math.ceil(c/(1e3/60)),g=0;g<=p;g+=1){var w=a+o*d(g/p),b=Pr(l(w,1-w));u.push(b),m||="hidden"===b.overflow}m&&(t.style.overflow="hidden"),f=()=>{var t=v.currentTime;return a+o*d(t/c)},h&&function(t){let e;0===Ar.tasks.size&&Ar.tick(Mr),new Promise(i=>{Ar.tasks.add(e={c:t,f:i})})}(()=>{if("running"!==v.playState)return!1;var t=f();return h(t,1-t),!0})}(v=t.animate(u,{duration:c,fill:"forwards"})).onfinish=()=>{f=()=>r,h?.(r,1-r),s()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=g)},deactivate:()=>{s=g},reset:()=>{0===r&&h?.(1,0)},t:()=>f()}}function Fr(t,e,r,s,n,a){let o=V;V&&W();var c=null;V&&1===N.nodeType&&(c=N,W());var l=V?N:t,h=ci,d=new mr(l,!1);Be(()=>{const t=e()||null;var a=n?n():r||"svg"===t?i:void 0;return null===t?(d.ensure(null,null),void sr(!0)):(d.ensure(t,e=>{if(t){if(Bi(c=V?c:Ae(t,a),c),s){V&&(r=t,ir.includes(r))&&c.append(document.createComment(""));var i=V?ke(c):c.appendChild(ye());V&&(null===i?U(!1):B(i)),Cr(h),s(c,i),Cr(null)}ci.nodes.end=c,e.before(c)}var r;V&&B(e)}),sr(!0),()=>{t&&sr(!1)})},E),Fe(()=>{sr(!0)}),o&&(U(!0),B(l))}function Or(t,e,i){Ne(()=>{var r=$i(()=>e(t,i?.())||{});if(i&&r?.update){var s=!1,n={};Ve(()=>{var t=i();!function(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(P in t)Pi(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];"object"==typeof i&&i&&P in i&&Pi(i)}}(t),s&&H(n,t)&&(n=t,r.update(t))}),s=!0}if(r?.destroy)return()=>r.destroy()})}function zr(t,e){var i,r=void 0;We(()=>{r!==(r=e())&&(i&&(je(i),i=null),r&&(i=qe(()=>{Ne(()=>r(t))})))})}function Nr(t){var e,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(i=Nr(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function Vr(t){return"object"==typeof t?function(){for(var t,e,i=0,r="",s=arguments.length;i<s;i++)(t=arguments[i])&&(e=Nr(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}var Ur=[..." \t\n\r\f \v\ufeff"];function Br(t,e=!1){var i=e?" !important;":";",r="";for(var s of Object.keys(t)){var n=t[s];null!=n&&""!==n&&(r+=" "+s+": "+n+i)}return r}function Wr(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function qr(t,e,i,r,s,n){var a=t.__className;if(V||a!==i||void 0===a){var o=function(t,e,i){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),i)for(var s of Object.keys(i))if(i[s])r=r?r+" "+s:s;else if(r.length)for(var n=s.length,a=0;(a=r.indexOf(s,a))>=0;){var o=a+n;0!==a&&!Ur.includes(r[a-1])||o!==r.length&&!Ur.includes(r[o])?a=o:r=(0===a?"":r.substring(0,a))+r.substring(o+1)}return""===r?null:r}(i,r,n);V&&o===t.getAttribute("class")||(null==o?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o)),t.__className=i}else if(n&&s!==n)for(var c in n){var l=!!n[c];null!=s&&l===!!s[c]||t.classList.toggle(c,l)}return n}function Xr(t,e={},i,r){for(var s in i){var n=i[s];e[s]!==n&&(null==i[s]?t.style.removeProperty(s):t.style.setProperty(s,n,r))}}function Yr(t,e,i,r){var s=t.__style;if(V||s!==e){var n=function(t,e){if(e){var i,r,s="";if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,a=0,o=!1,c=[];i&&c.push(...Object.keys(i).map(Wr)),r&&c.push(...Object.keys(r).map(Wr));var l=0,h=-1;const e=t.length;for(var d=0;d<e;d++){var u=t[d];if(o?"/"===u&&"*"===t[d-1]&&(o=!1):n?n===u&&(n=!1):"/"===u&&"*"===t[d+1]?o=!0:'"'===u||"'"===u?n=u:"("===u?a++:")"===u&&a--,!o&&!1===n&&0===a)if(":"===u&&-1===h)h=d;else if(";"===u||d===e-1){if(-1!==h){var m=Wr(t.substring(l,h).trim());c.includes(m)||(";"!==u&&d++,s+=" "+t.substring(l,d).trim()+";")}l=d+1,h=-1}}}return i&&(s+=Br(i)),r&&(s+=Br(r,!0)),""===(s=s.trim())?null:s}return null==t?null:String(t)}(e,r);V&&n===t.getAttribute("style")||(null==n?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}else r&&(Array.isArray(r)?(Xr(t,i?.[0],r[0]),Xr(t,i?.[1],r[1],"important")):Xr(t,i,r));return r}function jr(t,e,i=!1){if(t.multiple){if(null==e)return;if(!r(e))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var s of t.options)s.selected=e.includes(Gr(s))}else{for(s of t.options)if(fe(Gr(s),e))return void(s.selected=!0);i&&void 0===e||(t.selectedIndex=-1)}}function Gr(t){return"__value"in t?t.__value:t.value}var Hr=Symbol("class"),Zr=Symbol("style"),Jr=Symbol("is custom element"),Kr=Symbol("is html"),Qr=D?"link":"LINK",ts=D?"input":"INPUT",es=D?"option":"OPTION",is=D?"select":"SELECT",rs=D?"progress":"PROGRESS";function ss(t){if(V){var e=!1,i=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var i=t.value;as(t,"value",null),t.value=i}if(t.hasAttribute("checked")){var r=t.checked;as(t,"checked",null),t.checked=r}}};t.__on_r=i,at(i),$e||($e=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}}function ns(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function as(t,e,i,r){var s=ls(t);V&&(s[e]=t.getAttribute(e),"src"===e||"srcset"===e||"href"===e&&t.nodeName===Qr)||s[e]!==(s[e]=i)&&("loading"===e&&(t[C]=i),null==i?t.removeAttribute(e):"string"!=typeof i&&ds(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function os(t,e,i){var r=ni,s=ci;let n=V;V&&U(!1),oi(null),li(null);try{"style"!==e&&(hs.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.nodeName.toLowerCase())?ds(t).includes(e):i&&"object"==typeof i)?t[e]=i:as(t,e,null==i?i:String(i))}finally{oi(r),li(s),n&&U(!0)}}function cs(t,i,r=[],s=[],n=[],a,o=!1,c=!1){qt(n,r,s,r=>{var s=void 0,n={},l=t.nodeName===is,h=!1;if(We(()=>{var d=i(...r.map(Ai)),u=function(t,i,r,s,n=!1){if(V&&n&&t.nodeName===ts){var a=t;("checkbox"===a.type?"defaultChecked":"defaultValue")in r||ss(a)}var o=ls(t),c=o[Jr],l=!o[Kr];let h=V&&c;h&&U(!1);var d=i||{},u=t.nodeName===es;for(var m in i)m in r||(r[m]=null);r.class?r.class=Vr(r.class):(s||r[Hr])&&(r.class=null),r[Zr]&&(r.style??=null);var f=ds(t);for(const k in r){let T=r[k];if(u&&"value"===k&&null==T)t.value=t.__value="",d[k]=T;else if("class"!==k)if("style"!==k){var p=d[k];if(T!==p||void 0===T&&t.hasAttribute(k)){d[k]=T;var g=k[0]+k[1];if("$$"!==g)if("on"===g){const _={},x="$$"+k;let E=k.slice(2);var v=Ji(E);if(Hi(E)&&(E=E.slice(0,-7),_.capture=!0),!v&&p){if(null!=T)continue;t.removeEventListener(E,d[x],_),d[x]=null}if(v)Oi(E,t,T),zi([E]);else if(null!=T){function w(t){d[k].call(this,t)}d[x]=Di(E,t,w,_)}}else if("style"===k)as(t,k,T);else if("autofocus"===k)Ie(t,Boolean(T));else if(c||"__value"!==k&&("value"!==k||null==T))if("selected"===k&&u)ns(t,T);else{var b=k;l||(b=Qi(b));var y="defaultValue"===b||"defaultChecked"===b;if(null!=T||c||y)y||f.includes(b)&&(c||"string"!=typeof T)?(t[b]=T,b in o&&(o[b]=e)):"function"!=typeof T&&as(t,b,T);else if(o[k]=null,"value"===b||"checked"===b){let S=t;const A=void 0===i;if("value"===b){let M=S.defaultValue;S.removeAttribute(b),S.defaultValue=M,S.value=S.__value=A?M:null}else{let I=S.defaultChecked;S.removeAttribute(b),S.defaultChecked=I,S.checked=!!A&&I}}else t.removeAttribute(k)}else t.value=t.__value=T}}else Yr(t,T,i?.[Zr],r[Zr]),d[k]=T,d[Zr]=r[Zr];else qr(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,T,s,i?.[Hr],r[Hr]),d[k]=T,d[Hr]=r[Hr]}return h&&U(!0),d}(t,s,d,a,o,c);h&&l&&"value"in d&&jr(t,d.value);for(let t of Object.getOwnPropertySymbols(n))d[t]||je(n[t]);for(let e of Object.getOwnPropertySymbols(d)){var m=d[e];"@attach"!==e.description||s&&m===s[e]||(n[e]&&je(n[e]),n[e]=qe(()=>zr(t,()=>m))),u[e]=m}s=u}),l){var d=t;Ne(()=>{jr(d,s.value,!0),function(t){var e=new MutationObserver(()=>{jr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Fe(()=>{e.disconnect()})}(d)})}h=!0})}function ls(t){return t.__attributes??={[Jr]:t.nodeName.includes("-"),[Kr]:"http://www.w3.org/1999/xhtml"===t.namespaceURI}}var hs=new Map;function ds(t){var e,i=t.getAttribute("is")||t.nodeName,r=hs.get(i);if(r)return r;hs.set(i,r=[]);for(var s=t,n=Element.prototype;n!==s;){for(var a in e=h(s))e[a].set&&r.push(a);s=m(s)}return r}function us(t,e,i=e){var r,s,n=()=>{cancelAnimationFrame(r),t.paused||(r=requestAnimationFrame(n));var e=t.currentTime;s!==e&&i(s=e)};r=requestAnimationFrame(n),t.addEventListener("timeupdate",n),Ve(()=>{var i=Number(e());s===i||isNaN(i)||(t.currentTime=s=i)}),Fe(()=>{cancelAnimationFrame(r),t.removeEventListener("timeupdate",n)})}function ms(t,e){Pe(t,["seeking","seeked"],()=>e(t.seeking))}function fs(t,e,i=e){var r=e();Pe(t,["play","pause","canplay"],()=>{r!==t.paused&&i(r=t.paused)},null==r),Ne(()=>{(r=!!e())!==t.paused&&(r?t.pause():t.play().catch(t=>{throw i(r=!0),t}))})}function ps(t,e){return t===e||t?.[P]===e}function gs(t={},e,i,r){var s=J.r,n=ci;return Ne(()=>{var a,o;return Ve(()=>{a=o,o=r?.()||[],$i(()=>{t!==i(...o)&&(e(t,...o),a&&ps(i(...a),t)&&e(null,...a))})}),()=>{let r=n;for(;r!==s&&null!==r.parent&&33554432&r.parent.f;)r=r.parent;const a=r.teardown;r.teardown=()=>{o&&ps(i(...o),t)&&e(null,...o),a?.()}}}),t}function vs(t,e,i,r,s){var n=()=>{r(i[t])};i.addEventListener(e,n),s?Ve(()=>{i[t]=s()}):n(),i!==document.body&&i!==window&&i!==document||Fe(()=>{i.removeEventListener(e,n)})}var ws={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(p(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,i){let r=t.props.length;for(;r--;){let s=t.props[r];p(s)&&(s=s());const n=l(s,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(p(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=l(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===P||e===L)return!1;for(let i of t.props)if(p(i)&&(i=i()),null!=i&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(p(i)&&(i=i()),i){for(const t in i)e.includes(t)||e.push(t);for(const t of Object.getOwnPropertySymbols(i))e.includes(t)||e.push(t)}return e}};function bs(...t){return new Proxy({props:t},ws)}function ys(t,e,i,r){var s=!!(8&i),n=!!(16&i),a=r,o=!0,c=()=>(o&&(o=!1,a=n?$i(r):r),a);let h;if(s){var d=P in t||L in t;h=l(t,e)?.set??(d&&e in t?i=>t[e]=i:void 0)}var u,m,f=!1;if(s?[u,f]=function(t){var e=bt;try{return bt=!1,[t(),bt]}finally{bt=e}}(()=>t[e]):u=t[e],void 0===u&&void 0!==r&&(u=c(),h&&(function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),h(u))),m=()=>{var i=t[e];return void 0===i?c():(o=!0,i)},!(4&i))return m;if(h){var p=t.$$legacy;return function(t,e){return arguments.length>0?((!e||p||f)&&h(e?m():t),t):m()}}var g=!1,v=(1&i?jt:Zt)(()=>(g=!1,m()));s&&Ai(v);var w=ci;return function(t,e){if(arguments.length>0){const i=e?Ai(v):s?ue(t):t;return oe(v,i),g=!0,void 0!==a&&(a=i),t}return ri&&g||16384&w.f?v.v:Ai(v)}}var ks=class{#G;#H;constructor(t){var e=new Map,i=(t,i)=>{var r=ae(i,!1,!1);return e.set(t,r),r};const r=new Proxy({...t.props||{},$$events:{}},{get:(t,r)=>Ai(e.get(r)??i(r,Reflect.get(t,r))),has:(t,r)=>r===L||(Ai(e.get(r)??i(r,Reflect.get(t,r))),Reflect.has(t,r)),set:(t,r,s)=>(oe(e.get(r)??i(r,s),s),Reflect.set(t,r,s))});this.#H=(t.hydrate?or:ar)(t.component,{target:t.target,anchor:t.anchor,props:r,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),t?.props?.$$host&&!1!==t.sync||Dt(),this.#G=r.$$events;for(const s of Object.keys(this.#H))"$set"!==s&&"$destroy"!==s&&"$on"!==s&&c(this,s,{get(){return this.#H[s]},set(t){this.#H[s]=t},enumerable:!0});this.#H.$set=t=>{Object.assign(r,t)},this.#H.$destroy=()=>{dr(this.#H)}}$set(t){this.#H.$set(t)}$on(t,e){this.#G[t]=this.#G[t]||[];const i=(...t)=>e.call(this,...t);return this.#G[t].push(i),()=>{this.#G[t]=this.#G[t].filter(t=>t!==i)}}$destroy(){this.#H.$destroy()}};function Ts(t,e,i,r){const s=i[t]?.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}"function"==typeof HTMLElement&&HTMLElement;var _s="E001",xs="E002",Es="E003",Ss="E004",As="E005",Ms="E100",Is="E101",$s="E102",Ps="E103",Ls="E200",Cs="E201",Rs="E202",Ds="E203",Fs="E300",Os="E301",zs="E302",Ns="E303",Vs="E999",Us={[_s]:"You appear to be offline. Please check your internet connection and try again.",[xs]:"The connection timed out. Please try again.",[Es]:"Unable to load content due to security restrictions.",[Ss]:"The requested image or content could not be found.",[As]:"The server encountered an error. Please try again later.",[Ms]:"Your browser does not support WebGL, which is required to view this content. Please try a different browser.",[Is]:"The graphics context was lost. The page will attempt to recover.",[$s]:"There was a problem initializing the graphics. Please try refreshing the page.",[Ps]:"Your device is low on memory. Try closing other browser tabs or applications.",[Ls]:"The image data appears to be invalid or corrupted.",[Cs]:"The requested content could not be loaded.",[Rs]:"There was a problem processing the image information.",[Ds]:"This image uses an unsupported format version.",[Fs]:"Failed to load the image viewer engine. Please try refreshing the page.",[Os]:"An error occurred in the image viewer. Please try refreshing the page.",[zs]:"Failed to load the image. Please try again.",[Ns]:"Failed to load the tour. Some features may be unavailable.",[Vs]:"An unexpected error occurred. Please try refreshing the page."},Bs=class t extends Error{constructor(e,i){super(e),this.name="MicrioError",this.code=i?.code??Vs,this.displayMessage=i?.displayMessage??Us[this.code],this.cause=i?.cause,this.statusCode=i?.statusCode,"captureStackTrace"in Error&&"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}static fromResponse(e,i){const r=e.status;let s=Vs;return 404===r?s=Ss:r>=500&&r<600?s=As:0===r?s=_s:408!==r&&504!==r||(s=xs),new t(`${i?i+": ":""}HTTP ${r}`,{code:s,statusCode:r})}static fromError(e,i){const r=e.message.toLowerCase();let s=Vs;return r.includes("network")||r.includes("internet")||r.includes("offline")?s=_s:r.includes("timeout")?s=xs:r.includes("cors")||r.includes("cross-origin")?s=Es:r.includes("webgl")||r.includes("webglcontext")?s=Ms:r.includes("memory")||r.includes("out of memory")?s=Ps:(r.includes("wasm")||r.includes("webassembly"))&&(s=Fs),new t(`${i?i+": ":""}${e.message}`,{code:s,cause:e})}},Ws=(t,e=1)=>(t%e+e)%e,qs=t=>JSON.parse(JSON.stringify(t));function Xs(t,e,i={}){if(!t||"object"!=typeof t)return e;for(const r in t){const s=t[r];if(s&&"object"==typeof s&&Object.getPrototypeOf(s)===Object.prototype){const t=e;t[r]&&"object"==typeof t[r]||(t[r]={}),Xs(s,t[r],i)}else{const t=e;i.mergeArrays&&t[r]instanceof Array&&s instanceof Array?t[r].push(...s):i.noOverwrite&&r in e||(t[r]=s)}}return e}var Ys=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1),js=()=>Ys()+Ys()+"-"+Ys()+"-"+Ys()+"-"+Ys()+"-"+Ys()+Ys()+Ys(),Gs=t=>{if(void 0===t)return t;t=(t=t.replace(/^\s+|\s+$/g,"")).toLowerCase();for(let e=0,i=28;e<i;e++)t=t.replace(new RegExp("àáäâèéëêìíïîòóöôùúüûñç·/_,:;".charAt(e),"g"),"aaaaeeeeiiiioooouuuunc------".charAt(e));return t=t.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-")};function Hs(t){const e=t<0;e&&(t=-t);const i=Math.ceil(t),r=Math.floor(i/3600),s=Math.floor(i%3600/60),n=i%60,a=t=>t<10?"0"+t:""+t;return(e?"-":"")+(r?r+":"+a(s):""+s)+":"+a(n)}var Zs=navigator.userAgent,Js={iOS:/ipad|iphone|ipod/i.test(Zs),firefox:/firefox/i.test(Zs),OSX:/macintosh/i.test(Zs)&&/os\ x/i.test(Zs),hasTouch:"TouchEvent"in self,safari:!1};Js.safari=(Js.OSX||Js.iOS)&&(/safari/i.test(Zs)||/instagram/i.test(Zs))&&!/chrome/i.test(Zs),Js.OSX&&Js.safari&&"TouchEvent"in self&&(Js.iOS=!0,Js.OSX=!1);var Ks=t=>new Promise(e=>t?setTimeout(e,t):e()),Qs=[],tn=(t,e,i)=>new Promise((r,s)=>{if(i||Qs.includes(t))return r();const n=document.createElement("script"),a=()=>{Qs.push(t),r()};e?self[e]=a:n.onload=a,n.onerror=()=>s&&s(),n.async=!0,n.defer=!0,self.crossOriginIsolated&&(n.crossOrigin="anonymous"),n.src=t,document.head.appendChild(n)}),en=(t,e={})=>new Promise(i=>{let r,s=!0;r=t.subscribe(t=>{s&&e.allowUndefined&&void 0===t||(s=!1,(void 0!==e.targetValue?t===e.targetValue:e.allowUndefined||void 0!==t)&&(r?r():Si().then(()=>r()),i(t)))})}),rn=new WeakSet,sn={fromLegacy:t=>{if(!t)return;if(rn.has(t))return t;const e=[t[0],t[1],t[2]-t[0],t[3]-t[1]];return rn.add(t),e},toCenterJSON:t=>({centerX:t[0]+t[2]/2,centerY:t[1]+t[3]/2,width:t[2],height:t[3]}),rectToCenterJSON:t=>sn.toCenterJSON([t[0],t[1],t[2]-t[0],t[3]-t[1]])},nn={"micrio-cdn.azureedge.net":"micrio.vangoghmuseum.nl/micrio","micrio-cdn.vangoghmuseum.nl":"micrio.vangoghmuseum.nl/micrio","rijks-micrio.azureedge.net":"micrio.rijksmuseum.nl"},an=t=>{if(t instanceof Object&&"fileUrl"in t&&!t.src&&(t.src=t.fileUrl),t?.src)for(let e in nn)t.src.includes(e)&&(t.src=t.src.replace(e,nn[e]))},on=t=>!t.viewsWH,cn=new WeakMap,ln=t=>{an(t.image),t.children?.forEach(ln)},hn=new Set,dn=(t,e,i,r)=>{const s=e+"-"+t.id;if(hn.has(s))return;hn.add(s),t.data||(t.data={}),t.id||(t.id=js()),t.tags||(t.tags=[]),"type"in t||(t.type="default"),t.popupType||(t.popupType="popup"),"string"==typeof t.data.icon&&(t.data.icon={title:"",size:0,uploaded:0,width:-1,height:-1,src:t.data.icon}),t.images?.forEach(an),an(t.positionalAudio),an(t.data?.icon),Object.values(t.i18n??{}).forEach(t=>an(t.audio));const n="embedImages"in t?t.embedImages:void 0;n&&n.forEach(t=>an(t));const a=t.data?._meta?.secondary;a&&(t.data.micrioSplitLink=a),i&&"class"in t&&(t.tags??=[]).push(...t.class.split(" ").map(t=>t.trim()).filter(e=>!!e&&!t.tags.includes(e))),t.tags?.includes("default")&&(t.type="default"),r&&(t.view=sn.fromLegacy(t.view),un(t.videoTour))};function un(t){if(!t||!("i18n"in t)&&!("timeline"in t))return;const e="i18n"in t?t.i18n:{en:t};for(const i in e)e[i]?.timeline.forEach(t=>t.rect=sn.fromLegacy(t.rect))}var mn=new Map,fn=new Map,pn=new Map,gn=async(t,e)=>{if(!e&&mn.has(t))return qs(mn.get(t));if(fn.has(t))return fn.get(t);if(pn.has(t))throw pn.get(t)[1];const i=fetch(t+(e?(t.includes("?")?"&":"?")+Math.random():"")).then(async e=>{if(200==e.status)return e.json();{const i=Bs.fromResponse(e,`fetchJson(${t})`);throw pn.set(t,[e.status,i.message]),i}}).then(i=>(e||mn.set(t,i),fn.delete(t),qs(i))).catch(e=>{throw fn.delete(t),e});return fn.set(t,i),i},vn=t=>"MICRIO_DATA"in self?(self?.MICRIO_DATA).find(e=>e[0]==t):void 0,wn=(t,e,i)=>{const r=vn(t)?.[1];return r?Promise.resolve(r):gn(`${e??"https://i.micr.io/"}${t}/info.json`,i).then(t=>{var e;return t&&("Height"in t&&(t.height=t.Height,t.version=1,t.tileSize=512),"Width"in t&&(t.width=t.Width)),(e=t)&&(cn.has(e)||(an(e.organisation?.logo),an(e.settings?._markers?.markerIcon),e.settings?._markers?.customIcons?.forEach(an),an(e.settings?._360?.video),e?.settings&&on(e)&&(e.settings.view=sn.fromLegacy(e.settings.view),e.settings.restrict=sn.fromLegacy(e.settings.restrict)),cn.set(e,!0))),t})};async function bn(t,e,i,r){if(!("steps"in e)||e.stepInfo)return;const s=[...new Set(e.steps.map(t=>t.split(",")[1]).filter(e=>!!e&&e!=t.id))],[n,a]=await Promise.all([Promise.all(s.map(e=>gn((e=>t.dataPath+(t.isV5?e+"/data/pub.json":e+"/data."+i+".json"))(e)))),Promise.all(s.map(t=>wn(t)))]);n.forEach((e,r)=>{const s=on(a[r]);e?.markers?.forEach(e=>dn(e,i,!t.isV5,s))}),an(e.image);let o=-1;const c=[];e.stepInfo=e.steps.map((e,a)=>{const[l,h]=e.split(","),d=n[s.indexOf(h)]??r,u=d?.markers?.find(t=>t.id==l),m=u?.i18n?.[i]??u;m?.title&&(o=a);const f=u?.videoTour?"timeline"in u.videoTour?u.videoTour:u.videoTour.i18n?.[i]??void 0:void 0;return an(f?.audio),an(f?.subtitle),u?(an(m?.audio),u.videoTour&&m?.audio&&(u.videoTour.audio=m.audio),{markerId:l,marker:u,micrioId:h||t.id,duration:Number(f?.duration||m?.audio?.duration||0),startView:f?.timeline?.length?f.timeline[0].rect:u?.view,imageHasOtherMarkers:!!h&&!!d?.markers?.find(t=>t.id!=l&&!t.noMarker),gridView:!(!u.data?._meta?.gridView&&!u.data?._meta?.gridAction),chapter:o,hasSubtitle:!!f?.subtitle}):(console.warn(`[Micrio] Warning: tour step ${a+1} with id [${l}] not found! Removing it from the tour`),void c.push(a))}).filter(t=>void 0!==t),c.reverse().forEach(t=>e.steps.splice(t,1)),e.initialStep=0,e.duration=e.stepInfo.reduce((t,e)=>t+(e.duration||0),0)}var yn=t=>{let e=t.charCodeAt(0),i=e<91;return(e-=i?65:97)-(e>7?1:0)+(i?24:e>10?-1:0)},kn=t=>6==t.length||7==t.length;function Tn(t,e){const i=t.$current;if(!i)return;const r=t.spaceData?.images.find(t=>t.id==i.id),s=t.spaceData?.images.find(t=>t.id==e);if(!r||!s)return;const n=[(s.x??.5)-(r.x??.5),(r.y??.5)-(s.y??.5),(s.z??.5)-(r.z??.5)];let a=n[0]*n[0]+n[1]*n[1]+n[2]*n[2];a>0&&(a=1/Math.sqrt(a));const o=[n[0]*a,n[1]*a,n[2]*a],c=Ws(Math.atan2(-o[0],o[2])/Math.PI/2);return{v:n,vN:o,directionX:c,vector:{direction:c%1,distanceX:Math.max(0,Math.min(.4,Math.sqrt(o[0]*o[0]+o[2]*o[2]))),distanceY:-n[1]}}}function _n([t,e,i=0,r=0],[s,n,a=0,o=0],c){const l=Math.max(r/2,c),h=Math.max(o/2,c);return!(t+i+c<s-c||t-c>s+a+c||e+l<n-h||e-l>n+h)}var xn,En=function(t){return t[t.None=0]="None",t[t.IFrame=1]="IFrame",t[t.Video=2]="Video",t[t.Audio=3]="Audio",t[t.VideoTour=4]="VideoTour",t[t.Micrio=5]="Micrio",t}({}),Sn=function(t){return t[t.YouTube=1]="YouTube",t[t.Vimeo=2]="Vimeo",t}({}),An=/((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be|youtube-nocookie\.com))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?/,Mn=/vimeo\.com/,In=/^.*t=(\d+).*$/,$n="https://www.youtube-nocookie.com";function Pn(t){if(t)return"fileUrl"in t?t.fileUrl:t.src}function Ln(t,e){return t.i18n?.[e]??t}var Cn=t=>t;function Rn(t){const e=t-1;return e*e*e+1}function Dn(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Fn(t,{delay:e=0,duration:i=400,easing:r=Cn}={}){const s=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:t=>"opacity: "+t*s}}function On(t,{delay:e=0,duration:i=400,easing:r=Rn,x:s=0,y:n=0,opacity:a=0}={}){const o=getComputedStyle(t),c=+o.opacity,l="none"===o.transform?"":o.transform,h=c*(1-a),[d,u]=Dn(s),[m,f]=Dn(n);return{delay:e,duration:i,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${l} translate(${(1-t)*d}${u}, ${(1-t)*m}${f});\n\t\t\topacity: ${c-h*e}`}}var zn=Wi('<a rel="noopener" href="https://micr.io/" title="Powered by Micrio" aria-label="Micrio homepage"></a>');function Nn(t,e){et(e,!0);const[i,r]=_t(),s=Q("micrio"),{tour:n,marker:a}=s.state,o=/micr\.io/.test(location.origin)&&self.parent==self?void 0:"_blank";let c,l=ne(!1);pr(()=>s.loading.subscribe(t=>{clearTimeout(c),t?Ai(l)||(c=setTimeout(()=>oe(l,!0),750)):oe(l,!1)}));const h=Ht(()=>!!kt(n,"$tour",i)||!!kt(a,"$marker",i));var d=ji(),u=xe(d),m=t=>{var e=zn();let i;Ue(()=>{as(e,"target",o),i=qr(e,1,"micrio-logo",null,i,{loading:Ai(l)})}),Rr(3,e,()=>Fn,()=>({duration:200})),Gi(t,e)};vr(u,t=>{Ai(h)||t(m)}),Gi(t,d),it(),r()}var Vn=Wi('<a rel="noopener" target="_blank" class="micrio-logo-org"><img alt="Logo" class="micrio-logo-org"/></a>');function Un(t,e){et(e,!0);const[i,r]=_t(),{tour:s,marker:n,popover:a}=Q("micrio").state;const o=Ht(()=>!!kt(s,"$tour",i)||!!kt(n,"$marker",i)||!!kt(a,"$popover",i));var c=ji(),l=xe(c),h=t=>{var i=Vn(),r=_e(i);q(i),Ue(t=>{as(i,"href",e.organisation.href??"#"),as(i,"title",e.organisation.name),as(i,"aria-label",`${e.organisation.name??""} homepage`),as(r,"src",t)},[()=>function(t){if("string"==typeof t)return t;let e=0,i=Math.max(t.width,t.height);for(;i>1024;)e++,i/=2;return t.micrioId&&t.width>1024?"https://r2.micr.io/"+t.micrioId+"/"+e+"/0-0."+(t.isPng?"png":t.isWebP?"webp":"jpg"):t.src}(e.organisation.logo)]),Rr(3,i,()=>Fn,()=>({duration:200})),Gi(t,i)};vr(l,t=>{!Ai(o)&&e.organisation.logo&&t(h)}),Gi(t,c),it(),r()}var Bn={en:{close:"Close",zoomIn:"Zoom in",zoomOut:"Zoom out",fullscreenToggle:"Toggle fullscreen",switchLanguage:"Switch language",share:"Share",audioMute:"Mute audio",audioUnmute:"Unmute audio",closeMarker:"Close this marker",tourStepNext:"Next step",tourStepPrev:"Previous step",tourStop:"Stop this tour",minimize:"Minimize",play:"Play",pause:"Pause",stop:"Stop",subtitlesToggle:"Toggle subtitles",galleryPrev:"Previous image",galleryNext:"Next image",menuToggle:"Toggle menu",waypointFollow:"Go this way"},nl:{close:"Sluit",zoomIn:"Zoom in",zoomOut:"Zoom uit",fullscreenToggle:"Volledig scherm aan / uit",switchLanguage:"Kies taal",share:"Deel",audioMute:"Geluid uit",audioUnmute:"Geluid aan",closeMarker:"Sluit deze marker",tourStepNext:"Volgende stap",tourStepPrev:"Vorige stap",tourStop:"Stop deze tour",minimize:"Minimaliseer",play:"Start",pause:"Pauzeer",stop:"Stop",subtitlesToggle:"Ondertitels aan / uit",galleryPrev:"Vorige afbeelding",galleryNext:"Volgende afbeelding",menuToggle:"Menu openen / sluiten",waypointFollow:"Ga deze richting"}},Wn=vt(Bn.en),qn=navigator?.language??"en-EN",Xn="Intl"in self&&Intl.DisplayNames?new Intl.DisplayNames([qn],{type:"language"}):void 0,Yn=["ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LB","ar-LY","ar-MA","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-TN","ar-YE","dv","dv-MV","fa","fa-AF","fa-IR","he","he-IL","iw","iw-PS","kd","ku","ku-IQ","ku-IR","ku-SY","ku-TR","pk-PK","ps","ps-AF","sd","sd-PK","syr-SY","ug","ug-CN","ur","ur-IN","ur-PK","yi","yi-IL","yi-US"],jn={arrowDown:[384,512,"M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"],arrowLeft:[512,512,"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"],arrowRight:[512,512,"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"],arrowUp:[384,512,"M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3 160 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"],bars:[448,512,"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"],chevronDown:[448,512,"M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"],circleExclamation:[512,512,"M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"],closedCaptioning:[512,512,"M0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zm152 80l32 0c4.4 0 8 3.6 8 8 0 13.3 10.7 24 24 24s24-10.7 24-24c0-30.9-25.1-56-56-56l-32 0c-30.9 0-56 25.1-56 56l0 80c0 30.9 25.1 56 56 56l32 0c30.9 0 56-25.1 56-56 0-13.3-10.7-24-24-24s-24 10.7-24 24c0 4.4-3.6 8-8 8l-32 0c-4.4 0-8-3.6-8-8l0-80c0-4.4 3.6-8 8-8zm168 8c0-4.4 3.6-8 8-8l32 0c4.4 0 8 3.6 8 8 0 13.3 10.7 24 24 24s24-10.7 24-24c0-30.9-25.1-56-56-56l-32 0c-30.9 0-56 25.1-56 56l0 80c0 30.9 25.1 56 56 56l32 0c30.9 0 56-25.1 56-56 0-13.3-10.7-24-24-24s-24 10.7-24 24c0 4.4-3.6 8-8 8l-32 0c-4.4 0-8-3.6-8-8l0-80z"],compress:[448,512,"M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"],ellipsisVertical:[128,512,"M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"],expand:[448,512,"M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"],externalLink:[512,512,"M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z"],globe:[512,512,"M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"],image:[448,512,"M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"],layerGroup:[512,512,"M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"],link:[576,512,"M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"],minus:[448,512,"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"],pause:[384,512,"M48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48L48 32zm224 0c-26.5 0-48 21.5-48 48l0 352c0 26.5 21.5 48 48 48l64 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48l-64 0z"],play:[448,512,"M91.2 36.9c-12.4-6.8-27.4-6.5-39.6 .7S32 57.9 32 72l0 368c0 14.1 7.5 27.2 19.6 34.4s27.2 7.5 39.6 .7l336-184c12.8-7 20.8-20.5 20.8-35.1s-8-28.1-20.8-35.1l-336-184z"],playCircle:[512,512,"M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"],plus:[448,512,"M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"],share:[512,512,"M307.8 18.4c-12 5-19.8 16.6-19.8 29.6l0 80-112 0c-97.2 0-176 78.8-176 176 0 113.3 81.5 163.9 100.2 174.1 2.5 1.4 5.3 1.9 8.1 1.9 10.9 0 19.7-8.9 19.7-19.7 0-7.5-4.3-14.4-9.8-19.5-9.4-8.8-22.2-26.4-22.2-56.7 0-53 43-96 96-96l96 0 0 80c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-9.2-9.2-22.9-11.9-34.9-6.9z"],video:[576,512,"M96 64c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L96 64zM464 336l73.5 58.8c4.2 3.4 9.4 5.2 14.8 5.2 13.1 0 23.7-10.6 23.7-23.7l0-240.6c0-13.1-10.6-23.7-23.7-23.7-5.4 0-10.6 1.8-14.8 5.2L464 176 464 336z"],volumeHigh:[640,512,"M533.6 32.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C557.5 113.8 592 180.8 592 256s-34.5 142.2-88.7 186.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C598.5 426.7 640 346.2 640 256S598.5 85.2 533.6 32.5zM473.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C475.3 170.7 496 210.9 496 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C393.1 227.6 400 241 400 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C434.1 312.9 448 286.1 448 256s-13.9-56.9-35.4-74.5zM80 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L128 160 80 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48z"],volumeXmark:[576,512,"M48 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L96 160 48 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48zM367 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"],xmark:[384,512,"M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Gn=Xi('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path></path></svg>');function Hn(t,e){et(e,!0);let i=ys(e,"style",3,void 0);const r=Q("micrio"),s=Ht(()=>"chevron-down"==e.name||"link-ext"==e.name),n=r.defaultSettings?.ui?.icons,a=Ht(()=>n&&("zoom-in"==e.name?n.zoomIn:"zoom-out"==e.name?n.zoomOut:"maximize"==e.name?n.fullscreenEnter:"minimize"==e.name?n.fullscreenLeave:"close"==e.name?n.close:"arrow-right"==e.name?n.next:"arrow-left"==e.name?n.prev:"arrow-up"==e.name?n.up:"arrow-down"==e.name?n.down:"play"==e.name?n.play:"pause"==e.name?n.pause:"subtitles"==e.name?n.subtitles:"subtitles-off"==e.name?n.subtitlesOff:"volume-off"==e.name?n.muted:"volume-up"==e.name?n.unmuted:null)),o={play:jn.play,pause:jn.pause,close:jn.xmark,"play-filled":jn.playCircle,a11y:jn.globe,menu:jn.bars,"zoom-in":jn.plus,"zoom-out":jn.minus,maximize:jn.expand,minimize:jn.compress,"volume-off":jn.volumeXmark,"volume-up":jn.volumeHigh,subtitles:jn.closedCaptioning,"subtitles-off":jn.closedCaptioning,"arrow-left":jn.arrowLeft,"arrow-up":jn.arrowUp,"arrow-right":jn.arrowRight,"arrow-down":jn.arrowDown,video:jn.video,audio:jn.volumeHigh,image:jn.image,share:jn.share,error:jn.circleExclamation,"chevron-down":jn.chevronDown,link:jn.link,"link-ext":jn.externalLink,"ellipsis-vertical":jn.ellipsisVertical},c=Ht(()=>o[e.name]);var l=ji(),h=xe(l),d=t=>{var e=ji();Er(xe(e),()=>Ai(a),void 0,!0),Gi(t,e)},u=t=>{var e=Gn();let r;var n=_e(e);q(e),Ue(()=>{as(e,"viewBox",`0 0 ${Ai(c)[0]??""} ${Ai(c)[1]??""}`),r=qr(e,0,"svelte-fa micrio-icon",null,r,{small:Ai(s)}),Yr(e,i()),as(n,"d",Ai(c)[2])}),Gi(t,e)};vr(h,t=>{Ai(a)?t(d):Ai(c)&&t(u,1)}),Gi(t,l),it()}var Zn=vt(void 0),Jn=()=>Zn.set(void 0),Kn=!1;Zn.subscribe(t=>{t?Kn||window.addEventListener("click",Jn):Kn&&window.removeEventListener("click",Jn),Kn=!!t});var Qn=Wi('<a class="micrio-menu-action micrio-menu"><strong class="micrio-menu"> <!></strong></a>'),ta=Xi('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="svelte-fa" style="height:1em;vertical-align:-.125em;margin-right:10px;"><path></path></svg>'),ea=Wi('<button class="micrio-menu-action micrio-menu" type="button"><!> <strong class="micrio-menu"> <!></strong></button>'),ia=Wi('<div class="items micrio-menu"></div>'),ra=Wi("<menu><!> <!></menu>");function sa(t,e){et(e,!0);const i=()=>kt(Zn,"$opened",r),[r,s]=_t();let n=ys(e,"menu",15),a=ys(e,"originalId",3,null);const o=Q("micrio"),{events:c,state:l,_lang:h}=o;let d=ne(void 0);const u=Ht(()=>{return t=n(),e=kt(h,"$_lang",r),t.i18n?.[e]??t;var t,e});function m(t){n().link||t.preventDefault(),n().action&&n().action();const i=!!(Ai(p)||n().action||n().link);Zn.set(i?void 0:n()),i&&e.onclose?.()}pr(()=>{Ai(u)?.title||1!=n().children?.length||n(n().children[0]),n().action||(n().markerId?n(n().action=()=>{a()&&o.$current?.id!=a()&&o.open(a()),o.$current?.state.marker.set(n().markerId)},!0):(Ai(u)?.content||Ai(u)?.embed||n().image)&&n(n().action=()=>{c.dispatch("page-open",n()),l.popover.set({contentPage:n()})},!0)),n(n()._button=Ai(d),!0)});const f=t=>t==i()||!!t.children?.some(f),p=Ht(()=>i()&&f(n()));var g=ra();let v;var w=_e(g),b=t=>{var e=Qn(),i=_e(e),r=_e(i),s=Ee(r);{let t=Ht(()=>n().linkTargetBlank?"link-ext":"link");Hn(s,{style:"opacity:.75",get name(){return Ai(t)}})}q(i),q(e),Ue(()=>{as(e,"href",n().link),as(e,"target",n().linkTargetBlank?"_blank":void 0),nr(r,`${Ai(u)?.title??"(Unknown)"??""} `)}),Oi("click",e,m),Gi(t,e)},y=t=>{var e=ea(),i=_e(e),r=t=>{var e=ta(),i=_e(e);q(e),Ue(()=>{as(e,"viewBox",`0 0 ${n().icon[0]??""} ${n().icon[1]??""}`),as(i,"d",n().icon[2])}),Gi(t,e)};vr(i,t=>{n().icon&&t(r)});var s=Ee(i,2),a=_e(s),o=Ee(a),c=t=>{Hn(t,{name:"chevron-down"})};vr(o,t=>{n().children&&n().children.length&&t(c)}),q(s),q(e),gs(e,t=>oe(d,t),()=>Ai(d)),Ue(()=>nr(a,`${Ai(u)?.title??"(Unknown)"??""} `)),Oi("click",e,m),Gi(t,e)};vr(w,t=>{n().link?t(b):t(y,-1)});var k=Ee(w,2),T=t=>{var e=ia();yr(e,23,()=>n().children,(t,e)=>e+t.id,(t,e)=>{sa(t,{get menu(){return Ai(e)},get originalId(){return a()},onclose:Jn})}),q(e),Gi(t,e)};vr(k,t=>{n().children&&n().children.length&&t(T)}),q(g),Ue(t=>{as(g,"data-title",t),v=qr(g,1,"micrio-menu",null,v,{opened:Ai(p)})},[()=>Ai(u)?.title?.toLowerCase()]),Gi(t,g),it(),s()}zi(["click"]);var na=Wi('<img alt="Icon" class="micrio-button"/>'),aa=Wi("<!><!>",1);function oa(t,e){et(e,!0);let i=ys(e,"type",3,void 0),r=ys(e,"icon",3,void 0),s=ys(e,"title",3,null),n=ys(e,"disabled",3,!1),a=ys(e,"active",3,!1),o=ys(e,"className",3,""),c=ys(e,"href",3,void 0),l=ys(e,"blankTarget",3,!1),h=ys(e,"noClick",3,!1);var d=ji();Fr(xe(d),()=>c()?"a":"button",!1,(t,d)=>{var u=t=>e.onclick?.(t),m=t=>e.onfocus?.(t),f=t=>e.onpointerdown?.(t);cs(t,()=>({href:c(),target:l()?"_blank":void 0,disabled:!!n()||void 0,title:s(),"aria-label":s(),role:c()?void 0:"button",tabindex:c()?void 0:0,class:`micrio-button ${i()??""??""} ${o()??""}`,onclick:u,onfocus:m,onpointerdown:f,[Hr]:{active:a(),"no-click":h()}}),void 0,void 0,void 0,"micrio-button");var p=aa(),v=xe(p),w=t=>{Hn(t,{get name(){return i()}})},b=t=>{var e=na();Ue(()=>as(e,"src",r().src)),Gi(t,e)};vr(v,t=>{i()?t(w):r()&&t(b,1)}),fr(Ee(v),()=>e.children??g),Gi(d,p)}),Gi(t,d),it()}var ca=Wi("<menu><!> <!> <!></menu> <!>",1);function la(t,e){et(e,!0);const i=()=>kt(l,"$current",s),r=()=>kt(h,"$_lang",s),[s,n]=_t();let a=ne(void 0);const o=Q("micrio"),{state:c,current:l,_lang:h,spaceData:d}=o,{tour:u,marker:m,popover:f}=c;let p=ne(!1),g=ne(!1);const v=i().id;let w=ne(void 0),b=ne(window.innerWidth<=500);const y=()=>oe(b,window.innerWidth<=500),k=()=>{Ai(b)&&oe(p,!1)},T=Ht(()=>!!kt(u,"$tour",s)||!!kt(m,"$marker",s)||!!kt(f,"$popover",s)),_=Ht(()=>(Ai(a)?.markerTours??[]).concat(d?.markerTours??[])),x=Ht(()=>Ai(_)?.length>0),E=Ht(()=>Ai(a)?.tours&&Ai(a)?.tours?.length>0),S=Ht(()=>Ai(x)&&Ai(E)),A=Ht(()=>!(Ai(w)?.length||Ai(x)||Ai(E))),M=[],I=(t,e)=>("title"in t?t.title:t.i18n?.[e]?.title)??"(Untitled)";pr(()=>{const t=o.current.subscribe(t=>{if(t){for(;M.length;)M.shift()?.();en(t.info).then(()=>oe(g,!t.$settings.noLogo)),M.push(t.data.subscribe(t=>{oe(a,t,!0),Si().then(()=>{if(!t?.pages)return;Ai(w)||oe(w,t.pages?.filter(t=>!t.id?.startsWith("_")),!0);const e=t.pages?.filter(t=>t.id?.startsWith("_"));e.length&&oe(w,[...Ai(w)?.filter(t=>!t.id?.startsWith("_"))??[],...e],!0)})}))}});return window.addEventListener("resize",y),()=>{for(window.removeEventListener("resize",y);M.length;)M.shift()?.();t()}});var $=ji(),P=xe($),L=t=>{var e=ca(),n=xe(e);let c;var l=_e(n),h=t=>{var e=ji();yr(xe(e),17,()=>Ai(w),t=>t.id,(t,e)=>{sa(t,{get menu(){return Ai(e)},get originalId(){return v},onclose:k})}),Gi(t,e)};vr(l,t=>{Ai(w)&&t(h)});var d=Ee(l,2),m=t=>{{let e=Ht(()=>({id:js(),i18n:{[r()]:{title:Ai(S)?"Marker tours":"Tours"}},children:Ai(_).map(t=>({id:js(),i18n:{[r()]:{title:I(t,r())}},action:()=>{t.initialStep=0,u.set(t)}}))}));sa(t,{onclose:k,get menu(){return Ai(e)}})}};vr(d,t=>{Ai(x)&&t(m)});var f=Ee(d,2),y=t=>{{let e=Ht(()=>({id:js(),i18n:{[r()]:{title:Ai(S)?"Video tours":"Tours"}},children:Ai(a)&&Ai(a).tours?Ai(a).tours.map(t=>({id:js(),i18n:{[r()]:{title:I(t,r())}},action:()=>{i()&&i().id!=v&&o.open(v),u.set(t)}})):[]}));sa(t,{onclose:k,get menu(){return Ai(e)}})}};vr(f,t=>{Ai(E)&&t(y)}),q(n);var A=Ee(n,2),M=t=>{{let e=Ht(()=>Ai(p)?"close":"ellipsis-vertical"),i=Ht(()=>"toggle transparent"+(Ai(g)?" indent":""));oa(t,{get title(){return kt(Wn,"$i18n",s).menuToggle},get type(){return Ai(e)},get className(){return Ai(i)},onclick:()=>oe(p,!Ai(p))})}};vr(A,t=>{Ai(b)&&t(M)}),Ue(()=>c=qr(n,1,"micrio-toolbar micrio-toolbar",null,c,{shown:!Ai(T)&&Ai(p),indent:Ai(g)})),Rr(3,n,()=>Fn,()=>({duration:200})),Gi(t,e)};vr(P,t=>{Ai(A)||Ai(T)||t(L)}),Gi(t,$),it(),n()}var ha=Wi("<canvas></canvas>");function da(t,e){et(e,!0);const[i,r]=_t(),s=Q("micrio"),{current:n}=s,a=$i(()=>e.image).$info,o=$i(()=>e.image).camera,c=$i(()=>e.image).$settings,l=c.minimapWidth??200,h=c.minimapHeight??160,d=!c.alwaysShowMinimap,u=!!c.noControls,m=a.width/a.height,f=l/m>h?Math.round(h*m):l,p=l/m<=h?Math.round(l/m):h;let g,v=ne(void 0),w=ne(!1),b=ne(ue(!a.is360&&o.isZoomedOut()));function y(t){if(!t||!g)return;M();const i=sn.toCenterJSON(t);if(g.clearRect(0,0,f,p),e.image.thumbSrc?(g.globalCompositeOperation="source-over",g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,f,p),g.globalAlpha=1,g.globalCompositeOperation="destination-out"):(g.fillStyle="rgba(0,0,0,.5)",g.fillRect(0,0,f,p)),g.beginPath(),g.fillStyle="white",a.is360){const e=function(t){const e=[];let{centerX:i,centerY:r,width:s,height:n}=sn.toCenterJSON(t);i=(i%1+1)%1;let a=i-s/2,o=i+s/2;const c=Math.max(0,r-n/2),l=Math.min(1,r+n/2);return a<0?(e.push({x:a+1,y:c,width:1-(a+1),height:l-c}),e.push({x:0,y:c,width:o,height:l-c})):o>1?(e.push({x:a,y:c,width:1-a,height:l-c}),e.push({x:0,y:c,width:o-1,height:l-c})):e.push({x:a,y:c,width:o-a,height:l-c}),e}(t);for(const t of e)g.rect(Math.floor(t.x*f),Math.floor(t.y*p),Math.ceil(t.width*f),Math.ceil(t.height*p))}else oe(b,o.isZoomedOut(),!0),g.rect(Math.floor((i.centerX-i.width/2)*f),Math.floor((i.centerY-i.height/2)*p),Math.ceil(i.width*f),Math.ceil(i.height*p));e.image.thumbSrc&&(g.fill(),g.globalCompositeOperation="source-over"),g.stroke()}const k=-1!=navigator.userAgent.indexOf("Firefox");let T,_=ne(!1);let x,E=ne(void 0);function S(t){if(T){const e=Math.max(0,Math.min(1,(t.clientX-T.left)/T.width)),i=Math.max(0,Math.min(1,(t.clientY-T.top)/T.height));if(Ai(E)){const t=[e-Ai(E).width/2,i-Ai(E).height/2,Ai(E).width,Ai(E).height];o.setView(t)}else o.setCoo(e,i)}}function A(){window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",A),oe(_,!1),oe(E,void 0)}function M(){oe(w,!1),clearTimeout(x),x=setTimeout(()=>oe(w,!0),2500)}const I=-$i(()=>e.image).camera.rotationY/(2*Math.PI),$=self.crossOriginIsolated;let P=ne(ue($?void 0:$i(()=>e.image).thumbSrc));const L={passive:!0};let C=ne(!1);pr(()=>{let t;g=Ai(v).getContext("2d"),g&&(g.lineWidth=1,g.strokeStyle="white"),$&&e.image.thumbSrc&&fetch(e.image.thumbSrc).then(t=>t.blob()).then(e=>oe(P,t=URL.createObjectURL(e),!0)),s.canvas.element.addEventListener("mousemove",M,L);const i=e.image.state.view.subscribe(y);return setTimeout(()=>oe(C,!0),10),()=>{t&&URL.revokeObjectURL(t),s.canvas.element.removeEventListener("mousemove",M,L),A(),i()}});const R=Ht(()=>Ai(P)?`background-image: url('${Ai(P)}')`+(0!=I?`;background-position-x:${f*I}px`:""):null);var D=ha();let F;gs(D,t=>oe(v,t),()=>Ai(v)),Ue(()=>{as(D,"width",f),as(D,"height",p),Yr(D,Ai(R)),F=qr(D,1,"micrio-minimap",null,F,{hidden:!Ai(C)||kt(n,"$current",i)!=e.image||d&&(Ai(b)||Ai(w)),dragging:Ai(_),controls:!u})}),Fi("wheel",D,function(t){o.zoom(t.deltaY*(k?50:1))}),Oi("mousedown",D,function(t){if(0!=t.button)return;window.addEventListener("mousemove",S),window.addEventListener("mouseup",A),T=Ai(v).getClientRects()[0];const e=o.getView();e&&oe(E,{width:e[2],height:e[3]},!0),S(t),oe(_,!0)}),Gi(t,D),it(),r()}zi(["mousedown"]);var ua=Wi("<div><!></div>");function ma(t,e){let i=ys(e,"className",3,"");var r=ua();fr(_e(r),()=>e.children??g),q(r),Ue(()=>qr(r,1,Vr(i()),"micrio-button-group")),Gi(t,r)}function fa(t,e){et(e,!0);const[i,r]=_t(),s="requestFullscreen"in $i(()=>e.el),n="webkitRequestFullscreen"in $i(()=>e.el),a=Q("micrio"),o=()=>s?document.fullscreenElement:document.webkitFullscreenElement??null;let c=ne(o()===$i(()=>e.el));const l=s||n&&!o(),h=()=>new Promise(t=>setTimeout(t,500));let d;function u(){Ai(c)?async function(){s?(await document.exitFullscreen().then(h),d&&d instanceof HTMLElement&&d.requestFullscreen(),d=void 0):"webkitExitFullscreen"in document&&document.webkitExitFullscreen()}():async function(){s?(d=o(),Js.safari&&d&&await document.exitFullscreen().then(h),e.el.requestFullscreen()):"webkitRequestFullscreen"in e.el&&e.el.webkitRequestFullscreen()}()}const m=$i(()=>e.el)==a&&!a.events.scrollHooked,f=()=>{oe(c,o()===e.el),m&&(Ai(c)?a.events.hookScroll():a.events.unhookScroll())};l&&pr(()=>{const t=s?"fullscreenchange":"webkitfullscreenchange";return document.addEventListener(t,f),()=>document.removeEventListener(t,f)});var p=ji(),g=xe(p),v=t=>{{let e=Ht(()=>Ai(c)?"minimize":"maximize");oa(t,{get type(){return Ai(e)},get title(){return kt(Wn,"$i18n",i).fullscreenToggle},onclick:u})}};vr(g,t=>{l&&t(v)}),Gi(t,p),it(),r()}var pa=Wi("<!> <!>",1);function ga(t,e){et(e,!0);const i=()=>kt(Wn,"$i18n",r),[r,s]=_t();let n=ys(e,"image",15,void 0);const a=Q("micrio");let o=ne(!1),c=ne(!1),l=ne(!1),h=ne(!1);const d=()=>{a.events.clicked=!0},u=()=>{d(),n()?.camera.zoomIn().then(()=>a.events.clicked=!1)},m=()=>{d(),n()?.camera.zoomOut().then(()=>a.events.clicked=!1)};function f(){oe(o,n()?.camera.isZoomedIn()??!0,!0),oe(c,n()?.camera.isZoomedOut(!0)??!0,!0);const t=n()?.camera.getMinScale()??0;oe(l,t>1&&t>(n()?.$settings.zoomLimit??1),!0)}let p,g;pr(()=>(n()?p=n().state.view.subscribe(f):g=a.current.subscribe(t=>{p&&(p(),p=void 0),oe(h,!0),n(t)?en(t.info).then(()=>{n()&&(p=n().state.view.subscribe(f)),oe(h,!1)}):oe(h,!1)}),()=>{g&&g(),p&&p()}));var v=ji(),w=xe(v),b=t=>{var e=pa(),r=xe(e);{let t=Ht(()=>Ai(h)||Ai(o));oa(r,{type:"zoom-in",get title(){return i().zoomIn},get disabled(){return Ai(t)},onclick:u})}var s=Ee(r,2);{let t=Ht(()=>Ai(h)||Ai(c));oa(s,{type:"zoom-out",get title(){return i().zoomOut},get disabled(){return Ai(t)},onclick:m})}Gi(t,e)};vr(w,t=>{Ai(l)||Ai(o)&&Ai(c)||t(b)}),Gi(t,v),it(),s()}var va=Wi('<menu class="popout micrio-controls"><!> <!></menu>'),wa=Wi("<!> <!> <!>",1),ba=Wi("<!> <!>",1),ya=Wi("<aside><!></aside>"),ka=Wi('<aside class="micrio-controls"><!> <!></aside> <!>',1);function Ta(t,e){et(e,!0);const i=()=>kt(m,"$current",l),r=()=>kt(Ai(T),"$info",l),s=()=>kt(g,"$_lang",l),n=()=>kt(v,"$tour",l),a=()=>kt(y,"$zoom",l),o=()=>kt(p,"$isMuted",l),c=()=>kt(Wn,"$i18n",l),[l,h]=_t();let d=ys(e,"hasAudio",3,!1);const u=ue(Q("micrio")),{current:m,state:f,isMuted:p,_lang:g}=u,{tour:v,popup:w}=f,{controls:b,zoom:y,hidden:k}=u.state.ui,T=Ht(()=>i()?.info),_=Ht(()=>r()&&i()?i().isV5?Object.keys(r().revision??{[s()]:0}):("cultures"in r()?r().cultures:"")?.split(",")??[]:[]),x=Ht(()=>n()&&"steps"in n()&&n().isSerialTour);function E(){if(navigator.share&&i()?.$info){const t=i().$data?i().$data?.i18n?i().$data.i18n[s()]:i().$data:void 0;navigator.share({title:i().$info?.title,text:t?.description||`${i().$info.width} x ${i().$info.height} | Micrio`,url:location.href})}}let S=ne(null),A=ne(!1);function M(t){const e=t.detail;oe(A,u.canvas.viewport.portrait,!0),e.opts.isPassive||oe(S,e,!0)}function I(){oe(S,null)}let $=ne(!1),P=ne(!1),L=ne(!1);function C(t){y.set(!t.noZoom),b.set(!t.noControls),oe($,!!t.ui?.controls?.cultureSwitch),oe(P,!!t.social),oe(L,!!t.fullscreen)}i()&&C(i().$settings),pr(()=>{let t;u.addEventListener("splitscreen-start",M),u.addEventListener("splitscreen-stop",I);const e=u.current.subscribe(e=>{e&&en(e.info).then(i=>{!i||n()&&"steps"in n()||(t?.(),t=e.settings.subscribe(C))})});return()=>{u.removeEventListener("splitscreen-start",M),u.removeEventListener("splitscreen-stop",I),t?.(),e()}});const R=Ht(()=>"micrioAudioContext"in window||d()),D=Ht(()=>Ai($)&&Ai(_).length>1),F=Ht(()=>Ai(P)&&"share"in navigator),O=Ht(()=>Ai(L)&&!Ai(x)),z=Ht(()=>kt(b,"$controls",l)&&!kt(k,"$hidden",l)&&(Ai(R)||Ai(D)||Ai(F)||a()||Ai(O))),N=Ht(()=>kt(w,"$popup",l)&&u.canvas.$isMobile);var V=ji(),U=xe(V),B=t=>{var e=ka(),i=xe(e),r=_e(i),n=t=>{var e=wa(),i=xe(e),r=t=>{{let e=Ht(()=>o()?"volume-off":"volume-up"),i=Ht(()=>o()?c().audioUnmute:c().audioMute);oa(t,{get type(){return Ai(e)},get title(){return Ai(i)},onclick:()=>p.set(!o())})}};vr(i,t=>{Ai(R)&&t(r)});var n=Ee(i,2),a=t=>{var e=va(),i=_e(e);oa(i,{get title(){return c().switchLanguage},type:"a11y"}),yr(Ee(i,2),17,()=>Ai(_),wr,(t,e)=>{{let i=Ht(()=>Xn?.of(Ai(e))??Ai(e)),r=Ht(()=>Ai(e)==s());oa(t,{onclick:()=>u.lang=Ai(e),get title(){return Ai(i)},get active(){return Ai(r)},children:(t,i)=>{X();var r=Yi();Ue(t=>nr(r,t),[()=>Ai(e).toUpperCase()]),Gi(t,r)},$$slots:{default:!0}})}}),q(e),Gi(t,e)};vr(n,t=>{Ai(D)&&t(a)});var l=Ee(n,2),h=t=>{oa(t,{type:"share",get title(){return c().share},onclick:E})};vr(l,t=>{Ai(F)&&t(h)}),Gi(t,e)};vr(r,t=>{Ai(N)||t(n)}),ma(Ee(r,2),{children:(t,e)=>{var i=ba(),r=xe(i),s=t=>{var e=ji(),i=xe(e),r=t=>{ga(t,{get image(){return Ai(S)}})},s=t=>{ga(t,{})};vr(i,t=>{Ai(S)?t(r):t(s,-1)}),Gi(t,e)};vr(r,t=>{a()&&!Ai(N)&&t(s)});var n=Ee(r,2),o=t=>{fa(t,{get el(){return u}})};vr(n,t=>{Ai(O)&&t(o)}),Gi(t,i)},$$slots:{default:!0}}),q(i);var l=Ee(i,2),h=t=>{var e=ya();let i;ma(_e(e),{children:(t,e)=>{ga(t,{})},$$slots:{default:!0}}),q(e),Ue(()=>i=qr(e,1,"primary micrio-controls",null,i,{portrait:Ai(A)})),Rr(3,e,()=>Fn),Gi(t,e)};vr(l,t=>{a()&&Ai(S)&&t(h)}),Gi(t,e)};vr(U,t=>{Ai(z)&&t(B)}),Gi(t,V),it(),h()}var _a=class{constructor(t,e){this.image=t,this.data=e,this.timeline=[],this._paused=!0,this.playing=!1,this.wasPaused=!1,this.unhookEvents=!1,this.micrio=t.wasm.micrio;const i="timeline"in e?e:e.i18n?.[wt(this.micrio._lang)]??void 0;if(!i)throw new Error("No valid content for video tour!");this.content=i,this.unhookEvents=!e.keepInteraction&&this.micrio.events.$enabled,e.instance=this,this.read(),this.micrio.events.dispatch("videotour-start",this.data)}destroy(){this.unhookEvents&&this.micrio.events.enabled.set(!0),this.playing&&(this.image.camera.stop(),this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-stop",this.data),this.playing=!1,delete this.startedAt,delete this.data.instance,this.startAt=void 0,clearTimeout(this._to))}read(){const t=this.data.i18n?1:this.content.duration,e=this.content.timeline;this.timeline.length=0;for(let i=0;i<e.length;i++){const r=e[i],s=e[i-1],n=s?s.end*t:0;this.timeline.push({view:this.data.isLegacy?sn.fromLegacy(r.rect):r.rect,start:1e3*n,duration:1e3*(r.start*t-n),pauseDuration:(r.end-r.start)*t*1e3})}this.startedAt&&!this.playing&&(this.progress=this.currentTime)}get duration(){return Number(this.content.duration)}set duration(t){this.content.duration=t}get paused(){return this._paused}get ended(){return this.currentTime>=this.duration}get currentTime(){return(this.pausedAt?this.pausedAt:this.startedAt?Date.now()-this.startedAt:0)/1e3}set currentTime(t){this.setProgress(t/this.content.duration)}get progress(){return this.currentTime/this.content.duration}set progress(t){this.setProgress(t)}play(){this.startedPlaying(),this.wasPaused=!1,this.pausedAt?(this.startedAt=Date.now()-this.pausedAt,this._paused=!1,this.gotoTime(this.pausedAt),this.pausedAt=void 0):this.playing||(this.startedAt=Date.now(),void 0===this.startAt?this.gotoStep(0,0):this.gotoTime(this.duration*this.startAt*1e3),this.startAt=void 0),this._paused=!1,this.playing=!0}pause(){this._paused||null==this.currentIndex||null==this.startedAt||(this._paused=!0,this.stoppedPlaying(),clearTimeout(this._to),this.currentIndex>=0&&this.image.camera.stop(),this.ended?this.reset():this.pausedAt=Date.now()-this.startedAt)}reset(){this.stoppedPlaying(),this.pausedAt=void 0,this.playing=!1,this.read()}gotoStep(t,e){if(null==this.startedAt)return;if(clearTimeout(this._to),!this.timeline[t]){if(!this.paused||!this.wasPaused){const t=Math.max(0,Math.round(1e3*this.duration-(Date.now()-this.startedAt)));this._to=setTimeout(()=>this.pause(),t)}return}const i=this.timeline[t],r=Math.round(i.start-(Date.now()-this.startedAt));this.currentIndex=t,this.image.camera.stop(),r>0?this._paused||(this._to=setTimeout(()=>this.startAni(e),r)):this.startAni(e)}nextStep(){null!=this.currentIndex&&this.gotoStep(this.currentIndex+1)}getView(t){return this.timeline[t]?.view}startAni(t=0){if(null==this.currentIndex||isNaN(t))return;const e=this.timeline[this.currentIndex];if(null==e)return;const i=sn.toCenterJSON(e.view),r=this.getView(this.currentIndex-1),s=r?sn.toCenterJSON(r):void 0,n=this.image.opts?.area;if(this.wasPaused&&s){const e=this.micrio.wasm.ease(t),r={centerX:s.centerX*(1-e)+i.centerX*e,centerY:s.centerY*(1-e)+i.centerY*e,width:s.width*(1-e)+i.width*e,height:s.height*(1-e)+i.height*e};this.image.camera.setView([r.centerX-r.width/2,r.centerY-r.height/2,r.width,r.height],{noLimit:!0,area:n}),this.nextStep()}else this.image.camera.flyToView(e.view,{duration:e.duration,progress:t,prevView:s?[s.centerX-s.width/2,s.centerY-s.height/2,s.width,s.height]:void 0,area:n}).then(()=>{null!=this.currentIndex&&e==this.timeline[this.currentIndex]&&this.nextStep()}).catch(()=>{})}startedPlaying(){this.micrio.setAttribute("data-videotour-playing",""),this.micrio.events.dispatch("videotour-play"),this.unhookEvents&&this.micrio.events.enabled.set(!1)}stoppedPlaying(){this.micrio.removeAttribute("data-videotour-playing"),this.micrio.events.dispatch("videotour-pause"),this.unhookEvents&&this.micrio.events.enabled.set(!0)}setProgress(t){t=Math.max(0,Math.min(1,t)),this.wasPaused=!!this.paused||!this.playing,this.pause(),this.wasPaused||(this._paused=!1,this.startedPlaying());const e=this.duration*t*1e3;this.pausedAt=e,this.gotoTime(e),this.wasPaused?this.pause():(this.pausedAt=void 0,this._paused=!1)}gotoTime(t){let e=null,i=0;for(;i<this.timeline.length&&!(this.timeline[i].start>t);i++)e=this.timeline[i];if(i--,e||!(i>0))if(e){this.image.camera.stop();const r=e.duration>0?(t-e.start)/e.duration:0;this.startedAt=Date.now()-e.start-e.duration*r,isNaN(this.startedAt)&&(this.startedAt=Date.now()-t),r>1?(this.gotoStep(i+1),null!=e.view&&this.image.camera.setView(e.view,{noLimit:!0})):(i>0&&this.image.camera.setView(this.timeline[i-1].view,{noLimit:!0}),this.gotoStep(i,r))}else this.timeline.length&&this.image.camera.stop(),this.paused||this.gotoStep(0)}};window.MicrioVideoTour=_a;var xa={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},Ea=class{constructor(t,e,i={}){this.frame=t,this.config=e,this.callbacks=i,this.requiresTimeTick=!0,this.destroyed=!1}async initialize(){if("YT"in window||await tn("https://i.micr.io/youtube.js","onYouTubeIframeAPIReady"),!("YT"in window))throw new Error("Failed to load YouTube API");return new Promise((t,e)=>{this.player=new window.YT.Player(this.frame,{host:$n,width:this.config.width.toString(),height:this.config.height.toString(),playerVars:{controls:0},events:{onError:()=>{this.callbacks.onError?.(new Error("YouTube player error")),e(new Error("YouTube player error"))},onReady:()=>{this.destroyed?e(new Error("Player destroyed during initialization")):(this.callbacks.onReady?.(),this.callbacks.onDurationChange?.(this.player.getDuration()),t())},onStateChange:t=>this.handleStateChange(t.data)}})})}handleStateChange(t){switch(t){case xa.UNSTARTED:this.callbacks.onBlocked?.(),this.callbacks.onPause?.();break;case xa.ENDED:this.callbacks.onEnded?.();break;case xa.PLAYING:this.callbacks.onPlay?.(),this.callbacks.onSeeked?.();break;case xa.PAUSED:this.callbacks.onPause?.();break;case xa.BUFFERING:this.callbacks.onBuffering?.(),this.callbacks.onSeeking?.()}}async play(){this.player?.playVideo()}pause(){this.destroyed||this.player?.pauseVideo?.()}async getCurrentTime(){return this.player?.getCurrentTime?.()??0}setCurrentTime(t){this.callbacks.onSeeking?.(),this.player?.seekTo?.(t)}async getDuration(){return this.player?.getDuration?.()??0}async isPaused(){if(!this.player)return!0;const t=this.player.getPlayerState?.();return void 0===t||[xa.UNSTARTED,xa.ENDED,xa.PAUSED].includes(t)}setMuted(t){t?this.player?.mute?.():this.player?.unMute?.()}setVolume(t){}destroy(){this.destroyed=!0,this.player?.destroy?.(),this.player=void 0}},Sa=class{constructor(t,e,i={}){this.frame=t,this.config=e,this.callbacks=i,this.requiresTimeTick=!1,this.destroyed=!1}async initialize(){if("Vimeo"in window||await tn("https://i.micr.io/vimeo.min.js"),!("Vimeo"in window))throw new Error("Failed to load Vimeo API");return new Promise((t,e)=>{this.player=new window.Vimeo.Player(this.frame,{width:this.config.width.toString(),height:this.config.height.toString(),title:!1,autoplay:!1});const i=this.player;i.on("error",()=>{this.callbacks.onError?.(new Error("Vimeo player error")),e(new Error("Vimeo player error"))}),i.on("loaded",()=>{this.destroyed?e(new Error("Player destroyed during initialization")):i.getVolume().then(()=>{this.callbacks.onReady?.(),t()})}),i.on("play",()=>{this.callbacks.onPlay?.(),this.callbacks.onSeeked?.()}),i.on("bufferstart",()=>{this.callbacks.onBuffering?.(),this.callbacks.onSeeking?.()}),i.on("seeked",()=>{this.callbacks.onSeeked?.()}),i.on("pause",()=>{this.callbacks.onPause?.()}),i.on("timeupdate",t=>{t&&(this.callbacks.onDurationChange?.(t.duration),this.callbacks.onTimeUpdate?.(t.seconds))}),i.on("ended",()=>{this.callbacks.onEnded?.()})})}async play(){this.player?.play()}pause(){this.player?.pause()}async getCurrentTime(){return await(this.player?.getCurrentTime?.())??0}setCurrentTime(t){this.player?.setCurrentTime?.(t)}async getDuration(){return await(this.player?.getDuration?.())??0}async isPaused(){return await(this.player?.getPaused?.())??!0}setMuted(t){this.player?.setVolume?.(t?0:1)}setVolume(t){this.player?.setVolume?.(Math.max(0,Math.min(1,t)))}destroy(){if(this.destroyed=!0,this.player){for(const t of["error","loaded","play","bufferstart","seeked","pause","volumechange","timeupdate","ended"])this.player.off(t);this.player.destroy(),this.player=void 0}}},Aa=class{constructor(t,e={}){this.element=t,this.callbacks=e,this.requiresTimeTick=!1,this.attachEventListeners()}attachEventListeners(){const t=this.element,e=this.callbacks;e.onPlay&&t.addEventListener("play",e.onPlay),e.onPause&&t.addEventListener("pause",e.onPause),e.onEnded&&t.addEventListener("ended",e.onEnded),e.onSeeking&&t.addEventListener("seeking",e.onSeeking),e.onSeeked&&t.addEventListener("seeked",e.onSeeked),e.onTimeUpdate&&t.addEventListener("timeupdate",()=>e.onTimeUpdate?.(t.currentTime)),e.onDurationChange&&t.addEventListener("durationchange",()=>e.onDurationChange?.(t.duration)),e.onError&&t.addEventListener("error",()=>e.onError?.(new Error("Media playback error"))),e.onReady&&t.addEventListener("canplay",e.onReady)}async play(){try{await this.element.play()}catch(t){throw t instanceof Error&&!/pause\(\)/.test(t.message)&&this.callbacks.onBlocked?.(),t}}pause(){this.element.pause()}async getCurrentTime(){return this.element.currentTime}setCurrentTime(t){this.element.currentTime=t}async getDuration(){return this.element.duration}async isPaused(){return this.element.paused}setMuted(t){this.element.muted=t}setVolume(t){this.element.volume=Math.max(0,Math.min(1,t))}destroy(){const t=this.element,e=this.callbacks;e.onPlay&&t.removeEventListener("play",e.onPlay),e.onPause&&t.removeEventListener("pause",e.onPause),e.onEnded&&t.removeEventListener("ended",e.onEnded),e.onSeeking&&t.removeEventListener("seeking",e.onSeeking),e.onSeeked&&t.removeEventListener("seeked",e.onSeeked)}},Ma=class{constructor(t,e,i={}){this.element=t,this.hlsSrc=e,this.callbacks=i,this.requiresTimeTick=!1,this.destroyed=!1}async initialize(){if("Hls"in window||await tn("https://r2.micr.io/hls-1.6.15.min.js",void 0,"Hls"in window?{}:void 0),!("Hls"in window))throw new Error("Failed to load HLS.js");if(this.destroyed)throw new Error("Adapter destroyed during initialization");const t=new window.Hls({abrEwmaDefaultEstimate:1e7,abrEwmaDefaultEstimateMax:5e7});this.hls=t,t.loadSource(this.hlsSrc),t.attachMedia(this.element),this.html5Adapter=new Aa(this.element,this.callbacks),this.callbacks.onReady?.()}async play(){return this.html5Adapter?.play()}pause(){this.html5Adapter?.pause()}async getCurrentTime(){return this.html5Adapter?.getCurrentTime()??Promise.resolve(0)}setCurrentTime(t){this.html5Adapter?.setCurrentTime(t)}async getDuration(){return this.html5Adapter?.getDuration()??Promise.resolve(0)}async isPaused(){return this.html5Adapter?.isPaused()??Promise.resolve(!0)}setMuted(t){this.html5Adapter?.setMuted(t)}setVolume(t){this.html5Adapter?.setVolume(t)}destroy(){this.destroyed=!0,this.html5Adapter?.destroy(),this.hls?.destroy(),this.hls=void 0,this.html5Adapter=void 0}},Ia="micrio-captions-disable",$a=vt("1"!=localStorage.getItem(Ia));$a.subscribe(t=>{t?localStorage.removeItem(Ia):localStorage.setItem(Ia,"1")});var Pa=Wi('<div><p class="micrio-subtitles"> </p></div>');function La(t,e){et(e,!0);const[i,r]=_t();let s=ys(e,"raised",3,!1);const n=ue([]);fetch($i(()=>e.src)).then(t=>t.text()).then(t=>{const e=t.split("\n");for(let i=0;i<e.length;i++)if(/-->/.test(e[i])){let t=i+1;const r=[];for(;!e[t]&&t<e.length;)t++;for(;e[t]&&e[t].trim();)r.push(e[t++]);const[s,a]=e[i].split(" --\x3e ").map(t=>t.trim().replace(",",".").split(":").map(Number)).map(t=>3===t.length?3600*t[0]+60*t[1]+t[2]:2===t.length?60*t[0]+t[1]:0);n.push({start:s,end:a,data:r.join("\n")}),i+=r.length+1}}).catch(t=>console.error("Subtitles: fetch error:",t));const a=Q("micrio");let o=ne(0);const c=t=>oe(o,t.detail,!0);pr(()=>(a.addEventListener("timeupdate",c),()=>a.removeEventListener("timeupdate",c)));const l=Ht(()=>n.filter(t=>t.start<=Ai(o)&&t.end>=Ai(o)));var h=ji(),d=xe(h),u=t=>{var e=ji();yr(xe(e),16,()=>Ai(l),t=>t,(t,e)=>{var i=Pa();let r;var n=_e(i),a=_e(n,!0);q(n),q(i),Ue(()=>{r=qr(i,1,"micrio-subtitles",null,r,{raised:s()}),nr(a,e.data)}),Rr(3,i,()=>Fn),Gi(t,i)}),Gi(t,e)};vr(d,t=>{kt($a,"$captionsEnabled",i)&&t(u)}),Gi(t,h),it(),r()}var Ca=Wi('<div class="container micrio-progress-bar"><div class="bars micrio-progress-bar"><!></div> <div class="time micrio-progress-bar"> </div></div>');function Ra(t,e){et(e,!0);let i=ys(e,"ended",11,!1);var r=Ca(),s=_e(r);fr(_e(s),()=>e.children??g),q(s);var n=Ee(s,2),a=_e(n,!0);q(n),q(r),Ue((t,e)=>{Yr(r,t),nr(a,e)},[()=>`--progress: ${Math.round((e.currentTime??0)/e.duration*1e4)/100}%;--time: '${Hs(e.currentTime??0)}';`,()=>Hs(i()||!e.currentTime||e.currentTime<=0?e.duration:(e.currentTime??0)-e.duration)]),Oi("click",r,t=>t.stopPropagation()),Oi("keydown",r,t=>t.stopPropagation()),Gi(t,r),it()}zi(["click","keydown"]);var Da=Xi('<svg height="42" width="42" class="micrio-media-controls"><circle r="19" cx="21" cy="21" class="micrio-media-controls"></circle></svg>'),Fa=Wi("<!> <!> <!>",1),Oa=Wi('<div class="bar active"></div>'),za=Wi('<aside class="micrio-media-controls"><!> <!></aside> <!>',1);zi(["click","keydown","mousedown"]);var Na=Wi("<iframe></iframe>"),Va=Wi('<source type="video/mp4;codecs=hvc1"/>'),Ua=Wi("<!> <source/>",1),Ba=Wi('<video playsinline="" class="micrio-media"><!></video>',2),Wa=Wi("<audio></audio>"),qa=Wi("<micr-io></micr-io>",2),Xa=Wi("<aside><!></aside>"),Ya=Wi('<figcaption class="micrio-media"></figcaption>'),ja=Wi('<div class="show-play micrio-media" role="button"><!></div>'),Ga=Wi('<figure><div role="button"><!> <!> <!></div> <!></figure> <!>',1);function Ha(t,e){et(e,!0);const i=()=>kt(O,"$_lang",r),[r,s]=_t(),n=Q("micrio");let a=ys(e,"src",11,void 0),o=ys(e,"volume",15,1),c=ys(e,"width",3,640),l=ys(e,"height",3,380),h=ys(e,"frameScale",3,1),d=ys(e,"autoplay",15,!1),u=ys(e,"loop",3,!1),m=ys(e,"loopDelay",3,void 0),f=ys(e,"controls",15,!1),p=ys(e,"title",3,void 0),g=ys(e,"figcaption",3,null),v=ys(e,"paused",15,!0),w=ys(e,"forcePause",3,void 0),b=ys(e,"seeking",15,!0),y=ys(e,"duration",31,()=>-1),k=ys(e,"currentTime",15),T=ys(e,"is360",3,!1),_=ys(e,"tour",3,null),x=ys(e,"secondary",3,!1),E=ys(e,"fullscreen",3,void 0),S=ys(e,"className",3,null),A=ys(e,"hasTransparentH265",3,!1),M=ys(e,"noPlayOverlay",3,!1),I=ys(e,"uuid",15,""),$=ys(e,"image",19,()=>wt(n.current)),P=ys(e,"destroying",3,void 0),L=ys(e,"_media",15,void 0),C=ne(!1);I(I()+(a()??$i(()=>_())?.id));const R=$i(()=>$()).$info,{events:D,state:F,_lang:O}=n,z=Q("volume"),N=0==kt(z,"$mainVolume",r),U=Q("srt"),B=Q("mediaPaused"),W=n.hasAttribute("data-native-frame"),X=function(t,e,i=!1,r=0){t=function(t){if(t)return/<iframe /.test(t)&&(t=t.replace(/^.* src="([^"]+)".*$/,"$1")),t.startsWith("video://")&&(t=t.replace("video:","https:")),t}(t);const s=t?.toLowerCase(),n={type:En.None,originalSrc:t,isCloudflare:!1};if(!t&&e)return n.type=En.VideoTour,n;if(!t||!s)return n;if(t.startsWith("cfvid://"))return n.isCloudflare=!0,n.cloudflareId=t.slice(8),n.hlsSrc=`https://videodelivery.net/${n.cloudflareId}/manifest/video.m3u8`,n.type=En.Video,n;if(s.endsWith(".mp3"))return n.type=En.Audio,n.src=t,n;if(s.endsWith(".mp4")||s.endsWith(".webm"))return n.type=En.Video,n.src=t,n;if(s.startsWith("micrio://"))return n.type=En.Micrio,n.micrioEmbed=t.slice(9).split(","),n;if(!i){const e=An.exec(t);if(e?.[5]){if("playlist"!==e[5]){n.type=En.IFrame,n.frameType=Sn.YouTube,n.youtubeId=e[5];const i=In.test(t)?Number(t.replace(In,"$1")):r;return n.startTime=Math.round(i),n.src=`${$n}/embed/${e[5]}?autoplay=0&enablejsapi=1&controls=0&start=${n.startTime}`,n}{const e=/list=([^&]+)/.exec(t);if(e?.[1])return n.type=En.IFrame,n.src=`${$n}/embed/videoseries?list=${e[1]}`,n}}if(Mn.test(t)){const e=t.match(/\/(\d+)/);if(e?.[1]){n.type=En.IFrame,n.frameType=Sn.Vimeo,n.vimeoId=e[1],n.vimeoToken=t.slice(t.indexOf(e[1])+e[1].length+1).replace(/\?.*$/,"")||void 0;const i=Math.round(r);return n.src=`https://player.vimeo.com/video/${e[1]}?${n.vimeoToken?`h=${n.vimeoToken}&`:""}title=0&portrait=0&sidedock=0&byline=0&controls=0#t=${i}s`,n}}}return s.startsWith("http")?(n.type=En.IFrame,n.src=t,n):n}(a(),$i(()=>_()),W,k()??0),{type:Y,frameType:j,isCloudflare:G,micrioEmbed:H,hlsSrc:Z}=X;let J,K=ne(ue(X.src??a()));Y==En.Micrio&&v(!1),(Y==En.Micrio||Y==En.IFrame&&!j)&&f(!1);let tt=-1,rt=ne(ue(j==Sn.YouTube||j==Sn.Vimeo));const st=Y==En.Audio&&Js.iOS;let nt,at=ne(void 0);const ot=F.mediaState.get(I());ot&&(k(ot.currentTime),d(!v(ot.paused))),F.mediaState.set(I(),{get currentTime(){return k()??0},set currentTime(t){At(t)},get paused(){return v()},set paused(t){t?bt():vt()}});let ct=ne(void 0);{const t=$i(()=>_());if(t){const e=new _a($i(()=>$()),t);null!=k()&&k()>0&&(e.currentTime=k()),Y==En.VideoTour&&(y("duration"in t?Number(t.duration):t.i18n?.[i()]?.duration??0),o(NaN)),oe(ct,e,!0)}}const lt=$i(()=>_()&&!("steps"in _())?"subtitle"in _()?_().subtitle:_().i18n?.[n.lang]?.subtitle:void 0),ht=lt&&("fileUrl"in lt?lt.fileUrl:lt.src);let dt,ut=ne(!1),mt=ne(!1),ft=!1,pt=ne(!1);function gt(t){t&&"button"in t&&0!=t.button||(v()?vt():bt())}async function vt(t){if(!(t instanceof PointerEvent&&0!=t.button)&&(!ft||await async function(){return L()?L().paused:Ai(ct)?v():!!J&&J.isPaused()}())){switch(oe(mt,!1),y()>0&&null!=k()&&k()>=y()&&k(0),!x()&&ht&&U.set(ht),Y){case En.VideoTour:v(b(!1)),Ai(ct)?.play(),$t();break;case En.Audio:case En.Video:L()?.addEventListener("play",()=>{L()&&(isNaN(L().duration)?L().addEventListener("durationchange",yt,{once:!0}):yt())},{once:!0}),L()?.play().catch(t=>{M()?v(!0):/pause\(\)/.test(t.toString())||(oe(ut,!0),n.events.dispatch("media-blocked"),e.onblocked?.())});break;case En.IFrame:J?.play();break;default:return}ft=!0,D.dispatch("media-play"),B.set(!1),e.onplay?.(),T()||N||Ai(ct)&&!L()||z.set($().$settings.mutedVolume||0)}}function bt(){D.dispatch("media-pause"),B.set(!0),L()?(L().pause(),st&&v(!0)):Ai(ct)?(Ai(ct).pause(),v(!0),Pt()):J&&!Ai(Ft)&&J.pause()}function yt(){oe(ut,!1),v(!1),Ai(ct)&&L()&&(L().duration>Ai(ct).duration&&(Ai(ct).duration=L().duration),Ai(ct).currentTime=L().currentTime,Ai(ct).play())}function Tt(){b(!1),T()&&$()&&!$()._video&&$().video.set(L())}function xt(){Ai(mt)||(Ai(ct)?bt():(v(!0),Pt()),oe(mt,!0),D.dispatch("media-ended"),e.onended?.(),Dt())}function Et(t){L()?L(L().muted=t,!0):J&&J.setMuted(t)}function St(){oe(C,!Ai(C)),Et(Ai(C)),N||z.set(Ai(C)?1:$().$settings.mutedVolume||0)}function At(t){b(!0),L()?L(L().currentTime=t,!0):Ai(ct)?(k(Ai(ct).currentTime=t),b(!1)):J&&J.setCurrentTime(t)}function Mt(){Ai(ct)?(k(Ai(ct).currentTime),Ai(ct).ended&&xt()):J&&J.getCurrentTime().then(t=>{k(t)}),It()}function It(){x()||D.dispatch("timeupdate",k())}function $t(){tt>=0||(tt=setInterval(Mt,250),Mt())}function Pt(){clearInterval(tt),tt=-1}async function Lt(){if(G&&Z&&("MediaSource"in window||"ManagedMediaSource"in window)){const t=new Ma(L(),Z,{onReady:()=>b(!1),onEnded:xt});return await t.initialize(),void(J=t)}if(Y==En.IFrame&&Ai(at)){if(j==Sn.YouTube){const t=new Ea(Ai(at),{width:Ai(qt),height:Ai(Xt)},{onReady:()=>b(!1),onDurationChange:t=>y(t),onPlay:()=>{$t(),oe(pt,v(b(!1)),!0)},onPause:()=>{v(!0),Pt()},onEnded:xt,onBlocked:()=>{oe(pt,v(!0),!0),Pt()},onSeeking:()=>{Mt(),b(!0),Pt()}});return b(!0),await t.initialize(),void(J=t)}if(j==Sn.Vimeo){const t=new Sa(Ai(at),{width:Ai(qt),height:Ai(Xt)},{onReady:()=>b(!1),onPlay:()=>v(b(!1)),onPause:()=>v(!0),onSeeking:()=>b(!0),onSeeked:()=>b(!1),onTimeUpdate:t=>k(t),onDurationChange:t=>y(t),onEnded:xt});return b(!0),await t.initialize(),void(J=t)}}L()&&(G&&Z&&oe(K,Z,!0),function(){if(!L())return;L(L().ontimeupdate=It,!0),Ai(ct)&&(L(L().onpause=()=>{Rt=!!L()?.ended,L()?.ended||Ai(ct).pause()},!0),L(L().onseeked=()=>{!L()||L().ended||Rt||(Ai(ct).currentTime=L().currentTime,Ct&&(L().pause(),Ct=!1))},!0));null!=k()&&k()>0&&(L().duration>0?L(L().currentTime=k(),!0):L(L().oncanplay=()=>{L()&&(L(L().oncanplay=null,!0),d()||(L().play(),Ct=!0),L(L().currentTime=nt,!0))},!0));const t=u()&&void 0!==m()?m():-1;L(L().onended=t>=0?()=>{clearTimeout(dt),dt=setTimeout(()=>{w()||L()?.play()},1e3*t)}:xt,!0)}())}let Ct=!1,Rt=!1;function Dt(){N||z.set(1)}let Ft=ne(!1);const Ot=$i(()=>P()&&P().subscribe(t=>{t&&Nt()})),zt=()=>k(L()?.currentTime??0);function Nt(){Ai(Ft)||(oe(Ft,!0),Ot&&Ot(),T()&&$()&&$().video.set(void 0),F.mediaState.delete(I()),Pt(),bt(),Dt(),ht&&U.set(void 0),L()&&(L(L().onended=null,!0),st&&(L(L().onloadedmetadata=L(L().onplay=L(L().onseeking=L(L().onseeked=null,!0),!0),!0),!0),L().removeEventListener("timeupdate",zt)),L(L().ontimeupdate=L(L().onpause=L(L().onseeked=L(L().oncanplay=null,!0),!0),!0),!0)),Ai(ct)&&Ai(ct).destroy(),J&&(J.destroy(),J=void 0))}const Vt=Y==En.Video;let Ut=ne(ue($i(()=>Vt&&G&&1!=h()&&Js.iOS)));const Bt=R.is360?Math.PI/2:1,Wt=Ht(()=>Vt?h()*Bt:Y==En.IFrame?Math.max(h(),Math.min(c()/512,l()/512)):1),qt=Ht(()=>Vt?c():Math.round(c()/Ai(Wt)*Bt)),Xt=Ht(()=>Vt?l():Math.round(l()/Ai(Wt)*Bt));let Yt=ne(void 0),jt=ne(void 0);const Gt=Ht(()=>Ai(ct)&&_()?"events"in _()?_().events:_().i18n?.[i()]?.events??void 0:void 0);pr(()=>{e.onid?.(I()),a()&&st&&(L((xn||(xn=new Audio),xn)),L(L().controls=!1,!0),L(L().onloadedmetadata=()=>y(L()?.duration??0),!0),L(L().src=a(),!0),L(L().oncanplay=Tt,!0),L(L().onended=xt,!0),L().addEventListener("timeupdate",zt),L(L().onseeking=()=>b(!0),!0),L(L().onseeked=()=>b(!1),!0)),nt=k()||0,oe(rt,j==Sn.YouTube||j==Sn.Vimeo,!0),Lt().then(()=>{d()&&vt()}).catch(()=>{}),Ai(Ut)&&L()?.addEventListener("playing",()=>oe(Ut,!1),{once:!0});let t=!1;const i=n.isMuted.subscribe(e=>{t?(oe(C,e,!0),Et(e)):t=!0});return()=>{Nt(),i(),st&&L(void 0),J?.destroy()}}),Oe(()=>{void 0!==w()&&v(w())}),Oe(()=>{u()&&void 0!==m()&&clearTimeout(dt)});var Zt=ji(),Jt=xe(Zt),Kt=t=>{var e=Ga(),i=xe(e);let s;Yr(i,null);var n=_e(i);let a;as(n,"tabindex",-1);var h=_e(n),w=t=>{var e=Na();cs(e,t=>({...t,title:p(),src:Ai(K),width:Ai(qt),height:Ai(Xt),frameborder:"0",allow:"fullscreen *;autoplay *;encrypted-media *",[Hr]:{hooked:Ai(rt)&&!Ai(pt)}}),[()=>({credentialless:!0})],void 0,void 0,"micrio-media"),gs(e,t=>oe(at,t),()=>Ai(at)),function(t){if(!V)return;t.removeAttribute("onload"),t.removeAttribute("onerror");const e=t.__e;void 0!==e&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}(e),Gi(t,e)},_=t=>{var e=Ba();e.controls=!1;var i=_e(e),r=t=>{var e=Ua(),i=xe(e),r=t=>{var e=Va();Ue(t=>as(e,"src",t),[()=>Ai(K).replace(".webm",".mp4")]),Gi(t,e)},s=Ht(()=>A()&&Ai(K).endsWith(".webm"));vr(i,t=>{Ai(s)&&t(r)});var n=Ee(i,2);Ue(()=>{as(n,"src",Ai(K)),as(n,"type",G?"application/x-mpegURL":void 0)}),Gi(t,e)};vr(i,t=>{Ai(K)&&t(r)}),q(e),gs(e,t=>L(t),()=>L()),Ue(()=>{e.loop=u()&&(null==m()||m()<=0),as(e,"width",c()),as(e,"height",l()),Yr(e,Ai(Ut)?"opacity: 0":void 0),e.muted=Ai(C),e.autoplay=!!d()}),Fi("canplay",e,Tt),Fi("ended",e,xt),vs("duration","durationchange",e,y),us(e,k),ms(e,b),fs(e,v),Gi(t,e)},x=t=>{var e=Wa();e.controls=!1,gs(e,t=>L(t),()=>L()),Ue(()=>{as(e,"src",Ai(K)),e.muted=Ai(C)}),Fi("canplay",e,()=>b(!1)),Fi("ended",e,xt),vs("duration","durationchange",e,y),us(e,k),ms(e,b),fs(e,v),Gi(t,e)},M=t=>{var e=qa();os(e,"data-logo","false"),Ue(()=>os(e,"id",H[0])),Ue(()=>os(e,"width",H[1])),Ue(()=>os(e,"height",H[2])),Ue(()=>os(e,"lang",H[3])),Ue(()=>os(e,"data-path",R.path)),Gi(t,e)};vr(h,t=>{Y==En.IFrame?t(w):Y==En.Video?t(_,1):Y!=En.Audio||st?Y==En.Micrio&&H&&t(M,3):t(x,2)});var I=Ee(h,2),$=t=>{!function(t,e){et(e,!0);let i=ys(e,"currentTime",11,0);const r=Q("micrio");e.events.forEach(t=>{t.start=Number(t.start||0),t.end=Math.min(Number(t.end||0),e.duration)});const s=t=>e.events.forEach(e=>{const i=e.start<=t&&e.end>=t;i!=!!e.active&&(e.active=i,r.events.dispatch("tour-event",{...e}))});Oe(()=>{s(i())}),gr(()=>s(1/0)),it()}(0,{get events(){return Ai(Gt)},get currentTime(){return k()},set currentTime(t){k(t)},get duration(){return y()},set duration(t){y(t)}})};vr(I,t=>{Ai(Gt)?.length&&y()>0&&!Ai(Ft)&&t($)});var P=Ee(I,2),D=t=>{var e=Xa();let i;var r=_e(e);{let t=Ht(()=>!!ht),e=Ht(()=>!isNaN(o())),i=Ht(()=>T()||Y!=En.IFrame&&Y!=En.Video?E():Ai(Yt));!function(t,e){et(e,!0);const i=()=>kt(Wn,"$i18n",s),r=()=>kt($a,"$captionsEnabled",s),[s,n]=_t();let a=ys(e,"currentTime",15),o=ys(e,"duration",11,0),c=ys(e,"seeking",11,!0),l=ys(e,"minimal",3,!1),h=ys(e,"ended",15),d=ys(e,"fullscreen",3,void 0),u=ys(e,"subtitles",3,!1),m=ys(e,"hasAudio",3,!0),f=ys(e,"muted",3,!1),p=ne(void 0);function g(t){0==t.button&&(window.addEventListener("mousemove",v),window.addEventListener("mouseup",w),v(t))}function v(t){const i=Ai(p).getClientRects()[0],r=Math.min(1,Math.max(0,(t.clientX-i.left)/i.width));e.onseek?.(r*o())}function w(){window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",w)}var b=za(),y=xe(b),k=_e(y);{let t=Ht(()=>e.paused?"play":"pause"),r=Ht(()=>e.paused?i().play:i().pause);oa(k,{get type(){return Ai(t)},get title(){return Ai(r)},get onclick(){return e.onplaypause},children:(t,e)=>{var i=ji(),r=xe(i),s=t=>{var e=Da(),i=_e(e);q(e),Ue(()=>as(i,"stroke-dashoffset",119.4*(1-a()/o()))),Gi(t,e)};vr(r,t=>{l()&&void 0!==a()&&a()>0&&t(s)}),Gi(t,i)},$$slots:{default:!0}})}var T=Ee(k,2),_=t=>{var s=Fa(),n=xe(s),a=t=>{{let r=Ht(()=>f()?"volume-off":"volume-up"),s=Ht(()=>f()?i().audioUnmute:i().audioMute);oa(t,{get disabled(){return c()},get type(){return Ai(r)},get title(){return Ai(s)},get onclick(){return e.onmute}})}};vr(n,t=>{m()&&t(a)});var o=Ee(n,2),l=t=>{{let e=Ht(()=>r()?"subtitles":"subtitles-off");oa(t,{get type(){return Ai(e)},get active(){return r()},get title(){return i().subtitlesToggle},onclick:()=>$a.set(!r())})}};vr(o,t=>{u()&&t(l)});var h=Ee(o,2),p=t=>{fa(t,{get el(){return d()}})};vr(h,t=>{d()&&t(p)}),Gi(t,s)};vr(T,t=>{l()||t(_)}),q(y);var x=Ee(y,2),E=t=>{Ra(t,{get duration(){return o()},get currentTime(){return a()},set currentTime(t){a(t)},get ended(){return h()},set ended(t){h(t)},children:(t,e)=>{var i=Oa();gs(i,t=>oe(p,t),()=>Ai(p)),Ue(()=>Yr(i,`--progress:${(a()??0)/o()*100}%;`)),Oi("mousedown",i,g),Gi(t,i)},$$slots:{default:!0}})};vr(x,t=>{l()||t(E)}),Oi("click",y,t=>t.stopPropagation()),Oi("keydown",y,t=>t.stopPropagation()),Gi(t,b),it(),n()}(r,{get subtitles(){return Ai(t)},get hasAudio(){return Ai(e)},get muted(){return Ai(C)},get fullscreen(){return Ai(i)},onplaypause:gt,onmute:St,onseek:t=>At(t),get paused(){return v()},set paused(t){v(t)},get seeking(){return b()},set seeking(t){b(t)},get duration(){return y()},set duration(t){y(t)},get currentTime(){return k()},set currentTime(t){k(t)},get ended(){return Ai(mt)},set ended(t){oe(mt,t,!0)}})}q(e),Ue(()=>i=qr(e,1,"micrio-media",null,i,{inside:"inside"==f()})),Gi(t,e)};vr(P,t=>{f()&&t(D)}),q(n),gs(n,t=>oe(jt,t),()=>Ai(jt));var F=Ee(n,2),O=t=>{var e=Ya();Er(e,g,!0),q(e),Gi(t,e)};vr(F,t=>{g()&&t(O)}),q(i),gs(i,t=>oe(Yt,t),()=>Ai(Yt));var z=Ee(i,2),N=t=>{var e=ja();as(e,"tabindex",-1),oa(_e(e),{get title(){return kt(Wn,"$i18n",r).play},type:"play"}),q(e),Oi("pointerup",e,vt),Gi(t,e)};vr(z,t=>{Ai(ut)&&t(N)}),Ue(()=>{s=qr(i,1,Vr(S()),"micrio-media",s,{paused:v(),is360:T(),"media-video":Y==En.IFrame||Y==En.Video,"media-micrio":Y==En.Micrio}),Yr(n,1==Ai(Wt)||Y!=En.Video&&R.is360?"":`transform:scale(${Ai(Wt)})`),a=qr(n,1,"micrio-media",null,a,{videotour:!!Ai(ct)})}),Oi("pointerup",n,t=>{t.target==Ai(jt)&>(t)}),Gi(t,e)};vr(Jt,t=>{$().$settings.noUI||t(Kt)}),Gi(t,Zt),it(),s()}zi(["pointerup"]);var Za=Wi("<article><!></article>");function Ja(t,e){et(e,!0);let i=ys(e,"cn",3,null);function r(t){t.target&&t.target instanceof HTMLAnchorElement&&!t.target.getAttribute("href")?.startsWith("#")&&(t.target.target="_blank")}var s=Za();fr(_e(s),()=>e.children??g),q(s),Ue(()=>qr(s,1,Vr(i()),"micrio-article")),Oi("click",s,t=>t.stopPropagation()),Oi("keydown",s,r),Oi("pointerdown",s,r),Gi(t,s),it()}zi(["click","keydown","pointerdown"]);var Ka=Wi('<h1 class="micrio-marker-content"> </h1>'),Qa=Wi('<figcaption class="micrio-marker-content"> </figcaption>'),to=Wi('<button class="micrio-marker-content"><figure class="micrio-marker-content"><img class="micrio-marker-content"/> <!></figure></button>'),eo=Wi('<section class="micrio-marker-content"></section>'),io=Wi("<!> <!>",1),ro=Wi("<main><!> <!> <!> <!> <!> <!> <!></main>");function so(t,e){et(e,!0);const i=()=>kt(m,"$tour",s),r=()=>kt(u,"$lang",s),[s,n]=_t();let a=ys(e,"noEmbed",3,!1),o=ys(e,"noImages",3,!1),c=ys(e,"noGallery",3,!1),l=ys(e,"_content",15),h=ys(e,"_title",15);const d=Q("micrio"),u=d._lang,m=d.state.tour,f=i()&&"steps"in i()&&i().isSerialTour,p=Q("markerImages").get($i(()=>e.marker).id),g=p.$settings._markers??{},v=!g.preventAutoPlay,w=$i(()=>!e.marker.data?.preventImageOpen&&!c()),b=$i(()=>1==e.marker.images?.length),y=Ht(()=>Ln(e.marker,r())),k=Ht(()=>!(Ai(y)?.title||Ai(y)?.audio||e.marker.images&&e.marker.images.length||Ai(y)?.embedUrl||e.marker.videoTour||Ai(y)?.body||Ai(y)?.bodySecondary)),T=()=>{i()&&"steps"in i()&&(i().isSerialTour||g.tourAutoProgress)&&e.onclose?.()};const _=Ht(()=>!v||!e.marker?.audioAutoPlay),x=Ht(()=>!1===e.marker?.embedAutoPlay||!v||!(!Ai(y)?.audio||!e.marker?.audioAutoPlay)),E=p.tileBase?.includes("micrio.dev"),S=t=>t.i18n?.[r()]?.title,A=Ht(()=>e.marker.videoTour?.i18n?.[r()]?.audio??Ai(y)?.audio),M=Ht(()=>Pn(Ai(A))),I=Ht(()=>b&&e.marker.images?.[0]?.i18n?.[r()]?.description);var $=ji(),P=xe($),L=t=>{var i=ro();let r;var s=_e(i),n=t=>{var e=Ka(),i=_e(e,!0);q(e),gs(e,t=>h(t),()=>h()),Ue(()=>nr(i,Ai(y).title)),Gi(t,e)};vr(s,t=>{Ai(y).title&&t(n)});var c=Ee(s,2),u=t=>{Ja(t,{children:(t,e)=>{var i=ji();Er(xe(i),()=>Ai(y).body),Gi(t,i)},$$slots:{default:!0}})};vr(c,t=>{Ai(y).body&&g.primaryBodyFirst&&t(u)});var m=Ee(c,2),A=t=>{{let i=Ht(()=>e.marker.audioAutoPlay||!Ai(y).audio&&!!e.marker.videoTour),r=Ht(()=>!e.marker.videoTour||!Ai(y)||!Ai(y).embedUrl);Ha(t,{get src(){return Ai(M)},noPlayOverlay:!0,get image(){return p},get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return Ai(i)},get controls(){return Ai(r)},onended:T,get paused(){return Ai(_)}})}};vr(m,t=>{!f&&((!Ai(y)||!Ai(y).embedUrl)&&e.marker.videoTour||Ai(y)&&Ai(y).audio)&&t(A)});var $=Ee(m,2),P=t=>{var i=eo();yr(i,21,()=>e.marker.images,t=>t.id??t.src,(t,i)=>{var r=to(),s=_e(r),n=_e(s),a=Ee(n,2),o=t=>{var e=Qa(),i=_e(e,!0);q(e),Ue(()=>nr(i,Ai(I))),Gi(t,e)};vr(a,t=>{Ai(I)&&t(o)}),q(s),q(r),Ue((t,e,i)=>{as(r,"title",t),r.disabled=!w,as(n,"alt",e),as(n,"src",i)},[()=>S(Ai(i)),()=>S(Ai(i)),()=>Ai(i).micrioId?`https://iiif.${E?"micrio.dev":"micr.io"}/${Ai(i).micrioId}/full/${b?"^"+Math.min(Ai(i).width,640)+",":"^,320"}/0/default.webp`:Ai(i).src]),Oi("click",r,function(...t){(w?()=>{return t=Ai(i).micrioId,void(w&&d.state.popover.set({gallery:e.marker.images,galleryStart:t,image:p}));var t}:void 0)?.apply(this,t)}),Gi(t,r)}),q(i),Gi(t,i)};vr($,t=>{!o()&&e.marker.images?.length&&t(P)});var L=Ee($,2),C=t=>{var i=io(),r=xe(i),s=t=>{Ha(t,{get image(){return p},className:"hidden",get uuid(){return e.marker.id},get tour(){return e.marker.videoTour},get autoplay(){return v},secondary:!0})};vr(r,t=>{!Ai(y).audio&&e.marker.videoTour&&t(s)});var n=Ee(r,2);{let t=Ht(()=>!Ai(x));Ha(n,{get image(){return p},get src(){return Ai(y).embedUrl},get uuid(){return e.marker.id},width:400,height:240,controls:!0,get title(){return Ai(y).embedTitle},get figcaption(){return Ai(y).embedDescription},get autoplay(){return Ai(t)},onended:T,get paused(){return Ai(x)}})}Gi(t,i)};vr(L,t=>{Ai(y).embedUrl&&!a()&&t(C)});var R=Ee(L,2),D=t=>{Ja(t,{children:(t,e)=>{var i=ji();Er(xe(i),()=>Ai(y).body),Gi(t,i)},$$slots:{default:!0}})};vr(R,t=>{Ai(y).body&&!g.primaryBodyFirst&&t(D)});var F=Ee(R,2),O=t=>{Ja(t,{cn:"secondary",children:(t,e)=>{var i=ji();Er(xe(i),()=>Ai(y).bodySecondary),Gi(t,i)},$$slots:{default:!0}})};vr(F,t=>{Ai(y).bodySecondary&&t(O)}),q(i),gs(i,t=>l(t),()=>l()),Ue(()=>r=qr(i,1,"micrio-marker-content",null,r,{empty:Ai(k)})),Gi(t,i)};vr(P,t=>{Ai(y)&&t(L)}),Gi(t,$),it(),n()}zi(["click"]);var no=Wi('<button class="micrio-button tour-step micrio-marker-popup" disabled=""> </button>'),ao=Wi("<!> <!> <!>",1),oo=Wi('<progress class="progress micrio-marker-popup"></progress> <!>',1),co=Wi('<div><aside class="micrio-marker-popup"><!> <!> <!></aside> <!></div>');function lo(t,e){et(e,!0);const i=()=>kt(l,"$tour",n),r=()=>kt(c,"$current",n),s=()=>kt(Wn,"$i18n",n),[n,a]=_t(),o=Q("micrio"),{current:c}=o,l=o.state.tour,h=Q("markerImages").get($i(()=>e.marker).id),d=h.$settings._markers??{},u=Ht(()=>i()&&"steps"in i()?o.canvases.find(t=>t.$data?.markerTours?.find(t=>t.id===i().id)):void 0),m=$i(()=>e.marker.data||{}),f=d.canMinimizePopup;let p=ne(void 0);function g(t){i()&&Ai(w)&&"steps"in i()?t instanceof Event&&Ai(T)?l.set(void 0):i().next?.():r()&&!h.opts.secondaryTo&&r().id!=h.id&&m.micrioLink?.id==r().id?(o.open(h.id),h.state.marker.set(void 0),o.state.popup.set(void 0)):h.state.marker.set(void 0)}const v=Ht(()=>i()&&"steps"in i()?i():void 0),w=Ht(()=>Ai(v)&&Ai(v)?.steps.findIndex(t=>t.startsWith(e.marker.id))>=0),b=Ht(()=>Ai(w)&&!Ai(v)?.isSerialTour&&(Ai(u)?.$settings._markers?.tourControlsInPopup??d.tourControlsInPopup)),y=Ht(()=>Ai(w)&&!Ai(v)?.isSerialTour&&(Ai(u)?.$settings._markers?.tourStepCounterInPopup??d.tourStepCounterInPopup)),k=Ht(()=>Ai(v)?.currentStep??-1),T=Ht(()=>Ai(b)||(Ai(v)?Ai(v).currentStep==Ai(v).steps.length-1:void 0));let _=ne(!1);const x=(t=!1)=>{Ai(v)&&(t?Ai(v).prev?.():Ai(v).next?.(),oe(_,!0),setTimeout(()=>oe(_,!1),200))};let E=ne(!1),S=ne(void 0),A=ne(void 0);const M=new WeakMap,I=()=>{if(oe(E,!Ai(E)),Ai(S))for(let t=0;t<Ai(S).children.length;t++){const e=Ai(S).children[t];e instanceof HTMLElement&&e!=Ai(A)&&(M.has(e)||(M.set(e,e.offsetHeight),e.style.height=e.offsetHeight+"px"),setTimeout(()=>{e.style.height=Ai(E)?"0px":M.get(e)+"px"},100))}};let $=ne(!1);pr(()=>{e.marker.tags?.forEach(t=>Ai(p)?.classList.add(t)),setTimeout(()=>Ai(p)?.querySelector("button")?.focus(),500);const t="embedImages"in e.marker?e.marker.embedImages:void 0;t&&o.$current?.data.update(e=>(e||(e={embeds:[]}),e.embeds=[...e.embeds??[],...t],e));const i=o.state.popup.subscribe(t=>oe($,!t||t!=e.marker,!0));return()=>{i(),t&&o.$current?.data.update(e=>e?.embeds?(e.embeds=e.embeds.filter(e=>!t.find(t=>t.id==e.id)),e):e)}});var P=co();let L;var C=_e(P),R=_e(C),D=t=>{{let e=Ht(()=>!Ai(w)||Ai(T)?"close":"arrow-right"),i=Ht(()=>!Ai(w)||Ai(T)?s().closeMarker:s().tourStepNext);oa(t,{get type(){return Ai(e)},get title(){return Ai(i)},get disabled(){return Ai(_)},onclick:g})}};vr(R,t=>{m.alwaysOpen||t(D)});var F=Ee(R,2),O=t=>{{let e=Ht(()=>Ai(E)?"arrow-up":"arrow-down");oa(t,{get type(){return Ai(e)},get title(){return s().minimize},onclick:I})}};vr(F,t=>{f&&t(O)});var z=Ee(F,2),N=t=>{var e=oo(),r=xe(e);as(r,"aria-hidden",!0),ma(Ee(r,2),{className:"micrio-tour-controls",children:(t,e)=>{var r=ao(),n=xe(r);{let t=Ht(()=>Ai(_)||0==Ai(k));oa(n,{type:"arrow-left",get disabled(){return Ai(t)},get title(){return s().tourStepPrev},onclick:()=>x(!0)})}var a=Ee(n,2),o=t=>{var e=no(),r=_e(e);q(e),Ue(()=>nr(r,`${Ai(k)+1} / ${i().steps.length??""}`)),Gi(t,e)};vr(a,t=>{Ai(y)&&t(o)});var c=Ee(a,2);{let t=Ht(()=>Ai(_)||Ai(k)+1==i().steps.length);oa(c,{type:"arrow-right",get disabled(){return Ai(t)},get title(){return s().tourStepNext},onclick:()=>x()})}Gi(t,r)},$$slots:{default:!0}}),Ue(()=>function(t,e){var i=ls(t);i.value!==(i.value=e??void 0)&&(t.value!==e||0===e&&t.nodeName===rs)&&(t.value=e??"")}(r,(Ai(k)+1)/i().steps.length)),Gi(t,e)};vr(z,t=>{Ai(b)&&i()&&"steps"in i()&&t(N)}),q(C),so(Ee(C,2),{get marker(){return e.marker},onclose:g,get _content(){return Ai(S)},set _content(t){oe(S,t,!0)},get _title(){return Ai(A)},set _title(t){oe(A,t,!0)}}),q(P),gs(P,t=>oe(p,t),()=>Ai(p)),Ue(()=>L=qr(P,1,"micrio-marker-popup",null,L,{destroying:Ai($),minimized:Ai(E)})),Rr(3,P,()=>On,()=>d.popupAnimation),Gi(t,P),it(),a()}var ho=Wi('<li><button class="micrio-serial-tour"> </button></li>'),uo=Wi('<ol class="micrio-serial-tour"></ol>'),mo=Wi("<!> <!> <!> <!>",1),fo=Wi('<div role="progressbar"></div>'),po=Wi('<!> <aside class="micrio-media-controls micrio-serial-tour"><!> <!></aside> <!>',1);function go(t,e){et(e,!0);const i=()=>kt(l,"$lang",n),r=()=>kt(Wn,"$i18n",n),s=()=>kt($a,"$captionsEnabled",n),[n,a]=_t(),o=$i(()=>e.tour).stepInfo,c=Q("micrio"),l=c._lang,h=c.$current,d=c.state.marker,u=!!h.$settings?.ui?.controls?.serialTourNoTimeScrub,m=o.reduce((t,e)=>t+e.duration,0)??0,f=$i(()=>"controls"in e.tour?!1!==e.tour.controls:!e.tour.noControls);let p=ne(!1),g=ne(!1),v=ne(!1);Oe(()=>c.isMuted.subscribe(t=>{oe(v,t,!0)}));let w=ne(void 0),b=ne(void 0),y=ne(0),k=ne("");function T(){const t=c.state.mediaState.get(Ai(k));t&&(t.paused=oe(p,!t.paused)),Ai(p)?(c.events.dispatch("serialtour-pause",e.tour),c.events.enabled.set(!0)):(c.events.dispatch("serialtour-play",e.tour),c.events.enabled.set(!1))}function _(t,i){if(!e.tour.goto)return;const r=t==e.tour.currentStep;if(u&&r)return;r||e.tour.goto(t);const s=!u&&i?i.offsetX/i.target.offsetWidth:0;o.forEach((e,r)=>e.ended=!i&&r<t),S();const n=o[t];n.currentTime=s*n.duration,r&&Ai(w)?.instance&&(Ai(w).instance.currentTime=n.currentTime),M(t)}function x(){c.isMuted.update(t=>!t)}function E(){const t=Ai(b);t&&(t.ended=!0),null!=e.tour.currentStep&&e.tour.currentStep<e.tour.steps.length-1&&e.tour.next?e.tour.next():(oe(p,oe(g,!0),!0),e.onended?.()),Si().then(()=>{S(),t&&(t.ended=!1)})}function S(){e.tour.stepInfo?.forEach(t=>t.currentTime=0)}const A=vt([]);function M(t=e.tour.currentStep??0){const i=o.map((e,i)=>i<t||e.ended||Ai(g)?100:i==t?Math.round((e.currentTime||0)/e.duration*1e4)/100:0);oe(y,i.reduce((t,e,i)=>t+e/100*o[i].duration,0),!0),A.set(i)}function I(t){const i=t&&!!e.tour.steps.find(e=>e.startsWith(t.id));oe(w,void 0),i&&t.videoTour&&setTimeout(()=>{const i=o[e.tour.currentStep??0];i.markerId==t.id&&(i.ended=!1,oe(b,i,!0),oe(w,t.videoTour,!0),M())},10)}const $=t=>t.i18n?t.i18n[i()]?.title:t.title;pr(()=>{const t=()=>M();c.addEventListener("timeupdate",t);const e=d.subscribe(I);return()=>{e(),c.removeEventListener("timeupdate",t),S()}});const P=Ht(()=>Ai(w)?"audio"in Ai(w)?Ai(w).audio:Ai(w).i18n?.[i()]?.audio:void 0),L=Ht(()=>Pn(Ai(P))),C=Ht(()=>!!Ai(b)?.hasSubtitle),R=Ht(()=>o.some(t=>t.hasSubtitle));var D=po(),F=xe(D),O=t=>{var e=uo();yr(e,21,()=>o,wr,(t,e,i)=>{var r=ji(),s=xe(r),n=t=>{var r=ho();let s;var n=_e(r),a=_e(n,!0);q(n),q(r),Ue(t=>{s=qr(r,1,"micrio-serial-tour",null,s,{active:Ai(b)&&Ai(b).chapter==i,enriched:Ai(e).imageHasOtherMarkers}),nr(a,t)},[()=>$(Ai(e).marker)]),Oi("click",n,()=>_(i)),Gi(t,r)},a=Ht(()=>$(Ai(e).marker));vr(s,t=>{Ai(a)&&t(n)}),Gi(t,r)}),q(e),Gi(t,e)};vr(F,t=>{e.tour.printChapters&&t(O)});var z=Ee(F,2),N=_e(z),V=t=>{{let e=Ht(()=>!Ai(p));Ha(t,{get tour(){return Ai(w)},get src(){return Ai(L)},get autoplay(){return Ai(e)},onid:t=>oe(k,t,!0),onended:E,onplay:()=>oe(p,!1),onblocked:()=>oe(p,!0),get currentTime(){return Ai(b).currentTime},set currentTime(t){Ai(b).currentTime=t}})}};vr(N,t=>{Ai(w)&&Ai(b)&&t(V)});var U=Ee(N,2),B=t=>{var e=mo(),i=xe(e);{let t=Ht(()=>Ai(p)?"play":"pause"),e=Ht(()=>Ai(p)?r().play:r().pause);oa(i,{get type(){return Ai(t)},get title(){return Ai(e)},onclick:T})}var n=Ee(i,2);{let t=Ht(()=>Ai(v)?"volume-off":"volume-up"),e=Ht(()=>Ai(v)?r().audioUnmute:r().audioMute);oa(n,{get type(){return Ai(t)},get title(){return Ai(e)},onclick:x})}var a=Ee(n,2),o=t=>{{let e=Ht(()=>!Ai(C)),i=Ht(()=>s()?"subtitles":"subtitles-off");oa(t,{get disabled(){return Ai(e)},get type(){return Ai(i)},get active(){return s()},get title(){return r().subtitlesToggle},onclick:()=>$a.set(!s())})}};vr(a,t=>{Ai(R)&&t(o)}),fa(Ee(a,2),{get el(){return c}}),Gi(t,e)};vr(U,t=>{f&&t(B)}),q(z);var W=Ee(z,2),X=t=>{Ra(t,{get duration(){return m},get currentTime(){return Ai(y)},set currentTime(t){oe(y,t,!0)},get ended(){return Ai(g)},set ended(t){oe(g,t,!0)},children:(t,i)=>{var r=ji();yr(xe(r),17,()=>o,wr,(t,i,r)=>{var s=ji(),a=xe(s),o=t=>{var s=fo();let a;Ue(t=>{a=qr(s,1,"bar",null,a,{active:r==e.tour.currentStep}),as(s,"title",t),Yr(s,`width:${Ai(i).duration/m*100}%; --progress: ${kt(A,"$times",n)[r]||0}%`)},[()=>$(Ai(i).marker)]),Oi("click",s,t=>_(r,t)),Fi("keypress",s,t=>{"Enter"===t.key&&_(r)}),Gi(t,s)};vr(a,t=>{Ai(i).duration>0&&t(o)}),Gi(t,s)}),Gi(t,r)},$$slots:{default:!0}})};vr(W,t=>{f&&t(X)}),Gi(t,D),it(),a()}zi(["click"]);var vo=Wi('<article class="scroll-tour micrio-tour"></article> <!>',1),wo=Wi("<!> <!> <!>",1),bo=Wi("<div><!> <!></div>");function yo(t,e){et(e,!0);const i=()=>kt(d,"$_lang",s),r=()=>kt(Wn,"$i18n",s),[s,n]=_t();let a=ys(e,"tour",15),o=ys(e,"noHTML",3,!1);const c=Q("micrio"),{events:l,state:h,_lang:d}=c,u=c.$current,m=u.$data,f=u.$settings,p=c.canvases[0].grid,g=u.state.marker,v="steps"in a()&&a().isSerialTour,w=!("steps"in a()),b="scrollable"in a()&&a().scrollable,y="steps"in a()&&("controls"in a()?!1!==a().controls:!!a().noControls),k=!(!v&&"steps"in a()&&f._markers?.tourControlsInPopup),T=k&&(w||v),_=!!f._markers?.keepPopupsDuringTourTransitions,x=()=>M(Ai(C)-1),E=()=>M(Ai(C)+1),S=()=>l.enabled.set(!0);let A;function M(t){if(!("steps"in a())||!a().stepInfo)return;const e=a().stepInfo[t];if(e&&e.markerId==c.state.$marker?.id)return I(e);const i=a().stepInfo[Ai(C)]?.micrioImage?.state;i&&i.marker.set(void 0),c.$current?.state.marker.set(void 0),_||c.state.popup.set(void 0),c.removeEventListener("marker-opened",S),g.set(void 0),e&&(A=setTimeout($,200,e))}async function I(t){let e=u,i=!1;if(p&&!t.gridView&&p.images.find(e=>e.id==t.micrioId)){const r=!!("steps"in a()&&a().stepInfo&&t)&&a().stepInfo?.indexOf(t)<Ai(C),s=t.marker.data?.gridTourTransition??t.marker.data?._meta?.gridTourTransition,n=s?.startsWith("slide")?"slide":"swipe";await Si().then(()=>{const a=p.focus(e=p.images.find(e=>e.id==t.micrioId),{view:t.startView,transition:s==n||s==`${n}-horiz`?r?`${n}-left`:`${n}-right`:s==`${n}-vert`?r?`${n}-up`:`${n}-down`:"behind"==s?r?"behind-left":"behind-right":s}).catch(()=>i=!0);return c.events.enabled.set(!1),a})}else if(c.$current?.id!=t.micrioId){if(t.gridView&&t.marker.data?._meta?.gridAction&&p){t.micrioImage||(t.micrioImage=p.images.find(e=>e.id==t.micrioId)),e=t.micrioImage;const i=t.marker.data._meta.gridAction.split("|");p.action(i.shift(),i.join("|"))}else"steps"in a()&&a().stepInfo&&oe(C,a().stepInfo.indexOf(t),!0),e=c.open(t.micrioId,{gridView:t.gridView,startView:t.startView});await Si()}else e=c.$current;return[e,i]}async function $(t){let e=u,i=!1;t.micrioId&&([e,i]=await I(t)),i||(t.micrioImage||(t.micrioImage=e),l.enabled.set(!1),e.state.marker.set(t.markerId),c.addEventListener("marker-opened",S,{once:!0}),await Si(),l.dispatch("tour-step",a()))}function P(){h.tour.set(void 0)}function L(){l.dispatch("tour-ended",a()),(a().closeOnFinish||!a().cannotClose&&y)&&P()}let C=ne(-1),R=ne(!1);const D=u.camera.getView(),F=f._markers;"steps"in a()&&(a(a().prev=x,!0),a(a().next=E,!0),a(a().goto=M,!0),Oe(()=>{a(a().currentStep=Ai(C),!0)}));const O=vt(!1);let z;function N(){O.set(!1),clearTimeout(z),z=setTimeout(()=>O.set(!0),5e3)}O.subscribe(t=>l.dispatch("tour-minimize",t));let V,U=ne(void 0);function B(t){if(!("steps"in a())||!Ai(U))return;const e=a().steps,i=t.filter(t=>t.isIntersecting).map(t=>t.target)[0];if(i)for(let r=0;r<Ai(U).children.length;r++)if(Ai(U).children[r]==i){const t=m.markers?.find(t=>t.id==e[r].split(",")[0]);return void(t&&c.$current?.camera.flyToView(t.view).catch(()=>{}))}}let W=[];pr(()=>("steps"in a()&&bn(u,a(),i(),u.$data).then(()=>function(t){if(b||c.$current?.state.$marker||void 0!==t.initialStep&&M(t.initialStep),b&&Ai(U)){V=new IntersectionObserver(B,{root:Ai(U),threshold:1});for(let t=0;t<Ai(U).children.length;t++)V.observe(Ai(U).children[t])}W.push(c.state.marker.subscribe(e=>{if(!e)return void oe(R,!1);const i="string"==typeof e?e:e.id,r=t.steps.findIndex(t=>t.startsWith(i));if(r>=0&&t.stepInfo){const e=t.stepInfo[oe(C,r,!0)];e&&!e.micrioImage&&(e.micrioImage=c.canvases.find(t=>t.id==e.micrioId)??p?.images.find(t=>t.id==e.micrioId)??c.$current)}oe(R,r<0)}))}(a())),y||W.push(O.subscribe(t=>e.onminimize?.(t))),o()||"steps"in a()&&!v||!1===a().minimize||(c.addEventListener("pointermove",N),c.addEventListener("touchstart",N),N()),T&&c.setAttribute("data-tour-active",""),()=>{for(clearTimeout(z),clearTimeout(A);W.length;)W.shift()?.();c.removeEventListener("pointermove",N),c.removeEventListener("touchstart",N),c.removeEventListener("marker-opened",S),T&&c.removeAttribute("data-tour-active"),S(),V&&V.disconnect();const t=c.state.$marker;if("steps"in a()&&a().stepInfo&&null!=a().currentStep){const e=a().stepInfo[a().currentStep];delete a().goto,delete a().next,delete a().prev,t&&e?.markerId==t.id&&(e.micrioImage?.state.marker.set(void 0),c.state.marker.set(void 0))}u.camera.aniDone=void 0,p||"steps"in a()&&a().keepLastStep||c.$current==u||c.open(u.id),Si().then(()=>{l.dispatch("tour-stop",a()),"steps"in a()&&delete a().currentStep,!("steps"in a())&&F?.zoomOutAfterClose&&!t&&D&&u.camera.flyToView(D,{speed:F?.zoomOutAfterCloseSpeed})})})),l.dispatch("tour-start",a());let Y=ne(0),j=ne(!1);const G=Ht(()=>"steps"in a()?void 0:a()),H=Ht(()=>Ai(G)?"audio"in a()?a().audio:Ai(G).i18n?.[i()]?.audio:void 0),Z=Ht(()=>Pn(Ai(H)));var J=ji(),K=xe(J),tt=t=>{var e=ji(),i=xe(e),n=t=>{var e=vo(),i=xe(e);yr(i,21,()=>a().steps.map(t=>m.markers&&m.markers.find(e=>e.id==t.split(",")[0])),wr,(t,e)=>{var i=ji(),r=xe(i),s=t=>{lo(t,{get marker(){return Ai(e)}})};vr(r,t=>{Ai(e)&&t(s)}),Gi(t,i)}),q(i),gs(i,t=>oe(U,t),()=>Ai(U));var s=Ee(i,2),n=t=>{oa(t,{type:"close",get title(){return r().tourStop},className:"scroll-tour-end",onclick:P})};vr(s,t=>{a().cannotClose||t(n)}),Gi(t,e)},o=t=>{var e=bo();let i;var n=_e(e),o=t=>{var e=ji(),i=xe(e),s=t=>{go(t,{get tour(){return a()},onended:L})},n=t=>{var e=wo(),i=xe(e);{let t=Ht(()=>0==Ai(C));oa(i,{type:"arrow-left",get title(){return r().tourStepPrev},get disabled(){return Ai(t)},onclick:x})}var s=Ee(i,2);oa(s,{noClick:!0,children:(t,e)=>{X();var i=Yi();Ue(()=>nr(i,`${Ai(C)+1} / ${a().steps.length??""}`)),Gi(t,i)},$$slots:{default:!0}});var n=Ee(s,2);{let t=Ht(()=>Ai(C)==a().steps.length-1);oa(n,{type:"arrow-right",get title(){return r().tourStepNext},get disabled(){return Ai(t)},onclick:E})}Gi(t,e)};vr(i,t=>{v?t(s):t(n,-1)}),Gi(t,e)},l=t=>{Ha(t,{get tour(){return a()},get src(){return Ai(Z)},get fullscreen(){return c},controls:!0,autoplay:!0,onended:L,get paused(){return Ai(j)},set paused(t){oe(j,t,!0)},get currentTime(){return Ai(Y)},set currentTime(t){oe(Y,t,!0)}})};vr(n,t=>{"steps"in a()?t(o):t(l,-1)});var h=Ee(n,2),d=t=>{oa(t,{type:"close",get title(){return r().close},onclick:P})};vr(h,t=>{a().cannotClose||t(d)}),q(e),Ue(()=>i=qr(e,1,"micrio-tour",null,i,{left:v,"serial-tour":v,"video-tour":w,"no-controls":y,minimized:!Ai(j)&&(kt(O,"$minimized",s)||Ai(R))})),Rr(1,e,()=>Fn,()=>({duration:200})),Gi(t,e)},l=t=>{Ha(t,{get tour(){return Ai(G)},get src(){return Ai(Z)},autoplay:!0,onended:L,get currentTime(){return Ai(Y)},set currentTime(t){oe(Y,t,!0)}})};vr(i,t=>{b&&"steps"in a()?t(n):k?t(o,1):Ai(G)&&t(l,2)}),Gi(t,e)},rt=t=>{Ha(t,{get tour(){return Ai(G)},get src(){return Ai(Z)},autoplay:!0,onended:L,get currentTime(){return Ai(Y)},set currentTime(t){oe(Y,t,!0)}})};vr(K,t=>{o()?Ai(G)&&t(rt,1):t(tt)}),Gi(t,J),it(),n()}var ko=class{get currentIndex(){return this.micrio.wasm.getActiveImageIdx(this.image.ptr)}constructor(t,e,i,r={}){this.micrio=t,this.length=e,this.goto=i,this.opts=r,this.hitTresh=!1,this.snapTo=[],this.pointers=new Map,this.isFullWidth=!1,this.startedWithShift=!1,this.isDragging=()=>2==this.pointers.size||(this.isFullWidth||this.startedWithShift)&&1==this.pointers.size,r.sensitivity||(r.sensitivity=Number(t.getAttribute("data-swipe-sensitivity")??1));const s=t.getAttribute("data-swipe-snap");s&&(this.snapTo=s.split(",").map(Number)),this.micrio.setAttribute("data-hooked",""),this.dStart=this.dStart.bind(this),this.dMove=this.dMove.bind(this),this.dStop=this.dStop.bind(this),this.mouseleave=this.mouseleave.bind(this),this.image=t.$current,this.image.state.view.subscribe(t=>this.isFullWidth=r.coverLimit?this.image.camera.isZoomedOut():!t||Math.round(1e3*t[3])/1e3>=1),t.wasm.setNoPinchPan(!0),t.wasm.setIsSwipe(!0),this.micrio.canvas.element.addEventListener("pointerdown",this.dStart)}destroy(){this.micrio.canvas.element.removeEventListener("pointerdown",this.dStart),this.mouseleave()}dStart(t){this.startedWithShift=t.shiftKey;const e=!this.isDragging();this.pointers.set(t.pointerId,!0),this.pointers.size>2&&this.mouseleave(),e&&(this.hitTresh=!1,this.micrio.setAttribute("data-panning",""),this.startIndex=this.currentIndex,this.startX=t.clientX,this.firstTouchId=t.pointerId,this.micrio.addEventListener("pointermove",this.dMove),this.micrio.addEventListener("pointerup",this.dStop),this.micrio.setPointerCapture(t.pointerId))}dMove(t){if(!this.isDragging()||t.pointerId!=this.firstTouchId||void 0===this.startX||void 0===this.startIndex)return;if(!this.hitTresh&&void 0!==this.startX&&(this.hitTresh=2!=this.pointers.size||Math.abs(t.clientX-this.startX)>(this.micrio.events.pinchFactor&&this.micrio.events.pinchFactor>1.25?.3:.15)*this.micrio.offsetWidth)&&(this.startX=t.clientX),!this.hitTresh)return;const e=this.micrio.$current.camera,i=this.opts.continuous?Math.max(.1,(e.getXY(1,.5)[0]-e.getXY(0,.5)[0])/this.micrio.offsetWidth):1,r=Math.round((t.clientX-this.startX)/(this.micrio.offsetWidth*i)*this.length*(this.opts.sensitivity??1));let s=this.startIndex-r;if(this.opts.continuous){for(;s<0;)s+=this.length;for(;s>this.length-1;)s-=this.length}s=Math.max(0,Math.min(this.length-1,s)),s!=this.currentIndex&&this.goto(s)}dStop(t){this.pointers.delete(t.pointerId),t.pointerId==this.firstTouchId&&(this.micrio.releasePointerCapture(this.firstTouchId),this.firstTouchId=void 0),this.pointers.size||this.swipeEnd()}mouseleave(){this.pointers.clear(),this.swipeEnd()}swipeEnd(){if(this.micrio.removeAttribute("data-panning"),this.micrio.removeEventListener("pointermove",this.dMove),this.micrio.removeEventListener("pointerup",this.dStop),this.hitTresh=!1,this.snapTo.length){const t=this.snapTo[this.snapTo.map((t,e)=>[e,Math.abs(t-this.currentIndex)]).sort((t,e)=>t[1]>e[1]?1:t[1]<e[1]?-1:0)[0][0]];t!=this.currentIndex&&this.animateTo(t)}}animateTo(t){this.raf&&cancelAnimationFrame(this.raf);const e=performance.now(),i=this.currentIndex,r=i-t,s=t=>{const n=Math.min(1,(t-e)/250);n<1&&(this.raf=requestAnimationFrame(s));const a=i-Math.round(this.micrio.wasm.ease(n)*r);a!=this.currentIndex&&this.goto(a)};this.raf=requestAnimationFrame(s)}},To=Wi('<span class="micrio-dial"> </span>'),_o=Wi('<div data-scroll-through="" class="micrio-dial"><!></div>');var xo,Eo=Wi("<button>✥</button>"),So=Wi('<li><button class="bullet micrio-gallery">•</button></li>'),Ao=Wi('<div><!> <ul class="micrio-gallery"><!> <button aria-label="drag handle"></button></ul> <!></div>');function Mo(t,e){et(e,!0);const i=()=>kt(y,"$settings",n),r=()=>kt(b,"$layer",n),s=()=>kt(Wn,"$i18n",n),[n,a]=_t();let o=ys(e,"images",19,()=>[]),c=ys(e,"omni",3,null);const l=$i(()=>o()),h=$i(()=>c()),d=Q("micrio"),{wasm:u,current:m,events:f,_lang:p}=d,g=!d.canvas.isMobile,v=kt(m,"$current",n),w=v.$info,b=v.state.layer,y=v.settings,k=v.camera;if(h)for(let q=0;q<h.frames;q++)l.push({id:w.id+"/"+q,image:v,visible:vt(!1),frame:q,opts:{area:[0,0,1,1]},ptr:-1,baseTileIdx:-1,thumbSrc:v.getTileSrc(v.levels,0,0,q)});const T=i().gallery,_="omni"==T.type,x=_||"swipe-full"==T.type,E=x||"switch"==T.type,S=_,A=!!T.isSpreads,M=T.coverPages??0,I=i().omni,$=_&&!!I?.twoAxes,P=T.startId||d.getAttribute("data-gallery-start-id"),L=T.archive,C=!!i().limitToCoverScale,R=!!i().noUI,D=I?.frontIndex??0,F=I?.layers?.length??1,O=d.hasAttribute("data-gallery-start")?Number(d.getAttribute("data-gallery-start")):i()?.omni?.startIndex;let z=null==O||isNaN(O)?P?l.findIndex(t=>t.id==P):0:O;z<0&&(z=0);const N=[],V=[];if(l)for(let q=0;q<l.length;q++){let t=l[q].opts?.area;if(!t)continue;const e=t.slice(0);if(V.push([q]),A&&q-M>=0&&(q-M)%2==0&&l[q+1]){if(t=l[++q].opts?.area,!t)continue;V[V.length-1].push(q),e[2]=t[2],e[3]=t[3]}N.push(e)}const U=N.length/F,B=I?.layers?.map(t=>({i18n:Object.fromEntries(Object.entries(t.i18n).map(([t,e],i)=>[t,{title:e??"Layer "+(i+1)}]))}))??[];Object.keys(w.revision??{[(()=>kt(p,"$_lang",n))()]:0}).forEach(t=>B.forEach((e,i)=>{e.i18n[t]||(e.i18n[t]={title:"Layer "+(i+1)})}));let W=ne(-1),X=E,Y=ne(!0),j=ne(!1),G=ne(!0),H=!1,Z=ne(0);function J(t,e=!1,i=150,r=!1){if(S){for(;t<0;)t+=U;t%=U}const s=t=Math.round(Math.max(0,Math.min(U-1,t))),n=r||s!=Ai(W);if(oe(W,s,!0),n&&K(),E)n&&(u.setActiveImage(v.ptr,V[Ai(W)][0],V[Ai(W)].length-1),_?u.render():(k.flyToView(N[Ai(W)],{duration:i,speed:2}).then(()=>at(N[Ai(W)],!0)).catch(()=>{}),Nt()));else{const r=k.getViewLegacy(),s=N[t],a=sn.fromLegacy(s),o=H&&(X&&!Ai(j)||n||r[0]<s[0]!=r[2]>s[2]);oe(j,!1),o?k.flyToView(a,{duration:i,speed:1,progress:e?.5:0}).then(()=>at(s,!0)).catch(()=>{}):(a&&0==i&&k.setView(a),at(s,!0))}v.album.hooked=H=!0}function K(t){if(Ot&&t){if(Ot.currentIndex==Ai(W))return;oe(W,Ot.currentIndex,!0)}nt(Ai(W)),f.dispatch("gallery-show",Ai(W)),_&&oe(Z,(Ai(W)-D)/U*360)}const tt="requestIdleCallback"in self?_?Math.max(36,2*Math.floor(l.length/8)):100:50,rt=new Map,st=self.requestIdleCallback??self.requestAnimationFrame;function nt(t){const e=[];B.length&&(t+=r()*Math.floor(o().length/B.length)),A&&t>=M&&(t=2*t-M);const i=Math.floor(t/$t);for(let r=-tt;r<=tt;r++)if(r){let s=t+r;if($){const t=Math.floor(s/$t);t<i&&(s+=$t),t>i&&(s-=$t)}if(S){for(;s<0;)s+=o().length;for(;s>=o().length;)s-=o().length}e.push(s)}if($)for(let r=-tt;r<=tt;r++)r&&e.push(t+r*$t);e.filter((t,i)=>t>=0&&t<o().length&&e.indexOf(t)==i).map(t=>o()[t]).filter(t=>!!t&&!rt.has(t.id)).forEach(t=>rt.set(t.id,st(()=>u.getTexture(t.baseTileIdx,t.thumbSrc,!1,{force:!!L}))))}function at(t,e){X=k.isZoomedOut(),k.setLimit(!e&&X?[-1,t[1],2,t[3]]:t)}function ot(t){const e=Ai(lt)?.childNodes[t];return e?-2+e.offsetLeft+e.offsetWidth/2:0}let ct,lt=ne(void 0),ht=ne(0);const dt=Ht(()=>!Ai(lt)||Ai(Y)?Ai(ht):ot(Ai(W)));let ut=!1;function mt(t){t.preventDefault(),t.stopPropagation(),Ai(Y)||(ut="button"in t)&&0!=t.button||!Ai(lt)||(ct=Ai(lt).getClientRects()[0],d.keepRendering=oe(Y,!0),oe(bt,-1),window.addEventListener(ut?"pointermove":"touchmove",pt),window.addEventListener(ut?"pointerup":"touchend",Tt),pt(t))}function ft(t){const e=ct??Ai(lt).getClientRects()[0],i="button"in t?t.clientX:t.touches[0].clientX,r=Math.min(1,Math.max(0,(i-e.left-14)/(e.width-32)));return[r,Math.max(0,Math.min(U-1,Math.floor(r*U)))]}function pt(t){const[e,i]=ft(t);oe(ht,16+e*(ct.width-32)),i!=Ai(W)&&J(i,!0)}let gt,wt,bt=ne(-1);function yt(t){Ai(Y)||oe(bt,ft(t)[1],!0)}function Tt(){window.removeEventListener(ut?"pointermove":"touchmove",pt),window.removeEventListener(ut?"pointerup":"touchend",Tt),oe(Y,d.keepRendering=!1,!0),J(Ai(W))}function xt(){X&&(wt=gt=Ai(W),oe(j,X,!0),at(N[Ai(W)],!1))}function Et(t){const e=t.detail;"panend"!=t.type||e?J(wt!=Ai(W)?wt:Ai(W)+(gt==Ai(W)&&Ai(j)&&e?Math.round(Math.min(1,Math.max(-1,-e.movedX/e.duration))):0)):oe(j,!1)}function St(t){if(!t)return;const e=sn.toCenterJSON(t),i=e.centerX,r=N.map((t,r)=>(1-Math.min(Math.abs(i-t[0]),Math.abs(i-t[2])))*Math.max(0,(Math.min(i+e.width/2,t[2])-Math.max(i-e.width/2,t[0]))/(t[2]-t[0]))*(1-.1*Math.abs(Ai(W)-r)));u.setFocus(v.ptr,N[wt=r.every(t=>!t)?Ai(W):r.indexOf(Math.max(...r))],Ai(j)),X=k.isZoomedOut()}let At=0,Mt=[0,0,0,0];function It(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(oe(Y,!0),Mt=[t.clientX,t.clientY,Ai(W),At],window.addEventListener("pointermove",Lt),window.addEventListener("pointerup",Ct))}const $t=l.length,Pt=1;function Lt(t){At=Math.max(0,Math.min(Pt-1,Mt[3]+Math.round((Mt[1]-t.clientY)/360*Pt)));let e=(Mt[2]+Math.round((Mt[0]-t.clientX)/360*$t))%$t;for(;e<0;)e+=$t;J(At*$t+e)}function Ct(){removeEventListener("pointermove",Lt),removeEventListener("pointerup",Ct),oe(Y,!1)}let Rt=-1;const Dt=()=>{B.length&&v.data.update(t=>{t||(t={}),t.pages||(t.pages=[]);const e={id:"_omni-layers",i18n:B[r()].i18n,icon:jn.layerGroup,children:B.map((t,e)=>({id:"omni-layer-"+e,i18n:t.i18n,action:()=>{b.set(e),nt(Ai(W))}})).filter(t=>t.id!="omni-layer-"+r())};return Rt>=0&&Rt<t.pages.length?t.pages.splice(Rt,1,e):t.pages.push(e),Rt=t.pages.length-1,t})};let Ft,Ot,zt=d.state.ui.hidden;function Nt(){zt.set(!1),clearTimeout(Ft),Ft=setTimeout(()=>zt.set(!0),2e3)}v.album={numPages:N.length,get currentIndex(){return Ai(W)},info:v.$settings.album,prev:()=>J(Ai(W)-1),next:()=>J(Ai(W)+1),goto:J},pr(()=>{Promise.all(o().map(t=>("state"in t&&!("image"in t)&&(t.camera=v.camera),u.addEmbed(t,v,{opacity:0,asImage:"camera"in t})))).then(()=>{u.setActiveImage(v.ptr,z),J(z,!1,0),oe(Y,!1)}),_&&F>1&&Dt(),oe(G,!1),d.goto=J;const t=[],e=[];return _&&t.push(v.state.layer.subscribe(Dt)),x&&(Ot=v.swiper=new ko(d,U,J,{continuous:S,coverLimit:C})),e.push(()=>{d.canvas.element.removeEventListener("pointermove",Nt),d.canvas.element.removeEventListener("pointerdown",Nt)}),!g||_||$||x||(d.canvas.element.addEventListener("pointermove",Nt),d.canvas.element.addEventListener("pointerdown",Nt),Nt()),E&&t.push(v.state.view.subscribe(()=>{X=k.isZoomedOut()})),E||x||o().length<=1||($||oe(ht,ot(z),!0),t.push(v.state.view.subscribe(St)),d.addEventListener("panstart",xt),d.addEventListener("panend",Et),d.addEventListener("pinchend",Et),e.push(()=>{d.removeEventListener("panstart",xt),d.removeEventListener("panend",Et),d.removeEventListener("pinchend",Et)})),_&&d.addEventListener("move",K),()=>{for(Ot&&Ot.destroy();t.length;)t.shift()?.();for(;e.length;)e.shift()?.();_&&d.removeEventListener("move",K)}});var Vt=ji();Fi("keydown",pe,function(t){if(!i().omni?.noKeys){switch(t.key){case"PageUp":case"ArrowLeft":J(Ai(W)-(_?-1:1),!0);break;case"PageDown":case"ArrowRight":J(Ai(W)+(_?-1:1),!0);break;case"ArrowUp":$&&J(Ai(W)+$t);break;case"ArrowDown":$&&J(Ai(W)-$t);break;case"Home":J(0);break;case"End":J(U);break;default:return}Nt()}});var Ut=xe(Vt),Bt=t=>{var e=ji(),r=xe(e),a=t=>{var e=Eo();let i;Ue(()=>i=qr(e,1,"angular micrio-gallery",null,i,{dragging:Ai(Y)})),Fi("pointerdown",e,It,!0),Gi(t,e)},c=t=>{{let e=Ht(()=>i().omni?.showDegrees);!function(t,e){et(e,!0);const i=Q("micrio"),r=i.$current.camera;let s,n=ne(void 0),a=0,o=0;function c(t){const s=Math.max(1,(r.getXY(1,.5)[0]-r.getXY(0,.5)[0])/i.offsetWidth),c=(o/360+(a-t.clientX)/(Ai(n).offsetWidth*s))*e.frames;e.onturn?.(c)}function l(){s&&i.releasePointerCapture(s),i.removeAttribute("data-panning"),i.removeEventListener("pointermove",c),i.removeEventListener("pointerup",l)}const h=Ht(()=>-e.currentRotation/360*(Ai(n)?.offsetWidth??0));var d=_o(),u=_e(d),m=t=>{var i=To(),r=_e(i);q(i),Ue(t=>nr(r,`${t??""}º`),[()=>Math.round(10*e.currentRotation)/10]),Gi(t,i)};vr(u,t=>{e.degrees&&t(m)}),q(d),gs(d,t=>oe(n,t),()=>Ai(n)),Ue(()=>Yr(d,`--micrio-dial-offset:${Ai(h)??""}px;`)),Fi("pointerdown",d,function(t){t.stopPropagation(),t.preventDefault(),0==t.button&&(i.addEventListener("pointermove",c),i.addEventListener("pointerup",l),i.setAttribute("data-panning",""),i.setPointerCapture(s=t.pointerId),o=e.currentRotation,a=t.clientX)},!0),Gi(t,d),it()}(t,{get currentRotation(){return Ai(Z)},get frames(){return U},get degrees(){return Ai(e)},onturn:t=>J(t)})}},l=t=>{var e=Ao();let i;var r=_e(e);{let t=Ht(()=>0==Ai(W));oa(r,{type:"arrow-left",get title(){return s().galleryPrev},className:"gallery-btn",onpointerdown:t=>0===t.button&&J(Ai(W)-1),get disabled(){return Ai(t)}})}var a=Ee(r,2),c=_e(a);yr(c,17,()=>N,wr,(t,e,i)=>{var r=So();let s;var n=_e(r);q(r),Ue(()=>s=qr(r,1,"micrio-gallery",null,s,{active:i==Ai(W),hover:i==Ai(bt)})),Oi("click",n,()=>J(i,!0)),Fi("keypress",n,t=>{"Enter"===t.key&&J(i,!0)}),Gi(t,r)});var l=Ee(c,2);let h;q(a),gs(a,t=>oe(lt,t),()=>Ai(lt));var d=Ee(a,2);{let t=Ht(()=>Ai(W)==o().length-1);oa(d,{type:"arrow-right",get title(){return s().galleryNext},className:"gallery-btn",onpointerdown:t=>0===t.button&&J(Ai(W)+1),get disabled(){return Ai(t)}})}q(e),Ue(()=>{i=qr(e,1,"micrio-gallery",null,i,{hidden:Ai(G)||kt(zt,"$hidden",n)&&!Ai(Y)&&!Ai(j)}),Yr(l,`left: ${Ai(dt)}px`),h=qr(l,1,"micrio-gallery",null,h,{dragging:Ai(Y)})}),Oi("pointermove",a,yt),Fi("pointerleave",a,()=>oe(bt,-1)),Fi("pointerdown",l,mt,!0),Fi("touchstart",l,mt,!0,!0),Gi(t,e)};vr(r,t=>{$?t(a):I&&!I.noDial&&_?t(c,1):!x&&o().length>1&&t(l,2)}),Gi(t,e)};vr(Ut,t=>{R||t(Bt)}),Gi(t,Vt),it(),a()}zi(["pointermove","click"]);var Io,$o,Po={},Lo=vt(),Co=vt(!1);function Ro(t,e,i){$o&&($o.setPosition?$o.setPosition(t,e,i):"positionX"in $o&&($o.positionX.value=t,$o.positionY.value=e,$o.positionZ.value=i))}function Do(t,e,i){$o&&($o.setOrientation?$o.setOrientation(t,e,i,0,1,0):"forwardX"in $o&&($o.forwardX.value=t,$o.forwardY.value=e,$o.forwardZ.value=i))}function Fo(t,e){et(e,!0);const[i,r]=_t();let s=ys(e,"volume",3,1);const{events:n,current:a}=Q("micrio"),o=kt(a,"$current",i),c=o.$info,l=c.height/c.width,h="AudioContext"in window||"webkitAudioContext"in window;const d=()=>Co.set(!0),u=new Audio("data:audio/mpeg;base64,/+MYxAAAAANIAUAAAASEEB/jwOFM/0MM/90b/+RhST//w4NFwOjf///PZu////9lns5GFDv//l9GlUIEEIAAAgIg8Ir/JGq3/+MYxDsLIj5QMYcoAP0dv9HIjUcH//yYSg+CIbkGP//8w0bLVjUP///3Z0x5QCAv/yLjwtGKTEFNRTMuOTeqqqqqqqqqqqqq/+MYxEkNmdJkUYc4AKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");u.volume=Js.iOS?0:1e-4,h&&pr(()=>{let t,i;return i=Co.subscribe(r=>{r&&(Io||(!function(t){if(!xo){if(Io||(Io="micrioAudioContext"in window?window.micrioAudioContext:"AudioContext"in window?new window.AudioContext:"webkitAudioContext"in window?new window.webkitAudioContext:null),!Io)return console.warn("[Micrio] Your browser does not support the Web Audio API");(xo=Io.createGain()).connect(Io.destination),xo.gain.value=t,Lo.set(Io),"upX"in($o=Io.listener)&&($o.upX.value=0,$o.upY.value=1,$o.upZ.value=0)}}(s()),n.dispatch("audio-init")),Io&&e.data.markers?.filter(t=>!!t.positionalAudio).length&&(t=o.state.view.subscribe(t=>{if(!t)return;const i=Math.max(0,1.05-o.camera.getScale());!function(t,i,r){if(e.is360){t*=2*-Math.PI,i-=.5,i*=-Math.PI;const e=10*(1-r),s=Math.cos(i)*Math.sin(t)*e,n=Math.sin(i)*e,a=Math.cos(i)*Math.cos(t)*e;Ro(s,n,a);let o=s*s+n*n+a*a;o>0&&(o=1/Math.sqrt(o)),Do(s*o,n*o,a*o)}else Ro(2*(t-.5),2*(.5-i)*l,r),Do(0,0,-1)}(t[0]+t[2]/2,t[1]+t[3]/2,i*(e.is360?1:1.5))})),i&&(i(),i=null))}),Io||u.play().then(d).catch(()=>{n.dispatch("autoplay-blocked"),addEventListener("pointerup",d,{once:!0})}),()=>{t&&t(),i&&i(),removeEventListener("pointerup",d)}}),Oe(()=>{xo&&(xo.gain.value=s())});var m=ji(),f=xe(m),p=t=>{{let t=Ht(()=>s()*(e.data.music.volume??1));!function(t,e){et(e,!0);let i=ys(e,"loop",3,!0),r=ys(e,"volume",3,1);const s=ue(new Audio);s.preload="none",s.loop=!1,s.onended=a;let n=-1;function a(){if(!i()&&n+1==e.list.length)return;const t=e.list[++n%e.list.length];s.src=Pn(t)??"",s.play()}pr(()=>(a(),()=>s.pause())),Oe(()=>{s.volume=r()}),it()}(0,{get list(){return e.data.music.items},get loop(){return e.data.music.loop},get volume(){return Ai(t)}})}};vr(f,t=>{kt(Co,"$interacted",i)&&kt(Lo,"$ctx",i)&&e.data.music?.items.length&&t(p)}),Gi(t,m),it(),r()}var Oo=Wi('<cite class="micrio-details"> </cite>'),zo=Wi('<small class="micrio-details"> </small>'),No=Wi('<summary class="micrio-details"><!> <!></summary>'),Vo=Wi('<p class="micrio-details"><a rel="noopener noreferrer" target="_blank"> </a></p>'),Uo=Wi("<details><!> <!> <!> <!></details>");function Bo(t,e){et(e,!0);const i=()=>kt(o,"$current",s),r=()=>kt(e.data,"$data",s),[s,n]=_t(),{_lang:a,current:o}=Q("micrio");let c=ne(!1);function l(t){let e="cm";return t>=1e5?(e="km",t/=1e5):t>=100?(e="m",t/=100):t<1e-6?(e="nm",t*=1e7):t<.001?(e="µm",t*=1e4):t<1&&(e="mm",t*=10),t.toFixed(2)+" "+e}const h=Ht(()=>i()?.$settings.cmWidth),d=Ht(()=>i()?.$settings.cmHeight),u=Ht(()=>r()?r()?.i18n?r().i18n[kt(a,"$_lang",s)]:r():void 0),m=Ht(()=>Ai(u)?.title??kt(e.info,"$info",s)?.title??""),f=Ht(()=>Ai(u)?.description),p=Ht(()=>Ai(u)?.sourceUrl),g=Ht(()=>Ai(u)?.copyright),v=Ht(()=>Ai(h)&&Ai(d)?l(Ai(h))+" x "+l(Ai(d)):null);let w=ne(void 0);pr(()=>{Ai(w).ontoggle=()=>{oe(c,Ai(w).open,!0)}});var b=ji(),y=xe(b),k=t=>{var e=Uo();let i;var r=_e(e),n=t=>{var e=No(),i=_e(e),r=t=>{var e=Oo(),i=_e(e,!0);q(e),Ue(()=>nr(i,Ai(m))),Gi(t,e)};vr(i,t=>{Ai(m)&&t(r)});var s=Ee(i,2),n=t=>{var e=zo(),i=_e(e,!0);q(e),Ue(()=>nr(i,Ai(v))),Gi(t,e)};vr(s,t=>{Ai(v)&&t(n)}),q(e),Gi(t,e)};vr(r,t=>{(Ai(m)||Ai(v))&&t(n)});var a=Ee(r,2),o=t=>{var e=ji();Er(xe(e),()=>Ai(f)),Gi(t,e)};vr(a,t=>{Ai(f)&&t(o)});var l=Ee(a,2),h=t=>{var e=Vo(),i=_e(e),r=_e(i,!0);q(i),q(e),Ue(()=>{as(i,"href",Ai(p)),nr(r,Ai(g)||Ai(p))}),Gi(t,e)};vr(l,t=>{Ai(p)&&t(h)});var d=Ee(l,2),u=t=>{oa(t,{type:"close",get title(){return kt(Wn,"$i18n",s).close},onclick:()=>Ai(w).open=!1})};vr(d,t=>{Ai(c)&&t(u)}),q(e),gs(e,t=>oe(w,t),()=>Ai(w)),Ue(()=>i=qr(e,1,"micrio-details",null,i,{opened:Ai(c)})),Rr(3,e,()=>Fn,()=>({duration:200})),Gi(t,e)};vr(y,t=>{(Ai(m)||Ai(f)||Ai(p))&&t(k)}),Gi(t,b),it(),n()}var Wo=Wi('<div class="micrio-error"><!> </div>');var qo=Wi('<figcaption class="micrio-micrio-gallery"></figcaption>'),Xo=Wi('<figure class="micrio-micrio-gallery"><micr-io></micr-io> <!></figure>',2);function Yo(t,e){et(e,!0);const i=()=>kt(o,"$current",r),[r,s]=_t();let n=ys(e,"startId",3,void 0);const{_lang:a,current:o}=Q("micrio");let c=ne(void 0),l=ne(0);const h=Ht(()=>e.gallery[Ai(l)]),d=Ht(()=>Ai(h)?.i18n?.[kt(a,"$_lang",r)]?.description??void 0);gr(()=>Ai(c)?.destroy());var u=Xo(),m=_e(u);Ue(()=>os(m,"data-gallery",e.gallery.map(t=>`${t.micrioId},${t.width},${t.height},${t.isDeepZoom?"d":""}${t.isWebP?",w":t.isPng||!i()?.isV5&&t.src?.endsWith(".png")?",p":""}`).join(";"))),Ue(()=>os(m,"data-start",n())),Ue(()=>os(m,"data-path",i()&&i().$info&&i().$info.path)),os(m,"data-logo","false"),qr(m,1,"micrio-micrio-gallery"),gs(m,t=>oe(c,t),()=>Ai(c));var f=Ee(m,2),p=t=>{var e=qo();Er(e,()=>Ai(d),!0),q(e),Gi(t,e)};vr(f,t=>{Ai(d)&&t(p)}),q(u),Fi("gallery-show",m,t=>{oe(l,t.detail,!0)}),Gi(t,u),it(),s()}var jo=Wi("<!> <!>",1),Go=Wi("<aside><!> <!></aside>"),Ho=Wi("<!> <!>",1),Zo=Wi('<menu class="micrio-popover"></menu>'),Jo=Wi('<h2 class="micrio-popover"> </h2>'),Ko=Wi('<img alt=""/>'),Qo=Wi("<!> <!> <!> <!>",1),tc=Wi('<menu class="right micrio-popover"></menu>'),ec=Wi("<!> <!> <!>",1),ic=Wi("<dialog><!> <!></dialog>");function rc(t,e){et(e,!0);const i=()=>kt(h,"$current",n),r=()=>kt(d,"$_lang",n),s=()=>kt(Wn,"$i18n",n),[n,a]=_t(),o=ue(Q("micrio")),{events:c,state:l,current:h,_lang:d}=o,u=i()?.$data,m=Object.keys(u?.revision??{[r()]:0});function f(){Ai(w)?.close()}const p=vt(!1);let g=ne(!0),v=r(),w=ne(void 0);pr(()=>{Ai(w).showModal(),Si().then(()=>{(Ai(w).querySelector("button.active")??Ai(w).querySelector("button"))?.focus()});const t=d.subscribe(t=>{t&&t!=v&&(oe(g,!1),v=t,setTimeout(()=>oe(g,!0),200))});return()=>{t()}});const b=Ht(()=>e.popover.marker),y=Ht(()=>Ai(b)?Ln(Ai(b),r()):void 0),k=Ht(()=>e.popover.markerTour),T=Ht(()=>e.popover.contentPage),_=Ht(()=>{return Ai(T)?(t=Ai(T),e=r(),t.i18n?.[e]??t):void 0;var t,e}),x=Ht(()=>Ai(T)&&Ai(_)&&!Ai(T)?.buttons?.length?!(!Ai(_).embed||Ai(_).content&&!(Ai(_).content.length<250)||Ai(T).image):void 0),E=Ht(()=>Ai(T)?.image?"string"==typeof Ai(T).image?Ai(T).image:Ai(T).image.src:void 0),S=Ht(()=>!!Ai(_)?.embed||!!Ai(E)),A=Ht(()=>!!Ai(T)?.buttons?.find(t=>"close"==t.type)),M=Ht(()=>!!e.popover.marker?.images&&e.popover.marker.images.length>0),I=Ht(()=>!(!Ai(y)||!Ai(y).body)||Ai(M)),$=Ht(()=>Ai(y)&&Ai(y).body||Ai(M)&&Ai(_)?.embed),P=Ht(()=>!Ai(A)||Ai(k)&&null!=Ai(k).currentStep);var L=ic();let C;var R=_e(L),D=t=>{var e=Go();let i;var r=_e(e),n=t=>{oa(t,{type:"close",get title(){return s().close},className:"close-popover",onclick:f})};vr(r,t=>{Ai(A)||t(n)});var a=Ee(r,2),o=t=>{var e=jo(),i=xe(e),r=t=>{oa(t,{type:"arrow-left",get title(){return s().tourStepPrev},className:"prev-tour-step",onclick:()=>Ai(k)&&Ai(k).prev&&Ai(k).prev()})};vr(i,t=>{Ai(k).currentStep>0&&t(r)});var n=Ee(i,2),a=t=>{oa(t,{type:"arrow-right",get title(){return s().tourStepNext},className:"next-tour-step",onclick:()=>Ai(k)&&Ai(k).next&&Ai(k).next()})};vr(n,t=>{Ai(k).currentStep<Ai(k).steps.length-1&&t(a)}),Gi(t,e)};vr(a,t=>{Ai(k)&&null!=Ai(k).currentStep&&t(o)}),q(e),Ue(()=>i=qr(e,1,"micrio-popover",null,i,{inside:Ai(T)?!Ai(x):!Ai(I)&&!Ai(y)?.embedUrl})),Gi(t,e)};vr(R,t=>{Ai(P)&&t(D)});var F=Ee(R,2),O=t=>{var e=Ho(),i=xe(e),r=t=>{Ha(t,{get src(){return Ai(y).embedUrl},get uuid(){return Ai(b).id},get figcaption(){return Ai(y).embedDescription},controls:!0,get autoplay(){return Ai(b).embedAutoPlay}})},s=t=>{Yo(t,{get gallery(){return Ai(b).images}})};vr(i,t=>{Ai(y)&&Ai(y).embedUrl?t(r):Ai(b).images&&Ai(b).images.length&&t(s,1)});var n=Ee(i,2),a=t=>{{let e=Ht(()=>!Ai(y)||!Ai(y).embedUrl);so(t,{get marker(){return Ai(b)},noEmbed:!0,noGallery:!0,get noImages(){return Ai(e)},onclose:f})}};vr(n,t=>{Ai($)&&t(a)}),Gi(t,e)},z=t=>{Yo(t,{get gallery(){return e.popover.gallery},get startId(){return e.popover.galleryStart}})},N=t=>{var e=ec(),s=xe(e),n=t=>{var e=Zo();yr(e,21,()=>m,wr,(t,e)=>{{let i=Ht(()=>Xn?.of(Ai(e))??Ai(e)),s=Ht(()=>Ai(e)==r());oa(t,{onclick:()=>o.lang=Ai(e),get title(){return Ai(i)},get active(){return Ai(s)},children:(t,i)=>{X();var r=Yi();Ue(t=>nr(r,t),[()=>Ai(e).toUpperCase()]),Gi(t,r)},$$slots:{default:!0}})}}),q(e),Gi(t,e)};vr(s,t=>{m.length>1&&t(n)});var a=Ee(s,2),c=t=>{var e=ji(),i=xe(e),r=t=>{Ha(t,{get src(){return Ai(_).embed},get figcaption(){return Ai(_).content},controls:!0,autoplay:!0})};vr(i,t=>{Ai(g)&&t(r)}),Gi(t,e)},l=t=>{Ja(t,{children:(t,e)=>{var i=Qo(),r=xe(i),s=t=>{var e=Jo(),i=_e(e,!0);q(e),Ue(()=>nr(i,Ai(_).title)),Gi(t,e)};vr(r,t=>{Ai(_).title&&t(s)});var n=Ee(r,2),a=t=>{Ha(t,{get src(){return Ai(_).embed},controls:!0})};vr(n,t=>{Ai(_).embed&&Ai(g)&&t(a)});var o=Ee(n,2),c=t=>{var e=Ko();Ue(()=>as(e,"src",Ai(E))),Gi(t,e)};vr(o,t=>{Ai(E)&&t(c)});var l=Ee(o,2),h=t=>{var e=ji();Er(xe(e),()=>Ai(_).content),Gi(t,e)};vr(l,t=>{Ai(_).content&&t(h)}),Gi(t,i)},$$slots:{default:!0}})};vr(a,t=>{Ai(x)?t(c):t(l,-1)});var h=Ee(a,2),d=t=>{var e=tc();yr(e,21,()=>Ai(T).buttons,wr,(t,e)=>{{let s=Ht(()=>"link"==Ai(e).type?Ai(e).action:void 0);oa(t,{get href(){return Ai(s)},get blankTarget(){return Ai(e).blankTarget},onclick:()=>function(t){f(),"close"!=t.type&&setTimeout(()=>{switch(t.type){case"marker":i()?.state.marker.set(t.action);break;case"mtour":o.state.tour.set(u?.markerTours?.find(e=>e.id==t.action));break;case"vtour":o.state.tour.set(u?.tours?.find(e=>e.id==t.action))}},200)}(Ai(e)),children:(t,i)=>{X();var s=Yi();Ue(()=>nr(s,Ai(e).i18nTitle[r()])),Gi(t,s)},$$slots:{default:!0}})}}),q(e),Gi(t,e)};vr(h,t=>{Ai(T).buttons&&Ai(T).buttons.length&&t(d)}),Gi(t,e)};vr(F,t=>{Ai(b)?t(O):e.popover.gallery?t(z,1):Ai(T)&&Ai(_)&&t(N,2)}),q(L),gs(L,t=>oe(w,t),()=>Ai(w)),Ue(()=>C=qr(L,1,"micrio-popover",null,C,{page:!!Ai(T),article:!!Ai(T)&&!Ai(x),"has-media":Ai(S),gallery:!!e.popover.gallery})),Fi("close",L,function(){e.popover.contentPage?c.dispatch("page-closed"):Ai(k)?l.tour.set(void 0):e.popover.marker&&e.popover.image?.state.marker.set(void 0),l.popover.set(void 0)}),Fi("outrostart",L,()=>p.set(!0)),Gi(t,L),it(),a()}function sc(t,e){et(e,!0);const i=Ht(()=>e.marker.positionalAudio),r=$i(()=>e.ctx).createGain();r.connect(xo);const s=Q("micrio"),n=s.$current.$info,a=n.width,o=n.height,c=$i(()=>e.ctx).createPanner();c.panningModel="equalpower",c.rolloffFactor=1,c.coneOuterGain=0;function l(){if(r.gain.value=Ai(i).volume??1,e.is360){c.refDistance=2.75*Ai(i).radius,c.maxDistance=Ai(i).radius*(11/3);const t=e.marker.x*-Math.PI*2,r=(e.marker.y-.5)*-Math.PI,s=Math.cos(r)*Math.sin(t)*11,n=11*Math.sin(r),a=Math.cos(r)*Math.cos(t)*11;c.positionX.value=s,c.positionY.value=n,c.positionZ.value=a;let o=s*s+n*n+a*a;o>0&&(o=1/Math.sqrt(o)),c.orientationX.value=s*o,c.orientationY.value=n*o,c.orientationZ.value=a*o}else c.distanceModel="linear",c.positionX.value=2*(e.marker.x-.5),c.positionY.value=2*(.5-e.marker.y)*(o/a),c.positionZ.value=-.2,c.rolloffFactor=2,c.refDistance=Ai(i).radius*Ai(i).radius*10,c.maxDistance=5*Ai(i).radius}let h,d;function u(){h&&h.disconnect(),h=e.ctx.createBufferSource(),Ai(i).loop&&(Ai(i).repeatAfter>0?h.onended=()=>{d=setTimeout(u,1e3*Ai(i).repeatAfter)}:h.loop=!0),r.gain.value=Ai(i).volume??1,h.buffer=Po[Ai(i).src],h.connect(c),h.start()}let m=ne(ue(JSON.stringify($i(()=>e.marker.positionalAudio))));Oe(()=>{const t=JSON.stringify(Ai(i));Ai(m)!=t&&oe(m,t,!0)&&l()}),pr(()=>(l(),c.connect(r),async function(){Ai(i).src&&(Po[Ai(i).src]||(Po[Ai(i).src]=await fetch(Ai(i).src).then(t=>t.arrayBuffer()).then(t=>e.ctx.decodeAudioData(t))),Ai(i).alwaysPlay&&Ai(i).repeatAfter>0?d=setTimeout(u,1e3*Ai(i).repeatAfter):u())}(),s.addEventListener("audio-update",l),()=>{s.removeEventListener("audio-update",l),h&&h.disconnect(),clearTimeout(d),c.disconnect(),r.disconnect()})),it()}var nc=Wi('<img alt="" class="micrio-marker"/>'),ac=Wi('<label data-scroll-through=""> </label>'),oc=Wi('<button data-scroll-through="" class="micrio-marker"><!> <!></button>'),cc=Wi("<div><!></div>"),lc=Wi("<!> <!>",1);function hc(t,e){et(e,!0);const i=()=>kt(d,"$current",c),r=()=>kt(T,"$tour",c),s=()=>kt(k,"$currentPopup",c),n=()=>kt(f,"$_lang",c),a=()=>kt(g,"$isMobile",c),o=()=>kt(Lo,"$ctx",c),[c,l]=_t(),h=Q("micrio"),{current:d,events:u,state:m,_lang:f,spaceData:p}=h,g=h.canvas.isMobile,v=m.markerHoverId,b=Q("inView"),y=Q("markerImages"),k=h.state.popup,T=m.tour;let _=ys(e,"marker",15),x=ys(e,"image",31,()=>ue(i())),E=ys(e,"forceHidden",3,!1),S=ys(e,"coords",3,void 0),A=ys(e,"overlapped",3,!1);_().tags||_(_().tags=[],!0);const M=y.has(_().id);!M&&x()&&y.set(_().id,x());const I=!(!x().isOmni||!x().$settings.omni?.sideLabels||x().$settings._markers?.noTitles),$=t=>t.steps.findIndex(t=>t.startsWith(_().id))>=0,P=_().data??{},L=P._meta||{},C=x().$settings.omni;_().imageLayer&&_().imageLayer>(C?.layers?.length??1)-1&&delete _().imageLayer,i()?.$data?.markers?.find(t=>t.data?._micrioSplitLink?.markerId==_().id&&"none"!=t.popupType)&&(_(_().popupType="none",!0),_(_().noMarker=!0,!0)),"embedUrl"in _()&&_().embedUrl&&"embedInPopover"in _()&&_().embedInPopover&&_(_().popupType="popover",!0);const R=x().$settings._markers??{},D=!!x().$settings.doTourJumps,F=_().tags.join(" "),O="cluster"==_().type,z=!1===_().data?.showTitle||!!R.noTitles||!!C?.sideLabels,N=!!P.scales||!!x().$settings.markersScale,V=N&&!!R.titlesNoScale,U=P._micrioSplitLink,B=!!R.keepPopupsDuringTourTransitions,W=/[?&]micrioNoTooltips/.test(location.search)||!!C?.sideLabels,X=L.gridAction,Y=x().$settings?._markers?.autoStartTour?h.wasm.images.map(t=>"camera"in t?t.$data?.markerTours?.find($):void 0).filter(t=>!!t)[0]??p?.markerTours?.find($):void 0,j=Y?.steps.findIndex(t=>t.startsWith(_().id)),G=!!x().$settings?._markers?.autoStartTourAtBeginning;let H=!M&&(!!P.alwaysOpen||m.$marker==_())||m.$tour?.id==Y?.id&&Y?.currentStep==(j??0);let Z,J,K,tt=ne(ue(M&&x().state.$marker==_())),rt=ne(!1),st=ne(""),nt=ne(0),at=ne(0),ot=ne(1),ct=!1;function lt(){if(dt(),_().onclick)return _().onclick(_());if(!R.noMarkerActions)if("cluster"==_().type){if(_().view&&i()?.$info){const t=i().camera.getScale();x().camera.flyToView(_().view,{area:x().opts?.area,limitZoom:!0,margin:[20/i().$info.width*t,20/i().$info.height*t]})}}else x().state.marker.set(_())}function ht(){R.noMarkerActions||(Ai(Et)?.parentNode?.scrollTo(0,0),dt(),K=setTimeout(()=>{const t=x().camera.getXY(_().x,_().y);!Ai(tt)&&(t[0]<0||t[0]>=h.offsetWidth||t[1]<0||t[1]>=h.offsetHeight||x().is360&&t[3]>4)&&x().camera.flyToCoo([_().x,_().y],{speed:2,limit:!0}).catch(()=>{})},150))}function dt(){clearTimeout(K)}const ut=()=>v.set(_().id),mt=()=>v.set(void 0);let ft;async function pt(){if(O)return;if(x().state.$marker!=_())return x().state.marker.set(_());if(R.noMarkerActions)return;if(Y&&Y.id!=r()?.id&&!r()){Y.initialStep=G?0:j;const t=Y.stepInfo?.[0];if(G&&t&&t.micrioId!=x().id){const e=h.canvases[0]?.grid;e?.images.find(e=>e.id==t.micrioId)?h.current.set(e.image):h.open(t.micrioId)}if(T.set(Y),setTimeout(()=>L.gridAction=X,100),G&&null!=j&&j>0)return void x().state.marker.set(void 0);await Si()}var t;H=!1,u.dispatch("marker-opened",_()),r()&&"steps"in r()&&r().isSerialTour&&r().printChapters&&r().steps.findIndex(t=>t.startsWith(_().id))>=0&&_().videoTour||(Ai(Pt)?"popover"==_().popupType?(await Si(),h.state.popover.set({marker:_(),image:x(),markerTour:r()&&"steps"in r()?r():void 0})):_().videoTour&&!r()&&(T.set(_().videoTour),(t=T,new Promise(e=>{let i;i=t.subscribe(t=>{null==t&&(i?i():Si().then(()=>i()),e(t))})})).then(()=>x().state.marker.set(void 0))):Si().then(()=>k.set(_())));const e=P.micrioLink?.id;if(e&&Si().then(()=>{x().camera.stop();const t=Tn(h,e);t&&(x(x().openedView=void 0,!0),x().state.marker.set(void 0)),h.open(e,{vector:t?.vector})}),U&&!ct&&!x().opts.secondaryTo){const t=h.canvases[0]?.grid;t?.lastPromise&&await t.lastPromise,ft=setTimeout(()=>{U&&(J=h.open(U.micrioId,{splitScreen:!0,splitTo:x(),isPassive:!(!U.follows||h.state.$tour),startView:U.view}),ct=!0)},200)}}let gt,vt,bt=ne(!1);function yt(){if(x().is360&&N)oe(st,x().camera.getMatrix(_().x,_().y,1,1,0,0,0).join(","),!0);else{let i=Ai(nt),r=Ai(at);if(t=x().camera.getXYDirect(_().x,_().y,{radius:_().radius,rotation:_().rotation}),e=w(t,4),oe(nt,e[0],!0),oe(at,e[1],!0),oe(ot,e[2],!0),Z=e[3],x().is360)oe(rt,Z>0);else if(x().isOmni&&C){if(null!=Ai(Ct)[0]&&null!=Ai(Ct)[1]&&null!=_().rotation){const t=C.frames/(C.layers?.length??1);let e=(x().swiper?.currentIndex??0)-(Ai(Lt)??0);e>t/2&&(e-=t),e<-t/2&&(e+=t),oe(rt,e<=Ai(Ct)[0]||e>=Ai(Ct)[1],!0)}else C.distance&&oe(rt,Z<0);C.sideLabels&&!R.noTitles&&Ai(Mt)?.title&&b&&(i!=Ai(nt)||r!=Ai(at))&&function(t,e){const i=h.canvas.element.offsetWidth,r=h.canvas.element.offsetHeight,s=!(t<0||t>i||e<0||e>r||Ai(rt));(s||Ai(bt))&&b.update(r=>{const n=r.findIndex(([t])=>t==_());return s?n>=0?r[n]=[_(),t/i,e]:r.push([_(),t/i,e]):n>=0&&r.splice(n,1),oe(bt,s,!0),r})}(Ai(nt),Ai(at))}x().$settings.clusterMarkers&&S()&&S().set(_().id,[Ai(nt),Ai(at),A()?gt:gt=Ai(St)?.offsetWidth,A()?vt:vt=Ai(St)?.offsetHeight])}var t,e}function Tt(t){const e=t.detail;_(_().x=e.x,!0),_(_().y=e.y,!0),yt()}let xt=ne(void 0),Et=ne(void 0),St=ne(void 0);const At=Q("mediaPaused");pr(()=>{if(_().videoTour){const t="timeline"in _().videoTour?_().videoTour.timeline:_().videoTour.i18n?.[n()]?.timeline;t?.length&&_(_().view=t[0].rect,!0)}const t=[x().state.marker.subscribe(t=>{"string"==typeof t&&t==_().id?x().state.marker.set(_()):t==_()?async function(){if(Ai(tt))return;if(oe(tt,!0),dt(),R.noMarkerActions)return;u.dispatch("marker-open",_()),!r()||"steps"in r()&&($(r())||r().cannotClose)||(T.set(void 0),await Si());const t=r()&&"steps"in r();Ai(Pt)||t&&B||(k.set(void 0),h.state.popover.set(void 0)),mt(),U?.markerId&&(J||(J=h.canvases.find(t=>t.id==U.micrioId)),J&&(ct=wt(J.visible),ct&&U?.view&&J.camera.flyToView(U.view,{isJump:!0}).catch(()=>{}))),void 0!==_().imageLayer&&x().state.layer.set(_().imageLayer);const e=Y&&G&&Y!=r()&&null!=j&&j>0;e&&delete L.gridAction;const i=_().view;e||!i||P.noAnimate||_().videoTour||L.gridView?pt():H?(x().camera.setView(_().view,{area:x().opts?.area}),pt()):x().camera.flyToView(_().view,{omniIndex:Ai(Lt),area:x().opts?.area,isJump:!!P.doJump||D&&!!m.$tour}).then(pt).catch(()=>{r()||x().state.marker.set(void 0)})}():P.alwaysOpen||(Ai(tt)&&function(){clearTimeout(ft),u.dispatch("marker-closed",_());const t=r()&&"steps"in r();if(r()||x().state.$marker||(_().videoTour||x().openedView?setTimeout(()=>x().camera.aniDoneAdd.push(()=>{wt(T)||x().state.$marker||Ai(xt)?.focus()}),10):Ai(xt)?.focus()),h.state.popover.set(void 0),!Ai(Pt)){s()!=_()||t&&B||k.set(void 0);const e=h.canvases.find(t=>t!=x()&&t.state.$marker);e&&Si().then(()=>{const t=e.state.$marker;t&&"popup"==t.popupType&&k.set(t)})}U&&J&&setTimeout(()=>{const t=wt(h.state.marker);J&&U.micrioId!=t?.data?._micrioSplitLink?.micrioId&&h.close(J)},210)}(),oe(tt,!1))})];return Ai($t)||(t.push(x().camera.image.state.view.subscribe(yt)),yt()),E()||Si().then(()=>{Ai(tt)&&!_().noMarker&&s()&&s()!=_()&&!r()?x().state.marker.set(void 0):(H||P.alwaysOpen)&&pt()}),_().htmlElement&&Ai(Et)&&Ai(Et).appendChild(_().htmlElement),()=>{for(clearTimeout(ft);t.length;)t.shift()?.()}});const Mt=Ht(()=>Ln(_(),n())),It=Ht(()=>!(Ai(Mt)?.title||Ai(Mt)?.body||Ai(Mt)?.bodySecondary||Ai(Mt)?.embedUrl||_().images&&_().images.length)),$t=Ht(()=>E()||_().noMarker),Pt=Ht(()=>"popup"!=_().popupType||Ai(It)),Lt=Ht(()=>x().camera.getOmniFrame((_().rotation??0)+(_().backside?Math.PI:0))),Ct=Ht(()=>_().visibleArc?[x().camera.getOmniFrame(_().visibleArc[0]),x().camera.getOmniFrame(_().visibleArc[1])]:[]),Rt=Ht(()=>r()&&(!("steps"in r())&&!r().keepMarkers||R.hideMarkersDuringTour&&!kt(At,"$tourPaused",c))&&!Ai(tt));Oe(()=>{Ai(Rt)&&Ai(bt)&&b.update(t=>{const e=t.findIndex(t=>t[0]==_());return e>=0&&t.splice(e,1),t})});const Dt=Ht(()=>"default"==_().type?void 0:"link"==_().type?"link":"media"==_().type?"play":"cluster"==_().type?void 0:_().type??void 0),Ft=Ht(()=>(null!=_().data?.customIconIdx?x().$settings._markers?.customIcons?.[_().data?.customIconIdx]:void 0)??_().data?.icon??R.markerIcon??void 0),Ot=Ht(()=>!!Ai(Dt)||!!Ai(Ft)),zt=Ht(()=>!("class"in _()&&""===_().class||!Ai(Ot)&&"default"!=_().type)),Nt=Ht(()=>Ai(Mt)&&(!z||a()&&I)&&(Ai(Mt).label||Ai(Mt).title));var Vt=lc(),Ut=xe(Vt),Bt=t=>{var e=cc();let i;var r=_e(e),s=t=>{var e=oc(),i=_e(e),r=t=>{var e=nc();Ue(()=>as(e,"src","string"==typeof Ai(Ft)?Ai(Ft):Ai(Ft).src)),Gi(t,e)},s=t=>{Hn(t,{get name(){return Ai(Dt)}})};vr(i,t=>{Ai(Ft)?t(r):Ai(Dt)&&t(s,1)});var n=Ee(i,2),a=t=>{var e=ac();let i;var r=_e(e,!0);q(e),gs(e,t=>oe(St,t),()=>Ai(St)),Ue(()=>{as(e,"for",_().id),i=qr(e,1,"micrio-marker",null,i,{static:V}),nr(r,Ai(Mt)?.label||Ai(Mt)?.title)}),Gi(t,e)};vr(n,t=>{Ai(Nt)&&t(a)}),q(e),gs(e,t=>oe(xt,t),()=>Ai(xt)),Ue(()=>{as(e,"title",W||O?null:Ai(Mt)?Ai(Mt).label||Ai(Mt).title:null),as(e,"id",_().id)}),Oi("click",e,lt),Fi("focus",e,ht),Fi("blur",e,dt),Fi("mouseenter",e,ut),Fi("mouseleave",e,mt),Gi(t,e)};vr(r,t=>{_().htmlElement||t(s)}),q(e),gs(e,t=>oe(Et,t),()=>Ai(Et)),Or(e,(t,e)=>{return r=e,(i=t).addEventListener("change",r),{destroy:()=>i.removeEventListener("change",r)};var i,r},()=>Tt),Ue(()=>{as(e,"id",`m-${_().id}`),i=qr(e,1,Vr(F),"micrio-marker",i,{overlapped:A()&&!Ai(tt),cluster:O,behind:Ai(rt),hovered:kt(v,"$hovered",c)==_().id,default:Ai(zt),mat3d:!!Ai(st),opened:Ai(tt),"micrio-link":!!P.micrioLink,"has-icon":Ai(Ot),"has-custom-icon":!!Ai(Ft)}),Yr(e,Ai(st)?`--mat:matrix3d(${Ai(st)})`:Ai(nt)?`--x:${Ai(nt)}px;--y:${Ai(at)}px${N?`;--scale:${Ai(ot)}`:""}`:null)}),Gi(t,e)};vr(Ut,t=>{Ai($t)||!x()||Ai(Rt)||t(Bt)});var Wt=Ee(Ut,2),qt=t=>{sc(0,{get marker(){return _()},get ctx(){return o()},get is360(){return x().is360}})};vr(Wt,t=>{_().positionalAudio&&o()&&(!_().positionalAudio.noMobile||a())&&(_().positionalAudio.alwaysPlay||Ai(tt))&&t(qt)}),Gi(t,Vt),it(),l()}zi(["click"]);var dc=Wi("<div><!></div>");function uc(t,e){et(e,!0);const i=()=>kt(c,"$_lang",r),[r,s]=_t();let n=ys(e,"settings",31,()=>ue({i18n:{}})),a=ys(e,"image",15);const o=Q("micrio"),{_lang:c,spaceData:l}=o,h=a().$info,d=a().$settings,u=vn($i(()=>e.targetId))?.[2],m=Tn(o,$i(()=>e.targetId));m||console.error(`[Micrio Waypoint] Could not calculate vector for target ${$i(()=>e.targetId)}`);const{directionX:f,v:p,vN:g,vector:v}=m;let w=ne(void 0);const b=Math.abs(g[1])<.3,y=b?.65:.5+g[1]/10,k={x:f,y:y,baseScale:h.width/1024,scale:1,rotX:(1+(b?-(1-y):g[1]))*Math.PI/2,rotY:0,rotZ:0},T=n()?.coords??qs(k);let _,x=T.custom,E=x?T:k;function S(){d._markers?.noMarkerActions||(Ai(w).parentNode.scrollTo(0,0),clearTimeout(_),_=setTimeout(()=>{const t=a().camera.getXY(E.x,E.y);!Ai($)&&(t[0]<0||t[0]>=o.offsetWidth||t[1]<0||t[1]>=o.offsetHeight||a().is360&&t[3]>4)&&a().camera.flyToCoo([E.x,E.y],{speed:2,limit:!0}).catch(()=>{})},150))}let A=ne(""),M=n().customIconIdx;const I=()=>{C.deleted?oe(L,!0):(M!=C.settings.customIconIdx&&(n(n().customIconIdx=C.settings.customIconIdx,!0),M=n().customIconIdx),T.custom!=x&&(x=T.custom,E=x?T:k),oe(A,a().camera.getMatrix(E.x,E.y,E.baseScale*E.scale,1,E.rotX,E.rotY,E.rotZ,0,1,1,!0).join(","),!0))};let $=ne(!1);function P(){d._markers?.noMarkerActions||(oe($,!0),a(a().openedView=void 0,!0),a().state.marker.set(void 0),o.open(e.targetId,{vector:v}))}let L=ne(!1);const C={coords:T,settings:n()};I(),pr(()=>{C.el=Ai(w),Ai(w)._iface=C,o.dispatchEvent(new CustomEvent("wp-print",{detail:C}));const t=a().state.view.subscribe(I);return()=>t()});const R=Ht(()=>n().i18n?.[i()]?.title||u?.i18n?.[i()]?.title),D=Ht(()=>l?.icons?.[n().customIconIdx??-1]);var F=ji(),O=xe(F),z=t=>{var i=dc();let s;var n=_e(i);{let t=Ht(()=>Ai(D)?void 0:"arrow-up"),e=Ht(()=>Ai(R)??kt(Wn,"$i18n",r).waypointFollow);oa(n,{get type(){return Ai(t)},get icon(){return Ai(D)},onclick:P,onfocus:S,get title(){return Ai(e)}})}q(i),gs(i,t=>oe(w,t),()=>Ai(w)),Ue(()=>{Yr(i,`--matrix: matrix3d(${Ai(A)??""})`),as(i,"id",`w-${e.targetId}`),s=qr(i,1,"micrio-waypoint",null,s,{clicked:Ai($),active:Ai($),"direction-up":p[1]<0,"direction-down":p[1]>0})}),Rr(3,i,()=>Fn),Gi(t,i)};vr(O,t=>{Ai(L)||t(z)}),Gi(t,F),it(),s()}var mc,fc="5.5.1",pc="https://b.micr.io/",gc=["ttBWO","IicaE","KLTce","xjQrB","pfhXT","rNIPa","rdFIY","mvRXc"],vc={b64:_b,ugz:_u},wc="micrio-muted",bc={id:"",version:fc,path:pc,width:0,height:0,tileSize:1024,lang:"en",settings:{camspeed:1,view:[0,0,1,1],restrict:[0,0,1,1],focus:[.5,.5],zoomLimit:1,fullscreen:!0,hookEvents:!0,hookScroll:!0,hookPinch:!0,hookDrag:!0,minimap:!0,doTourJumps:!0,audio:!0,startVolume:1,mutedVolume:0,_markers:{showTitles:!1,popupAnimation:{duration:200,x:-50},zoomOutAfterClose:!0},ui:{controls:{cultureSwitch:!0}},_360:{},_meta:{}}},yc={STRINGS:{id:{r:!0},lang:{r:!0},"data-thumb":{f:"thumbSrc"},"data-title":{r:!0},"data-format":{r:!0},"data-extension":{r:!0,f:"tileExtension"},"data-tiles":{r:!0,f:"tilesId"},"data-path":{r:!0},"data-inittype":{f:"initType"},"data-start":{f:"gallery.startId"},"data-gallery":{f:"gallery.archive"},"data-gallery-sort":{f:"gallery.sort"},"data-iiif":{r:!0,f:"iiifManifest"},"data-grid":{r:!0},"data-gallery-type":{f:"gallery.type"}},BOOLEANS:{"data-static":{},muted:{f:"audio",n:!0},"data-png":{r:!0,f:"isPng"},"data-webp":{r:!0,f:"isWebP"},"data-dz":{r:!0,f:"isDeepZoom"},"data-is360":{r:!0},"data-no-externals":{f:"noExternals"},"data-skipmeta":{f:"skipMeta"},"data-force-data-refresh":{f:"forceDataRefresh"},"data-keeprendering":{f:"keepRendering"},"data-coverlimit":{f:"limitToCoverScale"},"data-events":{f:"hookEvents"},"data-keys":{f:"hookKeys"},"data-zooming":{f:"noZoom",n:!0},"data-scroll-zoom":{f:"hookScroll"},"data-pinch-zoom":{f:"hookPinch"},"data-dragging":{f:"hookDrag"},"data-two-finger-pan":{f:"twoFingerPan"},"data-control-zoom":{f:"controlZoom"},"data-ui":{f:"noUI",n:!0},"data-gtag":{f:"noGTag",n:!0},"data-controls":{f:"noControls",n:!0},"data-logo":{f:"noLogo",n:!0},"data-logo-org":{f:"noOrgLogo",n:!0},"data-toolbar":{f:"noToolbar",n:!0},"data-show-info":{f:"showInfo"},"data-social":{},"data-fullscreen":{},"data-minimap":{},"data-minimap-hide":{f:"alwaysShowMinimap",n:!0},"data-normalize-dpr":{f:"zoomLimitDPRFix"},"data-grid-clickable":{f:"gridClickable"},"data-gallery-spreads":{f:"gallery.isSpreads"},"data-freemove":{f:"freeMove"},"data-force-path":{f:"forceInfoPath",r:!0}},NUMBERS:{"data-version":{r:!0},height:{r:!0},width:{r:!0},volume:{f:"startVolume"},"data-tilesize":{r:!0,f:"tileSize"},"data-camspeed":{},"data-zoomlimit":{f:"zoomLimit"},"data-minimap-height":{f:"minimapHeight"},"data-minimap-width":{f:"minimapWidth"},"data-mutedvolume":{f:"mutedVolume"},"data-width-cm":{f:"cmWidth"},"data-height-cm":{f:"cmHeight"},"data-gallery-cover-pages":{f:"gallery.coverPages"},lazyload:{dN:0},"data-elasticity":{f:"dragElasticity"},"data-skip-base-levels":{f:"skipBaseLevels"},"data-watermark-opacity":{f:"watermarkOpacity"}},ARRAYS:{"data-focus":{},"data-view":{}}};!function(t){let e;let i;(e||(e=t.Grid||(t.Grid={}))).GridActionType=function(t){return t[t.focus=0]="focus",t[t.flyTo=1]="flyTo",t[t.focusWithTagged=2]="focusWithTagged",t[t.focusTagged=3]="focusTagged",t[t.reset=4]="reset",t[t.back=5]="back",t[t.switchToGrid=6]="switchToGrid",t[t.filterTourImages=7]="filterTourImages",t[t.nextFadeDuration=8]="nextFadeDuration",t}({}),(i||(i=t.Camera||(t.Camera={}))).TimingFunction=function(t){return t[t.ease=0]="ease",t[t["ease-in"]=1]="ease-in",t[t["ease-out"]=2]="ease-out",t[t.linear=3]="linear",t}({})}(mc||(mc={}));var kc,Tc=class{get e(){return this.image.wasm.e}constructor(t){if(this.image=t,this.center=[0,0,1],this.view=[0,0,1,1],this.rotationY=0,this.aniDoneAdd=[],this.cooToArea=(t,e,i)=>({x:i[0]+t*(i[2]-i[0]),y:i[1]+e*(i[3]-i[1])}),this.getView=()=>this.view,this.getViewRaw=()=>this._view,this.getViewLegacy=()=>{if(this.e)return[this._view[0]-this._view[2]/2,this._view[1]-this._view[3]/2,this._view[0]+this._view[2]/2,this._view[1]+this._view[3]/2]},this.getCoo=(t,e,i=!1,r=!1)=>this.getCooDirect(t,e,i,r).slice(0).map(t=>Math.round(1e6*t)/1e6),this.getXY=(t,e,i=!1,r,s,n)=>this.getXYDirect(t,e,{abs:i,radius:r,rotation:s,noTrueNorth:n}).slice(0),this.getScale=()=>this.center[2]??1,this.setScale=t=>this.setCoo(this.center[0],this.center[1],t),this.getCoverScale=()=>this.e?._getCoverScale(this.image.ptr)??1,this.getMinScale=()=>this.e?._getMinScale(this.image.ptr)??.1,this.isZoomedIn=()=>1==this.e?._isZoomedIn(this.image.ptr),this.isZoomedOut=(t=!1)=>1==this.e?._isZoomedOut(this.image.ptr,t),this.getCoverLimit=()=>!!this.e?._getCoverLimit(this.image.ptr),this.flyToView=(t,e={})=>new Promise((i,r)=>{if(!this.e)return r(new Error("Wasm not ready"));let{centerX:s,centerY:n,width:a,height:o}=sn.toCenterJSON(t);if(2==e.margin?.length&&(s+=e.margin[0],n+=e.margin[1],a-=2*e.margin[0],o-=2*e.margin[1]),e.area){const t=this.cooToArea(s,n,e.area);s=t.x,n=t.y,a*=e.area[2]-e.area[0],o*=e.area[3]-e.area[1]}if(e.prevView){const t=sn.toCenterJSON(e.prevView);this.e._setStartView(this.image.ptr,t.centerX,t.centerY,t.width,t.height)}if(this.image.$settings.omni?.frames){const i=this.image.$settings.omni.layers?.length??1,r=this.image.$settings.omni.frames/i;if(null==e.omniIndex){const i=t[4]?t[4]:Array.isArray(t)&&void 0!==t[5]?t[5]:void 0;void 0!==i&&(e.omniIndex=Math.round(Ws(i/(2*Math.PI))*r))}null!=e.omniIndex&&(e.omniIndex=Ws(e.omniIndex,r))}const c=this.e._flyTo(this.image.ptr,s,n,a,o,e.duration??-1,e.speed??-1,e.progress??0,!!e.isJump,!!e.limit,!!e.limitZoom,e.omniIndex??0,mc.Camera.TimingFunction[e.timingFunction??"ease"],performance.now());this.image.wasm.render(),0==c?i():this.setAniPromises(i,r)}),this.flyToFullView=(t={})=>this.flyToCoo([.5,.5,this.getMinScale()],t),this.flyToCoverView=(t={})=>{const e=this.image.$settings.focus??[.5,.5];return e[2]=this.getCoverScale(),this.flyToCoo(e,t)},this.flyToCoo=(t,e={})=>new Promise((i,r)=>{if(!this.e)return r(new Error("Wasm not ready"));e.duration=this.e._setCoo(this.image.ptr,t[0],t[1],t[2]||this.center[2],e.duration??-1,e.speed??-1,e.limit??!1,mc.Camera.TimingFunction[e.timingFunction??"ease"],performance.now()),this.image.wasm.render(),0==e.duration?i():this.setAniPromises(i,r)}),this.zoom=(t,e=0,i=void 0,r=void 0,s=1,n=!1)=>new Promise((a,o)=>{if(!this.e)return o(new Error("Wasm not ready"));const c=this.getXY(this.center[0],this.center[1]);if(null==i&&(i=c[0]),null==r&&(r=c[1]),this.image.album&&!this.image.album.hooked)return a();e=this.e._zoom(this.image.ptr,t,i,r,e,s,n,performance.now()),this.image.wasm.render(),0==e?a():this.setAniPromises(a,o)}),this.zoomIn=(t=1,e=250,i=1)=>this.zoom(200*-t,e,void 0,void 0,i).catch(()=>{}),this.zoomOut=(t=1,e=250,i=1)=>{const r=this.image.wasm.micrio.canvas.viewport,s=r.width/r.height,n=this.image.$info.width/this.image.$info.height;return this.zoom(t*(400/Math.max(1,s/n/2)),e,void 0,void 0,i).catch(()=>{})},this.getDirection=()=>this.e?._getYaw(this.image.ptr)??0,this.getPitch=()=>this.e?._getPitch(this.image.ptr)??0,!t.is360){const e=t.state.$view;e&&t.$info?.width&&Si().then(()=>this.setView(e))}}assign(t,e,i,r){this._view=t,this._xy=e,this._coo=i,this._mat=r}viewChanged(){const t=this._view,e=this.center.join(","),i=this.getCoo(0,0);this.view[0]=t[0]-t[2]/2,this.view[1]=t[1]-t[3]/2,this.view[2]=t[2],this.view[3]=t[3],this.center[0]=t[0],this.center[1]=t[1],this.center[2]=i[2],this.image.is360&&(this.center[3]=i[3],this.center[4]=i[4]),this.image.isOmni&&(this.center[5]=this.image.swiper?.currentIndex),(this.center.join(",")!=e||this.image.wasm.micrio.canvas.resizing||this.image.wasm.areaAnimating(this.image.ptr))&&this.image.state.view.set(this.view)}getXYDirect(t,e,i={}){const r=this.image.is360&&!i.noTrueNorth?-this.rotationY/(2*Math.PI):0;return this.e._getXY(this.image.ptr,t-r,e,!0===i.abs,i.radius,i.rotation),this._xy}getCooDirect(t,e,i=!1,r=!1){if(i){const i=this.image.wasm.micrio.getBoundingClientRect();t-=i.left,e-=i.top}return this.e._getCoo(this.image.ptr,t,e,!0===i,!0===r),this._coo}setView(t,e={}){if(!this.e)return;let{centerX:i,centerY:r,width:s,height:n}=sn.toCenterJSON(t);if(e.area){const t=this.cooToArea(i,r,e.area);i=t.x,r=t.y,s*=e.area[2]-e.area[0],n*=e.area[3]-e.area[1]}this.e._setView(this.image.ptr,i,r,s,n,!!e.noLimit,!1,e.correctNorth),e.noRender||this.image.wasm.render()}setCoo(t,e,i=this.center[2]??1){this.e&&(this.e._setCoo(this.image.ptr,t,e,i,0,0),this.image.wasm.render())}getMatrix(t,e,i,r,s,n,a,o,c,l,h){return this.e?(this.e._getMatrix(this.image.ptr,t,e,i,r,s||0,n||0,a||0,o||0,c??1,l??1,h),this._mat):new Float32Array(16)}setMinScale(t){this.e?._setMinScale(this.image.ptr,t)}setMinScreenSize(t){this.image.album||this.e?._setMinSize(this.image.ptr,Math.max(0,Math.min(1,t??1)))}setLimit(t){if(!this.e)return;const e=sn.rectToCenterJSON(t);this.e._setLimit(this.image.ptr,e.centerX,e.centerY,e.width,e.height),this.image.wasm.render()}setCoverLimit(t){this.e&&this.e._setCoverLimit(this.image.ptr,!!t)}set360RangeLimit(t=0,e=0){this.e&&(this.e._set360RangeLimit(this.image.ptr,t,e),this.image.wasm.render())}setAniPromises(t,e){this.aniDone=t,this.aniAbort=e}pan(t,e,i=0,r={}){this.e&&(this.e._pan(this.image.ptr,t,e,i,!!r.noLimit,performance.now()),(i>0||r.render)&&this.image.wasm.render())}stop(){this.e&&this.e._aniStop(this.image.ptr)}pause(){this.e&&this.e._aniPause(this.image.ptr,performance.now())}resume(){this.e&&(this.e._aniResume(this.image.ptr,performance.now()),this.image.wasm.render())}aniIsKinetic(){return!!this.e?._isKinetic(this.image.ptr)}setDirection(t,e){this.e&&(this.e._setDirection(this.image.ptr,t,e),this.image.wasm.render())}setArea(t,e={}){this.e&&(this.image.opts.isEmbed?this.image.ptr>0&&(this.image.opts.area=t,this.e._setImageArea(this.image.ptr,t[0],t[1],t[2],t[3])):(this.image.opts.area=t,this.e._setArea(this.image.ptr,t[0],t[1],t[2],t[3],!!e.direct,!!e.noDispatch)),e.noRender||this.image.wasm.render())}setRotation(t=0,e=0,i=0){!this.image.opts.isEmbed||this.image.ptr<=0||!this.image.wasm.ready||(this.image.wasm.setImageRotation(this.image.ptr,t,e,i),this.image.wasm.render())}getOmniRotation(){const t=this.image.$settings.omni;return t&&this.e?(this.image.swiper?.currentIndex??0)/((t?.frames??1)/(t?.layers?.length??1))*Math.PI*2:0}getOmniFrame(t){const e=this.image.$settings.omni;if(!e||null==t)return;const i=e.frames/(e.layers?.length??1);return Math.floor(t/(2*Math.PI)*i)}getOmniXY(t,e,i){return this.e?(this.e._getOmniXY(this.image.ptr,t,e,i),this._xy):new Float64Array(5)}setOmniSettings(){const t=this.image,e=t.$settings.omni;e&&this.e&&(t.wasm.setOmniSettings(t.ptr,-e.distance||0,e.fieldOfView??0,e.verticalAngle??0,e.offsetX??0),this.image.state.view.set(this.view))}};!function(t){t.Main=class{get $tour(){return this._tour}get $marker(){return this._marker}constructor(t){this.micrio=t,this.tour=vt(),this.marker=vt(),this.markerHoverId=vt(),this.popup=vt(),this.popover=vt(),this.ui={controls:vt(!0),zoom:vt(!0),hidden:vt(!1)},this.mediaState=new Map,this.tour.subscribe(t=>{"string"!=typeof t&&(this._tour=t)}),this.marker.subscribe(t=>{"string"!=typeof t&&(this._marker=t)})}get(){if(this.micrio.$current)return this.value={id:this.micrio.$current.id,c:this.micrio.canvases.map(t=>t.state.get())},this._tour&&(this.value.t=[this._tour.id],"instance"in this._tour&&this._tour.instance?this.value.t.push(this._tour.instance.currentTime,this._tour.instance.paused?"p":void 0):"steps"in this._tour&&void 0!==this._tour.currentStep&&this.value.t.push(this._tour.currentStep)),this.value}async set(t){if(this.value=t){if(void 0!==t.t?.[1]){const e=t.t[0],i=this.mediaState.get(e);i?(i.currentTime=t.t[1],i.paused="p"==t.t[2]):this.mediaState.set(e,{currentTime:t.t[1],paused:"p"==t.t[2]})}if(t.c?.forEach(t=>{if(void 0!==t[6]&&void 0!==t[7]){const e=t[6],i=this.mediaState.get(e);i?(i.currentTime=t[7],i.paused="p"==t[8]):this.mediaState.set(e,{currentTime:t[7],paused:"p"==t[8]})}}),t.t&&await this.setTour(t.t[0]),this.micrio.$current?.id!=t.id&&(this.micrio.open(t.id),this.micrio.$current&&await en(this.micrio.$current.data,{allowUndefined:!0})),this.micrio.canvases.forEach(e=>{e.state.set(t.c.find(t=>t[0]==e.id))}),t.t)return this.setTour(t.t[0],t.t[1]);{const e=t.c.find(e=>e[0]==t.id);e&&!e[5]&&this.micrio.$current&&this.micrio.$current.camera.flyToView(e.slice(1,5),{speed:2}).catch(()=>{})}}}async setTour(t,e){if(!this.micrio.$current)return;const i=await en(this.micrio.$current.data,{allowUndefined:!0});if(i){const r=i.markerTours?.find(e=>e.id==t)||i.tours?.find(e=>e.id==t);r&&"steps"in r&&void 0!==e&&(r.initialStep=e),this._tour?.id!=t&&this.tour.set(r)}}};t.Image=class{get $view(){return this._view}get $marker(){return this._marker}constructor(t){this.image=t,this.view=vt(void 0),this.marker=vt(void 0),this.layer=vt(0);const e=t.wasm.micrio;let i,r,s;this.view.subscribe(n=>{this._view=n;const a=n?.toString();if(n&&a&&i!=a){const o={image:t,view:n};i=a;const c=n[2],l=n[3];(!r||!s||Math.abs(c-r+(l-s))>1e-5)&&(e.events.dispatch("zoom",o),r=c,s=l),e.events.dispatch("move",o)}}),this.marker.subscribe(t=>{const i=this._marker;this._marker=t&&"string"!=typeof t?t:void 0,this._marker?e.state.marker.set(this._marker):t||e.state.$marker!=i||e.state.marker.set(void 0)})}hookOmni(){const t=this.image;this.layer.subscribe(e=>{t.ptr<0||!t.wasm.ready||(t.wasm.setActiveLayer(t.ptr,e),t.wasm.render())})}get(){const t=this._marker,e=t?Array.from(this.image.wasm.micrio.state.mediaState).reverse().find(e=>e[0].startsWith(t.id)):null;return[this.image.id,...this._view?this._view.slice(0,4):[0,0,1,1],...t?[t.id,...e?[e[0],e[1].currentTime,e[1].paused?"p":void 0]:[]]:[void 0]].filter(t=>void 0!==t)}set(t){t?.length&&(this.view.set(t.slice(1,4)),t[5]?this._marker?.id!=t[5]&&this.marker.set(t[5]):this._marker&&this.marker.set(void 0))}}}(kc||(kc={}));var _c=new class{constructor(){this.data=new Map,this.db=new Map,this.images=[],this.get=t=>new Promise((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const s=new FileReader;s.onload=()=>e(JSON.parse(s.result)),s.readAsText(new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]))}),this.getImage=async t=>new Promise((e,i)=>{const r=this.db.get(t);if(!r||!this.data.has(r[0]))return i(new Error("Could not get blob: "+t));const s=new Blob([new Uint8Array(this.data.get(r[0]),r[1],r[2])]);if("createImageBitmap"in self)e(self.createImageBitmap(s));else{let t=this.images.find(t=>!t.src);t||this.images.push(t=new Image),t.onload=()=>{t&&(e(t),requestAnimationFrame(()=>{t&&(URL.revokeObjectURL(t.src),t.src="")}))},t.src=URL.createObjectURL(s)}})}async load(t,e,i){if(this.data.has(e))return;const r=e.replace(/^.*\//,"").split(".")[0],s=/\/base$/.test(e),n=s||kn(r),a=new XMLHttpRequest,o=await new Promise((r,s)=>{let o=0;a.responseType="arraybuffer",a.onprogress=t=>{o||(o=Number(a.getResponseHeader("Content-Length"))),i?.(Math.min(1,t.loaded/o))},a.onload=()=>{4===a.readyState&&200===a.status?(i?.(1),r(a.response)):s()},a.onerror=s,a.open("GET",t+e+(n?".bin":".mdp")),a.send()});if(!o)return;this.data.set(e,o);const c=s?e.split("/")[0]+"/":"";let l=0;for(;l<o.byteLength&&!(l+32>o.byteLength);){const i=this.parseHeader(new Uint8Array(o,l,32));if(i.name&&i.size>0)this.db.set(t+c+i.name.replace("./",""),[e,l+32,i.size]);else if(0===i.size&&!i.name)break;l+=32+i.size}}parseHeader(t){const e=(new TextDecoder).decode(t),i=t=>e.slice(r,r+=t).replace(/\x00/g,"").trim();let r=0;return{name:i(20),size:parseInt(i(12),8)}}},xc=[],Ec=class t{get $info(){return this.__info}get $settings(){return wt(this.settings)}get $data(){return wt(this.data)}constructor(t,e,i={}){if(this.wasm=t,this.attr=e,this.opts=i,this.uuid=js(),this.__info=qs(bc),this.settings=vt({}),this.data=vt(void 0),this.video=vt(void 0),this.visible=vt(!1),this.ptr=-1,this.baseTileIdx=-1,this.is360=!1,this.isVideo=!1,this.isOmni=!1,this.levels=1,this.dzLevels=0,this.noImage=!1,this.opacity=1,this.viewport=vt(),this.embeds=[],this.isV5=!1,this._loadedData=!1,this.embedElements=new Map,this.state=new kc.Image(this),i.useParentCamera||(this.camera=new Tc(this)),this.id=(e.id??"").replace("https://i.micr.io/",""),this.id.startsWith("external/")){const t=this.id.indexOf("/",this.id.indexOf("/")+1);-1!==t&&(this.id=this.id.substring(0,t+1)+encodeURIComponent(this.id.substring(t+1)))}this.isV5=kn(this.id.split("/")[0]),this.infoBasePath=e.path&&e.forceInfoPath?e.path:void 0,this.dataPath=e.path||this.__info.path,this.isV5&&!e.path&&(this.dataPath="https://r2.micr.io/"),i.secondaryTo?(this.opacity=0,i.area=this.wasm.micrio.canvas.viewport.portrait?[0,1,1,1]:[1,0,1,1],void 0===i.isPassive&&(i.isPassive=!0)):i.area||(i.area=[0,0,1,1]),this.preset=vn(this.id);let r=!1;var s;this.info=(s=t=>{r?t(this.__info):this.load().then(t),r=!0},{subscribe:vt(void 0,s).subscribe});const n=this.wasm.micrio,a=!!this.attr.revision;let o,c=wt(this.visible);i.isEmbed&&!a||this.visible.subscribe(t=>{t!=c&&(c=t,t&&!this._loadedData&&(!a&&this.isV5?(this._loadedData=!0,this.data.set(void 0)):this.loadData()),i.secondaryTo&&(i.isPassive&&(o?(o(),o=null):t&&(o=i.secondaryTo.state.view.subscribe(t=>{t&&!this.camera.aniDone&&this.camera.setView(t,{noLimit:!0})}))),t?n.events.dispatch("splitscreen-start",this):n.events.dispatch("splitscreen-stop",this)),n.visible.update(e=>(t?e.push(this):e.splice(e.indexOf(this),1),e)),t&&n.$current==this&&n.switching.set(!1))}),this.video.subscribe(t=>this._video=t),this.data.subscribe(t=>{t&&((t,e,i,r)=>{t&&(t.revision&&(t.revision=Object.fromEntries(Object.entries(t.revision??{}).filter(t=>Number(t[1])>0))),t.embeds?.forEach(t=>{t.uuid||(t.uuid=t.id??t.micrioId),an(t.video),an(t),r&&(t.area=sn.fromLegacy(t.area))}),t.markers?.forEach(t=>dn(t,e,i,r)),r&&t.tours?.forEach(un),t.music?.items?.forEach(an),t.pages?.forEach(ln))})(t,n.lang,this.isV5,on(this.__info))})}setError(t,e){const i=t instanceof Bs?t.displayMessage:e??(t instanceof Error?t.message:t)??"An unknown error has occurred";throw this.error=i,this.wasm.micrio.printError(t instanceof Bs?t:i),this.wasm.micrio.loading.set(!1),t instanceof Error?t:new Error(i)}async load(){let t=this.__info;const e=this.attr,i=this.wasm.micrio;e.id&&e.width&&(e.settings&&Xs(bc.settings,e.settings,{noOverwrite:!0}),this.__info=t=e);let r=t.iiifManifest||e.iiifManifest;t.isIIIF=this.id.startsWith("http")||"iiif"==t.format;const s=!!e.settings?.forceDataRefresh;let n;if(!this.id||e.width&&e.height&&!r)this.preset?.[1]&&Xs(this.preset[1],t);else{const e=t=>this.setError(t,"string"==typeof t?t:'Image with id "'+this.id+'" not found, published, or embeddable.');Xs(this.preset?.[1]||await(t.isIIIF?gn(this.id):wn(this.id,this.infoBasePath,s).then(e=>(e?.id&&!t.isIIIF&&this.id.split("/").length>=3&&this.id.startsWith("external/")&&(n=e.id.split("/").reverse()[0],(this.isV5=kn(n))&&(this.dataPath=e.path||"https://r2.micr.io/")),e))).catch(e),t),!r&&t.iiifManifest&&(r=t.iiifManifest),t.isIIIF||(t.isIIIF=!!r),r&&Xs(await gn(r).catch(e),t),t.settings?._meta?.noLogo&&(t.settings.noLogo=!0),t.settings?._meta?.noSmoothing&&(t.settings.noSmoothing=!0)}if(t.id.startsWith("https://iiif.micr.io/")&&(t.id=t.id.slice(21)),7==this.id?.length){const e=yn(this.id[1+yn(this.id)%6]);t.is360=!!(e>>4&1)||t.is360,t.isWebP=!(3&e),t.isPng=2==(3&e),e>>3&1&&kn(t.tilesId??this.id)&&(t.format="dz"),t.path||(t.path=`https://${e>>2&1?"eu":"r2"}.micr.io/`)}const a=this.isV5&&this.id.startsWith("i")&&!this.id.includes("/");a&&!t.tilesId&&(t.tilesId=this.id.slice(1));const o=gc.includes(t.id)||t.tilesId&&gc.includes(t.tilesId);if(Xs(e,t),n&&(this.id=t.id=n),this.tileBase=a&&!t.tileBasePath?.includes("micr.io")?t.tileBasePath??"https://b.micr.io/":o||a?pc:t.tileBasePath??t.path??(this.isV5?"https://r2.micr.io/":"https://b.micr.io/"),t.organisation?.baseUrl&&!e.path?(this.dataPath=t.path=t.organisation.baseUrl,a&&!o||(this.tileBase=this.dataPath)):"https://eu.micr.io/"==t.path&&(this.dataPath=t.path),t.settings?.omni&&(this.isOmni=!0,parseFloat(t.version)>=5&&(await _c.load(this.tileBase??this.dataPath,(t.tilesId??t.id)+"/base",t=>i._ui?.setProps?.({loadingProgress:t})).catch(t=>this.setError(t,"Could not find object base package.")),t.settings.gallery||(t.settings.gallery={}),t.settings.gallery.type="omni",t.settings.gallery.archive=t.id)),!t.organisation?.branding||t.settings&&t.settings.noUI||this.loadStyle(this.dataPath+"style/"+t.organisation.slug+".css").then(()=>{const t=getComputedStyle(this.wasm.micrio).getPropertyValue("--micrio-font-family")?.replace(/^'([^']+)'.*$/,"$1");t&&document.fonts.ready.then(()=>{document.fonts.check("16px "+t)||this.loadStyle(`https://fonts.googleapis.com/css2?family=${t}:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,400;1,500;1,600;1,800&display=swap`)})}),t.isIIIF)if(t.sequences&&t.sequences.length)this.parseIIIFSequenceV2(t,!!r);else if("Manifest"==t.type)this.parseIIIFSequenceV3(t);else{const e=(r||("@id"in t?t["@id"]:t.id)).replace("/info.json","");t.path=e.replace(/\/[^/]*$/,""),t.id=e.replace(/^.*\/([^/]*)$/,"$1")}if(t.spacesId&&!i.spaceData&&(i.spaceData="MICRIO_SPACE_DATA"in self?self.MICRIO_SPACE_DATA:await gn((this.infoBasePath??"https://i.micr.io/")+"spaces/"+t.spacesId+".json"),1==i.spaceData?.images.length&&delete i.spaceData),t.is360&&this.camera){const e=i.spaceData?.images.find(t=>t.id==this.id)?.rotationY;null!=e?this.camera.rotationY=e:null!=t.settings?._360?.trueNorth&&(this.camera.rotationY=(t.settings._360.trueNorth-.5)*Math.PI*2)}this.noImage=this.noImage||this.isOmni||!t.id&&!t.tilesId,this.extension=t.tileExtension||t.isPng&&"png"||t.isWebP&&"webp"||"jpg","dz"==t.format&&(t.isDeepZoom=!0),this.is360=!!t.is360,this.isVideo=!!t.isVideo;let c=this.isV5?wt(i._lang):("cultures"in t?void 0:e.lang)??void 0;if(this.isV5){if(t.revision){const e=Object.keys(t.revision);e.length&&!e.includes(c)&&(i.lang=e[0])}}else if(!t.settings?.skipMeta&&"cultures"in t){const e=(t.cultures||"").split(","),r=this.opts.isEmbed||!!this.opts.area,s=t.settings?.onlyPreferredLang||r;c=t.lang&&e.includes(t.lang)?t.lang:s?void 0:e[0],c&&!r&&(i.lang=c)}const l=t.settings;l&&!l?.noExternals&&await Promise.all([l.css?this.loadStyle(l.css.href):null,l.js?this.loadScript(l.js.href,c):null].filter(t=>!!t));for(let d=t.tileSize;d<Math.max(t.width,t.height);d*=2,this.levels++);let h=Math.max(t.width,t.height);do{this.dzLevels++}while((h/=2)>1);return l?.gallery?.archive&&(this.levels-=1-(l.gallery.archiveLayerOffset??0)),this.noImage||(this.thumbSrc=this.getTileSrc(this.levels,0,0)),i.events.dispatch("pre-info",t),this.isV5&&null!=t.revision&&!this.opts.isEmbed?await this.loadData():t.settings?.skipMeta||this.opts.isEmbed||this.isV5||i._lang.subscribe(t=>{!t||!this.id||"cultures"in this.__info&&(this.__info.cultures||"").split(",").includes(t)||(t=void 0),this.data.set(void 0),!t&&this.preset?.[2]&&(t="preset"),t&&this.id&&(this.isV5||(i.state.tour.set(void 0),this.state.marker.set(void 0)),this.preset?.[2]?this.enrichData(this.preset[2]).then(t=>{this.data.set(t),this.preset?.[2]&&(this.preset[2]=void 0)}):gn(this.dataPath+this.id+"/data."+t+".json").catch(()=>{}).then(t=>t&&this.enrichData(t).then(t=>this.data.update(e=>(Xs(t,e||(e={}),{mergeArrays:!0}),e)))))}),t.settings?.micrioSplitLink&&!this.opts.secondaryTo&&i.open({id:t.settings.micrioSplitLink,settings:{hookEvents:!1!==t.settings.secondaryInteractive}},{splitScreen:!0,isPassive:!t.settings.noFollow}),t.settings&&this.settings.set(t.settings),t.watermark&&this.wasm.micrio.webgl.loadWatermark(t.watermark,t.settings?.watermarkOpacity),delete t.settings,this.isOmni&&this.state.hookOmni(),t}async loadData(){const t=this.$settings?.skipMeta||this.__info.settings?.skipMeta;if(this._loadedData||t)return Promise.resolve();this._loadedData=!0;const e=this.preset?.[2]??(this.isV5&&await gn(this.dataPath+this.id+"/data/pub.json",this.__info.settings?.forceDataRefresh).catch(()=>{}));e&&this.enrichData(e).then(t=>this.data.set(t))}getTileSrc(t,e,i,r){const s=this.__info;if(s){if(s.isDeepZoom&&(t=this.dzLevels-t),s.isIIIF){const r=s.tileSize,n=Math.pow(2,t)*r,a=Math.min(s.width,e*n),o=Math.min(s.height,i*n),c=Math.min(s.width-a,n),l=Math.min(s.height-o,n),h=Math.round(Math.min(r,c/n*r)),d=Math.round(Math.min(r,l/n*r));return`${s.path}/${s.id}/${[a,o,c,l].join(",")}/${[h,d].join(",")}/0/default.jpg`}if(s.settings?._360?.video?.src)throw"Video thumb";return`${this.tileBase}${s.tilesId||s.id}/${void 0!==r?r+"/":""}${t}/${e}${s.isDeepZoom?"_":"-"}${i}.${this.extension}`}}loadScript(t,e=""){return new Promise(i=>{if(xc.includes(t)||document.querySelector('script[src="'+t+'"]'))i();else{xc.push(t);const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.defer=!0,r.micrioElement=this.wasm.micrio,r.src=t.replace("$lang",e),r.onload=i,document.head.appendChild(r)}})}loadStyle(t){return new Promise(e=>{if(xc.includes(t)||document.head.querySelector('link[href="'+t+'"]'))e();else{xc.push(t);const i=document.createElement("link");i.setAttribute("type","text/css"),i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),i.onload=e,document.head.appendChild(i)}})}async enrichData(e){if(!e)return e;"error"in e&&(this.__info.error="403"==e.status?"Could not load image data. Are you logged in and do you have the right credentials?":e.error);const i=this.wasm.micrio.lang,r=[];e.markers?.forEach(t=>{if(dn(t,i,!this.isV5,on(this.__info)),t.data?.micrioSplitLink){const e=t.data.micrioSplitLink.split(",").map(t=>t.trim()),i=t.data._micrioSplitLink={micrioId:e[0],markerId:e[1],follows:!!e[2]&&"false"!=e[2]};i.markerId&&r.push(i.micrioId)}}),e.markerTours?.length&&r.push(...e.markerTours.flatMap(t=>t.steps).map(t=>t.split(",")[1]).filter(t=>!!t&&t!=this.id));const s=t=>"autostart"in t&&t.autostart,n=e.markerTours?.find(s)||e.tours?.find(s);n&&(this.$settings.start={type:"steps"in n?"markerTour":"tour",id:n.id});const a=r.filter((t,e)=>r.indexOf(t)==e),o=t=>this.dataPath+(this.isV5?t+"/data/pub.json":t+"/data."+i+".json"),[c,l]=await Promise.all([Promise.all(a.map(t=>gn(o(t)))),Promise.all(a.map(t=>wn(t,this.infoBasePath)))]);c.forEach((t,e)=>{const r=on(l[e]);t?.markers?.forEach(t=>dn(t,i,5==a[e].length,r))});const h=this.wasm.micrio.spaceData;return e.markerTours&&(await Promise.all(e.markerTours.map(t=>bn(this,t,i,e))),h&&(e.markerTours=e.markerTours.filter(t=>!t.steps.find(t=>t.includes(","))))),h?.markerTours&&await Promise.all(h.markerTours.filter(t=>!t.stepInfo).map(t=>bn(this,t,i,e))),e.markers?.forEach(t=>{if(!t.data?._micrioSplitLink)return;const e=t.data?._micrioSplitLink?.markerId;if(e)for(let i=0;i<c.length;i++){const r=c[i]?.markers?.find(t=>t.id==e);if(r)return void(t.data._micrioSplitLink.view=r.view)}}),this.wasm.micrio.events.dispatch("pre-data",{[this.id]:e,...Object.fromEntries(a.map((t,e)=>[t,c[e]]))}),c.forEach((e,i)=>{if(e){const s=this.wasm.images.find(t=>t.id==a[i]);s&&s instanceof t&&!s.$data&&(r=o(s.id),!mn.has(r)&&!fn.has(r))&&s.data.set(e)}var r}),e}parseIIIFSequenceV2(e,i=!1){const r=e.sequences?.[0];if(!r)return;const s="top-to-bottom"==r.viewingDirection,n=r.canvases.map(t=>t.images[0]).map(t=>t.resource);this.noImage=!0,e.width=s?Math.max(...n.map(t=>t.width)):n.reduce((t,e)=>t+e.width,0),e.height=s?n.reduce((t,e)=>t+e.height,0):Math.max(...n.map(t=>t.height));let a=0,o=this.embeds;e.settings||(e.settings={}),i&&n.length>10&&(o=e.gallery=[],e.settings.gallery||(e.settings.gallery={})),n.forEach(i=>{const r=[(1-i.width/e.width)/2,(1-i.height/e.height)/2];o.push(new t(this.wasm,{id:i.service["@id"],width:i.width,height:i.height,isPng:"image/png"==i.format,settings:{}},{area:s?[r[0],a/e.height,1-r[0],(a+i.height)/e.height]:[a/e.width,r[1],(a+i.width)/e.width,1-r[1]]})),a+=s?i.height:i.width})}parseIIIFSequenceV3(e){const i=e.items?.flatMap(t=>t.items?.[0]?.items?.[0]?.body).filter(t=>!!t?.service?.[0]?.id).filter(t=>!!t);if(!i?.length)return;this.noImage=!0,e.width=i.reduce((t,e)=>t+e.width,0),e.height=Math.max(...i.map(t=>t.height));let r=0;const s=e.gallery=[];e.settings||(e.settings={}),e.settings.gallery||(e.settings.gallery={}),i.forEach(i=>{const n=[(1-i.width/e.width)/2,(1-i.height/e.height)/2];s.push(new t(this.wasm,{id:i.service[0].id,width:i.width,height:i.height,isPng:"image/png"==i.format,tileSize:e.tileSize,settings:{}},{area:[r/e.width,n[1],(r+i.width)/e.width,1-n[1]]})),r+=i.width})}addEmbed(e,i,r={}){const s=i.slice(0),n=new t(this.wasm,e,{area:s,isEmbed:!0,useParentCamera:r.asImage});return n.camera||(n.camera=this.camera),this.embeds.push(n),void 0===r.opacity&&(r.opacity=1),en(n.info).then(t=>{if(t){if("cover"==r.fit||"contain"==r.fit){const e=this.is360?2:1,i="cover"==r.fit,n=s[2]-s[0],a=s[3]-s[1],o=s[0]+n/2,c=s[1]+a/2,l=n/a*e,h=t.width/t.height;if(i&&h<l||!i&&h>=l){const t=n/h*e;s[1]=c-t/2,s[3]=c+t/2}else{const t=a*h/e;s[0]=o-t/2,s[2]=o+t/2}}this.wasm.addEmbed(n,this,r),this.wasm.render()}}),n}setEmbedMediaElement(t,e){e?this.embedElements.set(t,e):this.embedElements.delete(t)}getEmbedMediaElement(t){return this.embedElements.get(t)}splitStart(){const t=this.wasm.micrio.canvas.viewport.portrait;this.opts.secondaryTo?.camera.setArea(t?[0,0,1,.5]:[0,0,.5,1],{noRender:!0}),this.camera.setArea(t?[0,.5,1,1]:[.5,0,1,1],{noRender:!0}),this.camera.setView(this.__info?.settings?.view??[0,0,1,1]),this.wasm.render()}splitEnd(){const t=this.opts.area;if(!t)return;const e=t[2]-t[0],i=t[3]-t[1];if(Math.round(1e3*e)/1e3==0||Math.round(1e3*i)/1e3==0)return;const r=e>i;this.camera.setArea(r?[0,1,1,1]:[1,0,1,1],{noRender:!0}),this.opts.secondaryTo?.grid&&this.opts.secondaryTo.camera.aniDone||this.opts.secondaryTo?.camera.setArea([0,0,1,1],{noRender:!0}),this.wasm.render()}fadeIn(t=!1){this.wasm.fadeImage(this.ptr,1,t),this.wasm.render()}fadeOut(t=!1){this.wasm.fadeImage(this.ptr,0,t),this.wasm.render()}},Sc=class{constructor(t,e,i,r,s){this.wasm=t,this.image=e,this.embed=i,this.paused=r,this.moved=s,this.ism3u=!1,this.hlsPlayer=void 0,this.usVid=void 0,this.vidRepeatTo=void 0,this.placeTo=void 0,this.autoplay=!0,this._vid=void 0,this.isMounted=!0,this.events={play:()=>this.setPlaying(!0),pause:()=>this.setPlaying(!1),playing:()=>{!this.image._video&&this._vid&&("requestVideoFrameCallback"in this._vid?this._vid.requestVideoFrameCallback(()=>{this._vid&&this.isMounted&&(this.image.video.set(this._vid),this.wasm.render())}):this.image.video.set(this._vid))},canplayEvt:Js.iOS?"loadedmetadata":"canplay",canplay:()=>{this._vid&&this.isMounted&&(this.autoplay&&!this.paused?(this._vid.play().catch(t=>console.warn("WebGL Embed video play() failed on canplay:",t)),this.moved()):this.embed.hideWhenPaused||(this.setPlaying(!0),Si().then(()=>{this.setPlaying(!1),setTimeout(()=>this._vid?.remove(),50)})))}},this.ism3u=!!i.video?.streamId&&!i.video?.transparent,this._vid=e._video,this.autoplay=i.video?.autoplay??!0;let n=!0;this.usVid=this.image.visible.subscribe(t=>{clearTimeout(this.placeTo),this.placeTo=t?setTimeout(()=>{this.isMounted&&(this._vid?(this.hook(),this.autoplay&&!this.paused&&this._vid.play().catch(t=>console.warn("WebGL Embed video play() failed",t))):this.load())},n?0:100):setTimeout(()=>this._vid?.pause(),0),n=!1})}unmount(){this.isMounted=!1,clearTimeout(this.placeTo),clearTimeout(this.vidRepeatTo),this._vid?.pause(),this.unhook(),this.usVid?.()}setPlaying(t){this._vid&&(this.paused=!t,t?this._vid.dataset.playing="1":delete this._vid.dataset.playing,this.wasm.setImageVideoPlaying(this.image.ptr,t),this.embed.hideWhenPaused&&this.wasm.fadeImage(this.image.ptr,t?1:0),t&&this.wasm.render())}load(){if(!this.embed.video||this._vid)return;const t=this.ism3u?`https://videodelivery.net/${this.embed.video.streamId}/manifest/video.m3u8`:this.embed.video.src;t?(this._vid=document.createElement("video"),this._vid.crossOrigin="anonymous",this._vid.playsInline=!0,this._vid.width=this.embed.width,this._vid.height=this.embed.height,this._vid.muted=this.embed.video.muted,this.hook(),this.ism3u&&("MediaSource"in window||"ManagedMediaSource"in window)?tn("https://r2.micr.io/hls-1.6.15.min.js",void 0,"Hls"in window?{}:void 0).then(()=>{this.hlsPlayer=new window.Hls({abrEwmaDefaultEstimate:1e7,abrEwmaDefaultEstimateMax:5e7}),this.hlsPlayer.loadSource(t),this._vid&&this.hlsPlayer.attachMedia(this._vid)}).catch(t=>console.error("[Micrio GL Embed] Failed to load HLS.js:",t)):this._vid.src=t):console.error("[Micrio GL Embed] No video source found for embed:",this.embed.id)}hook(){if(!this.embed.video||!this._vid)return;const t=this.embed.video.loopAfter;this.embed.video.loop&&t?(this._vid.loop=!1,this._vid.onended=()=>{this.setPlaying(!1),this.vidRepeatTo=setTimeout(()=>this._vid?.play().catch(t=>console.warn("WebGL Embed video loop play() failed:",t)),1e3*t)},this._vid.onplay=()=>this.setPlaying(!0)):(this._vid.loop=this.embed.video.loop,this._vid.onended=null,this._vid.onplay=null),this._vid.parentNode||this.autoplay||this.ism3u||(this._vid.setAttribute("style","opacity:0;position:absolute;top:0;left:0;transform-origin:left top;transform:scale(0.1);pointer-events:none;"),document.body.appendChild(this._vid)),this._vid.addEventListener("play",this.events.play),this._vid.addEventListener("pause",this.events.pause),this._vid.addEventListener("playing",this.events.playing,{once:!0}),this._vid.addEventListener(this.events.canplayEvt,this.events.canplay,{once:!0})}unhook(){this._vid&&(this._vid.removeEventListener("play",this.events.play),this._vid.removeEventListener("pause",this.events.pause),this._vid.removeEventListener("playing",this.events.playing),this._vid.removeEventListener(this.events.canplayEvt,this.events.canplay),this._vid.onended=null,this._vid.onplay=null)}},Ac=Wi('<img alt="Embed" data-scroll-through="" class="micrio-embed"/>'),Mc=Wi('<button data-scroll-through="" aria-label="embed-button" class="micrio-embed"></button>');function Ic(t,e){et(e,!0);const i=()=>kt(a,"$current",r),[r,s]=_t(),n=Q("micrio"),{current:a,wasm:o,canvas:c,_lang:l}=n;let h=ys(e,"embed",15);h().src?.startsWith("/r2")&&h(h().src="http://localhost:6100"+h().src,!0);const d=i(),u=d.$info;h().uuid||h(h().uuid=js(),!0);const m=h().uuid,f=d.is360,p=h().video?.autoplay??!0;let g=d.embeds.find(t=>t.uuid==m||t.$info?.title==m);const v=window.matchMedia("(dynamic-range: high)").matches||Js.OSX,b=h().area,y=h().src?.toLowerCase().endsWith(".svg"),k=!(!h().width||!h().height)&&h().width*h().height<Math.pow(1024,2),T=/iPhone OS 14_/i.test(navigator.userAgent),_="data-embeds-inside-gl",x=n.getAttribute(_),E=!(y||T||!v&&!n.hasAttribute(_)&&h().video||"false"==x||(!h().micrioId||k&&h().src)&&(!h().video||h().video.controls||h().video.transparent)),S=!h().clickAction&&!h().frameSrc&&!$i(()=>e.marker),A="href"==h().clickAction?h().clickTarget:void 0,M=A&&h().clickTargetBlank;let I=ne(ue(b[2])),$=ne(ue(b[3])),P=ne(b[0]+b[2]/2),L=ne(b[1]+b[3]/2),C=ne(ue(h().scale||1)),R=ne(ue(h().rotX??0)),D=ne(ue(h().rotY??0)),F=ne(ue(h().rotZ??0)),O=ne(ue(h().scaleX??1)),z=ne(ue(h().scaleY??1)),N=ne(""),V=ne(0);function U(){const t=h().area;oe(I,t[2],!0),oe($,t[3],!0),oe(P,t[0]+Ai(I)/2),oe(L,t[1]+Ai($)/2),oe(C,h().scale||1,!0),oe(R,h().rotX??0,!0),oe(D,h().rotY??0,!0),oe(F,h().rotZ??0,!0),oe(O,h().scaleX??1,!0),oe(z,h().scaleY??1,!0);const e=E&&h().micrioId&&h().width,i=e?10:1;let r=Ai(I)*u.width/(h().width??100)/(E?h().width?Ai(I):1:Ai(C))*(f?Math.PI/2:1);const s=[];e&&h().width&&(r=Ai(I)/(h().width/u.width)*i*(f?Math.PI/2:1),s.push(`width:${h().width/i}px`)),s.push(`--ratio:${Ai(I)/Ai($)*u.width/u.height};--scale:${r}`),y&&oe(N,Ai(N)+`height:${h().height}px`),oe(N,s.join(";"),!0),h().video&&(h().video.width>h().video.height?oe(V,Math.min(h().video.width,Ai(I)*u.width,2048),!0):oe(V,Math.min(h().video.height,Ai($)*u.height,2048)/(h().video.height/h().video.width)))}U();const B=Ht(()=>Math.round(Ai(I)*u.width)),W=Ht(()=>Math.round(Ai($)*u.height));let q,X=ne(!1),Y=ne(0),j=ne(0),G=ne(""),H=ne(!1),Z=ne("");function J(){if(!d.wasm.ready)return;const t=d.camera.getXYDirect(Ai(P),Ai(L));if((t=>{var e=w(t,3);oe(Y,e[0],!0),oe(j,e[1],!0),q=e[2]})(t),f&&(oe(G,d.camera.getMatrix(Ai(P),Ai(L),Ai(C),1,Ai(R),Ai(D),Ai(F),void 0,Ai(O),Ai(z)).join(","),!0),oe(H,t[3]>2)),oe(Z,(f?`transform:matrix3d(${Ai(G)});`:`--x:${Ai(Y)}px;--y:${Ai(j)}px;--s:${q};`)+(void 0!==h().opacity&&1!==h().opacity?`--opacity:${h().opacity};`:"")),(h().video?.pauseWhenSmallerThan||h().video?.pauseWhenLargerThan)&&Ai(B)){const t=Ai(X);oe(X,function(){if(!h().video?.pauseWhenSmallerThan&&!h().video?.pauseWhenLargerThan)return!p;const t=q?Math.max(Ai(B)*q/c.viewport.width,Ai(W)*q/c.viewport.height):0;return!!(h().video.pauseWhenSmallerThan&&t<h().video.pauseWhenSmallerThan||h().video.pauseWhenLargerThan&&t>h().video.pauseWhenLargerThan)}(),!0),Ai(nt)?._vid&&Ai(X)!=t&&(Ai(X)?Ai(nt)._vid.pause():(d?.$settings?.embedRestartWhenShown&&(Ai(nt)._vid.currentTime=0),Ai(nt)._vid.play()))}}function K(){const t="markerId"==h().clickAction?h().clickTarget:e.marker?.id;t&&i()&&!A&&i().state.marker.set(t)}function tt(t){if(t&&"detail"in t){const e=t.detail;for(const t in e)h(h()[t]=e[t],!0)}U(),J()}const rt=vt(!1);h().video&&(h().video.controls||h(h().video.muted=!0,!0));const st=E&&!!h().video;let nt=ne(void 0);const at=!E||!!h().clickAction;let ot=ne(void 0);Oe(()=>{h().video&&h().id&&i()&&i().setEmbedMediaElement(h().id,Ai(ot)??Ai(nt)?._vid)});const ct=Ht(()=>h().video||E?Ai(V):Ai(B)),lt=Ht(()=>h().video?Ai(V)/(h().video.width/h().video.height):Ai(W)),ht=Ht(()=>Ai(B)/Ai(ct));pr(()=>{const t=[];return E&&function(){const t=h().hideWhenPaused?.01:h().opacity??1,e=[h().area[0],h().area[1],h().area[0]+h().area[2],h().area[1]+h().area[3]];g&&g.ptr>=0?(g.camera.setArea(e),g.camera.setRotation(h().rotX,h().rotY,h().rotZ),o.fadeImage(g.ptr,t)):g=d.addEmbed({id:h().video?h().id:h().micrioId,title:m,width:h().width,height:h().height,isPng:h().isPng,isWebP:h().isWebP,isDeepZoom:h().isDeepZoom,path:u.tileBasePath??u.path,isSingle:!!h().video,isVideo:!!h().video,settings:{_360:{rotX:Ai(R),rotY:Ai(D),rotZ:Ai(F)}}},e,{opacity:t,asImage:!1}),st&&en(g.visible,{targetValue:!0}).then(()=>{oe(nt,new Sc(o,g,h(),Ai(X),J),!0)}),o.render()}(),(at||h().video?.pauseWhenSmallerThan||h().video?.pauseWhenLargerThan)&&t.push(d.state.view.subscribe(J)),()=>{for(Ai(nt)?.unmount(),g&&g.ptr>=0&&(o.fadeImage(g.ptr,0),o.render()),h().video&&h().id&&i()&&i().setEmbedMediaElement(h().id);t.length;)t.shift()?.()}});var dt=ji(),ut=xe(dt),mt=t=>{var i=ji();Fr(xe(i),()=>A?"a":"div",!1,(t,i)=>{Or(t,(t,e)=>{return r=e,(i=t).addEventListener("change",r),{destroy:()=>i.removeEventListener("change",r)};var i,r},()=>tt),cs(t,()=>({id:h().id?"e-"+h().id:void 0,style:Ai(Z),role:A?void 0:"figure",onclick:K,onkeypress:K,href:A,target:A&&M?"_blank":null,class:"",[Hr]:{"embed-container":!0,embed3d:f,"no-events":S,behind:f&&Ai(H)}}),void 0,void 0,void 0,"micrio-embed");var s=ji(),n=xe(s),a=t=>{{let e=Ht(()=>h().video.streamId&&!h().video.transparent?"cfvid://"+h().video.streamId:h().video.src),i=Ht(()=>h().video.muted?0:1),r=Ht(()=>!Ai(X)&&h().video.autoplay),s=Ht(()=>h().video.transparent&&h().video.hasH265);Ha(t,{get forcePause(){return Ai(X)},get src(){return Ai(e)},get width(){return Ai(ct)},get height(){return Ai(lt)},get frameScale(){return Ai(ht)},get controls(){return h().video.controls},get destroying(){return rt},get loop(){return h().video.loop},get loopDelay(){return h().video.loopAfter},get volume(){return Ai(i)},get autoplay(){return Ai(r)},get hasTransparentH265(){return Ai(s)},get _media(){return Ai(ot)},set _media(t){oe(ot,t,!0)}})}},o=t=>{Ha(t,{get src(){return h().frameSrc},get width(){return Ai(B)},get height(){return Ai(W)},get frameScale(){return h().scale},get autoplay(){return h().autoplayFrame},get destroying(){return rt}})},c=t=>{var e=Ac();Ue(()=>{as(e,"src",h().src),Yr(e,Ai(N)),as(e,"width",y?h().width:void 0),as(e,"height",y?h().height:void 0)}),Gi(t,e)},d=t=>{var i=Mc();Ue(()=>{Yr(i,Ai(N)),as(i,"title",h().title||e.marker?.i18n?.[kt(l,"$_lang",r)]?.title)}),Gi(t,i)};vr(n,t=>{h().video&&!E?t(a):h().frameSrc?t(o,1):!E&&h().src?t(c,2):t(d,-1)}),Gi(i,s)}),Gi(t,i)};vr(ut,t=>{at&&(Ai(G)||Ai(Y)||Ai(j))&&t(mt)}),Gi(t,dt),it(),s()}var $c=Xi("<line></line>"),Pc=Wi('<article class="micrio-markers"><label> </label></article>'),Lc=Wi('<article class="micrio-markers"><label> </label></article>'),Cc=Wi('<svg class="micrio-markers"></svg> <aside class="micrio-markers"><section class="micrio-markers"></section> <section class="micrio-markers"></section></aside>',1),Rc=Wi("<!> <!>",1),Dc=Wi("<div><!> <!></div>"),Fc=Wi("<!> <!> <!> <!>",1);function Oc(t,e){et(e,!0);const i=()=>kt(m,"$settings",c),r=()=>kt(E,"$inView",c),s=()=>kt(x,"$hoveredId",c),n=()=>kt(g,"$switching",c),a=()=>kt(d,"$data",c),o=()=>kt(v,"$_lang",c),[c,l]=_t();let h=ys(e,"image",15);const{data:d,info:u,settings:m}=h(),f=h().state.marker,p=h().wasm.micrio,{switching:g,_lang:v,state:w}=p,b=p.canvas.isMobile,y=p.canvases[0]?.grid,k=y?.focussed,T=y?.markersShown,_=i().clusterMarkerRadius??16,x=w.markerHoverId,E=vt([]);tt("inView",E);const S=i()._markers??{},A=i().omni,M=!(S.noTitles||A?.sideLabels||!S.showTitles&&5!=h().id.length);let I=!1;function $(t){t?"string"==typeof t||h().openedView||t.noMarker||!t.view||(h(h().openedView=p.state.$tour&&!("steps"in p.state.$tour)?void 0:qs(h().state.$view),!0),I=!!t.videoTour):h().openedView&&!p.state.$tour&&setTimeout(()=>{Ai(H)||h().camera.aniDone||!h().openedView||h().camera.flyToView((t=>{const e=Math.min(1,t[2]),i=Math.min(1,t[3]),r=e/2,s=i/2;return[Math.max(r,Math.min(1-r,t[0]+t[2]/2))-r,Math.max(s,Math.min(1-s,t[1]+t[3]/2))-s,e,i]})(h().openedView),{speed:i()._markers?.zoomOutAfterCloseSpeed}).catch(()=>{}),h(h().openedView=void 0,!0),I=!1},I?250:10)}let P=!1;w.tour.subscribe(t=>{t&&"steps"in t?(P=!0,t.keepLastStep&&h(h().openedView=void 0,!0)):(t||h().openedView||!P||h().camera.stop(),P=!1)});const L=[];let C=ne(""),R=ne(!1),D=ne(!1);const F=t=>(t=t?.map(t=>Math.round(100*t)/100))&&oe(C,[...L,t[0]?`left: ${t[0]}px`:null,t[1]?`top: ${t[1]}px`:null,`width: ${t[2]}px`,`height: ${t[3]}px`].filter(t=>!!t).join(";")+";");let O=ne(ue([])),z=_,N=ne(ue([]));const V=new Map,U=()=>{const t=function(t,e,i,r){if(!t)return{overlapped:[],clusterMarkers:[]};const s=t,n=[],a=s.length,o=[];for(let c=0;c<a;c++)for(let t=c+1;t<a;t++){if(s[t].tags?.includes("no-cluster"))continue;const r=e.get(s[c].id),a=e.get(s[t].id);if(r&&a&&_n(r,a,i)){o.push(c,t);const e=n.find(e=>e.findIndex(e=>e==c||e==t)>-1);e?e.push(c,t):n.push([c,t])}}return{overlapped:o,clusterMarkers:n.map(t=>t.filter((e,i)=>t.indexOf(e)===i)).map(t=>{let e,i,n,a,o,c;if(r){o=t.reduce((t,e)=>t+s[e].x,0)/t.length,c=t.reduce((t,e)=>t+s[e].y,0)/t.length;const r=.3;e=Math.max(0,o-r/2),n=Math.max(0,c-r/2),i=Math.min(1,o+r/2),a=Math.min(1,c+r/2)}else e=Math.min(...t.map(t=>s[t].view?s[t].view[0]:s[t].x)),i=Math.max(...t.map(t=>s[t].view?s[t].view[0]+s[t].view[2]:s[t].x)),n=Math.min(...t.map(t=>s[t].view?s[t].view[1]:s[t].y)),a=Math.max(...t.map(t=>s[t].view?s[t].view[1]+s[t].view[3]:s[t].y)),o=(e+i)/2,c=(n+a)/2;const l=r?t.reduce((t,e)=>t+(s[e].rotation??0),0)/t.length:void 0,h=r?t.reduce((t,e)=>t+(s[e].radius??1),0)/t.length:void 0;return{title:t.length+"",type:"cluster",view:[e,n,Math.max(.1,i-e),Math.max(.1,a-n)],x:o,y:c,rotation:l,radius:h,id:t.sort((t,e)=>t-e).join(","),data:{},popupType:"none",tags:[]}})}}(Ai(J),V,z,h().isOmni);oe(O,t.overlapped,!0),oe(N,t.clusterMarkers,!0)},B=[];pr(()=>{const t=[];return en(u).then(e=>{if(!e)return;oe(R,!!e.is360);const r=i()._markers;if(!r)return;const s=parseFloat(e.version)>=4.2;r.markerIcon&&L.push(`--micrio-marker-icon: url("${r.markerIcon}")`),r.markerColor&&r.markerColor!=(s?"#ffffff":"#ffbb00")&&L.push("--micrio-marker-color: "+r.markerColor),r.markerSize&&r.markerSize!=(s?"16":"25")&&L.push("--micrio-marker-size: "+(z=Number(r.markerSize))+"px"),t.push(h().viewport.subscribe(F)),i().clusterMarkers&&(t.push(h().state.view.subscribe(U)),t.push(h().data.subscribe(()=>Si().then(U)))),!h().grid&&i()._markers?.zoomOutAfterClose&&t.push(h().state.marker.subscribe($)),h().isOmni&&i().omni?.sideLabels&&!i()._markers?.noTitles&&t.push(b.subscribe(t=>{t&&Ai(D)?function(){for(;B.length;)B.shift()?.()}():t||Ai(D)||(B.push(h().state.view.subscribe(j)),B.push(x.subscribe(j)),B.push(f.subscribe(j))),oe(D,!t)}))}),()=>{for(;t.length;)t.shift()?.()}});const W=t=>!t.noMarker;let X=ne(void 0),Y=ne(ue([]));function j(){Si().then(()=>{if(!Ai(X))return;const t=p.canvas,e=t.element.offsetWidth,i=[];r().forEach(([r,n,a])=>{const o=Ai(X).querySelector('label[for="'+r.id+'"]')?.getBoundingClientRect();o?.width&&o.width>0&&i.push([n*e,a,(n>=.5?o.left:o.right)-t.viewport.left,o.top+o.height/2-t.viewport.top,s()==r.id])}),oe(Y,i,!0)})}const G=(t,e)=>t.i18n?t.i18n[e]?.title:t.title,H=Ht(()=>y&&kt(k,"$focussed",c)!=h()&&T&&wt(T).indexOf(h())<0),Z=Ht(()=>!n()&&p.spaceData?p.spaceData.links.filter(t=>t[0]==h().id||t[1]==h().id).map(t=>({targetId:t[0]==h().id?t[1]:t[0],settings:t[2]?.[h().id]})):void 0),J=Ht(()=>Ai(H)?[]:a()?.markers?.filter(W)),K=Ht(()=>Ai(H)?a()?.markers:a()?.markers?.filter(t=>!W(t))),Q=Ht(()=>Ai(H)?[]:a()?.markers?.filter(t=>t.clickableArea)),rt=Ht(()=>!(!Ai(J)?.length&&!Ai(Z)?.length)),st=Ht(()=>[...r()].sort(([,,t],[,,e])=>t>e?1:t<e?-1:0));var nt=Fc(),at=xe(nt),ot=t=>{var e=Cc(),i=xe(e);yr(i,21,()=>Ai(Y),wr,(t,e)=>{var i=$c();let r;Ue(()=>{as(i,"x1",Ai(e)[0]),as(i,"y1",Ai(e)[1]),as(i,"x2",Ai(e)[2]),as(i,"y2",Ai(e)[3]),r=qr(i,0,"micrio-markers",null,r,{hovered:Ai(e)[4]})}),Gi(t,i)}),q(i);var r=Ee(i,2),n=_e(r);yr(n,21,()=>Ai(st).filter(([,t])=>t<.5),t=>t[0].id,(t,e)=>{var i=Pc(),r=_e(i);let n;var a=_e(r,!0);q(r),q(i),Ue(t=>{as(r,"for",Ai(e)[0].id),n=qr(r,1,"micrio-markers",null,n,{hover:s()==Ai(e)[0].id}),nr(a,t)},[()=>G(Ai(e)[0],o())]),Fi("mouseenter",r,()=>x.set(Ai(e)[0].id)),Fi("mouseleave",r,()=>x.set(void 0)),Gi(t,i)}),q(n);var a=Ee(n,2);yr(a,21,()=>Ai(st).filter(([,t])=>t>=.5),t=>t[0].id,(t,e)=>{var i=Lc(),r=_e(i);let n;var a=_e(r,!0);q(r),q(i),Ue(t=>{as(r,"for",Ai(e)[0].id),n=qr(r,1,"micrio-markers",null,n,{hover:s()==Ai(e)[0].id}),nr(a,t)},[()=>G(Ai(e)[0],o())]),Fi("mouseenter",r,()=>x.set(Ai(e)[0].id)),Fi("mouseleave",r,()=>x.set(void 0)),Gi(t,i)}),q(a),q(r),gs(r,t=>oe(X,t),()=>Ai(X)),Gi(t,e)};vr(at,t=>{Ai(D)&&Ai(st).length&&!kt(f,"$currentMarker",c)&&t(ot)});var ct=Ee(at,2),lt=t=>{var e=ji();yr(xe(e),17,()=>Ai(Q),t=>t.id,(t,e)=>{var i=ji(),r=xe(i),s=t=>{Ic(t,{get embed(){return Ai(e).clickableArea},get marker(){return Ai(e)}})};vr(r,t=>{Ai(e).clickableArea&&t(s)}),Gi(t,i)}),Gi(t,e)};vr(ct,t=>{Ai(Q)&&t(lt)});var ht=Ee(ct,2),dt=t=>{var e=Dc();let i;var r=_e(e),s=t=>{var e=ji();yr(xe(e),17,()=>Ai(Z),t=>t.targetId,(t,e)=>{uc(t,bs({get image(){return h()}},()=>Ai(e)))}),Gi(t,e)};vr(r,t=>{Ai(Z)&&Ai(Z).length&&t(s)});var a=Ee(r,2),o=t=>{var e=Rc(),i=xe(e);yr(i,19,()=>Ai(J),t=>t.id,(t,e,i)=>{{let r=Ht(()=>Ai(O).includes(Ai(i)));hc(t,{get marker(){return Ai(e)},get image(){return h()},get coords(){return V},get overlapped(){return Ai(r)}})}}),yr(Ee(i,2),17,()=>Ai(N),t=>t.id,(t,e)=>{hc(t,{get marker(){return Ai(e)},get image(){return h()}})}),Gi(t,e)};vr(a,t=>{Ai(J)&&t(o)}),q(e),Ue(()=>{Yr(e,Ai(rt)?Ai(C):null),i=qr(e,1,"micrio-markers",null,i,{"show-titles":M,is360:Ai(R),inactive:Ai(H)||Ai(R)&&n()})}),Gi(t,e)};vr(ht,t=>{Ai(rt)&&t(dt)});var ut=Ee(ht,2),mt=t=>{var e=ji();yr(xe(e),17,()=>Ai(K),t=>t.id,(t,e)=>{hc(t,{get marker(){return Ai(e)},get image(){return h()},forceHidden:!0})}),Gi(t,e)};vr(ut,t=>{Ai(K)&&t(mt)}),Gi(t,nt),it(),l()}var zc=Xi('<svg width="100" height="100" class="micrio-progress-circle"><circle fill="transparent" stroke="#e0e0e0" stroke-width="8px" class="micrio-progress-circle"></circle><circle fill="transparent" stroke="#00d4ee" stroke-width="8px" class="micrio-progress-circle"></circle></svg>');var Nc=Wi("<!> <!> <!>",1),Vc=Wi("<!> <!> <!>",1),Uc=Wi("<!> <!>",1),Bc=Wi("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1);var Wc=!self.createImageBitmap,qc=URL.createObjectURL(new Blob(["let controller = null, prevUri = null;\nself.addEventListener('message', e => {\n\t// Handle abort message\n\tif(e.data == 'abort') return controller && controller.abort();\n\t// Create new AbortController for this fetch\n\tcontroller = new AbortController();\n\t// Fetch the image blob\n\tfetch(e.data.src, { signal: controller.signal })\n\t\t.then(r => r.blob())"+(Wc?"\n\t\t// Fallback for older Safari: create Object URL\n\t\t.then(blob => {\n\t\t\t// Revoke previous Object URL to free memory\n\t\t\tURL.revokeObjectURL(prevUri);\n\t\t\t// Post Object URL back\n\t\t\tself.postMessage({src: (prevUri = URL.createObjectURL(blob, {type: e.data.type}))})\n\t\t})":"\n\t\t// If createImageBitmap is supported, use it (preferred)\n\t\t.then(blob => self.createImageBitmap(blob))\n\t\t// Post ImageBitmap back, transferring ownership\n\t\t.then(data => self.postMessage({data:data, src:e.data.src}, [data]))")+"\n\t\t// Handle fetch errors (including abort)\n\t\t.catch(err => self.postMessage({error: e.data.src+': '+err.message, type: err.name}))\n})"],{type:"text/javascript"})),Xc=Math.max(2,Math.min(6,(navigator.hardwareConcurrency||2)-1)),Yc=[],jc=new Map,Gc=new Map,Hc=[],Zc=new Map;for(let Rl=0;Rl<Xc;Rl++){const t=new Worker(qc);t.onmessage=t=>Kc(Rl,t.data.src,t.data.data,t.data.error,t.data.type),jc.set(Rl,t),Wc&&Gc.set(Rl,new Image)}var Jc=t=>new Promise((e,i)=>{Hc.push([t,e,i]),function(){if(!Hc.length)return;let t=0;for(;t<Xc&&Yc.includes(t);t++);if(t>=Xc)return;Yc.push(t);const e=Hc.shift();if(!e)return void Yc.splice(Yc.indexOf(t),1);Zc.set(t,e);const i=jc.get(t);if(!i)return console.error(`[Micrio Texture] Worker ${t} not found!`),e[2]("Internal error: Worker not found"),void Yc.splice(Yc.indexOf(t),1);i.postMessage({src:e[0],type:"image/"+e[0].split(".").pop()})}()});function Kc(t,e,i,r,s){const n=Zc.get(t);if(null!=n)if(Zc.delete(t),setTimeout(()=>{Yc.splice(Yc.indexOf(t),1)},50),r)n[2](r),"AbortError"!=s&&console.error(`[Micrio Texture] Error loading ${n[0]}: ${s} - ${r}`);else if(i)n[1](i);else if(e&&Wc){const i=Gc.get(t);if(!i)return void n[2]("Internal error: Image element fallback not found");i.onload=()=>{n[1](i)},i.onerror=()=>{n[2](`Failed to load image from Object URL: ${e}`)},i.src=e}else n[2](`Worker ${t} sent invalid message.`),console.error(`[Micrio Texture] Worker ${t} sent invalid message for ${n[0]}`);else console.warn(`[Micrio Texture] Received message from worker ${t} but no matching promise found.`)}function Qc(){return Yc.length}function tl(t){const e=[...Zc.entries()].find(e=>e[1][0]==t);if(null==e)return;const i=jc.get(e[0]);i&&i.postMessage("abort")}var el=document.currentScript?.getAttribute("src")?.toString(),il=el?.includes(".safe-wasm.js")?el.replace(".safe-wasm.js",".wasm"):"/build/optimized.wasm",rl=vc.ugz?vc.ugz(vc.b64,!0):fetch(il).then(t=>t.arrayBuffer()),sl=class t{static{this._textureBuffer=t.getTextureBuffer(1,1)}setVisibleCb(t,e){this.ptrToImage.get(t)?.visible.set(1===e)}static getTextureBuffer(t,e){const i=new Float32Array(12*t*e),r=1/t,s=1/e;for(let n=0,a=0;a<e;a++)for(let e=0;e<t;e++,n+=12)i[n+3]=i[n+7]=i[n+9]=(i[n+1]=i[n+5]=i[n+11]=a*s)+s,i[n+4]=i[n+8]=i[n+10]=(i[n+0]=i[n+2]=i[n+6]=e*r)+r;return i}constructor(t){this.micrio=t,this.ready=!1,this.memory=new self.WebAssembly.Memory({initial:100,maximum:100}),this.b=this.memory.buffer,this.i=-1,this.c=-1,this.now=-1,this.raf=-1,this.drawing=!1,this.images=[],this.bareBone=!1,this.baseTiles=[],this.drawnSet=new Set,this.prevDrawnSet=new Set,this.tiles=new Map,this.requests=new Map,this.unsubscribe=[],this.cameras=new Map,this.ptrToImage=new Map,this.preventDirectionSet=!1,this._pMatrices=new Map,this.isGallery=!1,this.imports={env:{memory:this.memory,abort:console.error},main:{"console.log":console.log,"console.log2":console.log,"console.log3":console.log,"console.log4":console.log,drawTile:this.drawTile.bind(this),drawQuad:t=>this.micrio.webgl.drawTile(void 0,t),aniAbort:t=>{const e=this.cameras.get(t);e&&(e.aniAbort&&e.aniAbort(),e.aniDoneAdd.length=0,e.aniAbort=e.aniDone=void 0)},aniDone:t=>{const e=this.cameras.get(t);if(e){for(e.aniDone&&e.aniDone();e.aniDoneAdd.length;)e.aniDoneAdd.shift()?.();e.aniAbort=e.aniDone=void 0}},getTileOpacity:t=>this.tiles.get(t)?.opacity||0,setTileOpacity:(t,e=!1,i=1)=>{const r=this.tiles.get(t);return r?(r.opacity<1&&(r.opacity=e?1:r.loadedAt&&r.loadedAt>0?Math.min(1,(this.now-r.loadedAt)/250)*i:0),r.opacity):0},setMatrix:t=>this.micrio.webgl.gl.uniformMatrix4fv(this.micrio.webgl.pmLoc,!1,this._pMatrices.get(t)),setViewport:(t,e,i,r)=>this.micrio.webgl.gl.viewport(Math.floor(t),Math.floor(e),Math.ceil(i),Math.ceil(r)),viewSet:t=>this.cameras.get(t)?.viewChanged(),viewportSet:(t,e,i,r,s)=>{const n=this.ptrToImage.get(t);n&&"camera"in n&&n.viewport.set([e,i,r,s])},setVisible:this.setVisibleCb.bind(this),setVisible2:this.setVisibleCb.bind(this)}},this.addImage=async(t,e,i=!1,r=1)=>en(t.info).then(s=>{if(!s)return;this.images.push(t);const n=t.opts.area??[0,0,1,1],a=t.$settings._360??{};if(t.ptr=i?this.e._addImage(e.ptr,n[0],n[1],n[2],n[3],s.width,s.height,s.tileSize||1024,s.isSingle??!1,s.isVideo??!1,r,a.rotX??0,a.rotY??0,a.rotZ??0,a.scale??1,0):this.e._addChild(e.ptr,n[0],n[1],n[2],n[3],s.width,s.height),this.ptrToImage.set(t.ptr,t),!i){this.bindCamera(t),t.$settings.focus&&this.e._setCoo(t.ptr,t.$settings.focus[0],t.$settings.focus[1],0,0,performance.now());const e=this.e._getPMatrix(t.ptr);this._pMatrices.set(e,new Float32Array(this.b,e+32,16));const i=t.$info.view;i&&"0,0,1,1"!=i.toString()&&this.e._setView(t.ptr,i[0],i[1],i[2],i[3]),this.e._sendViewport(t.ptr)}t.baseTileIdx=this.e.getNumTiles(this.i)-1,this.getTileEntry(t.baseTileIdx).opacity=1,this.baseTiles.push(t.baseTileIdx)}),this.addChild=(t,e)=>this.addImage(t,e),this.deleteAfterSeconds=Js.iOS?5:wt(this.micrio.canvas.isMobile)?30:90,this.render=this.render.bind(this),this.draw=this.draw.bind(this),this.unsubscribe.push(t.current.subscribe(this.setCanvas.bind(this)))}async load(){if(this.i>=0)return;this.i=0;const e=await rl;if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new Bs("Invalid WebAssembly binary data",{code:Fs,displayMessage:"Failed to load the image viewer engine. Please try refreshing the page."});this.e=(await self.WebAssembly.instantiate(e,this.imports)).instance.exports,this.i=this.e.constructor(),t.segsX=this.e.segsX.value,t.segsY=this.e.segsY.value,t._textureBuffer360=t.getTextureBuffer(t.segsX,t.segsY),this._vertexBuffer=new Float32Array(this.b,this.e.getVertexBuffer(this.i)+32,18),this._vertexBuffer360=new Float32Array(this.b,this.e.getVertexBuffer360(this.i)+32,18*t.segsX*t.segsY),this.unsubscribe.push(this.micrio.barebone.subscribe(t=>this.e.setBareBone(this.i,this.bareBone=t)))}unbind(){for(this.stop();this.unsubscribe.length;)this.unsubscribe.shift()?.();this.requests.forEach(t=>tl(t)),this.requests.clear();for(const[t,e]of this.tiles.entries())e.timeoutId&&clearTimeout(e.timeoutId),this.deleteTile(t);this.tiles.clear(),this.i>0&&this.e.reset(this.i)}getPtr(){return this.i}addCanvas(t){const e=t.$info;if(!e)return;if(t.error)return void this.micrio.loading.set(!1);if(!(t.noImage||e.width&&e.height))throw"Invalid Micrio image size";const i=t.$settings;this.isGallery=!!e.gallery||t.isOmni,i.gallery?.archive&&this.e.setHasArchive(this.i,!0,i.gallery.archiveLayerOffset??0),e.version&&parseFloat(e.version)<=3.1&&this.e.setNoUnderzoom(this.i,!0),e.is360&&(i.limitToCoverScale=!1);const r=!!i.limitToCoverScale,s=r||"cover"==i.initType;t.noImage&&this.micrio.loading.set(!1);const n=[.5,.5],a=i.focus,o=!!e.spacesId;a&&(isNaN(a[0])||null===a[0]||(n[0]=a[0]),isNaN(a[1])||null===a[1]||(n[1]=a[1]));const c=i._360?.video,l=e.is360&&c&&(c.src||"video"in c&&c.video),h=!!this.isGallery&&("switch"==i.gallery?.type||"omni"==i.gallery?.type||"swipe-full"==i.gallery?.type),d=i.omni?.layers?.length??1;i.omni&&(i.omni.layerStartIndex=Math.min(d-1,i.omni?.layerStartIndex??0)),t.ptr=this.e._constructor(this.i,e.width,e.height,e.tileSize??1024,e.is360??!1,t.noImage,!(!e.isSingle&&!l),t.opacity,i.freeMove??!1,r,s,i.zoomLimit||1,!1!==i.zoomLimitDPRFix?this.micrio.canvas.getRatio(t.$settings):1,i.camspeed??1,t.camera.rotationY,h,!!i.gallery?.isSpreads&&"swipe"==i.gallery.type,t.isOmni,i.pinchZoomOutLimit??!1,d,i.omni?.layerStartIndex??0),this.bindCamera(t),t.opts.area&&t.camera.setArea(t.opts.area,{direct:!0,noDispatch:!0,noRender:!0}),i?.restrict&&t.camera.setLimit(i.restrict),i?.crossfadeDuration&&this.setCrossfadeDuration(i.crossfadeDuration),i?.embedFadeDuration&&this.e.setEmbedFadeDuration(this.i,i.embedFadeDuration),void 0!==i?.dragElasticity&&this.e.setDragElasticity(this.i,i.dragElasticity),i?.skipBaseLevels&&this.e.setSkipBaseLevels(this.i,i.skipBaseLevels),i?.omni&&t.camera.setOmniSettings(),this.micrio.hasAttribute("data-limited")&&this.setLimited(t.ptr,!0),this.images.push(t),this.ptrToImage.set(t.ptr,t),this.e._sendViewport(t.ptr);const u=this.e.getNumTiles(this.i);if(u>0){const t=u-1;this.getTileEntry(t).opacity=1,this.baseTiles.push(t)}const m=this.e._getPMatrix(t.ptr);this._pMatrices.set(m,new Float32Array(this.b,m+32,16));const f=wt(t.state.view)||i.view;!f||0==f[0]&&0==f[1]&&1==f[2]&&1==f[3]?!o&&e.is360||!n||"0.5,0.5"==n.toString()||(this.e._setCoo(t.ptr,n[0],n[1],0,0,performance.now()),i.focus=void 0):this.e._setView(t.ptr,f[0]+f[2]/2,f[1]+f[3]/2,f[2],f[3],!1,!1,!1),t.video.subscribe(t=>t&&t.addEventListener("play",this.render)),t.noImage&&t.visible.set(!0),this.setCanvas(t)}bindCamera(t){this.cameras.set(t.ptr,t.camera),t.camera.assign(new Float64Array(this.b,this.e._getView(t.ptr)+32,4),new Float64Array(this.b,this.e._getXY(t.ptr,0,0)+32,5),new Float64Array(this.b,this.e._getCoo(t.ptr,0,0)+32,5),new Float32Array(this.b,this.e._getMatrix(t.ptr)+32,16))}setCanvas(t){if(t&&!(t.ptr>0&&t.ptr==this.c))if(t.ptr<0)en(t.info).then(e=>{e&&this.micrio.$current&&(e.isIIIF||t.opts.secondaryTo||e.id==this.micrio.$current.id)&&(this.addCanvas(t),t.embeds.length&&t.embeds.forEach(e=>this.addEmbed(e,t)))});else if(this.c!=t.ptr){const e=t.is360&&this.c>=0?this.e._getYaw(this.c,!0):0,i=t.is360&&this.c>=0?this.e._getPitch(this.c):0;this.c=t.ptr,t.is360&&!this.preventDirectionSet&&e&&i&&this.e._setDirection(this.c,e-t.camera.rotationY,i,!0),0==this.e._getTargetOpacity(t.ptr)&&this.e._fadeIn(t.ptr),t.$settings.omni?.layerStartIndex&&t.state.layer.set(t.$settings.omni.layerStartIndex),this.preventDirectionSet=!1,this.ready=!0,this.render()}}removeCanvas(t){if(t.ptr<0)throw"Canvas is not placed yet";this.e._remove(t.ptr),this.render()}render(){this.raf<0&&(this.raf=this.micrio.webgl.display.requestAnimationFrame(this.draw))}draw(t=performance.now()){this.micrio.isConnected&&this.micrio.$current&&(this.raf=-1,this.drawing=!1,this.now=t,(1==this.e.shouldDraw(this.i,t)||this.micrio.keepRendering||this.micrio.events.isNavigating||!1===this.micrio._current?._video?.paused)&&this.render(),this.isGallery&&this.drawStart(),this.drawnSet.clear(),this.e.draw(this.i),this.micrio.events.dispatch("draw"),this.cleanup(),this.micrio.webgl.drawEnd())}stop(){this.raf<0||(this.micrio.webgl.display.cancelAnimationFrame(this.raf),this.raf=-1)}getTileEntry(t){let e=this.tiles.get(t);return e||(e={loadState:0,opacity:0},this.tiles.set(t,e)),e}drawTile(t,e,i,r,s,n,a,o){this.drawnSet.add(e);const c=this.getTileEntry(e);c.deleteAt=void 0;const l=Qc(),h=this.images[t],d="camera"in h&&h.isVideo,u="camera"in h&&h.is360,m="camera"in h?h:h.image,f="frame"in h?h.frame:void 0;if(0===c.loadState&&l<Xc){if(this.bareBone?l>2&&a:o&&a&&l>0)return!1;if(d&&!u)c.loadState=2,c.texture=this.micrio.webgl.getTexture();else{c.loadState=1;const t=m.getTileSrc(i,r,s,f);if(!t)return c.loadState=0,!1;this.getTexture(e,t,a,{noSmoothing:"$info"in h&&h.$settings.noSmoothing})}}else if(c.loadState>=2){if(this.drawing||this.drawStart(),c.texture){if(d){if(!m._video||!m._video.dataset.playing)return!1;this.micrio.webgl.updateTexture(c.texture,m._video)}this.micrio.webgl.drawTile(c.texture,n,u)}return 2===c.loadState&&(c.loadState=3,c.loadedAt=this.now),!0}return!1}drawStart(){this.drawing||(this.micrio.webgl.drawStart(),this.drawing=!0)}getTexture(t,e,i,r={}){if(this.tiles.get(t)?.texture||this.requests.has(t)||!r.force&&Qc()>=Xc)return;const s=_c.db.has(e);s||this.micrio.loading.set(!0),this.requests.set(t,e),(s?_c.getImage(e):Jc(e)).then(e=>this.gotTexture(t,e,i,r.noSmoothing)).catch(()=>this.deleteRequest(t))}gotTexture(t,e,i,r){const s=this.getTileEntry(t);s.texture=this.micrio.webgl.getTexture(e,s.texture,r),null!=self.ImageBitmap&&e instanceof ImageBitmap&&e.close instanceof Function&&e.close(),s.loadState=2,s.timeoutId=setTimeout(()=>{this.deleteRequest(t)},i?150:50)}deleteRequest(t){this.requests.delete(t);const e=this.tiles.get(t);e?.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=void 0),this.requests.size||this.micrio.loading.set(!1)}deleteTile(t){const e=this.tiles.get(t);e&&(e.texture&&this.micrio.webgl.gl.deleteTexture(e.texture),e.timeoutId&&clearTimeout(e.timeoutId),this.tiles.delete(t))}cleanup(){const t=performance.now();for(const e of this.prevDrawnSet){if(this.drawnSet.has(e))continue;if(this.baseTiles.includes(e))continue;const i=this.tiles.get(e);if(i&&0!==i.loadState)switch(i.opacity=0,i.loadState){case 1:const r=this.requests.get(e);r&&tl(r),i.loadState=0;break;case 2:this.requests.has(e)&&this.deleteRequest(e),this.deleteTile(e);break;case 3:i.deleteAt||(i.deleteAt=t)}}this.prevDrawnSet=new Set(this.drawnSet);for(const[e,i]of this.tiles.entries())i.deleteAt&&(t-i.deleteAt)/1e3>this.deleteAfterSeconds&&this.deleteTile(e)}resize(t){this.e.resize(this.i,t.width,t.height,t.left,t.top,t.ratio,t.scale,t.portrait),this.ready&&(this.stop(),this.draw())}addEmbed(t,e,i={}){if("camera"in t&&i.asImage)return this.addImage(t,e,!0,i.opacity??1);{const r="$info"in t?t.$info:e.$info;if(!r)return;this.images.push(t);const s=t.opts.area??[0,0,1,1],n=t instanceof Ec?t.$settings._360??{}:{};t.ptr=this.e._addImage(e.ptr,s[0],s[1],s[2],s[3],r.width,r.height,r.tileSize||1024,r.isSingle??!1,r.isVideo??!1,i.opacity??1,n.rotX??0,n.rotY??0,n.rotZ??0,n.scale??1,i.fromScale??0),this.ptrToImage.set(t.ptr,t),t.baseTileIdx=this.e.getNumTiles(this.i)-1,this.getTileEntry(t.baseTileIdx).opacity=1,this.baseTiles.push(t.baseTileIdx)}}setActiveImage(t,e,i){this.e._setActiveImage(t,e,i??0)}setActiveLayer(t,e){this.e._setActiveLayer(t,e)}fadeImage(t,e,i=!1){this.cameras.has(t)?this.e._fadeTo(t,e,i):this.e._fadeImage(t,e,i),this.render()}setFocus(t,e,i=!1){this.e._setFocus(t,e[0],e[1],e[2],e[3],i)}setZIndex(t,e){this.e._setZIndex(t,e)}setGridTransitionDuration(t){this.e.setGridTransitionDuration(this.i,t)}setGridTransitionTimingFunction(t){this.e.setGridTransitionTimingFunction(this.i,t)}setCrossfadeDuration(t){this.e.setCrossfadeDuration(this.i,t)}fadeTo(t,e,i){this.e._fadeTo(t,e,i)}fadeIn(t){this.e._fadeIn(t)}fadeOut(t){this.e._fadeOut(t)}areaAnimating(t){return!!this.e._areaAnimating(t)}getActiveImageIdx(t){return this.e._getActiveImageIdx(t)}setNoPinchPan(t){this.e.setNoPinchPan(this.i,t)}setIsSwipe(t){this.e.setIsSwipe(this.i,t)}ease(t){return this.e.ease(t)}panStart(t){this.e._panStart(t)}panStop(t){this.e._panStop(t)}pinchStart(t){this.e._pinchStart(t)}pinch(t,e,i,r,s){this.e._pinch(t,e,i,r,s)}pinchStop(t,e){this.e._pinchStop(t,e)}setLimited(t,e){this.e._setLimited(t,e)}set360Orientation(t,e,i){this.e.set360Orientation(this.i,t,e,i)}setCanvasArea(t,e){this.e.setArea(this.i,t,e)}setImageVideoPlaying(t,e){this.e._setImageVideoPlaying(t,e)}setImageRotation(t,e,i,r){this.e._setImageRotation(t,e,i,r)}setOmniSettings(t,e,i,r,s){this.e._setOmniSettings(t,e,i,r,s)}},nl=new Float32Array([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),al=class{constructor(t,e,i){if(this.gl=t,this.program=t.createProgram(),e.webgl.getShader(this.program,t.VERTEX_SHADER,"\nattribute vec2 a_position; // Vertex position (-1 to 1)\nattribute vec2 a_texCoord; // Texture coordinate (0 to 1)\n\nvarying vec2 v_texCoord; // Pass texCoord to fragment shader\n\nvoid main() {\n\tv_texCoord = a_texCoord; // Pass through texture coordinate\n\tgl_Position = vec4(a_position, 0.0, 1.0); // Set clip space position\n}"),e.webgl.getShader(this.program,t.FRAGMENT_SHADER,i),t.linkProgram(this.program),t.getProgramParameter(this.program,t.LINK_STATUS)||console.error("Postprocess shader link error:",t.getProgramInfoLog(this.program)),t.useProgram(this.program),this.ppPositionLoc=t.getAttribLocation(this.program,"a_position"),this.ppTexCoordLoc=t.getAttribLocation(this.program,"a_texCoord"),this.ppTimeLoc=t.getUniformLocation(this.program,"u_time"),this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),this.frameBuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture,0),t.checkFramebufferStatus(t.FRAMEBUFFER)!==t.FRAMEBUFFER_COMPLETE)throw new Error("Framebuffer not complete");t.bindFramebuffer(t.FRAMEBUFFER,null),this.quad=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.bufferData(t.ARRAY_BUFFER,nl,t.STATIC_DRAW)}render(){const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,null),t.useProgram(this.program),t.bindBuffer(t.ARRAY_BUFFER,this.quad),t.enableVertexAttribArray(this.ppPositionLoc),t.vertexAttribPointer(this.ppPositionLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,0),t.enableVertexAttribArray(this.ppTexCoordLoc),t.vertexAttribPointer(this.ppTexCoordLoc,2,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,2*Float32Array.BYTES_PER_ELEMENT),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.texture),t.uniform1f(this.ppTimeLoc,performance.now()/1e3),t.drawArrays(t.TRIANGLE_STRIP,0,4)}resize(){const t=this.gl;t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight,0,t.RGBA,t.UNSIGNED_BYTE,null),t.bindTexture(t.TEXTURE_2D,null)}dispose(){const t=this.gl;t.deleteFramebuffer(this.frameBuffer),t.deleteTexture(this.texture),t.deleteBuffer(this.quad),t.deleteProgram(this.program)}},ol=Js.firefox,cl=`\nprecision mediump float; // Use medium precision for fragment calculations\n\nvarying highp vec2 vTextureCoord; // Received texture coordinate from vertex shader\n\nuniform sampler2D uSampler; // The tile texture\nuniform float opacity; // Tile opacity (for fading)\nuniform int noTexture; // Flag indicating if texture is missing/not loaded\n\nvoid main() {\n\tif(noTexture==1) { // If texture is missing\n\t\tgl_FragColor = vec4(.1,.1,.1,.1); // Draw a placeholder color (dark semi-transparent gray)\n\t} else {\n\t${ol?"\n\t\t// Firefox premultiplied alpha workaround\n\t\tvec4 textureColor = texture2D(uSampler, vTextureCoord);\n\t\t// Manually apply opacity to RGB based on new alpha\n\t\tfloat newAlpha = min(1., textureColor.a * opacity);\n\t\tgl_FragColor = vec4(textureColor.rgb * newAlpha, newAlpha);":"\n\t\t// Standard alpha blending (premultiplied alpha assumed in blendFunc)\n\t\tgl_FragColor = texture2D(uSampler, vTextureCoord) * opacity;"}\n\t\t// Debug: Draw red instead of texture\n\t\t//gl_FragColor = vec4(1.,0.,0.,1.);\n\t}\n}`,ll=256,hl=class{constructor(t){this.micrio=t,this.display=self,this.txtAttr=-1,this.wmTexture=null,this.wmUrl=null,this.wmVerts=new Float32Array([-1,-1,0,1,-1,0,-1,1,0,-1,1,0,1,-1,0,1,1,0]),this.wmUvs=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0]),this.wmMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.wmOpacity=.075,this.posAttr=-1,this.was360=!1}init(){const t="WebGL2RenderingContext"in window,e=this.micrio.canvas.element.getContext(t?"webgl2":"webgl",{alpha:!0,preserveDrawingBuffer:this.micrio.hasAttribute("data-preserve-drawing-buffer"),stencil:!1,antialias:!1,depth:!1,desynchronized:!1});if(t?!(e instanceof window.WebGL2RenderingContext):!(e instanceof window.WebGLRenderingContext))throw new Bs("WebGL context creation failed",{code:Ms,displayMessage:"Your browser does not support WebGL, which is required to view this content. Please try a different browser."});this.gl=e;const i=this.micrio.$current?.$settings.postProcessingFragmentShader;i&&(this.postpocessor=new al(e,this.micrio,i),this.micrio.keepRendering=!0);const r=e.createProgram();if(!(r instanceof WebGLProgram))throw new Bs("Failed to create WebGL program",{code:$s,displayMessage:"There was a problem initializing the graphics. Please try refreshing the page."});this.program=r,this.getShader(this.program,e.VERTEX_SHADER,"\nuniform mat4 GLMatrix; // Combined ModelViewProjection matrix from Wasm\n\nattribute vec3 pos; // Vertex position (from Wasm buffer)\nattribute vec2 aTextureCoord; // Texture coordinate (from static buffer)\n\nvarying highp vec2 vTextureCoord; // Pass texture coordinate to fragment shader\n\nvoid main()\n{\n\tgl_Position = GLMatrix * vec4(pos, 1.0); // Calculate clip space position\n\tvTextureCoord = aTextureCoord; // Pass through texture coordinate\n}"),this.getShader(this.program,e.FRAGMENT_SHADER,cl),e.linkProgram(this.program),e.getProgramParameter(this.program,e.LINK_STATUS)||console.error("Main shader link error:",e.getProgramInfoLog(this.program)),e.useProgram(this.program),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),e.enable(e.BLEND),e.disable(e.DEPTH_TEST),e.clearColor(0,0,0,0);const s=e.getUniformLocation(this.program,"opacity");if(!s)throw new Bs("Failed to bind WebGL opacity uniform",{code:$s});this.opaLoc=s;const n=e.getUniformLocation(this.program,"GLMatrix");if(!n)throw new Bs("Failed to bind WebGL matrix uniform",{code:$s});this.pmLoc=n;const a=e.getUniformLocation(this.program,"noTexture");if(!a)throw new Bs("Failed to bind WebGL texture uniform",{code:$s});this.noTxtLoc=a,this.txtAttr=e.getAttribLocation(this.program,"aTextureCoord");const o=e.createBuffer();if(!o)throw new Bs("Failed to create WebGL texture buffer",{code:Ps,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.txtBuffer=o,e.bindBuffer(e.ARRAY_BUFFER,this.txtBuffer),e.bufferData(e.ARRAY_BUFFER,sl._textureBuffer,e.STATIC_DRAW);const c=e.createBuffer();if(!c)throw new Bs("Failed to create WebGL watermark buffer",{code:Ps,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.wmTxtBuffer=c;const l=e.createBuffer();if(!l)throw new Bs("Failed to create WebGL geometry buffer",{code:Ps,displayMessage:"Your device is low on memory. Try closing other browser tabs or applications."});this.geomBuffer=l,this.posAttr=e.getAttribLocation(this.program,"pos"),this.linkBuffers(),e.viewport(0,0,this.gl.drawingBufferWidth,this.gl.drawingBufferHeight)}linkBuffers(){const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.micrio.wasm._vertexBuffer,t.DYNAMIC_DRAW),t.enableVertexAttribArray(this.txtAttr),t.bindBuffer(t.ARRAY_BUFFER,this.txtBuffer),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.enableVertexAttribArray(this.posAttr),t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0)}dispose(t=!1){const e=this.gl;if(e){if(e.bindBuffer(e.ARRAY_BUFFER,null),e.bindTexture(e.TEXTURE_2D,null),e.deleteBuffer(this.txtBuffer),e.deleteBuffer(this.geomBuffer),e.deleteBuffer(this.wmTxtBuffer),e.deleteProgram(this.program),this.postpocessor?.dispose(),this.wmTexture&&e.deleteTexture(this.wmTexture),t){const t=e.getExtension("WEBGL_lose_context");t instanceof Object&&t.loseContext instanceof Function&&t.loseContext()}this.gl=null}}getShader(t,e,i){const r=this.gl.createShader(e);if(!r)throw new Error(`Could not create WebGL shader (type: ${e})`);if(this.gl.shaderSource(r,i),this.gl.compileShader(r),!this.gl.getShaderParameter(r,this.gl.COMPILE_STATUS))throw console.error("Error compiling shader",this.gl.getShaderInfoLog(r)),this.gl.deleteProgram(t),new Error(`Shader compilation failed: ${this.gl.getShaderInfoLog(r)}`);this.gl.attachShader(t,r),this.gl.deleteShader(r)}getTexture(t,e,i){const r=this.gl,s=e??r.createTexture();if(!s)throw new Error("Could not create WebGL texture");return r.bindTexture(r.TEXTURE_2D,s),t&&r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,i?r.NEAREST:r.LINEAR),s}updateTexture(t,e){const i=this.gl;i.bindTexture(i.TEXTURE_2D,t),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e),i.bindTexture(i.TEXTURE_2D,null)}drawStart(){const t=this.gl;this.postpocessor&&t.bindFramebuffer(t.FRAMEBUFFER,this.postpocessor.frameBuffer),this.gl.clear(this.gl.COLOR_BUFFER_BIT)}drawEnd(){this.postpocessor&&(this.postpocessor.render(),this.gl.useProgram(this.program),this.linkBuffers()),this.wmTexture&&this.drawWatermark()}drawTile(t,e=1,i=!1){this.gl.uniform1i(this.noTxtLoc,t?0:1),this.gl.uniform1f(this.opaLoc,e),t&&(this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,t));const r=i?6*sl.segsX*sl.segsY:6;i!=this.was360&&(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.txtBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?sl._textureBuffer360:sl._textureBuffer,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.geomBuffer),this.was360=i),this.gl.bufferData(this.gl.ARRAY_BUFFER,i?this.micrio.wasm._vertexBuffer360:this.micrio.wasm._vertexBuffer,this.gl.STATIC_DRAW),this.gl.drawArrays(this.gl.TRIANGLES,0,r)}loadWatermark(t,e){if(t===this.wmUrl)return;this.wmUrl=t;const i=new Image;e&&(this.wmOpacity=e),i.crossOrigin="anonymous",i.src=t,i.onload=()=>{const t=document.createElement("canvas");t.width=ll,t.height=ll;const e=t.getContext("2d");if(!e)return;const r=Math.min(96/i.width,64/i.height),s=i.width*r,n=i.height*r;e.drawImage(i,(ll-s)/2,(ll-n)/2,s,n),this.wmTexture&&this.gl.deleteTexture(this.wmTexture),this.wmTexture=this.getTexture(t);const a=this.gl;a.bindTexture(a.TEXTURE_2D,this.wmTexture),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT),a.bindTexture(a.TEXTURE_2D,null),this.micrio.wasm.render()}}drawWatermark(){const t=this.gl;if(!this.wmTexture)return;t.useProgram(this.program),t.blendFunc(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA),t.uniformMatrix4fv(this.pmLoc,!1,this.wmMatrix),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,this.wmTexture),t.uniform1i(this.noTxtLoc,0),t.uniform1f(this.opaLoc,this.wmOpacity);const e=t.drawingBufferWidth/ll,i=t.drawingBufferHeight/ll,r=this.wmUvs;r[1]=i,r[2]=e,r[3]=i,r[8]=e,r[9]=i,r[10]=e,t.bindBuffer(t.ARRAY_BUFFER,this.geomBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmVerts,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.posAttr,3,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,this.wmTxtBuffer),t.bufferData(t.ARRAY_BUFFER,this.wmUvs,t.DYNAMIC_DRAW),t.vertexAttribPointer(this.txtAttr,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.linkBuffers(),this.was360=!1}},dl=class{get $isMobile(){return wt(this.isMobile)}constructor(t){this.micrio=t,this.element=document.createElement("canvas"),this.resizing=!1,this.hasPerspective=!1,this.viewport={width:0,height:0,left:0,top:0,ratio:0,scale:0,portrait:!1},this.isMobile=vt(!1),this.getRatio=(t=this.micrio.$current?.$settings??{})=>!Js.iOS&&!t?.noRetina&&self.devicePixelRatio&&Math.max(1,Math.min(2,self.devicePixelRatio))||1,this.onresize=this.onresize.bind(this),self.ResizeObserver&&(this.resizeObserver=new self.ResizeObserver(this.onresize)),this.element.className="micrio"}place(){if(this.element.parentNode)return;const t=this.micrio.querySelector("img.preview");this.micrio.insertBefore(this.element,t?t.nextSibling:this.micrio.firstChild)}hook(){this.onresize(),this.resizeObserver?this.resizeObserver.observe(this.element):window.addEventListener("resize",this.onresize)}unhook(){this.resizeObserver?this.resizeObserver.unobserve(this.element):window.removeEventListener("resize",this.onresize)}onresize(){const t=this.element.getBoundingClientRect();this.micrio.$current?.is360&&(this.hasPerspective=!0);let e=t.width,i=t.height;if(!e||!i)return;const r=self.getComputedStyle(this.element),s=parseFloat(r.width);isNaN(s)||(i=parseFloat(r.height)*e/Math.max(1,s));const n=this.micrio.hasAttribute("data-static")?1:Math.floor(e)/this.micrio.offsetWidth;e/=n,i/=n;const a=1!=n?1:this.getRatio(),o=this.viewport;o.width==e&&o.height==i&&o.ratio==a&&o.scale==n||(this.hasPerspective&&(this.micrio.style.perspective=i/2+"px"),o.width=e,o.height=i,o.ratio=a,o.scale=n,o.top=t.top,o.left=t.left,o.portrait=window.matchMedia("(orientation: portrait)")?.matches??i>e,this.resizing=!0,this.element.width=e*a,this.element.height=i*a,this.micrio.webgl.gl.viewport(0,0,o.width*o.ratio,o.height*o.ratio),this.micrio.webgl.postpocessor?.resize(),this.micrio.wasm.resize(o),this.resizing=!1,this.micrio.events.dispatch("resize",t),this.isMobile.set(/mobile/i.test(navigator.userAgent)))}setMargins(t,e){this.micrio.wasm.ready&&this.micrio.wasm.setCanvasArea(t,e)}},ul=["move","marker-open","marker-opened","marker-closed","tour-start","tour-step","tour-stop","tour-event","media-play","media-pause","splitscreen-start","splitscreen-stop"],ml=class{constructor(t){this.ctx=t,this.handleEvent=this.handleEvent.bind(this),this.dispatch=this.dispatch.bind(this)}hook(){ul.forEach(t=>this.ctx.micrio.addEventListener(t,this.handleEvent))}unhook(){ul.forEach(t=>this.ctx.micrio.removeEventListener(t,this.handleEvent))}handleEvent(t){if("move"==t.type&&!this.ctx.isPanning()&&!this.ctx.isPinching()&&!this.ctx.isWheeling())return;const e=this.ctx.vars.updates.stack;e[e.length-1]!=t.type&&e.push(t.type),clearTimeout(this.ctx.vars.updates.to),this.ctx.vars.updates.to<0&&(this.ctx.vars.updates.to=setTimeout(this.dispatch))}dispatch(){const t=this.ctx.vars.updates;clearTimeout(t.to),t.to=-1,t.stack.length&&(this.ctx.dispatch("update",t.stack),t.stack.length=0,t.to=setTimeout(this.dispatch,500))}},fl=class{get $enabled(){return wt(this.enabled)}constructor(t){this.micrio=t,this.enabled=vt(!1),this.hooked=!1,this.panning=!1,this.pinching=!1,this.clicked=!1,this.wheeling=!1,this.controlZoom=!1,this.twoFingerPan=!1,this.pScale=1,this.hasTouch=Js.hasTouch&&"ontouchstart"in self,this.hasUsedCtrl=!1,this.vars={drag:{prev:void 0,start:[0,0,0]},dbltap:{lastTapped:0},pinch:{image:void 0,sDst:0,wasPanning:!1},updates:{to:-1,stack:[]}},this.activePointers=new Map,this.el=t.canvas.element,this.dragHandler=new bl(this),this.pinchHandler=new yl(this,this.dragHandler),this.pointerPinchHandler=new kl(this,this.dragHandler),this.gestureHandler=new Tl(this),this.wheelHandler=new _l(this),this.keyboardHandler=new xl(this),this.doubleTapHandler=new El(this),this.updateHandler=new ml(this),this.enabled.subscribe(t=>{t?this.hook():this.unhook()}),t.visible.subscribe(t=>this.visible=t),t.current.subscribe(t=>{t&&!this.settings&&en(t.info).then(e=>{e&&(this.settings=t.$settings,!t.error&&this.settings.hookEvents&&this.enabled.set(!0))})})}isEnabled(){return this.$enabled}isPanning(){return this.panning}isPinching(){return this.pinching}setPanning(t){this.panning=t}setPinching(t){this.pinching=t}isWheeling(){return this.wheeling}setWheeling(t){this.wheeling=t}isControlZoom(){return this.controlZoom}isTwoFingerPan(){return this.twoFingerPan}getVisible(){return this.visible}setCapturedPointerId(t){this.capturedPointerId=t}setPinchFactor(t){this.pinchFactor=t}setPScale(t){this.pScale=t}setHasUsedCtrl(t){this.hasUsedCtrl=t}get isNavigating(){return this.panning||this.pinching||this.wheeling||this.clicked}dispatch(t,e){this.micrio.dispatchEvent(new CustomEvent(t,void 0!==e?{detail:e}:void 0))}getImage(t){if(!this.visible)return;const e=this.micrio.offsetWidth,i=this.micrio.offsetHeight,r=Math.max(0,Math.min(1,t.x/e)),s=Math.max(0,Math.min(1,t.y/i)),n=this.visible?.find(t=>!!t.opts.secondaryTo),a=1==this.visible.length?this.visible[0]:this.visible.find(({grid:t,opts:{area:e}})=>(!n||!t)&&(!!e&&(r>=e[0]&&r<=e[2]&&s>=e[1]&&s<=e[3])));return a&&a.opts.secondaryTo&&a.opts.isPassive&&a.opts.area&&(t.x-=a.opts.area[0]*e,t.y-=a.opts.area[1]*i),!a||a.grid||a.opts.secondaryTo&&a.opts.isPassive?this.micrio.$current:a}hook(){if(this.hooked)return;this.hooked=!0;const t=this.settings;t&&(this.twoFingerPan=!!t.twoFingerPan,this.twoFingerPan?this.micrio.setAttribute("data-can-pan",""):this.micrio.removeAttribute("data-can-pan"),t?.hookKeys&&this.hookKeys(),t.hookDrag&&this.hookDrag(),t.noZoom||this.hookZoom(),this.hookUpdate())}unhook(){this.hooked&&(this.hooked=!1,this.activePointers.clear(),this.unhookDrag(),this.unhookZoom(),this.unhookKeys(),this.unhookUpdate())}hookKeys(){this.keyboardHandler.hook()}unhookKeys(){this.keyboardHandler.unhook()}hookZoom(){const t=this.settings;this.controlZoom=!!t?.controlZoom,t&&!t.hookPinch||this.hookPinch(),(!t||t.hookScroll||this.controlZoom)&&this.hookScroll(),this.micrio.canvas.$isMobile?this.doubleTapHandler.hookTap():this.doubleTapHandler.hookClick()}unhookZoom(){this.unhookPinch(),this.unhookScroll(),this.micrio.canvas.$isMobile?this.doubleTapHandler.unhookTap():this.doubleTapHandler.unhookClick()}get scrollHooked(){return this.wheelHandler.hooked}hookScroll(){this.wheelHandler.hook()}unhookScroll(){this.wheelHandler.unhook()}hookPinch(){Js.iOS&&this.hasTouch?this.pinchHandler.hook():this.pointerPinchHandler.hook(),this.gestureHandler.hook()}unhookPinch(){Js.iOS&&this.hasTouch?this.pinchHandler.unhook():this.pointerPinchHandler.unhook(),this.gestureHandler.unhook()}hookDrag(){this.dragHandler.hook()}unhookDrag(){this.dragHandler.unhook()}hookUpdate(){this.updateHandler.hook()}unhookUpdate(){this.updateHandler.unhook()}},pl={passive:!0},gl={passive:!0,capture:!0},vl={passive:!1};function wl(t){t.stopPropagation(),t.preventDefault()}var bl=class{constructor(t){this.ctx=t,this.hooked=!1,this.start=this.start.bind(this),this.move=this.move.bind(this),this.stop=this.stop.bind(this),this.cancel=this.cancel.bind(this)}hook(){this.hooked||(this.hooked=!0,this.ctx.micrio.addEventListener("dragstart",wl),this.ctx.micrio.addEventListener("pointerdown",this.start,pl),self.addEventListener("pointercancel",this.cancel,pl),this.ctx.micrio.setAttribute("data-hooked",""))}unhook(){this.hooked&&(this.hooked=!1,this.ctx.micrio.removeEventListener("pointerdown",this.start,pl),this.ctx.micrio.removeEventListener("dragstart",wl),self.removeEventListener("pointercancel",this.cancel,pl),this.ctx.micrio.removeAttribute("data-hooked"))}start(t,e=!1){if(0!=t.button||"touch"==t.pointerType&&this.ctx.isTwoFingerPan())return;if(!(e||t.target==this.ctx.el||t.target instanceof Element&&t.target.closest("[data-scroll-through]")))return;if(this.ctx.micrio.$current?.isOmni&&t.shiftKey)return;if(this.ctx.isPinching())return;if(this.ctx.isPanning())return void(t instanceof TouchEvent&&t.touches.length>1&&this.stop());const i=this.ctx.getImage({x:t.clientX,y:t.clientY});i&&(this.ctx.setPanning(!0),this.ctx.vars.drag.start=[t.clientX,t.clientY,performance.now()],this.ctx.micrio.addEventListener("pointermove",this.move,pl),this.ctx.micrio.addEventListener("pointerup",this.stop,pl),this.ctx.micrio.setAttribute("data-panning",""),this.ctx.micrio.wasm.panStart(i.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("panstart"))}move(t){const e=t.clientX,i=t.clientY,r=Math.hypot(this.ctx.vars.drag.start[0]-t.clientX,this.ctx.vars.drag.start[1]-t.clientY);!this.ctx.capturedPointerId&&r>10&&(this.ctx.setCapturedPointerId(t.pointerId),this.ctx.micrio.setPointerCapture(t.pointerId)),this.ctx.vars.drag.prev&&this.ctx.getImage({x:e,y:i})?.camera.pan(this.ctx.vars.drag.prev[0]-e,this.ctx.vars.drag.prev[1]-i),this.ctx.vars.drag.prev=[e,i]}stop(t,e=!1,i=!1){if(this.ctx.isPanning()){if(this.ctx.setPanning(!1),this.ctx.vars.drag.prev=void 0,this.ctx.micrio.removeEventListener("pointermove",this.move,pl),this.ctx.micrio.removeEventListener("pointerup",this.stop,pl),this.ctx.capturedPointerId&&this.ctx.micrio.releasePointerCapture(this.ctx.capturedPointerId),this.ctx.setCapturedPointerId(void 0),this.ctx.micrio.removeAttribute("data-panning"),t&&0==e){const e=this.ctx.getImage({x:t.clientX,y:t.clientY});e&&(this.ctx.micrio.wasm.panStop(e.ptr),this.ctx.micrio.wasm.render())}i||this.ctx.dispatch("panend",t?{duration:performance.now()-this.ctx.vars.drag.start[2],movedX:t.clientX-this.ctx.vars.drag.start[0],movedY:t.clientY-this.ctx.vars.drag.start[1]}:void 0)}}cancel(t){this.ctx.isPanning()&&(void 0!==this.ctx.capturedPointerId&&t.pointerId!==this.ctx.capturedPointerId||this.stop(void 0,!0,!0))}},yl=class{constructor(t,e){this.ctx=t,this.dragHandler=e,this.start=this.start.bind(this),this.move=this.move.bind(this),this.stop=this.stop.bind(this)}hook(){Js.iOS&&this.ctx.hasTouch&&this.ctx.micrio.addEventListener("touchstart",this.start,pl)}unhook(){Js.iOS&&this.ctx.hasTouch&&this.ctx.micrio.removeEventListener("touchstart",this.start,pl),self.removeEventListener("touchmove",this.move,gl),self.removeEventListener("touchend",this.stop,gl)}start(t){if(!(Js.hasTouch&&t instanceof TouchEvent))return;if(this.ctx.isTwoFingerPan()&&t.touches.length<2)return;if(this.ctx.isPinching()||2!=t.touches.length)return void this.stop(t);t.stopPropagation(),this.ctx.vars.pinch.wasPanning=this.ctx.isPanning(),this.dragHandler.stop(void 0,!1,!0);const e=t.touches;this.ctx.setPinching(!0),self.addEventListener("touchmove",this.move,gl),self.addEventListener("touchend",this.stop,gl),this.ctx.micrio.setAttribute("data-pinching",""),this.ctx.vars.pinch.image=this.ctx.getImage({x:e[0].clientX,y:e[0].clientY}),this.ctx.vars.pinch.sDst=Math.hypot(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY),this.ctx.setPinchFactor(void 0),this.ctx.vars.pinch.image&&this.ctx.micrio.wasm.pinchStart(this.ctx.vars.pinch.image.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("pinchstart"),this.ctx.isTwoFingerPan()&&this.ctx.dispatch("panstart")}move(t){if(!(Js.hasTouch&&t instanceof TouchEvent))return;const e=t.touches;if(e?.length<2)return;const i={x:e[0].clientX,y:e[0].clientY},r={x:e[1].clientX,y:e[1].clientY},s=this.ctx.vars.pinch,n=s.image;if(n){if(n?.opts.secondaryTo&&n.opts.isPassive&&n.opts.area){const t=n.opts.area[0]*this.ctx.micrio.offsetWidth,e=n.opts.area[1]*this.ctx.micrio.offsetHeight;i.x-=t,r.x-=t,i.y-=e,r.y-=e}this.ctx.setPinchFactor(Math.hypot(e[0].clientX-e[1].clientX,e[0].clientY-e[1].clientY)/s.sDst),this.ctx.micrio.wasm.pinch(n.ptr,i.x,i.y,r.x,r.y)}}stop(t){if(!this.ctx.isPinching())return;this.ctx.setPinching(!1),self.removeEventListener("touchmove",this.move,gl),self.removeEventListener("touchend",this.stop,gl),this.ctx.micrio.removeAttribute("data-pinching");const e=this.ctx.vars.pinch.image;e&&(this.ctx.micrio.wasm.pinchStop(e.ptr,performance.now()),this.ctx.micrio.wasm.render()),this.ctx.vars.pinch.image=void 0,this.ctx.setPinchFactor(void 0),this.ctx.dispatch("pinchend"),this.ctx.isTwoFingerPan()&&!this.ctx.vars.pinch.wasPanning&&this.ctx.dispatch("panend"),t instanceof TouchEvent&&1==t.touches.length&&this.dragHandler.start(t,!0)}},kl=class{constructor(t,e){this.ctx=t,this.dragHandler=e,this.start=this.start.bind(this),this.move=this.move.bind(this),this.end=this.end.bind(this)}hook(){this.ctx.micrio.addEventListener("pointerdown",this.start,pl),self.addEventListener("pointerup",this.end,pl),self.addEventListener("pointercancel",this.end,pl)}unhook(){this.ctx.micrio.removeEventListener("pointerdown",this.start,pl),self.removeEventListener("pointerup",this.end,pl),self.removeEventListener("pointercancel",this.end,pl),self.removeEventListener("pointermove",this.move,gl),this.ctx.activePointers.clear()}start(t){if("touch"===t.pointerType&&(this.ctx.activePointers.set(t.pointerId,{x:t.clientX,y:t.clientY}),2===this.ctx.activePointers.size&&!this.ctx.isPinching())){this.ctx.vars.pinch.wasPanning=this.ctx.isPanning(),this.dragHandler.stop(void 0,!1,!0),this.ctx.setPinching(!0),self.addEventListener("pointermove",this.move,gl),this.ctx.micrio.setAttribute("data-pinching","");const t=Array.from(this.ctx.activePointers.values()),e=t[0],i=t[1];this.ctx.vars.pinch.image=this.ctx.getImage({x:e.x,y:e.y}),this.ctx.vars.pinch.sDst=Math.hypot(e.x-i.x,e.y-i.y),this.ctx.setPinchFactor(void 0),this.ctx.vars.pinch.image&&this.ctx.micrio.wasm.pinchStart(this.ctx.vars.pinch.image.ptr),this.ctx.micrio.wasm.render(),this.ctx.dispatch("pinchstart"),this.ctx.isTwoFingerPan()&&this.ctx.dispatch("panstart")}}move(t){if("touch"!==t.pointerType)return;if(!this.ctx.activePointers.has(t.pointerId))return;if(this.ctx.activePointers.set(t.pointerId,{x:t.clientX,y:t.clientY}),!this.ctx.isPinching()||2!==this.ctx.activePointers.size)return;const e=Array.from(this.ctx.activePointers.values()),i=e[0],r=e[1],s=this.ctx.vars.pinch,n=s.image;if(!n)return;const a={x:i.x,y:i.y},o={x:r.x,y:r.y};if(n?.opts.secondaryTo&&n.opts.isPassive&&n.opts.area){const t=n.opts.area[0]*this.ctx.micrio.offsetWidth,e=n.opts.area[1]*this.ctx.micrio.offsetHeight;a.x-=t,o.x-=t,a.y-=e,o.y-=e}this.ctx.setPinchFactor(Math.hypot(i.x-r.x,i.y-r.y)/s.sDst),this.ctx.micrio.wasm.pinch(n.ptr,a.x,a.y,o.x,o.y)}end(t){if("touch"===t.pointerType&&(this.ctx.activePointers.delete(t.pointerId),this.ctx.isPinching()&&this.ctx.activePointers.size<2)){this.ctx.setPinching(!1),self.removeEventListener("pointermove",this.move,gl),this.ctx.micrio.removeAttribute("data-pinching");const t=this.ctx.vars.pinch.image;if(t&&(this.ctx.micrio.wasm.pinchStop(t.ptr,performance.now()),this.ctx.micrio.wasm.render()),this.ctx.vars.pinch.image=void 0,this.ctx.setPinchFactor(void 0),this.ctx.dispatch("pinchend"),this.ctx.isTwoFingerPan()&&!this.ctx.vars.pinch.wasPanning&&this.ctx.dispatch("panend"),1===this.ctx.activePointers.size){const t=Array.from(this.ctx.activePointers.entries())[0],e={button:0,pointerType:"touch",target:this.ctx.el,clientX:t[1].x,clientY:t[1].y,pointerId:t[0]};this.dragHandler.start(e,!0)}}}},Tl=class{constructor(t){this.ctx=t,this.handle=this.handle.bind(this)}hook(){Js.OSX&&(this.ctx.micrio.addEventListener("gesturestart",this.handle,vl),this.ctx.micrio.addEventListener("gesturechange",this.handle,vl),this.ctx.micrio.addEventListener("gestureend",this.handle,vl))}unhook(){Js.OSX&&(this.ctx.micrio.removeEventListener("gesturestart",this.handle,vl),this.ctx.micrio.removeEventListener("gesturechange",this.handle,vl),this.ctx.micrio.removeEventListener("gestureend",this.handle,vl))}getGestureEvent(t){if("scale"in t&&"number"==typeof t.scale){const e=t;return{scale:e.scale,clientX:e.clientX,clientY:e.clientY}}return null}handle(t){const e=this.getGestureEvent(t);if(!e||1===e.scale)return;const i=this.ctx.pScale-e.scale;this.ctx.setPScale(e.scale),t.stopPropagation(),t.preventDefault(),"gesturechange"==t.type&&this.ctx.getImage({x:e.clientX,y:e.clientY})?.camera.zoom(i*this.ctx.micrio.canvas.viewport.height,0,e.clientX,e.clientY)}},_l=class{constructor(t){this.ctx=t,this.hooked=!1,this.wheelEndTo=-1,this.handle=this.handle.bind(this),this.end=this.end.bind(this)}hook(){this.hooked||(this.ctx.micrio.addEventListener("wheel",this.handle,vl),this.hooked=!0)}unhook(){this.ctx.micrio.removeEventListener("wheel",this.handle,vl),this.hooked=!1}handle(t,e=!1,i=0){if(!(t instanceof WheelEvent))return;if(this.ctx.isControlZoom()&&!t.ctrlKey)return;if(!e&&t.target instanceof Element&&t.target!=this.ctx.el&&!t.target.classList.contains("marker")&&!t.target.closest("[data-scroll-through]"))return;let r=t.deltaY;t.ctrlKey&&this.ctx.setHasUsedCtrl(!0);const s=this.ctx.isControlZoom()&&10*r%1==0,n=this.ctx.hasUsedCtrl&&!s,a=Js.firefox||t.ctrlKey||!n;if(this.ctx.isTwoFingerPan()&&this.ctx.micrio.$current?.camera.isZoomedOut())return;t.stopPropagation(),t.preventDefault(),(Js.OSX||n)&&t.ctrlKey&&(r*=10);const o={x:t.clientX,y:t.clientY},c=this.ctx.getImage(o);if(c){if(a){const t=this.ctx.micrio.canvas.viewport;let e=0;const s=this.ctx.micrio.getBoundingClientRect();c.camera.zoom(1*r/Math.sqrt(t.scale),0,o.x-i-s.left,o.y-s.top-e)}else c.camera.pan(t.deltaX,t.deltaY);this.ctx.setWheeling(!0),clearTimeout(this.wheelEndTo),this.wheelEndTo=setTimeout(this.end,50)}}end(){this.ctx.setWheeling(!1)}},xl=class{constructor(t){this.ctx=t,this.handle=this.handle.bind(this)}hook(){document.addEventListener("keydown",this.handle)}unhook(){document.removeEventListener("keydown",this.handle)}handle(t){if(this.ctx.isPanning()||this.ctx.isPinching()||!this.ctx.micrio.$current?.camera)return;const e=this.ctx.micrio.$current.camera,i=this.ctx.micrio.offsetWidth/2,r=this.ctx.micrio.offsetHeight/2;let s=0,n=0;switch(t.key){case"ArrowUp":n-=r;break;case"ArrowDown":n+=r;break;case"ArrowLeft":s-=i;break;case"ArrowRight":s+=i;break;case"+":case"=":e.zoom(-200,150).catch(()=>{});break;case"-":case"_":e.zoom(200,150).catch(()=>{});break;default:return}t.preventDefault(),t.stopPropagation(),0==s&&0==n||e.pan(s,n,150)}},El=class{constructor(t){this.ctx=t,this.tap=this.tap.bind(this),this.click=this.click.bind(this)}hookTap(){this.ctx.el.addEventListener("touchstart",this.tap)}unhookTap(){this.ctx.el.removeEventListener("touchstart",this.tap)}hookClick(){this.ctx.el.addEventListener("dblclick",this.click)}unhookClick(){this.ctx.el.removeEventListener("dblclick",this.click)}tap(t){if(!(Js.hasTouch&&t instanceof TouchEvent))return;const e=performance.now();1==t.touches.length&&e-this.ctx.vars.dbltap.lastTapped<250&&(t.stopPropagation(),t.preventDefault(),this.click(t)),this.ctx.vars.dbltap.lastTapped=e}click(t){const e=t instanceof TouchEvent?t.touches[0]:t;this.ctx.getImage({x:e.clientX,y:e.clientY})?.camera.zoom(-300,500,e.clientX,e.clientY,1,!this.ctx.micrio.$current?.album).catch(()=>{})}},Sl=class t{static{this.events=["load","tour-start","tour-stop","marker-open","marker-closed","page-open","page-closed","lang-switch"]}constructor(t){this.micrio=t,this.isStatic=!1,this.loaded=!1,this.inited=!1,this.setting=!1,this.writeTitle=!1}hook(){this.isStatic="static"==this.micrio.getAttribute("data-router"),this.read=this.read.bind(this),this.write=this.write.bind(this),this.writeDeferred=this.writeDeferred.bind(this),en(this.micrio.current).then(()=>{this.loaded=!0,this.read()}),t.events.forEach(t=>this.micrio.addEventListener(t,this.write)),"i.micr.io"==location.hostname&&(this.writeTitle=!0),window.addEventListener(this.isStatic?"popstate":"hashchange",this.read)}unhook(){t.events.forEach(t=>this.micrio.removeEventListener(t,this.write)),window.removeEventListener(this.isStatic?"popstate":"hashchange",this.read)}findPage(t,e,i){if(e)for(let r=0;r<e.length;r++){let s=Gs((e[r]?.i18n?.[i]??e[r]).title)==t?e[r]:this.findPage(t,e[r].children,i);if(s)return s}}read(){if(!this.loaded||this.setting)return;this.route=(this.isStatic?location.pathname:location.hash).slice(1);const[t,e,i,r,s]=this.route.split("/"),n=this.micrio.$current,a=t&&n?.id!=t?this.micrio.open(t):void 0;n&&Promise.all([en(n.data,{allowUndefined:!0}),a?en(a.data,{allowUndefined:!0}):void 0]).then(t=>{if(!t[0])return this.inited=!0;if(void 0===this.prevLang&&(this.prevLang=this.micrio.lang),!1===a?.$settings.routerMarkerTours)return;if(t[0].pages?.length&&r){const i=this.findPage(r.toLowerCase(),t[0].pages,e);if(i)return void this.micrio.state.popover.set({contentPage:i})}const i=r?s?t.map(t=>t?.markerTours?.find(t=>Gs(t.i18n?.[e]?.slug)==r))[0]:t.map(t=>t?.tours?.find(t=>Gs(t.i18n?.[e]?.slug)==r))[0]:void 0,o=s||!i&&r,c=o?(t[1]??t[0]).markers?.find(t=>(t.i18n?.[e]?.slug??Gs(t.title))==o||i&&"steps"in i&&i.stepInfo?.map(t=>t.marker).find(t=>t.i18n?.[e]?.slug==o)):void 0;c&&i&&"steps"in i?i.initialStep=Math.max(0,i.steps.findIndex(t=>t.startsWith(c.id))):(c||this.micrio.state.popup.set(void 0),(a??n).state.marker.set(c)),this.micrio.state.tour.set(i),this.writeTitle&&this.setTitle(),this.inited=!0})}setTitle(){const t=wt(this.micrio._lang),e=this.micrio.$current;if(!e)return;const i=[e.$data?.i18n?.[t]?.title??e?.$info?.title,this.micrio.state.$tour?.i18n?.[t]?.title,this.micrio.state.$marker?.i18n?.[t]?.title].filter(t=>!!t).reverse();document.title=i.join(" - ")+" | Micrio"}write(t){if(this.micrio.$current&&this.loaded&&this.inited){if("marker-open"===t.type){const t=this.micrio.state.$marker;if(t&&t.data&&t.data.micrioLink)return}clearTimeout(this._to),this._to=setTimeout(()=>this.writeDeferred("load"==t.type),50)}}writeDeferred(t){const e=this.micrio.state.$tour;let i=this.micrio.$current,r=i?.state.$marker;const s=this.micrio.lang;s!=this.prevLang&&(t=!0,this.prevLang=s);const n=i?.$data?.i18n?.[s]?.title??i?.$info?.title??"",a=!1===i?.$settings.routerMarkerTours,o=r&&"string"!=typeof r?r.i18n?.[s]??r:void 0,c=wt(this.micrio.state.popover)?.contentPage,l=c?c.i18n?.[s]??c:void 0;let h=i?.id;if(e&&"steps"in e&&e.steps.length&&e.stepInfo){const t=e.stepInfo.find(t=>t.markerId==e.steps.find(t=>!t.includes(",")));t&&(h=t.micrioId,i=this.micrio.wasm.images.find(t=>t.id==h),r||void 0===e.initialStep||(r=e.stepInfo[Math.max(0,e.initialStep)].marker))}const d=[h,s,Gs(n)??"",...a?[]:l?[Gs(l.title)]:[e?.i18n?.[s]?.slug??null,o?.slug??Gs(o?.title)??null]].filter(t=>!!t).join("/");d!=this.route&&(this.setting=!0,this.isStatic?t?history.replaceState(null,"","/"+d+location.search):history.pushState(null,"","/"+d+location.search):location.hash=d,this.route=d,this.writeTitle&&this.setTitle(),setTimeout(()=>this.setting=!1,250))}},Al=class t{static{this.events=["load","show","hide","marker-open","marker-opened","marker-closed","tour-start","tour-stop","tour-step","tour-ended"]}constructor(t){this.micrio=t,this.gtag="gtag"in window?window.gtag:void 0,this.hooked=!1,this.tag=this.tag.bind(this)}hook(){!this.hooked&&this.gtag&&(this.hooked=!0,this.tag(new CustomEvent("init")),t.events.forEach(t=>this.micrio.addEventListener(t,this.tag)))}unhook(){this.hooked&&(this.hooked=!1,this.tag(new CustomEvent("hide")),t.events.forEach(t=>this.micrio.removeEventListener(t,this.tag)))}tag(t){if(!this.gtag)return;const e=t.detail,i=this.micrio.$current,r={event_category:"Micrio",event_action:t.type};this.micrio.lang&&(r.culture=this.micrio.lang),"init"==t.type&&(r.micrio_version=fc),"load"==t.type&&i?.$info&&(r.image_version=i.$info.version);const s=null!==e&&"object"==typeof e&&"currentStep"in e?e.currentStep:null;null!=s&&(r.event_value=s);const n=e&&e.title?e.title:i&&i.$info&&i.$info.title;r.event_label=this.micrio.id+(n?" - "+n:""),this.gtag("event",t.type,r)}},Ml=t=>Math.round(1e5*t)/1e5,Il={0:[0,-.5,1,0],90:[1,0,1.5,1],180:[0,1,1,1.5],270:[-.5,0,0,1]},$l={0:[0,-1,1,0],90:[1,0,2,1],180:[0,1,1,2],270:[-1,0,0,1]},Pl={0:[0,1,1,2],90:[-1,0,0,1],180:[0,-1,1,0],270:[1,0,2,1]},Ll=class t{static{this.getString=(t,e)=>[t.id,t.width,t.height,t.isDeepZoom?"d":"",t.isPng?"p":t.isWebP?"w":"",e.view?.map(Ml).join("/"),e.area?.map(Ml).join("/"),t.settings?.focus?.map(Ml).join("-"),e.cultures].join(",").replace(/,+$/,"")+(e.size?`|${e.size.join(",")}`:"")}get $focussed(){return wt(this.focussed)}constructor(e,i){this.micrio=e,this.image=i,this.images=[],this.imageMap=new Map,this.current=[],this._grid=document.createElement("div"),this._buttons=new Map,this.clickable=!1,this.focussed=vt(),this.markersShown=vt([]),this.history=[],this.depth=vt(0),this.aniDurationIn=1.5,this.aniDurationOut=.5,this.transitionDelay=.5,this.isHorizontal=!1,this.cellSizes=new Map,this.nextSize=new Map,this.timingFunction="ease",this.getString=(e,i={})=>t.getString(e,{view:i.view,area:i.area,size:i.size??this.nextSize.get(e.id),cultures:("cultures"in e&&e.cultures?e.cultures:"")?.replace(/,/g,"-")}),this.actionHandlers={[mc.Grid.GridActionType.focus]:(t,e)=>{const i=t?.split("|").map(t=>t.trim()),r=(i?.[0]??"").split(",").map(t=>this.imageMap.get(t.trim())).filter(t=>void 0!==t);1==r.length?this.focus(r[0],{duration:e}):r.length>0&&this.set(r.map(t=>this.getString(t.$info)).join(";"),{duration:e,horizontal:"h"==i?.[1]})},[mc.Grid.GridActionType.flyTo]:(t,e)=>{const i=t?.split(",").map(t=>this.current.find(e=>e.id==t?.trim()));i?.length?this.image.camera.flyToView([Math.min(...i.map(t=>t?.opts.area?.[0]??0)),Math.min(...i.map(t=>t?.opts.area?.[1]??0)),Math.max(...i.map(t=>t?.opts.area?.[2]??1)),Math.max(...i.map(t=>t?.opts.area?.[3]??1))],{duration:e?1e3*e:void 0}).catch(()=>{}):console.warn("Given image IDs gave no current displayed images")},[mc.Grid.GridActionType.focusTagged]:(t,e)=>{this.flyToMarkers(t,e)},[mc.Grid.GridActionType.focusWithTagged]:(t,e)=>{this.flyToMarkers(t,e,!0)},[mc.Grid.GridActionType.reset]:(t,e)=>{this.reset(e)},[mc.Grid.GridActionType.back]:(t,e)=>{this.back(e)},[mc.Grid.GridActionType.switchToGrid]:()=>{this.switchToGrid()},[mc.Grid.GridActionType.nextFadeDuration]:t=>{this.nextCrossFadeDuration=Number(t)},[mc.Grid.GridActionType.filterTourImages]:(t,e)=>{en(this.micrio.state.tour).then(i=>{if(!i)return;if(!("steps"in i)||!i.stepInfo)return;const r=i.stepInfo.map(t=>t.micrioId),s=r.filter((t,e)=>r.indexOf(t)==e).map(t=>this.imageMap.get(t)).filter(t=>!!t).map(t=>this.getString(t.$info)).join(";");s&&this.set(s,{duration:e,horizontal:"h"==t})})}},this.tourEvent=this.tourEvent.bind(this),this.updateGrid=this.updateGrid.bind(this);const r=i.$settings;this.clickable=!!r.gridClickable,void 0!==r.gridTransitionDuration&&(this.aniDurationIn=this.aniDurationOut=r.gridTransitionDuration),void 0!==r.gridTransitionDurationOut&&(this.aniDurationOut=r.gridTransitionDurationOut),this._grid.className="micrio-grid",this.set(i.$info?.grid);const s=()=>Si().then(()=>{this.hook(),e.events.dispatch("grid-load")});i.isV5?s():e._lang.subscribe(t=>{t?Promise.all(this.images.filter(e=>(e.$info&&"cultures"in e.$info&&e.$info?.cultures||"").indexOf(t)>=0).map(t=>en(t.data))).then(s):s()}),e.events.dispatch("grid-init",this)}hook(){if(this.micrio.state.marker.subscribe(t=>{if(t&&"string"!=typeof t){const e=t.data?._meta;if(e?.gridSize){const i="number"==typeof e.gridSize?[e.gridSize,e.gridSize]:e.gridSize.split(",").map(Number),r=this.images.find(e=>e.$data?.markers?.find(e=>e==t))?.id;r&&this.nextSize.set(r,i)}Si().then(()=>{const t=e?.gridAction?.split("|");t?.length&&"string"==typeof t[0]&&this.action(t.shift(),t.join("|"))})}}),this.clickable){this._grid.addEventListener("click",t=>{const e=t.target.dataset.id;e&&this.focus(this.imageMap.get(e))});const t=t=>{t?this.removeGrid():this.placeGrid()};this.micrio.state.tour.subscribe(t),this.micrio.state.marker.subscribe(t),this.focussed.subscribe(t)}this.micrio.addEventListener("tour-event",this.tourEvent),this.micrio.addEventListener("serialtour-pause",()=>this.images.forEach(t=>t.camera.pause())),this.micrio.addEventListener("serialtour-play",()=>this.images.forEach(t=>t.camera.resume()))}clearTimeouts(){clearTimeout(this._to),clearTimeout(this._fadeTo)}trackImage(t){this.images.push(t),this.imageMap.set(t.id,t)}parseInput(t){return"string"!=typeof t&&(t=t.map(t=>t instanceof Ec?{image:t}:t).filter(t=>!!t.image.$info).map(t=>this.getString(t.image.$info,t)).join(";")),t.split(";").filter(t=>!!t).map(t=>this.getImage(t))}setupBehindTransition(t,e,i){const r="behind-delayed"==e.transition,s=!0===e.coverLimit,{wasm:n}=this.micrio;e.forceAni=!0,e.coverLimit=s,e.forceAreaAni=!0;const a=r?1/t.length:1;let o=0;this.images.forEach(e=>{e.camera.setCoverLimit(s),t.find(t=>t.id==e.id)&&(e.camera.setArea([0,0,i?.id==e.id?1:a,1],{noDispatch:!0,direct:!0}),e!=i&&e.camera.setView([0,0,1,1]),r&&n.setZIndex(e.ptr,t.length-o++))}),t.forEach(t=>t.view=[0,0,1,1])}savePreviousLayout(){this.depth.set(this.history.push({layout:this.current.map(t=>this.getString(t.$info,{view:t.state.$view,size:this.cellSizes.get(t.id)})).join(";"),horizontal:this.isHorizontal,view:this.image.camera.getView()}))}set(t="",e={}){return this.lastPromise=new Promise((i,r)=>{delete this.image.$info?.settings?.focus,this.lastAction=void 0,!1===e.cover&&e.coverLimit&&(e.coverLimit=!1),e.coverLimit&&null==e.cover&&(e.cover=e.coverLimit);const s=this.parseInput(t),n=this.$focussed,a=e.transition?.endsWith("-delayed"),o="behind-delayed"==e.transition,{wasm:c}=this.micrio;"crossfade"==e.transition?e.duration=0:"behind"!=e.transition&&"behind-delayed"!=e.transition||this.setupBehindTransition(s,e,n);const l=this.image.ptr>=0,h=e.duration??(e.noHistory?this.aniDurationOut:this.aniDurationIn),d=this.nextCrossFadeDuration??this.image.$settings.crossfadeDuration??1,u=(h||this.aniDurationIn)/(o?2:1);this.nextCrossFadeDuration=void 0,l&&(c.setGridTransitionDuration(h),c.setCrossfadeDuration(u));const m=!e.noBlur&&n;m&&this.blur(),!e.noHistory&&this.current.length&&this.savePreviousLayout(),this.isHorizontal=!!e.horizontal,this.removeImages(this.images.filter(t=>!s.find(e=>e.id==t.id))),this.printGrid(s,{horizontal:e.horizontal,keepGrid:e.keepGrid,scale:e.scale,columns:e.columns}),this.clearTimeouts();let f=!1;const p=()=>{this.clearTimeouts(),f||r()};l&&!e.noCamAni&&(e.view?this.image.camera.flyToView(e.view,{duration:1e3*h}).catch(p):this.image.camera.flyToFullView({duration:1e3*h}).catch(p)),this.nextSize.clear(),null==e.coverLimit&&(e.coverLimit=!0),e.coverLimit||s.forEach(t=>this.imageMap.get(t.id)?.camera.setCoverLimit(!1));const g="appear-delayed"==e.transition,v=t=>t*this.transitionDelay+(t>0&&g?h:0);this.current=s.map((t,i)=>this.placeImage(t,{duration:!e.forceAni&&m&&t.id!=n?.id?0:h,delay:a?v(i):0,noCamAni:!!(g&&i>0)||!!e.noCamAni,forceAreaAni:!(g&&i>0)&&e.forceAreaAni,cover:e.cover})),g&&this.current.slice(1).forEach(t=>c.fadeTo(t.ptr,.9999,!0));const w=()=>this.current.forEach((t,e)=>Ks(a?1e3*(v(e)+(o?h/2:0)):0).then(()=>c.fadeIn(t.ptr))),b=()=>{this.clearTimeouts(),requestAnimationFrame(()=>c.setCrossfadeDuration(d)),a&&this.images.forEach(t=>c.setZIndex(t.ptr,0)),e.coverLimit&&s.forEach(t=>this.imageMap.get(t.id)?.camera.setCoverLimit(!0)),this.clickable&&this.placeGrid(),this.lastAction=void 0,f=!0,i(this.current)};h||u?(e.noFade||(this._fadeTo=setTimeout(w,Math.max(0,h/2*1e3))),this._to=setTimeout(b,1e3*(Math.max(u,h)+(a?(s.length-1)*this.transitionDelay:0)))):(e.noFade||w(),b())})}hasChanged(){return this.current.length!==this.images.length||this.current.some((t,e)=>t.id!==this.images[e].id)}getImage(t){const e=t.split("|"),i=e[0].split(","),r=e[1]?e[1].split(",").map(Number):[1];let s=0,n=0;return{path:this.image.$info?.path,id:i[0],width:s=Number(i[1])||s,height:n=Number(i[2])||n,isDeepZoom:"d"==i[3],isPng:"p"==i[4],isWebP:"w"==i[4],size:r,view:i[5]?i[5].split("/").map(Number):void 0,area:i[6]?i[6].split("/").map(Number):void 0,settings:Xs(this.image.$settings||{},{focus:i[7]?i[7].split("-").map(Number):void 0}),cultures:i[8]?.replace(/-/g,",")||void 0}}getCols(t,e){let i=Math.ceil(e/Math.ceil(Math.sqrt(e)));if(t==e){const e=Math.floor(Math.sqrt(t)),r=[];for(let s=e;s<i+e;s++)t%s||r.push(s);r.length&&(i=r[Math.floor(r.length/2)])}return i}printGrid(t,e){e.keepGrid||this.removeGrid();const i=t.reduce((t,e)=>t+e.size[0]*(e.size[1]??1),0),r=e.columns??(e.horizontal?t.length:this.getCols(t.length,i));this._grid.style.gridTemplateColumns=`repeat(${r}, auto)`,this._grid.textContent="",this._grid.style.removeProperty("--translate"),this._grid.style.removeProperty("--scale"),t.forEach(t=>{if(!t.id)return;this._buttons.has(t.id)||this._buttons.set(t.id,document.createElement("button"));const e=this._buttons.get(t.id);"1"!=t.size.toString()?(e.style.gridArea=`auto / auto / span ${t.size[1]} / span ${t.size[0]||t.size[1]}`,this.cellSizes.set(t.id,t.size)):(e.style.removeProperty("grid-area"),this.cellSizes.delete(t.id)),e.dataset.id=t.id,this._grid.appendChild(e)}),e.keepGrid&&this._grid.parentNode||this.micrio.insertBefore(this._grid,this.micrio.firstChild?.nextSibling??null),this.micrio.events.dispatch("grid-layout-set",this);const s=this.micrio.offsetWidth,n=this.micrio.offsetHeight,a=Math.max(0,Math.min(1,1-(e.scale??1)));this._grid.style.transform="",this._grid.childNodes.forEach(e=>{if(!e)return;const i=e,r=i.dataset.id,o=i.getBoundingClientRect(),c=t.find(t=>t.id==r),l=[a/2*o.width,a/2*o.height];c&&!c.area&&(c.area=[(o.x+l[0])/s,(o.y+l[1])/n,(o.x+o.width-l[0])/s,(o.y+o.height-l[1])/n])}),e.keepGrid||this._grid.remove()}placeGrid(){!this.clickable||this.micrio.state.$tour||this.micrio.state.$marker||this._grid.parentNode||(this.micrio.insertBefore(this._grid,this.micrio.firstChild?.nextSibling??null),this.viewUnsub=this.image.state.view.subscribe(this.updateGrid))}removeGrid(){this._grid.parentNode&&(this.viewUnsub&&this.viewUnsub(),this._grid.remove())}updateGrid(){const t=this.image.camera.getXY(0,0,!0);this._grid.style.setProperty("--translate",`translate3d(${t[0]}px, ${t[1]}px, 0)`),this._grid.style.setProperty("--scale",this.image.camera.getScale().toString()),this._grid.dispatchEvent(new CustomEvent("update"))}placeImage(t,e){const{wasm:i}=this.micrio;let r=this.imageMap.get(t.id);r&&t.area?Ks(1e3*e.delay).then(()=>{r.camera.setArea(t.area,{direct:0==e.duration||!e.forceAreaAni&&!wt(r.visible)}),e.delay&&i.render()}):(t.lang=this.micrio.lang,i.addChild(r=new Ec(i,t,{area:t.area}),this.image),this.trackImage(r));const s={duration:1e3*e.duration,timingFunction:this.timingFunction,limit:!1};if(!e.noCamAni&&!r.camera.aniDone&&r.ptr>0){const i=!!e.cover||r.camera.getCoverLimit();if(t.view||!i)r.camera.flyToView(t.view??[0,0,1,1],s).catch(()=>{});else if(t.area&&t.width&&t.height){const e=(t.area[2]-t.area[0])*this.micrio.offsetWidth/((t.area[3]-t.area[1])*this.micrio.offsetHeight);r.camera.flyToView(e<t.width/t.height?[.5,0,.5,1]:[0,.5,1,.5],s).catch(()=>{})}else r.camera.flyToCoverView(s).catch(()=>{})}return r}removeImages(t){const{wasm:e}=this.micrio;t.forEach(t=>{t.ptr>=0&&e.fadeOut(t.ptr),this._buttons.delete(t.id)}),e.render()}insideGrid(){const t=this.micrio.$current;return t==this.image||!!t&&this.imageMap.has(t.id)}async reset(t,e,i){const r=this.history[0];return this.images.forEach(t=>t.camera.stop()),this.image.camera.stop(),this.markersShown.set([]),await Si(),i||e||!this.micrio.camera?.isZoomedOut()||this.micrio.state.$tour||this.$focussed||this.hasChanged()||(t=0),this.set(r?.layout||this.image.$info?.grid,{noHistory:!0,duration:t,noCamAni:e,forceAni:i,horizontal:!!r&&r.horizontal}).then(t=>(this.depth.set(this.history.length=0),this.micrio.current.set(this.image),t))}switchToGrid(){const t=this.$focussed;if(!t)return;const e=t.camera.getView();e&&this.reset(0,!0).then(()=>{t.opts.area&&this.image.camera.setView(t.opts.area,{noLimit:!0}),t.camera.setView(e,{noLimit:!0}),this.micrio.current.set(this.image)})}async flyToMarkers(t,e,i){const r=t?.split("|").map(t=>t.trim()),s=r?.[0]??"",n=s?this.images.filter(t=>!!t.$data?.markers?.find(t=>t.tags?.includes(s))):this.images;return this.set(n.map(t=>{const e=t.$data?.markers?.find(t=>t.tags?.includes(s));return this.getString(t.$info,{view:i?void 0:e?.view})}).join(";"),{duration:e,horizontal:"h"==r?.[1]})}async back(t){const e=this.history.pop();e&&(this.depth.set(this.history.length),this.micrio.current.set(this.image),this.$focussed&&this.blur(),await this.set(e.layout,{duration:t,noHistory:!0,horizontal:e.horizontal,view:e.view}))}setTimingFunction(t){this.micrio.wasm.setGridTransitionTimingFunction(mc.Camera.TimingFunction[this.timingFunction=t])}async focus(t,e={}){if(!t)return this.back();e.coverLimit&&(e.cover=!0);const i=!e.view&&!e.cover,r=this.micrio;wt(r.visible).find(t=>t==this.image)||r.current.set(this.image);const s=this.$focussed;if(s==t)return;e.transition?.startsWith("slide-")||0!=e.duration&&(!s||r.wasm.areaAnimating(s.ptr)||this.current.includes(t))||t.camera.setArea([0,0,1,1],{noDispatch:!0,direct:!0}),s&&this.blur(),t.camera.setCoverLimit(!!e.cover),this.setTimingFunction("ease");const n=await this.transition(t,s,this.getString(t.$info,{view:e.view}),e);return r.wasm.setZIndex(t.ptr,3),this.focussed.set(t),wt(t.visible)||"crossfade"!=e.transition&&e.transition||(e.duration=0),this.set(n,{noBlur:!0,duration:e.duration,forceAreaAni:"crossfade"!=e.transition,cover:!!e.cover,coverLimit:!!e.coverLimit}).then(()=>{r.events.dispatch("grid-focus",t);const e=t.$info;this.removeGrid(),r.$current!=t&&r.current.set(t);const s=r.offsetWidth/r.offsetHeight,n=(1-e.width/e.height/s)/2;!t.camera.aniDone&&i&&t.camera.flyToFullView({duration:1e3*this.aniDurationIn}).catch(()=>{}),this.image.camera.setLimit([n,0,1-n,1])}).catch(()=>{})}async transition(t,e,i,{duration:r,view:s,transition:n,noViewAni:a,exitView:o,blur:c,cover:l}){if(!n)return i;const{wasm:h}=this.micrio;if("crossfade"==n&&(t.camera.setArea([0,0,1,1]),a=!0),s&&a&&t.camera.setView(s,{noRender:!0,noLimit:!0}),!e||"crossfade"==n)return i;const d=n.startsWith("slide")||n.startsWith("swipe"),u=n.startsWith("behind"),m=d?n.endsWith("-up")?0:n.endsWith("-down")?180:n.endsWith("-left")?270:90:void 0;if((d||u)&&h.fadeTo(t.ptr,.9999,!0),n.startsWith("slide"))t.camera.setArea(Il[m],{noDispatch:!0,direct:!0});else if(n.startsWith("swipe"))t.camera.setArea($l[m],{noDispatch:!0,direct:!0}),i=[this.getString(e.$info,{view:o??e.camera.getView(),area:Pl[m]}),this.getString(t.$info,{view:s,area:[0,0,1,1]})].join(";");else if(u){t.camera.setArea([0,0,1,1]),t.camera.setView([0,0,1,1]);const i=[this.getString(e.$info,{view:[0,0,1,1]}),this.getString(t.$info,{view:[0,0,1,1]})];"behind-left"==n&&i.reverse(),await this.set(i.join(";"),{noBlur:!0,horizontal:!0,coverLimit:l}).then(()=>Ks(200))}if(c&&!isNaN(c)&&c>0){const t=(r=r??this.nextCrossFadeDuration??this.aniDurationIn)/2,e=this.micrio.canvas.element.style;e.transition=`filter ${t}s ease`,e.filter=`blur(${c}px)`,setTimeout(()=>{e.filter="",setTimeout(()=>e.transform="",1e3*t)},1e3*t)}return i}blur(){const t=this.$focussed;t&&(this.micrio.wasm.setZIndex(t.ptr,2),this.micrio.events.dispatch("grid-blur"),this.focussed.set(void 0),this.image.camera.setLimit([0,0,1,1]),this.micrio.current.set(this.image))}tourEvent(t){const e=t.detail;e&&e.action?.startsWith("grid:")&&e.active&&this.action(e.action.slice(5),e.data,e.end-e.start)}action(t,e,i){"string"==typeof t&&(t=mc.Grid.GridActionType[t]);const r=t+(e??"");if(this.lastAction==r)return;const s=this.actionHandlers[t];s?s(e,i):console.warn("Warning: unknown grid tour event",t),this.lastAction=r}async enlarge(t,e,i=e){return this.set((this.history[this.history.length-1]?.layout||this.image.$info.grid).split(";").map((r,s)=>`${r}|${s==t?`${e},${i}`:1}`).join(";"),{noHistory:!0,keepGrid:!0,duration:500})}getRelativeView(t,e){const i=t.opts.area??[0,0,1,1],r=i[2]-i[0],s=i[3]-i[1];return[i[0]+r*e[0],i[1]+s*e[1],i[0]+r*e[2],i[1]+s*e[3]]}},Cl=class t extends HTMLElement{static get observedAttributes(){return["id","muted","data-grid","data-limited","lang"]}static{this.jsonCache=mn}get $current(){return this._current}get camera(){return this._current?.camera}constructor(){super(),this.printed=!1,this.canvases=[],this.current=vt(),this.visible=vt([]),this.canvas=new dl(this),this.events=new fl(this),this.state=new kc.Main(this),this.analytics=new Al(this),this._router=new Sl(this),this.barebone=vt(!1),this.webgl=new hl(this),this.wasm=new sl(this),this.defaultSettings=this.defaultSettings,this.loading=vt(!0),this.switching=vt(!1),this.isMuted=vt("1"==localStorage.getItem(wc)),this._lang=vt(),this.keepRendering=!1,this.initedFirst=!1,this.loadV5Album=(t,e)=>(t=>"MICRIO_ALBUM"in self?Promise.resolve(self.MICRIO_ALBUM):gn(`https://i.micr.io/album/${t}.json`))(t).then(t=>{if(!t)return;const i=t.id+"."+t.revision,r=e.path=t.organisation?.baseUrl??"https://r2.micr.io/";return e.organisation=t.organisation,e.settings.album=t,e.settings.gallery={archive:i,sort:t.sort,type:t.type,startId:e.id,isSpreads:t.isSpreads,coverPages:t.coverPages,revisions:t.published},delete e.id,this.loadArchiveBin(r,i).then(()=>this.loadGallery(e,r,!0))},t=>this.printError(t?.message||t)),this.getArchiveIndex=async(t,e=pc)=>_c.get(`${e}${t}.json`).then(t=>(t.images.forEach(t=>mn.set(`${e}${t.id}/info.json`,t)),t)),this.current.subscribe(t=>this._current=t);let t=!1;en(this.loading,{targetValue:!1}).then(()=>{this.setAttribute("data-loaded",""),this.switching.subscribe(e=>{e?this.setAttribute("data-switching",""):(t||Si().then(()=>this.events.dispatch("show",this)),t=!0,this.removeAttribute("data-switching"))});const e=this.querySelector("img.preview");e&&setTimeout(()=>e.remove(),500)})}attributeChangedCallback(t,e,i){switch(t){case"id":if(!this.isConnected||!i)return;this.printed?this.open(i):this.print();break;case"muted":this.isMuted.set(this.hasAttribute("muted"));break;case"data-grid":this.printed?this.$current?.grid?.set(i):this.print();break;case"data-limited":this.wasm?._vertexBuffer&&this.$current?.ptr&&this.wasm.setLimited(this.$current.ptr,!!i);break;case"lang":{let t=wt(this._lang);t!=i&&(this._lang.set(i),Wn.set(Bn[i]??Bn.en),i&&(Yn.includes(i)?this.setAttribute("dir","rtl"):this.removeAttribute("dir")),t&&this.events.dispatch("lang-switch",i));break}}}connectedCallback(){this.canvas.place(),(this.hasAttribute("data-router")||this.hasAttribute("data-space"))&&"false"!=this.getAttribute("data-router")&&this._router.hook(),!this.id&&!this.hasAttribute("data-gallery")||this.printed||this.print(),"muted"in this||(Object.defineProperty(this,"muted",{get(){return wt(this.isMuted)},set(t){t?this.setAttribute("muted",""):this.removeAttribute("muted")}}),this.isMuted.subscribe(t=>{this.muted=t,t?(localStorage.setItem(wc,"1"),this.events.dispatch("audio-mute")):(localStorage.removeItem(wc),this.events.dispatch("audio-unmute"))}))}addEventListener(t,e,i){super.addEventListener(t,e,i)}removeEventListener(t,e,i){super.removeEventListener(t,e,i)}destroy(){this.current.set(void 0),this._router.unhook(),this.events.enabled.set(!1),this.canvas.unhook(),this.analytics.unhook(),this.wasm.unbind(),this._ui&&dr(this._ui),delete this._ui,this.webgl.dispose(!0),this.printed=!1}loadArchiveBin(t,e){return this.printUI(!0,!0),_c.load(t,"g/"+e,t=>this._ui?.setProps?.({loadingProgress:t}))}async print(){if(this.printed)return;this.printed=!0,await Si();const t=this.getOptions();if(t.settings||(t.settings={}),t.settings.noControls&&this.state.ui.controls.set(!1),t.settings.gallery?.archive){const e=t.settings.gallery?.archive,i=/\.\d+$/.test(e),r=t.path||(kn(e.replace(/\.\d+$/,""))?"https://r2.micr.io/":"https://b.micr.io/");i&&await this.loadArchiveBin(r,e),t.settings.gallery.startId=t.id,t.grid?await this.setGrid(t,r):await this.loadGallery(t,r,i),i||delete t.settings.gallery.archive,t.path||(t.path=r),delete t.id}else t.id?.startsWith("album/")?await this.loadV5Album(t.id.replace("album/",""),t):t.id&&kn(t.id)&&!this.hasAttribute("width")&&!this.hasAttribute("height")&&await wn(t.id,t.forceInfoPath?t.path:void 0,t.settings?.forceDataRefresh).then(e=>e?.albumId?this.loadV5Album(e.albumId,t):void 0).catch(()=>{});this.keepRendering=!!t.settings.keepRendering;const e=t.id||t.gallery||t.grid;if(this.events.dispatch("print",t),void 0!==t.settings.lazyload&&"IntersectionObserver"in window){const i=new IntersectionObserver(r=>{r[0]&&r[0].isIntersecting&&(i.unobserve(this),e&&this.open(t))},{rootMargin:100*t.settings.lazyload+"% 0px"});i.observe(this)}else e&&requestAnimationFrame(()=>this.open(t))}printUI(e,i){this._ui?this._ui.setProps?.({noHTML:e,noLogo:i}):this._ui=ar(t.Svelte,{target:this,props:{micrio:this,noHTML:e,noLogo:i}})}printError(t){const e=t instanceof Bs?t.displayMessage:(t instanceof Error?t.message:t)??"An unknown error has occurred";console.error("Error:",e+(t instanceof Bs?` (${t.code}: ${t.message})`:"")),this._ui?.setProps?.({error:e})}open(t,e={}){this.printed||this.print();const i="string"==typeof t,r=this.getOptions();let s=i?{...r,id:t}:t;if(s.settings||(s.settings={}),r.settings?.gallery?.archive&&(/\.\d+$/.test(r.settings.gallery.archive)||delete r.settings.gallery.archive),i||Xs(r.settings,s.settings),this.defaultSettings&&Xs(this.defaultSettings,s.settings),this.$current&&s.id==this.$current?.id)return this.$current;e.splitScreen||e.gridView||!this.$current||this.switching.set(!0),s.settings.noGTag||this.analytics.hook(),this.printed=!0,this.printUI(!!s.settings.noUI,!!s.settings.noLogo);let n=this.canvases.find(t=>s.id&&t.id==s.id),a=!1;const o=this.canvases[0]?.grid;if(!n&&o){const t=s.id?o.images.find(t=>t.id==s.id):void 0;a=!!t,n=s.id?t:this.canvases[0],a&&!o.insideGrid()&&this.current.set(this.canvases[0])}if(!n){this.canvases.length&&(s.path=this.canvases[0].dataPath,s.lang=this.lang),this.canvases.push(n=new Ec(this.wasm,s,e.splitScreen?{secondaryTo:e.splitTo??this._current,isPassive:e.isPassive}:void 0));const t=this.state.value&&this.state.value.c.find(t=>t[0]==s.id);t&&n.state.set(t)}e.startView&&(n.state.view.set(s.settings.view=e.startView),n.ptr&&n.wasm.ready&&n.camera.setView(s.settings.view,{noRender:!0})),this.lang||(this.lang="en");const c=()=>{if(n){if(!this.webgl.gl)try{this.webgl.init()}catch(t){return void this.printError(t)}en(n.info).then(t=>{if(t&&n){if(!this.initedFirst){switch(this.canvas.hook(),this._current?.$settings?.theme){case"light":this.setAttribute("data-light-mode","");break;case"os":this.setAttribute("data-auto-scheme","")}this.initedFirst=!0}t.grid&&!n.grid&&(n.grid=new Ll(this,n)),Si().then(()=>this.dispatchEvent(new CustomEvent("load",{detail:n}))),e.splitScreen&&Si().then(()=>{n&&(o?.image.camera.aniDoneAdd&&o.image.camera.aniDoneAdd.length>0?o.image.camera.aniDoneAdd.push(()=>n?.splitStart()):n.splitStart())})}}),this.wasm.set360Orientation(e.vector?.direction??0,e.vector?.distanceX??0,e.vector?.distanceY??0),this.wasm.preventDirectionSet=!e.vector,!a||e.gridView&&o?.current.find(t=>t.id==s.id)?e.splitScreen?this.wasm.setCanvas(n):this.current.set(n):o?.focus(n,{view:s.settings?.view}).then(()=>this.current.set(n))}};return this.wasm.ready?c():this.wasm.load().then(c).catch(t=>this.printError(t)),n.noImage&&this.loading.set(!1),n}close(t){t.opts.secondaryTo?t.splitEnd():this.wasm.removeCanvas(t)}getOptions(){const t={gallery:{}},e={settings:t,id:this.id},i=(t,e,i)=>{const r=e.split(".");for(let s=0;s<r.length-1;s++)t=t[r[s]];t[r[r.length-1]]=i};for(const r in yc.STRINGS){const s=yc.STRINGS[r],n=this.getAttribute(r),a=s.f||r.replace("data-","");n&&i(s.r?e:t,a,n)}for(const r in yc.BOOLEANS){const s=yc.BOOLEANS[r],n=this.getAttribute(r),a=s.f||r.replace("data-",""),o=null!=n&&""==n||"true"==n;(o||"false"==n)&&i(s.r?e:t,a,s.n?!o:!!o)}for(const r in yc.NUMBERS){const s=yc.NUMBERS[r],n=s.f||r.replace("data-","");let a=this.getAttribute(r);void 0!==s.dN&&null==a&&(a=s.dN),null==a||isNaN(Number(a))||i(s.r?e:t,n,Number(a))}for(const r in yc.ARRAYS){const s=yc.ARRAYS[r],n=this.getAttribute(r),a=s.f||r.replace("data-","");null!=n&&i(s.r?e:t,a,n.split(",").map(t=>Number(t)))}return t.static&&(t.noUI=t.skipMeta=!0,t.hookEvents=!1),e.settings&&e.grid&&e.grid.indexOf(".")>0&&(e.settings.gallery.archive=e.grid),e}async loadGallery(t,e,i){let r=t.settings?.gallery,s=r?.archive;if(!r||!s)return;const n=t.settings;if(i){const t=await this.getArchiveIndex(s.split(".")[0],e);r.archiveLayerOffset=t.delta,s=t.images.sort("name"==r.sort?(t,e)=>t.title&&e.title?t.title<e.title?-1:t.title>e.title?1:0:0:"-name"==r.sort?(t,e)=>t.title&&e.title?t.title<e.title?1:t.title>e.title?-1:0:0:"-created"==r.sort?(t,e)=>t.created&&e.created?t.created<e.created?1:t.created>e.created?-1:0:0:(t,e)=>t.created&&e.created?t.created<e.created?-1:t.created>e.created?1:0:0).map(t=>`${t.id},${t.width},${t.height},${t.isDeepZoom?"d":""},${t.isPng?"p":t.isWebP?"w":""},${t.tileSize||""}`.replace(/\,+$/,"")).join(";")}const a=s.split(";").map(t=>t.trim());if(!i){const t=a.filter(t=>t.startsWith("http")).map(t=>gn(t));t.length&&await Promise.all(t).then(t=>t.forEach((t,e)=>{t&&(a[e]=`${t["@id"]},${t.width},${t.height}`)}))}const o=a.map(t=>t.split(",").map(t=>isNaN(t)?t:Number(t)));o.forEach((t,e)=>{e>0&&!t[2]&&t.push(...o[e-1].slice(1))});const c=t.height=Math.max(...o.map(t=>t[2]));r.type||(r.type="swipe");const l="switch"==r.type||"swipe-full"==r.type||"omni"==r.type,h=r.isSpreads,d=h&&!l?Math.round(o[0][1]/20):0,u=h?r.coverPages??0:0,m=t.width=l?Math.max(...o.map(t=>t[1]*(h?2:1))):o.reduce((t,e)=>t+e[1]+d,0);let f=0;t.gallery=o.map((t,i)=>new Ec(this.wasm,{id:t[0],path:e,width:t[1],height:t[2],isDeepZoom:"d"==t[3],isPng:"p"==t[4],isWebP:"w"==t[4],tileSize:t[5]||1024,revision:r?.revisions?.[t[0]],settings:{skipMeta:!0,gallery:r}},{isEmbed:l,useParentCamera:l,area:l?h?i-u<0||i==o.length-1&&(i-u)%2==0?[.25,0,.75,1]:(i-u)%2==0?[0,0,.5,1]:[.5,0,1,1]:[0,0,1,1]:[(f+=i>0&&(i<u||(i-u)%2==0)?d:0)/m,(c-t[2])/2/c,(f+=t[1])/m,((c-t[2])/2+t[2])/c]})),n.pinchZoomOutLimit=!0,t.gallery.length&&(n.view=sn.fromLegacy(t.gallery[Math.max(0,t.gallery.findIndex(t=>t.id==r.startId))].opts.area))}async setGrid(t,e){t.settings&&t.grid&&(t.settings.gallery?.archive==t.grid&&(this.gridInfoData=await this.getArchiveIndex(t.grid.split(".")[0],e),t.grid=this.gridInfoData.images.map(t=>Ll.getString(t,{cultures:"cultures"in t?t.cultures.join("-"):void 0})).join(";")),t.width=this.offsetWidth*this.canvas.getRatio(),t.height=this.offsetHeight*this.canvas.getRatio(),t.settings.zoomLimit=15,t.settings.minimap=!1,t.settings.initType="cover",this.removeAttribute("data-grid"))}get lang(){return wt(this._lang)}set lang(t){this.setAttribute("lang",t)}};Cl.Svelte=function(t,e){et(e,!0);const i=()=>kt(Ai(A),"$settings",h),r=()=>kt(Ai(E),"$info",h),s=()=>kt(Ai(S),"$data",h),n=()=>kt(k,"$tour",h),a=()=>kt(L,"$volume",h),o=()=>kt(w,"$visible",h),c=()=>kt(_,"$markerPopup",h),l=()=>kt(x,"$popover",h),[h,d]=_t();let u=ys(e,"noHTML",15),m=ys(e,"noLogo",23,u),f=ys(e,"loadingProgress",7,1),p=ys(e,"error",7,void 0);tt("micrio",$i(()=>e.micrio)),tt("markerImages",new Map);const g=$i(()=>"markers"==e.micrio.getAttribute("data-ui"));g&&u(!0);const v=$i(()=>"false"!=e.micrio.getAttribute("data-embeds")),{visible:w,state:b,isMuted:y}=$i(()=>e.micrio),{tour:k,marker:T,popup:_,popover:x}=b;let E=ne(void 0),S=ne(void 0),A=ne(void 0);function M(t,e){if(e)for(let i,r=0;r<e.length;r++)if(e[r].id==t||(i=M(t,e[r].children)))return i??e[r]}let I=ne(!1),$=ne(void 0);const P=[];$i(()=>e.micrio).current.subscribe(t=>{t&&(Tt(oe(E,t.info,!0),"$info",h),Tt(oe(A,void 0),"$settings",h),Ai(E)&&en(Ai(E)).then(e=>{e&&(oe(I,!0),Tt(oe(A,t.settings,!0),"$settings",h),!Ai($)&&e.organisation?.logo&&oe($,e.organisation,!0))}),Tt(oe(S,t.data,!0),"$data",h)&&P.indexOf(t.id)<0&&en(Ai(S)).then(async i=>{if(!i)return;if(P.push(t.id),await Si().then(Si),wt(e.micrio.state.popover)||wt(e.micrio.state.marker)||wt(e.micrio.state.tour))return;const r=t.$settings.start;if(r)switch(r.type){case"marker":t.state.marker.set(r.id);break;case"markerTour":const s=i.markerTours?.find(t=>t.id==r.id);s&&e.micrio.state.tour.set(s);break;case"tour":const n=i.tours?.find(t=>t.id==r.id);n&&e.micrio.state.tour.set(n);break;case"page":const a=M(r.id,i.pages);a&&e.micrio.state.popover.set({contentPage:a,showLangSelect:!0})}}))});const L=vt(kt(y,"$isMuted",h)?0:1);tt("volume",L),y.subscribe(t=>L.set(t?0:1)),tt("mediaPaused",vt(!1));let C=ne(!1),R=ne(ue([]));tt("srt",vt()).subscribe(t=>setTimeout(()=>{oe(R,t?[t]:[],!0)},20));const D=Ht(()=>i()?._360?.video),F=Ht(()=>Ai(D)?.src),O=Ht(()=>i()?.omni),z=Ht(()=>r()?.gallery),N=Ht(()=>s()?.markers?.filter(t=>!!t.positionalAudio)),V=Ht(()=>!!s()?.music?.items.length||!!Ai(N)?.length),U=Ht(()=>n()||kt(T,"$marker",h)),B=Ht(()=>!u()||g),W=Ht(()=>!(m()||r()&&u()||i()?.noLogo)),X=Ht(()=>u()||!Ai(W)||i()?.noOrgLogo?void 0:Ai($)),Y=Ht(()=>!(u()||Ai(O)||e.micrio.spaceData||n()||r()?.gallery)),j=Ht(()=>!!Ai(z)||!!Ai(O)),G=Ht(()=>!u()&&!!r()),H=Ht(()=>!u()&&!Ai(U)&&i()?.showInfo),Z=Ht(()=>!u()&&Ai(I)&&!i()?.noToolbar);var J={setProps:function(t){"error"in t&&p(t.error),void 0!==t.noHTML&&u(t.noHTML),void 0!==t.noLogo&&m(t.noLogo),void 0!==t.loadingProgress&&f(t.loadingProgress)}},K=Bc(),Q=xe(K),rt=t=>{{let e=Ht(()=>!!r().is360);Fo(t,{get volume(){return a()},get data(){return s()},get is360(){return Ai(e)}})}};vr(Q,t=>{Ai(V)&&s()&&r()&&t(rt)});var st=Ee(Q,2),nt=t=>{Ha(t,bs({get src(){return Ai(F)},get volume(){return a()},is360:!0,get width(){return r().width},get height(){return r().height}},()=>Ai(D)))};vr(st,t=>{Ai(F)&&r()&&t(nt)});var at=Ee(st,2),ot=t=>{var e=ji();yr(xe(e),1,()=>s().embeds,t=>t.uuid,(t,e)=>{Ic(t,{get embed(){return Ai(e)}})}),Gi(t,e)};vr(at,t=>{v&&s()&&s().embeds&&t(ot)});var ct=Ee(at,2),lt=t=>{Nn(t,{})};vr(ct,t=>{Ai(W)&&t(lt)});var ht=Ee(ct,2),dt=t=>{la(t,{})};vr(ht,t=>{Ai(Z)&&t(dt)});var ut=Ee(ht,2),mt=t=>{var e=ji();yr(xe(e),1,o,t=>t.uuid,(t,e)=>{Oc(t,{get image(){return Ai(e)}})}),Gi(t,e)};vr(ut,t=>{Ai(B)&&t(mt)});var ft=Ee(ut,2),pt=t=>{var e=ji();yr(xe(e),1,()=>o().filter(t=>t.$settings.minimap),t=>t.uuid,(t,e)=>{da(t,{get image(){return Ai(e)}})}),Gi(t,e)};vr(ft,t=>{Ai(Y)&&t(pt)});var gt=Ee(ft,2),bt=t=>{{let e=Ht(()=>Ai(V)||!(!Ai(F)||!Ai(D)||Ai(D).muted));Ta(t,{get hasAudio(){return Ai(e)}})}};vr(gt,t=>{Ai(G)&&t(bt)});var yt=Ee(gt,2),xt=t=>{var e=Nc(),i=xe(e),r=t=>{Mo(t,{get images(){return Ai(z)},get omni(){return Ai(O)}})};vr(i,t=>{Ai(j)&&t(r)});var s=Ee(i,2),n=t=>{Un(t,{get organisation(){return Ai(X)}})};vr(s,t=>{Ai(X)&&t(n)});var a=Ee(s,2),o=t=>{Bo(t,{get info(){return Ai(E)},get data(){return Ai(S)}})};vr(a,t=>{Ai(H)&&Ai(E)&&Ai(S)&&t(o)}),Gi(t,e)};vr(yt,t=>{(Ai(j)||Ai(X)||Ai(H)&&Ai(E)&&Ai(S))&&t(xt)});var Et=Ee(yt,2),St=t=>{var e=Vc(),i=xe(e),r=t=>{lo(t,{get marker(){return c()}})};vr(i,t=>{c()&&t(r)});var s=Ee(i,2),a=t=>{yo(t,{get tour(){return n()},get noHTML(){return u()},onminimize:t=>oe(C,!t)})};vr(s,t=>{n()&&t(a)});var o=Ee(s,2),h=t=>{rc(t,{get popover(){return l()}})};vr(o,t=>{l()&&t(h)}),Gi(t,e)};vr(Et,t=>{(c()||n()||l())&&t(St)});var At=Ee(Et,2);yr(At,16,()=>Ai(R),t=>t,(t,e)=>{La(t,{get src(){return e},get raised(){return Ai(C)}})});var Mt=Ee(At,2),It=t=>{var e=Uc(),i=xe(e),r=t=>{!function(t,e){var i=Wo(),r=_e(i);Hn(r,{name:"error"});var s=Ee(r);q(i),Ue(()=>nr(s,` ${e.message??""}`)),Gi(t,i)}(t,{get message(){return p()}})};vr(i,t=>{p()&&t(r)});var s=Ee(i,2),n=t=>{!function(t,e){const i=2*Math.PI*40,r=Ht(()=>i*(1-e.progress));var s=zc();as(s,"viewBox","0 0 100 100");var n=_e(s);as(n,"r",40),as(n,"cx",50),as(n,"cy",50);var a=Ee(n);as(a,"r",40),as(a,"cx",50),as(a,"cy",50),as(a,"stroke-dasharray","251.32741228718345px"),q(s),Ue(()=>as(a,"stroke-dashoffset",`${Ai(r)??""}px`)),Rr(1,s,()=>Fn,()=>({delay:500})),Rr(2,s,()=>Fn),Gi(t,s)}(t,{get progress(){return f()}})};vr(s,t=>{f()<1&&t(n)}),Gi(t,e)};vr(Mt,t=>{(p()||f()<1)&&t(It)}),Gi(t,K);var $t=it(J);return d(),$t},Cl.VERSION=fc,customElements.define("micr-io",Cl),console.info("%c◈%c Micrio %cv5.5.1 - https://micr.io/","color: #00d4ee","color: #c5ff5b","color: inherit")}();})(`html{--micrio-color:#fff;--micrio-color-hover:#45a4e4;--micrio-border-radius:4px;--micrio-background:#292929bf;--micrio-background-filter:blur(8px);--micrio-popover-background:#292929bf;--micrio-scrubber-background:#ffffff40;--micrio-icon-size:18px;--micrio-text-align:left;--micrio-line-height:1.5em;--micrio-border-margin:16px;--micrio-button-size:48px;--micrio-button-shadow:0 4px 8px #00000054;--micrio-marker-size:16px;--micrio-marker-text-color:#fff;--micrio-marker-text-shadow:0px 2px 4px #0009;--micrio-marker-highlight:#00d4ee;--micrio-marker-color:#fff;--micrio-marker-border-radius:100%;--micrio-marker-border-color:#fff3;--micrio-marker-border-size:8px;--micrio-marker-icon:none;--micrio-marker-transition:background-color .25s ease, opacity .15s ease, border-width .15s ease, width .15s ease, height .15s ease;--micrio-popup-shadow:0 8px 16px #00000054;--micrio-popup-padding:16px;--micrio-progress-bar-background:#ffffff40;--micrio-progress-bar-height:4px;--micrio-waypoint-size:120px}micr-io[data-light-mode]{--micrio-color:#000;--micrio-color-hover:#196da6;--micrio-background:#ffffffa8;--micrio-progress-bar-background:#00000040;--micrio-popover-background:#d3d3d3bf;--micrio-scrubber-background:#ffffff80}@media (prefers-color-scheme:light){micr-io[data-auto-scheme]{--micrio-color:#000;--micrio-color-hover:#196da6;--micrio-background:#ffffffa8;--micrio-progress-bar-background:#00000040;--micrio-popover-background:#d3d3d3bf}}@media (width<=500px){html{--micrio-border-margin:5px;--micrio-button-size:48px}}micr-io{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;backface-visibility:hidden;background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%;min-height:200px;display:block;position:relative;overflow:hidden;container-type:size}micr-io,micr-io button{font-family:var(--micrio-font-family,inherit);font-size:var(--micrio-font-size,inherit);background-color:var(--micrio-background-color,transparent)}micr-io h3{font-weight:600}micr-io[dir=rtl]{--micrio-text-align:right}canvas.micrio{backface-visibility:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important}micr-io:not([static]){overscroll-behavior:none}micr-io[data-hooked]:not([data-panning])>canvas.micrio{cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none}micr-io[data-panning]{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}micr-io[data-hooked][data-can-pan]>canvas.micrio{-ms-touch-action:pan-y;touch-action:pan-y;overscroll-behavior:initial}micr-io>.micrio-grid{grid-gap:0;will-change:transform;transform-origin:0 0;--translate:none;--scale:1;width:100%;height:100%;transform:var(--translate) scale3d(var(--scale), var(--scale), 1);grid-auto-flow:dense;display:grid;position:absolute;top:0;left:0}micr-io>.micrio-grid>button{cursor:pointer;background:0 0;border:none;grid-area:auto/auto/span 1/span 1;margin:0;padding:0}a.micrio-logo{top:calc(var(--micrio-border-margin) * 2);left:calc(var(--micrio-border-margin) * 2);z-index:2;cursor:pointer;width:22px;height:22px;transition:transform .25s;display:block;position:absolute}a.micrio-logo:hover{transform:rotate(-90deg)}a.micrio-logo:before,a.micrio-logo:after{content:"";will-change:transform;box-sizing:unset;display:block;position:absolute;transform:rotate(45deg)}a.micrio-logo:before{border:3px solid #00d4ee;width:16px;height:16px}a.loading.micrio-logo:before{animation:1s ease-out infinite micrio-logo-spin}a.micrio-logo:after{background:#c5ff5b;outline:1px solid #c5ff5b;width:6px;height:6px;top:8px;left:8px}a.loading.micrio-logo:after{animation:.5s ease-out infinite micrio-logo-spin}@keyframes micrio-logo-spin{0%{transform:rotate(45deg)}to{transform:rotate(135deg)}}a.micrio-logo-org{top:calc(var(--micrio-border-margin) * 2);right:calc(var(--micrio-border-margin) * 2);z-index:1;display:block;position:absolute}img.micrio-logo-org{max-height:64px;display:block}svg.micrio-icon{vertical-align:-.125em;height:1em;display:inline-block;overflow:visible}svg.small.micrio-icon{height:.75em}menu.micrio-menu{margin:0;padding:0;transition:background .2s,box-shadow .2s}.micrio-menu-action.micrio-menu{cursor:pointer;color:inherit;text-shadow:inherit;box-sizing:border-box;text-align:center;background:0 0;border:none;border-radius:0;padding:0 24px;font-family:inherit;font-size:.9em;text-decoration:none;display:block}@media (width<=500px){menu.micrio-menu{font-size:1em}.micrio-menu-action.micrio-menu{width:100%;margin-bottom:10px;padding:6px 0}strong.micrio-menu>svg{display:none}.items>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){font-size:1em}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){border-bottom:1px solid #ffffff80;margin-top:24px;font-size:1.5em}}@media (width>=501px){div.items.micrio-menu{max-height:calc(100vh - 160px);overflow:hidden auto}menu.micrio-toolbar>menu.micrio-menu{color:#fff;margin-right:var(--micrio-border-margin);border-radius:var(--micrio-border-radius);overflow:hidden}menu.micrio-toolbar>menu.micrio-menu:hover,menu.micrio-toolbar>menu.micrio-menu:focus-within{-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-background);box-shadow:var(--micrio-button-shadow)}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu){position:relative}menu.micrio-toolbar>menu.micrio-menu>.micrio-menu-action:where(.micrio-menu)>strong:where(.micrio-menu){margin:0 -5px;padding:5px}menu.micrio-toolbar>menu.micrio-menu:hover .micrio-menu-action:where(.micrio-menu),menu.micrio-toolbar>menu.micrio-menu:focus-within .micrio-menu-action:where(.micrio-menu){text-shadow:none;color:var(--micrio-color)}strong.micrio-menu>svg{margin-left:10px;line-height:2px}menu.micrio-menu{float:left;position:relative}menu.micrio-menu:not(:focus-within):not(:hover) .items:where(.micrio-menu){display:none}.micrio-menu-action.micrio-menu{height:var(--micrio-button-size);line-height:var(--micrio-button-size);width:100%;text-align:var(--micrio-text-align);white-space:pre;font-weight:600}.items menu.micrio-menu{float:none}.items .micrio-menu-action.micrio-menu{width:100%}.micrio-menu-action.micrio-menu:hover,.micrio-menu-action.micrio-menu:focus{text-shadow:none!important;color:var(--micrio-color-hover)!important}}.micrio-button{cursor:pointer;box-sizing:border-box;vertical-align:bottom;font:inherit;touch-action:none;color:var(--micrio-color);background:var(--micrio-button-background,var(--micrio-background,none)) var(--background,none) center center no-repeat;min-width:var(--micrio-button-size);height:var(--micrio-button-size);font-size:90%;line-height:var(--micrio-button-size);border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background-size:24px;border:none;margin:0;padding:0 8px;text-decoration:none;transition:opacity .25s;display:inline-block;position:relative}.micrio-button:hover{outline:none}.micrio-button.transparent.micrio-button,.micrio-button.transparent.micrio-button:hover{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#0000}.micrio-button>*{transition:opacity .25s}.micrio-button:disabled{pointer-events:none;cursor:default}.micrio-button:disabled>*{opacity:.4}.micrio-button.no-click.micrio-button{pointer-events:none}img.micrio-button{pointer-events:none;max-width:100%;max-height:100%;margin:0 auto;display:block}.micrio-button>*{width:var(--micrio-icon-size);font-size:var(--micrio-icon-size);fill:var(--micrio-color);margin:0 auto;display:block;height:var(--micrio-icon-size)!important}.micrio-button.active.micrio-button{color:var(--micrio-color-hover)}.micrio-button.active.micrio-button svg{fill:var(--micrio-color-hover)}@media (hover:hover){.micrio-button:hover{background-color:var(--micrio-button-background-hover,var(--micrio-button-background,var(--micrio-background)));color:var(--micrio-color-hover)}.micrio-button:hover svg{fill:var(--micrio-color-hover);stroke:var(--micrio-color-hover)}.micrio-button:focus{outline:1px solid var(--micrio-color-hover)}}menu.micrio-toolbar{top:calc(var(--micrio-border-margin) - (var(--micrio-button-size) / 2 - 27px));left:var(--micrio-border-margin);color:#fff;text-shadow:1px 1px 2px #000;z-index:1;margin:0;padding:0;transition:transform .25s;position:absolute}@media (width<=500px){.micrio-button.toggle{top:var(--micrio-border-margin);width:34px;height:34px;box-shadow:none;z-index:2;position:absolute;left:0}.micrio-button.toggle.indent{left:35px}menu.micrio-toolbar{box-sizing:border-box;width:100%;height:100%;-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);z-index:1;background:#000000bf;padding:32px 0;top:0;left:0;overflow:hidden auto;transform:translate(0,0)}menu.micrio-toolbar:not(.shown){transform:translate3d(calc(-100% - var(--micrio-border-margin) * 2), 0, 0)}}@media (width>=501px){menu.indent.micrio-toolbar{margin-left:calc(var(--micrio-border-margin) * 2 + 25px)}menu.micrio-toolbar>.micrio-menu:not(:hover)>button.micrio-menu{margin-bottom:-15px}}canvas.micrio-minimap{bottom:var(--micrio-border-margin);transform-origin:100% 100%;cursor:move;cursor:-webkit-grab;cursor:-moz-grab;cursor:-ms-grab;cursor:grab;-ms-content-zooming:none;-ms-touch-action:none;touch-action:none;border-radius:var(--micrio-border-radius);background-size:100%;transition:opacity .2s;display:block;position:absolute;right:5px}canvas:not(:hover).hidden.micrio-minimap{opacity:0;pointer-events:none}canvas.dragging.micrio-minimap{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:-ms-grabbing;cursor:grabbing}canvas.controls.micrio-minimap{right:calc(var(--micrio-border-margin) + var(--micrio-button-size) + 8px)}@media (width<=800px){canvas.micrio-minimap{pointer-events:none;right:65px;transform:scale(.5)}}div.micrio-button-group{box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background:var(--micrio-button-background,var(--micrio-background,none))}div.micrio-button-group:empty{display:none}div.micrio-button-group>.micrio-button{box-shadow:none;--micrio-background-filter:none;--micrio-button-background:none;display:block}div.micrio-button-group .micrio-button{border-radius:0}div.micrio-button-group .micrio-button:first-child{border-radius:var(--micrio-border-radius) var(--micrio-border-radius) 0 0}div.micrio-button-group .micrio-button:last-child{border-radius:0 0 var(--micrio-border-radius) var(--micrio-border-radius)}@media (width<=500px){div.micrio-button-group>*{height:calc(var(--micrio-button-size) - 4px)}div.micrio-button-group .micrio-button:first-child{padding-top:0}div.micrio-button-group .micrio-button:last-child{padding-bottom:0}}aside.micrio-controls{right:var(--micrio-border-margin);bottom:var(--micrio-border-margin);direction:rtl;margin:0;padding:0;transition:transform .5s,opacity .5s;position:absolute}aside.primary.micrio-controls:not(.portrait){right:calc(50% + var(--micrio-border-margin))}aside.primary.portrait.micrio-controls{bottom:calc(50% + var(--micrio-border-margin))}micr-io[data-switching]>aside.micrio-controls,micr-io[data-tour-active]>aside.micrio-controls{opacity:0;pointer-events:none}aside.micrio-controls>menu,aside.micrio-controls>button{width:var(--micrio-button-size);margin:8px 0;padding:0;display:block}menu.popout.micrio-controls{width:var(--micrio-button-size);height:var(--micrio-button-size);white-space:pre;pointer-events:none;box-shadow:var(--micrio-button-shadow);border-radius:var(--micrio-border-radius);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);direction:rtl;padding:0}menu.popout.micrio-controls:focus-within{pointer-events:all}menu.popout.micrio-controls button{pointer-events:all;--micrio-button-shadow:none;--micrio-background-filter:none;transition:border-radius .2s,opacity .2s}menu.popout.micrio-controls:hover>button:first-child{border-radius:0 var(--micrio-border-radius) var(--micrio-border-radius) 0}menu.popout.micrio-controls>:not(:first-child){border-radius:0;padding:0;transition:opacity .2s;display:inline-block}menu.popout.micrio-controls>button:last-child{border-radius:var(--micrio-border-radius) 0 0 var(--micrio-border-radius)}menu.popout.micrio-controls:not(:focus-within)>:not(:first-child){pointer-events:none;opacity:0}div.micrio-subtitles{text-align:center;color:#fff;pointer-events:none;width:100cqw;transition:transform .2s;position:absolute;bottom:50px;left:50cqw;transform:translate(-50%)}div.raised.micrio-subtitles{transform:translate3d(-50%, calc(-1 * var(--micrio-button-size)), 0)}div.micrio-subtitles p:where(.micrio-subtitles){-webkit-box-decoration-break:clone;box-decoration-break:clone;white-space:pre-wrap;text-shadow:2px 2px 1px #0005;font-size:2.5em;line-height:inherit;background-color:#0009;margin:.5em 0;padding:0 14px;display:inline}@media (width<=640px){div.micrio-subtitles{width:95cqw;font-size:.7em}}div.container.micrio-progress-bar{width:auto;color:var(--micrio-color);background:var(--micrio-background);cursor:default;flex:1;align-items:center;line-height:8px;display:flex}div.bars.micrio-progress-bar{height:var(--micrio-progress-bar-height);background:var(--micrio-progress-bar-background);flex:1;display:flex;position:relative}div.bars.micrio-progress-bar>*{box-sizing:border-box;cursor:pointer;width:100%;height:100%;display:block;position:relative;overflow:hidden}div.bars.micrio-progress-bar>:before{content:" ";background:var(--micrio-color);pointer-events:none;height:100%;width:var(--progress,0%);will-change:width;display:block;position:absolute}div.bars.micrio-progress-bar:after{content:"";width:16px;height:16px;left:var(--progress);background-color:var(--micrio-color);pointer-events:none;border-radius:8px;display:block;position:absolute;top:50%;transform:translate(-50%,-50%)}div.time.micrio-progress-bar{text-align:center;font-variant-numeric:tabular-nums;min-width:50px;padding:0 10px;font-size:90%;display:block}aside.micrio-media-controls{cursor:default;background:var(--micrio-background);align-items:center;margin:0;display:flex;position:relative}aside.micrio-media-controls>button{border:none;border-radius:0;margin:0}aside.micrio-media-controls>button:last-child{margin-right:16px}aside.micrio-media-controls>*{--micrio-button-background:none;--micrio-background-filter:none;--micrio-button-shadow:none}:fullscreen>aside.micrio-media-controls{border-radius:var(--micrio-border-radius);width:430px;max-width:90cqw;position:absolute;bottom:5px;left:50%;transform:translate(-50%)}svg.micrio-media-controls{pointer-events:none;width:42px;height:42px;position:absolute;top:-1px;left:-1px;transform:rotate(-90deg)}circle.micrio-media-controls{stroke-width:2px;stroke:#fff;fill:#0000;stroke-dasharray:119.4 119.4;transform-origin:50%;transition:stroke-dashoffset .25s linear}figure.micrio-media{width:100%;margin:0;display:block;position:relative}figure.micrio-media div:where(.micrio-media){cursor:pointer}figure.micrio-media div.videotour:where(.micrio-media){display:flex}figure.micrio-media:fullscreen div:where(.micrio-media){flex-direction:column;width:100vw;height:100vh;display:flex}figure.micrio-media:fullscreen div:where(.micrio-media)>:first-child{flex:1}.marker-popup>figure.micrio-media>div:where(.micrio-media){width:100%}iframe.micrio-media,video.micrio-media{max-width:unset;display:block}figure.is360.micrio-media{width:360px;position:absolute;bottom:5px;left:50%;transform:translate(-50%)}figure.is360.micrio-media video:where(.micrio-media){width:200px;height:200px;display:none}iframe.hooked.micrio-media{pointer-events:none}figcaption.micrio-media{text-align:center;color:var(--micrio-color);margin:.5em 1em;font-size:90%;font-style:italic}:not(.micrio-popover)>figure.micrio-media>figcaption:where(.micrio-media)>*,.micrio-popover figure.micrio-media{margin:0}aside.micrio-media{width:100%;display:flex}aside.inside.micrio-media{position:absolute;transform:translateY(-100%)}div.show-play.micrio-media{cursor:pointer;background:#0008;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}div.show-play.micrio-media>button.micrio-button{transform:scale(2)}figure.micrio-media:not(.media-micrio) button.micrio-button{white-space:pre;--micrio-background-filter:none;--micrio-button-shadow:none;border:none;border-radius:0;margin:0}figure.media-micrio.micrio-media{text-align:var(--micrio-text-align)}article.micrio-article{text-align:var(--micrio-text-align);line-height:var(--micrio-line-height,1.5em)}article.micrio-article>:first-child{margin-top:0}article.micrio-article>:last-child{margin-bottom:0}article.micrio-article p a{color:var(--micrio-color-hover,inherit);word-wrap:break-word}main.micrio-marker-content{padding:var(--micrio-popup-padding);-webkit-user-select:text;user-select:text;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);box-sizing:border-box;text-align:var(--micrio-text-align);padding-bottom:0;position:relative;overflow-y:auto}main.micrio-marker-content>*{--micrio-button-background:none;--micrio-background-filter:none;--micrio-button-shadow:none}main.micrio-marker-content .micrio-progress-bar.container{-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0}main.micrio-marker-content::-webkit-scrollbar{background-color:#0000;width:10px}main.micrio-marker-content::-webkit-scrollbar-thumb{background:var(--micrio-color);border-radius:var(--micrio-border-radius);margin-top:10px}main.empty.micrio-marker-content{width:auto}main.micrio-marker-content h1:where(.micrio-marker-content){margin:0 0 1.25em;font-size:1.5em;font-weight:600}main.micrio-marker-content>figure.micrio-media{margin:calc(-1 * var(--micrio-popup-padding));--micrio-background:transparent;width:auto;margin-bottom:0}main.micrio-marker-content>figure.micrio-media:not(.media-video):not(:last-child)>:last-child:not(figcaption){margin-bottom:var(--micrio-popup-padding);background:var(--micrio-background);padding:0 var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media.media-video{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content>figure.micrio-media>div>aside.micrio-media{--micrio-background:transparent}main.micrio-marker-content>article:last-child{margin-bottom:var(--micrio-popup-padding)}main.micrio-marker-content p{white-space:pre-line}main.micrio-marker-content figure.hidden{display:none}main.micrio-marker-content figure>div.micrio-media>:first-child{width:100%}button.micrio-marker-content{margin:0 calc(-1 * var(--micrio-popup-padding)) var(--micrio-popup-padding) calc(-1 * var(--micrio-popup-padding));padding:0}button.micrio-marker-content:disabled{cursor:default}figcaption.micrio-marker-content{margin-bottom:var(--micrio-popup-padding);text-align:center;padding:10px;font-size:.9em;font-style:italic}section.micrio-marker-content{margin-bottom:var(--micrio-popup-padding);grid-template-columns:repeat(auto-fit,minmax(100px,1fr));justify-items:center;gap:5px;display:grid}section.micrio-marker-content button:where(.micrio-marker-content){color:inherit;cursor:pointer;border:none;width:100%;margin:0;display:block}section.micrio-marker-content figure:where(.micrio-marker-content){margin:0;padding:0}section.micrio-marker-content img:where(.micrio-marker-content){object-fit:cover;width:100%;display:block}@media (width<=500px){section.micrio-marker-content{float:right;width:100px;margin-left:var(--micrio-border-margin);display:block}section.micrio-marker-content>button:where(.micrio-marker-content):not(:first-child),section.micrio-marker-content figcaption:where(.micrio-marker-content){display:none}}div.micrio-marker-popup{cursor:auto;pointer-events:all;top:var(--micrio-border-margin);left:var(--micrio-border-margin);display:block;position:absolute}div.destroying.micrio-marker-popup{pointer-events:none}div.micrio-marker-popup>main{max-height:80cqh}aside.micrio-marker-popup{padding:var(--micrio-border-margin)}aside.micrio-marker-popup progress:where(.micrio-marker-popup){display:none}@media (width>=501px){div.micrio-marker-popup{width:440px;min-width:20%}aside.micrio-marker-popup{padding-top:0;position:absolute;top:0;left:100%}aside.micrio-marker-popup>.micrio-button{margin:0 0 8px;padding:0;display:block}}div.micrio-marker-popup>main>:not(h3){transition-property:margin-top,margin-bottom,height,opacity;transition-duration:.5s;transition-timing-function:ease;overflow:hidden}div.minimized.micrio-marker-popup>main>:not(h3){opacity:0;margin-top:0;margin-bottom:0}@media (width<=500px){aside.micrio-marker-popup{margin-bottom:var(--micrio-border-margin);flex-direction:row-reverse;align-items:center;padding:0;display:flex;position:relative}aside.micrio-marker-popup progress:where(.micrio-marker-popup){opacity:0;pointer-events:none;flex:1;display:block}aside.micrio-marker-popup .micrio-tour-controls{display:flex;margin-bottom:0!important}aside.micrio-marker-popup .micrio-button{height:var(--micrio-button-size);margin:0 0 0 8px;padding:0!important;display:block!important}div.micrio-marker-popup{width:auto;right:var(--micrio-border-margin);bottom:calc(var(--micrio-button-size) + 2 * var(--micrio-border-margin));flex-direction:column;justify-content:space-between;display:flex}div.micrio-marker-popup>main{max-height:40vh}div.micrio-marker-popup>main>:not(h3){overflow:visible}}button.tour-step.micrio-marker-popup{vertical-align:middle;cursor:default;height:auto;line-height:normal}ol.micrio-serial-tour{color:var(--micrio-color);text-shadow:var(--micrio-marker-text-shadow);margin:0;list-style-type:decimal-leading-zero;position:absolute;bottom:75px;left:0}ol.micrio-serial-tour>li:where(.micrio-serial-tour){white-space:pre;height:1.5em;transition:height .25s,opacity .25s .25s}ol.micrio-serial-tour li.active:where(.micrio-serial-tour){font-weight:700}.minimized>ol.micrio-serial-tour>li:where(.micrio-serial-tour):not(.active){opacity:0;height:0;transition:height .25s .25s,opacity .25s}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour){font:inherit;color:inherit;text-shadow:inherit;cursor:pointer;background:0 0;border:none;display:inline}ol.micrio-serial-tour li:where(.micrio-serial-tour) button:where(.micrio-serial-tour):hover{text-decoration:underline}aside.micrio-media-controls.micrio-serial-tour>figure.micrio-media{display:none}div.micrio-tour{bottom:var(--micrio-border-margin);max-width:calc(100% - var(--micrio-border-margin) * 2);box-sizing:border-box;border-radius:var(--micrio-border-radius);box-shadow:var(--micrio-button-shadow);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);background-color:var(--micrio-button-background,var(--micrio-background,none));padding:0;transition:transform .2s;display:flex;position:absolute;left:50%;transform:translate(-50%)}div:not(:hover).minimized.micrio-tour{transform:translate3d(-50%, calc(100% + var(--micrio-border-margin)), 0);pointer-events:none}.serial-tour.micrio-tour>*{--micrio-background:none}.serial-tour.minimized.micrio-tour{transform:translate3d(0, calc(100% + var(--micrio-border-margin)), 0)}.serial-tour.micrio-tour,.video-tour.micrio-tour{width:500px}div.micrio-tour>*{--micrio-button-background:none}div.micrio-tour button{white-space:pre;--micrio-background-filter:none;--micrio-button-shadow:none;border:none;border-radius:0;margin:0}article.scroll-tour.micrio-tour{scroll-snap-type:y mandatory;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden scroll}button.micrio-button.scroll-tour-end{position:absolute;top:5px;right:5px}article.micrio-tour>div.micrio-marker-popup{scroll-snap-align:center;margin:20cqh 50px 50cqh;position:relative!important}article.micrio-tour>div.micrio-marker-popup:nth-child(2n){margin-left:auto}article.micrio-tour>div.micrio-marker-popup>aside{display:none}div.micrio-dial{bottom:var(--micrio-border-margin);width:320px;max-width:calc(100vw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));max-width:calc(100cqw - calc(2 * (var(--micrio-button-size) + 4 * var(--micrio-border-margin))));height:calc(var(--micrio-button-size) * .6);touch-action:none;cursor:w-resize;background-color:#0000;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}div.micrio-dial:before,div.micrio-dial:after{content:"";background-position:var(--micrio-dial-offset,0px);width:100%;display:block;position:absolute}div.micrio-dial:before{background-image:repeating-linear-gradient(90deg,#8888 0% .5%,#0000 1% 2.5%);height:50%;top:25%}div.micrio-dial:after{background-image:repeating-linear-gradient(90deg,#fff8 0% .5%,#0000 1% 20%);height:100%}span.micrio-dial{line-height:calc(var(--micrio-button-size) * .6);color:var(--micrio-color);opacity:.85;pointer-events:none;text-shadow:1px 1px 3px #000,-1px -1px 3px #000;font-size:smaller;display:block;position:absolute;bottom:0;left:50%;transform:translate(calc(5px - 50%))}ul.micrio-gallery{bottom:var(--micrio-border-margin);background:var(--micrio-background);border-radius:var(--micrio-border-radius);color:var(--micrio-color);touch-action:none;width:520px;max-width:calc(100cqw - 50px);margin:0;padding:0 16px;list-style-type:none;transition:opacity .25s;display:flex;position:absolute;left:50%;transform:translate(-50%)}@media (width<=500px){ul.micrio-gallery{width:auto;left:5px;right:52px;transform:none}div.hidden.micrio-gallery>ul:where(.micrio-gallery){transition-delay:.25s}}li.micrio-gallery{line-height:var(--micrio-button-size);text-align:center;opacity:.5;flex:1;width:0;height:48px;padding:0;font-size:32px;transition:opacity .25s;display:block;position:relative}li.active.micrio-gallery{opacity:1;transition-duration:0s}li.micrio-gallery>button:where(.micrio-gallery){color:inherit;cursor:pointer;pointer-events:none;background:0 0;border:none;width:100%;min-width:48px;height:48px;padding:0;position:absolute;left:50%;transform:translate(-50%)}li.hover.micrio-gallery>button:where(.micrio-gallery){pointer-events:all}@media (hover:hover){li.hover.micrio-gallery{opacity:1;transition-duration:0s}}button.micrio-gallery:not(.bullet){width:var(--micrio-button-size);height:var(--micrio-button-size);box-sizing:border-box;background:var(--micrio-scrubber-background);border-radius:var(--micrio-border-radius);touch-action:none;border:none;transition:left .15s,background-color .2s;position:absolute;transform:translate(-50%)}ul.micrio-gallery>button:where(.micrio-gallery){cursor:ew-resize;top:0;left:0}button.angular.micrio-gallery{color:#444;cursor:move;padding:0;font-size:32px;line-height:42px;bottom:42px;left:50%}button.micrio-gallery:not(.bullet):hover{background:#eee8}button:not(.bullet).dragging.micrio-gallery{transition:none}div.micrio-gallery{transition:opacity .5s;display:contents}div.hidden.micrio-gallery:not(:hover)>*,div.micrio-gallery>button.gallery-btn:disabled{opacity:0;pointer-events:none}div.micrio-gallery>button.gallery-btn{position:absolute;top:50%;transform:translateY(-50%)}div.micrio-gallery>button.gallery-btn.arrow-left{left:var(--micrio-border-margin)}div.micrio-gallery>button.gallery-btn.arrow-right{right:var(--micrio-border-margin)}details.micrio-details{bottom:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);-webkit-user-select:text;user-select:text;white-space:normal;box-sizing:border-box;max-width:410px;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);font-size:.9em;transition:all .5s;position:absolute}details.micrio-details summary:where(.micrio-details){cursor:pointer;list-style:none}details.micrio-details summary:where(.micrio-details)::-webkit-details-marker{display:none}details.micrio-details small:where(.micrio-details){font-style:italic;font-weight:400;display:block}details.micrio-details>:where(.micrio-details){text-overflow:ellipsis;margin:0;overflow:hidden}details.micrio-details a{color:var(--micrio-color-hover,inherit)}details.micrio-details button{position:absolute;top:0;left:calc(100% + 8px)}@media (width<=600px){details.micrio-details{max-width:calc(100% - 10px)}details.micrio-details:not([open]) cite:where(.micrio-details){display:none}details.micrio-details:not([open]) summary:where(.micrio-details)::marker{content:"?";margin-right:5px;font-size:20px;font-weight:700;line-height:20px;display:inline-block}details.micrio-details:not([open]) summary:where(.micrio-details)::-webkit-details-marker{content:"?";margin-right:5px;font-size:20px;font-weight:700;line-height:20px;display:inline-block}details.micrio-details button{position:absolute;inset:auto 0 calc(100% + 8px) auto}}div.micrio-error{color:#fff;text-align:center;white-space:pre-wrap;-webkit-user-select:text;user-select:text;z-index:10;background:#000000bf;border:1px solid #fff;border-radius:5px;padding:10px;line-height:24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}div.micrio-error svg{vertical-align:middle;width:24px;height:24px;fill:var(--micrio-color);margin-right:10px}@media screen and (width<=520px){div.micrio-error{box-sizing:border-box;width:90%}}figure.micrio-micrio-gallery{position:relative}micr-io.micrio-micrio-gallery{background:0 0;width:100%;height:100%;display:block}micr-io.micrio-micrio-gallery ul.micrio-gallery{--micrio-border-margin:16px}figcaption.micrio-micrio-gallery{top:var(--micrio-border-margin);left:var(--micrio-border-margin);padding:var(--micrio-popup-padding);box-sizing:border-box;max-width:410px;color:var(--micrio-color);background:var(--micrio-background);-webkit-backdrop-filter:var(--micrio-background-filter);backdrop-filter:var(--micrio-background-filter);box-shadow:var(--micrio-popup-shadow);border-radius:var(--micrio-border-radius);position:absolute}@media (width>=501px){micr-io.micrio-micrio-gallery:not(:fullscreen)>aside{position:fixed}}@media (width<=501px){figcaption.micrio-micrio-gallery{max-width:calc(100% - 3 * var(--micrio-border-margin) - var(--micrio-button-size))}}dialog.micrio-popover::backdrop{color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:.2s forwards micrio-popover-fadeInBg}@keyframes micrio-popover-fadeInBg{0%{background:0 0}to{background:var(--micrio-popover-background)}}@keyframes micrio-popover-fadeIn{0%{opacity:0}to{opacity:1}}dialog.micrio-popover{pointer-events:all;background:0 0;border:none;max-width:90cqw;max-height:90cqh;padding:0;animation:.5s forwards micrio-popover-fadeIn;overflow:visible}dialog.micrio-popover div.micrio-media>:first-child{border-radius:var(--micrio-border-radius);overflow:hidden}dialog.micrio-popover div.micrio-media>aside{--micrio-background:none;--micrio-button-background:none}dialog.page.article.micrio-popover figure.media-video iframe{width:100%}aside.micrio-popover{--micrio-background-filter:none;z-index:1;position:absolute}dialog.micrio-popover:not(.article){display:flex}dialog.micrio-popover:not(.article) figure>div.micrio-media{height:100%}@media (width>=640px){aside.micrio-popover{margin-left:var(--micrio-border-margin);display:block;top:0;left:100%}aside.inside.micrio-popover{margin-left:0;margin-top:var(--micrio-border-margin);margin-right:var(--micrio-border-margin);top:0;left:auto;right:0}aside.micrio-popover:not(.inside){z-index:2;position:absolute;top:0;left:100%}aside.micrio-popover>.micrio-button{margin:0 0 8px;padding:0;display:block}dialog.micrio-popover:not(.article){width:calc(85cqw - 56px);height:47.8125cqw}dialog.micrio-popover>main{width:25cqw;min-width:unset;max-width:320px}dialog.micrio-popover>main>h1{margin-right:55px}}@media (width<=639px){aside.micrio-popover{top:var(--micrio-border-margin);right:var(--micrio-border-margin);position:fixed}aside.micrio-popover .micrio-button{height:var(--micrio-button-size);box-shadow:var(--micrio-button-shadow);margin-left:8px;border-radius:var(--micrio-border-radius)!important;padding:0!important;display:inline-block!important}dialog.micrio-popover:not(.article){flex-direction:column;width:100%;height:100%}dialog.micrio-popover:not(.article) figure.micrio-media{flex:1}}dialog.micrio-popover>figure{flex:1;margin:0;position:relative}dialog.micrio-popover>figure>div.micrio-media>:first-child{width:100%;height:calc(100% - var(--micrio-button-size))}dialog.micrio-popover>figure>div.micrio-media>micr-io{height:100%!important}@media (aspect-ratio>=16/9){dialog.micrio-popover:not(.article){width:133.333cqh;height:75cqh}}@media (width<=639px){dialog.micrio-popover div.micrio-media>:first-child{border-radius:0}dialog.micrio-popover:not(.article)>:first-child{flex-direction:column;justify-content:center;height:50cqh}dialog.micrio-popover:not(.article)>figure:first-child{flex-direction:column;flex:none;display:flex}}dialog.article.micrio-popover>article{text-shadow:none;color:var(--micrio-color);background:var(--micrio-background);box-sizing:border-box;border-radius:var(--micrio-border-radius);max-height:calc(90vh - 48px);padding:20px;overflow:hidden auto}@media (width>=640px){dialog.article.micrio-popover{width:540px}}dialog.article.micrio-popover h2:where(.micrio-popover){text-align:center}dialog.article.micrio-popover article img{width:100%;height:auto}menu.micrio-popover{margin:10px 0;padding:0;list-style:none}menu.micrio-popover>.micrio-button{margin-right:10px}menu.right.micrio-popover{text-align:right}menu.right.micrio-popover>.micrio-button{margin:0 0 0 10px}dialog.gallery.micrio-popover{width:100%;height:100%;max-width:unset;max-height:unset}div.micrio-marker{transform:translate3d(calc(var(--x,0) - 50%), calc(var(--y,0) - 50%), 0) scale3d(var(--scale,1), var(--scale,1), 1);will-change:transform;display:block;position:absolute;top:0;left:0}div.micrio-marker:not(.cluster):not(.no-fade){animation:.25s forwards micrio-marker-fadeIn}div.overlapped.micrio-marker{display:none}@keyframes micrio-marker-fadeIn{0%{opacity:0}to{opacity:1}}div.behind.micrio-marker{pointer-events:none;opacity:0!important}div.mat3d.micrio-marker{transform:var(--mat);transform-style:preserve-3d;top:50%;left:50%}div.mat3d.micrio-marker>button:where(.micrio-marker){position:absolute;transform:translate(-50%,-50%)}button.micrio-marker{width:var(--micrio-marker-size);height:var(--micrio-marker-size);color:var(--micrio-marker-text-color);cursor:pointer;font:inherit;background:50% no-repeat;background-image:var(--micrio-marker-icon);background-size:contain;border:none;margin:0;padding:0;display:block;position:relative}div.micrio-marker:not(.cluster) label:where(.micrio-marker){text-align:var(--micrio-text-align);cursor:pointer;white-space:pre-wrap;width:max-content;max-width:170px;text-shadow:var(--micrio-marker-text-shadow);opacity:0;pointer-events:none;padding-left:10px;font-size:90%;font-weight:600;line-height:1em;transition:opacity .1s;position:absolute;top:50%;left:100%;transform:translateY(-50%)}div.micrio-marker:hover{z-index:2}.show-titles>div.micrio-marker label:where(.micrio-marker),div.micrio-marker:hover label:where(.micrio-marker){opacity:1}@media (width<=640px){div.micrio-marker:not(.cluster) label:where(.micrio-marker){font-size:12px}}.show-titles>div.micrio-marker label:where(.micrio-marker){pointer-events:all}label.static.micrio-marker{transform:translate(-50%, 4px) scale3d(calc(1 / var(--scale,1)), calc(1 / var(--scale,1)), 1)}div.default.micrio-marker button:where(.micrio-marker){box-sizing:content-box;border-radius:var(--micrio-marker-border-radius);border:var(--micrio-marker-border-size) solid var(--micrio-marker-border-color);transition:var(--micrio-marker-transition);background-clip:content-box;background-color:var(--micrio-marker-color)}div.default.micrio-marker:hover,div.default.hovered.micrio-marker,div.default.opened.micrio-marker{z-index:1}div.default.micrio-marker:hover button:where(.micrio-marker),div.default.hovered.micrio-marker button:where(.micrio-marker),div.default.opened.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-highlight);width:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2);height:calc(var(--micrio-marker-size) + var(--micrio-marker-border-size) * 2);border-width:0}div.has-icon.micrio-marker button:where(.micrio-marker){--micrio-marker-icon:none}div.has-custom-icon.micrio-marker{--micrio-marker-size:32px}div.default.has-icon.micrio-marker button:where(.micrio-marker){color:#fff;width:calc(var(--micrio-marker-size) + 24px);height:calc(var(--micrio-marker-size) + 24px);background-color:var(--micrio-marker-border-color);border:none}div.default.has-icon.micrio-marker button:where(.micrio-marker)>svg{margin:0 auto}div.default.has-icon.opened.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.hovered.micrio-marker button:where(.micrio-marker)>svg,div.default.has-icon.micrio-marker:hover button:where(.micrio-marker)>svg{color:var(--micrio-marker-highlight)}div.default.has-custom-icon.micrio-marker button:where(.micrio-marker){background-color:var(--micrio-marker-color)}div.default.has-custom-icon.opened.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.hovered.micrio-marker button:where(.micrio-marker),div.default.has-custom-icon.micrio-marker:hover button:where(.micrio-marker){background-color:var(--micrio-marker-highlight,var(--micrio-marker-color))}div.cluster.micrio-marker button:where(.micrio-marker){border:2px solid var(--micrio-marker-color);background:var(--micrio-cluster-marker-background,#fff);color:var(--micrio-cluster-marker-color,#000);width:calc(var(--micrio-marker-size) + 12px);height:calc(var(--micrio-marker-size) + 12px);box-sizing:content-box;border-radius:100%}div.cluster.micrio-marker:hover button:where(.micrio-marker){background:var(--micrio-marker-highlight,#fff);border-color:var(--micrio-marker-highlight,#fff)}div.cluster.micrio-marker label:where(.micrio-marker){pointer-events:none;display:none}div.micrio-marker img:where(.micrio-marker){max-width:100%;max-height:100%;margin:auto;display:block}div.micrio-waypoint{transform-style:preserve-3d;transform:var(--matrix);--micrio-bb:var(--micrio-button-background);--micrio-bbh:var(--micrio-button-background-hover);width:0;height:0;display:block;position:absolute;top:50%;left:50%}div.micrio-waypoint>button{--micrio-button-background:var(--micrio-waypoint-background,var(--micrio-bb));--micrio-button-background-hover:var(--micrio-waypoint-background-hover,var(--micrio-bbh));--micrio-button-size:var(--micrio-waypoint-size);--micrio-border-radius:var(--micrio-waypoint-border-radius,100%);--micrio-icon-size:var(--micrio-waypoint-icon-size,calc(var(--micrio-button-size) - 50px));pointer-events:all;border:var(--micrio-waypoint-border-size,var(--micrio-marker-border-size)) solid var(--micrio-waypoint-border-color,var(--micrio-marker-border-color));margin:0;transition:background-color .25s,opacity .25s,border-color .25s,transform .25s;transform:translate(-50%,-50%)scale(.5)}div.micrio-waypoint>button>svg{pointer-events:none;margin:0 auto}div.micrio-waypoint:hover>button,div.active.micrio-waypoint>button{transition:background-color .25s,opacity .25s,transform .25s;transform:translate(-50%,-50%)scale(.6)}div.clicked.micrio-waypoint>button{animation:.75s infinite alternate micrio-waypoint-pulse}@keyframes micrio-waypoint-pulse{0%{transform:translate(-50%,-50%)scale(.5)}to{transform:translate(-50%,-50%)scale(.75)}}.embed-container.micrio-embed{transform:translate3d(calc(var(--x,0) - 50%), calc(var(--y,0) - 50%), 0) scale3d(var(--s),var(--s),1);opacity:var(--opacity,1);will-change:transform, opacity;direction:ltr;display:block;position:absolute;top:0;left:0}.embed3d.micrio-embed{top:50%;left:50%}.embed-container.no-events.micrio-embed{pointer-events:none}.embed-container.micrio-embed>:where(.micrio-embed){cursor:pointer}.embed-container.micrio-embed>*{transform:translate3d(-50%,-50%,0) scale3d(var(--scale,1), var(--scale,1), 1);position:absolute}.embed-container.micrio-embed>:not(button){width:auto!important}.embed-container.micrio-embed:not(.no-events)>*{pointer-events:all}.embed-container.behind.micrio-embed>*{pointer-events:none}.embed-container.micrio-embed>img:where(.micrio-embed){max-width:none}.embed-container.micrio-embed>button{--scale:1;--ratio:1;width:100px;aspect-ratio:var(--ratio);background:0 0;border:none;margin:0;padding:0}.embed-container.micrio-embed>button,.embed-container.micrio-embed>img:where(.micrio-embed){touch-action:none}div.micrio-markers{pointer-events:none;will-change:width, height, top, left, opacity;width:100%;height:100%;perspective:inherit;position:absolute;top:0;left:0;overflow:hidden}div.micrio-markers:empty{display:none}div.micrio-markers>*{pointer-events:all}div.inactive.micrio-markers>*{pointer-events:none}div.is360.micrio-markers{transition:opacity .25s}div.is360.inactive.micrio-markers{opacity:0}aside.micrio-markers{pointer-events:none}aside.micrio-markers section:where(.micrio-markers){width:10cqw;min-width:200px;color:var(--micrio-marker-color);flex-direction:column;font-size:1em;font-weight:500;line-height:1em;display:flex;position:absolute;top:0;bottom:0}aside.micrio-markers section:where(.micrio-markers):first-child{align-items:flex-end;left:10px}aside.micrio-markers section:where(.micrio-markers):nth-child(2){align-items:flex-start;right:10px}aside.micrio-markers section:where(.micrio-markers) article:where(.micrio-markers){flex:1;align-items:center;max-height:30cqh;padding:10px;display:flex}aside.micrio-markers section:where(.micrio-markers) label:where(.micrio-markers){pointer-events:all;cursor:pointer;opacity:.75;max-width:160px;text-shadow:var(--micrio-marker-text-shadow);padding:10px;transition:opacity .25s,color .25s}label.hover.micrio-markers{color:var(--micrio-marker-highlight);opacity:1}aside.micrio-markers section:where(.micrio-markers):first-child article:where(.micrio-markers){justify-content:right}aside.micrio-markers section:where(.micrio-markers):first-child label:where(.micrio-markers){text-align:right}svg.micrio-markers{pointer-events:none;width:100%;height:100%;position:absolute}svg.micrio-markers line:where(.micrio-markers){stroke:var(--micrio-marker-highlight);stroke-width:2px}svg.micrio-markers line:where(.micrio-markers):not(.hovered){stroke:var(--micrio-marker-color);stroke-dasharray:10;stroke-width:1px;opacity:.75}svg.micrio-progress-circle{pointer-events:none;z-index:10;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-90deg)}circle.micrio-progress-circle{transition:stroke-dashoffset .25s}
|
|
25
|
+
/*$vite$:1*/`,C,M))})();
|