@car-cutter/wc-webplayer 3.0.1 → 3.0.2
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/dist/index.js +3409 -2887
- package/dist/index.umd.cjs +7 -7
- package/package.json +5 -5
package/dist/index.umd.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(Ae,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(Ae=typeof globalThis<"u"?globalThis:Ae||self,lt(Ae.CarCutterWebplayerWC={}))})(this,function(Ae){"use strict";const lt="cc-webplayer",Ft="cc-webplayer-custom-media",Ut="cc-webplayer-icon",Rn="composition-loading",An="composition-loaded",Dn="composition-load-error",zn="item-change",On="extend-mode-on",Hn="extend-mode-off",on="hotspots-on",an="hotspots-off",Fn="gallery-open",Un="gallery-close",_o="quality",bo="*",xo="full_screen",Vn="cc-webplayer:";function yo(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function Eo(e,t){const r=e.split("/"),o=r.pop();return[r.join("/"),t,o].join("/")}function Wn(){return!!customElements.get(lt)&&!!customElements.get(Ft)&&!!customElements.get(Ut)}var Tt,ve,Bn,wt,Yn,Xn,Zn,Gn,sn,ln,cn,jn,St={},$n=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function at(e,t){for(var r in t)e[r]=t[r];return e}function un(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ct(e,t,r){var o,s,l,f={};for(l in t)l=="key"?o=t[l]:l=="ref"?s=t[l]:f[l]=t[l];if(arguments.length>2&&(f.children=arguments.length>3?Tt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(l in e.defaultProps)f[l]==null&&(f[l]=e.defaultProps[l]);return Nt(e,f,o,s,null)}function Nt(e,t,r,o,s){var l={type:e,props:t,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:s??++Bn,__i:-1,__u:0};return s==null&&ve.vnode!=null&&ve.vnode(l),l}function Mo(){return{current:null}}function Xe(e){return e.children}function it(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Et(e):null}function qn(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return qn(e)}}function dn(e){(!e.__d&&(e.__d=!0)&&wt.push(e)&&!Vt.__r++||Yn!=ve.debounceRendering)&&((Yn=ve.debounceRendering)||Xn)(Vt)}function Vt(){for(var e,t,r,o,s,l,f,n=1;wt.length;)wt.length>n&&wt.sort(Zn),e=wt.shift(),n=wt.length,e.__d&&(r=void 0,s=(o=(t=e).__v).__e,l=[],f=[],t.__P&&((r=at({},o)).__v=o.__v+1,ve.vnode&&ve.vnode(r),fn(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[s]:null,l,s??Et(o),!!(32&o.__u),f),r.__v=o.__v,r.__.__k[r.__i]=r,tr(l,r,f),r.__e!=s&&qn(r)));Vt.__r=0}function Kn(e,t,r,o,s,l,f,n,m,h,k){var d,p,a,M,C,L,_=o&&o.__k||$n,E=t.length;for(m=ko(r,t,_,m,E),d=0;d<E;d++)(a=r.__k[d])!=null&&(p=a.__i==-1?St:_[a.__i]||St,a.__i=d,L=fn(e,a,p,s,l,f,n,m,h,k),M=a.__e,a.ref&&p.ref!=a.ref&&(p.ref&&pn(p.ref,null,a),k.push(a.ref,a.__c||M,a)),C==null&&M!=null&&(C=M),4&a.__u||p.__k===a.__k?m=Jn(a,m,e):typeof a.type=="function"&&L!==void 0?m=L:M&&(m=M.nextSibling),a.__u&=-7);return r.__e=C,m}function ko(e,t,r,o,s){var l,f,n,m,h,k=r.length,d=k,p=0;for(e.__k=new Array(s),l=0;l<s;l++)(f=t[l])!=null&&typeof f!="boolean"&&typeof f!="function"?(m=l+p,(f=e.__k[l]=typeof f=="string"||typeof f=="number"||typeof f=="bigint"||f.constructor==String?Nt(null,f,null,null,null):Pt(f)?Nt(Xe,{children:f},null,null,null):f.constructor==null&&f.__b>0?Nt(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=e,f.__b=e.__b+1,n=null,(h=f.__i=Lo(f,r,m,d))!=-1&&(d--,(n=r[h])&&(n.__u|=2)),n==null||n.__v==null?(h==-1&&(s>k?p--:s<k&&p++),typeof f.type!="function"&&(f.__u|=4)):h!=m&&(h==m-1?p--:h==m+1?p++:(h>m?p--:p++,f.__u|=4))):e.__k[l]=null;if(d)for(l=0;l<k;l++)(n=r[l])!=null&&!(2&n.__u)&&(n.__e==o&&(o=Et(n)),rr(n,n));return o}function Jn(e,t,r){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=Jn(o[s],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Et(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pt(e)?e.some(function(r){ut(r,t)}):t.push(e)),t}function Lo(e,t,r,o){var s,l,f=e.key,n=e.type,m=t[r];if(m===null&&e.key==null||m&&f==m.key&&n==m.type&&!(2&m.__u))return r;if(o>(m!=null&&!(2&m.__u)?1:0))for(s=r-1,l=r+1;s>=0||l<t.length;){if(s>=0){if((m=t[s])&&!(2&m.__u)&&f==m.key&&n==m.type)return s;s--}if(l<t.length){if((m=t[l])&&!(2&m.__u)&&f==m.key&&n==m.type)return l;l++}}return-1}function Qn(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Co.test(t)?r:r+"px"}function Wt(e,t,r,o,s){var l;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)r&&t in r||Qn(e.style,t,"");if(r)for(t in r)o&&r[t]==o[t]||Qn(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")l=t!=(t=t.replace(Gn,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+l]=r,r?o?r.u=o.u:(r.u=sn,e.addEventListener(t,l?cn:ln,l)):e.removeEventListener(t,l?cn:ln,l);else{if(s=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function er(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=sn++;else if(t.t<r.u)return;return r(ve.event?ve.event(t):t)}}}function fn(e,t,r,o,s,l,f,n,m,h){var k,d,p,a,M,C,L,_,E,y,v,I,S,V,T,j,O,H=t.type;if(t.constructor!=null)return null;128&r.__u&&(m=!!(32&r.__u),l=[n=t.__e=r.__e]),(k=ve.__b)&&k(t);e:if(typeof H=="function")try{if(_=t.props,E="prototype"in H&&H.prototype.render,y=(k=H.contextType)&&o[k.__c],v=k?y?y.props.value:k.__:o,r.__c?L=(d=t.__c=r.__c).__=d.__E:(E?t.__c=d=new H(_,v):(t.__c=d=new it(_,v),d.constructor=H,d.render=To),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=o,p=d.__d=!0,d.__h=[],d._sb=[]),E&&d.__s==null&&(d.__s=d.state),E&&H.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=at({},d.__s)),at(d.__s,H.getDerivedStateFromProps(_,d.__s))),a=d.props,M=d.state,d.__v=t,p)E&&H.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),E&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(E&&H.getDerivedStateFromProps==null&&_!==a&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,v),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(_,d.__s,v)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(z){z&&(z.__=t)}),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[],d.__h.length&&f.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,v),E&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(a,M,C)})}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=ve.__r,V=0,E){for(d.state=d.__s,d.__d=!1,S&&S(t),k=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,S&&S(t),k=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++V<25);d.state=d.__s,d.getChildContext!=null&&(o=at(at({},o),d.getChildContext())),E&&!p&&d.getSnapshotBeforeUpdate!=null&&(C=d.getSnapshotBeforeUpdate(a,M)),j=k,k!=null&&k.type===Xe&&k.key==null&&(j=nr(k.props.children)),n=Kn(e,Pt(j)?j:[j],t,r,o,s,l,f,n,m,h),d.base=t.__e,t.__u&=-161,d.__h.length&&f.push(d),L&&(d.__E=d.__=null)}catch(z){if(t.__v=null,m||l!=null)if(z.then){for(t.__u|=m?160:128;n&&n.nodeType==8&&n.nextSibling;)n=n.nextSibling;l[l.indexOf(n)]=null,t.__e=n}else for(O=l.length;O--;)un(l[O]);else t.__e=r.__e,t.__k=r.__k;ve.__e(z,t,r)}else l==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):n=t.__e=Io(r.__e,t,r,o,s,l,f,m,h);return(k=ve.diffed)&&k(t),128&t.__u?void 0:n}function tr(e,t,r){for(var o=0;o<r.length;o++)pn(r[o],r[++o],r[++o]);ve.__c&&ve.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(l){l.call(s)})}catch(l){ve.__e(l,s.__v)}})}function nr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pt(e)?e.map(nr):at({},e)}function Io(e,t,r,o,s,l,f,n,m){var h,k,d,p,a,M,C,L=r.props,_=t.props,E=t.type;if(E=="svg"?s="http://www.w3.org/2000/svg":E=="math"?s="http://www.w3.org/1998/Math/MathML":s||(s="http://www.w3.org/1999/xhtml"),l!=null){for(h=0;h<l.length;h++)if((a=l[h])&&"setAttribute"in a==!!E&&(E?a.localName==E:a.nodeType==3)){e=a,l[h]=null;break}}if(e==null){if(E==null)return document.createTextNode(_);e=document.createElementNS(s,E,_.is&&_),n&&(ve.__m&&ve.__m(t,l),n=!1),l=null}if(E==null)L===_||n&&e.data==_||(e.data=_);else{if(l=l&&Tt.call(e.childNodes),L=r.props||St,!n&&l!=null)for(L={},h=0;h<e.attributes.length;h++)L[(a=e.attributes[h]).name]=a.value;for(h in L)if(a=L[h],h!="children"){if(h=="dangerouslySetInnerHTML")d=a;else if(!(h in _)){if(h=="value"&&"defaultValue"in _||h=="checked"&&"defaultChecked"in _)continue;Wt(e,h,null,a,s)}}for(h in _)a=_[h],h=="children"?p=a:h=="dangerouslySetInnerHTML"?k=a:h=="value"?M=a:h=="checked"?C=a:n&&typeof a!="function"||L[h]===a||Wt(e,h,a,L[h],s);if(k)n||d&&(k.__html==d.__html||k.__html==e.innerHTML)||(e.innerHTML=k.__html),t.__k=[];else if(d&&(e.innerHTML=""),Kn(t.type=="template"?e.content:e,Pt(p)?p:[p],t,r,o,E=="foreignObject"?"http://www.w3.org/1999/xhtml":s,l,f,l?l[0]:r.__k&&Et(r,0),n,m),l!=null)for(h=l.length;h--;)un(l[h]);n||(h="value",E=="progress"&&M==null?e.removeAttribute("value"):M!=null&&(M!==e[h]||E=="progress"&&!M||E=="option"&&M!=L[h])&&Wt(e,h,M,L[h],s),h="checked",C!=null&&C!=e[h]&&Wt(e,h,C,L[h],s))}return e}function pn(e,t,r){try{if(typeof e=="function"){var o=typeof e.__u=="function";o&&e.__u(),o&&t==null||(e.__u=e(t))}else e.current=t}catch(s){ve.__e(s,r)}}function rr(e,t,r){var o,s;if(ve.unmount&&ve.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||pn(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){ve.__e(l,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&rr(o[s],t,r||typeof e.type!="function");r||un(e.__e),e.__c=e.__=e.__e=void 0}function To(e,t,r){return this.constructor(e,r)}function Rt(e,t,r){var o,s,l,f;t==document&&(t=document.documentElement),ve.__&&ve.__(e,t),s=(o=typeof r=="function")?null:r&&r.__k||t.__k,l=[],f=[],fn(t,e=(!o&&r||t).__k=ct(Xe,null,[e]),s||St,St,t.namespaceURI,!o&&r?[r]:s?null:t.firstChild?Tt.call(t.childNodes):null,l,!o&&r?r:s?s.__e:t.firstChild,o,f),tr(l,e,f)}function or(e,t){Rt(e,t,or)}function So(e,t,r){var o,s,l,f,n=at({},e.props);for(l in e.type&&e.type.defaultProps&&(f=e.type.defaultProps),t)l=="key"?o=t[l]:l=="ref"?s=t[l]:n[l]=t[l]==null&&f!=null?f[l]:t[l];return arguments.length>2&&(n.children=arguments.length>3?Tt.call(arguments,2):r),Nt(e.type,n,o||e.key,s||e.ref,null)}function At(e){function t(r){var o,s;return this.getChildContext||(o=new Set,(s={})[t.__c]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(l){this.props.value!=l.value&&o.forEach(function(f){f.__e=!0,dn(f)})},this.sub=function(l){o.add(l);var f=l.componentWillUnmount;l.componentWillUnmount=function(){o&&o.delete(l),f&&f.call(l)}}),r.children}return t.__c="__cC"+jn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,o){return r.children(o)}).contextType=t,t}Tt=$n.slice,ve={__e:function(e,t,r,o){for(var s,l,f;t=t.__;)if((s=t.__c)&&!s.__)try{if((l=s.constructor)&&l.getDerivedStateFromError!=null&&(s.setState(l.getDerivedStateFromError(e)),f=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),f=s.__d),f)return s.__E=s}catch(n){e=n}throw e}},Bn=0,it.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},r),this.props)),e&&at(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),dn(this))},it.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dn(this))},it.prototype.render=Xe,wt=[],Xn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zn=function(e,t){return e.__v.__b-t.__v.__b},Vt.__r=0,Gn=/(PointerCapture)$|Capture$/i,sn=0,ln=er(!1),cn=er(!0),jn=0;var Po=0;function c(e,t,r,o,s,l){t||(t={});var f,n,m=t;if("ref"in m)for(n in m={},t)n=="ref"?f=t[n]:m[n]=t[n];var h={type:e,props:m,key:r,ref:f,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Po,__i:-1,__u:0,__source:s,__self:l};if(typeof e=="function"&&(f=e.defaultProps))for(n in f)m[n]===void 0&&(m[n]=f[n]);return ve.vnode&&ve.vnode(h),h}var pt,De,hn,ar,Ct=0,ir=[],Ue=ve,sr=Ue.__b,lr=Ue.__r,cr=Ue.diffed,ur=Ue.__c,dr=Ue.unmount,fr=Ue.__;function Mt(e,t){Ue.__h&&Ue.__h(De,e,Ct||t),Ct=0;var r=De.__H||(De.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ce(e){return Ct=1,mn(vr,e)}function mn(e,t,r){var o=Mt(pt++,2);if(o.t=e,!o.__c&&(o.__=[r?r(t):vr(void 0,t),function(n){var m=o.__N?o.__N[0]:o.__[0],h=o.t(m,n);m!==h&&(o.__N=[h,o.__[1]],o.__c.setState({}))}],o.__c=De,!De.__f)){var s=function(n,m,h){if(!o.__c.__H)return!0;var k=o.__c.__H.__.filter(function(p){return!!p.__c});if(k.every(function(p){return!p.__N}))return!l||l.call(this,n,m,h);var d=o.__c.props!==n;return k.forEach(function(p){if(p.__N){var a=p.__[0];p.__=p.__N,p.__N=void 0,a!==p.__[0]&&(d=!0)}}),l&&l.call(this,n,m,h)||d};De.__f=!0;var l=De.shouldComponentUpdate,f=De.componentWillUpdate;De.componentWillUpdate=function(n,m,h){if(this.__e){var k=l;l=void 0,s(n,m,h),l=k}f&&f.call(this,n,m,h)},De.shouldComponentUpdate=s}return o.__N||o.__}function ge(e,t){var r=Mt(pt++,3);!Ue.__s&&vn(r.__H,t)&&(r.__=e,r.u=t,De.__H.__h.push(r))}function Dt(e,t){var r=Mt(pt++,4);!Ue.__s&&vn(r.__H,t)&&(r.__=e,r.u=t,De.__h.push(r))}function Ie(e){return Ct=5,$e(function(){return{current:e}},[])}function pr(e,t,r){Ct=6,Dt(function(){if(typeof e=="function"){var o=e(t());return function(){e(null),o&&typeof o=="function"&&o()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function $e(e,t){var r=Mt(pt++,7);return vn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function q(e,t){return Ct=8,$e(function(){return e},t)}function kt(e){var t=De.context[e.__c],r=Mt(pt++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(De)),t.props.value):e.__}function hr(e,t){Ue.useDebugValue&&Ue.useDebugValue(t?t(e):e)}function mr(){var e=Mt(pt++,11);if(!e.__){for(var t=De.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function No(){for(var e;e=ir.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Bt),e.__H.__h.forEach(gn),e.__H.__h=[]}catch(t){e.__H.__h=[],Ue.__e(t,e.__v)}}Ue.__b=function(e){De=null,sr&&sr(e)},Ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fr&&fr(e,t)},Ue.__r=function(e){lr&&lr(e),pt=0;var t=(De=e.__c).__H;t&&(hn===De?(t.__h=[],De.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Bt),t.__h.forEach(gn),t.__h=[],pt=0)),hn=De},Ue.diffed=function(e){cr&&cr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ir.push(t)!==1&&ar===Ue.requestAnimationFrame||((ar=Ue.requestAnimationFrame)||Ro)(No)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),hn=De=null},Ue.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Bt),r.__h=r.__h.filter(function(o){return!o.__||gn(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],Ue.__e(o,r.__v)}}),ur&&ur(e,t)},Ue.unmount=function(e){dr&&dr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(o){try{Bt(o)}catch(s){t=s}}),r.__H=void 0,t&&Ue.__e(t,r.__v))};var gr=typeof requestAnimationFrame=="function";function Ro(e){var t,r=function(){clearTimeout(o),gr&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(r,100);gr&&(t=requestAnimationFrame(r))}function Bt(e){var t=De,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),De=t}function gn(e){var t=De;e.__c=e.__(),De=t}function vn(e,t){return!e||e.length!==t.length||t.some(function(r,o){return r!==e[o]})}function vr(e,t){return typeof t=="function"?t(e):t}function wr(e,t){for(var r in t)e[r]=t[r];return e}function wn(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function _r(e,t){var r=t(),o=Ce({t:{__:r,u:t}}),s=o[0].t,l=o[1];return Dt(function(){s.__=r,s.u=t,_n(s)&&l({t:s})},[e,r,t]),ge(function(){return _n(s)&&l({t:s}),e(function(){_n(s)&&l({t:s})})},[e]),r}function _n(e){var t,r,o=e.u,s=e.__;try{var l=o();return!((t=s)===(r=l)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function br(e){e()}function xr(e){return e}function yr(){return[!1,br]}var Er=Dt;function Yt(e,t){this.props=e,this.context=t}function Ao(e,t){function r(s){var l=this.props.ref,f=l==s.ref;return!f&&l&&(l.call?l(null):l.current=null),t?!t(this.props,s)||!f:wn(this.props,s)}function o(s){return this.shouldComponentUpdate=r,ct(e,s)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Yt.prototype=new it).isPureReactComponent=!0,Yt.prototype.shouldComponentUpdate=function(e,t){return wn(this.props,e)||wn(this.state,t)};var Cr=ve.__b;ve.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cr&&Cr(e)};var Do=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function zo(e){function t(r){var o=wr({},r);return delete o.ref,e(o,r.ref||null)}return t.$$typeof=Do,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Mr=function(e,t){return e==null?null:ut(ut(e).map(t))},Oo={map:Mr,forEach:Mr,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Ho=ve.__e;ve.__e=function(e,t,r,o){if(e.then){for(var s,l=t;l=l.__;)if((s=l.__c)&&s.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),s.__c(e,t)}Ho(e,t,r,o)};var kr=ve.unmount;function Lr(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),e.__c.__H=null),(e=wr({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return Lr(o,t,r)})),e}function Ir(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return Ir(o,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Xt(){this.__u=0,this.o=null,this.__b=null}function Tr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fo(e){var t,r,o;function s(l){if(t||(t=e()).then(function(f){r=f.default||f},function(f){o=f}),o)throw o;if(!r)throw t;return ct(r,l)}return s.displayName="Lazy",s.__f=!0,s}function zt(){this.i=null,this.l=null}ve.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),kr&&kr(e)},(Xt.prototype=new it).__c=function(e,t){var r=t.__c,o=this;o.o==null&&(o.o=[]),o.o.push(r);var s=Tr(o.__v),l=!1,f=function(){l||(l=!0,r.__R=null,s?s(n):n())};r.__R=f;var n=function(){if(!--o.__u){if(o.state.__a){var m=o.state.__a;o.__v.__k[0]=Ir(m,m.__c.__P,m.__c.__O)}var h;for(o.setState({__a:o.__b=null});h=o.o.pop();)h.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(f,f)},Xt.prototype.componentWillUnmount=function(){this.o=[]},Xt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=Lr(this.__b,r,o.__O=o.__P)}this.__b=null}var s=t.__a&&ct(Xe,null,e.fallback);return s&&(s.__u&=-33),[ct(Xe,null,t.__a?null:e.children),s]};var Sr=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Uo(e){return this.getChildContext=function(){return e.context},e.children}function Vo(e){var t=this,r=e.h;t.componentWillUnmount=function(){Rt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),t.v||(t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,s){this.childNodes.push(o),t.h.insertBefore(o,s)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}),Rt(ct(Uo,{context:t.context},e.__v),t.v)}function Wo(e,t){var r=ct(Vo,{__v:e,h:t});return r.containerInfo=t,r}(zt.prototype=new it).__a=function(e){var t=this,r=Tr(t.__v),o=t.l.get(e);return o[0]++,function(s){var l=function(){t.props.revealOrder?(o.push(s),Sr(t,e,o)):s()};r?r(l):l()}},zt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},zt.prototype.componentDidUpdate=zt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Sr(e,r,t)})};var Pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Bo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Yo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xo=/[A-Z0-9]/g,Zo=typeof document<"u",Go=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Nr(e,t,r){return t.__k==null&&(t.textContent=""),Rt(e,t),typeof r=="function"&&r(),e?e.__c:null}function jo(e,t,r){return or(e,t),typeof r=="function"&&r(),e?e.__c:null}it.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(it.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Rr=ve.event;function $o(){}function qo(){return this.cancelBubble}function Ko(){return this.defaultPrevented}ve.event=function(e){return Rr&&(e=Rr(e)),e.persist=$o,e.isPropagationStopped=qo,e.isDefaultPrevented=Ko,e.nativeEvent=e};var bn,Jo={enumerable:!1,configurable:!0,get:function(){return this.class}},Ar=ve.vnode;ve.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,o=t.type,s={},l=o.indexOf("-")===-1;for(var f in r){var n=r[f];if(!(f==="value"&&"defaultValue"in r&&n==null||Zo&&f==="children"&&o==="noscript"||f==="class"||f==="className")){var m=f.toLowerCase();f==="defaultValue"&&"value"in r&&r.value==null?f="value":f==="download"&&n===!0?n="":m==="translate"&&n==="no"?n=!1:m[0]==="o"&&m[1]==="n"?m==="ondoubleclick"?f="ondblclick":m!=="onchange"||o!=="input"&&o!=="textarea"||Go(r.type)?m==="onfocus"?f="onfocusin":m==="onblur"?f="onfocusout":Yo.test(f)&&(f=m):m=f="oninput":l&&Bo.test(f)?f=f.replace(Xo,"-$&").toLowerCase():n===null&&(n=void 0),m==="oninput"&&s[f=m]&&(f="oninputCapture"),s[f]=n}}o=="select"&&s.multiple&&Array.isArray(s.value)&&(s.value=ut(r.children).forEach(function(h){h.props.selected=s.value.indexOf(h.props.value)!=-1})),o=="select"&&s.defaultValue!=null&&(s.value=ut(r.children).forEach(function(h){h.props.selected=s.multiple?s.defaultValue.indexOf(h.props.value)!=-1:s.defaultValue==h.props.value})),r.class&&!r.className?(s.class=r.class,Object.defineProperty(s,"className",Jo)):(r.className&&!r.class||r.class&&r.className)&&(s.class=s.className=r.className),t.props=s}(e),e.$$typeof=Pr,Ar&&Ar(e)};var Dr=ve.__r;ve.__r=function(e){Dr&&Dr(e),bn=e.__c};var zr=ve.diffed;ve.diffed=function(e){zr&&zr(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),bn=null};var Qo={ReactCurrentDispatcher:{current:{readContext:function(e){return bn.__n[e.__c].props.value},useCallback:q,useContext:kt,useDebugValue:hr,useDeferredValue:xr,useEffect:ge,useId:mr,useImperativeHandle:pr,useInsertionEffect:Er,useLayoutEffect:Dt,useMemo:$e,useReducer:mn,useRef:Ie,useState:Ce,useSyncExternalStore:_r,useTransition:yr}}};function ea(e){return ct.bind(null,e)}function Zt(e){return!!e&&e.$$typeof===Pr}function ta(e){return Zt(e)&&e.type===Xe}function na(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ra(e){return Zt(e)?So.apply(null,arguments):e}function Or(e){return!!e.__k&&(Rt(null,e),!0)}function oa(e){return e&&(e.base||e.nodeType===1&&e)||null}var aa=function(e,t){return e(t)},ia=function(e,t){return e(t)},sa=Xe,la=Zt,xn={useState:Ce,useId:mr,useReducer:mn,useEffect:ge,useLayoutEffect:Dt,useInsertionEffect:Er,useTransition:yr,useDeferredValue:xr,useSyncExternalStore:_r,startTransition:br,useRef:Ie,useImperativeHandle:pr,useMemo:$e,useCallback:q,useContext:kt,useDebugValue:hr,version:"18.3.1",Children:Oo,render:Nr,hydrate:jo,unmountComponentAtNode:Or,createPortal:Wo,createElement:ct,createContext:At,createFactory:ea,cloneElement:ra,createRef:Mo,Fragment:Xe,isValidElement:Zt,isElement:la,isFragment:ta,isMemo:na,findDOMNode:oa,Component:it,PureComponent:Yt,memo:Ao,forwardRef:zo,flushSync:ia,unstable_batchedUpdates:aa,StrictMode:sa,Suspense:Xt,SuspenseList:zt,lazy:Fo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qo};async function ca(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const yn=new Map,ua=e=>{const[t,r]=Ce({status:"pending",isSuccess:!1});return ge(()=>{const o=l=>r({status:"success",data:l,isSuccess:!0}),s=yn.get(e);if(s&&!(s instanceof Promise)){o(s);return}r({status:"fetching",isSuccess:!1}),async function(){try{let l;if(s)l=await s;else{const f=ca(e);yn.set(e,f),l=await f,yn.set(e,l)}o(l)}catch(l){r({status:"error",isSuccess:!1,error:l})}}()},[e]),t},Hr=At(null),tt=()=>{const e=kt(Hr);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},da=({children:e,...t})=>c(Hr.Provider,{value:t,children:e}),Fr=At(null),ht=()=>{const e=kt(Fr);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},fa=({composition:e,children:t})=>{const{aspectRatio:r,categories:o,imageHdWidth:s,imageSubWidths:l}=e,{minMediaWidth:f,maxMediaWidth:n,categoriesFilter:m}=tt(),h=$e(()=>{if(m==="*")return o;function a(M){return m.split("|").some(C=>new RegExp(`^${C.replace(/\*/g,".*")}$`).test(M))}return o.filter(({id:M})=>a(M))},[o,m]),k=$e(()=>h.flatMap(({items:a})=>a),[h]),d={aspectRatio:r.replace(":"," / ")},p=$e(()=>{const a=l.concat(s),M=a.sort((L,_)=>L-_),C=M.filter(L=>L>=f&&L<=n);if(C.length===0){const L=(f+n)/2,_=a.reduce((E,y)=>Math.abs(y-L)<Math.abs(E-L)?y:E,s);return console.warn(`None of available media widths (${M.join("|")}) match the given constraints (${f>0?`${f} ≤ `:""}width${n<1/0?` ≤ ${n}`:""}).`,`Using the closest width instead (${_}).`),[_]}return C},[l,s,f,n]);return c(Fr.Provider,{value:{...e,categories:h,items:k,aspectRatioStyle:d,usedMediaWidths:p},children:t})},Ur=500,Lt=.75,_t=1+Lt*2,Vr=()=>{const{isFullScreen:e,maxItemsShown:t,integration:r}=tt();return{effectiveMaxItemsShown:r&&e?1:t}};function st(e,t,r){return Math.min(Math.max(e,t),r)}const Gt=(e,t,r)=>e+(t-e)*r,Wr=(e,t,r,o,s,l=!1)=>{const f=st(e,t,r);if(f===(l?r:t))return o;if(f===(l?t:r))return 1;const n=(f-t)/(r-t),h=1+(l?n:1-n)*(o-1),d=1+Math.round((h-1)/s)*s;return st(d,1,o)},pa=(e,t)=>{if(t.includes(e))return e;let r=t[0],o=Math.abs(e-r);for(let s=1;s<t.length;s++){const l=Math.abs(e-t[s]);l<o&&(o=l,r=t[s])}return r},Br=At(null),En=()=>kt(Br),Ot=()=>{const e=En();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Yr="*:size-full",Xr="*:object-cover *:size-full",ha=({children:e})=>{const{compositionUrl:t}=tt(),r=q(()=>document.querySelector(`${lt}[composition-url="${t}"]`),[t]),o=q(M=>{const C=M.querySelectorAll(Ut),L=new Map;for(const _ of C){const E=_.getAttribute("name");if(!E){console.warn("Icon element is missing a name attribute");continue}const y=_.innerHTML,v=y?c("div",{className:Yr,dangerouslySetInnerHTML:{__html:y}}):void 0;if(!v){console.warn(`Icon "${E}" customization is empty.`);continue}L.set(E,{Icon:v})}return L},[]),[s,l]=Ce(()=>{const M=r();return M?o(M):new Map});ge(()=>{const M=r();if(!M)return;const C=new MutationObserver(()=>{l(o(M))});return C.observe(M,{childList:!0,subtree:!0}),()=>C.disconnect()},[o,r]);const f=q(M=>s.get(M),[s]),n=q((M,C)=>{l(L=>{const{Icon:_,...E}=C;return new Map(L.set(M,{...E,Icon:c("div",{className:Yr,children:_})}))})},[]),m=q(M=>{l(C=>(C.delete(M),new Map(C)))},[]),h=q(M=>{const C=M.querySelectorAll(Ft),L=new Array;for(const _ of C){const E=_.innerHTML;if(!E){console.warn("Custom media element is empty");continue}const y=Number(_.getAttribute("index"));if(Number.isNaN(y)){console.warn("Custom media element is missing the 'index' attribute");continue}const v=_.getAttribute("thumbnail-src")??void 0,I=JSON.stringify({index:y,thumbnailSrc:v});L.push({id:I,Media:c("div",{className:Xr,dangerouslySetInnerHTML:{__html:E}}),index:y,thumbnailSrc:v})}return L},[]),[k,d]=Ce(()=>{const M=r();return M?h(M):[]});ge(()=>{const M=r();if(!M)return;const C=new MutationObserver(()=>{d(h(M))});return C.observe(M,{childList:!0,subtree:!0}),()=>C.disconnect()},[h,r]);const p=q(M=>{const{Media:C,...L}=M,_=c("div",{className:Xr,children:C}),E=JSON.stringify(L);return d(y=>[...y,{id:E,Media:_,...L}]),E},[]),a=q(M=>{d(C=>C.filter(L=>L.id!==M))},[]);return c(Br.Provider,{value:{getIconConfig:f,registerIconConfig:n,unregisterIconConfig:m,customMediaList:k,registerCustomMedia:p,unregisterCustomMedia:a},children:e})},Zr=At(null),nt=()=>{const e=kt(Zr);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ma=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:r,integration:o,emitEvent:s,isFullScreen:l,requestFullscreen:f,exitFullscreen:n}=tt(),{customMediaList:m}=Ot(),{categories:h,items:k}=ht(),d=$e(()=>{const B=new Array(...k),de=m.slice().sort((fe,ye)=>fe.index<0&&ye.index<0?ye.index-fe.index:fe.index<0?1:ye.index<0?-1:fe.index-ye.index);for(const fe of de){let ye=fe.index;ye<0&&(ye=B.length+ye+1),B.splice(ye,0,{type:"custom",...fe})}return B},[k,m]),[p,a]=Ce(d.map(()=>null));ge(()=>{a(d.map(()=>null))},[d]);const M=q((B,de)=>{a(fe=>fe.map((ye,He)=>He===B?de:ye))},[]),[C,L]=Ce(0),[_,E]=Ce(null),y=_??C,v=d[y],I=p[y],[S,V]=Ce(null),T=!!S,j=q(()=>V(null),[]),{effectiveMaxItemsShown:O}=Vr(),H=q(()=>{if(T||_!==null)return;const B=C-1;if(B>=0)E(B);else if(t){V("first_to_last");const de=Math.ceil(O),fe=d.length+(o&&!t&&O%1!==0?1:0),ye=O>1?Math.max(0,fe-de):d.length-1;E(ye)}},[T,_,C,t,d.length,o,O]),z=q(()=>{if(T||_!==null)return;const B=C+1,de=Math.ceil(O),fe=d.length+(o&&!t&&O%1!==0?1:0),ye=O>1?Math.max(0,fe-de):d.length-1;B<=ye?E(B):t&&(V("last_to_first"),E(0))},[T,_,C,d.length,t,o,O]),U=q(B=>{const de=Math.min(C,B),fe=Math.max(C,B);p.slice(de,fe+1).filter(He=>He===null).length>2&&V("instant"),E(B)},[C,p]);ge(()=>{s(zn,{index:y,item:v})},[v,s,y]);const K=$e(()=>{let B;if(v.type==="custom"){const de=d.slice(0,y).reverse().find(fe=>fe.type!=="custom")??d.slice(y+1).find(fe=>fe.type!=="custom");if(!de)throw new Error("No non-custom item found");B=de}else B=v;for(const de of h)if(de.items.includes(B))return de.id;throw new Error("Current item not found in any category")},[h,v,d,y]),ce=q(B=>{const de=h.find(({id:ye})=>ye===B)?.items[0];if(de===void 0)throw new Error("Failed to find target category");const fe=d.findIndex(ye=>ye===de);U(fe)},[h,d,U]),A=$e(()=>{if(o&&!l)return d.some(B=>{switch(B.type){case"image":return!!B.hotspots?.length;case"360":return B.images.some(de=>!!de.hotspots?.length);default:return!1}});switch(v.type){case"image":return!!v.hotspots?.length;case"360":return I==="running"&&v.images.some(B=>!!B.hotspots?.length);default:return!1}},[v,I,o,d,l]),[Y,te]=Ce(!0),[F,J]=Ce({}),_e=$e(()=>o&&l?F[y]??!0:Y,[o,l,F,y,Y]),X=q(()=>{if(o&&l){const de=!(F[y]??!0);J(fe=>({...fe,[y]:de})),s(de?on:an)}else{const B=!Y;te(B),s(B?on:an)}},[s,Y,o,l,F,y]),G=$e(()=>{switch(v.type){case"video":return I!=="running";default:return!0}},[v,I]),[Z,le]=Ce(!1),P=q(()=>{const B=!Z;le(B),s(B?Fn:Un)},[s,Z]),[Me,$]=Ce(null),be=q(()=>$(null),[]),Ge=!!Me,Je=$e(()=>{switch(v.type){case"image":return!0;case"interior-360":return I==="running";case"360":return I==="running";default:return!1}},[v.type,I]),[Be,g]=Ce(1),b=Be!==1,ue=Be<_t,oe=Be>1,Q=q(B=>{g(de=>st(de+B,1,_t))},[]),x=q(()=>g(1),[]),ne=q(()=>Q(Lt),[Q]),ae=q(()=>Q(-.75),[Q]),we=q(()=>{x(),be()},[x,be]),[ie,Ye]=Ce(!1),[Ne,je]=Ce(),[Qe,qe]=Ce(!1),Re=q(async B=>{we(),Ye(B),s(B?On:Hn)},[s,we]),xe=q(()=>{clearTimeout(Ne);const B=setTimeout(()=>{je(void 0)},Ur);je(B)},[Ne]),ze=q(async()=>{if(xe(),r==="full_screen"){const B=await f();if(qe(!B),B)return}Re(!0)},[r,Re,f,xe]),We=q(async()=>{xe(),!(r==="full_screen"&&(qe(!1),await n()))&&Re(!1)},[r,Re,n,xe]),Oe=q(()=>{ie?We():ze()},[We,ze,ie]);return ge(()=>{r==="full_screen"&&(Qe&&ie||l!==ie&&(xe(),Re(l)))},[r,Re,ie,Qe,l,xe]),c(Zr.Provider,{value:{items:d,setItemInteraction:M,slidable:d.length>1,carrouselItemIndex:C,setCarrouselItemIndex:L,itemIndexCommand:_,setItemIndexCommand:E,masterItemIndex:y,specialCommand:S,isRunningSpecialCommand:T,finishSpecialCommand:j,prevItem:H,nextItem:z,scrollToItemIndex:U,displayedCategoryId:K,changeCategory:ce,enableHotspotsControl:A,showHotspots:Y,currentItemHotspotsVisible:_e,toggleHotspots:X,showGalleryControls:G,showGallery:Z,toggleGallery:P,shownDetails:Me,isShowingDetails:Ge,setShownDetails:$,resetShownDetails:be,showZoomControls:Je,zoom:Be,isZooming:b,setZoom:g,resetZoom:x,canZoomIn:ue,zoomIn:ne,canZoomOut:oe,zoomOut:ae,resetView:we,extendMode:ie,enableExtendMode:ze,disableExtendMode:We,toggleExtendMode:Oe,extendTransition:!!Ne,fakeFullScreen:Qe},children:e})},Gr=["left","center","right","fullW"],jr=["top","middle","bottom","fullH"],ga=[...Gr,...jr,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function va(e){return Gr.includes(e)}function wa(e){return jr.includes(e)}function _a(e){return ga.includes(e)}function ba(e){if(!_a(e))throw new Error(`Invalid position: ${e}`);return wa(e)?[e,void 0]:va(e)?[void 0,e]:e.split("-")}function se(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function xa(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function $r(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function ya({positionX:e,positionY:t}){const r=new Array;return e&&r.push(xa(e)),t&&r.push($r(t)),r.join(" ")}function It(e){const[t,r]=ba(e);return ya({positionX:r,positionY:t})}const Ze=({customizationKey:e,className:t,children:r})=>{const{getIconConfig:o}=Ot(),l=o(e)?.Icon;return l?t?c("div",{className:t,children:l}):l:r},Ea=({className:e})=>c(Ze,{className:e,customizationKey:"UI_CLOSE",children:c("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),Ca={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},Ma={button:"h-8 px-2",icon:"size-8 p-2"},rt=({variant:e="fill",shape:t="button",color:r="primary",className:o,children:s,...l})=>{const f=Ca[e][r],n=Ma[t];return c("button",{className:se("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",f,n,o),...l,children:s})},Cn=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(Ea,{className:"size-full"})}),Mn=({text:e,className:t})=>c("div",{className:se("flex size-full flex-col items-center justify-center gap-y-4",t),children:[c("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),c("div",{className:"text-2xl font-bold",children:e})]}),ka={primary:"border-primary",foreground:"border-foreground",background:"border-background"},La={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},qr=({color:e="foreground",size:t="md"})=>{const r=ka[e],o=La[t];return c("div",{className:se("inline-block animate-rotation rounded-full border-b-transparent",o,r)})},mt=({src:e,className:t,onLoad:r,imgInPlayerWidthRatio:o=1,onlyThumbnail:s,fadeIn:l,...f})=>{const{mediaLoadStrategy:n,playerInViewportWidthRatio:m}=tt(),{imageHdWidth:h,usedMediaWidths:k}=ht(),[d,p]=$e(()=>{const C=k.map(_=>`${_!==h?Eo(e,_):e} ${_}w`);let L;if(s)L=[`${k[0]}px`];else{const _=1/(o*m);switch(n){case"quality":{const E=[...k],y=E.pop();L=E.map(v=>`(max-width: ${_*v}px) ${v}px`),L.push(`${y}px`);break}case"balanced":{L=[];for(let E=0;E<k.length-1;E++){const y=k[E],v=k[E+1],I=Math.round((y+v)/2);L.push(`(max-width: ${_*I}px) ${y}px`)}L.push(`${k[k.length-1]}px`);break}case"speed":{const E=[...k],y=E.shift();L=E.reverse().map(v=>`(min-width: ${_*v}px) ${v}px`),L.push(`${y}px`);break}}}return[C.join(", "),L.join(", ")]},[h,o,n,s,m,e,k]),[a,M]=Ce();return ge(()=>{if(a===!0)return;const C=setTimeout(()=>{M(L=>L??!1)},30);return()=>clearTimeout(C)},[a]),c("img",{src:e,srcSet:d,sizes:p,className:se(t,l&&se(a!==void 0&&"transition-opacity duration-200",a===!1&&"opacity-0",a===!0&&"opacity-100")),onLoad:C=>{M(!0),r?.(C)},...f})},Kr=({className:e})=>c(Ze,{className:e,customizationKey:"UI_IMAGE",children:c("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:c("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),Jr=({className:e})=>c(Ze,{className:e,customizationKey:"INTERIOR_UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M37.3915 79.7285C36.5538 79.7285 36.0601 79.2171 36.0601 78.3442V68.0541C36.0601 67.1724 36.5538 66.661 37.3915 66.661C38.2292 66.661 38.7229 67.1724 38.7229 68.0541V78.3442C38.7229 79.2171 38.2292 79.7285 37.3915 79.7285Z",fill:"white"}),c("path",{d:"M43.7429 79.7285C42.9405 79.7285 42.4644 79.2436 42.4644 78.3971V67.9924C42.4644 67.1459 42.9582 66.661 43.8047 66.661C44.3513 66.661 44.7217 66.8814 45.1273 67.4369L50.6294 75.1258H50.6999V68.0012C50.6999 67.1459 51.1761 66.661 51.9785 66.661C52.7809 66.661 53.2482 67.1459 53.2482 68.0012V78.4324C53.2482 79.2612 52.7809 79.7285 51.9432 79.7285C51.3701 79.7285 51.0174 79.5257 50.6118 78.9614L45.092 71.2284H45.0126V78.3971C45.0126 79.2436 44.5365 79.7285 43.7429 79.7285Z",fill:"white"}),c("path",{d:"M61.3719 79.7285C60.5343 79.7285 60.0405 79.2171 60.0405 78.3442V69.0417H57.4129C56.6898 69.0417 56.2049 68.6273 56.2049 67.9395C56.2049 67.2518 56.681 66.8373 57.4129 66.8373H65.3398C66.0629 66.8373 66.539 67.2518 66.539 67.9395C66.539 68.6273 66.054 69.0417 65.3398 69.0417H62.7034V78.3442C62.7034 79.2171 62.2096 79.7285 61.3719 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7269C5.85358 44.3944 2.5 48.9252 2.5 53.8286C2.5 62.4095 12.77 69.8493 27.7816 73.5179M86.4709 40.7269C92.1464 44.3944 95.5 48.9252 95.5 53.8286C95.5 61.8751 86.4695 68.9181 72.967 72.7891M27.7816 73.5179L23.267 65.1144M27.7816 73.5179L19.6553 77.7552",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),Qr=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),eo=({className:e})=>c(Ze,{className:e,customizationKey:"UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M34.6814 79.561C33.8438 79.561 33.35 79.0496 33.35 78.1678V68.2217C33.35 67.3487 33.8438 66.8373 34.6814 66.8373H40.7302C41.4621 66.8373 41.9382 67.2518 41.9382 67.9395C41.9382 68.6273 41.4533 69.0417 40.7302 69.0417H36.0129V72.1014H40.501C41.1623 72.1014 41.612 72.4894 41.612 73.1242C41.612 73.7591 41.1711 74.147 40.501 74.147H36.0129V77.3566H40.7302C41.4533 77.3566 41.9382 77.771 41.9382 78.4588C41.9382 79.1466 41.4621 79.561 40.7302 79.561H34.6814Z",fill:"white"}),c("path",{d:"M46.4115 79.7285C45.7061 79.7285 45.1506 79.2171 45.1506 78.5734C45.1506 78.2472 45.2564 77.965 45.5121 77.6123L48.6864 73.1859V73.1154L45.6179 68.9359C45.327 68.5479 45.23 68.2569 45.23 67.9131C45.23 67.19 45.8031 66.661 46.5791 66.661C47.0817 66.661 47.4344 66.8814 47.7782 67.4017L50.5028 71.4224H50.5734L53.3862 67.3135C53.6948 66.855 53.9593 66.661 54.4707 66.661C55.1673 66.661 55.7669 67.1636 55.7669 67.7984C55.7669 68.1423 55.6699 68.4245 55.4142 68.7507L52.1076 73.1683V73.23L55.3172 77.5594C55.5641 77.8768 55.6699 78.1766 55.6699 78.5293C55.6699 79.2259 55.132 79.7285 54.3914 79.7285C53.9064 79.7285 53.5802 79.5345 53.2363 79.0672L50.397 75.1082H50.3265L47.5313 79.076C47.1963 79.561 46.9141 79.7285 46.4115 79.7285Z",fill:"white"}),c("path",{d:"M63.7055 79.7285C62.8678 79.7285 62.374 79.2171 62.374 78.3442V69.0417H59.7464C59.0234 69.0417 58.5384 68.6273 58.5384 67.9395C58.5384 67.2518 59.0146 66.8373 59.7464 66.8373H67.6734C68.3964 66.8373 68.8725 67.2518 68.8725 67.9395C68.8725 68.6273 68.3876 69.0417 67.6734 69.0417H65.0369V78.3442C65.0369 79.2171 64.5431 79.7285 63.7055 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7263C5.85358 44.3937 2.5 48.9245 2.5 53.828C2.5 62.4089 12.77 69.8486 27.7816 73.5172M86.4709 40.7263C92.1464 44.3937 95.5 48.9245 95.5 53.828C95.5 61.8744 86.4695 68.9174 72.967 72.7885M27.7816 73.5172L23.267 65.1137M27.7816 73.5172L19.6553 77.7545",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),Ia=({src:e,withCdn:t})=>{const{permanentGallery:r}=tt();if(!e)return null;const o="size-full object-cover";return t?c(mt,{className:o,src:e,onlyThumbnail:!0,fadeIn:!r}):c("img",{className:o,src:e})},jt=({children:e})=>{const{extendMode:t}=nt();return c("div",{className:se("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},Ta=({item:e})=>{const{aspectRatioStyle:t}=ht(),{type:r}=e;let o,s;switch(r){case"360":o=e.images[0].src,s=!0;break;case"interior-360":o=e.poster,s=!0;break;case"image":o=e.src,s=!0;break;case"video":o=e.poster,s=!0;break;case"custom":o=e.thumbnailSrc,s=!1;break;default:s=!1}const l=c(Ia,{src:o,withCdn:s});let f;switch(r){case"360":f=c(jt,{children:c(eo,{className:"size-full"})});break;case"interior-360":f=c(jt,{children:c(Jr,{className:"size-full"})});break;case"video":f=c(jt,{children:c(Qr,{className:"size-full p-0.5 text-background"})});break;case"custom":f=o?null:c(jt,{children:c(Kr,{className:"size-full p-0.5 text-background"})});break}return c("div",{className:"relative bg-foreground/30",style:t,children:[l,f&&c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:f})]})},Sa={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},to=({color:e="neutral",orientation:t="horizontal"})=>{const r=Sa[e];return c("div",{className:se(r,t==="horizontal"?"h-px w-full":"w-px h-full")})},no=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:r,infiniteCarrousel:o,permanentGallery:s,isFullScreen:l,maxItemsShown:f}=tt(),{categories:n,aspectRatioStyle:m}=ht(),{items:h,extendMode:k,extendTransition:d,masterItemIndex:p,prevItem:a,nextItem:M,scrollToItemIndex:C,resetView:L}=nt(),_=$e(()=>{if(r)return[];const z=new Array;let U=n[0];const K=ce=>n.find(A=>A.items.some(Y=>Y===ce));for(let ce=0;ce<h.length;ce++){const A=h[ce],Y=K(A);Y&&Y!==U&&(z.push(ce),U=Y)}return z},[n,r,h]),E=Ie(null),y=q(()=>{if(!E.current)throw new Error("slider.current is null");return E.current},[]),v=Ie(!1),I=Ie(null),[S,V]=Ce(!1),T=q((z,U)=>{const K=y(),ce=K.clientWidth,A=K.scrollWidth/h.length,Y=(z+1/2)*A-ce/2,te=K.scrollWidth-K.clientWidth;K.scrollTo({left:st(Y,0,te),behavior:U})},[h.length,y]);ge(()=>{const z=E.current;if(!z)return;const U=A=>{A.preventDefault(),v.current=!0,I.current={x:A.pageX-z.offsetLeft,scrollLeft:z.scrollLeft}},K=A=>{if(!v.current)return;if(I.current===null)throw new Error("[onMouseMove] scrollStart is null");const te=A.pageX-z.offsetLeft-I.current.x;if(!S&&Math.abs(te)<5)return;const F=I.current.scrollLeft-te;V(!0),requestAnimationFrame(()=>{z.scrollLeft=F})},ce=()=>{v.current&&(v.current=!1,requestAnimationFrame(()=>{V(!1)}))};return z.addEventListener("mousedown",U),document.addEventListener("mousemove",K),document.addEventListener("mouseleave",ce),document.addEventListener("mouseup",ce),document.addEventListener("contextmenu",ce),()=>{z.removeEventListener("mousedown",U),document.removeEventListener("mousemove",K),document.removeEventListener("mouseleave",ce),document.removeEventListener("mouseup",ce),document.removeEventListener("contextmenu",ce)}},[S]);const j=Ie(p);ge(()=>{E.current&&(T(p,"smooth"),j.current=p)},[p,T]),ge(()=>{E.current&&T(j.current,"instant")},[T,l,k,d]);const O=z=>{if(!S){if(o&&z===h.length-1&&p===0)a();else if(o&&z===0&&p===h.length-1)M();else if(!l&&f!==1&&z===h.length-1){const U=Math.ceil(f),K=h.length+1,ce=Math.max(0,K-U);C(ce)}else C(z);L()}},H=(z,U)=>f!==1?"after:opacity-0 hover:after:opacity-70":z===U?"after:opacity-100":"after:opacity-0 hover:after:opacity-70";return c("div",{ref:E,className:se("relative w-full overflow-x-auto no-scrollbar",S?"cursor-grab":"cursor-grabbing",e),children:c("div",{className:se("flex h-10 w-fit gap-1 small:h-12 small:gap-2",k&&"large:h-20 large:gap-4",t),children:h.map((z,U)=>c(Xe,{children:[_.includes(U)&&c("div",{className:"my-2",children:c(to,{color:s&&!l?"neutral":"background",orientation:"vertical"})}),c("div",{className:se("relative h-full overflow-hidden rounded-gallery transition-radius",!S&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",H(U,p)),style:m,onClick:()=>O(U),children:c(Ta,{item:z})})]},U))})})},ro=e=>1-Math.pow(1-e,2),Pa=({Media:e,itemIndex:t})=>{const{setItemInteraction:r}=nt();return ge(()=>{r(t,"ready")},[t,r]),e},oo=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),Na=({onlyPreload:e,...t})=>{const{zoom:r,isZooming:o,setZoom:s}=nt(),l=Ie(null),f=Ie(null),n=q(y=>{if(!f.current)throw new Error(`[${y??"getTransformElementOrThrow"}] transformElementRef.current is null`);return f.current},[]),m=Ie(!1),h=Ie(null),k=Ie(new Map),d=Ie({x:0,y:0,scale:1}),p=Ie(null),a=q(y=>{const v=n("setTransformStyle"),{x:I,y:S,scale:V}={...d.current,...y},T=st(V,1,_t),j=v.clientWidth,O=v.clientHeight,H=j*T,z=O*T,U=st(I,-(H-j),0),K=st(S,-(z-O),0);d.current={x:U,y:K,scale:T},v.style.transform=`translate(${U}px, ${K}px) scale(${T})`},[n]),M=q((y,v)=>{const{x:I,y:S,scale:V}=d.current,{x:T,y:j,scale:O}={...d.current,...y};p.current&&(cancelAnimationFrame(p.current),p.current=null);const H=()=>{a({x:T,y:j,scale:O}),s(O)},z=Math.abs(T-I)<1&&Math.abs(j-S)<1&&Math.abs(O-V)<.005;if(!v||z){H();return}const U=new Date().getTime(),K=()=>{const ce=()=>{const Y=new Date().getTime()-U;if(Y>=v){H(),p.current=null;return}const te=Math.min(Y/v,1),F=ro(te),J=Gt(I,T,F),_e=Gt(S,j,F),X=Gt(V,O,F);a({x:J,y:_e,scale:X}),K()};p.current=requestAnimationFrame(ce)};K()},[a,s]),C=q((y,v)=>{let{x:I,y:S}=d.current;y.x&&(I+=y.x),y.y&&(S+=y.y),M({x:I,y:S},v)},[M]),L=q((y,v,I)=>{const S=d.current.scale,V=st(y,1,_t),T=V/S,{x:j,y:O}=d.current,{x:H,y:z}=v,U=-j+H,K=-O+z,ce=U*T,A=K*T,Y=ce-H,te=A-z,F=-Y,J=-te;M({x:F,y:J,scale:V},I)},[M]),_=q(y=>{const v=n("shiftZoomFromButton"),I=v.clientWidth,S=v.clientHeight;L(y,{x:I/2,y:S/2},200)},[n,L]),E=q((y,v,I)=>{const{scale:S}=d.current;L(S+y,v,I)},[L]);return ge(()=>{e||f.current&&_(r)},[e,_,r]),ge(()=>{if(e||!o)return;const y=f.current;if(!y)return;const v=V=>{V.preventDefault(),V.stopPropagation(),m.current=!0,h.current={x:V.clientX,y:V.clientY}},I=V=>{if(!m.current)return;if(!h.current)throw new Error("mouseStartXY.current is null");V.stopPropagation();const T=V.clientX-h.current.x,j=V.clientY-h.current.y;C({x:T,y:j}),h.current={x:V.clientX,y:V.clientY}},S=()=>{m.current=!1};return y.addEventListener("mousedown",v),document.addEventListener("mousemove",I),document.addEventListener("mouseleave",S),document.addEventListener("mouseup",S),document.addEventListener("contextmenu",S),()=>{y.removeEventListener("mousedown",v),document.removeEventListener("mousemove",I),document.removeEventListener("mouseleave",S),document.removeEventListener("mouseup",S),document.removeEventListener("contextmenu",S)}},[o,C,e]),ge(()=>{if(e)return;const y=l.current;if(!y)return;const v=I=>{const{ctrlKey:S,clientX:V,clientY:T,deltaX:j,deltaY:O}=I;if(S){if(!o&&O>=0)return;const{left:H,top:z}=y.getBoundingClientRect(),U=V-H,K=T-z;E(-.01*O,{x:U,y:K})}else{if(!o)return;C({x:-2*j,y:-2*O})}I.preventDefault()};return y.addEventListener("wheel",v),()=>{y.removeEventListener("wheel",v)}},[o,C,E,e]),ge(()=>{const y=l.current,v=f.current;if(!y||!v)return;const I=k.current,S=j=>{for(let O=0;O<j.changedTouches.length;O++){const H=j.changedTouches[O];I.set(H.identifier,H)}},V=j=>{for(let O=0;O<j.changedTouches.length;O++){const H=j.changedTouches[O];I.delete(H.identifier)}},T=j=>{const O=j.touches.length;if(O===1){if(!o)return;j.preventDefault();const H=j.touches[0],z=I.get(H.identifier);if(!z)throw new Error("touchStart is null");const U=H.clientX-z.clientX,K=H.clientY-z.clientY;C({x:U,y:K}),I.set(H.identifier,H)}else if(O===2){j.preventDefault();const[H,z]=j.touches,U=I.get(H.identifier),K=I.get(z.identifier);if(!U||!K)throw new Error("initialTouch1 or initialTouch2 is null");const ce=oo(U,K),Y=oo(H,z)/ce,{left:te,top:F}=y.getBoundingClientRect();E(Y-1,{x:(H.clientX+z.clientX)/2-te,y:(H.clientY+z.clientY)/2-F}),I.set(H.identifier,H),I.set(z.identifier,z)}};return v.addEventListener("touchstart",S),v.addEventListener("touchmove",T),v.addEventListener("touchend",V),v.addEventListener("touchcancel",V),()=>{v.removeEventListener("touchstart",S),v.removeEventListener("touchmove",T),v.removeEventListener("touchend",V),v.removeEventListener("touchcancel",V)}},[o,C,E]),c("div",{ref:l,className:`relative size-full overflow-hidden ${o?"z-zoomed-image cursor-move":""}`,children:c("div",{ref:f,className:"origin-top-left",children:c(mt,{...t,imgInPlayerWidthRatio:e?1:r})})})},Ra=({hotspot:e})=>{const{title:t,icon:r,description:o,position:s,detail:l}=e,{getIconConfig:f}=Ot(),n=r?f(r):void 0,{extendMode:m,setShownDetails:h}=nt(),k=!!l,d=l?.type==="image",p=!!t||!!o,a=d?c(Kr,{className:"size-4"}):c("div",{className:"size-1"}),M=()=>{d&&h({src:l.src,title:t,text:o})};return c("div",{className:se("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",k?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:M,children:[c("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",children:[c("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),c("div",{className:"p-1",children:n?.Icon?c("div",{className:"size-4",children:n.Icon}):a})]}),!d&&p&&c("div",{className:se("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",m&&"large:max-w-56",s.y<.55?"-top-1":"-bottom-1",s.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:c("div",{className:"space-y-1 text-pretty",children:[t&&c("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:t}),o&&c("div",{className:"text-xs text-foreground/65 small:text-sm",children:o})]})})]})},Aa=({hotspot:e})=>{const{detail:t}=e,r=c(Ra,{hotspot:e});switch(t?.type){case"link":case"pdf":return c("a",{href:t.src,target:"_blank",rel:"noreferrer",children:r});default:return r}},ao=({hotspots:e,itemIndex:t,className:r,onLoad:o,...s})=>{const{isShowingDetails:l,currentItemHotspotsVisible:f,setItemInteraction:n}=nt();return c("div",{className:se("relative size-full overflow-hidden",r),children:c("div",{className:se("size-full duration-details",l?"scale-105":"scale-100"),children:[c(Na,{className:"size-full object-cover",onLoad:m=>{t!==void 0&&n(t,"ready"),o?.(m)},...s}),f&&e?.map((m,h)=>c(Aa,{hotspot:m},h))]})})};window.libpannellum=function(e,t,r){function o(k){var d=t.createElement("canvas");d.style.width=d.style.height="100%",k.appendChild(d);var p,a,M,C,L,_,E,y,v,I,S,V,T,j,O,H;this.init=function(g,b,ue,oe,Q,x,ne,ae){if(b===r&&(b="equirectangular"),b!="equirectangular"&&b!="cubemap"&&b!="multires")throw console.log("Error: invalid image type specified!"),{type:"config error"};if(I=b,v=g,S=ue,H=ae||{},p){if(M&&(a.detachShader(p,M),a.deleteShader(M)),C&&(a.detachShader(p,C),a.deleteShader(C)),a.bindBuffer(a.ARRAY_BUFFER,null),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null),p.texture&&a.deleteTexture(p.texture),p.nodeCache)for(var we=0;we<p.nodeCache.length;we++)a.deleteTexture(p.nodeCache[we].texture);a.deleteProgram(p),p=r}y=r;var ie,Ye=!1,Ne;if(I=="cubemap")for(ie=0;ie<6;ie++)v[ie].width>0?(Ne===r&&(Ne=v[ie].width),Ne!=v[ie].width&&console.log("Cube faces have inconsistent widths: "+Ne+" vs. "+v[ie].width)):Ye=!0;function je(Fe){if(Ye){var W=Fe*Fe*4,Le=new Uint8ClampedArray(W),Ee=ae.backgroundColor?ae.backgroundColor:[0,0,0];Ee[0]*=255,Ee[1]*=255,Ee[2]*=255;for(var he=0;he<W;he++)Le[he++]=Ee[0],Le[he++]=Ee[1],Le[he++]=Ee[2];var Te=new ImageData(Le,Fe,Fe);for(ie=0;ie<6;ie++)v[ie].width==0&&(v[ie]=Te)}}if(I=="cubemap"&&Ne&Ne-1&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(a||(a=d.getContext("experimental-webgl",{alpha:!1,depth:!1})),a&&a.getError()==1286&&Be()),!a&&(I=="multires"&&v.hasOwnProperty("fallbackPath")||I=="cubemap")&&("WebkitAppearance"in t.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||navigator.appVersion.indexOf("MSIE 10")!==-1)){_&&k.removeChild(_),_=t.createElement("div"),_.className="pnlm-world";var Qe;v.basePath?Qe=v.basePath+v.fallbackPath:Qe=v.fallbackPath;var qe=["f","r","b","l","u","d"],Re=0,xe=function(){var W=t.createElement("canvas");W.className="pnlm-face pnlm-"+qe[this.side]+"face",_.appendChild(W);var Le=W.getContext("2d");W.style.width=this.width+4+"px",W.style.height=this.height+4+"px",W.width=this.width+4,W.height=this.height+4,Le.drawImage(this,2,2);var Ee=Le.getImageData(0,0,W.width,W.height),he=Ee.data,Te,ee;for(Te=2;Te<W.width-2;Te++)for(ee=0;ee<4;ee++)he[(Te+W.width)*4+ee]=he[(Te+W.width*2)*4+ee],he[(Te+W.width*(W.height-2))*4+ee]=he[(Te+W.width*(W.height-3))*4+ee];for(Te=2;Te<W.height-2;Te++)for(ee=0;ee<4;ee++)he[(Te*W.width+1)*4+ee]=he[(Te*W.width+2)*4+ee],he[((Te+1)*W.width-2)*4+ee]=he[((Te+1)*W.width-3)*4+ee];for(ee=0;ee<4;ee++)he[(W.width+1)*4+ee]=he[(W.width*2+2)*4+ee],he[(W.width*2-2)*4+ee]=he[(W.width*3-3)*4+ee],he[(W.width*(W.height-2)+1)*4+ee]=he[(W.width*(W.height-3)+2)*4+ee],he[(W.width*(W.height-1)-2)*4+ee]=he[(W.width*(W.height-2)-3)*4+ee];for(Te=1;Te<W.width-1;Te++)for(ee=0;ee<4;ee++)he[Te*4+ee]=he[(Te+W.width)*4+ee],he[(Te+W.width*(W.height-1))*4+ee]=he[(Te+W.width*(W.height-2))*4+ee];for(Te=1;Te<W.height-1;Te++)for(ee=0;ee<4;ee++)he[Te*W.width*4+ee]=he[(Te*W.width+1)*4+ee],he[((Te+1)*W.width-1)*4+ee]=he[((Te+1)*W.width-2)*4+ee];for(ee=0;ee<4;ee++)he[ee]=he[(W.width+1)*4+ee],he[(W.width-1)*4+ee]=he[(W.width*2-2)*4+ee],he[W.width*(W.height-1)*4+ee]=he[(W.width*(W.height-2)+1)*4+ee],he[(W.width*W.height-1)*4+ee]=he[(W.width*(W.height-1)-2)*4+ee];Le.putImageData(Ee,0,0),ze.call(this)},ze=function(){this.width>0?(L===r&&(L=this.width),L!=this.width&&console.log("Fallback faces have inconsistent widths: "+L+" vs. "+this.width)):Ye=!0,Re++,Re==6&&(L=this.width,k.appendChild(_),ne())};for(Ye=!1,ie=0;ie<6;ie++){var We=new Image;We.crossOrigin=H.crossOrigin?H.crossOrigin:"anonymous",We.side=ie,We.onload=xe,We.onerror=ze,I=="multires"?We.src=encodeURI(Qe.replace("%s",qe[ie])+"."+v.extension):We.src=encodeURI(v[ie].src)}je(L);return}else if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};I=="cubemap"&&je(Ne),v.basePath?v.fullpath=v.basePath+v.path:v.fullpath=v.path,v.invTileResolution=1/v.tileResolution;var Oe=Y();for(E=[],ie=0;ie<6;ie++)E[ie]=Oe.slice(ie*12,ie*12+12),Oe=Y();var B=0,de=0;if(I=="equirectangular"?(B=Math.max(v.width,v.height),de=a.getParameter(a.MAX_TEXTURE_SIZE)):I=="cubemap"&&(B=Ne,de=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE)),B>de)throw console.log("Error: The image is too big; it's "+B+"px wide, but this device's maximum supported size is "+de+"px."),{type:"webgl size error",width:B,maxWidth:de};ae!==r&&(ae.horizonPitch!==r||ae.horizonRoll!==r)&&(y=[ae.horizonPitch==r?0:ae.horizonPitch,ae.horizonRoll==r?0:ae.horizonRoll]);var fe=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),M=a.createShader(a.VERTEX_SHADER);var ye=s;I=="multires"&&(ye=l),a.shaderSource(M,ye),a.compileShader(M),C=a.createShader(a.FRAGMENT_SHADER);var He=m;I=="cubemap"?(fe=a.TEXTURE_CUBE_MAP,He=n):I=="multires"&&(He=h),a.shaderSource(C,He),a.compileShader(C),p=a.createProgram(),a.attachShader(p,M),a.attachShader(p,C),a.linkProgram(p),a.getShaderParameter(M,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(M)),a.getShaderParameter(C,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(C)),a.getProgramParameter(p,a.LINK_STATUS)||console.log(a.getProgramInfoLog(p)),a.useProgram(p),p.drawInProgress=!1;var Pe=ae.backgroundColor?ae.backgroundColor:[0,0,0];a.clearColor(Pe[0],Pe[1],Pe[2],1),a.clear(a.COLOR_BUFFER_BIT),p.texCoordLocation=a.getAttribLocation(p,"a_texCoord"),a.enableVertexAttribArray(p.texCoordLocation),I!="multires"?(V||(V=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,V),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),p.aspectRatio=a.getUniformLocation(p,"u_aspectRatio"),a.uniform1f(p.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),p.psi=a.getUniformLocation(p,"u_psi"),p.theta=a.getUniformLocation(p,"u_theta"),p.f=a.getUniformLocation(p,"u_f"),p.h=a.getUniformLocation(p,"u_h"),p.v=a.getUniformLocation(p,"u_v"),p.vo=a.getUniformLocation(p,"u_vo"),p.rot=a.getUniformLocation(p,"u_rot"),a.uniform1f(p.h,oe/(Math.PI*2)),a.uniform1f(p.v,Q/Math.PI),a.uniform1f(p.vo,x/Math.PI*2),I=="equirectangular"&&(p.backgroundColor=a.getUniformLocation(p,"u_backgroundColor"),a.uniform4fv(p.backgroundColor,Pe.concat([1]))),p.texture=a.createTexture(),a.bindTexture(fe,p.texture),I=="cubemap"?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[2])):a.texImage2D(fe,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v),a.texParameteri(fe,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(fe,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(fe,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(fe,a.TEXTURE_MAG_FILTER,a.LINEAR)):(p.vertPosLocation=a.getAttribLocation(p,"a_vertCoord"),a.enableVertexAttribArray(p.vertPosLocation),T||(T=a.createBuffer()),j||(j=a.createBuffer()),O||(O=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,j),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,O),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),p.perspUniform=a.getUniformLocation(p,"u_perspMatrix"),p.cubeUniform=a.getUniformLocation(p,"u_cubeMatrix"),p.level=-1,p.currentNodes=[],p.nodeCache=[],p.nodeCacheTimestamp=0);var Ve=a.getError();if(Ve!==0)throw console.log("Error: Something went wrong with WebGL!",Ve),{type:"webgl error"};ne()},this.destroy=function(){if(k!==r&&(d!==r&&k.contains(d)&&k.removeChild(d),_!==r&&k.contains(_)&&k.removeChild(_)),a){var g=a.getExtension("WEBGL_lose_context");g&&g.loseContext()}},this.resize=function(){var g=e.devicePixelRatio||1;d.width=d.clientWidth*g,d.height=d.clientHeight*g,a&&(a.getError()==1286&&Be(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),I!="multires"&&a.uniform1f(p.aspectRatio,d.clientWidth/d.clientHeight))},this.resize(),this.setPose=function(g,b){y=[g,b]},this.render=function(g,b,ue,oe){var Q,x,ne,ae=0;if(oe===r&&(oe={}),oe.roll&&(ae=oe.roll),y!==r){var we=y[0],ie=y[1],Ye=g,Ne=b,je=Math.cos(ie)*Math.sin(g)*Math.sin(we)+Math.cos(g)*(Math.cos(we)*Math.cos(b)+Math.sin(ie)*Math.sin(we)*Math.sin(b)),Qe=-Math.sin(g)*Math.sin(ie)+Math.cos(g)*Math.cos(ie)*Math.sin(b),qe=Math.cos(ie)*Math.cos(we)*Math.sin(g)+Math.cos(g)*(-Math.cos(b)*Math.sin(we)+Math.cos(we)*Math.sin(ie)*Math.sin(b));g=Math.asin(Math.max(Math.min(qe,1),-1)),b=Math.atan2(Qe,je);var Re=[Math.cos(Ye)*(Math.sin(ie)*Math.sin(we)*Math.cos(Ne)-Math.cos(we)*Math.sin(Ne)),Math.cos(Ye)*Math.cos(ie)*Math.cos(Ne),Math.cos(Ye)*(Math.cos(we)*Math.sin(ie)*Math.cos(Ne)+Math.sin(Ne)*Math.sin(we))],xe=[-Math.cos(g)*Math.sin(b),Math.cos(g)*Math.cos(b)],ze=Math.acos(Math.max(Math.min((Re[0]*xe[0]+Re[1]*xe[1])/(Math.sqrt(Re[0]*Re[0]+Re[1]*Re[1]+Re[2]*Re[2])*Math.sqrt(xe[0]*xe[0]+xe[1]*xe[1])),1),-1));Re[2]<0&&(ze=2*Math.PI-ze),ae+=ze}if(!a&&(I=="multires"||I=="cubemap")){ne=L/2;var We={f:"translate3d(-"+(ne+2)+"px, -"+(ne+2)+"px, -"+ne+"px)",b:"translate3d("+(ne+2)+"px, -"+(ne+2)+"px, "+ne+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(ne+2)+"px, -"+ne+"px, "+(ne+2)+"px) rotateX(270deg)",d:"translate3d(-"+(ne+2)+"px, "+ne+"px, -"+(ne+2)+"px) rotateX(90deg)",l:"translate3d(-"+ne+"px, -"+(ne+2)+"px, "+(ne+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+ne+"px, -"+(ne+2)+"px, -"+(ne+2)+"px) rotateY(270deg)"};Q=1/Math.tan(ue/2);var Oe=Q*d.clientWidth/2+"px",B="perspective("+Oe+") translateZ("+Oe+") rotateX("+g+"rad) rotateY("+b+"rad) ",de=Object.keys(We);for(x=0;x<6;x++){var fe=_.querySelector(".pnlm-"+de[x]+"face");fe&&(fe.style.webkitTransform=B+We[de[x]],fe.style.transform=B+We[de[x]])}return}if(I!="multires"){var ye=2*Math.atan(Math.tan(ue*.5)/(a.drawingBufferWidth/a.drawingBufferHeight));Q=1/Math.tan(ye*.5),a.uniform1f(p.psi,b),a.uniform1f(p.theta,g),a.uniform1f(p.rot,ae),a.uniform1f(p.f,Q),S===!0&&I=="equirectangular"&&(a.bindTexture(a.TEXTURE_2D,p.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v)),a.drawArrays(a.TRIANGLES,0,6)}else{var He=X(ue,a.drawingBufferWidth/a.drawingBufferHeight,.1,100);Me(ue);var Pe=te();Pe=F(Pe,-ae,"z"),Pe=F(Pe,-g,"x"),Pe=F(Pe,b,"y"),Pe=J(Pe),a.uniformMatrix4fv(p.perspUniform,!1,new Float32Array(_e(He))),a.uniformMatrix4fv(p.cubeUniform,!1,new Float32Array(_e(Pe)));var Ve=$(He,Pe);if(p.nodeCache.sort(z),p.nodeCache.length>200&&p.nodeCache.length>p.currentNodes.length+50)for(var Fe=p.nodeCache.splice(200,p.nodeCache.length-200),x=0;x<Fe.length;x++)a.deleteTexture(Fe[x].texture);p.currentNodes=[];var W=["f","b","u","d","l","r"];for(ne=0;ne<6;ne++){var Le=new ce(E[ne],W[ne],1,0,0,v.fullpath);A(Ve,Le,g,b)}for(p.currentNodes.sort(U),x=Z.length-1;x>=0;x--)p.currentNodes.indexOf(Z[x].node)===-1&&(Z[x].node.textureLoad=!1,Z.splice(x,1));if(Z.length===0)for(x=0;x<p.currentNodes.length;x++){var Ee=p.currentNodes[x];if(!Ee.texture&&!Ee.textureLoad){Ee.textureLoad=!0,setTimeout(P,0,Ee);break}}K()}if(oe.returnImage!==r)return d.toDataURL("image/png")},this.isLoading=function(){if(a&&I=="multires"){for(var g=0;g<p.currentNodes.length;g++)if(!p.currentNodes[g].textureLoaded)return!0}return!1},this.getCanvas=function(){return d};function z(g,b){return g.level==1&&b.level!=1?-1:b.level==1&&g.level!=1?1:b.timestamp-g.timestamp}function U(g,b){return g.level!=b.level?g.level-b.level:g.diff-b.diff}function K(){if(!p.drawInProgress){p.drawInProgress=!0,a.clear(a.COLOR_BUFFER_BIT);for(var g=0;g<p.currentNodes.length;g++)p.currentNodes[g].textureLoaded>1&&(a.bindBuffer(a.ARRAY_BUFFER,T),a.bufferData(a.ARRAY_BUFFER,new Float32Array(p.currentNodes[g].vertices),a.STATIC_DRAW),a.vertexAttribPointer(p.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,j),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,p.currentNodes[g].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));p.drawInProgress=!1}}function ce(g,b,ue,oe,Q,x){this.vertices=g,this.side=b,this.level=ue,this.x=oe,this.y=Q,this.path=x.replace("%s",b).replace("%l",ue).replace("%x",oe).replace("%y",Q)}function A(g,b,ue,oe,Q){if(Je(g,b.vertices)){var x=b.vertices,ne=x[0]+x[3]+x[6]+x[9],ae=x[1]+x[4]+x[7]+x[10],we=x[2]+x[5]+x[8]+x[11],ie=Math.sqrt(ne*ne+ae*ae+we*we),Ye=Math.asin(we/ie),Ne=Math.atan2(ae,ne),je=Ne-oe;je+=je>Math.PI?-2*Math.PI:je<-Math.PI?2*Math.PI:0,je=Math.abs(je),b.diff=Math.acos(Math.sin(ue)*Math.sin(Ye)+Math.cos(ue)*Math.cos(Ye)*Math.cos(je));for(var Qe=!1,qe=0;qe<p.nodeCache.length;qe++)if(p.nodeCache[qe].path==b.path){Qe=!0,p.nodeCache[qe].timestamp=p.nodeCacheTimestamp++,p.nodeCache[qe].diff=b.diff,p.currentNodes.push(p.nodeCache[qe]);break}if(Qe||(b.timestamp=p.nodeCacheTimestamp++,p.currentNodes.push(b),p.nodeCache.push(b)),b.level<p.level){var Re=v.cubeResolution*Math.pow(2,b.level-v.maxLevel),xe=Math.ceil(Re*v.invTileResolution)-1,ze=Re%v.tileResolution*2,We=Re*2%v.tileResolution;We===0&&(We=v.tileResolution),ze===0&&(ze=v.tileResolution*2);var Oe=.5;(b.x==xe||b.y==xe)&&(Oe=1-v.tileResolution/(v.tileResolution+We));var B=1-Oe,de=[],fe,ye,He=Oe,Pe=Oe,Ve=Oe,Fe=B,W=B,Le=B;We<v.tileResolution&&(b.x==xe&&b.y!=xe?(Pe=.5,W=.5,(b.side=="d"||b.side=="u")&&(Ve=.5,Le=.5)):b.x!=xe&&b.y==xe&&(He=.5,Fe=.5,(b.side=="l"||b.side=="r")&&(Ve=.5,Le=.5))),ze<=v.tileResolution&&(b.x==xe&&(He=0,Fe=1,(b.side=="l"||b.side=="r")&&(Ve=0,Le=1)),b.y==xe&&(Pe=0,W=1,(b.side=="d"||b.side=="u")&&(Ve=0,Le=1))),fe=[x[0],x[1],x[2],x[0]*He+x[3]*Fe,x[1]*Oe+x[4]*B,x[2]*Ve+x[5]*Le,x[0]*He+x[6]*Fe,x[1]*Pe+x[7]*W,x[2]*Ve+x[8]*Le,x[0]*Oe+x[9]*B,x[1]*Pe+x[10]*W,x[2]*Ve+x[11]*Le],ye=new ce(fe,b.side,b.level+1,b.x*2,b.y*2,v.fullpath),de.push(ye),b.x==xe&&ze<=v.tileResolution||(fe=[x[0]*He+x[3]*Fe,x[1]*Oe+x[4]*B,x[2]*Ve+x[5]*Le,x[3],x[4],x[5],x[3]*Oe+x[6]*B,x[4]*Pe+x[7]*W,x[5]*Ve+x[8]*Le,x[0]*He+x[6]*Fe,x[1]*Pe+x[7]*W,x[2]*Ve+x[8]*Le],ye=new ce(fe,b.side,b.level+1,b.x*2+1,b.y*2,v.fullpath),de.push(ye)),!(b.x==xe&&ze<=v.tileResolution)&&!(b.y==xe&&ze<=v.tileResolution)&&(fe=[x[0]*He+x[6]*Fe,x[1]*Pe+x[7]*W,x[2]*Ve+x[8]*Le,x[3]*Oe+x[6]*B,x[4]*Pe+x[7]*W,x[5]*Ve+x[8]*Le,x[6],x[7],x[8],x[9]*He+x[6]*Fe,x[10]*Oe+x[7]*B,x[11]*Ve+x[8]*Le],ye=new ce(fe,b.side,b.level+1,b.x*2+1,b.y*2+1,v.fullpath),de.push(ye)),b.y==xe&&ze<=v.tileResolution||(fe=[x[0]*Oe+x[9]*B,x[1]*Pe+x[10]*W,x[2]*Ve+x[11]*Le,x[0]*He+x[6]*Fe,x[1]*Pe+x[7]*W,x[2]*Ve+x[8]*Le,x[9]*He+x[6]*Fe,x[10]*Oe+x[7]*B,x[11]*Ve+x[8]*Le,x[9],x[10],x[11]],ye=new ce(fe,b.side,b.level+1,b.x*2,b.y*2+1,v.fullpath),de.push(ye));for(var Ee=0;Ee<de.length;Ee++)A(g,de[Ee],ue,oe)}}}function Y(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function te(){return[1,0,0,0,1,0,0,0,1]}function F(g,b,ue){var oe=Math.sin(b),Q=Math.cos(b);if(ue=="x")return[g[0],Q*g[1]+oe*g[2],Q*g[2]-oe*g[1],g[3],Q*g[4]+oe*g[5],Q*g[5]-oe*g[4],g[6],Q*g[7]+oe*g[8],Q*g[8]-oe*g[7]];if(ue=="y")return[Q*g[0]-oe*g[2],g[1],Q*g[2]+oe*g[0],Q*g[3]-oe*g[5],g[4],Q*g[5]+oe*g[3],Q*g[6]-oe*g[8],g[7],Q*g[8]+oe*g[6]];if(ue=="z")return[Q*g[0]+oe*g[1],Q*g[1]-oe*g[0],g[2],Q*g[3]+oe*g[4],Q*g[4]-oe*g[3],g[5],Q*g[6]+oe*g[7],Q*g[7]-oe*g[6],g[8]]}function J(g){return[g[0],g[1],g[2],0,g[3],g[4],g[5],0,g[6],g[7],g[8],0,0,0,0,1]}function _e(g){return[g[0],g[4],g[8],g[12],g[1],g[5],g[9],g[13],g[2],g[6],g[10],g[14],g[3],g[7],g[11],g[15]]}function X(g,b,ue,oe){var Q=2*Math.atan(Math.tan(g/2)*a.drawingBufferHeight/a.drawingBufferWidth),x=1/Math.tan(Q/2);return[x/b,0,0,0,0,x,0,0,0,0,(oe+ue)/(ue-oe),2*oe*ue/(ue-oe),0,0,-1,0]}function G(g,b){a.bindTexture(a.TEXTURE_2D,b),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,g),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.bindTexture(a.TEXTURE_2D,null)}var Z=[],le=function(){var g=4,b={},ue;function oe(){var ae=this;this.texture=this.callback=null,this.image=new Image,this.image.crossOrigin=ue||"anonymous";var we=function(){ae.image.width>0&&ae.image.height>0?(G(ae.image,ae.texture),ae.callback(ae.texture,!0)):ae.callback(ae.texture,!1),x(ae)};this.image.addEventListener("load",we),this.image.addEventListener("error",we)}oe.prototype.loadTexture=function(ae,we,ie){this.texture=we,this.callback=ie,this.image.src=ae};function Q(ae,we,ie,Ye){this.node=ae,this.src=we,this.texture=ie,this.callback=Ye}function x(ae){if(Z.length){var we=Z.shift();ae.loadTexture(we.src,we.texture,we.callback)}else b[g++]=ae}for(var ne=0;ne<g;ne++)b[ne]=new oe;return function(ae,we,ie,Ye){ue=Ye;var Ne=a.createTexture();return g?b[--g].loadTexture(we,Ne,ie):Z.push(new Q(ae,we,Ne,ie)),Ne}}();function P(g){le(g,encodeURI(g.path+"."+v.extension),function(b,ue){g.texture=b,g.textureLoaded=ue?2:1},H.crossOrigin)}function Me(g){for(var b=1;b<v.maxLevel&&a.drawingBufferWidth>v.tileResolution*Math.pow(2,b-1)*Math.tan(g/2)*.707;)b++;p.level=b}function $(g,b){return[g[0]*b[0],g[0]*b[1],g[0]*b[2],0,g[5]*b[4],g[5]*b[5],g[5]*b[6],0,g[10]*b[8],g[10]*b[9],g[10]*b[10],g[11],-b[8],-b[9],-b[10],0]}function be(g,b){return[g[0]*b[0]+g[1]*b[1]+g[2]*b[2],g[4]*b[0]+g[5]*b[1]+g[6]*b[2],g[11]+g[8]*b[0]+g[9]*b[1]+g[10]*b[2],1/(g[12]*b[0]+g[13]*b[1]+g[14]*b[2])]}function Ge(g,b){var ue=be(g,b),oe=ue[0]*ue[3],Q=ue[1]*ue[3],x=ue[2]*ue[3],ne=[0,0,0];return oe<-1&&(ne[0]=-1),oe>1&&(ne[0]=1),Q<-1&&(ne[1]=-1),Q>1&&(ne[1]=1),(x<-1||x>1)&&(ne[2]=1),ne}function Je(g,b){var ue=Ge(g,b.slice(0,3)),oe=Ge(g,b.slice(3,6)),Q=Ge(g,b.slice(6,9)),x=Ge(g,b.slice(9,12)),ne=ue[0]+oe[0]+Q[0]+x[0];if(ne==-4||ne==4)return!1;var ae=ue[1]+oe[1]+Q[1]+x[1];if(ae==-4||ae==4)return!1;var we=ue[2]+oe[2]+Q[2]+x[2];return we!=4}function Be(){console.log("Reducing canvas size due to error 1286!"),d.width=Math.round(d.width/2),d.height=Math.round(d.height/2)}}var s=["attribute vec2 a_texCoord;","varying vec2 v_texCoord;","void main() {","gl_Position = vec4(a_texCoord, 0.0, 1.0);","v_texCoord = a_texCoord;","}"].join(""),l=["attribute vec3 a_vertCoord;","attribute vec2 a_texCoord;","uniform mat4 u_cubeMatrix;","uniform mat4 u_perspMatrix;","varying mediump vec2 v_texCoord;","void main(void) {","gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);","v_texCoord = a_texCoord;","}"].join(""),f=["precision mediump float;","uniform float u_aspectRatio;","uniform float u_psi;","uniform float u_theta;","uniform float u_f;","uniform float u_h;","uniform float u_v;","uniform float u_vo;","uniform float u_rot;","const float PI = 3.14159265358979323846264;","uniform sampler2D u_image;","uniform samplerCube u_imageCube;","varying vec2 v_texCoord;","uniform vec4 u_backgroundColor;","void main() {","float x = v_texCoord.x * u_aspectRatio;","float y = v_texCoord.y;","float sinrot = sin(u_rot);","float cosrot = cos(u_rot);","float rot_x = x * cosrot - y * sinrot;","float rot_y = x * sinrot + y * cosrot;","float sintheta = sin(u_theta);","float costheta = cos(u_theta);","float a = u_f * costheta - rot_y * sintheta;","float root = sqrt(rot_x * rot_x + a * a);","float lambda = atan(rot_x / root, a / root) + u_psi;","float phi = atan((rot_y * costheta + u_f * sintheta) / root);"].join(`
|
|
2
|
-
`),n=
|
|
3
|
-
`),m=
|
|
4
|
-
`),h=["varying mediump vec2 v_texCoord;","uniform sampler2D u_sampler;","void main(void) {","gl_FragColor = texture2D(u_sampler, v_texCoord);","}"].join("");return{renderer:function(d,p,a,M){return new o(d)}}}(window,document),window.pannellum=function(e,t,r){function o(s,l){var f=this,n,m,h,k=!1,d=Date.now(),p=0,a=0,M=-1,C=0,L=0,_=new Array(10),E=!1,y,v=!1,I=!1,S,V,T={yaw:0,pitch:0,hfov:0},j=!1,O=!1,H=0,z,U=0,K,ce,A={},Y={},te=[],F=!1,J=!1,_e={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:r,maxPitch:r,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:r,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:W,draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189]};_e.strings={loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."},s=typeof s=="string"?t.getElementById(s):s,s.classList.add("pnlm-container"),s.tabIndex=0;var X=t.createElement("div");X.className="pnlm-ui",s.appendChild(X);var G=t.createElement("div");G.className="pnlm-render-container",s.appendChild(G);var Z=t.createElement("div");Z.className="pnlm-dragfix",X.appendChild(Z);var le=t.createElement("span");le.className="pnlm-about-msg",le.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',X.appendChild(le),Z.addEventListener("contextmenu",ne);var P={},Me=t.createElement("div");Me.className="pnlm-sprite pnlm-hot-spot-debug-indicator",X.appendChild(Me),P.container=t.createElement("div"),P.container.className="pnlm-panorama-info",P.title=t.createElement("div"),P.title.className="pnlm-title-box",P.container.appendChild(P.title),P.author=t.createElement("div"),P.author.className="pnlm-author-box",P.container.appendChild(P.author),X.appendChild(P.container),P.load={},P.load.box=t.createElement("div"),P.load.box.className="pnlm-load-box",P.load.boxp=t.createElement("p"),P.load.box.appendChild(P.load.boxp),P.load.lbox=t.createElement("div"),P.load.lbox.className="pnlm-lbox",P.load.lbox.innerHTML='<div class="pnlm-loading"></div>',P.load.box.appendChild(P.load.lbox),P.load.lbar=t.createElement("div"),P.load.lbar.className="pnlm-lbar",P.load.lbarFill=t.createElement("div"),P.load.lbarFill.className="pnlm-lbar-fill",P.load.lbar.appendChild(P.load.lbarFill),P.load.box.appendChild(P.load.lbar),P.load.msg=t.createElement("p"),P.load.msg.className="pnlm-lmsg",P.load.box.appendChild(P.load.msg),X.appendChild(P.load.box),P.errorMsg=t.createElement("div"),P.errorMsg.className="pnlm-error-msg pnlm-info-box",X.appendChild(P.errorMsg);var $={};$.container=t.createElement("div"),$.container.className="pnlm-controls-container",X.appendChild($.container),$.load=t.createElement("div"),$.load.className="pnlm-load-button",$.load.addEventListener("click",function(){Tn(),vo()}),X.appendChild($.load),$.zoom=t.createElement("div"),$.zoom.className="pnlm-zoom-controls pnlm-controls",$.zoomIn=t.createElement("div"),$.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control",$.zoomIn.addEventListener("click",ss),$.zoom.appendChild($.zoomIn),$.zoomOut=t.createElement("div"),$.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control",$.zoomOut.addEventListener("click",ls),$.zoom.appendChild($.zoomOut),$.container.appendChild($.zoom),$.fullscreen=t.createElement("div"),$.fullscreen.addEventListener("click",Sn),$.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control",(t.fullscreenEnabled||t.mozFullScreenEnabled||t.webkitFullscreenEnabled||t.msFullscreenEnabled)&&$.container.appendChild($.fullscreen),$.orientation=t.createElement("div"),$.orientation.addEventListener("click",function(i){O?Ht():rn()}),$.orientation.addEventListener("mousedown",function(i){i.stopPropagation()}),$.orientation.addEventListener("touchstart",function(i){i.stopPropagation()}),$.orientation.addEventListener("pointerdown",function(i){i.stopPropagation()}),$.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var be,Ge=!1;function Je(i){e.removeEventListener("deviceorientation",Je),i&&i.alpha!==null&&i.beta!==null&&i.gamma!==null?($.container.appendChild($.orientation),be=!0,Ge&&rn()):be=!1}e.DeviceOrientationEvent?e.addEventListener("deviceorientation",Je):be=!1;var Be=t.createElement("div");Be.className="pnlm-compass pnlm-controls pnlm-control",X.appendChild(Be),l.firstScene?tn(l.firstScene):l.default&&l.default.firstScene?tn(l.default.firstScene):tn(null),Tn(!0);function g(){var i=t.createElement("div");if(i.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",i.getElementsByTagName("i").length==1){Q();return}K=n.hfov,ce=n.pitch;var u,w;if(n.type=="cubemap"){for(S=[],u=0;u<6;u++)S.push(new Image),S[u].crossOrigin=n.crossOrigin;P.load.lbox.style.display="block",P.load.lbar.style.display="none"}else if(n.type=="multires"){var N=JSON.parse(JSON.stringify(n.multiRes));n.basePath&&n.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(n.multiRes.basePath)?N.basePath=n.basePath+n.multiRes.basePath:n.multiRes.basePath?N.basePath=n.multiRes.basePath:n.basePath&&(N.basePath=n.basePath),S=N}else if(n.dynamic===!0)S=n.panorama;else{if(n.panorama===r){Q(n.strings.noPanoramaError);return}S=new Image}if(n.type=="cubemap"){var D=6,R=function(){D--,D===0&&ue()},pe=function(Se){var ke=t.createElement("a");ke.href=Se.target.src,ke.textContent=ke.href,Q(n.strings.fileAccessError.replace("%s",ke.outerHTML))};for(u=0;u<S.length;u++)w=n.cubeMap[u],w=="null"?(console.log("Will use background instead of missing cubemap face "+u),R()):(n.basePath&&!b(w)&&(w=n.basePath+w),S[u].onload=R,S[u].onerror=pe,S[u].src=yt(w))}else if(n.type=="multires")ue();else if(w="",n.basePath&&(w=n.basePath),n.dynamic!==!0){w=b(n.panorama)?n.panorama:w+n.panorama,S.onload=function(){e.URL.revokeObjectURL(this.src),ue()};var re=new XMLHttpRequest;re.onloadend=function(){if(re.status!=200){var me=t.createElement("a");me.href=w,me.textContent=me.href,Q(n.strings.fileAccessError.replace("%s",me.outerHTML))}var Se=this.response;oe(Se),P.load.msg.innerHTML=""},re.onprogress=function(me){if(me.lengthComputable){var Se=me.loaded/me.total*100;P.load.lbarFill.style.width=Se+"%";var ke,et,Ke;me.total>1e6?(ke="MB",et=(me.loaded/1e6).toFixed(2),Ke=(me.total/1e6).toFixed(2)):me.total>1e3?(ke="kB",et=(me.loaded/1e3).toFixed(1),Ke=(me.total/1e3).toFixed(1)):(ke="B",et=me.loaded,Ke=me.total),P.load.msg.innerHTML=et+" / "+Ke+" "+ke}else P.load.lbox.style.display="block",P.load.lbar.style.display="none"};try{re.open("GET",w,!0)}catch{Q(n.strings.malformedURLError)}re.responseType="blob",re.setRequestHeader("Accept","image/*,*/*;q=0.9"),re.withCredentials=n.crossOrigin==="use-credentials",re.send()}n.draggable&&X.classList.add("pnlm-grab"),X.classList.remove("pnlm-grabbing")}function b(i){return new RegExp("^(?:[a-z]+:)?//","i").test(i)||i[0]=="/"||i.slice(0,5)=="blob:"}function ue(){m||(m=new libpannellum.renderer(G)),I||(I=!0,Z.addEventListener("mousedown",we,!1),t.addEventListener("mousemove",Ne,!1),t.addEventListener("mouseup",je,!1),n.mouseZoom&&(X.addEventListener("mousewheel",de,!1),X.addEventListener("DOMMouseScroll",de,!1)),n.doubleClickZoom&&Z.addEventListener("dblclick",ie,!1),X.addEventListener("mozfullscreenchange",dt,!1),X.addEventListener("webkitfullscreenchange",dt,!1),X.addEventListener("msfullscreenchange",dt,!1),X.addEventListener("fullscreenchange",dt,!1),e.addEventListener("resize",Le,!1),e.addEventListener("orientationchange",Le,!1),n.disableKeyboardCtrl||(s.addEventListener("keydown",fe,!1),s.addEventListener("keyup",He,!1),s.addEventListener("blur",ye,!1)),t.addEventListener("mouseleave",je,!1),t.documentElement.style.pointerAction===""&&t.documentElement.style.touchAction===""?(Z.addEventListener("pointerdown",We,!1),Z.addEventListener("pointermove",Oe,!1),Z.addEventListener("pointerup",B,!1),Z.addEventListener("pointerleave",B,!1)):(Z.addEventListener("touchstart",Qe,!1),Z.addEventListener("touchmove",qe,!1),Z.addEventListener("touchend",Re,!1)),e.navigator.pointerEnabled&&(s.style.touchAction="none")),rs(),ot(n.hfov),setTimeout(function(){},500)}function oe(i){var u=new FileReader;u.addEventListener("loadend",function(){var w=u.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var N=w.indexOf("ÿÂ");(N<0||N>65536)&&Q(n.strings.iOS8WebGLError)}var D=w.indexOf("<x:xmpmeta");if(D>-1&&n.ignoreGPanoXMP!==!0){var R=w.substring(D,w.indexOf("</x:xmpmeta>")+12),pe=function(Se){var ke;return R.indexOf(Se+'="')>=0?(ke=R.substring(R.indexOf(Se+'="')+Se.length+2),ke=ke.substring(0,ke.indexOf('"'))):R.indexOf(Se+">")>=0&&(ke=R.substring(R.indexOf(Se+">")+Se.length+1),ke=ke.substring(0,ke.indexOf("<"))),ke!==r?Number(ke):null},re={fullWidth:pe("GPano:FullPanoWidthPixels"),croppedWidth:pe("GPano:CroppedAreaImageWidthPixels"),fullHeight:pe("GPano:FullPanoHeightPixels"),croppedHeight:pe("GPano:CroppedAreaImageHeightPixels"),topPixels:pe("GPano:CroppedAreaTopPixels"),heading:pe("GPano:PoseHeadingDegrees"),horizonPitch:pe("GPano:PosePitchDegrees"),horizonRoll:pe("GPano:PoseRollDegrees")};re.fullWidth!==null&&re.croppedWidth!==null&&re.fullHeight!==null&&re.croppedHeight!==null&&re.topPixels!==null&&(te.indexOf("haov")<0&&(n.haov=re.croppedWidth/re.fullWidth*360),te.indexOf("vaov")<0&&(n.vaov=re.croppedHeight/re.fullHeight*180),te.indexOf("vOffset")<0&&(n.vOffset=((re.topPixels+re.croppedHeight/2)/re.fullHeight-.5)*-180),re.heading!==null&&te.indexOf("northOffset")<0&&(n.northOffset=re.heading,n.compass!==!1&&(n.compass=!0)),re.horizonPitch!==null&&re.horizonRoll!==null&&(te.indexOf("horizonPitch")<0&&(n.horizonPitch=re.horizonPitch),te.indexOf("horizonRoll")<0&&(n.horizonRoll=re.horizonRoll)))}S.src=e.URL.createObjectURL(i)}),u.readAsBinaryString!==r?u.readAsBinaryString(i):u.readAsText(i)}function Q(i){i===r&&(i=n.strings.genericWebGLError),P.errorMsg.innerHTML="<p>"+i+"</p>",$.load.style.display="none",P.load.box.style.display="none",P.errorMsg.style.display="table",v=!0,G.style.display="none",ft("error",i)}function x(){v&&(P.load.box.style.display="none",P.errorMsg.style.display="none",v=!1,ft("errorcleared"))}function ne(i){var u=ae(i);le.style.left=u.x+"px",le.style.top=u.y+"px",clearTimeout(ne.t1),clearTimeout(ne.t2),le.style.display="block",le.style.opacity=1,ne.t1=setTimeout(function(){le.style.opacity=0},2e3),ne.t2=setTimeout(function(){le.style.display="none"},2500),i.preventDefault()}function ae(i){var u=s.getBoundingClientRect(),w={};return w.x=i.clientX-u.left,w.y=i.clientY-u.top,w}function we(i){if(i.preventDefault(),s.focus(),!(!y||!n.draggable)){var u=ae(i);if(n.hotSpotDebug){var w=Ye(i);console.log("Pitch: "+w[0]+", Yaw: "+w[1]+", Center Pitch: "+n.pitch+", Center Yaw: "+n.yaw+", HFOV: "+n.hfov)}nn(),Ht(),n.roll=0,T.hfov=0,k=!0,d=Date.now(),p=u.x,a=u.y,C=n.yaw,L=n.pitch,X.classList.add("pnlm-grabbing"),X.classList.remove("pnlm-grab"),ft("mousedown",i),Ee()}}function ie(i){if(n.minHfov===n.hfov)f.setHfov(K,1e3);else{var u=Ye(i);f.lookAt(u[0],u[1],n.minHfov,1e3)}}function Ye(i){var u=ae(i),w=m.getCanvas(),N=w.clientWidth,D=w.clientHeight,R=u.x/N*2-1,pe=(1-u.y/D*2)*D/N,re=1/Math.tan(n.hfov*Math.PI/360),me=Math.sin(n.pitch*Math.PI/180),Se=Math.cos(n.pitch*Math.PI/180),ke=re*Se-pe*me,et=Math.sqrt(R*R+ke*ke),Ke=Math.atan((pe*Se+re*me)/et)*180/Math.PI,vt=Math.atan2(R/et,ke/et)*180/Math.PI+n.yaw;return vt<-180&&(vt+=360),vt>180&&(vt-=360),[Ke,vt]}function Ne(i){if(k&&y){d=Date.now();var u=m.getCanvas(),w=u.clientWidth,N=u.clientHeight,D=ae(i),R=(Math.atan(p/w*2-1)-Math.atan(D.x/w*2-1))*180/Math.PI*n.hfov/90+C;T.yaw=(R-n.yaw)%360*.2,n.yaw=R;var pe=2*Math.atan(Math.tan(n.hfov/360*Math.PI)*N/w)*180/Math.PI,re=(Math.atan(D.y/N*2-1)-Math.atan(a/N*2-1))*180/Math.PI*pe/90+L;T.pitch=(re-n.pitch)*.2,n.pitch=re}}function je(i){k&&(k=!1,Date.now()-d>15&&(T.pitch=T.yaw=0),X.classList.add("pnlm-grab"),X.classList.remove("pnlm-grabbing"),d=Date.now(),ft("mouseup",i))}function Qe(i){if(!(!y||!n.draggable)){nn(),Ht(),n.roll=0,T.hfov=0;var u=ae(i.targetTouches[0]);if(p=u.x,a=u.y,i.targetTouches.length==2){var w=ae(i.targetTouches[1]);p+=(w.x-u.x)*.5,a+=(w.y-u.y)*.5,M=Math.sqrt((u.x-w.x)*(u.x-w.x)+(u.y-w.y)*(u.y-w.y))}k=!0,d=Date.now(),C=n.yaw,L=n.pitch,ft("touchstart",i),Ee()}}function qe(i){if(n.draggable&&(i.preventDefault(),y&&(d=Date.now()),k&&y)){var u=ae(i.targetTouches[0]),w=u.x,N=u.y;if(i.targetTouches.length==2&&M!=-1){var D=ae(i.targetTouches[1]);w+=(D.x-u.x)*.5,N+=(D.y-u.y)*.5;var R=Math.sqrt((u.x-D.x)*(u.x-D.x)+(u.y-D.y)*(u.y-D.y));ot(n.hfov+(M-R)*.1),M=R}var pe=n.hfov/360*n.touchPanSpeedCoeffFactor,re=(p-w)*pe+C;T.yaw=(re-n.yaw)%360*.2,n.yaw=re;var me=(N-a)*pe+L;T.pitch=(me-n.pitch)*.2,n.pitch=me}}function Re(){k=!1,Date.now()-d>150&&(T.pitch=T.yaw=0),M=-1,d=Date.now(),ft("touchend",event)}var xe=[],ze=[];function We(i){i.pointerType=="touch"&&(xe.push(i.pointerId),ze.push({clientX:i.clientX,clientY:i.clientY}),i.targetTouches=ze,Qe(i),i.preventDefault())}function Oe(i){if(i.pointerType=="touch"){for(var u=0;u<xe.length;u++)if(i.pointerId==xe[u]){ze[u].clientX=i.clientX,ze[u].clientY=i.clientY,i.targetTouches=ze,qe(i),i.preventDefault();return}}}function B(i){if(i.pointerType=="touch"){for(var u=!1,w=0;w<xe.length;w++)i.pointerId==xe[w]&&(xe[w]=r),xe[w]&&(u=!0);u||(xe=[],ze=[],Re()),i.preventDefault()}}function de(i){!y||n.mouseZoom=="fullscreenonly"&&!E||(i.preventDefault(),nn(),d=Date.now(),i.wheelDeltaY?(ot(n.hfov-i.wheelDeltaY*.05),T.hfov=i.wheelDelta<0?1:-1):i.wheelDelta?(ot(n.hfov-i.wheelDelta*.05),T.hfov=i.wheelDelta<0?1:-1):i.detail&&(ot(n.hfov+i.detail*1.5),T.hfov=i.detail>0?1:-1),Ee())}function fe(i){nn(),d=Date.now(),Ht(),n.roll=0;var u=i.which||i.keycode;n.capturedKeyNumbers.indexOf(u)<0||(i.preventDefault(),u==27?E&&Sn():Pe(u,!0))}function ye(){for(var i=0;i<10;i++)_[i]=!1}function He(i){var u=i.which||i.keycode;n.capturedKeyNumbers.indexOf(u)<0||(i.preventDefault(),Pe(u,!1))}function Pe(i,u){var w=!1;switch(i){case 109:case 189:case 17:case 173:_[0]!=u&&(w=!0),_[0]=u;break;case 107:case 187:case 16:case 61:_[1]!=u&&(w=!0),_[1]=u;break;case 38:_[2]!=u&&(w=!0),_[2]=u;break;case 87:_[6]!=u&&(w=!0),_[6]=u;break;case 40:_[3]!=u&&(w=!0),_[3]=u;break;case 83:_[7]!=u&&(w=!0),_[7]=u;break;case 37:_[4]!=u&&(w=!0),_[4]=u;break;case 65:_[8]!=u&&(w=!0),_[8]=u;break;case 39:_[5]!=u&&(w=!0),_[5]=u;break;case 68:_[9]!=u&&(w=!0),_[9]=u}w&&u&&(typeof performance<"u"&&performance.now()?V=performance.now():V=Date.now(),Ee())}function Ve(){if(y){var i=!1,u=n.pitch,w=n.yaw,N=n.hfov,D;typeof performance<"u"&&performance.now()?D=performance.now():D=Date.now(),V===r&&(V=D);var R=(D-V)*n.hfov/1700;if(R=Math.min(R,1),_[0]&&n.keyboardZoom===!0&&(ot(n.hfov+(T.hfov*.8+.5)*R),i=!0),_[1]&&n.keyboardZoom===!0&&(ot(n.hfov+(T.hfov*.8-.2)*R),i=!0),(_[2]||_[6])&&(n.pitch+=(T.pitch*.8+.2)*R,i=!0),(_[3]||_[7])&&(n.pitch+=(T.pitch*.8-.2)*R,i=!0),(_[4]||_[8])&&(n.yaw+=(T.yaw*.8-.2)*R,i=!0),(_[5]||_[9])&&(n.yaw+=(T.yaw*.8+.2)*R,i=!0),i&&(d=Date.now()),n.autoRotate){if(D-V>.001){var pe=(D-V)/1e3,re=(T.yaw/pe*R-n.autoRotate*.2)*pe;re=(-n.autoRotate>0?1:-1)*Math.min(Math.abs(n.autoRotate*pe),Math.abs(re)),n.yaw+=re}n.autoRotateStopDelay&&(n.autoRotateStopDelay-=D-V,n.autoRotateStopDelay<=0&&(n.autoRotateStopDelay=!1,U=n.autoRotate,n.autoRotate=0))}if(A.pitch&&(Fe("pitch"),u=n.pitch),A.yaw&&(Fe("yaw"),w=n.yaw),A.hfov&&(Fe("hfov"),N=n.hfov),R>0&&!n.autoRotate){var me=.85;!_[4]&&!_[5]&&!_[8]&&!_[9]&&!A.yaw&&(n.yaw+=T.yaw*R*me),!_[2]&&!_[3]&&!_[6]&&!_[7]&&!A.pitch&&(n.pitch+=T.pitch*R*me),!_[0]&&!_[1]&&!A.hfov&&ot(n.hfov+T.hfov*R*me)}if(V=D,R>0){T.yaw=T.yaw*.8+(n.yaw-w)/R*.2,T.pitch=T.pitch*.8+(n.pitch-u)/R*.2,T.hfov=T.hfov*.8+(n.hfov-N)/R*.2;var Se=n.autoRotate?Math.abs(n.autoRotate):5;T.yaw=Math.min(Se,Math.max(T.yaw,-Se)),T.pitch=Math.min(Se,Math.max(T.pitch,-Se)),T.hfov=Math.min(Se,Math.max(T.hfov,-Se))}_[0]&&_[1]&&(T.hfov=0),(_[2]||_[6])&&(_[3]||_[7])&&(T.pitch=0),(_[4]||_[8])&&(_[5]||_[9])&&(T.yaw=0)}}function Fe(i){var u=A[i],w=Math.min(1,Math.max((Date.now()-u.startTime)/1e3/(u.duration/1e3),0)),N=u.startPosition+n.animationTimingFunction(w)*(u.endPosition-u.startPosition);if(u.endPosition>u.startPosition&&N>=u.endPosition||u.endPosition<u.startPosition&&N<=u.endPosition||u.endPosition===u.startPosition){N=u.endPosition,T[i]=0;var D=A[i].callback,R=A[i].callbackArgs;delete A[i],typeof D=="function"&&D(R)}n[i]=N}function W(i){return i<.5?2*i*i:-1+(4-2*i)*i}function Le(){dt()}function Ee(){j||(j=!0,he())}function he(){if(Te(),z&&clearTimeout(z),k||O===!0)requestAnimationFrame(he);else if(_[0]||_[1]||_[2]||_[3]||_[4]||_[5]||_[6]||_[7]||_[8]||_[9]||n.autoRotate||A.pitch||A.yaw||A.hfov||Math.abs(T.yaw)>.01||Math.abs(T.pitch)>.01||Math.abs(T.hfov)>.01)Ve(),n.autoRotateInactivityDelay>=0&&U&&Date.now()-d>n.autoRotateInactivityDelay&&!n.autoRotate&&(n.autoRotate=U,f.lookAt(ce,r,K,3e3)),requestAnimationFrame(he);else if(m&&(m.isLoading()||n.dynamic===!0&&F))requestAnimationFrame(he);else{j=!1,V=r;var i=n.autoRotateInactivityDelay-(Date.now()-d);i>0?z=setTimeout(function(){n.autoRotate=U,f.lookAt(ce,r,K,3e3),Ee()},i):n.autoRotateInactivityDelay>=0&&U&&(n.autoRotate=U,f.lookAt(ce,r,K,3e3),Ee())}}function Te(){var i;if(y){n.yaw>180?n.yaw-=360:n.yaw<-180&&(n.yaw+=360),i=n.yaw;var u=0;if(n.avoidShowingBackground){var me=m.getCanvas(),w=n.hfov/2,N=Math.atan2(Math.tan(w/180*Math.PI),me.width/me.height)*180/Math.PI,D=n.vaov>n.haov;D?N*(1-Math.min(Math.cos((n.pitch-w)/180*Math.PI),Math.cos((n.pitch+w)/180*Math.PI))):u=w*(1-Math.min(Math.cos((n.pitch-N)/180*Math.PI),Math.cos((n.pitch+N)/180*Math.PI)))}var R=n.maxYaw-n.minYaw,pe=-180,re=180;R<360&&(pe=n.minYaw+n.hfov/2+u,re=n.maxYaw-n.hfov/2-u,R<n.hfov&&(pe=re=(pe+re)/2),n.yaw=Math.max(pe,Math.min(re,n.yaw))),n.autoRotate!==!1&&i!=n.yaw&&V!==r&&(n.autoRotate*=-1);var me=m.getCanvas(),Se=2*Math.atan(Math.tan(n.hfov/180*Math.PI*.5)/(me.width/me.height))/Math.PI*180,ke=n.minPitch+Se/2,et=n.maxPitch-Se/2,Ke=n.maxPitch-n.minPitch;Ke<Se&&(ke=et=(ke+et)/2),isNaN(ke)&&(ke=-90),isNaN(et)&&(et=90),n.pitch=Math.max(ke,Math.min(et,n.pitch)),m.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{roll:n.roll*Math.PI/180}),mo(),n.compass&&(Be.style.transform="rotate("+(-n.yaw-n.northOffset)+"deg)",Be.style.webkitTransform="rotate("+(-n.yaw-n.northOffset)+"deg)"),n.onRender&&n.onRender()}}function ee(i,u,w,N){this.w=i,this.x=u,this.y=w,this.z=N}ee.prototype.multiply=function(i){return new ee(this.w*i.w-this.x*i.x-this.y*i.y-this.z*i.z,this.x*i.w+this.w*i.x+this.y*i.z-this.z*i.y,this.y*i.w+this.w*i.y+this.z*i.x-this.x*i.z,this.z*i.w+this.w*i.z+this.x*i.y-this.y*i.x)},ee.prototype.toEulerAngles=function(){var i=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),u=Math.asin(2*(this.w*this.y-this.z*this.x)),w=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[i,u,w]};function ts(i,u,w){var N=[u?u*Math.PI/180/2:0,w?w*Math.PI/180/2:0,i?i*Math.PI/180/2:0],D=[Math.cos(N[0]),Math.cos(N[1]),Math.cos(N[2])],R=[Math.sin(N[0]),Math.sin(N[1]),Math.sin(N[2])];return new ee(D[0]*D[1]*D[2]-R[0]*R[1]*R[2],R[0]*D[1]*D[2]-D[0]*R[1]*R[2],D[0]*R[1]*D[2]+R[0]*D[1]*R[2],D[0]*D[1]*R[2]+R[0]*R[1]*D[2])}function ns(i,u,w){var N=ts(i,u,w);N=N.multiply(new ee(Math.sqrt(.5),-Math.sqrt(.5),0,0));var D=e.orientation?-e.orientation*Math.PI/180/2:0;return N.multiply(new ee(Math.cos(D),0,-Math.sin(D),0))}function fo(i){var u=ns(i.alpha,i.beta,i.gamma).toEulerAngles();typeof O=="number"&&O<10?O+=1:O===10?(H=u[2]/Math.PI*180+n.yaw,O=!0,requestAnimationFrame(he)):(n.pitch=u[0]/Math.PI*180,n.roll=-u[1]/Math.PI*180,n.yaw=-u[2]/Math.PI*180+H)}function rs(){try{var i={};n.horizonPitch!==r&&(i.horizonPitch=n.horizonPitch*Math.PI/180),n.horizonRoll!==r&&(i.horizonRoll=n.horizonRoll*Math.PI/180),n.backgroundColor!==r&&(i.backgroundColor=n.backgroundColor),m.init(S,n.type,n.dynamic,n.haov*Math.PI/180,n.vaov*Math.PI/180,n.vOffset*Math.PI/180,os,i),n.dynamic!==!0&&(S=r)}catch(u){if(u.type=="webgl error"||u.type=="no webgl")Q();else if(u.type=="webgl size error")Q(n.strings.textureSizeError.replace("%s",u.width).replace("%s",u.maxWidth));else throw Q(n.strings.unknownError),u}}function os(){if(n.sceneFadeDuration&&m.fadeImg!==r){m.fadeImg.style.opacity=0;var i=m.fadeImg;delete m.fadeImg,setTimeout(function(){G.removeChild(i),ft("scenechangefadedone")},n.sceneFadeDuration)}n.compass?Be.style.display="inline":Be.style.display="none",as(),P.load.box.style.display="none",h!==r&&(G.removeChild(h),h=r),y=!0,ft("load"),Ee()}function po(i){i.pitch=Number(i.pitch)||0,i.yaw=Number(i.yaw)||0;var u=t.createElement("div");u.className="pnlm-hotspot-base",i.cssClass?u.className+=" "+i.cssClass:u.className+=" pnlm-hotspot pnlm-sprite pnlm-"+xt(i.type);var w=t.createElement("span");i.text&&(w.innerHTML=xt(i.text));var N;if(i.video){var D=t.createElement("video"),R=i.video;n.basePath&&!b(R)&&(R=n.basePath+R),D.src=yt(R),D.controls=!0,D.style.width=i.width+"px",G.appendChild(u),w.appendChild(D)}else if(i.image){var R=i.image;n.basePath&&!b(R)&&(R=n.basePath+R),N=t.createElement("a"),N.href=yt(i.URL?i.URL:R),N.target="_blank",w.appendChild(N);var pe=t.createElement("img");pe.src=yt(R),pe.style.width=i.width+"px",pe.style.paddingTop="5px",G.appendChild(u),N.appendChild(pe),w.style.maxWidth="initial"}else i.URL?(N=t.createElement("a"),N.href=yt(i.URL),N.target="_blank",G.appendChild(N),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer",N.appendChild(u)):(i.sceneId&&(u.onclick=u.ontouchend=function(){return u.clicked||(u.clicked=!0,Pn(i.sceneId,i.targetPitch,i.targetYaw,i.targetHfov)),!1},u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),G.appendChild(u));i.createTooltipFunc?i.createTooltipFunc(u,i.createTooltipArgs):(i.text||i.video||i.image)&&(u.classList.add("pnlm-tooltip"),u.appendChild(w),w.style.width=w.scrollWidth-20+"px",w.style.marginLeft=-(w.scrollWidth-u.offsetWidth)/2+"px",w.style.marginTop=-w.scrollHeight-12+"px"),i.clickHandlerFunc&&(u.addEventListener("click",function(re){i.clickHandlerFunc(re,i.clickHandlerArgs)},"false"),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),i.div=u}function as(){J||(n.hotSpots?(n.hotSpots=n.hotSpots.sort(function(i,u){return i.pitch<u.pitch}),n.hotSpots.forEach(po)):n.hotSpots=[],J=!0,mo())}function is(){var i=n.hotSpots;if(J=!1,delete n.hotSpots,i)for(var u=0;u<i.length;u++){for(var w=i[u].div;w.parentNode!=G;)w=w.parentNode;G.removeChild(w),delete i[u].div}}function ho(i){var u=Math.sin(i.pitch*Math.PI/180),w=Math.cos(i.pitch*Math.PI/180),N=Math.sin(n.pitch*Math.PI/180),D=Math.cos(n.pitch*Math.PI/180),R=Math.cos((-i.yaw+n.yaw)*Math.PI/180),pe=u*N+w*R*D;if(i.yaw<=90&&i.yaw>-90&&pe<=0||(i.yaw>90||i.yaw<=-90)&&pe<=0)i.div.style.visibility="hidden";else{var re=Math.sin((-i.yaw+n.yaw)*Math.PI/180),me=Math.tan(n.hfov*Math.PI/360);i.div.style.visibility="visible";var Se=m.getCanvas(),ke=Se.clientWidth,et=Se.clientHeight,Ke=[-ke/me*re*w/pe/2,-ke/me*(u*D-w*R*N)/pe/2],vt=Math.sin(n.roll*Math.PI/180),wo=Math.cos(n.roll*Math.PI/180);Ke=[Ke[0]*wo-Ke[1]*vt,Ke[0]*vt+Ke[1]*wo],Ke[0]+=(ke-i.div.offsetWidth)/2,Ke[1]+=(et-i.div.offsetHeight)/2;var Nn="translate("+Ke[0]+"px, "+Ke[1]+"px) translateZ(9999px) rotate("+n.roll+"deg)";i.div.style.webkitTransform=Nn,i.div.style.MozTransform=Nn,i.div.style.transform=Nn}}function mo(){n.hotSpots.forEach(ho)}function tn(i){n={};var u,w,N=["haov","vaov","vOffset","northOffset","horizonPitch","horizonRoll"];te=[];for(u in _e)_e.hasOwnProperty(u)&&(n[u]=_e[u]);for(u in l.default)if(l.default.hasOwnProperty(u))if(u=="strings")for(w in l.default.strings)l.default.strings.hasOwnProperty(w)&&(n.strings[w]=xt(l.default.strings[w]));else n[u]=l.default[u],N.indexOf(u)>=0&&te.push(u);if(i!==null&&i!==""&&l.scenes&&l.scenes[i]){var D=l.scenes[i];for(u in D)if(D.hasOwnProperty(u))if(u=="strings")for(w in D.strings)D.strings.hasOwnProperty(w)&&(n.strings[w]=xt(D.strings[w]));else n[u]=D[u],N.indexOf(u)>=0&&te.push(u);n.scene=i}for(u in l)if(l.hasOwnProperty(u))if(u=="strings")for(w in l.strings)l.strings.hasOwnProperty(w)&&(n.strings[w]=xt(l.strings[w]));else n[u]=l[u],N.indexOf(u)>=0&&te.push(u)}function Tn(i){if(i=i||!1,i&&"preview"in n){var u=n.preview;n.basePath&&!b(u)&&(u=n.basePath+u),h=t.createElement("div"),h.className="pnlm-preview-img",h.style.backgroundImage="url('"+cs(u)+"')",G.appendChild(h)}var w=n.title,N=n.author;i&&("previewTitle"in n&&(n.title=n.previewTitle),"previewAuthor"in n&&(n.author=n.previewAuthor)),n.hasOwnProperty("title")||(P.title.innerHTML=""),n.hasOwnProperty("author")||(P.author.innerHTML=""),!n.hasOwnProperty("title")&&!n.hasOwnProperty("author")&&(P.container.style.display="none"),$.load.innerHTML="<p>"+n.strings.loadButtonLabel+"</p>",P.load.boxp.innerHTML=n.strings.loadingLabel;for(var D in n)if(n.hasOwnProperty(D))switch(D){case"title":P.title.innerHTML=xt(n[D]),P.container.style.display="inline";break;case"author":P.author.innerHTML=n.strings.bylineLabel.replace("%s",xt(n[D])),P.container.style.display="inline";break;case"fallback":var R=t.createElement("a");R.href=yt(n[D]),R.target="_blank",R.textContent="Click here to view this panorama in an alternative viewer.";var pe=t.createElement("p");pe.textContent="Your browser does not support WebGL.",pe.appendChild(t.createElement("br")),pe.appendChild(R),P.errorMsg.innerHTML="",P.errorMsg.appendChild(pe);break;case"hfov":ot(Number(n[D]));break;case"autoLoad":n[D]===!0&&m===r&&(P.load.box.style.display="inline",$.load.style.display="none",g());break;case"showZoomCtrl":n[D]&&n.showControls!=!1?$.zoom.style.display="block":$.zoom.style.display="none";break;case"showFullscreenCtrl":n[D]&&n.showControls!=!1&&("fullscreen"in t||"mozFullScreen"in t||"webkitIsFullScreen"in t||"msFullscreenElement"in t)?$.fullscreen.style.display="block":$.fullscreen.style.display="none";break;case"hotSpotDebug":n[D]?Me.style.display="block":Me.style.display="none";break;case"showControls":n[D]||($.orientation.style.display="none",$.zoom.style.display="none",$.fullscreen.style.display="none");break;case"orientationOnByDefault":n[D]&&(be===r?Ge=!0:be===!0&&rn());break}i&&(w?n.title=w:delete n.title,N?n.author=N:delete n.author)}function Sn(){if(y&&!v)if(E)t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen();else try{s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.msRequestFullscreen?s.msRequestFullscreen():s.webkitRequestFullScreen()}catch{}}function dt(){var i=e.innerWidth==screen.width&&e.innerHeight==screen.height;t.fullscreen||t.mozFullScreen||t.webkitIsFullScreen||t.msFullscreenElement||i?($.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),E=!0):($.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),E=!1),m.resize(),ot(n.hfov),Ee()}function ss(){y&&(ot(n.hfov-5),Ee())}function ls(){y&&(ot(n.hfov+5),Ee())}function go(i){var u=n.minHfov;if(n.type=="multires"&&m&&(u=Math.min(u,m.getCanvas().width/(n.multiRes.cubeResolution/90*.9))),u>n.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),n.hfov;var w=n.hfov;if(i<u?w=u:i>n.maxHfov?w=n.maxHfov:w=i,n.avoidShowingBackground&&m){var N=m.getCanvas();w=Math.min(w,Math.atan(Math.tan((n.maxPitch-n.minPitch)/360*Math.PI)/N.height*N.width)*360/Math.PI)}return w}function ot(i){n.hfov=go(i)}function nn(){A={},U=n.autoRotate?n.autoRotate:U,n.autoRotate=!1}function vo(){x(),y=!1,$.load.style.display="none",P.load.box.style.display="inline",g()}function Pn(i,u,w,N,D){y=!1,A={};var R,pe,re,me;if(n.sceneFadeDuration&&!D){var Se=m.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{returnImage:!0});if(Se!==r){R=new Image,R.className="pnlm-fade-img",R.style.transition="opacity "+n.sceneFadeDuration/1e3+"s",R.style.width="100%",R.style.height="100%",R.onload=function(){Pn(i,u,w,N,!0)},R.src=Se,G.appendChild(R),m.fadeImg=R;return}}u==="same"?pe=n.pitch:pe=u,w==="same"?re=n.yaw:w==="sameAzimuth"?re=n.yaw+(n.northOffset||0)-(l.scenes[i].northOffset||0):re=w,N==="same"?me=n.hfov:me=N,is(),tn(i),T.yaw=T.pitch=T.hfov=0,Tn(),pe!==r&&(n.pitch=pe),re!==r&&(n.yaw=re),me!==r&&(n.hfov=me),ft("scenechange",i),vo()}function Ht(){e.removeEventListener("deviceorientation",fo),$.orientation.classList.remove("pnlm-orientation-button-active"),O=!1}function rn(){O=1,e.addEventListener("deviceorientation",fo),$.orientation.classList.add("pnlm-orientation-button-active")}function xt(i){return l.escapeHTML?String(i).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split(`
|
|
5
|
-
`).join("<br>"):String(
|
|
6
|
-
`).join("<br>")}function yt(i){return i.trim().toLowerCase().indexOf("javascript:")===0?"about:blank":i}function cs(i){return yt(i).replace(/"/g,"%22").replace(/'/g,"%27")}this.isLoaded=function(){return!!y},this.getPitch=function(){return n.pitch},this.setPitch=function(i,u,w,N){return u=u==r?1e3:Number(u),u?A.pitch={startTime:Date.now(),startPosition:n.pitch,endPosition:i,duration:u,callback:w,callbackArgs:N}:n.pitch=i,Ee(),this},this.getPitchBounds=function(){return[n.minPitch,n.maxPitch]},this.setPitchBounds=function(i){return n.minPitch=Math.max(-90,Math.min(i[0],90)),n.maxPitch=Math.max(-90,Math.min(i[1],90)),this},this.getYaw=function(){return n.yaw},this.setYaw=function(i,u,w,N){return u=u==r?1e3:Number(u),i=(i+180)%360-180,u?(n.yaw-i>180?i+=360:i-n.yaw>180&&(i-=360),A.yaw={startTime:Date.now(),startPosition:n.yaw,endPosition:i,duration:u,callback:w,callbackArgs:N}):n.yaw=i,Ee(),this},this.getYawBounds=function(){return[n.minYaw,n.maxYaw]},this.setYawBounds=function(i){return n.minYaw=Math.max(-180,Math.min(i[0],180)),n.maxYaw=Math.max(-180,Math.min(i[1],180)),this},this.getHfov=function(){return n.hfov},this.setHfov=function(i,u,w,N){return u=u==r?1e3:Number(u),u?A.hfov={startTime:Date.now(),startPosition:n.hfov,endPosition:go(i),duration:u,callback:w,callbackArgs:N}:ot(i),Ee(),this},this.getHfovBounds=function(){return[n.minHfov,n.maxHfov]},this.setHfovBounds=function(i){return n.minHfov=Math.max(0,i[0]),n.maxHfov=Math.max(0,i[1]),this},this.lookAt=function(i,u,w,N,D,R){return N=N==r?1e3:Number(N),i!==r&&(this.setPitch(i,N,D,R),D=r),u!==r&&(this.setYaw(u,N,D,R),D=r),w!==r&&this.setHfov(w,N,D,R),this},this.getNorthOffset=function(){return n.northOffset},this.setNorthOffset=function(i){return n.northOffset=Math.min(360,Math.max(0,i)),Ee(),this},this.getHorizonRoll=function(){return n.horizonRoll},this.setHorizonRoll=function(i){return n.horizonRoll=Math.min(90,Math.max(-90,i)),m.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),Ee(),this},this.getHorizonPitch=function(){return n.horizonPitch},this.setHorizonPitch=function(i){return n.horizonPitch=Math.min(90,Math.max(-90,i)),m.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),Ee(),this},this.startAutoRotate=function(i){return i=i||U||1,n.autoRotate=i,f.lookAt(ce,r,K,3e3),Ee(),this},this.stopAutoRotate=function(){return U=n.autoRotate?n.autoRotate:U,n.autoRotate=!1,n.autoRotateInactivityDelay=-1,this},this.getRenderer=function(){return m},this.setUpdate=function(i){return F=i===!0,m===r?ue():Ee(),this},this.mouseEventToCoords=function(i){return Ye(i)},this.loadScene=function(i,u,w,N){return y!==!1&&Pn(i,u,w,N),this},this.getScene=function(){return n.scene},this.addScene=function(i,u){return l.scenes[i]=u,this},this.removeScene=function(i){return n.scene===i||!l.scenes.hasOwnProperty(i)?!1:(delete l.scenes[i],!0)},this.toggleFullscreen=function(){return Sn(),this},this.getConfig=function(){return n},this.getContainer=function(){return s},this.addHotSpot=function(i,u){if(u===r&&n.scene===r)n.hotSpots.push(i);else{var w=u!==r?u:n.scene;if(l.scenes.hasOwnProperty(w))l.scenes[w].hasOwnProperty("hotSpots")||(l.scenes[w].hotSpots=[],w==n.scene&&(n.hotSpots=l.scenes[w].hotSpots)),l.scenes[w].hotSpots.push(i);else throw"Invalid scene ID!"}return(u===r||n.scene==u)&&(po(i),y&&ho(i)),this},this.removeHotSpot=function(i,u){if(u===r||n.scene==u){if(!n.hotSpots)return!1;for(var w=0;w<n.hotSpots.length;w++)if(n.hotSpots[w].hasOwnProperty("id")&&n.hotSpots[w].id===i){for(var N=n.hotSpots[w].div;N.parentNode!=G;)N=N.parentNode;return G.removeChild(N),delete n.hotSpots[w].div,n.hotSpots.splice(w,1),!0}}else if(l.scenes.hasOwnProperty(u)){if(!l.scenes[u].hasOwnProperty("hotSpots"))return!1;for(var w=0;w<l.scenes[u].hotSpots.length;w++)if(l.scenes[u].hotSpots[w].hasOwnProperty("id")&&l.scenes[u].hotSpots[w].id===i)return l.scenes[u].hotSpots.splice(w,1),!0}else return!1},this.resize=function(){m&&Le()},this.isLoaded=function(){return y},this.isOrientationSupported=function(){return be||!1},this.stopOrientation=function(){Ht()},this.startOrientation=function(){be&&rn()},this.isOrientationActive=function(){return!!O},this.on=function(i,u){return Y[i]=Y[i]||[],Y[i].push(u),this},this.off=function(i,u){if(!i)return Y={},this;if(u){var w=Y[i].indexOf(u);w>=0&&Y[i].splice(w,1),Y[i].length==0&&delete Y[i]}else delete Y[i];return this};function ft(i){if(i in Y)for(var u=Y[i].length;u>0;u--)Y[i][Y[i].length-u].apply(null,[].slice.call(arguments,1))}this.destroy=function(){m&&m.destroy(),I&&(Z.removeEventListener("mousedown",we,!1),Z.removeEventListener("dblclick",ie,!1),t.removeEventListener("mousemove",Ne,!1),t.removeEventListener("mouseup",je,!1),s.removeEventListener("mousewheel",de,!1),s.removeEventListener("DOMMouseScroll",de,!1),s.removeEventListener("mozfullscreenchange",dt,!1),s.removeEventListener("webkitfullscreenchange",dt,!1),s.removeEventListener("msfullscreenchange",dt,!1),s.removeEventListener("fullscreenchange",dt,!1),e.removeEventListener("resize",Le,!1),e.removeEventListener("orientationchange",Le,!1),s.removeEventListener("keydown",fe,!1),s.removeEventListener("keyup",He,!1),s.removeEventListener("blur",ye,!1),t.removeEventListener("mouseleave",je,!1),Z.removeEventListener("touchstart",Qe,!1),Z.removeEventListener("touchmove",qe,!1),Z.removeEventListener("touchend",Re,!1),Z.removeEventListener("pointerdown",We,!1),Z.removeEventListener("pointermove",Oe,!1),Z.removeEventListener("pointerup",B,!1),Z.removeEventListener("pointerleave",B,!1)),s.innerHTML="",s.classList.remove("pnlm-container"),X.classList.remove("pnlm-grab"),X.classList.remove("pnlm-grabbing")}}return{viewer:function(l,f){return new o(l,f)}}}(window,document),window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}}());var io,so;function Da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function za(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Oa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $t=(so=io=function(e){Oa(t,e);function t(r){Da(this,t);var o=za(this,e.call(this,r));return o.renderImage=function(s){var l=o.props.children,f=[].concat(l),n=[];Array.isArray(f)&&f.map(function(h){switch(h.props.type){case"info":return n.push({id:Math.random().toString(36).substr(2,9),type:h.props.type,pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,text:h.props.text?h.props.text:"",URL:h.props.URL?h.props.URL:""});case"custom":return n.push({id:Math.random().toString(36).substr(2,9),pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,cssClass:h.props.cssClass?h.props.cssClass:"tooltipcss",createTooltipFunc:h.props.tooltip?h.props.tooltip:o.hotspotTooltip,createTooltipArgs:h.props.tooltipArg?h.props.tooltipArg:{},clickHandlerFunc:h.props.handleClick?h.props.handleClick:o.handleClickHotspot,clickHandlerArgs:h.props.handleClickArg?h.props.handleClickArg:{name:"test"}});default:return[]}});var m={type:"equirectangular",panorama:o.props.image,haov:o.props.haov,vaov:o.props.vaov,vOffset:o.props.vOffset,yaw:o.props.yaw,pitch:o.props.pitch,hfov:o.props.hfov,minHfov:o.props.minHfov,maxHfov:o.props.maxHfov,minPitch:o.props.minPitch,maxPitch:o.props.maxPitch,minYaw:o.props.minYaw,maxYaw:o.props.maxYaw,autoRotate:o.props.autoRotate,compass:o.props.compass,preview:o.props.preview,previewTitle:o.props.previewTitle,previewAuthor:o.props.previewAuthor,author:o.props.author,title:o.props.title,autoLoad:o.props.autoLoad,orientationOnByDefault:o.props.orientationOnByDefault,showZoomCtrl:o.props.showZoomCtrl,keyboardZoom:o.props.keyboardZoom,mouseZoom:o.props.mouseZoom,draggable:o.props.draggable,disableKeyboardCtrl:o.props.disableKeyboardCtrl,showFullscreenCtrl:o.props.showFullscreenCtrl,showControls:o.props.showControls,hotSpotDebug:o.props.hotspotDebug,hotSpots:n,onRender:o.props.onRender};Object.keys(m).forEach(function(h){return m[h]===""&&delete m[h]}),s==="update"&&o.panorama.destroy(),o.panorama=pannellum.viewer(o.props.id?o.props.id:o.state.id,m),o.panorama.on("load",o.props.onLoad),o.panorama.on("scenechange",o.props.onScenechange),o.panorama.on("scenechangefadedone",o.props.onScenechangefadedone),o.panorama.on("error",o.props.onError),o.panorama.on("errorcleared",o.props.onErrorcleared),o.panorama.on("mousedown",o.props.onMousedown),o.panorama.on("mouseup",o.props.onMouseup),o.panorama.on("touchstart",o.props.onTouchstart),o.panorama.on("touchend",o.props.onTouchend)},o.componentDidMount=function(){o.renderImage("mount")},o.handleClickHotspot=function(s,l){console.log("hotspot clicked",l.name)},o.hotspotTooltip=function(s,l){s.setAttribute("id","textInfo");var f=document.createElement("div");f.classList.add("hotspot");var n=document.createElement("div");n.classList.add("out");var m=document.createElement("div");m.classList.add("in");var h=document.createElement("div");h.classList.add("image"),s.appendChild(f),f.appendChild(m),f.appendChild(n)},o.getViewer=function(){return o.panorama},o.forceRender=function(){o.renderImage("update")},o.state={id:Math.random().toString(36).substr(2,9)},o}return t.prototype.componentDidUpdate=function(o,s,l){(o.image!==this.props.image||o.width!==this.props.width||o.height!==this.props.height||o.compass!==this.props.compass||o.title!==this.props.title||o.author!==this.props.author||o.preview!==this.props.preview||o.previewTitle!==this.props.previewTitle||o.previewAuthor!==this.props.previewAuthor||o.showZoomCtrl!==this.props.showZoomCtrl||o.showFullscreenCtrl!==this.props.showFullscreenCtrl||o.showControls!==this.props.showControls||o.children.length!==this.props.children.length)&&this.renderImage("update"),(o.maxYaw!==this.props.maxYaw||o.minYaw!==this.props.minYaw||o.maxPitch!==this.props.maxPitch||o.minPitch!==this.props.minPitch||o.maxHfov!==this.props.maxHfov||o.minHfov!==this.props.minHfov)&&(this.panorama.setYawBounds([this.props.minYaw,this.props.maxYaw]),this.panorama.setPitchBounds([this.props.minPitch,this.props.maxPitch]),this.panorama.setHfovBounds([this.props.minHfov,this.props.maxHfov])),o.yaw!==this.props.yaw&&this.panorama.setYaw(this.props.yaw),o.pitch!==this.props.pitch&&this.panorama.setPitch(this.props.pitch),o.hfov!==this.props.hfov&&this.panorama.setHfov(this.props.hfov)},t.prototype.render=function(){var o=this,s=this.props,l=s.width,f=s.height,n={width:l,height:f};return xn.createElement("div",{id:this.props.id?this.props.id:this.state.id,style:n,ref:function(h){return o.imageNode=h}})},t}(Yt),io.defaultProps={children:[],width:"100%",height:"400px",image:"",haov:360,vaov:180,vOffset:0,yaw:0,pitch:0,hfov:100,minHfov:50,maxHfov:150,minPitch:-90,maxPitch:90,minYaw:-180,maxYaw:180,autoRotate:0,compass:!1,preview:"",previewTitle:"",previewAuthor:"",title:"",author:"",autoLoad:!1,orientationOnByDefault:!1,showZoomCtrl:!0,keyboardZoom:!0,mouseZoom:!0,draggable:!0,disableKeyboardCtrl:!1,showFullscreenCtrl:!0,showControls:!0,onLoad:function(){},onScenechange:function(){},onScenechangefadedone:function(){},onError:function(){},onErrorcleared:function(){},onMousedown:function(){},onMouseup:function(){},onTouchstart:function(){},onTouchend:function(){},hotspotDebug:!1,onRender:null},so);$t.propTypes={},$t.Hotspot=function(){},$t.Hotspot=function(){};const lo=100,qt=100,Kt=50,Ha=0,Fa=0,Ua=e=>{const[t,r]=Ce(0),[o,s]=Ce(!1);return ge(()=>{const l=XMLHttpRequest.prototype.open,f=XMLHttpRequest.prototype.send;let n=!1;return XMLHttpRequest.prototype.open=function(m,h,k=!0,d,p){return h.toString().includes(e)&&(n=!0,s(!0)),l.call(this,m,h,k,d||null,p||null)},XMLHttpRequest.prototype.send=function(m){return n&&(this.addEventListener("progress",h=>{if(h.lengthComputable){const k=Math.round(h.loaded/h.total*100);r(k)}}),this.addEventListener("loadend",()=>{n=!1,r(100),s(!1)})),f.call(this,m)},()=>{XMLHttpRequest.prototype.open=l,XMLHttpRequest.prototype.send=f}},[e]),[t,o]};function Va(e,t=50,r=200){let o=null,s=0;return(...l)=>{const f=Date.now();o&&(clearTimeout(o),o=null),f-s>=t&&(e(...l),s=f),o=setTimeout(()=>{e(...l)},r)}}const Wa=({className:e})=>c(Ze,{className:e,customizationKey:"UI_INTERIOR_360_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Ba=({isPannellumLoaded:e,isLoading:t,progress:r,autoloadInterior360:o,loadScene:s})=>e?null:(o&&s(),c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4",children:c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(Jr,{className:"size-20"}),c(rt,{color:"neutral",shape:"icon",onClick:s,children:c(Wa,{className:"size-full"})}),c("div",{className:se("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",!t&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${r}%`}})})]})})),Ya=e=>{const{itemIndex:t,src:r,poster:o,onLoaded:s,onError:l}=e,{autoLoadInterior360:f}=tt(),{isShowingDetails:n,setItemInteraction:m,zoom:h,isZooming:k,setZoom:d}=nt(),[p,a]=Ua(r),M=Ie(null),C=Ie(null),[L,_]=Ce(!1),E=q(()=>{t!==void 0&&m(t,"ready"),s?.(),_(!0)},[t,m,s]),y=q(I=>{I instanceof MouseEvent&&I.button!==0||(I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation())},[]),v=q(()=>{const I=M.current?.getViewer();I&&I.loadScene()},[]);return ge(()=>{if(M.current&&L&&C.current){const I=M.current.getViewer(),S=C.current;if(I){const V=U=>{U.preventDefault();const K=Wr(I.getHfov(),Kt,qt,_t,Lt),A=(U.deltaY<0?"zoom-in":"zoom-out")==="zoom-in"?Math.min(K+Lt,_t):Math.max(K-Lt,1);d(A)},T=Va(V,100,150),j=U=>{U.preventDefault();const K=Wr(I.getHfov(),Kt,qt,_t,Lt,!0);d(K)};S.addEventListener("wheel",T),S.addEventListener("dblclick",j);const O=Math.abs(1-Math.abs(h)),H=qt-Kt,z=lo-O*H;return I.setHfov(z),()=>{S.removeEventListener("wheel",V),S.removeEventListener("dblclick",j)}}}},[h,L,k,d]),c(Xe,{children:c("div",{className:se("relative aspect-[4/3] w-full overflow-hidden bg-transparent"),children:c("div",{className:se("size-full",n?"scale-105":"scale-100"),children:[c("div",{ref:C,children:[c("style",{children:`
|
|
1
|
+
(function(Ae,lt){typeof exports=="object"&&typeof module<"u"?lt(exports):typeof define=="function"&&define.amd?define(["exports"],lt):(Ae=typeof globalThis<"u"?globalThis:Ae||self,lt(Ae.CarCutterWebplayerWC={}))})(this,function(Ae){"use strict";const lt="cc-webplayer",Ft="cc-webplayer-custom-media",Ut="cc-webplayer-icon",Rn="composition-loading",An="composition-loaded",Dn="composition-load-error",zn="item-change",On="extend-mode-on",Hn="extend-mode-off",rn="hotspots-on",an="hotspots-off",Fn="gallery-open",Un="gallery-close",wr="quality",yr="*",br="full_screen",Vn="cc-webplayer:",xr="cc-analytics:",Er="",Cr="";function Mr(e,t){return`https://cdn.car-cutter.com/gallery/${e}/${t}/composition_v3.json`}function kr(e,t){const o=e.split("/"),r=o.pop();return[o.join("/"),t,r].join("/")}function Lr(){const e="car-cutter-webplayer-browser-id",t=typeof window<"u"?window.localStorage.getItem(e):null;if(t)return t;const o=crypto.randomUUID();return typeof window<"u"&&window.localStorage.setItem(e,o),o}function Ir(){const e="car-cutter-webplayer-session-id",t=typeof window<"u"?window.sessionStorage.getItem(e):null;if(t)return t;const o=crypto.randomUUID();return typeof window<"u"&&window.sessionStorage.setItem(e,o),o}function Tr(){return crypto.randomUUID()}function Wn(){return!!customElements.get(lt)&&!!customElements.get(Ft)&&!!customElements.get(Ut)}var Tt,_e,Bn,_t,Yn,Xn,Gn,Zn,sn,ln,cn,jn,St={},$n=[],Sr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nt=Array.isArray;function at(e,t){for(var o in t)e[o]=t[o];return e}function un(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ct(e,t,o){var r,i,s,d={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:d[s]=t[s];if(arguments.length>2&&(d.children=arguments.length>3?Tt.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)d[s]==null&&(d[s]=e.defaultProps[s]);return Pt(e,d,r,i,null)}function Pt(e,t,o,r,i){var s={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++Bn,__i:-1,__u:0};return i==null&&_e.vnode!=null&&_e.vnode(s),s}function Nr(){return{current:null}}function Xe(e){return e.children}function it(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?Et(e):null}function qn(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return qn(e)}}function dn(e){(!e.__d&&(e.__d=!0)&&_t.push(e)&&!Vt.__r++||Yn!=_e.debounceRendering)&&((Yn=_e.debounceRendering)||Xn)(Vt)}function Vt(){for(var e,t,o,r,i,s,d,n=1;_t.length;)_t.length>n&&_t.sort(Gn),e=_t.shift(),n=_t.length,e.__d&&(o=void 0,i=(r=(t=e).__v).__e,s=[],d=[],t.__P&&((o=at({},r)).__v=r.__v+1,_e.vnode&&_e.vnode(o),pn(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,s,i??Et(r),!!(32&r.__u),d),o.__v=r.__v,o.__.__k[o.__i]=o,to(s,o,d),o.__e!=i&&qn(o)));Vt.__r=0}function Kn(e,t,o,r,i,s,d,n,m,h,C){var f,p,a,M,I,y,_=r&&r.__k||$n,k=t.length;for(m=Pr(o,t,_,m,k),f=0;f<k;f++)(a=o.__k[f])!=null&&(p=a.__i==-1?St:_[a.__i]||St,a.__i=f,y=pn(e,a,p,i,s,d,n,m,h,C),M=a.__e,a.ref&&p.ref!=a.ref&&(p.ref&&fn(p.ref,null,a),C.push(a.ref,a.__c||M,a)),I==null&&M!=null&&(I=M),4&a.__u||p.__k===a.__k?m=Jn(a,m,e):typeof a.type=="function"&&y!==void 0?m=y:M&&(m=M.nextSibling),a.__u&=-7);return o.__e=I,m}function Pr(e,t,o,r,i){var s,d,n,m,h,C=o.length,f=C,p=0;for(e.__k=new Array(i),s=0;s<i;s++)(d=t[s])!=null&&typeof d!="boolean"&&typeof d!="function"?(m=s+p,(d=e.__k[s]=typeof d=="string"||typeof d=="number"||typeof d=="bigint"||d.constructor==String?Pt(null,d,null,null,null):Nt(d)?Pt(Xe,{children:d},null,null,null):d.constructor==null&&d.__b>0?Pt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d).__=e,d.__b=e.__b+1,n=null,(h=d.__i=Rr(d,o,m,f))!=-1&&(f--,(n=o[h])&&(n.__u|=2)),n==null||n.__v==null?(h==-1&&(i>C?p--:i<C&&p++),typeof d.type!="function"&&(d.__u|=4)):h!=m&&(h==m-1?p--:h==m+1?p++:(h>m?p--:p++,d.__u|=4))):e.__k[s]=null;if(f)for(s=0;s<C;s++)(n=o[s])!=null&&!(2&n.__u)&&(n.__e==r&&(r=Et(n)),oo(n,n));return r}function Jn(e,t,o){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Jn(r[i],t,o));return t}e.__e!=t&&(t&&e.type&&!o.contains(t)&&(t=Et(e)),o.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nt(e)?e.some(function(o){ut(o,t)}):t.push(e)),t}function Rr(e,t,o,r){var i,s,d=e.key,n=e.type,m=t[o];if(m===null&&e.key==null||m&&d==m.key&&n==m.type&&!(2&m.__u))return o;if(r>(m!=null&&!(2&m.__u)?1:0))for(i=o-1,s=o+1;i>=0||s<t.length;){if(i>=0){if((m=t[i])&&!(2&m.__u)&&d==m.key&&n==m.type)return i;i--}if(s<t.length){if((m=t[s])&&!(2&m.__u)&&d==m.key&&n==m.type)return s;s++}}return-1}function Qn(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||Sr.test(t)?o:o+"px"}function Wt(e,t,o,r,i){var s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||Qn(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||Qn(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(Zn,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=o,o?r?o.u=r.u:(o.u=sn,e.addEventListener(t,s?cn:ln,s)):e.removeEventListener(t,s?cn:ln,s);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function eo(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t.t==null)t.t=sn++;else if(t.t<o.u)return;return o(_e.event?_e.event(t):t)}}}function pn(e,t,o,r,i,s,d,n,m,h){var C,f,p,a,M,I,y,_,k,L,v,E,S,Z,T,G,j,O=t.type;if(t.constructor!=null)return null;128&o.__u&&(m=!!(32&o.__u),s=[n=t.__e=o.__e]),(C=_e.__b)&&C(t);e:if(typeof O=="function")try{if(_=t.props,k="prototype"in O&&O.prototype.render,L=(C=O.contextType)&&r[C.__c],v=C?L?L.props.value:C.__:r,o.__c?y=(f=t.__c=o.__c).__=f.__E:(k?t.__c=f=new O(_,v):(t.__c=f=new it(_,v),f.constructor=O,f.render=Dr),L&&L.sub(f),f.props=_,f.state||(f.state={}),f.context=v,f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),k&&f.__s==null&&(f.__s=f.state),k&&O.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=at({},f.__s)),at(f.__s,O.getDerivedStateFromProps(_,f.__s))),a=f.props,M=f.state,f.__v=t,p)k&&O.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),k&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(k&&O.getDerivedStateFromProps==null&&_!==a&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(_,v),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(_,f.__s,v)===!1||t.__v==o.__v){for(t.__v!=o.__v&&(f.props=_,f.state=f.__s,f.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(ee){ee&&(ee.__=t)}),E=0;E<f._sb.length;E++)f.__h.push(f._sb[E]);f._sb=[],f.__h.length&&d.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(_,f.__s,v),k&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(a,M,I)})}if(f.context=v,f.props=_,f.__P=e,f.__e=!1,S=_e.__r,Z=0,k){for(f.state=f.__s,f.__d=!1,S&&S(t),C=f.render(f.props,f.state,f.context),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[]}else do f.__d=!1,S&&S(t),C=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++Z<25);f.state=f.__s,f.getChildContext!=null&&(r=at(at({},r),f.getChildContext())),k&&!p&&f.getSnapshotBeforeUpdate!=null&&(I=f.getSnapshotBeforeUpdate(a,M)),G=C,C!=null&&C.type===Xe&&C.key==null&&(G=no(C.props.children)),n=Kn(e,Nt(G)?G:[G],t,o,r,i,s,d,n,m,h),f.base=t.__e,t.__u&=-161,f.__h.length&&d.push(f),y&&(f.__E=f.__=null)}catch(ee){if(t.__v=null,m||s!=null)if(ee.then){for(t.__u|=m?160:128;n&&n.nodeType==8&&n.nextSibling;)n=n.nextSibling;s[s.indexOf(n)]=null,t.__e=n}else for(j=s.length;j--;)un(s[j]);else t.__e=o.__e,t.__k=o.__k;_e.__e(ee,t,o)}else s==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):n=t.__e=Ar(o.__e,t,o,r,i,s,d,m,h);return(C=_e.diffed)&&C(t),128&t.__u?void 0:n}function to(e,t,o){for(var r=0;r<o.length;r++)fn(o[r],o[++r],o[++r]);_e.__c&&_e.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){_e.__e(s,i.__v)}})}function no(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Nt(e)?e.map(no):at({},e)}function Ar(e,t,o,r,i,s,d,n,m){var h,C,f,p,a,M,I,y=o.props,_=t.props,k=t.type;if(k=="svg"?i="http://www.w3.org/2000/svg":k=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(h=0;h<s.length;h++)if((a=s[h])&&"setAttribute"in a==!!k&&(k?a.localName==k:a.nodeType==3)){e=a,s[h]=null;break}}if(e==null){if(k==null)return document.createTextNode(_);e=document.createElementNS(i,k,_.is&&_),n&&(_e.__m&&_e.__m(t,s),n=!1),s=null}if(k==null)y===_||n&&e.data==_||(e.data=_);else{if(s=s&&Tt.call(e.childNodes),y=o.props||St,!n&&s!=null)for(y={},h=0;h<e.attributes.length;h++)y[(a=e.attributes[h]).name]=a.value;for(h in y)if(a=y[h],h!="children"){if(h=="dangerouslySetInnerHTML")f=a;else if(!(h in _)){if(h=="value"&&"defaultValue"in _||h=="checked"&&"defaultChecked"in _)continue;Wt(e,h,null,a,i)}}for(h in _)a=_[h],h=="children"?p=a:h=="dangerouslySetInnerHTML"?C=a:h=="value"?M=a:h=="checked"?I=a:n&&typeof a!="function"||y[h]===a||Wt(e,h,a,y[h],i);if(C)n||f&&(C.__html==f.__html||C.__html==e.innerHTML)||(e.innerHTML=C.__html),t.__k=[];else if(f&&(e.innerHTML=""),Kn(t.type=="template"?e.content:e,Nt(p)?p:[p],t,o,r,k=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,d,s?s[0]:o.__k&&Et(o,0),n,m),s!=null)for(h=s.length;h--;)un(s[h]);n||(h="value",k=="progress"&&M==null?e.removeAttribute("value"):M!=null&&(M!==e[h]||k=="progress"&&!M||k=="option"&&M!=y[h])&&Wt(e,h,M,y[h],i),h="checked",I!=null&&I!=e[h]&&Wt(e,h,I,y[h],i))}return e}function fn(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){_e.__e(i,o)}}function oo(e,t,o){var r,i;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||fn(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){_e.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&oo(r[i],t,o||typeof e.type!="function");o||un(e.__e),e.__c=e.__=e.__e=void 0}function Dr(e,t,o){return this.constructor(e,o)}function Rt(e,t,o){var r,i,s,d;t==document&&(t=document.documentElement),_e.__&&_e.__(e,t),i=(r=typeof o=="function")?null:o&&o.__k||t.__k,s=[],d=[],pn(t,e=(!r&&o||t).__k=ct(Xe,null,[e]),i||St,St,t.namespaceURI,!r&&o?[o]:i?null:t.firstChild?Tt.call(t.childNodes):null,s,!r&&o?o:i?i.__e:t.firstChild,r,d),to(s,e,d)}function ro(e,t){Rt(e,t,ro)}function zr(e,t,o){var r,i,s,d,n=at({},e.props);for(s in e.type&&e.type.defaultProps&&(d=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?i=t[s]:n[s]=t[s]==null&&d!=null?d[s]:t[s];return arguments.length>2&&(n.children=arguments.length>3?Tt.call(arguments,2):o),Pt(e.type,n,r||e.key,i||e.ref,null)}function At(e){function t(o){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&r.forEach(function(d){d.__e=!0,dn(d)})},this.sub=function(s){r.add(s);var d=s.componentWillUnmount;s.componentWillUnmount=function(){r&&r.delete(s),d&&d.call(s)}}),o.children}return t.__c="__cC"+jn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}Tt=$n.slice,_e={__e:function(e,t,o,r){for(var i,s,d;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),d=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),d=i.__d),d)return i.__E=i}catch(n){e=n}throw e}},Bn=0,it.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=at({},this.state),typeof e=="function"&&(e=e(at({},o),this.props)),e&&at(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),dn(this))},it.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dn(this))},it.prototype.render=Xe,_t=[],Xn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Gn=function(e,t){return e.__v.__b-t.__v.__b},Vt.__r=0,Zn=/(PointerCapture)$|Capture$/i,sn=0,ln=eo(!1),cn=eo(!0),jn=0;var Or=0;function c(e,t,o,r,i,s){t||(t={});var d,n,m=t;if("ref"in m)for(n in m={},t)n=="ref"?d=t[n]:m[n]=t[n];var h={type:e,props:m,key:o,ref:d,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Or,__i:-1,__u:0,__source:i,__self:s};if(typeof e=="function"&&(d=e.defaultProps))for(n in d)m[n]===void 0&&(m[n]=d[n]);return _e.vnode&&_e.vnode(h),h}var ft,De,hn,ao,Ct=0,io=[],Ve=_e,so=Ve.__b,lo=Ve.__r,co=Ve.diffed,uo=Ve.__c,po=Ve.unmount,fo=Ve.__;function Mt(e,t){Ve.__h&&Ve.__h(De,e,Ct||t),Ct=0;var o=De.__H||(De.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function be(e){return Ct=1,mn(_o,e)}function mn(e,t,o){var r=Mt(ft++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):_o(void 0,t),function(n){var m=r.__N?r.__N[0]:r.__[0],h=r.t(m,n);m!==h&&(r.__N=[h,r.__[1]],r.__c.setState({}))}],r.__c=De,!De.__f)){var i=function(n,m,h){if(!r.__c.__H)return!0;var C=r.__c.__H.__.filter(function(p){return!!p.__c});if(C.every(function(p){return!p.__N}))return!s||s.call(this,n,m,h);var f=r.__c.props!==n;return C.forEach(function(p){if(p.__N){var a=p.__[0];p.__=p.__N,p.__N=void 0,a!==p.__[0]&&(f=!0)}}),s&&s.call(this,n,m,h)||f};De.__f=!0;var s=De.shouldComponentUpdate,d=De.componentWillUpdate;De.componentWillUpdate=function(n,m,h){if(this.__e){var C=s;s=void 0,i(n,m,h),s=C}d&&d.call(this,n,m,h)},De.shouldComponentUpdate=i}return r.__N||r.__}function he(e,t){var o=Mt(ft++,3);!Ve.__s&&vn(o.__H,t)&&(o.__=e,o.u=t,De.__H.__h.push(o))}function Dt(e,t){var o=Mt(ft++,4);!Ve.__s&&vn(o.__H,t)&&(o.__=e,o.u=t,De.__h.push(o))}function ke(e){return Ct=5,Pe(function(){return{current:e}},[])}function ho(e,t,o){Ct=6,Dt(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},o==null?o:o.concat(e))}function Pe(e,t){var o=Mt(ft++,7);return vn(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function X(e,t){return Ct=8,Pe(function(){return e},t)}function kt(e){var t=De.context[e.__c],o=Mt(ft++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(De)),t.props.value):e.__}function mo(e,t){Ve.useDebugValue&&Ve.useDebugValue(t?t(e):e)}function go(){var e=Mt(ft++,11);if(!e.__){for(var t=De.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function Hr(){for(var e;e=io.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Bt),e.__H.__h.forEach(gn),e.__H.__h=[]}catch(t){e.__H.__h=[],Ve.__e(t,e.__v)}}Ve.__b=function(e){De=null,so&&so(e)},Ve.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fo&&fo(e,t)},Ve.__r=function(e){lo&&lo(e),ft=0;var t=(De=e.__c).__H;t&&(hn===De?(t.__h=[],De.__h=[],t.__.forEach(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.forEach(Bt),t.__h.forEach(gn),t.__h=[],ft=0)),hn=De},Ve.diffed=function(e){co&&co(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(io.push(t)!==1&&ao===Ve.requestAnimationFrame||((ao=Ve.requestAnimationFrame)||Fr)(Hr)),t.__H.__.forEach(function(o){o.u&&(o.__H=o.u),o.u=void 0})),hn=De=null},Ve.__c=function(e,t){t.some(function(o){try{o.__h.forEach(Bt),o.__h=o.__h.filter(function(r){return!r.__||gn(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ve.__e(r,o.__v)}}),uo&&uo(e,t)},Ve.unmount=function(e){po&&po(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(r){try{Bt(r)}catch(i){t=i}}),o.__H=void 0,t&&Ve.__e(t,o.__v))};var vo=typeof requestAnimationFrame=="function";function Fr(e){var t,o=function(){clearTimeout(r),vo&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,100);vo&&(t=requestAnimationFrame(o))}function Bt(e){var t=De,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),De=t}function gn(e){var t=De;e.__c=e.__(),De=t}function vn(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function _o(e,t){return typeof t=="function"?t(e):t}function wo(e,t){for(var o in t)e[o]=t[o];return e}function _n(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function yo(e,t){var o=t(),r=be({t:{__:o,u:t}}),i=r[0].t,s=r[1];return Dt(function(){i.__=o,i.u=t,wn(i)&&s({t:i})},[e,o,t]),he(function(){return wn(i)&&s({t:i}),e(function(){wn(i)&&s({t:i})})},[e]),o}function wn(e){var t,o,r=e.u,i=e.__;try{var s=r();return!((t=i)===(o=s)&&(t!==0||1/t==1/o)||t!=t&&o!=o)}catch{return!0}}function bo(e){e()}function xo(e){return e}function Eo(){return[!1,bo]}var Co=Dt;function Yt(e,t){this.props=e,this.context=t}function Ur(e,t){function o(i){var s=this.props.ref,d=s==i.ref;return!d&&s&&(s.call?s(null):s.current=null),t?!t(this.props,i)||!d:_n(this.props,i)}function r(i){return this.shouldComponentUpdate=o,ct(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yt.prototype=new it).isPureReactComponent=!0,Yt.prototype.shouldComponentUpdate=function(e,t){return _n(this.props,e)||_n(this.state,t)};var Mo=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Mo&&Mo(e)};var Vr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Wr(e){function t(o){var r=wo({},o);return delete r.ref,e(r,o.ref||null)}return t.$$typeof=Vr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ko=function(e,t){return e==null?null:ut(ut(e).map(t))},Br={map:ko,forEach:ko,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},Yr=_e.__e;_e.__e=function(e,t,o,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Yr(e,t,o,r)};var Lo=_e.unmount;function Io(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=wo({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Io(r,t,o)})),e}function To(e,t,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return To(r,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}function Xt(){this.__u=0,this.o=null,this.__b=null}function So(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xr(e){var t,o,r;function i(s){if(t||(t=e()).then(function(d){o=d.default||d},function(d){r=d}),r)throw r;if(!o)throw t;return ct(o,s)}return i.displayName="Lazy",i.__f=!0,i}function zt(){this.i=null,this.l=null}_e.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Lo&&Lo(e)},(Xt.prototype=new it).__c=function(e,t){var o=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(o);var i=So(r.__v),s=!1,d=function(){s||(s=!0,o.__R=null,i?i(n):n())};o.__R=d;var n=function(){if(!--r.__u){if(r.state.__a){var m=r.state.__a;r.__v.__k[0]=To(m,m.__c.__P,m.__c.__O)}var h;for(r.setState({__a:r.__b=null});h=r.o.pop();)h.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(d,d)},Xt.prototype.componentWillUnmount=function(){this.o=[]},Xt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Io(this.__b,o,r.__O=r.__P)}this.__b=null}var i=t.__a&&ct(Xe,null,e.fallback);return i&&(i.__u&=-33),[ct(Xe,null,t.__a?null:e.children),i]};var No=function(e,t,o){if(++o[1]===o[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(o=e.i;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.i=o=o[2]}};function Gr(e){return this.getChildContext=function(){return e.context},e.children}function Zr(e){var t=this,o=e.h;t.componentWillUnmount=function(){Rt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==o&&t.componentWillUnmount(),t.v||(t.h=o,t.v={nodeType:1,parentNode:o,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.insertBefore(r,i)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Rt(ct(Gr,{context:t.context},e.__v),t.v)}function jr(e,t){var o=ct(Zr,{__v:e,h:t});return o.containerInfo=t,o}(zt.prototype=new it).__a=function(e){var t=this,o=So(t.__v),r=t.l.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),No(t,e,r)):i()};o?o(s):s()}},zt.prototype.render=function(e){this.i=null,this.l=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.l.set(t[o],this.i=[1,0,this.i]);return e.children},zt.prototype.componentDidUpdate=zt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,o){No(e,o,t)})};var Po=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$r=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kr=/[A-Z0-9]/g,Jr=typeof document<"u",Qr=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ro(e,t,o){return t.__k==null&&(t.textContent=""),Rt(e,t),typeof o=="function"&&o(),e?e.__c:null}function ea(e,t,o){return ro(e,t),typeof o=="function"&&o(),e?e.__c:null}it.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(it.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ao=_e.event;function ta(){}function na(){return this.cancelBubble}function oa(){return this.defaultPrevented}_e.event=function(e){return Ao&&(e=Ao(e)),e.persist=ta,e.isPropagationStopped=na,e.isDefaultPrevented=oa,e.nativeEvent=e};var yn,ra={enumerable:!1,configurable:!0,get:function(){return this.class}},Do=_e.vnode;_e.vnode=function(e){typeof e.type=="string"&&function(t){var o=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var d in o){var n=o[d];if(!(d==="value"&&"defaultValue"in o&&n==null||Jr&&d==="children"&&r==="noscript"||d==="class"||d==="className")){var m=d.toLowerCase();d==="defaultValue"&&"value"in o&&o.value==null?d="value":d==="download"&&n===!0?n="":m==="translate"&&n==="no"?n=!1:m[0]==="o"&&m[1]==="n"?m==="ondoubleclick"?d="ondblclick":m!=="onchange"||r!=="input"&&r!=="textarea"||Qr(o.type)?m==="onfocus"?d="onfocusin":m==="onblur"?d="onfocusout":qr.test(d)&&(d=m):m=d="oninput":s&&$r.test(d)?d=d.replace(Kr,"-$&").toLowerCase():n===null&&(n=void 0),m==="oninput"&&i[d=m]&&(d="oninputCapture"),i[d]=n}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ut(o.children).forEach(function(h){h.props.selected=i.value.indexOf(h.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ut(o.children).forEach(function(h){h.props.selected=i.multiple?i.defaultValue.indexOf(h.props.value)!=-1:i.defaultValue==h.props.value})),o.class&&!o.className?(i.class=o.class,Object.defineProperty(i,"className",ra)):(o.className&&!o.class||o.class&&o.className)&&(i.class=i.className=o.className),t.props=i}(e),e.$$typeof=Po,Do&&Do(e)};var zo=_e.__r;_e.__r=function(e){zo&&zo(e),yn=e.__c};var Oo=_e.diffed;_e.diffed=function(e){Oo&&Oo(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value),yn=null};var aa={ReactCurrentDispatcher:{current:{readContext:function(e){return yn.__n[e.__c].props.value},useCallback:X,useContext:kt,useDebugValue:mo,useDeferredValue:xo,useEffect:he,useId:go,useImperativeHandle:ho,useInsertionEffect:Co,useLayoutEffect:Dt,useMemo:Pe,useReducer:mn,useRef:ke,useState:be,useSyncExternalStore:yo,useTransition:Eo}}};function ia(e){return ct.bind(null,e)}function Gt(e){return!!e&&e.$$typeof===Po}function sa(e){return Gt(e)&&e.type===Xe}function la(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ca(e){return Gt(e)?zr.apply(null,arguments):e}function Ho(e){return!!e.__k&&(Rt(null,e),!0)}function ua(e){return e&&(e.base||e.nodeType===1&&e)||null}var da=function(e,t){return e(t)},pa=function(e,t){return e(t)},fa=Xe,ha=Gt,bn={useState:be,useId:go,useReducer:mn,useEffect:he,useLayoutEffect:Dt,useInsertionEffect:Co,useTransition:Eo,useDeferredValue:xo,useSyncExternalStore:yo,startTransition:bo,useRef:ke,useImperativeHandle:ho,useMemo:Pe,useCallback:X,useContext:kt,useDebugValue:mo,version:"18.3.1",Children:Br,render:Ro,hydrate:ea,unmountComponentAtNode:Ho,createPortal:jr,createElement:ct,createContext:At,createFactory:ia,cloneElement:ca,createRef:Nr,Fragment:Xe,isValidElement:Gt,isElement:ha,isFragment:sa,isMemo:la,findDOMNode:ua,Component:it,PureComponent:Yt,memo:Ur,forwardRef:Wr,flushSync:pa,unstable_batchedUpdates:da,StrictMode:fa,Suspense:Xt,SuspenseList:zt,lazy:Xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:aa};async function ma(e){const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch composition: ${t.statusText}`);return await t.json()}const xn=new Map,ga=e=>{const[t,o]=be({status:"pending",isSuccess:!1});return he(()=>{const r=s=>o({status:"success",data:s,isSuccess:!0}),i=xn.get(e);if(i&&!(i instanceof Promise)){r(i);return}o({status:"fetching",isSuccess:!1}),async function(){try{let s;if(i)s=await i;else{const d=ma(e);xn.set(e,d),s=await d,xn.set(e,s)}r(s)}catch(s){o({status:"error",isSuccess:!1,error:s})}}()},[e]),t},Fo=At(null),Ke=()=>{const e=kt(Fo);if(!e)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return e},va=({children:e,...t})=>c(Fo.Provider,{value:t,children:e}),Uo=At(null),ht=()=>{const e=kt(Uo);if(!e)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return e},_a=({composition:e,children:t})=>{const{aspectRatio:o,categories:r,imageHdWidth:i,imageSubWidths:s}=e,{minMediaWidth:d,maxMediaWidth:n,categoriesFilter:m}=Ke(),h=Pe(()=>{if(m==="*")return r;function a(M){return m.split("|").some(I=>new RegExp(`^${I.replace(/\*/g,".*")}$`).test(M))}return r.filter(({id:M})=>a(M))},[r,m]),C=Pe(()=>h.flatMap(({items:a})=>a),[h]),f={aspectRatio:o.replace(":"," / ")},p=Pe(()=>{const a=s.concat(i),M=a.sort((y,_)=>y-_),I=M.filter(y=>y>=d&&y<=n);if(I.length===0){const y=(d+n)/2,_=a.reduce((k,L)=>Math.abs(L-y)<Math.abs(k-y)?L:k,i);return console.warn(`None of available media widths (${M.join("|")}) match the given constraints (${d>0?`${d} ≤ `:""}width${n<1/0?` ≤ ${n}`:""}).`,`Using the closest width instead (${_}).`),[_]}return I},[s,i,d,n]);return c(Uo.Provider,{value:{...e,categories:h,items:C,aspectRatioStyle:f,usedMediaWidths:p},children:t})},Vo=500,Lt=.75,wt=1+Lt*2,Wo=()=>{const{isFullScreen:e,maxItemsShown:t,integration:o}=Ke();return{effectiveMaxItemsShown:o&&e?1:t}};function st(e,t,o){return Math.min(Math.max(e,t),o)}const Zt=(e,t,o)=>e+(t-e)*o,Bo=(e,t,o,r,i,s=!1)=>{const d=st(e,t,o);if(d===(s?o:t))return r;if(d===(s?t:o))return 1;const n=(d-t)/(o-t),h=1+(s?n:1-n)*(r-1),f=1+Math.round((h-1)/i)*i;return st(f,1,r)},wa=(e,t)=>{if(t.includes(e))return e;let o=t[0],r=Math.abs(e-o);for(let i=1;i<t.length;i++){const s=Math.abs(e-t[i]);s<r&&(r=s,o=t[i])}return o},Yo=At(null),En=()=>kt(Yo),Ot=()=>{const e=En();if(!e)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return e},Xo="*:size-full",Go="*:object-cover *:size-full",ya=({children:e})=>{const{compositionUrl:t}=Ke(),o=X(()=>document.querySelector(`${lt}[composition-url="${t}"]`),[t]),r=X(M=>{const I=M.querySelectorAll(Ut),y=new Map;for(const _ of I){const k=_.getAttribute("name");if(!k){console.warn("Icon element is missing a name attribute");continue}const L=_.innerHTML,v=L?c("div",{className:Xo,dangerouslySetInnerHTML:{__html:L}}):void 0;if(!v){console.warn(`Icon "${k}" customization is empty.`);continue}y.set(k,{Icon:v})}return y},[]),[i,s]=be(()=>{const M=o();return M?r(M):new Map});he(()=>{const M=o();if(!M)return;const I=new MutationObserver(()=>{s(r(M))});return I.observe(M,{childList:!0,subtree:!0}),()=>I.disconnect()},[r,o]);const d=X(M=>i.get(M),[i]),n=X((M,I)=>{s(y=>{const{Icon:_,...k}=I;return new Map(y.set(M,{...k,Icon:c("div",{className:Xo,children:_})}))})},[]),m=X(M=>{s(I=>(I.delete(M),new Map(I)))},[]),h=X(M=>{const I=M.querySelectorAll(Ft),y=new Array;for(const _ of I){const k=_.innerHTML;if(!k){console.warn("Custom media element is empty");continue}const L=Number(_.getAttribute("index"));if(Number.isNaN(L)){console.warn("Custom media element is missing the 'index' attribute");continue}const v=_.getAttribute("thumbnail-src")??void 0,E=JSON.stringify({index:L,thumbnailSrc:v});y.push({id:E,Media:c("div",{className:Go,dangerouslySetInnerHTML:{__html:k}}),index:L,thumbnailSrc:v})}return y},[]),[C,f]=be(()=>{const M=o();return M?h(M):[]});he(()=>{const M=o();if(!M)return;const I=new MutationObserver(()=>{f(h(M))});return I.observe(M,{childList:!0,subtree:!0}),()=>I.disconnect()},[h,o]);const p=X(M=>{const{Media:I,...y}=M,_=c("div",{className:Go,children:I}),k=JSON.stringify(y);return f(L=>[...L,{id:k,Media:_,...y}]),k},[]),a=X(M=>{f(I=>I.filter(y=>y.id!==M))},[]);return c(Yo.Provider,{value:{getIconConfig:d,registerIconConfig:n,unregisterIconConfig:m,customMediaList:C,registerCustomMedia:p,unregisterCustomMedia:a},children:e})},Zo=At(null),et=()=>{const e=kt(Zo);if(!e)throw new Error("useControlsContext must be used within a ControlsContextProvider");return e},ba=({children:e})=>{const{infiniteCarrousel:t,extendBehavior:o,integration:r,emitEvent:i,emitAnalyticsEvent:s,isFullScreen:d,requestFullscreen:n,exitFullscreen:m}=Ke(),{customMediaList:h}=Ot(),{categories:C,items:f}=ht(),p=Pe(()=>{const H=new Array(...f),ne=h.slice().sort((N,ue)=>N.index<0&&ue.index<0?ue.index-N.index:N.index<0?1:ue.index<0?-1:N.index-ue.index);for(const N of ne){let ue=N.index;ue<0&&(ue=H.length+ue+1),H.splice(ue,0,{type:"custom",...N})}return H},[f,h]),[a,M]=be(p.map(()=>null));he(()=>{M(p.map(()=>null))},[p]);const I=X((H,ne)=>{M(N=>N.map((ue,we)=>we===H?ne:ue))},[]),[y,_]=be(0),[k,L]=be(null),v=k??y,E=p[v],S=a[v],[Z,T]=be(null),G=!!Z,j=X(()=>T(null),[]),{effectiveMaxItemsShown:O}=Wo(),ee=X(H=>{const ne=Math.min(y,H),N=Math.max(y,H);a.slice(ne,N+1).filter(we=>we===null).length>2&&T("instant"),L(H)},[y,a]),F=Pe(()=>{let H;if(E.type==="custom"){const ne=p.slice(0,v).reverse().find(N=>N.type!=="custom")??p.slice(v+1).find(N=>N.type!=="custom");if(!ne)throw new Error("No non-custom item found");H=ne}else H=E;for(const ne of C)if(ne.items.includes(H))return ne.id;throw new Error("Current item not found in any category")},[C,E,p,v]),q=Pe(()=>C.find(({id:H})=>H===F)?.title??"Unnamed Category",[C,F]),xe=Pe(()=>p.length,[p]),W=X(H=>{const ne=C.find(({id:ue})=>ue===H)?.items[0];if(ne===void 0)throw new Error("Failed to find target category");const N=p.findIndex(ue=>ue===ne);ee(N)},[C,p,ee]),U=X(()=>{if(G||k!==null)return;const H=y-1;if(H>=0)L(H);else if(t){T("first_to_last");const ne=Math.ceil(O),N=p.length+(r&&!t&&O%1!==0?1:0),ue=O>1?Math.max(0,N-ne):p.length-1;L(ue)}s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Item Navigation",action_field:"item_navigation",action_value:"prev"}})},[G,k,y,t,s,F,q,E.type,O,p.length,r]),K=X(()=>{if(G||k!==null)return;const H=y+1,ne=Math.ceil(O),N=p.length+(r&&!t&&O%1!==0?1:0),ue=O>1?Math.max(0,N-ne):p.length-1;H<=ue?L(H):t&&(T("last_to_first"),L(0)),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Item Navigation",action_field:"item_navigation",action_value:"next"}})},[G,k,y,O,p.length,r,t,s,F,q,E.type]);he(()=>{i(zn,{index:v,item:E})},[E,i,v]),he(()=>{if(G||k!==null)return;const H={type:"page",category_id:F,category_name:q,items_count:xe,page_properties:{item_type:E.type,item_position:y}},ne=setTimeout(()=>s(H),0);return()=>clearTimeout(ne)},[F,q,xe,E.type,y,s,G,k]);const R=Pe(()=>{if(r&&!d)return p.some(H=>{switch(H.type){case"image":return!!H.hotspots?.length;case"360":return H.images.some(ne=>!!ne.hotspots?.length);default:return!1}});switch(E.type){case"image":return!!E.hotspots?.length;case"360":return S==="running"&&E.images.some(H=>!!H.hotspots?.length);default:return!1}},[E,S,r,p,d]),[B,J]=be(!0),[A,Y]=be({}),$=Pe(()=>r&&d?A[v]??!0:B,[r,d,A,v,B]),de=X(()=>{if(r&&d){const ne=!(A[v]??!0);Y(N=>({...N,[v]:ne})),i(ne?rn:an),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Hotspots Toggled",action_field:"hotspots_toggle_state",action_value:ne}})}else{const H=!B;J(H),i(H?rn:an),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Hotspots Toggled",action_field:"hotspots_toggle_state",action_value:H}})}},[r,d,A,v,i,s,F,q,E.type,y,B]),P=Pe(()=>{switch(E.type){case"video":return S!=="running";default:return!0}},[E,S]),[ye,Q]=be(!1),Ee=X(()=>{const H=!ye;Q(H),i(H?Fn:Un),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Gallery Toggled",action_field:"gallery_toggle_state",action_value:H}})},[ye,i,s,F,q,E.type,y]),[Ge,Je]=be(null),Ze=X(()=>Je(null),[]),g=!!Ge,b=Pe(()=>{switch(E.type){case"image":return!0;case"interior-360":return S==="running";case"360":return S==="running";default:return!1}},[E.type,S]),[re,le]=be(1),te=X(H=>{const ne=typeof H=="function"?H(re):H;re!==ne&&(le(ne),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Zoom Changed",action_field:"zoom_level",action_value:ne}}))},[re,s,F,q,E.type,y]),x=re!==1,ae=re<wt,ce=re>1,ve=X(H=>{te(ne=>st(ne+H,1,wt))},[te]),pe=X(()=>te(1),[te]),Be=X(()=>ve(Lt),[ve]),ze=X(()=>ve(-.75),[ve]),je=X(()=>{pe(),Ze()},[pe,Ze]),[qe,tt]=be(!1),[He,Me]=be(),[Oe,Ye]=be(!1),Ne=X(async H=>{je(),tt(H),i(H?On:Hn),s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Fake Fullscreen Toggled",action_field:"fake_fullscreen_toggle_state",action_value:H}})},[je,i,s,F,q,E.type,y]),Le=X(()=>{clearTimeout(He);const H=setTimeout(()=>{Me(void 0)},Vo);Me(H)},[He]),Fe=X(async()=>{const H=await n();return H&&s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Fullscreen Toggled",action_field:"fullscreen_toggle_state",action_value:!0}}),H},[n,s,F,q,E.type,y]),Re=X(async()=>{const H=await m();return H&&s({type:"track",category_id:F,category_name:q,item_type:E.type,item_position:y,action_properties:{action_name:"Fullscreen Toggled",action_field:"fullscreen_toggle_state",action_value:!1}}),H},[m,s,F,q,E.type,y]),$e=X(async()=>{if(Le(),o==="full_screen"){const H=await Fe();if(Ye(!H),H)return}Ne(!0)},[o,Ne,Fe,Le]),Ue=X(async()=>{Le(),!(o==="full_screen"&&(Ye(!1),await Re()))&&Ne(!1)},[o,Ne,Re,Le]),Se=X(()=>{qe?Ue():$e()},[Ue,$e,qe]);return he(()=>{o==="full_screen"&&(Oe&&qe||d!==qe&&(Le(),Ne(d)))},[o,Ne,qe,Oe,d,Le]),c(Zo.Provider,{value:{items:p,setItemInteraction:I,slidable:p.length>1,carrouselItemIndex:y,setCarrouselItemIndex:_,itemIndexCommand:k,setItemIndexCommand:L,masterItemIndex:v,specialCommand:Z,isRunningSpecialCommand:G,finishSpecialCommand:j,prevItem:U,nextItem:K,scrollToItemIndex:ee,displayedCategoryId:F,displayedCategoryName:q,changeCategory:W,enableHotspotsControl:R,showHotspots:B,currentItemHotspotsVisible:$,toggleHotspots:de,showGalleryControls:P,showGallery:ye,toggleGallery:Ee,shownDetails:Ge,isShowingDetails:g,setShownDetails:Je,resetShownDetails:Ze,showZoomControls:b,zoom:re,isZooming:x,setZoom:te,resetZoom:pe,canZoomIn:ae,zoomIn:Be,canZoomOut:ce,zoomOut:ze,resetView:je,extendMode:qe,enableExtendMode:$e,disableExtendMode:Ue,toggleExtendMode:Se,extendTransition:!!He,fakeFullScreen:Oe},children:e})},jo=["left","center","right","fullW"],$o=["top","middle","bottom","fullH"],xa=[...jo,...$o,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function Ea(e){return jo.includes(e)}function Ca(e){return $o.includes(e)}function Ma(e){return xa.includes(e)}function ka(e){if(!Ma(e))throw new Error(`Invalid position: ${e}`);return Ca(e)?[e,void 0]:Ea(e)?[void 0,e]:e.split("-")}function se(...e){return e.filter(t=>!!t).map(t=>t.trim()).join(" ")}function La(e){switch(e){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function qo(e){switch(e){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function Ia({positionX:e,positionY:t}){const o=new Array;return e&&o.push(La(e)),t&&o.push(qo(t)),o.join(" ")}function It(e){const[t,o]=ka(e);return Ia({positionX:o,positionY:t})}const We=({customizationKey:e,className:t,children:o})=>{const{getIconConfig:r}=Ot(),s=r(e)?.Icon;return s?t?c("div",{className:t,children:s}):s:o},Ta=({className:e})=>c(We,{className:e,customizationKey:"UI_CLOSE",children:c("svg",{className:e,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),Sa={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},Na={button:"h-8 px-2",icon:"size-8 p-2"},ot=({variant:e="fill",shape:t="button",color:o="primary",className:r,children:i,...s})=>{const d=Sa[e][o],n=Na[t];return c("button",{className:se("flex items-center justify-center rounded-ui text-sm transition-all disabled:opacity-60",d,n,r),...s,children:i})},Cn=e=>c(ot,{color:"neutral",shape:"icon",...e,children:c(Ta,{className:"size-full"})}),Mn=({text:e,className:t})=>c("div",{className:se("flex size-full flex-col items-center justify-center gap-y-4",t),children:[c("img",{className:"h-20 small:h-28",src:"https://cdn.car-cutter.com/libs/web-player/v3/assets/car_placeholder.png"}),c("div",{className:"text-2xl font-bold",children:e})]}),Pa={primary:"border-primary",foreground:"border-foreground",background:"border-background"},Ra={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},Ko=({color:e="foreground",size:t="md"})=>{const o=Pa[e],r=Ra[t];return c("div",{className:se("inline-block animate-rotation rounded-full border-b-transparent",r,o)})},mt=({src:e,className:t,onLoad:o,imgInPlayerWidthRatio:r=1,onlyThumbnail:i,fadeIn:s,...d})=>{const{mediaLoadStrategy:n,playerInViewportWidthRatio:m}=Ke(),{imageHdWidth:h,usedMediaWidths:C}=ht(),[f,p]=Pe(()=>{const I=C.map(_=>`${_!==h?kr(e,_):e} ${_}w`);let y;if(i)y=[`${C[0]}px`];else{const _=1/(r*m);switch(n){case"quality":{const k=[...C],L=k.pop();y=k.map(v=>`(max-width: ${_*v}px) ${v}px`),y.push(`${L}px`);break}case"balanced":{y=[];for(let k=0;k<C.length-1;k++){const L=C[k],v=C[k+1],E=Math.round((L+v)/2);y.push(`(max-width: ${_*E}px) ${L}px`)}y.push(`${C[C.length-1]}px`);break}case"speed":{const k=[...C],L=k.shift();y=k.reverse().map(v=>`(min-width: ${_*v}px) ${v}px`),y.push(`${L}px`);break}}}return[I.join(", "),y.join(", ")]},[h,r,n,i,m,e,C]),[a,M]=be();return he(()=>{if(a===!0)return;const I=setTimeout(()=>{M(y=>y??!1)},30);return()=>clearTimeout(I)},[a]),c("img",{src:e,srcSet:f,sizes:p,className:se(t,s&&se(a!==void 0&&"transition-opacity duration-200",a===!1&&"opacity-0",a===!0&&"opacity-100")),onLoad:I=>{M(!0),o?.(I)},...d})},Jo=({className:e})=>c(We,{className:e,customizationKey:"UI_IMAGE",children:c("svg",{className:e,viewBox:"0 0 12 12",fill:"none",children:c("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),Qo=({className:e})=>c(We,{className:e,customizationKey:"INTERIOR_UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M37.3915 79.7285C36.5538 79.7285 36.0601 79.2171 36.0601 78.3442V68.0541C36.0601 67.1724 36.5538 66.661 37.3915 66.661C38.2292 66.661 38.7229 67.1724 38.7229 68.0541V78.3442C38.7229 79.2171 38.2292 79.7285 37.3915 79.7285Z",fill:"white"}),c("path",{d:"M43.7429 79.7285C42.9405 79.7285 42.4644 79.2436 42.4644 78.3971V67.9924C42.4644 67.1459 42.9582 66.661 43.8047 66.661C44.3513 66.661 44.7217 66.8814 45.1273 67.4369L50.6294 75.1258H50.6999V68.0012C50.6999 67.1459 51.1761 66.661 51.9785 66.661C52.7809 66.661 53.2482 67.1459 53.2482 68.0012V78.4324C53.2482 79.2612 52.7809 79.7285 51.9432 79.7285C51.3701 79.7285 51.0174 79.5257 50.6118 78.9614L45.092 71.2284H45.0126V78.3971C45.0126 79.2436 44.5365 79.7285 43.7429 79.7285Z",fill:"white"}),c("path",{d:"M61.3719 79.7285C60.5343 79.7285 60.0405 79.2171 60.0405 78.3442V69.0417H57.4129C56.6898 69.0417 56.2049 68.6273 56.2049 67.9395C56.2049 67.2518 56.681 66.8373 57.4129 66.8373H65.3398C66.0629 66.8373 66.539 67.2518 66.539 67.9395C66.539 68.6273 66.054 69.0417 65.3398 69.0417H62.7034V78.3442C62.7034 79.2171 62.2096 79.7285 61.3719 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7269C5.85358 44.3944 2.5 48.9252 2.5 53.8286C2.5 62.4095 12.77 69.8493 27.7816 73.5179M86.4709 40.7269C92.1464 44.3944 95.5 48.9252 95.5 53.8286C95.5 61.8751 86.4695 68.9181 72.967 72.7891M27.7816 73.5179L23.267 65.1144M27.7816 73.5179L19.6553 77.7552",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),er=({className:e})=>c(We,{className:e,customizationKey:"UI_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),tr=({className:e})=>c(We,{className:e,customizationKey:"UI_360",children:c("svg",{className:e,viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("path",{d:"M30.9343 48C26.8559 48 24.3496 46.2454 23.3411 44.1517C23.1038 43.6651 23 43.1933 23 42.7509C23 41.6008 23.7415 40.8784 24.9725 40.8784C25.8623 40.8784 26.4259 41.2322 26.8708 42.0432C27.6271 43.5324 28.7839 44.4171 31.0085 44.4171C33.2034 44.4171 34.7161 43.149 34.7161 41.3797C34.731 39.3154 33.2034 38.1653 30.6081 38.1653H29.6737C28.5911 38.1653 27.9682 37.5313 27.9682 36.5729C27.9682 35.644 28.5911 34.9952 29.6737 34.9952H30.5488C32.7882 34.9952 34.2416 33.7862 34.2416 32.0463C34.2416 30.336 33.0848 29.2006 30.9195 29.2006C29.1102 29.2006 28.0127 29.9526 27.3157 31.4565C26.8263 32.4592 26.3072 32.8278 25.2987 32.8278C24.053 32.8278 23.4153 32.1053 23.4153 31.0289C23.4153 30.5276 23.5191 30.1 23.7415 29.5987C24.6907 27.5197 27.1229 25.7799 30.9047 25.7799C35.428 25.7799 38.4831 28.0063 38.4831 31.4123C38.4831 34.1106 36.5403 35.8799 34.0191 36.396V36.4845C37.2077 36.7793 39.2691 38.6372 39.2691 41.5713C39.2691 45.4344 35.9026 48 30.9343 48Z",fill:"white"}),c("path",{d:"M50.5032 48C47.107 48 44.4079 46.4223 42.8358 43.2965C42.0201 41.6451 41.5752 39.5366 41.5752 37.0595C41.5752 30.0116 44.9566 25.7651 50.5181 25.7651C54.0626 25.7651 56.6134 27.2543 57.6219 29.2448C57.8295 29.6577 57.9333 30.0411 57.9333 30.4392C57.9333 31.4271 57.2363 32.1938 56.0647 32.1938C55.1749 32.1938 54.641 31.8104 53.9884 31.0584C53.0096 29.8346 51.9715 29.2891 50.5032 29.2891C47.4481 29.2891 45.8909 32.179 45.8613 36.7204V36.9415H45.9502C46.7808 34.9658 48.8867 33.5208 51.7787 33.5208C55.9164 33.5208 58.749 36.455 58.749 40.4508C58.749 44.8594 55.2787 48 50.5032 48ZM50.4439 44.4613C52.6388 44.4613 54.374 42.7804 54.3888 40.6424C54.3888 38.4013 52.7426 36.8088 50.4884 36.8088C48.2193 36.8088 46.5286 38.3865 46.5286 40.554C46.5286 42.7509 48.249 44.4613 50.4439 44.4613Z",fill:"white"}),c("path",{d:"M68.9374 48C63.5094 48 60.2022 43.7388 60.2022 36.8531C60.2022 29.9821 63.5391 25.7651 68.9374 25.7651C74.3357 25.7651 77.6577 29.9673 77.6577 36.8383C77.6577 43.7093 74.3654 48 68.9374 48ZM68.9374 44.4318C71.5772 44.4318 73.1048 41.7335 73.1048 36.8531C73.1048 32.0021 71.5624 29.3333 68.9374 29.3333C66.3272 29.3333 64.7552 32.0168 64.7552 36.8531C64.7552 41.7335 66.2975 44.4318 68.9374 44.4318Z",fill:"white"}),c("path",{d:"M81.6758 28.4244C78.6504 28.4244 76.3665 26.1685 76.3665 23.2048C76.3665 20.2559 78.6504 18 81.6758 18C84.6864 18 87 20.2559 87 23.2048C87 26.1685 84.6864 28.4244 81.6758 28.4244ZM81.6758 25.4755C82.9364 25.4755 83.9152 24.4581 83.9152 23.2048C83.9152 21.9368 82.9216 20.9489 81.6758 20.9489C80.4597 20.9489 79.4364 21.9368 79.4364 23.2048C79.4364 24.4581 80.4449 25.4755 81.6758 25.4755Z",fill:"white"}),c("path",{d:"M34.6814 79.561C33.8438 79.561 33.35 79.0496 33.35 78.1678V68.2217C33.35 67.3487 33.8438 66.8373 34.6814 66.8373H40.7302C41.4621 66.8373 41.9382 67.2518 41.9382 67.9395C41.9382 68.6273 41.4533 69.0417 40.7302 69.0417H36.0129V72.1014H40.501C41.1623 72.1014 41.612 72.4894 41.612 73.1242C41.612 73.7591 41.1711 74.147 40.501 74.147H36.0129V77.3566H40.7302C41.4533 77.3566 41.9382 77.771 41.9382 78.4588C41.9382 79.1466 41.4621 79.561 40.7302 79.561H34.6814Z",fill:"white"}),c("path",{d:"M46.4115 79.7285C45.7061 79.7285 45.1506 79.2171 45.1506 78.5734C45.1506 78.2472 45.2564 77.965 45.5121 77.6123L48.6864 73.1859V73.1154L45.6179 68.9359C45.327 68.5479 45.23 68.2569 45.23 67.9131C45.23 67.19 45.8031 66.661 46.5791 66.661C47.0817 66.661 47.4344 66.8814 47.7782 67.4017L50.5028 71.4224H50.5734L53.3862 67.3135C53.6948 66.855 53.9593 66.661 54.4707 66.661C55.1673 66.661 55.7669 67.1636 55.7669 67.7984C55.7669 68.1423 55.6699 68.4245 55.4142 68.7507L52.1076 73.1683V73.23L55.3172 77.5594C55.5641 77.8768 55.6699 78.1766 55.6699 78.5293C55.6699 79.2259 55.132 79.7285 54.3914 79.7285C53.9064 79.7285 53.5802 79.5345 53.2363 79.0672L50.397 75.1082H50.3265L47.5313 79.076C47.1963 79.561 46.9141 79.7285 46.4115 79.7285Z",fill:"white"}),c("path",{d:"M63.7055 79.7285C62.8678 79.7285 62.374 79.2171 62.374 78.3442V69.0417H59.7464C59.0234 69.0417 58.5384 68.6273 58.5384 67.9395C58.5384 67.2518 59.0146 66.8373 59.7464 66.8373H67.6734C68.3964 66.8373 68.8725 67.2518 68.8725 67.9395C68.8725 68.6273 68.3876 69.0417 67.6734 69.0417H65.0369V78.3442C65.0369 79.2171 64.5431 79.7285 63.7055 79.7285Z",fill:"white"}),c("path",{d:"M11.5291 40.7263C5.85358 44.3937 2.5 48.9245 2.5 53.828C2.5 62.4089 12.77 69.8486 27.7816 73.5172M86.4709 40.7263C92.1464 44.3937 95.5 48.9245 95.5 53.828C95.5 61.8744 86.4695 68.9174 72.967 72.7885M27.7816 73.5172L23.267 65.1137M27.7816 73.5172L19.6553 77.7545",stroke:"currentColor",strokeWidth:"4.51456",strokeLinecap:"round"})]})}),Aa=({src:e,withCdn:t})=>{const{permanentGallery:o}=Ke();if(!e)return null;const r="size-full object-cover";return t?c(mt,{className:r,src:e,onlyThumbnail:!0,fadeIn:!o}):c("img",{className:r,src:e})},jt=({children:e})=>{const{extendMode:t}=et();return c("div",{className:se("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",t&&"large:h-3/5 large:p-2"),children:e})},Da=({item:e})=>{const{aspectRatioStyle:t}=ht(),{type:o}=e;let r,i;switch(o){case"360":r=e.images[0].src,i=!0;break;case"interior-360":r=e.poster,i=!0;break;case"image":r=e.src,i=!0;break;case"video":r=e.poster,i=!0;break;case"custom":r=e.thumbnailSrc,i=!1;break;default:i=!1}const s=c(Aa,{src:r,withCdn:i});let d;switch(o){case"360":d=c(jt,{children:c(tr,{className:"size-full"})});break;case"interior-360":d=c(jt,{children:c(Qo,{className:"size-full"})});break;case"video":d=c(jt,{children:c(er,{className:"size-full p-0.5 text-background"})});break;case"custom":d=r?null:c(jt,{children:c(Jo,{className:"size-full p-0.5 text-background"})});break}return c("div",{className:"relative bg-foreground/30",style:t,children:[s,d&&c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:d})]})},za={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},nr=({color:e="neutral",orientation:t="horizontal"})=>{const o=za[e];return c("div",{className:se(o,t==="horizontal"?"h-px w-full":"w-px h-full")})},or=({className:e="",containerClassName:t=""})=>{const{hideCategoriesNav:o,infiniteCarrousel:r,permanentGallery:i,isFullScreen:s,maxItemsShown:d}=Ke(),{categories:n,aspectRatioStyle:m}=ht(),{emitAnalyticsEvent:h}=Ke(),{items:C,extendMode:f,extendTransition:p,masterItemIndex:a,prevItem:M,nextItem:I,scrollToItemIndex:y,resetView:_,displayedCategoryId:k,displayedCategoryName:L}=et(),v=Pe(()=>C[a].type,[C,a]),E=Pe(()=>{if(o)return[];const U=new Array;let K=n[0];const R=B=>n.find(J=>J.items.some(A=>A===B));for(let B=0;B<C.length;B++){const J=C[B],A=R(J);A&&A!==K&&(U.push(B),K=A)}return U},[n,o,C]),S=ke(null),Z=X(()=>{if(!S.current)throw new Error("slider.current is null");return S.current},[]),T=ke(!1),G=ke(null),[j,O]=be(!1),ee=X((U,K)=>{const R=Z(),B=R.clientWidth,J=R.scrollWidth/C.length,A=(U+1/2)*J-B/2,Y=R.scrollWidth-R.clientWidth;R.scrollTo({left:st(A,0,Y),behavior:K})},[C.length,Z]);he(()=>{const U=S.current;if(!U)return;const K=J=>{J.preventDefault(),T.current=!0,G.current={x:J.pageX-U.offsetLeft,scrollLeft:U.scrollLeft}},R=J=>{if(!T.current)return;if(G.current===null)throw new Error("[onMouseMove] scrollStart is null");const Y=J.pageX-U.offsetLeft-G.current.x;if(!j&&Math.abs(Y)<5)return;const $=G.current.scrollLeft-Y;O(!0),requestAnimationFrame(()=>{U.scrollLeft=$})},B=()=>{T.current&&(T.current=!1,requestAnimationFrame(()=>{O(!1)}))};return U.addEventListener("mousedown",K),document.addEventListener("mousemove",R),document.addEventListener("mouseleave",B),document.addEventListener("mouseup",B),document.addEventListener("contextmenu",B),()=>{U.removeEventListener("mousedown",K),document.removeEventListener("mousemove",R),document.removeEventListener("mouseleave",B),document.removeEventListener("mouseup",B),document.removeEventListener("contextmenu",B)}},[j]);const F=ke(a);he(()=>{S.current&&(ee(a,"smooth"),F.current=a)},[a,ee]),he(()=>{S.current&&ee(F.current,"instant")},[ee,s,f,p]);const q=X(U=>{h({type:"track",category_id:k,category_name:L,item_type:v,item_position:a,action_properties:{action_name:"Gallery Item Clicked",action_field:"gallery_item_clicked",action_value:U}})},[h,k,L,v,a]),xe=X(U=>{if(!j){if(q(U),r&&U===C.length-1&&a===0)M();else if(r&&U===0&&a===C.length-1)I();else if(!s&&d!==1&&U===C.length-1){const K=Math.ceil(d),R=C.length+1,B=Math.max(0,R-K);y(B)}else y(U);_()}},[j,q,r,C.length,a,_,M,I,s,d,y]),W=X((U,K)=>d!==1?"after:opacity-0 hover:after:opacity-70":U===K?"after:opacity-100":"after:opacity-0 hover:after:opacity-70",[d]);return c("div",{ref:S,className:se("relative w-full overflow-x-auto no-scrollbar",j?"cursor-grab":"cursor-grabbing",e),children:c("div",{className:se("flex h-10 w-fit gap-1 small:h-12 small:gap-2",f&&"large:h-20 large:gap-4",t),children:C.map((U,K)=>c(Xe,{children:[E.includes(K)&&c("div",{className:"my-2",children:c(nr,{color:i&&!s?"neutral":"background",orientation:"vertical"})}),c("div",{className:se("relative h-full overflow-hidden rounded-gallery transition-radius",!j&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-all",W(K,a)),style:m,onClick:()=>xe(K),children:c(Da,{item:U})})]},K))})})},rr=e=>1-Math.pow(1-e,2),Oa=({Media:e,itemIndex:t})=>{const{setItemInteraction:o}=et();return he(()=>{o(t,"ready")},[t,o]),e},ar=(e,t)=>Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2),Ha=({onlyPreload:e,...t})=>{const{zoom:o,isZooming:r,setZoom:i}=et(),s=ke(null),d=ke(null),n=X(L=>{if(!d.current)throw new Error(`[${L??"getTransformElementOrThrow"}] transformElementRef.current is null`);return d.current},[]),m=ke(!1),h=ke(null),C=ke(new Map),f=ke({x:0,y:0,scale:1}),p=ke(null),a=X(L=>{const v=n("setTransformStyle"),{x:E,y:S,scale:Z}={...f.current,...L},T=st(Z,1,wt),G=v.clientWidth,j=v.clientHeight,O=G*T,ee=j*T,F=st(E,-(O-G),0),q=st(S,-(ee-j),0);f.current={x:F,y:q,scale:T},v.style.transform=`translate(${F}px, ${q}px) scale(${T})`},[n]),M=X((L,v)=>{const{x:E,y:S,scale:Z}=f.current,{x:T,y:G,scale:j}={...f.current,...L};p.current&&(cancelAnimationFrame(p.current),p.current=null);const O=()=>{a({x:T,y:G,scale:j}),i(j)},ee=Math.abs(T-E)<1&&Math.abs(G-S)<1&&Math.abs(j-Z)<.005;if(!v||ee){O();return}const F=new Date().getTime(),q=()=>{const xe=()=>{const U=new Date().getTime()-F;if(U>=v){O(),p.current=null;return}const K=Math.min(U/v,1),R=rr(K),B=Zt(E,T,R),J=Zt(S,G,R),A=Zt(Z,j,R);a({x:B,y:J,scale:A}),q()};p.current=requestAnimationFrame(xe)};q()},[a,i]),I=X((L,v)=>{let{x:E,y:S}=f.current;L.x&&(E+=L.x),L.y&&(S+=L.y),M({x:E,y:S},v)},[M]),y=X((L,v,E)=>{const S=f.current.scale,Z=st(L,1,wt),T=Z/S,{x:G,y:j}=f.current,{x:O,y:ee}=v,F=-G+O,q=-j+ee,xe=F*T,W=q*T,U=xe-O,K=W-ee,R=-U,B=-K;M({x:R,y:B,scale:Z},E)},[M]),_=X(L=>{const v=n("shiftZoomFromButton"),E=v.clientWidth,S=v.clientHeight;y(L,{x:E/2,y:S/2},200)},[n,y]),k=X((L,v,E)=>{const{scale:S}=f.current;y(S+L,v,E)},[y]);return he(()=>{e||d.current&&_(o)},[e,_,o]),he(()=>{if(e||!r)return;const L=d.current;if(!L)return;const v=Z=>{Z.preventDefault(),Z.stopPropagation(),m.current=!0,h.current={x:Z.clientX,y:Z.clientY}},E=Z=>{if(!m.current)return;if(!h.current)throw new Error("mouseStartXY.current is null");Z.stopPropagation();const T=Z.clientX-h.current.x,G=Z.clientY-h.current.y;I({x:T,y:G}),h.current={x:Z.clientX,y:Z.clientY}},S=()=>{m.current=!1};return L.addEventListener("mousedown",v),document.addEventListener("mousemove",E),document.addEventListener("mouseleave",S),document.addEventListener("mouseup",S),document.addEventListener("contextmenu",S),()=>{L.removeEventListener("mousedown",v),document.removeEventListener("mousemove",E),document.removeEventListener("mouseleave",S),document.removeEventListener("mouseup",S),document.removeEventListener("contextmenu",S)}},[r,I,e]),he(()=>{if(e)return;const L=s.current;if(!L)return;const v=E=>{const{ctrlKey:S,clientX:Z,clientY:T,deltaX:G,deltaY:j}=E;if(S){if(!r&&j>=0)return;const{left:O,top:ee}=L.getBoundingClientRect(),F=Z-O,q=T-ee;k(-.01*j,{x:F,y:q})}else{if(!r)return;I({x:-2*G,y:-2*j})}E.preventDefault()};return L.addEventListener("wheel",v),()=>{L.removeEventListener("wheel",v)}},[r,I,k,e]),he(()=>{const L=s.current,v=d.current;if(!L||!v)return;const E=C.current,S=G=>{for(let j=0;j<G.changedTouches.length;j++){const O=G.changedTouches[j];E.set(O.identifier,O)}},Z=G=>{for(let j=0;j<G.changedTouches.length;j++){const O=G.changedTouches[j];E.delete(O.identifier)}},T=G=>{const j=G.touches.length;if(j===1){if(!r)return;G.preventDefault();const O=G.touches[0],ee=E.get(O.identifier);if(!ee)throw new Error("touchStart is null");const F=O.clientX-ee.clientX,q=O.clientY-ee.clientY;I({x:F,y:q}),E.set(O.identifier,O)}else if(j===2){G.preventDefault();const[O,ee]=G.touches,F=E.get(O.identifier),q=E.get(ee.identifier);if(!F||!q)throw new Error("initialTouch1 or initialTouch2 is null");const xe=ar(F,q),U=ar(O,ee)/xe,{left:K,top:R}=L.getBoundingClientRect();k(U-1,{x:(O.clientX+ee.clientX)/2-K,y:(O.clientY+ee.clientY)/2-R}),E.set(O.identifier,O),E.set(ee.identifier,ee)}};return v.addEventListener("touchstart",S),v.addEventListener("touchmove",T),v.addEventListener("touchend",Z),v.addEventListener("touchcancel",Z),()=>{v.removeEventListener("touchstart",S),v.removeEventListener("touchmove",T),v.removeEventListener("touchend",Z),v.removeEventListener("touchcancel",Z)}},[r,I,k]),c("div",{ref:s,className:`relative size-full overflow-hidden ${r?"z-zoomed-image cursor-move":""}`,children:c("div",{ref:d,className:"origin-top-left",children:c(mt,{...t,imgInPlayerWidthRatio:e?1:o})})})},Fa=({className:e})=>c(We,{className:e,customizationKey:"UI_WARNING",children:c("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c("circle",{cx:"12",cy:"12",r:"10"}),c("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),c("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}),Ua=({hotspot:e,item:t,analyticsValue:o})=>{const{title:r,icon:i,description:s,position:d,detail:n,type:m}=e,{emitAnalyticsEvent:h}=Ke(),{extendMode:C,setShownDetails:f,displayedCategoryId:p,displayedCategoryName:a}=et(),M=X(q=>{const xe=q==="click"?"Hotspot Clicked":"Hotspot Hovered",W=q==="click"?"hotspot_clicked":"hotspot_hovered";h({type:"track",category_id:p,category_name:a,item_type:t.item_type,item_position:t.item_position,action_properties:{action_name:xe,action_field:W,action_value:o}})},[h,p,a,t,o]),I=X(()=>{M("click")},[M]),y=X(()=>{M("hover")},[M]),{getIconConfig:_}=Ot(),k=i?_(i):void 0,L=!!n,v=n?.type==="image",E=!!r||!!s,S=v?c(Jo,{className:"size-4"}):m==="damage"?c(Fa,{className:"size-4"}):c("div",{className:"size-1"}),Z=()=>{I(),v&&f({src:n.src,title:r,text:s})},[T,G]=be(!1),j=X(()=>{T||(G(!0),y())},[T,G,y]),O=X(()=>{T&&G(!1)},[T,G]),F=X(()=>m==="damage"?"var(--hotspot-damage-color)":"var(--hotspot-feature-color)",[m])();return c("div",{className:se("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",L?"cursor-pointer":"cursor-help"),style:{top:`${100*e.position.y}%`,left:`${100*e.position.x}%`},onClick:Z,onMouseEnter:j,onMouseLeave:O,children:[c("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",style:{backgroundColor:F},children:[c("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background bg-primary",style:{backgroundColor:F}}),c("div",{className:"p-1",children:k?.Icon?c("div",{className:"size-4",children:k.Icon}):S})]}),!v&&E&&c("div",{className:se("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",C&&"large:max-w-56",d.y<.55?"-top-1":"-bottom-1",d.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100"),children:c("div",{className:"space-y-1 text-pretty",children:[r&&c("div",{className:"text-sm font-semibold small:text-base small:font-bold",children:r}),s&&c("div",{className:"text-xs text-foreground/65 small:text-sm",children:s})]})})]})},Va=({hotspot:e,item:t})=>{const{detail:o,title:r,description:i,position:s}=e,d=Pe(()=>r||i?{...r?{title:r}:{},...i?{description:i}:{}}:void 0,[r,i]),n=Pe(()=>d||s?{...d?{text:d}:{},...s?{position:s}:{}}:void 0,[d,s]),m=Pe(()=>({...n?{hotspot:n}:{},...o?{detail:o}:{}}),[n,o]),h=c(Ua,{hotspot:e,item:t,analyticsValue:m});switch(o?.type){case"link":case"pdf":return c("a",{href:o.src,target:"_blank",rel:"noreferrer",children:h});default:return h}},ir=({hotspots:e,itemIndex:t,className:o,onLoad:r,...i})=>{const{isShowingDetails:s,currentItemHotspotsVisible:d,setItemInteraction:n}=et();return c("div",{className:se("relative size-full overflow-hidden",o),children:c("div",{className:se("size-full duration-details",s?"scale-105":"scale-100"),children:[c(Ha,{className:"size-full object-cover",onLoad:m=>{t!==void 0&&t>=0&&n(t,"ready"),r?.(m)},...i}),d&&e?.map((m,h)=>c(Va,{hotspot:m,item:{item_type:"image",item_position:t}},h))]})})};window.libpannellum=function(e,t,o){function r(C){var f=t.createElement("canvas");f.style.width=f.style.height="100%",C.appendChild(f);var p,a,M,I,y,_,k,L,v,E,S,Z,T,G,j,O;this.init=function(g,b,re,le,te,x,ae,ce){if(b===o&&(b="equirectangular"),b!="equirectangular"&&b!="cubemap"&&b!="multires")throw console.log("Error: invalid image type specified!"),{type:"config error"};if(E=b,v=g,S=re,O=ce||{},p){if(M&&(a.detachShader(p,M),a.deleteShader(M)),I&&(a.detachShader(p,I),a.deleteShader(I)),a.bindBuffer(a.ARRAY_BUFFER,null),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null),p.texture&&a.deleteTexture(p.texture),p.nodeCache)for(var ve=0;ve<p.nodeCache.length;ve++)a.deleteTexture(p.nodeCache[ve].texture);a.deleteProgram(p),p=o}L=o;var pe,Be=!1,ze;if(E=="cubemap")for(pe=0;pe<6;pe++)v[pe].width>0?(ze===o&&(ze=v[pe].width),ze!=v[pe].width&&console.log("Cube faces have inconsistent widths: "+ze+" vs. "+v[pe].width)):Be=!0;function je(ne){if(Be){var N=ne*ne*4,ue=new Uint8ClampedArray(N),we=ce.backgroundColor?ce.backgroundColor:[0,0,0];we[0]*=255,we[1]*=255,we[2]*=255;for(var me=0;me<N;me++)ue[me++]=we[0],ue[me++]=we[1],ue[me++]=we[2];var Ie=new ImageData(ue,ne,ne);for(pe=0;pe<6;pe++)v[pe].width==0&&(v[pe]=Ie)}}if(E=="cubemap"&&ze&ze-1&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(a||(a=f.getContext("experimental-webgl",{alpha:!1,depth:!1})),a&&a.getError()==1286&&Ze()),!a&&(E=="multires"&&v.hasOwnProperty("fallbackPath")||E=="cubemap")&&("WebkitAppearance"in t.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||navigator.appVersion.indexOf("MSIE 10")!==-1)){_&&C.removeChild(_),_=t.createElement("div"),_.className="pnlm-world";var qe;v.basePath?qe=v.basePath+v.fallbackPath:qe=v.fallbackPath;var tt=["f","r","b","l","u","d"],He=0,Me=function(){var N=t.createElement("canvas");N.className="pnlm-face pnlm-"+tt[this.side]+"face",_.appendChild(N);var ue=N.getContext("2d");N.style.width=this.width+4+"px",N.style.height=this.height+4+"px",N.width=this.width+4,N.height=this.height+4,ue.drawImage(this,2,2);var we=ue.getImageData(0,0,N.width,N.height),me=we.data,Ie,oe;for(Ie=2;Ie<N.width-2;Ie++)for(oe=0;oe<4;oe++)me[(Ie+N.width)*4+oe]=me[(Ie+N.width*2)*4+oe],me[(Ie+N.width*(N.height-2))*4+oe]=me[(Ie+N.width*(N.height-3))*4+oe];for(Ie=2;Ie<N.height-2;Ie++)for(oe=0;oe<4;oe++)me[(Ie*N.width+1)*4+oe]=me[(Ie*N.width+2)*4+oe],me[((Ie+1)*N.width-2)*4+oe]=me[((Ie+1)*N.width-3)*4+oe];for(oe=0;oe<4;oe++)me[(N.width+1)*4+oe]=me[(N.width*2+2)*4+oe],me[(N.width*2-2)*4+oe]=me[(N.width*3-3)*4+oe],me[(N.width*(N.height-2)+1)*4+oe]=me[(N.width*(N.height-3)+2)*4+oe],me[(N.width*(N.height-1)-2)*4+oe]=me[(N.width*(N.height-2)-3)*4+oe];for(Ie=1;Ie<N.width-1;Ie++)for(oe=0;oe<4;oe++)me[Ie*4+oe]=me[(Ie+N.width)*4+oe],me[(Ie+N.width*(N.height-1))*4+oe]=me[(Ie+N.width*(N.height-2))*4+oe];for(Ie=1;Ie<N.height-1;Ie++)for(oe=0;oe<4;oe++)me[Ie*N.width*4+oe]=me[(Ie*N.width+1)*4+oe],me[((Ie+1)*N.width-1)*4+oe]=me[((Ie+1)*N.width-2)*4+oe];for(oe=0;oe<4;oe++)me[oe]=me[(N.width+1)*4+oe],me[(N.width-1)*4+oe]=me[(N.width*2-2)*4+oe],me[N.width*(N.height-1)*4+oe]=me[(N.width*(N.height-2)+1)*4+oe],me[(N.width*N.height-1)*4+oe]=me[(N.width*(N.height-1)-2)*4+oe];ue.putImageData(we,0,0),Oe.call(this)},Oe=function(){this.width>0?(y===o&&(y=this.width),y!=this.width&&console.log("Fallback faces have inconsistent widths: "+y+" vs. "+this.width)):Be=!0,He++,He==6&&(y=this.width,C.appendChild(_),ae())};for(Be=!1,pe=0;pe<6;pe++){var Ye=new Image;Ye.crossOrigin=O.crossOrigin?O.crossOrigin:"anonymous",Ye.side=pe,Ye.onload=Me,Ye.onerror=Oe,E=="multires"?Ye.src=encodeURI(qe.replace("%s",tt[pe])+"."+v.extension):Ye.src=encodeURI(v[pe].src)}je(y);return}else if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};E=="cubemap"&&je(ze),v.basePath?v.fullpath=v.basePath+v.path:v.fullpath=v.path,v.invTileResolution=1/v.tileResolution;var Ne=U();for(k=[],pe=0;pe<6;pe++)k[pe]=Ne.slice(pe*12,pe*12+12),Ne=U();var Le=0,Fe=0;if(E=="equirectangular"?(Le=Math.max(v.width,v.height),Fe=a.getParameter(a.MAX_TEXTURE_SIZE)):E=="cubemap"&&(Le=ze,Fe=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE)),Le>Fe)throw console.log("Error: The image is too big; it's "+Le+"px wide, but this device's maximum supported size is "+Fe+"px."),{type:"webgl size error",width:Le,maxWidth:Fe};ce!==o&&(ce.horizonPitch!==o||ce.horizonRoll!==o)&&(L=[ce.horizonPitch==o?0:ce.horizonPitch,ce.horizonRoll==o?0:ce.horizonRoll]);var Re=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),M=a.createShader(a.VERTEX_SHADER);var $e=i;E=="multires"&&($e=s),a.shaderSource(M,$e),a.compileShader(M),I=a.createShader(a.FRAGMENT_SHADER);var Ue=m;E=="cubemap"?(Re=a.TEXTURE_CUBE_MAP,Ue=n):E=="multires"&&(Ue=h),a.shaderSource(I,Ue),a.compileShader(I),p=a.createProgram(),a.attachShader(p,M),a.attachShader(p,I),a.linkProgram(p),a.getShaderParameter(M,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(M)),a.getShaderParameter(I,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(I)),a.getProgramParameter(p,a.LINK_STATUS)||console.log(a.getProgramInfoLog(p)),a.useProgram(p),p.drawInProgress=!1;var Se=ce.backgroundColor?ce.backgroundColor:[0,0,0];a.clearColor(Se[0],Se[1],Se[2],1),a.clear(a.COLOR_BUFFER_BIT),p.texCoordLocation=a.getAttribLocation(p,"a_texCoord"),a.enableVertexAttribArray(p.texCoordLocation),E!="multires"?(Z||(Z=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,Z),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),p.aspectRatio=a.getUniformLocation(p,"u_aspectRatio"),a.uniform1f(p.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),p.psi=a.getUniformLocation(p,"u_psi"),p.theta=a.getUniformLocation(p,"u_theta"),p.f=a.getUniformLocation(p,"u_f"),p.h=a.getUniformLocation(p,"u_h"),p.v=a.getUniformLocation(p,"u_v"),p.vo=a.getUniformLocation(p,"u_vo"),p.rot=a.getUniformLocation(p,"u_rot"),a.uniform1f(p.h,le/(Math.PI*2)),a.uniform1f(p.v,te/Math.PI),a.uniform1f(p.vo,x/Math.PI*2),E=="equirectangular"&&(p.backgroundColor=a.getUniformLocation(p,"u_backgroundColor"),a.uniform4fv(p.backgroundColor,Se.concat([1]))),p.texture=a.createTexture(),a.bindTexture(Re,p.texture),E=="cubemap"?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v[2])):a.texImage2D(Re,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v),a.texParameteri(Re,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(Re,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(Re,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(Re,a.TEXTURE_MAG_FILTER,a.LINEAR)):(p.vertPosLocation=a.getAttribLocation(p,"a_vertCoord"),a.enableVertexAttribArray(p.vertPosLocation),T||(T=a.createBuffer()),G||(G=a.createBuffer()),j||(j=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,G),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,j),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),p.perspUniform=a.getUniformLocation(p,"u_perspMatrix"),p.cubeUniform=a.getUniformLocation(p,"u_cubeMatrix"),p.level=-1,p.currentNodes=[],p.nodeCache=[],p.nodeCacheTimestamp=0);var H=a.getError();if(H!==0)throw console.log("Error: Something went wrong with WebGL!",H),{type:"webgl error"};ae()},this.destroy=function(){if(C!==o&&(f!==o&&C.contains(f)&&C.removeChild(f),_!==o&&C.contains(_)&&C.removeChild(_)),a){var g=a.getExtension("WEBGL_lose_context");g&&g.loseContext()}},this.resize=function(){var g=e.devicePixelRatio||1;f.width=f.clientWidth*g,f.height=f.clientHeight*g,a&&(a.getError()==1286&&Ze(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),E!="multires"&&a.uniform1f(p.aspectRatio,f.clientWidth/f.clientHeight))},this.resize(),this.setPose=function(g,b){L=[g,b]},this.render=function(g,b,re,le){var te,x,ae,ce=0;if(le===o&&(le={}),le.roll&&(ce=le.roll),L!==o){var ve=L[0],pe=L[1],Be=g,ze=b,je=Math.cos(pe)*Math.sin(g)*Math.sin(ve)+Math.cos(g)*(Math.cos(ve)*Math.cos(b)+Math.sin(pe)*Math.sin(ve)*Math.sin(b)),qe=-Math.sin(g)*Math.sin(pe)+Math.cos(g)*Math.cos(pe)*Math.sin(b),tt=Math.cos(pe)*Math.cos(ve)*Math.sin(g)+Math.cos(g)*(-Math.cos(b)*Math.sin(ve)+Math.cos(ve)*Math.sin(pe)*Math.sin(b));g=Math.asin(Math.max(Math.min(tt,1),-1)),b=Math.atan2(qe,je);var He=[Math.cos(Be)*(Math.sin(pe)*Math.sin(ve)*Math.cos(ze)-Math.cos(ve)*Math.sin(ze)),Math.cos(Be)*Math.cos(pe)*Math.cos(ze),Math.cos(Be)*(Math.cos(ve)*Math.sin(pe)*Math.cos(ze)+Math.sin(ze)*Math.sin(ve))],Me=[-Math.cos(g)*Math.sin(b),Math.cos(g)*Math.cos(b)],Oe=Math.acos(Math.max(Math.min((He[0]*Me[0]+He[1]*Me[1])/(Math.sqrt(He[0]*He[0]+He[1]*He[1]+He[2]*He[2])*Math.sqrt(Me[0]*Me[0]+Me[1]*Me[1])),1),-1));He[2]<0&&(Oe=2*Math.PI-Oe),ce+=Oe}if(!a&&(E=="multires"||E=="cubemap")){ae=y/2;var Ye={f:"translate3d(-"+(ae+2)+"px, -"+(ae+2)+"px, -"+ae+"px)",b:"translate3d("+(ae+2)+"px, -"+(ae+2)+"px, "+ae+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(ae+2)+"px, -"+ae+"px, "+(ae+2)+"px) rotateX(270deg)",d:"translate3d(-"+(ae+2)+"px, "+ae+"px, -"+(ae+2)+"px) rotateX(90deg)",l:"translate3d(-"+ae+"px, -"+(ae+2)+"px, "+(ae+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+ae+"px, -"+(ae+2)+"px, -"+(ae+2)+"px) rotateY(270deg)"};te=1/Math.tan(re/2);var Ne=te*f.clientWidth/2+"px",Le="perspective("+Ne+") translateZ("+Ne+") rotateX("+g+"rad) rotateY("+b+"rad) ",Fe=Object.keys(Ye);for(x=0;x<6;x++){var Re=_.querySelector(".pnlm-"+Fe[x]+"face");Re&&(Re.style.webkitTransform=Le+Ye[Fe[x]],Re.style.transform=Le+Ye[Fe[x]])}return}if(E!="multires"){var $e=2*Math.atan(Math.tan(re*.5)/(a.drawingBufferWidth/a.drawingBufferHeight));te=1/Math.tan($e*.5),a.uniform1f(p.psi,b),a.uniform1f(p.theta,g),a.uniform1f(p.rot,ce),a.uniform1f(p.f,te),S===!0&&E=="equirectangular"&&(a.bindTexture(a.TEXTURE_2D,p.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,v)),a.drawArrays(a.TRIANGLES,0,6)}else{var Ue=A(re,a.drawingBufferWidth/a.drawingBufferHeight,.1,100);ye(re);var Se=K();Se=R(Se,-ce,"z"),Se=R(Se,-g,"x"),Se=R(Se,b,"y"),Se=B(Se),a.uniformMatrix4fv(p.perspUniform,!1,new Float32Array(J(Ue))),a.uniformMatrix4fv(p.cubeUniform,!1,new Float32Array(J(Se)));var H=Q(Ue,Se);if(p.nodeCache.sort(ee),p.nodeCache.length>200&&p.nodeCache.length>p.currentNodes.length+50)for(var ne=p.nodeCache.splice(200,p.nodeCache.length-200),x=0;x<ne.length;x++)a.deleteTexture(ne[x].texture);p.currentNodes=[];var N=["f","b","u","d","l","r"];for(ae=0;ae<6;ae++){var ue=new xe(k[ae],N[ae],1,0,0,v.fullpath);W(H,ue,g,b)}for(p.currentNodes.sort(F),x=$.length-1;x>=0;x--)p.currentNodes.indexOf($[x].node)===-1&&($[x].node.textureLoad=!1,$.splice(x,1));if($.length===0)for(x=0;x<p.currentNodes.length;x++){var we=p.currentNodes[x];if(!we.texture&&!we.textureLoad){we.textureLoad=!0,setTimeout(P,0,we);break}}q()}if(le.returnImage!==o)return f.toDataURL("image/png")},this.isLoading=function(){if(a&&E=="multires"){for(var g=0;g<p.currentNodes.length;g++)if(!p.currentNodes[g].textureLoaded)return!0}return!1},this.getCanvas=function(){return f};function ee(g,b){return g.level==1&&b.level!=1?-1:b.level==1&&g.level!=1?1:b.timestamp-g.timestamp}function F(g,b){return g.level!=b.level?g.level-b.level:g.diff-b.diff}function q(){if(!p.drawInProgress){p.drawInProgress=!0,a.clear(a.COLOR_BUFFER_BIT);for(var g=0;g<p.currentNodes.length;g++)p.currentNodes[g].textureLoaded>1&&(a.bindBuffer(a.ARRAY_BUFFER,T),a.bufferData(a.ARRAY_BUFFER,new Float32Array(p.currentNodes[g].vertices),a.STATIC_DRAW),a.vertexAttribPointer(p.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,G),a.vertexAttribPointer(p.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,p.currentNodes[g].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));p.drawInProgress=!1}}function xe(g,b,re,le,te,x){this.vertices=g,this.side=b,this.level=re,this.x=le,this.y=te,this.path=x.replace("%s",b).replace("%l",re).replace("%x",le).replace("%y",te)}function W(g,b,re,le,te){if(Je(g,b.vertices)){var x=b.vertices,ae=x[0]+x[3]+x[6]+x[9],ce=x[1]+x[4]+x[7]+x[10],ve=x[2]+x[5]+x[8]+x[11],pe=Math.sqrt(ae*ae+ce*ce+ve*ve),Be=Math.asin(ve/pe),ze=Math.atan2(ce,ae),je=ze-le;je+=je>Math.PI?-2*Math.PI:je<-Math.PI?2*Math.PI:0,je=Math.abs(je),b.diff=Math.acos(Math.sin(re)*Math.sin(Be)+Math.cos(re)*Math.cos(Be)*Math.cos(je));for(var qe=!1,tt=0;tt<p.nodeCache.length;tt++)if(p.nodeCache[tt].path==b.path){qe=!0,p.nodeCache[tt].timestamp=p.nodeCacheTimestamp++,p.nodeCache[tt].diff=b.diff,p.currentNodes.push(p.nodeCache[tt]);break}if(qe||(b.timestamp=p.nodeCacheTimestamp++,p.currentNodes.push(b),p.nodeCache.push(b)),b.level<p.level){var He=v.cubeResolution*Math.pow(2,b.level-v.maxLevel),Me=Math.ceil(He*v.invTileResolution)-1,Oe=He%v.tileResolution*2,Ye=He*2%v.tileResolution;Ye===0&&(Ye=v.tileResolution),Oe===0&&(Oe=v.tileResolution*2);var Ne=.5;(b.x==Me||b.y==Me)&&(Ne=1-v.tileResolution/(v.tileResolution+Ye));var Le=1-Ne,Fe=[],Re,$e,Ue=Ne,Se=Ne,H=Ne,ne=Le,N=Le,ue=Le;Ye<v.tileResolution&&(b.x==Me&&b.y!=Me?(Se=.5,N=.5,(b.side=="d"||b.side=="u")&&(H=.5,ue=.5)):b.x!=Me&&b.y==Me&&(Ue=.5,ne=.5,(b.side=="l"||b.side=="r")&&(H=.5,ue=.5))),Oe<=v.tileResolution&&(b.x==Me&&(Ue=0,ne=1,(b.side=="l"||b.side=="r")&&(H=0,ue=1)),b.y==Me&&(Se=0,N=1,(b.side=="d"||b.side=="u")&&(H=0,ue=1))),Re=[x[0],x[1],x[2],x[0]*Ue+x[3]*ne,x[1]*Ne+x[4]*Le,x[2]*H+x[5]*ue,x[0]*Ue+x[6]*ne,x[1]*Se+x[7]*N,x[2]*H+x[8]*ue,x[0]*Ne+x[9]*Le,x[1]*Se+x[10]*N,x[2]*H+x[11]*ue],$e=new xe(Re,b.side,b.level+1,b.x*2,b.y*2,v.fullpath),Fe.push($e),b.x==Me&&Oe<=v.tileResolution||(Re=[x[0]*Ue+x[3]*ne,x[1]*Ne+x[4]*Le,x[2]*H+x[5]*ue,x[3],x[4],x[5],x[3]*Ne+x[6]*Le,x[4]*Se+x[7]*N,x[5]*H+x[8]*ue,x[0]*Ue+x[6]*ne,x[1]*Se+x[7]*N,x[2]*H+x[8]*ue],$e=new xe(Re,b.side,b.level+1,b.x*2+1,b.y*2,v.fullpath),Fe.push($e)),!(b.x==Me&&Oe<=v.tileResolution)&&!(b.y==Me&&Oe<=v.tileResolution)&&(Re=[x[0]*Ue+x[6]*ne,x[1]*Se+x[7]*N,x[2]*H+x[8]*ue,x[3]*Ne+x[6]*Le,x[4]*Se+x[7]*N,x[5]*H+x[8]*ue,x[6],x[7],x[8],x[9]*Ue+x[6]*ne,x[10]*Ne+x[7]*Le,x[11]*H+x[8]*ue],$e=new xe(Re,b.side,b.level+1,b.x*2+1,b.y*2+1,v.fullpath),Fe.push($e)),b.y==Me&&Oe<=v.tileResolution||(Re=[x[0]*Ne+x[9]*Le,x[1]*Se+x[10]*N,x[2]*H+x[11]*ue,x[0]*Ue+x[6]*ne,x[1]*Se+x[7]*N,x[2]*H+x[8]*ue,x[9]*Ue+x[6]*ne,x[10]*Ne+x[7]*Le,x[11]*H+x[8]*ue,x[9],x[10],x[11]],$e=new xe(Re,b.side,b.level+1,b.x*2,b.y*2+1,v.fullpath),Fe.push($e));for(var we=0;we<Fe.length;we++)W(g,Fe[we],re,le)}}}function U(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function K(){return[1,0,0,0,1,0,0,0,1]}function R(g,b,re){var le=Math.sin(b),te=Math.cos(b);if(re=="x")return[g[0],te*g[1]+le*g[2],te*g[2]-le*g[1],g[3],te*g[4]+le*g[5],te*g[5]-le*g[4],g[6],te*g[7]+le*g[8],te*g[8]-le*g[7]];if(re=="y")return[te*g[0]-le*g[2],g[1],te*g[2]+le*g[0],te*g[3]-le*g[5],g[4],te*g[5]+le*g[3],te*g[6]-le*g[8],g[7],te*g[8]+le*g[6]];if(re=="z")return[te*g[0]+le*g[1],te*g[1]-le*g[0],g[2],te*g[3]+le*g[4],te*g[4]-le*g[3],g[5],te*g[6]+le*g[7],te*g[7]-le*g[6],g[8]]}function B(g){return[g[0],g[1],g[2],0,g[3],g[4],g[5],0,g[6],g[7],g[8],0,0,0,0,1]}function J(g){return[g[0],g[4],g[8],g[12],g[1],g[5],g[9],g[13],g[2],g[6],g[10],g[14],g[3],g[7],g[11],g[15]]}function A(g,b,re,le){var te=2*Math.atan(Math.tan(g/2)*a.drawingBufferHeight/a.drawingBufferWidth),x=1/Math.tan(te/2);return[x/b,0,0,0,0,x,0,0,0,0,(le+re)/(re-le),2*le*re/(re-le),0,0,-1,0]}function Y(g,b){a.bindTexture(a.TEXTURE_2D,b),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,g),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.bindTexture(a.TEXTURE_2D,null)}var $=[],de=function(){var g=4,b={},re;function le(){var ce=this;this.texture=this.callback=null,this.image=new Image,this.image.crossOrigin=re||"anonymous";var ve=function(){ce.image.width>0&&ce.image.height>0?(Y(ce.image,ce.texture),ce.callback(ce.texture,!0)):ce.callback(ce.texture,!1),x(ce)};this.image.addEventListener("load",ve),this.image.addEventListener("error",ve)}le.prototype.loadTexture=function(ce,ve,pe){this.texture=ve,this.callback=pe,this.image.src=ce};function te(ce,ve,pe,Be){this.node=ce,this.src=ve,this.texture=pe,this.callback=Be}function x(ce){if($.length){var ve=$.shift();ce.loadTexture(ve.src,ve.texture,ve.callback)}else b[g++]=ce}for(var ae=0;ae<g;ae++)b[ae]=new le;return function(ce,ve,pe,Be){re=Be;var ze=a.createTexture();return g?b[--g].loadTexture(ve,ze,pe):$.push(new te(ce,ve,ze,pe)),ze}}();function P(g){de(g,encodeURI(g.path+"."+v.extension),function(b,re){g.texture=b,g.textureLoaded=re?2:1},O.crossOrigin)}function ye(g){for(var b=1;b<v.maxLevel&&a.drawingBufferWidth>v.tileResolution*Math.pow(2,b-1)*Math.tan(g/2)*.707;)b++;p.level=b}function Q(g,b){return[g[0]*b[0],g[0]*b[1],g[0]*b[2],0,g[5]*b[4],g[5]*b[5],g[5]*b[6],0,g[10]*b[8],g[10]*b[9],g[10]*b[10],g[11],-b[8],-b[9],-b[10],0]}function Ee(g,b){return[g[0]*b[0]+g[1]*b[1]+g[2]*b[2],g[4]*b[0]+g[5]*b[1]+g[6]*b[2],g[11]+g[8]*b[0]+g[9]*b[1]+g[10]*b[2],1/(g[12]*b[0]+g[13]*b[1]+g[14]*b[2])]}function Ge(g,b){var re=Ee(g,b),le=re[0]*re[3],te=re[1]*re[3],x=re[2]*re[3],ae=[0,0,0];return le<-1&&(ae[0]=-1),le>1&&(ae[0]=1),te<-1&&(ae[1]=-1),te>1&&(ae[1]=1),(x<-1||x>1)&&(ae[2]=1),ae}function Je(g,b){var re=Ge(g,b.slice(0,3)),le=Ge(g,b.slice(3,6)),te=Ge(g,b.slice(6,9)),x=Ge(g,b.slice(9,12)),ae=re[0]+le[0]+te[0]+x[0];if(ae==-4||ae==4)return!1;var ce=re[1]+le[1]+te[1]+x[1];if(ce==-4||ce==4)return!1;var ve=re[2]+le[2]+te[2]+x[2];return ve!=4}function Ze(){console.log("Reducing canvas size due to error 1286!"),f.width=Math.round(f.width/2),f.height=Math.round(f.height/2)}}var i=["attribute vec2 a_texCoord;","varying vec2 v_texCoord;","void main() {","gl_Position = vec4(a_texCoord, 0.0, 1.0);","v_texCoord = a_texCoord;","}"].join(""),s=["attribute vec3 a_vertCoord;","attribute vec2 a_texCoord;","uniform mat4 u_cubeMatrix;","uniform mat4 u_perspMatrix;","varying mediump vec2 v_texCoord;","void main(void) {","gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);","v_texCoord = a_texCoord;","}"].join(""),d=["precision mediump float;","uniform float u_aspectRatio;","uniform float u_psi;","uniform float u_theta;","uniform float u_f;","uniform float u_h;","uniform float u_v;","uniform float u_vo;","uniform float u_rot;","const float PI = 3.14159265358979323846264;","uniform sampler2D u_image;","uniform samplerCube u_imageCube;","varying vec2 v_texCoord;","uniform vec4 u_backgroundColor;","void main() {","float x = v_texCoord.x * u_aspectRatio;","float y = v_texCoord.y;","float sinrot = sin(u_rot);","float cosrot = cos(u_rot);","float rot_x = x * cosrot - y * sinrot;","float rot_y = x * sinrot + y * cosrot;","float sintheta = sin(u_theta);","float costheta = cos(u_theta);","float a = u_f * costheta - rot_y * sintheta;","float root = sqrt(rot_x * rot_x + a * a);","float lambda = atan(rot_x / root, a / root) + u_psi;","float phi = atan((rot_y * costheta + u_f * sintheta) / root);"].join(`
|
|
2
|
+
`),n=d+["float cosphi = cos(phi);","gl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));","}"].join(`
|
|
3
|
+
`),m=d+["lambda = mod(lambda + PI, PI * 2.0) - PI;","vec2 coord = vec2(lambda / PI, phi / (PI / 2.0));","if(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)","gl_FragColor = u_backgroundColor;","else","gl_FragColor = texture2D(u_image, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));","}"].join(`
|
|
4
|
+
`),h=["varying mediump vec2 v_texCoord;","uniform sampler2D u_sampler;","void main(void) {","gl_FragColor = texture2D(u_sampler, v_texCoord);","}"].join("");return{renderer:function(f,p,a,M){return new r(f)}}}(window,document),window.pannellum=function(e,t,o){function r(i,s){var d=this,n,m,h,C=!1,f=Date.now(),p=0,a=0,M=-1,I=0,y=0,_=new Array(10),k=!1,L,v=!1,E=!1,S,Z,T={yaw:0,pitch:0,hfov:0},G=!1,j=!1,O=0,ee,F=0,q,xe,W={},U={},K=[],R=!1,B=!1,J={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:o,maxPitch:o,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:o,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],avoidShowingBackground:!1,animationTimingFunction:N,draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189]};J.strings={loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."},i=typeof i=="string"?t.getElementById(i):i,i.classList.add("pnlm-container"),i.tabIndex=0;var A=t.createElement("div");A.className="pnlm-ui",i.appendChild(A);var Y=t.createElement("div");Y.className="pnlm-render-container",i.appendChild(Y);var $=t.createElement("div");$.className="pnlm-dragfix",A.appendChild($);var de=t.createElement("span");de.className="pnlm-about-msg",de.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a>',A.appendChild(de),$.addEventListener("contextmenu",ae);var P={},ye=t.createElement("div");ye.className="pnlm-sprite pnlm-hot-spot-debug-indicator",A.appendChild(ye),P.container=t.createElement("div"),P.container.className="pnlm-panorama-info",P.title=t.createElement("div"),P.title.className="pnlm-title-box",P.container.appendChild(P.title),P.author=t.createElement("div"),P.author.className="pnlm-author-box",P.container.appendChild(P.author),A.appendChild(P.container),P.load={},P.load.box=t.createElement("div"),P.load.box.className="pnlm-load-box",P.load.boxp=t.createElement("p"),P.load.box.appendChild(P.load.boxp),P.load.lbox=t.createElement("div"),P.load.lbox.className="pnlm-lbox",P.load.lbox.innerHTML='<div class="pnlm-loading"></div>',P.load.box.appendChild(P.load.lbox),P.load.lbar=t.createElement("div"),P.load.lbar.className="pnlm-lbar",P.load.lbarFill=t.createElement("div"),P.load.lbarFill.className="pnlm-lbar-fill",P.load.lbar.appendChild(P.load.lbarFill),P.load.box.appendChild(P.load.lbar),P.load.msg=t.createElement("p"),P.load.msg.className="pnlm-lmsg",P.load.box.appendChild(P.load.msg),A.appendChild(P.load.box),P.errorMsg=t.createElement("div"),P.errorMsg.className="pnlm-error-msg pnlm-info-box",A.appendChild(P.errorMsg);var Q={};Q.container=t.createElement("div"),Q.container.className="pnlm-controls-container",A.appendChild(Q.container),Q.load=t.createElement("div"),Q.load.className="pnlm-load-button",Q.load.addEventListener("click",function(){Tn(),vr()}),A.appendChild(Q.load),Q.zoom=t.createElement("div"),Q.zoom.className="pnlm-zoom-controls pnlm-controls",Q.zoomIn=t.createElement("div"),Q.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control",Q.zoomIn.addEventListener("click",vs),Q.zoom.appendChild(Q.zoomIn),Q.zoomOut=t.createElement("div"),Q.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control",Q.zoomOut.addEventListener("click",_s),Q.zoom.appendChild(Q.zoomOut),Q.container.appendChild(Q.zoom),Q.fullscreen=t.createElement("div"),Q.fullscreen.addEventListener("click",Sn),Q.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control",(t.fullscreenEnabled||t.mozFullScreenEnabled||t.webkitFullscreenEnabled||t.msFullscreenEnabled)&&Q.container.appendChild(Q.fullscreen),Q.orientation=t.createElement("div"),Q.orientation.addEventListener("click",function(l){j?Ht():on()}),Q.orientation.addEventListener("mousedown",function(l){l.stopPropagation()}),Q.orientation.addEventListener("touchstart",function(l){l.stopPropagation()}),Q.orientation.addEventListener("pointerdown",function(l){l.stopPropagation()}),Q.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var Ee,Ge=!1;function Je(l){e.removeEventListener("deviceorientation",Je),l&&l.alpha!==null&&l.beta!==null&&l.gamma!==null?(Q.container.appendChild(Q.orientation),Ee=!0,Ge&&on()):Ee=!1}e.DeviceOrientationEvent?e.addEventListener("deviceorientation",Je):Ee=!1;var Ze=t.createElement("div");Ze.className="pnlm-compass pnlm-controls pnlm-control",A.appendChild(Ze),s.firstScene?tn(s.firstScene):s.default&&s.default.firstScene?tn(s.default.firstScene):tn(null),Tn(!0);function g(){var l=t.createElement("div");if(l.innerHTML="<!--[if lte IE 9]><i></i><![endif]-->",l.getElementsByTagName("i").length==1){te();return}q=n.hfov,xe=n.pitch;var u,w;if(n.type=="cubemap"){for(S=[],u=0;u<6;u++)S.push(new Image),S[u].crossOrigin=n.crossOrigin;P.load.lbox.style.display="block",P.load.lbar.style.display="none"}else if(n.type=="multires"){var D=JSON.parse(JSON.stringify(n.multiRes));n.basePath&&n.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(n.multiRes.basePath)?D.basePath=n.basePath+n.multiRes.basePath:n.multiRes.basePath?D.basePath=n.multiRes.basePath:n.basePath&&(D.basePath=n.basePath),S=D}else if(n.dynamic===!0)S=n.panorama;else{if(n.panorama===o){te(n.strings.noPanoramaError);return}S=new Image}if(n.type=="cubemap"){var V=6,z=function(){V--,V===0&&re()},fe=function(Te){var Ce=t.createElement("a");Ce.href=Te.target.src,Ce.textContent=Ce.href,te(n.strings.fileAccessError.replace("%s",Ce.outerHTML))};for(u=0;u<S.length;u++)w=n.cubeMap[u],w=="null"?(console.log("Will use background instead of missing cubemap face "+u),z()):(n.basePath&&!b(w)&&(w=n.basePath+w),S[u].onload=z,S[u].onerror=fe,S[u].src=xt(w))}else if(n.type=="multires")re();else if(w="",n.basePath&&(w=n.basePath),n.dynamic!==!0){w=b(n.panorama)?n.panorama:w+n.panorama,S.onload=function(){e.URL.revokeObjectURL(this.src),re()};var ie=new XMLHttpRequest;ie.onloadend=function(){if(ie.status!=200){var ge=t.createElement("a");ge.href=w,ge.textContent=ge.href,te(n.strings.fileAccessError.replace("%s",ge.outerHTML))}var Te=this.response;le(Te),P.load.msg.innerHTML=""},ie.onprogress=function(ge){if(ge.lengthComputable){var Te=ge.loaded/ge.total*100;P.load.lbarFill.style.width=Te+"%";var Ce,nt,Qe;ge.total>1e6?(Ce="MB",nt=(ge.loaded/1e6).toFixed(2),Qe=(ge.total/1e6).toFixed(2)):ge.total>1e3?(Ce="kB",nt=(ge.loaded/1e3).toFixed(1),Qe=(ge.total/1e3).toFixed(1)):(Ce="B",nt=ge.loaded,Qe=ge.total),P.load.msg.innerHTML=nt+" / "+Qe+" "+Ce}else P.load.lbox.style.display="block",P.load.lbar.style.display="none"};try{ie.open("GET",w,!0)}catch{te(n.strings.malformedURLError)}ie.responseType="blob",ie.setRequestHeader("Accept","image/*,*/*;q=0.9"),ie.withCredentials=n.crossOrigin==="use-credentials",ie.send()}n.draggable&&A.classList.add("pnlm-grab"),A.classList.remove("pnlm-grabbing")}function b(l){return new RegExp("^(?:[a-z]+:)?//","i").test(l)||l[0]=="/"||l.slice(0,5)=="blob:"}function re(){m||(m=new libpannellum.renderer(Y)),E||(E=!0,$.addEventListener("mousedown",ve,!1),t.addEventListener("mousemove",ze,!1),t.addEventListener("mouseup",je,!1),n.mouseZoom&&(A.addEventListener("mousewheel",Fe,!1),A.addEventListener("DOMMouseScroll",Fe,!1)),n.doubleClickZoom&&$.addEventListener("dblclick",pe,!1),A.addEventListener("mozfullscreenchange",dt,!1),A.addEventListener("webkitfullscreenchange",dt,!1),A.addEventListener("msfullscreenchange",dt,!1),A.addEventListener("fullscreenchange",dt,!1),e.addEventListener("resize",ue,!1),e.addEventListener("orientationchange",ue,!1),n.disableKeyboardCtrl||(i.addEventListener("keydown",Re,!1),i.addEventListener("keyup",Ue,!1),i.addEventListener("blur",$e,!1)),t.addEventListener("mouseleave",je,!1),t.documentElement.style.pointerAction===""&&t.documentElement.style.touchAction===""?($.addEventListener("pointerdown",Ye,!1),$.addEventListener("pointermove",Ne,!1),$.addEventListener("pointerup",Le,!1),$.addEventListener("pointerleave",Le,!1)):($.addEventListener("touchstart",qe,!1),$.addEventListener("touchmove",tt,!1),$.addEventListener("touchend",He,!1)),e.navigator.pointerEnabled&&(i.style.touchAction="none")),fs(),rt(n.hfov),setTimeout(function(){},500)}function le(l){var u=new FileReader;u.addEventListener("loadend",function(){var w=u.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var D=w.indexOf("ÿÂ");(D<0||D>65536)&&te(n.strings.iOS8WebGLError)}var V=w.indexOf("<x:xmpmeta");if(V>-1&&n.ignoreGPanoXMP!==!0){var z=w.substring(V,w.indexOf("</x:xmpmeta>")+12),fe=function(Te){var Ce;return z.indexOf(Te+'="')>=0?(Ce=z.substring(z.indexOf(Te+'="')+Te.length+2),Ce=Ce.substring(0,Ce.indexOf('"'))):z.indexOf(Te+">")>=0&&(Ce=z.substring(z.indexOf(Te+">")+Te.length+1),Ce=Ce.substring(0,Ce.indexOf("<"))),Ce!==o?Number(Ce):null},ie={fullWidth:fe("GPano:FullPanoWidthPixels"),croppedWidth:fe("GPano:CroppedAreaImageWidthPixels"),fullHeight:fe("GPano:FullPanoHeightPixels"),croppedHeight:fe("GPano:CroppedAreaImageHeightPixels"),topPixels:fe("GPano:CroppedAreaTopPixels"),heading:fe("GPano:PoseHeadingDegrees"),horizonPitch:fe("GPano:PosePitchDegrees"),horizonRoll:fe("GPano:PoseRollDegrees")};ie.fullWidth!==null&&ie.croppedWidth!==null&&ie.fullHeight!==null&&ie.croppedHeight!==null&&ie.topPixels!==null&&(K.indexOf("haov")<0&&(n.haov=ie.croppedWidth/ie.fullWidth*360),K.indexOf("vaov")<0&&(n.vaov=ie.croppedHeight/ie.fullHeight*180),K.indexOf("vOffset")<0&&(n.vOffset=((ie.topPixels+ie.croppedHeight/2)/ie.fullHeight-.5)*-180),ie.heading!==null&&K.indexOf("northOffset")<0&&(n.northOffset=ie.heading,n.compass!==!1&&(n.compass=!0)),ie.horizonPitch!==null&&ie.horizonRoll!==null&&(K.indexOf("horizonPitch")<0&&(n.horizonPitch=ie.horizonPitch),K.indexOf("horizonRoll")<0&&(n.horizonRoll=ie.horizonRoll)))}S.src=e.URL.createObjectURL(l)}),u.readAsBinaryString!==o?u.readAsBinaryString(l):u.readAsText(l)}function te(l){l===o&&(l=n.strings.genericWebGLError),P.errorMsg.innerHTML="<p>"+l+"</p>",Q.load.style.display="none",P.load.box.style.display="none",P.errorMsg.style.display="table",v=!0,Y.style.display="none",pt("error",l)}function x(){v&&(P.load.box.style.display="none",P.errorMsg.style.display="none",v=!1,pt("errorcleared"))}function ae(l){var u=ce(l);de.style.left=u.x+"px",de.style.top=u.y+"px",clearTimeout(ae.t1),clearTimeout(ae.t2),de.style.display="block",de.style.opacity=1,ae.t1=setTimeout(function(){de.style.opacity=0},2e3),ae.t2=setTimeout(function(){de.style.display="none"},2500),l.preventDefault()}function ce(l){var u=i.getBoundingClientRect(),w={};return w.x=l.clientX-u.left,w.y=l.clientY-u.top,w}function ve(l){if(l.preventDefault(),i.focus(),!(!L||!n.draggable)){var u=ce(l);if(n.hotSpotDebug){var w=Be(l);console.log("Pitch: "+w[0]+", Yaw: "+w[1]+", Center Pitch: "+n.pitch+", Center Yaw: "+n.yaw+", HFOV: "+n.hfov)}nn(),Ht(),n.roll=0,T.hfov=0,C=!0,f=Date.now(),p=u.x,a=u.y,I=n.yaw,y=n.pitch,A.classList.add("pnlm-grabbing"),A.classList.remove("pnlm-grab"),pt("mousedown",l),we()}}function pe(l){if(n.minHfov===n.hfov)d.setHfov(q,1e3);else{var u=Be(l);d.lookAt(u[0],u[1],n.minHfov,1e3)}}function Be(l){var u=ce(l),w=m.getCanvas(),D=w.clientWidth,V=w.clientHeight,z=u.x/D*2-1,fe=(1-u.y/V*2)*V/D,ie=1/Math.tan(n.hfov*Math.PI/360),ge=Math.sin(n.pitch*Math.PI/180),Te=Math.cos(n.pitch*Math.PI/180),Ce=ie*Te-fe*ge,nt=Math.sqrt(z*z+Ce*Ce),Qe=Math.atan((fe*Te+ie*ge)/nt)*180/Math.PI,vt=Math.atan2(z/nt,Ce/nt)*180/Math.PI+n.yaw;return vt<-180&&(vt+=360),vt>180&&(vt-=360),[Qe,vt]}function ze(l){if(C&&L){f=Date.now();var u=m.getCanvas(),w=u.clientWidth,D=u.clientHeight,V=ce(l),z=(Math.atan(p/w*2-1)-Math.atan(V.x/w*2-1))*180/Math.PI*n.hfov/90+I;T.yaw=(z-n.yaw)%360*.2,n.yaw=z;var fe=2*Math.atan(Math.tan(n.hfov/360*Math.PI)*D/w)*180/Math.PI,ie=(Math.atan(V.y/D*2-1)-Math.atan(a/D*2-1))*180/Math.PI*fe/90+y;T.pitch=(ie-n.pitch)*.2,n.pitch=ie}}function je(l){C&&(C=!1,Date.now()-f>15&&(T.pitch=T.yaw=0),A.classList.add("pnlm-grab"),A.classList.remove("pnlm-grabbing"),f=Date.now(),pt("mouseup",l))}function qe(l){if(!(!L||!n.draggable)){nn(),Ht(),n.roll=0,T.hfov=0;var u=ce(l.targetTouches[0]);if(p=u.x,a=u.y,l.targetTouches.length==2){var w=ce(l.targetTouches[1]);p+=(w.x-u.x)*.5,a+=(w.y-u.y)*.5,M=Math.sqrt((u.x-w.x)*(u.x-w.x)+(u.y-w.y)*(u.y-w.y))}C=!0,f=Date.now(),I=n.yaw,y=n.pitch,pt("touchstart",l),we()}}function tt(l){if(n.draggable&&(l.preventDefault(),L&&(f=Date.now()),C&&L)){var u=ce(l.targetTouches[0]),w=u.x,D=u.y;if(l.targetTouches.length==2&&M!=-1){var V=ce(l.targetTouches[1]);w+=(V.x-u.x)*.5,D+=(V.y-u.y)*.5;var z=Math.sqrt((u.x-V.x)*(u.x-V.x)+(u.y-V.y)*(u.y-V.y));rt(n.hfov+(M-z)*.1),M=z}var fe=n.hfov/360*n.touchPanSpeedCoeffFactor,ie=(p-w)*fe+I;T.yaw=(ie-n.yaw)%360*.2,n.yaw=ie;var ge=(D-a)*fe+y;T.pitch=(ge-n.pitch)*.2,n.pitch=ge}}function He(){C=!1,Date.now()-f>150&&(T.pitch=T.yaw=0),M=-1,f=Date.now(),pt("touchend",event)}var Me=[],Oe=[];function Ye(l){l.pointerType=="touch"&&(Me.push(l.pointerId),Oe.push({clientX:l.clientX,clientY:l.clientY}),l.targetTouches=Oe,qe(l),l.preventDefault())}function Ne(l){if(l.pointerType=="touch"){for(var u=0;u<Me.length;u++)if(l.pointerId==Me[u]){Oe[u].clientX=l.clientX,Oe[u].clientY=l.clientY,l.targetTouches=Oe,tt(l),l.preventDefault();return}}}function Le(l){if(l.pointerType=="touch"){for(var u=!1,w=0;w<Me.length;w++)l.pointerId==Me[w]&&(Me[w]=o),Me[w]&&(u=!0);u||(Me=[],Oe=[],He()),l.preventDefault()}}function Fe(l){!L||n.mouseZoom=="fullscreenonly"&&!k||(l.preventDefault(),nn(),f=Date.now(),l.wheelDeltaY?(rt(n.hfov-l.wheelDeltaY*.05),T.hfov=l.wheelDelta<0?1:-1):l.wheelDelta?(rt(n.hfov-l.wheelDelta*.05),T.hfov=l.wheelDelta<0?1:-1):l.detail&&(rt(n.hfov+l.detail*1.5),T.hfov=l.detail>0?1:-1),we())}function Re(l){nn(),f=Date.now(),Ht(),n.roll=0;var u=l.which||l.keycode;n.capturedKeyNumbers.indexOf(u)<0||(l.preventDefault(),u==27?k&&Sn():Se(u,!0))}function $e(){for(var l=0;l<10;l++)_[l]=!1}function Ue(l){var u=l.which||l.keycode;n.capturedKeyNumbers.indexOf(u)<0||(l.preventDefault(),Se(u,!1))}function Se(l,u){var w=!1;switch(l){case 109:case 189:case 17:case 173:_[0]!=u&&(w=!0),_[0]=u;break;case 107:case 187:case 16:case 61:_[1]!=u&&(w=!0),_[1]=u;break;case 38:_[2]!=u&&(w=!0),_[2]=u;break;case 87:_[6]!=u&&(w=!0),_[6]=u;break;case 40:_[3]!=u&&(w=!0),_[3]=u;break;case 83:_[7]!=u&&(w=!0),_[7]=u;break;case 37:_[4]!=u&&(w=!0),_[4]=u;break;case 65:_[8]!=u&&(w=!0),_[8]=u;break;case 39:_[5]!=u&&(w=!0),_[5]=u;break;case 68:_[9]!=u&&(w=!0),_[9]=u}w&&u&&(typeof performance<"u"&&performance.now()?Z=performance.now():Z=Date.now(),we())}function H(){if(L){var l=!1,u=n.pitch,w=n.yaw,D=n.hfov,V;typeof performance<"u"&&performance.now()?V=performance.now():V=Date.now(),Z===o&&(Z=V);var z=(V-Z)*n.hfov/1700;if(z=Math.min(z,1),_[0]&&n.keyboardZoom===!0&&(rt(n.hfov+(T.hfov*.8+.5)*z),l=!0),_[1]&&n.keyboardZoom===!0&&(rt(n.hfov+(T.hfov*.8-.2)*z),l=!0),(_[2]||_[6])&&(n.pitch+=(T.pitch*.8+.2)*z,l=!0),(_[3]||_[7])&&(n.pitch+=(T.pitch*.8-.2)*z,l=!0),(_[4]||_[8])&&(n.yaw+=(T.yaw*.8-.2)*z,l=!0),(_[5]||_[9])&&(n.yaw+=(T.yaw*.8+.2)*z,l=!0),l&&(f=Date.now()),n.autoRotate){if(V-Z>.001){var fe=(V-Z)/1e3,ie=(T.yaw/fe*z-n.autoRotate*.2)*fe;ie=(-n.autoRotate>0?1:-1)*Math.min(Math.abs(n.autoRotate*fe),Math.abs(ie)),n.yaw+=ie}n.autoRotateStopDelay&&(n.autoRotateStopDelay-=V-Z,n.autoRotateStopDelay<=0&&(n.autoRotateStopDelay=!1,F=n.autoRotate,n.autoRotate=0))}if(W.pitch&&(ne("pitch"),u=n.pitch),W.yaw&&(ne("yaw"),w=n.yaw),W.hfov&&(ne("hfov"),D=n.hfov),z>0&&!n.autoRotate){var ge=.85;!_[4]&&!_[5]&&!_[8]&&!_[9]&&!W.yaw&&(n.yaw+=T.yaw*z*ge),!_[2]&&!_[3]&&!_[6]&&!_[7]&&!W.pitch&&(n.pitch+=T.pitch*z*ge),!_[0]&&!_[1]&&!W.hfov&&rt(n.hfov+T.hfov*z*ge)}if(Z=V,z>0){T.yaw=T.yaw*.8+(n.yaw-w)/z*.2,T.pitch=T.pitch*.8+(n.pitch-u)/z*.2,T.hfov=T.hfov*.8+(n.hfov-D)/z*.2;var Te=n.autoRotate?Math.abs(n.autoRotate):5;T.yaw=Math.min(Te,Math.max(T.yaw,-Te)),T.pitch=Math.min(Te,Math.max(T.pitch,-Te)),T.hfov=Math.min(Te,Math.max(T.hfov,-Te))}_[0]&&_[1]&&(T.hfov=0),(_[2]||_[6])&&(_[3]||_[7])&&(T.pitch=0),(_[4]||_[8])&&(_[5]||_[9])&&(T.yaw=0)}}function ne(l){var u=W[l],w=Math.min(1,Math.max((Date.now()-u.startTime)/1e3/(u.duration/1e3),0)),D=u.startPosition+n.animationTimingFunction(w)*(u.endPosition-u.startPosition);if(u.endPosition>u.startPosition&&D>=u.endPosition||u.endPosition<u.startPosition&&D<=u.endPosition||u.endPosition===u.startPosition){D=u.endPosition,T[l]=0;var V=W[l].callback,z=W[l].callbackArgs;delete W[l],typeof V=="function"&&V(z)}n[l]=D}function N(l){return l<.5?2*l*l:-1+(4-2*l)*l}function ue(){dt()}function we(){G||(G=!0,me())}function me(){if(Ie(),ee&&clearTimeout(ee),C||j===!0)requestAnimationFrame(me);else if(_[0]||_[1]||_[2]||_[3]||_[4]||_[5]||_[6]||_[7]||_[8]||_[9]||n.autoRotate||W.pitch||W.yaw||W.hfov||Math.abs(T.yaw)>.01||Math.abs(T.pitch)>.01||Math.abs(T.hfov)>.01)H(),n.autoRotateInactivityDelay>=0&&F&&Date.now()-f>n.autoRotateInactivityDelay&&!n.autoRotate&&(n.autoRotate=F,d.lookAt(xe,o,q,3e3)),requestAnimationFrame(me);else if(m&&(m.isLoading()||n.dynamic===!0&&R))requestAnimationFrame(me);else{G=!1,Z=o;var l=n.autoRotateInactivityDelay-(Date.now()-f);l>0?ee=setTimeout(function(){n.autoRotate=F,d.lookAt(xe,o,q,3e3),we()},l):n.autoRotateInactivityDelay>=0&&F&&(n.autoRotate=F,d.lookAt(xe,o,q,3e3),we())}}function Ie(){var l;if(L){n.yaw>180?n.yaw-=360:n.yaw<-180&&(n.yaw+=360),l=n.yaw;var u=0;if(n.avoidShowingBackground){var ge=m.getCanvas(),w=n.hfov/2,D=Math.atan2(Math.tan(w/180*Math.PI),ge.width/ge.height)*180/Math.PI,V=n.vaov>n.haov;V?D*(1-Math.min(Math.cos((n.pitch-w)/180*Math.PI),Math.cos((n.pitch+w)/180*Math.PI))):u=w*(1-Math.min(Math.cos((n.pitch-D)/180*Math.PI),Math.cos((n.pitch+D)/180*Math.PI)))}var z=n.maxYaw-n.minYaw,fe=-180,ie=180;z<360&&(fe=n.minYaw+n.hfov/2+u,ie=n.maxYaw-n.hfov/2-u,z<n.hfov&&(fe=ie=(fe+ie)/2),n.yaw=Math.max(fe,Math.min(ie,n.yaw))),n.autoRotate!==!1&&l!=n.yaw&&Z!==o&&(n.autoRotate*=-1);var ge=m.getCanvas(),Te=2*Math.atan(Math.tan(n.hfov/180*Math.PI*.5)/(ge.width/ge.height))/Math.PI*180,Ce=n.minPitch+Te/2,nt=n.maxPitch-Te/2,Qe=n.maxPitch-n.minPitch;Qe<Te&&(Ce=nt=(Ce+nt)/2),isNaN(Ce)&&(Ce=-90),isNaN(nt)&&(nt=90),n.pitch=Math.max(Ce,Math.min(nt,n.pitch)),m.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{roll:n.roll*Math.PI/180}),mr(),n.compass&&(Ze.style.transform="rotate("+(-n.yaw-n.northOffset)+"deg)",Ze.style.webkitTransform="rotate("+(-n.yaw-n.northOffset)+"deg)"),n.onRender&&n.onRender()}}function oe(l,u,w,D){this.w=l,this.x=u,this.y=w,this.z=D}oe.prototype.multiply=function(l){return new oe(this.w*l.w-this.x*l.x-this.y*l.y-this.z*l.z,this.x*l.w+this.w*l.x+this.y*l.z-this.z*l.y,this.y*l.w+this.w*l.y+this.z*l.x-this.x*l.z,this.z*l.w+this.w*l.z+this.x*l.y-this.y*l.x)},oe.prototype.toEulerAngles=function(){var l=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),u=Math.asin(2*(this.w*this.y-this.z*this.x)),w=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[l,u,w]};function ds(l,u,w){var D=[u?u*Math.PI/180/2:0,w?w*Math.PI/180/2:0,l?l*Math.PI/180/2:0],V=[Math.cos(D[0]),Math.cos(D[1]),Math.cos(D[2])],z=[Math.sin(D[0]),Math.sin(D[1]),Math.sin(D[2])];return new oe(V[0]*V[1]*V[2]-z[0]*z[1]*z[2],z[0]*V[1]*V[2]-V[0]*z[1]*z[2],V[0]*z[1]*V[2]+z[0]*V[1]*z[2],V[0]*V[1]*z[2]+z[0]*z[1]*V[2])}function ps(l,u,w){var D=ds(l,u,w);D=D.multiply(new oe(Math.sqrt(.5),-Math.sqrt(.5),0,0));var V=e.orientation?-e.orientation*Math.PI/180/2:0;return D.multiply(new oe(Math.cos(V),0,-Math.sin(V),0))}function pr(l){var u=ps(l.alpha,l.beta,l.gamma).toEulerAngles();typeof j=="number"&&j<10?j+=1:j===10?(O=u[2]/Math.PI*180+n.yaw,j=!0,requestAnimationFrame(me)):(n.pitch=u[0]/Math.PI*180,n.roll=-u[1]/Math.PI*180,n.yaw=-u[2]/Math.PI*180+O)}function fs(){try{var l={};n.horizonPitch!==o&&(l.horizonPitch=n.horizonPitch*Math.PI/180),n.horizonRoll!==o&&(l.horizonRoll=n.horizonRoll*Math.PI/180),n.backgroundColor!==o&&(l.backgroundColor=n.backgroundColor),m.init(S,n.type,n.dynamic,n.haov*Math.PI/180,n.vaov*Math.PI/180,n.vOffset*Math.PI/180,hs,l),n.dynamic!==!0&&(S=o)}catch(u){if(u.type=="webgl error"||u.type=="no webgl")te();else if(u.type=="webgl size error")te(n.strings.textureSizeError.replace("%s",u.width).replace("%s",u.maxWidth));else throw te(n.strings.unknownError),u}}function hs(){if(n.sceneFadeDuration&&m.fadeImg!==o){m.fadeImg.style.opacity=0;var l=m.fadeImg;delete m.fadeImg,setTimeout(function(){Y.removeChild(l),pt("scenechangefadedone")},n.sceneFadeDuration)}n.compass?Ze.style.display="inline":Ze.style.display="none",ms(),P.load.box.style.display="none",h!==o&&(Y.removeChild(h),h=o),L=!0,pt("load"),we()}function fr(l){l.pitch=Number(l.pitch)||0,l.yaw=Number(l.yaw)||0;var u=t.createElement("div");u.className="pnlm-hotspot-base",l.cssClass?u.className+=" "+l.cssClass:u.className+=" pnlm-hotspot pnlm-sprite pnlm-"+bt(l.type);var w=t.createElement("span");l.text&&(w.innerHTML=bt(l.text));var D;if(l.video){var V=t.createElement("video"),z=l.video;n.basePath&&!b(z)&&(z=n.basePath+z),V.src=xt(z),V.controls=!0,V.style.width=l.width+"px",Y.appendChild(u),w.appendChild(V)}else if(l.image){var z=l.image;n.basePath&&!b(z)&&(z=n.basePath+z),D=t.createElement("a"),D.href=xt(l.URL?l.URL:z),D.target="_blank",w.appendChild(D);var fe=t.createElement("img");fe.src=xt(z),fe.style.width=l.width+"px",fe.style.paddingTop="5px",Y.appendChild(u),D.appendChild(fe),w.style.maxWidth="initial"}else l.URL?(D=t.createElement("a"),D.href=xt(l.URL),D.target="_blank",Y.appendChild(D),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer",D.appendChild(u)):(l.sceneId&&(u.onclick=u.ontouchend=function(){return u.clicked||(u.clicked=!0,Nn(l.sceneId,l.targetPitch,l.targetYaw,l.targetHfov)),!1},u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),Y.appendChild(u));l.createTooltipFunc?l.createTooltipFunc(u,l.createTooltipArgs):(l.text||l.video||l.image)&&(u.classList.add("pnlm-tooltip"),u.appendChild(w),w.style.width=w.scrollWidth-20+"px",w.style.marginLeft=-(w.scrollWidth-u.offsetWidth)/2+"px",w.style.marginTop=-w.scrollHeight-12+"px"),l.clickHandlerFunc&&(u.addEventListener("click",function(ie){l.clickHandlerFunc(ie,l.clickHandlerArgs)},"false"),u.className+=" pnlm-pointer",w.className+=" pnlm-pointer"),l.div=u}function ms(){B||(n.hotSpots?(n.hotSpots=n.hotSpots.sort(function(l,u){return l.pitch<u.pitch}),n.hotSpots.forEach(fr)):n.hotSpots=[],B=!0,mr())}function gs(){var l=n.hotSpots;if(B=!1,delete n.hotSpots,l)for(var u=0;u<l.length;u++){for(var w=l[u].div;w.parentNode!=Y;)w=w.parentNode;Y.removeChild(w),delete l[u].div}}function hr(l){var u=Math.sin(l.pitch*Math.PI/180),w=Math.cos(l.pitch*Math.PI/180),D=Math.sin(n.pitch*Math.PI/180),V=Math.cos(n.pitch*Math.PI/180),z=Math.cos((-l.yaw+n.yaw)*Math.PI/180),fe=u*D+w*z*V;if(l.yaw<=90&&l.yaw>-90&&fe<=0||(l.yaw>90||l.yaw<=-90)&&fe<=0)l.div.style.visibility="hidden";else{var ie=Math.sin((-l.yaw+n.yaw)*Math.PI/180),ge=Math.tan(n.hfov*Math.PI/360);l.div.style.visibility="visible";var Te=m.getCanvas(),Ce=Te.clientWidth,nt=Te.clientHeight,Qe=[-Ce/ge*ie*w/fe/2,-Ce/ge*(u*V-w*z*D)/fe/2],vt=Math.sin(n.roll*Math.PI/180),_r=Math.cos(n.roll*Math.PI/180);Qe=[Qe[0]*_r-Qe[1]*vt,Qe[0]*vt+Qe[1]*_r],Qe[0]+=(Ce-l.div.offsetWidth)/2,Qe[1]+=(nt-l.div.offsetHeight)/2;var Pn="translate("+Qe[0]+"px, "+Qe[1]+"px) translateZ(9999px) rotate("+n.roll+"deg)";l.div.style.webkitTransform=Pn,l.div.style.MozTransform=Pn,l.div.style.transform=Pn}}function mr(){n.hotSpots.forEach(hr)}function tn(l){n={};var u,w,D=["haov","vaov","vOffset","northOffset","horizonPitch","horizonRoll"];K=[];for(u in J)J.hasOwnProperty(u)&&(n[u]=J[u]);for(u in s.default)if(s.default.hasOwnProperty(u))if(u=="strings")for(w in s.default.strings)s.default.strings.hasOwnProperty(w)&&(n.strings[w]=bt(s.default.strings[w]));else n[u]=s.default[u],D.indexOf(u)>=0&&K.push(u);if(l!==null&&l!==""&&s.scenes&&s.scenes[l]){var V=s.scenes[l];for(u in V)if(V.hasOwnProperty(u))if(u=="strings")for(w in V.strings)V.strings.hasOwnProperty(w)&&(n.strings[w]=bt(V.strings[w]));else n[u]=V[u],D.indexOf(u)>=0&&K.push(u);n.scene=l}for(u in s)if(s.hasOwnProperty(u))if(u=="strings")for(w in s.strings)s.strings.hasOwnProperty(w)&&(n.strings[w]=bt(s.strings[w]));else n[u]=s[u],D.indexOf(u)>=0&&K.push(u)}function Tn(l){if(l=l||!1,l&&"preview"in n){var u=n.preview;n.basePath&&!b(u)&&(u=n.basePath+u),h=t.createElement("div"),h.className="pnlm-preview-img",h.style.backgroundImage="url('"+ws(u)+"')",Y.appendChild(h)}var w=n.title,D=n.author;l&&("previewTitle"in n&&(n.title=n.previewTitle),"previewAuthor"in n&&(n.author=n.previewAuthor)),n.hasOwnProperty("title")||(P.title.innerHTML=""),n.hasOwnProperty("author")||(P.author.innerHTML=""),!n.hasOwnProperty("title")&&!n.hasOwnProperty("author")&&(P.container.style.display="none"),Q.load.innerHTML="<p>"+n.strings.loadButtonLabel+"</p>",P.load.boxp.innerHTML=n.strings.loadingLabel;for(var V in n)if(n.hasOwnProperty(V))switch(V){case"title":P.title.innerHTML=bt(n[V]),P.container.style.display="inline";break;case"author":P.author.innerHTML=n.strings.bylineLabel.replace("%s",bt(n[V])),P.container.style.display="inline";break;case"fallback":var z=t.createElement("a");z.href=xt(n[V]),z.target="_blank",z.textContent="Click here to view this panorama in an alternative viewer.";var fe=t.createElement("p");fe.textContent="Your browser does not support WebGL.",fe.appendChild(t.createElement("br")),fe.appendChild(z),P.errorMsg.innerHTML="",P.errorMsg.appendChild(fe);break;case"hfov":rt(Number(n[V]));break;case"autoLoad":n[V]===!0&&m===o&&(P.load.box.style.display="inline",Q.load.style.display="none",g());break;case"showZoomCtrl":n[V]&&n.showControls!=!1?Q.zoom.style.display="block":Q.zoom.style.display="none";break;case"showFullscreenCtrl":n[V]&&n.showControls!=!1&&("fullscreen"in t||"mozFullScreen"in t||"webkitIsFullScreen"in t||"msFullscreenElement"in t)?Q.fullscreen.style.display="block":Q.fullscreen.style.display="none";break;case"hotSpotDebug":n[V]?ye.style.display="block":ye.style.display="none";break;case"showControls":n[V]||(Q.orientation.style.display="none",Q.zoom.style.display="none",Q.fullscreen.style.display="none");break;case"orientationOnByDefault":n[V]&&(Ee===o?Ge=!0:Ee===!0&&on());break}l&&(w?n.title=w:delete n.title,D?n.author=D:delete n.author)}function Sn(){if(L&&!v)if(k)t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen();else try{i.requestFullscreen?i.requestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen?i.msRequestFullscreen():i.webkitRequestFullScreen()}catch{}}function dt(){var l=e.innerWidth==screen.width&&e.innerHeight==screen.height;t.fullscreen||t.mozFullScreen||t.webkitIsFullScreen||t.msFullscreenElement||l?(Q.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),k=!0):(Q.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),k=!1),m.resize(),rt(n.hfov),we()}function vs(){L&&(rt(n.hfov-5),we())}function _s(){L&&(rt(n.hfov+5),we())}function gr(l){var u=n.minHfov;if(n.type=="multires"&&m&&(u=Math.min(u,m.getCanvas().width/(n.multiRes.cubeResolution/90*.9))),u>n.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),n.hfov;var w=n.hfov;if(l<u?w=u:l>n.maxHfov?w=n.maxHfov:w=l,n.avoidShowingBackground&&m){var D=m.getCanvas();w=Math.min(w,Math.atan(Math.tan((n.maxPitch-n.minPitch)/360*Math.PI)/D.height*D.width)*360/Math.PI)}return w}function rt(l){n.hfov=gr(l)}function nn(){W={},F=n.autoRotate?n.autoRotate:F,n.autoRotate=!1}function vr(){x(),L=!1,Q.load.style.display="none",P.load.box.style.display="inline",g()}function Nn(l,u,w,D,V){L=!1,W={};var z,fe,ie,ge;if(n.sceneFadeDuration&&!V){var Te=m.render(n.pitch*Math.PI/180,n.yaw*Math.PI/180,n.hfov*Math.PI/180,{returnImage:!0});if(Te!==o){z=new Image,z.className="pnlm-fade-img",z.style.transition="opacity "+n.sceneFadeDuration/1e3+"s",z.style.width="100%",z.style.height="100%",z.onload=function(){Nn(l,u,w,D,!0)},z.src=Te,Y.appendChild(z),m.fadeImg=z;return}}u==="same"?fe=n.pitch:fe=u,w==="same"?ie=n.yaw:w==="sameAzimuth"?ie=n.yaw+(n.northOffset||0)-(s.scenes[l].northOffset||0):ie=w,D==="same"?ge=n.hfov:ge=D,gs(),tn(l),T.yaw=T.pitch=T.hfov=0,Tn(),fe!==o&&(n.pitch=fe),ie!==o&&(n.yaw=ie),ge!==o&&(n.hfov=ge),pt("scenechange",l),vr()}function Ht(){e.removeEventListener("deviceorientation",pr),Q.orientation.classList.remove("pnlm-orientation-button-active"),j=!1}function on(){j=1,e.addEventListener("deviceorientation",pr),Q.orientation.classList.add("pnlm-orientation-button-active")}function bt(l){return s.escapeHTML?String(l).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split(`
|
|
5
|
+
`).join("<br>"):String(l).split(`
|
|
6
|
+
`).join("<br>")}function xt(l){return l.trim().toLowerCase().indexOf("javascript:")===0?"about:blank":l}function ws(l){return xt(l).replace(/"/g,"%22").replace(/'/g,"%27")}this.isLoaded=function(){return!!L},this.getPitch=function(){return n.pitch},this.setPitch=function(l,u,w,D){return u=u==o?1e3:Number(u),u?W.pitch={startTime:Date.now(),startPosition:n.pitch,endPosition:l,duration:u,callback:w,callbackArgs:D}:n.pitch=l,we(),this},this.getPitchBounds=function(){return[n.minPitch,n.maxPitch]},this.setPitchBounds=function(l){return n.minPitch=Math.max(-90,Math.min(l[0],90)),n.maxPitch=Math.max(-90,Math.min(l[1],90)),this},this.getYaw=function(){return n.yaw},this.setYaw=function(l,u,w,D){return u=u==o?1e3:Number(u),l=(l+180)%360-180,u?(n.yaw-l>180?l+=360:l-n.yaw>180&&(l-=360),W.yaw={startTime:Date.now(),startPosition:n.yaw,endPosition:l,duration:u,callback:w,callbackArgs:D}):n.yaw=l,we(),this},this.getYawBounds=function(){return[n.minYaw,n.maxYaw]},this.setYawBounds=function(l){return n.minYaw=Math.max(-180,Math.min(l[0],180)),n.maxYaw=Math.max(-180,Math.min(l[1],180)),this},this.getHfov=function(){return n.hfov},this.setHfov=function(l,u,w,D){return u=u==o?1e3:Number(u),u?W.hfov={startTime:Date.now(),startPosition:n.hfov,endPosition:gr(l),duration:u,callback:w,callbackArgs:D}:rt(l),we(),this},this.getHfovBounds=function(){return[n.minHfov,n.maxHfov]},this.setHfovBounds=function(l){return n.minHfov=Math.max(0,l[0]),n.maxHfov=Math.max(0,l[1]),this},this.lookAt=function(l,u,w,D,V,z){return D=D==o?1e3:Number(D),l!==o&&(this.setPitch(l,D,V,z),V=o),u!==o&&(this.setYaw(u,D,V,z),V=o),w!==o&&this.setHfov(w,D,V,z),this},this.getNorthOffset=function(){return n.northOffset},this.setNorthOffset=function(l){return n.northOffset=Math.min(360,Math.max(0,l)),we(),this},this.getHorizonRoll=function(){return n.horizonRoll},this.setHorizonRoll=function(l){return n.horizonRoll=Math.min(90,Math.max(-90,l)),m.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),we(),this},this.getHorizonPitch=function(){return n.horizonPitch},this.setHorizonPitch=function(l){return n.horizonPitch=Math.min(90,Math.max(-90,l)),m.setPose(n.horizonPitch*Math.PI/180,n.horizonRoll*Math.PI/180),we(),this},this.startAutoRotate=function(l){return l=l||F||1,n.autoRotate=l,d.lookAt(xe,o,q,3e3),we(),this},this.stopAutoRotate=function(){return F=n.autoRotate?n.autoRotate:F,n.autoRotate=!1,n.autoRotateInactivityDelay=-1,this},this.getRenderer=function(){return m},this.setUpdate=function(l){return R=l===!0,m===o?re():we(),this},this.mouseEventToCoords=function(l){return Be(l)},this.loadScene=function(l,u,w,D){return L!==!1&&Nn(l,u,w,D),this},this.getScene=function(){return n.scene},this.addScene=function(l,u){return s.scenes[l]=u,this},this.removeScene=function(l){return n.scene===l||!s.scenes.hasOwnProperty(l)?!1:(delete s.scenes[l],!0)},this.toggleFullscreen=function(){return Sn(),this},this.getConfig=function(){return n},this.getContainer=function(){return i},this.addHotSpot=function(l,u){if(u===o&&n.scene===o)n.hotSpots.push(l);else{var w=u!==o?u:n.scene;if(s.scenes.hasOwnProperty(w))s.scenes[w].hasOwnProperty("hotSpots")||(s.scenes[w].hotSpots=[],w==n.scene&&(n.hotSpots=s.scenes[w].hotSpots)),s.scenes[w].hotSpots.push(l);else throw"Invalid scene ID!"}return(u===o||n.scene==u)&&(fr(l),L&&hr(l)),this},this.removeHotSpot=function(l,u){if(u===o||n.scene==u){if(!n.hotSpots)return!1;for(var w=0;w<n.hotSpots.length;w++)if(n.hotSpots[w].hasOwnProperty("id")&&n.hotSpots[w].id===l){for(var D=n.hotSpots[w].div;D.parentNode!=Y;)D=D.parentNode;return Y.removeChild(D),delete n.hotSpots[w].div,n.hotSpots.splice(w,1),!0}}else if(s.scenes.hasOwnProperty(u)){if(!s.scenes[u].hasOwnProperty("hotSpots"))return!1;for(var w=0;w<s.scenes[u].hotSpots.length;w++)if(s.scenes[u].hotSpots[w].hasOwnProperty("id")&&s.scenes[u].hotSpots[w].id===l)return s.scenes[u].hotSpots.splice(w,1),!0}else return!1},this.resize=function(){m&&ue()},this.isLoaded=function(){return L},this.isOrientationSupported=function(){return Ee||!1},this.stopOrientation=function(){Ht()},this.startOrientation=function(){Ee&&on()},this.isOrientationActive=function(){return!!j},this.on=function(l,u){return U[l]=U[l]||[],U[l].push(u),this},this.off=function(l,u){if(!l)return U={},this;if(u){var w=U[l].indexOf(u);w>=0&&U[l].splice(w,1),U[l].length==0&&delete U[l]}else delete U[l];return this};function pt(l){if(l in U)for(var u=U[l].length;u>0;u--)U[l][U[l].length-u].apply(null,[].slice.call(arguments,1))}this.destroy=function(){m&&m.destroy(),E&&($.removeEventListener("mousedown",ve,!1),$.removeEventListener("dblclick",pe,!1),t.removeEventListener("mousemove",ze,!1),t.removeEventListener("mouseup",je,!1),i.removeEventListener("mousewheel",Fe,!1),i.removeEventListener("DOMMouseScroll",Fe,!1),i.removeEventListener("mozfullscreenchange",dt,!1),i.removeEventListener("webkitfullscreenchange",dt,!1),i.removeEventListener("msfullscreenchange",dt,!1),i.removeEventListener("fullscreenchange",dt,!1),e.removeEventListener("resize",ue,!1),e.removeEventListener("orientationchange",ue,!1),i.removeEventListener("keydown",Re,!1),i.removeEventListener("keyup",Ue,!1),i.removeEventListener("blur",$e,!1),t.removeEventListener("mouseleave",je,!1),$.removeEventListener("touchstart",qe,!1),$.removeEventListener("touchmove",tt,!1),$.removeEventListener("touchend",He,!1),$.removeEventListener("pointerdown",Ye,!1),$.removeEventListener("pointermove",Ne,!1),$.removeEventListener("pointerup",Le,!1),$.removeEventListener("pointerleave",Le,!1)),i.innerHTML="",i.classList.remove("pnlm-container"),A.classList.remove("pnlm-grab"),A.classList.remove("pnlm-grabbing")}}return{viewer:function(s,d){return new r(s,d)}}}(window,document),window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){window.setTimeout(e,1e3/60)}}());var sr,lr;function Wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ba(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Ya(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $t=(lr=sr=function(e){Ya(t,e);function t(o){Wa(this,t);var r=Ba(this,e.call(this,o));return r.renderImage=function(i){var s=r.props.children,d=[].concat(s),n=[];Array.isArray(d)&&d.map(function(h){switch(h.props.type){case"info":return n.push({id:Math.random().toString(36).substr(2,9),type:h.props.type,pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,text:h.props.text?h.props.text:"",URL:h.props.URL?h.props.URL:""});case"custom":return n.push({id:Math.random().toString(36).substr(2,9),pitch:h.props.pitch?h.props.pitch:10,yaw:h.props.yaw?h.props.yaw:10,cssClass:h.props.cssClass?h.props.cssClass:"tooltipcss",createTooltipFunc:h.props.tooltip?h.props.tooltip:r.hotspotTooltip,createTooltipArgs:h.props.tooltipArg?h.props.tooltipArg:{},clickHandlerFunc:h.props.handleClick?h.props.handleClick:r.handleClickHotspot,clickHandlerArgs:h.props.handleClickArg?h.props.handleClickArg:{name:"test"}});default:return[]}});var m={type:"equirectangular",panorama:r.props.image,haov:r.props.haov,vaov:r.props.vaov,vOffset:r.props.vOffset,yaw:r.props.yaw,pitch:r.props.pitch,hfov:r.props.hfov,minHfov:r.props.minHfov,maxHfov:r.props.maxHfov,minPitch:r.props.minPitch,maxPitch:r.props.maxPitch,minYaw:r.props.minYaw,maxYaw:r.props.maxYaw,autoRotate:r.props.autoRotate,compass:r.props.compass,preview:r.props.preview,previewTitle:r.props.previewTitle,previewAuthor:r.props.previewAuthor,author:r.props.author,title:r.props.title,autoLoad:r.props.autoLoad,orientationOnByDefault:r.props.orientationOnByDefault,showZoomCtrl:r.props.showZoomCtrl,keyboardZoom:r.props.keyboardZoom,mouseZoom:r.props.mouseZoom,draggable:r.props.draggable,disableKeyboardCtrl:r.props.disableKeyboardCtrl,showFullscreenCtrl:r.props.showFullscreenCtrl,showControls:r.props.showControls,hotSpotDebug:r.props.hotspotDebug,hotSpots:n,onRender:r.props.onRender};Object.keys(m).forEach(function(h){return m[h]===""&&delete m[h]}),i==="update"&&r.panorama.destroy(),r.panorama=pannellum.viewer(r.props.id?r.props.id:r.state.id,m),r.panorama.on("load",r.props.onLoad),r.panorama.on("scenechange",r.props.onScenechange),r.panorama.on("scenechangefadedone",r.props.onScenechangefadedone),r.panorama.on("error",r.props.onError),r.panorama.on("errorcleared",r.props.onErrorcleared),r.panorama.on("mousedown",r.props.onMousedown),r.panorama.on("mouseup",r.props.onMouseup),r.panorama.on("touchstart",r.props.onTouchstart),r.panorama.on("touchend",r.props.onTouchend)},r.componentDidMount=function(){r.renderImage("mount")},r.handleClickHotspot=function(i,s){console.log("hotspot clicked",s.name)},r.hotspotTooltip=function(i,s){i.setAttribute("id","textInfo");var d=document.createElement("div");d.classList.add("hotspot");var n=document.createElement("div");n.classList.add("out");var m=document.createElement("div");m.classList.add("in");var h=document.createElement("div");h.classList.add("image"),i.appendChild(d),d.appendChild(m),d.appendChild(n)},r.getViewer=function(){return r.panorama},r.forceRender=function(){r.renderImage("update")},r.state={id:Math.random().toString(36).substr(2,9)},r}return t.prototype.componentDidUpdate=function(r,i,s){(r.image!==this.props.image||r.width!==this.props.width||r.height!==this.props.height||r.compass!==this.props.compass||r.title!==this.props.title||r.author!==this.props.author||r.preview!==this.props.preview||r.previewTitle!==this.props.previewTitle||r.previewAuthor!==this.props.previewAuthor||r.showZoomCtrl!==this.props.showZoomCtrl||r.showFullscreenCtrl!==this.props.showFullscreenCtrl||r.showControls!==this.props.showControls||r.children.length!==this.props.children.length)&&this.renderImage("update"),(r.maxYaw!==this.props.maxYaw||r.minYaw!==this.props.minYaw||r.maxPitch!==this.props.maxPitch||r.minPitch!==this.props.minPitch||r.maxHfov!==this.props.maxHfov||r.minHfov!==this.props.minHfov)&&(this.panorama.setYawBounds([this.props.minYaw,this.props.maxYaw]),this.panorama.setPitchBounds([this.props.minPitch,this.props.maxPitch]),this.panorama.setHfovBounds([this.props.minHfov,this.props.maxHfov])),r.yaw!==this.props.yaw&&this.panorama.setYaw(this.props.yaw),r.pitch!==this.props.pitch&&this.panorama.setPitch(this.props.pitch),r.hfov!==this.props.hfov&&this.panorama.setHfov(this.props.hfov)},t.prototype.render=function(){var r=this,i=this.props,s=i.width,d=i.height,n={width:s,height:d};return bn.createElement("div",{id:this.props.id?this.props.id:this.state.id,style:n,ref:function(h){return r.imageNode=h}})},t}(Yt),sr.defaultProps={children:[],width:"100%",height:"400px",image:"",haov:360,vaov:180,vOffset:0,yaw:0,pitch:0,hfov:100,minHfov:50,maxHfov:150,minPitch:-90,maxPitch:90,minYaw:-180,maxYaw:180,autoRotate:0,compass:!1,preview:"",previewTitle:"",previewAuthor:"",title:"",author:"",autoLoad:!1,orientationOnByDefault:!1,showZoomCtrl:!0,keyboardZoom:!0,mouseZoom:!0,draggable:!0,disableKeyboardCtrl:!1,showFullscreenCtrl:!0,showControls:!0,onLoad:function(){},onScenechange:function(){},onScenechangefadedone:function(){},onError:function(){},onErrorcleared:function(){},onMousedown:function(){},onMouseup:function(){},onTouchstart:function(){},onTouchend:function(){},hotspotDebug:!1,onRender:null},lr);$t.propTypes={},$t.Hotspot=function(){},$t.Hotspot=function(){};const cr=100,qt=100,Kt=50,Xa=0,Ga=0,Za=e=>{const[t,o]=be(0),[r,i]=be(!1);return he(()=>{const s=XMLHttpRequest.prototype.open,d=XMLHttpRequest.prototype.send;let n=!1;return XMLHttpRequest.prototype.open=function(m,h,C=!0,f,p){return h.toString().includes(e)&&(n=!0,i(!0)),s.call(this,m,h,C,f||null,p||null)},XMLHttpRequest.prototype.send=function(m){return n&&(this.addEventListener("progress",h=>{if(h.lengthComputable){const C=Math.round(h.loaded/h.total*100);o(C)}}),this.addEventListener("loadend",()=>{n=!1,o(100),i(!1)})),d.call(this,m)},()=>{XMLHttpRequest.prototype.open=s,XMLHttpRequest.prototype.send=d}},[e]),[t,r]};function ja(e,t=50,o=200){let r=null,i=0;return(...s)=>{const d=Date.now();r&&(clearTimeout(r),r=null),d-i>=t&&(e(...s),i=d),r=setTimeout(()=>{e(...s)},o)}}const $a=({className:e})=>c(We,{className:e,customizationKey:"UI_INTERIOR_360_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),qa=({itemIndex:e,isPannellumLoaded:t,isLoading:o,progress:r,autoloadInterior360:i,loadScene:s})=>{const{emitAnalyticsEvent:d}=Ke(),{displayedCategoryId:n,displayedCategoryName:m}=et(),h=X(f=>{d({type:"track",category_id:n,category_name:m,item_type:"interior-360",item_position:e,action_properties:{action_name:"Interior 360 Play",action_field:"interior_360_play",action_value:f}})},[d,n,m,e]),C=X(()=>{s(),h("click")},[s,h]);return he(()=>{i&&(s(),h("auto"))},[i,s,h]),t?null:c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4",children:c("div",{className:"pointer-events-auto absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(Qo,{className:"size-20"}),c(ot,{color:"neutral",shape:"icon",onClick:C,children:c($a,{className:"size-full"})}),c("div",{className:se("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",!o&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${r}%`}})})]})})},Ka=e=>{const{itemIndex:t,src:o,poster:r,onLoaded:i,onError:s}=e,{autoLoadInterior360:d}=Ke(),{isShowingDetails:n,setItemInteraction:m,zoom:h,isZooming:C,setZoom:f}=et(),[p,a]=Za(o),M=ke(null),I=ke(null),[y,_]=be(!1),k=X(()=>{t!==void 0&&m(t,"ready"),i?.(),_(!0)},[t,m,i]),L=X(E=>{E instanceof MouseEvent&&E.button!==0||(E.preventDefault(),E.stopPropagation(),E.stopImmediatePropagation())},[]),v=X(()=>{const E=M.current?.getViewer();E&&E.loadScene()},[]);return he(()=>{if(M.current&&y&&I.current){const E=M.current.getViewer(),S=I.current;if(E){const Z=F=>{F.preventDefault();const q=Bo(E.getHfov(),Kt,qt,wt,Lt),W=(F.deltaY<0?"zoom-in":"zoom-out")==="zoom-in"?Math.min(q+Lt,wt):Math.max(q-Lt,1);f(W)},T=ja(Z,100,150),G=F=>{F.preventDefault();const q=Bo(E.getHfov(),Kt,qt,wt,Lt,!0);f(q)};S.addEventListener("wheel",T),S.addEventListener("dblclick",G);const j=Math.abs(1-Math.abs(h)),O=qt-Kt,ee=cr-j*O;return E.setHfov(ee),()=>{S.removeEventListener("wheel",Z),S.removeEventListener("dblclick",G)}}}},[h,y,C,f]),c(Xe,{children:c("div",{className:se("relative aspect-[4/3] w-full overflow-hidden bg-transparent"),children:c("div",{className:se("size-full",n?"scale-105":"scale-100"),children:[c("div",{ref:I,children:[c("style",{children:`
|
|
7
7
|
.pnlm-load-button {
|
|
8
8
|
display: none !important;
|
|
9
9
|
}
|
|
@@ -24,4 +24,4 @@
|
|
|
24
24
|
display: none;
|
|
25
25
|
visibility: hidden;
|
|
26
26
|
}
|
|
27
|
-
`}),C.current&&c($t,{ref:M,id:C.current,panorama:r,preview:o,width:"0",height:"0",image:r,pitch:Ha,yaw:Fa,hfov:lo,maxHfov:qt,minHfov:Kt,compass:!1,showControls:!1,keyboardZoom:!1,onLoad:E,onError:l,onMousedown:y,onTouchstart:y,onTouchend:y,onMouseup:y,autoLoad:!1})]}),c(Ba,{isPannellumLoaded:L,isLoading:a,progress:p,autoloadInterior360:f,loadScene:v})]})})})},Xa=e=>{const{itemIndex:t}=e,{setItemInteraction:r}=nt(),[o,s]=Ce();return ge(()=>{o===null||o==="error"||r(t,o==="spin"?"running":"ready")},[t,r,o]),o==="error"?c(Mn,{className:"text-background",text:"Interior Spin could not be loaded"}):c(Ya,{...e,onLoaded:()=>s("spin"),onError:()=>s("error")})},Za=({className:e})=>c(Ze,{className:e,customizationKey:"UI_360_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Ga=750,ja=1250,$a=360,qa=480,Ka=({images:e,onlyPreload:t})=>{const{demoSpin:r,reverse360:o}=tt(),{isShowingDetails:s,isZooming:l}=nt(),f=l||s,n=Ie(null),m=Ie(null),h=Ie(r),k=Ie(null),d=q(()=>{k.current&&(clearTimeout(k.current),k.current=null)},[]),p=Ie(null),a=()=>{p.current&&(cancelAnimationFrame(p.current),p.current=null)},[M,C]=Ce(0),L=e.length,_=q(()=>{C(y=>(y-1+L)%L)},[L]),E=q(()=>{C(y=>(y+1)%L)},[L]);return ge(()=>{if(f){d();return}const y=n.current,v=m.current;if(!y||!v)return;h.current&&(h.current=!1,k.current=setTimeout(()=>{const G=Date.now(),Z=()=>{const le=()=>{const Me=(Date.now()-G)/ja,be=Math.round((Je=>Je*(2-Je))(Me)*L),Ge=st(be%L,0,L-1);C(Ge),!(be>=L)&&Z()};p.current=requestAnimationFrame(le)};Z()},Ga));const I=$a/L;let S=null,V=[];const T=G=>{V.push(G),V.length>20&&V.shift()},j=()=>{const G=(()=>{const $=Date.now(),be=V.filter(Be=>$-Be.timestamp<50);if(be.length<2)return 0;const Ge=be[0],Je=be[be.length-1];return(Je.value-Ge.value)/(.001*Math.max(Je.timestamp-Ge.timestamp,1))})(),Z=Date.now();let le=0,P=Z;const Me=()=>{const $=()=>{const be=Date.now(),Ge=(be-Z)/1e3,Je=Math.pow(.05,Ge),Be=G*Je,g=(be-P)/1e3;if(le+=Be*g,Math.abs(Be)<5*I&&Math.abs(le)<I){p.current=null;return}Math.abs(le)>=I&&(le>0!==o?E():_(),le=0),P=be,Me()};p.current=requestAnimationFrame($)};Me()},O=()=>{d(),a()},H=G=>{if(G.button!==0)return;G.preventDefault(),G.stopPropagation(),O();const Z=G.clientX;S=Z,V=[{timestamp:Date.now(),value:Z}]},z=G=>{if(S===null)return;G.stopPropagation();const{clientX:Z}=G;T({timestamp:Date.now(),value:Z});const le=Z-S;Math.abs(le)<I||(le>0!==o?E():_(),S=Z)},U=()=>{S!==null&&(S=null,j())};y.addEventListener("mousedown",H),document.addEventListener("mousemove",z),document.addEventListener("mouseleave",U),document.addEventListener("mouseup",U),document.addEventListener("contextmenu",U);const K=qa/L,ce=()=>v.getBoundingClientRect().width,A=()=>v.scrollWidth/2-ce()/2,Y=()=>{const G=A();v.scrollLeft=G};Y();const te=()=>{const G=v.scrollLeft-A();Math.abs(G)<K||(G<0!==o?E():_(),Y())};v.addEventListener("scroll",te);let F=null;const J=G=>{if(F!==null||G.changedTouches.length!==1)return;O();const{identifier:Z,clientX:le}=G.changedTouches[0];F=Z,S=le,V=[{timestamp:Date.now(),value:le}]},_e=G=>{if(!S)return;const Z=Array.from(G.changedTouches).find(({identifier:Me})=>Me===F);if(!Z)return;G.preventDefault();const{clientX:le}=Z;T({timestamp:Date.now(),value:le});const P=le-S;Math.abs(P)<I||(P>0!==o?E():_(),S=le)},X=G=>{!S||!Array.from(G.changedTouches).some(({identifier:le})=>le===F)||(F=null,S=null,j())};return v.addEventListener("touchstart",J),v.addEventListener("touchmove",_e),v.addEventListener("touchend",X),v.addEventListener("touchcancel",X),()=>{y.removeEventListener("mousedown",H),document.removeEventListener("mousemove",z),document.removeEventListener("mouseleave",U),document.removeEventListener("mouseup",U),document.removeEventListener("contextmenu",U),v.removeEventListener("scroll",te),v.removeEventListener("touchstart",J),v.removeEventListener("touchmove",_e),v.removeEventListener("touchend",X),v.removeEventListener("touchcancel",X)}},[d,E,_,f,o,L]),c("div",{ref:n,className:"cursor-ew-resize",children:c("div",{ref:m,className:" overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:[e.map(y=>c(mt,{src:y.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},y.src)),c(ao,{...e[M],onlyPreload:t})]}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},Ja=({images:e,onPlaceholderImageLoaded:t,onSpinImagesLoaded:r,onError:o})=>{const{autoLoad360:s}=tt(),l=$e(()=>e.map(({src:d})=>d),[e]),[f,n]=Ce(null),m=f?[...f.values()].filter(d=>d).length/e.length*100:null,h=q(()=>{m===null&&n(new Map(l.map(d=>[d,!1])))},[l,m]),k=q(d=>{n(p=>{const a=new Map(p);return a.set(d,!0),a})},[]);return ge(()=>{s&&h()},[s,h]),ge(()=>{m===100&&r()},[m,r]),c("div",{className:"relative aspect-[4/3] w-full",children:[m!==null&&m!==100&&c("div",{className:"hidden",children:l.map(d=>c(mt,{src:d,onLoad:()=>k(d),onError:o},d))}),c(mt,{className:"size-full",src:l[0],onLoad:t}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(eo,{className:"size-20"}),c(rt,{color:"neutral",shape:"icon",onClick:h,children:c(Za,{className:"size-full"})}),c("div",{className:se("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",m===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${m??0}%`}})})]})]})},Qa=e=>{const{itemIndex:t}=e,{setItemInteraction:r}=nt(),[o,s]=Ce();return ge(()=>{o===null||o==="error"||r(t,o==="spin"?"running":"ready")},[t,r,o]),o==="error"?c(Mn,{className:"text-background",text:"Spin could not be loaded"}):o!=="spin"?c(Ja,{...e,onPlaceholderImageLoaded:()=>s(l=>l===null?"placeholder":l),onSpinImagesLoaded:()=>s("spin"),onError:()=>s("error")}):c(Ka,{...e})},ei=e=>c(rt,{color:"neutral",shape:"icon",...e,children:c(Qr,{className:"size-full"})}),ti=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PAUSE",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),ni=({className:e})=>c(Ze,{className:e,customizationKey:"UI_VOLUME",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),ri=({className:e})=>c(Ze,{className:e,customizationKey:"UI_VOLUME_OFF",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),co=({progress:e})=>c("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:c("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),oi=3e3,ai=({src:e,poster:t,itemIndex:r})=>{const{carrouselItemIndex:o,setItemInteraction:s}=nt(),l=Ie(null),f=Ie(null),n=q(()=>{if(!f.current)throw new Error("videoRef.current is null");return f.current},[]);ge(()=>{s(r,"ready")},[r,s]);const m=q(()=>{n().play()},[n]),h=q(()=>{n().pause()},[n]);ge(()=>{o===r||h()},[o,r,h]);const[k,d]=Ce(!1),[p,a]=Ce(!0),M=()=>{d(!0),s(r,"running")},C=()=>{d(!1),s(r,"ready")},L=()=>{a(!1)},_=()=>{a(!0)},[E,y]=Ce(null),v=A=>{const Y=n(),te=A.currentTarget.getBoundingClientRect(),J=(A.clientX-te.left)/te.width,_e=Math.min(1,Math.max(0,J));Y.volume=_e,Y.muted=!1},I=A=>{const Y=n();Y.muted=A};ge(()=>{const A=f.current;if(!A)return;const Y=()=>{y({volume:A.volume,isMuted:A.muted})};return Y(),A.addEventListener("volumechange",Y),()=>{A.removeEventListener("volumechange",Y)}},[]);const[S,V]=Ce(null),T=S?S.currentTime/S.duration:0;ge(()=>{const A=f.current;if(!A)return;const Y=()=>{const te=A.currentTime,F=A.duration;isNaN(te)||isNaN(F)||V({currentTime:te,duration:F})};return Y(),A.addEventListener("timeupdate",Y),()=>{A.removeEventListener("timeupdate",Y)}},[]);const j=A=>{const Y=n(),te=A.currentTarget.getBoundingClientRect(),J=(A.clientX-te.left)/te.width,_e=Y.duration*J;Y.currentTime=_e},O=A=>{const Y=Math.floor(A%3600/60),te=Math.floor(A%60);return`${Y}:${te.toString().padStart(2,"0")}`},[H,z]=Ce(!1),U=Ie(void 0),K=q(()=>clearTimeout(U.current),[]),ce=q(()=>{K(),U.current=setTimeout(()=>{z(!1)},oi)},[K]);return ge(()=>{const A=l.current,Y=f.current;if(!A||!Y)return;const te=()=>{ce(),z(!0)},F=()=>{K(),z(!1)};let J=!1;const _e=()=>{J=!0},X=()=>{J&&(J=!1,h())},G=()=>{J=!1,te()},Z=le=>{le.preventDefault(),le.touches.length===1&&(ce(),z(Me=>!Me))};return A.addEventListener("mousedown",_e),A.addEventListener("mouseup",X),A.addEventListener("mouseenter",te),A.addEventListener("mousemove",G),A.addEventListener("mouseleave",F),Y.addEventListener("touchstart",Z),()=>{A.removeEventListener("mousedown",_e),A.removeEventListener("mouseup",X),A.removeEventListener("mouseenter",te),A.removeEventListener("mousemove",te),A.removeEventListener("mouseleave",F),Y.removeEventListener("touchstart",Z)}},[K,h,ce]),c("div",{ref:l,className:"relative aspect-[4/3] w-full",children:[c("video",{ref:f,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:M,onPause:C,onEnded:C,onCanPlay:L,onWaiting:_}),k?c(Xe,{children:[c("div",{className:se("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",H?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:A=>A.stopPropagation(),children:[c("div",{className:"flex items-center justify-between text-background",children:[c("div",{className:"flex items-center gap-x-4",children:[c(rt,{shape:"icon",variant:"ghost",color:"neutral",onClick:h,children:c(ti,{className:"size-full"})}),S&&c("span",{className:"text-sm",children:[O(S.currentTime)," /"," ",O(S.duration)]})]}),E&&c("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[c("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${E.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:v,children:c(co,{progress:E.volume})}),c("div",{className:"size-5 cursor-pointer",onClick:()=>I(!E.isMuted),children:E.isMuted?c(ri,{className:"size-full"}):c(ni,{className:"size-full"})})]})]}),c("div",{className:"cursor-pointer py-1",onClick:j,children:c(co,{progress:T})})]}),p&&c("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(qr,{size:"lg",color:"background"})})]}):c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(ei,{onClick:m})})]})},ii=({index:e,item:t,isShown:r})=>{const{type:o}=t;let s;switch(o){case"image":s=c(ao,{itemIndex:e,onlyPreload:!r,...t});break;case"video":s=c(ai,{itemIndex:e,...t});break;case"360":s=c(Qa,{itemIndex:e,onlyPreload:!r,...t});break;case"interior-360":s=c(Xa,{itemIndex:e,onlyPreload:!r,...t});break;case"custom":s=c(Pa,{itemIndex:e,...t})}return s=c("div",{className:"grid grid-cols-[repeat(var(--max-items),1fr)]",children:s}),s},si=e=>{ge(()=>{const t=r=>{r.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function li(e){return e.target===e.currentTarget}const ci=({className:e,children:t,isVisible:r,url:o,title:s,description:l,clickHandler:f,extendMode:n,variant:m,aspectRatioStyle:h,maxItemsShown:k=1})=>{const{isFullScreen:d,integration:p}=tt(),M=m||(!p||d?"centered":"aside");return M==="centered"?c("div",{className:se(e,"absolute inset-0 z-overlay flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:f,children:c("div",{className:se("flex h-full max-w-[60%] flex-col bg-background transition-transform duration-details",r?"translate-x-0":"translate-x-full"),children:[t,r&&c(Xe,{children:[c(mt,{className:"max-h-[50%] w-full bg-foreground/65 object-contain",src:o||"",style:h,imgInPlayerWidthRatio:.6}),c("div",{className:se("flex-1 space-y-1 overflow-y-auto px-2 py-1 small:p-3",n&&"large:p-4"),children:[s&&c("span",{className:se("text-sm font-semibold small:text-base small:font-bold",n&&"large:text-lg"),children:s}),l&&c("p",{className:se("text-xs text-foreground/65 small:text-sm",n&&"large:text-base"),children:l})]})]})]})}):M==="aside"?c("div",{className:se(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:f,children:c("div",{className:se("relative flex h-full flex-col bg-background transition-transform duration-details",r?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(d?1:k)}%`:`${100/k}%`},children:[t,r&&c(Xe,{children:[c(mt,{className:"min-h-0 w-full flex-1 bg-foreground/65 object-contain",src:o||"",style:h,imgInPlayerWidthRatio:.6}),c("div",{className:"min-h-[15%] shrink-0 space-y-1 p-2 small:p-3",children:[s&&c("span",{className:se("block text-xs font-semibold leading-tight small:text-base small:font-bold",n&&"large:text-lg"),children:s}),l&&c("p",{className:se("text-[10px] leading-tight text-foreground/65 small:text-sm",n&&"large:text-base"),children:l})]})]})]})}):c("div",{className:se(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",r?"opacity-100":"pointer-events-none opacity-0"),onClick:f,children:c("div",{className:se("relative flex aspect-[4/3] flex-col bg-background transition-transform duration-details",r?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(d?1:k)}%`:`${100/k}%`},children:[t,r&&o&&c(Xe,{children:[c(mt,{className:"h-[85%] w-full bg-foreground/65 object-contain",src:o,imgInPlayerWidthRatio:.6}),c("div",{className:"h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3",children:[s&&c("span",{className:se("text-sm font-semibold small:text-base small:font-bold",n&&"large:text-lg"),children:s}),l&&c("p",{className:se("text-xs text-foreground/65 small:text-sm",n&&"large:text-base"),children:l})]})]})]})})},ui=({currentIndex:e,maxIndex:t})=>c("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[c("span",{children:e+1}),c("span",{children:"/"}),c("span",{children:t+1})]}),uo=({className:e})=>c(Ze,{className:e,customizationKey:"UI_ARROW_RIGHT",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),di=({className:e})=>c(Ze,{className:e,customizationKey:"UI_EXTEND",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),fi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_GALLERY",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),pi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_HOTSPOTS",children:c("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_418_982)",children:c("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),c("defs",{children:c("clipPath",{id:"clip0_418_982",children:c("rect",{width:"12",height:"12",fill:"white"})})})]})}),hi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_MINUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),mi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_PLUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),gi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_REDUCE",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),vi=({enabled:e,onToggle:t,label:r,className:o,children:s})=>c("label",{className:se("flex cursor-pointer items-center justify-center gap-x-2",o),children:[c("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),r&&c("div",{className:"text-xs text-background",children:r}),c("div",{className:se("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:c("div",{className:se("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:s})})]}),wi=({className:e})=>c(Ze,{className:e,customizationKey:"UI_BURGER",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),_i=({sharedClassName:e})=>{const{categories:t}=ht(),{displayedCategoryId:r,changeCategory:o}=nt(),[s,l]=Ce(!1),f=()=>{l(!s)},n=()=>{l(!1)};return c(Xe,{children:[s&&c("div",{className:se(e,"inset-0 small:hidden"),onClick:n}),c("div",{className:se(e,It("top-left"),"flex gap-x-2 small:hidden"),children:[c(rt,{shape:"icon",color:s?"primary":"neutral",onClick:f,children:c(wi,{})}),s&&c("div",{className:"rounded-ui-md bg-background transition-radius",children:c("ul",{className:"space-y-0.5 p-1",children:t.map(({id:m,title:h})=>c("li",{className:se("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",m===r&&"bg-primary/50"),onClick:()=>{o(m),l(!1)},children:h},m))})})]}),c("div",{className:se(e,$r("top"),"w-full overflow-x-auto max-small:hidden"),children:c("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:m,title:h})=>c(rt,{variant:m===r?"fill":"ghost",onClick:()=>o(m),children:h},m))})})]})},bi=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:r,extendBehavior:o,maxItemsShown:s,isFullScreen:l,integration:f}=tt(),{aspectRatioStyle:n,categories:{length:m}}=ht(),{items:{length:h},slidable:k,carrouselItemIndex:d,masterItemIndex:p,prevItem:a,nextItem:M,showGalleryControls:C,enableHotspotsControl:L,currentItemHotspotsVisible:_,toggleHotspots:E,showGallery:y,toggleGallery:v,extendMode:I,toggleExtendMode:S,shownDetails:V,isShowingDetails:T,resetShownDetails:j,showZoomControls:O,isZooming:H,canZoomIn:z,zoomIn:U,canZoomOut:K,zoomOut:ce,resetView:A}=nt(),Y=q(_e=>{li(_e)&&j()},[j]);si(j);const te="absolute z-overlay",F=()=>{if(s===1)return d;const X=Math.floor(s)-1;return d+X},J=()=>{if(!f)return p;const X=Math.floor(s)-1;return p+X};return c(Xe,{children:[!e&&m>1&&c(_i,{sharedClassName:se(te,"transition-opacity",H?"!pointer-events-none opacity-0":"opacity-100")}),k&&!H&&c("div",{className:se(te,It("top-right")),children:c(ui,{currentIndex:!f||l?d:F(),maxIndex:h-1})}),k&&c(Xe,{children:[c(rt,{shape:"icon",color:"neutral",className:se(te,It("middle-left"),H?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&p<=0,children:c(Ze,{customizationKey:"CONTROLS_PREV",children:c(uo,{className:"size-full -scale-x-100"})})}),c(rt,{shape:"icon",color:"neutral",className:se(te,It("middle-right"),H?"!pointer-events-none opacity-0":"opacity-100"),onClick:M,disabled:!t&&J()>=h-1,children:c(Ze,{customizationKey:"CONTROLS_NEXT",children:c(uo,{className:"size-full"})})})]}),c("div",{className:se(te,It("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!r&&k&&c(Xe,{children:[c(rt,{className:C&&!H?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:y?"primary":"neutral",shape:"icon",onClick:v,children:c(fi,{className:"size-full"})}),y&&c(no,{className:se("transition-opacity",C&&!H?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),c("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[L&&c(vi,{className:se("transition-opacity",H?"!pointer-events-none opacity-0":"opacity-100"),enabled:_,onToggle:E,children:c(pi,{className:"size-full"})}),O&&(!f||l)&&c("div",{className:"max-small:hidden",children:[c(rt,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!z,onClick:U,children:c(mi,{className:"size-full"})}),c(to,{color:"background"}),c(rt,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!K,onClick:ce,children:c(hi,{className:"size-full"})})]}),o!=="none"&&c(rt,{variant:"fill",color:I?"primary":"neutral",shape:"icon",onClick:S,children:I?c(gi,{className:"size-full"}):c(di,{className:"size-full"})})]})]}),c(ci,{isVisible:T,className:te,url:V?.src,title:V?.title,description:V?.text,clickHandler:Y,extendMode:I,maxItemsShown:s,aspectRatioStyle:n,children:c(Cn,{className:"absolute right-2 top-2 z-10",onClick:j})}),H&&c(Cn,{className:se(te,It("top-right")),onClick:A})]})},xi=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:r,isFullScreen:o,maxItemsShown:s,integration:l}=tt(),{aspectRatioStyle:f}=ht(),{items:n,slidable:m,carrouselItemIndex:h,setCarrouselItemIndex:k,itemIndexCommand:d,setItemIndexCommand:p,specialCommand:a,isRunningSpecialCommand:M,finishSpecialCommand:C,extendMode:L,extendTransition:_}=nt(),{effectiveMaxItemsShown:E}=Vr(),y=Ie(null),v=q(F=>{if(!y.current)throw new Error(`[${F??"sliderOrThrow"}] slider.current is null`);return y.current},[]),I=Ie(!1),S=Ie(null),V=Ie(null),T=Ie(null),j=q(()=>{T.current&&cancelAnimationFrame(T.current)},[]),O=q(()=>{const F=v("computeClosestSnapIndex"),J=Array.from(F.children),_e=F.scrollLeft;let X=0,G=1/0;if(J.forEach((Z,le)=>{const P=Z.offsetLeft,Me=Math.abs(P-_e);Me<G&&(G=Me,X=le)}),E>1){const Z=Math.ceil(E),le=n.length+(l&&!t&&E%1!==0?1:0),P=Math.max(0,le-Z);if(X=Math.min(X,P),l&&!t&&E%1!==0){const Me=n.length-1;X=Math.min(X,Me)}}return X},[v,E,n.length,t,l]),H=q(F=>{const J=v("setStyleCursor");J.style.cursor=F},[v]),z=q(F=>{const J=v("setStyleSnapState");F==="mandatory"?J.style.scrollSnapType="x mandatory":J.style.scrollSnapType="none"},[v]),U=q((F,J,_e)=>{j();const X=v("scrollToIndex"),G=Array.from(X.children),Z=X.scrollLeft;let le=G[F].offsetLeft;const P=X.clientWidth,Me=X.scrollWidth-P;if(E>1){const b=Math.ceil(E),ue=n.length+(l&&!t&&E%1!==0?1:0);F>=ue-b&&(le=Math.min(le,Me))}const $=b=>{X.scrollTo({left:b,behavior:"instant"})},be=()=>{$(le),z("mandatory"),_e?.()},Ge=Math.abs(Z-le);if(Ge<1||J==="instant"){be();return}const Je=st(Ge/2.5,300,1e3),Be=new Date().getTime();z("none");const g=()=>{const b=()=>{const oe=new Date().getTime()-Be;if(oe>=Je){be();return}const Q=Math.min(oe/Je,1),x=ro(Q),ne=Gt(Z,le,x);$(ne),g()};T.current=requestAnimationFrame(b)};g()},[j,v,z,E,n.length,t,l]),[K,ce]=Ce(),A=!!K;ge(()=>{const F=()=>{clearTimeout(K);const J=setTimeout(()=>{ce(void 0)},Ur);ce(J)};return addEventListener("resize",F),document.addEventListener("fullscreenchange",F),()=>{removeEventListener("resize",F),document.removeEventListener("fullscreenchange",F)}},[K]),ge(()=>{if(a)return;const F=O();Number.isNaN(F)||F!==h&&U(h,"instant")},[h,O,U,a,n,K,o,L,_]),ge(()=>{if(!m||M){H("auto");return}const F=y.current;if(!F)return;H("grab"),z("mandatory");const J=G=>{G.button===0&&(G.preventDefault(),G.stopPropagation(),j(),I.current=!0,S.current=G.pageX-F.offsetLeft,V.current=F.scrollLeft,H("grabbing"))},_e=G=>{if(!I.current)return;if(S.current===null)throw new Error("[onMouseMove] startX is null");z("none");const le=G.pageX-F.offsetLeft-S.current;requestAnimationFrame(()=>{if(V.current===null)throw new Error("[onMouseMove] scrollLeft is null");let P=V.current-le;if(!t){const Me=F.scrollWidth-F.clientWidth;P>Me&&(P=Me)}F.scrollLeft=P})},X=()=>{if(!I.current)return;I.current=!1,H("grab");const G=O();U(G,"smooth")};return F.addEventListener("mousedown",J),document.addEventListener("mousemove",_e),document.addEventListener("mouseleave",X),document.addEventListener("mouseup",X),document.addEventListener("contextmenu",X),()=>{F.removeEventListener("mousedown",J),document.removeEventListener("mousemove",_e),document.removeEventListener("mouseleave",X),document.removeEventListener("mouseup",X),document.removeEventListener("contextmenu",X)}},[j,O,t,M,U,H,z,m]),ge(()=>{if(_||A)return;const F=y.current;if(!F)return;const J=()=>{const _e=O();Number.isNaN(_e)||(k(_e),_e===d&&p(null))};return F.addEventListener("scroll",J),()=>{F.removeEventListener("scroll",J)}},[O,_,A,d,s,k,p]),ge(()=>{if(d===null)return;const F=()=>{setTimeout(()=>{p(null),C()},75)};switch(a){case"first_to_last":{const J=Math.ceil(E),_e=n.length+(l&&!t&&E%1!==0?1:0),X=E>1?Math.max(0,_e-J):n.length-1;U(X,"instant",F);break}case"last_to_first":U(0,"instant",F);break;case"instant":U(d,"instant",F);break;default:U(d,"smooth");break}},[a,C,d,n.length,U,p,E,t,l]);const Y=$e(()=>!l||o?f:{aspectRatio:"auto"},[l,o,f]),te=$e(()=>({...f,minWidth:`${100/E}%`,width:`${100/E}%`,flexShrink:0}),[f,E]);return c("div",{className:se("relative overflow-hidden rounded-carrousel transition-radius",e),style:Y,children:[c("div",{ref:y,className:`flex size-full ${m?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[n.map((F,J)=>{const _e=J===h,X=J===0,G=J===n.length-1,Z=(()=>{const be=Math.ceil(E);if(a==="first_to_last"&&X)return{transform:`translateX(${100*n.length/be}%)`};if(a==="last_to_first"&&G)return{transform:`translateX(-${100*n.length/be}%)`}})(),le=Math.ceil(E),P=Math.max(r,le);let Me=Math.abs(J-h)<=P;Me||=J===d,Me||=J>=h&&J<h+le,t&&(Me||=h<P&&n.length-J<=P-h,Me||=h>=n.length-P&&J<=P-(n.length-h));const $=(()=>{let be;switch(F.type){case"360":be=F.images[0].src;break;case"interior-360":be=F.poster??"interior-360";break;case"image":be=F.src;break;case"video":be=F.poster??"video";break;case"custom":be="custom";break;default:be="unknown"}return`${J}_${be}`})();return c("div",{className:se("h-full bg-foreground/35",h===J&&"z-1"),style:{...te,...Z},children:Me&&c(ii,{index:J,item:F,isShown:_e})},$)}),l&&!t&&!o&&s%1!==0&&c("div",{className:"h-full",style:te},"empty-slide")]}),c(bi,{})]})},yi=()=>{const{permanentGallery:e,integration:t}=tt(),{aspectRatioStyle:r}=ht(),{prevItem:o,nextItem:s,isShowingDetails:l,resetShownDetails:f,extendMode:n,disableExtendMode:m,isZooming:h,resetZoom:k,fakeFullScreen:d}=nt(),p=Ie(null),a=Ie(null),M=Ie(null);return ge(()=>{if(!n)return;const C=p.current,L=a.current,_=M.current;if(!C||!L||!_)return;let E=!1;const y=S=>[C,L,_].includes(S.target),v=S=>{E=y(S)},I=S=>{E&&(y(S)&&m(),E=!1)};return C.addEventListener("mousedown",v),C.addEventListener("mouseup",I),()=>{C.removeEventListener("mousedown",v),C.removeEventListener("mouseup",I)}},[m,n]),ge(()=>{const C=L=>{L.key==="Escape"&&(h?k():l?f():m())};return addEventListener("keydown",C),()=>{removeEventListener("keydown",C)}},[m,l,h,s,o,f,k]),c("div",{ref:p,className:se("relative",n&&"flex size-full items-center justify-center",d&&"fixed inset-0 z-overlay bg-foreground/75"),children:[c("div",{ref:a,className:n?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[c("div",{ref:M,className:se(n&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t?{}:r,children:c(xi,{className:se(n&&"h-full min-w-0")})}),e&&c(no,{className:se(n&&"my-2 shrink-0 small:my-4")})]}),n&&c(Cn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:m})]})},Ei=()=>{const{emitEvent:e,compositionUrl:t}=tt(),{data:r,status:o,isSuccess:s,error:l}=ua(t);return ge(()=>{l?e(Dn,l):o==="fetching"?e(Rn,t):s&&e(An,r)},[r,t,e,l,s,o]),l?c(Mn,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):s?c(fa,{composition:r,children:c(ma,{children:c(yi,{})})}):c("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[c("div",{className:"animate-pulse text-xl",children:"Loading Player"}),c(qr,{color:"foreground"})]})},Ci={hideCategoriesNav:!0,infiniteCarrousel:!1,permanentGallery:!1},Mi=[1,1.5,2,2.5],ki=({compositionUrl:e,integration:t=!1,maxItemsShown:r=1,hideCategoriesNav:o=!1,infiniteCarrousel:s=!1,permanentGallery:l=!1,mediaLoadStrategy:f=_o,minMediaWidth:n=0,maxMediaWidth:m=1/0,preloadRange:h=1,autoLoad360:k=!1,autoLoadInterior360:d=!1,categoriesFilter:p=bo,extendBehavior:a=xo,eventPrefix:M=Vn,demoSpin:C=!1,reverse360:L=!1,children:_})=>{r=pa(r,Mi);const E=Ie(null),[y,v]=Ce(.5),[I,S]=Ce(!1),V=q((O,H)=>{const z=M+O,U=new CustomEvent(z,{detail:H});document.dispatchEvent(U)},[M]);ge(()=>{if(I){v(1);return}if(!E.current)return;const O=E.current,H=()=>{const z=window.innerWidth,U=O.clientWidth;v(U/z)};return H(),addEventListener("resize",H),()=>{removeEventListener("resize",H)}},[I]),ge(()=>{if(a!=="full_screen")return;const O=E.current;if(!O)throw new Error("Wrapper not found");const H=()=>{const{fullscreenElement:z}=document;S(z===O||z?.localName===lt)};return document.addEventListener("fullscreenchange",H),()=>{document.removeEventListener("fullscreenchange",H)}},[a]);const T=q(async()=>{const O=E.current;if(!O)throw new Error("Wrapper not found");try{return await O.requestFullscreen(),!0}catch{return!1}},[]),j=q(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return c(da,{compositionUrl:e,integration:t,hideCategoriesNav:o,infiniteCarrousel:s,permanentGallery:l,maxItemsShown:r,mediaLoadStrategy:f,minMediaWidth:n,maxMediaWidth:m,preloadRange:h,categoriesFilter:p,autoLoad360:k,autoLoadInterior360:d,extendBehavior:a,demoSpin:C,reverse360:L,emitEvent:V,playerInViewportWidthRatio:y,isFullScreen:I,requestFullscreen:T,exitFullscreen:j,...t?Ci:{},children:c(ha,{children:[c("div",{ref:E,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 16px)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)"},children:c(Ei,{})}),_]})})},Li=({children:e,index:t,thumbnailSrc:r})=>{const{registerCustomMedia:o,unregisterCustomMedia:s}=Ot();return ge(()=>{if(!e)return;const l=o({Media:e,index:t,thumbnailSrc:r});return()=>{s(l)}},[e,s,t,o,r]),null},Ii=e=>En()?c(Li,{...e}):c("slot",{}),Ti=({name:e,children:t})=>{const{registerIconConfig:r,unregisterIconConfig:o}=Ot();return ge(()=>{if(t)return r(e,{Icon:t}),()=>{o(e)}},[t,e,r,o]),null},Si=e=>En()?c(Ti,{...e}):c("slot",{}),Pi=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:4px;right:4px}.inset-y-1{top:4px;bottom:4px}.-bottom-1{bottom:-4px}.-left-1{left:-4px}.-right-1{right:-4px}.-top-1{top:-4px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-2{top:8px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-10,.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:4px;margin-right:4px}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:8px;margin-bottom:8px}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.size-1{width:4px;height:4px}.size-12{width:48px;height:48px}.size-20{width:80px;height:80px}.size-4{width:16px;height:16px}.size-5{width:20px;height:20px}.size-8{width:32px;height:32px}.size-full{width:100%;height:100%}.h-1{height:4px}.h-10{height:40px}.h-20{height:80px}.h-3\\/4{height:75%}.h-5{height:20px}.h-8{height:32px}.h-\\[15\\%\\]{height:15%}.h-\\[85\\%\\]{height:85%}.h-full{height:100%}.h-px{height:1px}.max-h-\\[50\\%\\]{max-height:50%}.min-h-0{min-height:0}.min-h-\\[15\\%\\]{min-height:15%}.w-12{width:48px}.w-3\\/5{width:60%}.w-8{width:32px}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.max-w-40{max-width:160px}.max-w-\\[1600px\\]{max-width:1600px}.max-w-\\[60\\%\\]{max-width:60%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: 6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.grid-cols-\\[repeat\\(var\\(--max-items\\)\\,1fr\\)\\]{grid-template-columns:repeat(var(--max-items),1fr)}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-x-1{-moz-column-gap:4px;column-gap:4px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.gap-x-4{-moz-column-gap:16px;column-gap:16px}.gap-y-1{row-gap:4px}.gap-y-2{row-gap:8px}.gap-y-4{row-gap:16px}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + 2px)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - 2px)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-4{padding-right:16px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-\\[10px\\]{font-size:10px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:8px;right:8px}.small\\:inset-y-2{top:8px;bottom:8px}.small\\:bottom-2{bottom:8px}.small\\:left-2{left:8px}.small\\:right-2{right:8px}.small\\:right-4{right:16px}.small\\:top-2{top:8px}.small\\:top-4{top:16px}.small\\:my-4{margin-top:16px;margin-bottom:16px}.small\\:hidden{display:none}.small\\:h-12{height:48px}.small\\:h-28{height:112px}.small\\:max-w-48{max-width:192px}.small\\:gap-2{gap:8px}.small\\:gap-x-2{-moz-column-gap:8px;column-gap:8px}.small\\:gap-y-2{row-gap:8px}.small\\:gap-y-4{row-gap:16px}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:12px}.small\\:px-2{padding-left:8px;padding-right:8px}.small\\:py-1{padding-top:4px;padding-bottom:4px}.small\\:pl-8{padding-left:32px}.small\\:pr-6{padding-right:24px}.small\\:text-base{font-size:16px;line-height:24px}.small\\:text-sm{font-size:14px;line-height:20px}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:80px}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:224px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-base{font-size:16px;line-height:24px}.large\\:text-lg{font-size:18px;line-height:28px}}.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,Nimbus Sans L,Liberation Sans,Arial,sans-serif;background:#f4f4f4 url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='67'%20height='100'%20viewBox='0%200%2067%20100'%3e%3cpath%20stroke='%23ccc'%20fill='none'%20d='M33.5,50,0,63,33.5,75,67,63,33.5,50m-33.5-50,67,25m-0.5,0,0,75m-66.5-75,67-25m-33.5,75,0,25m0-100,0,50'/%3e%3c/svg%3e") repeat;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content;touch-action:none}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-sprite{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26'%20height='208'%3e%3ccircle%20fill-opacity='.78'%20cy='117'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20fill-opacity='.78'%20cy='143'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20cy='169'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cy='195'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cx='13'%20cy='195'%20r='2.5'/%3e%3cpath%20d='m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z'/%3e%3cpath%20d='m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m17%2038v2h-8v-2z'/%3e%3cpath%20d='m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z'/%3e%3cpath%20d='m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z'/%3e%3cpath%20d='m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z'/%3e%3c/svg%3e")}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:#0006;border-radius:3px;cursor:pointer;z-index:2;transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:#0000001a;border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:#ffffff80;border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:#000000b3;border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{0%{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:#000c}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px;background:#000000b3;border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:#fff3}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:#000000b3;color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:"";position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='50'%20width='50'%3e%3cpath%20d='m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z'/%3e%3c/svg%3e");cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;transform-origin:0 0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer}#textInfo .tooltip-content{font-size:1.6em;position:absolute;left:-70px;bottom:80px;width:200px;pointer-events:none;background-color:#333;color:#fff;line-height:1.2em;padding:.8em;opacity:0;transform-origin:50% calc(100% + 6em);transform:rotate3d(0,0,1,15deg);transition:opacity .5s,transform .5s;transition-timing-function:ease,cubic-bezier(.17,.67,.4,1.39)}#textInfo:hover{z-index:3}#textInfo:hover .tooltip-content{opacity:1;pointer-events:all;transform:translateZ(0) rotate3d(0,0,0,0)}#textInfo .hotspot{cursor:pointer;box-sizing:border-box}#textInfo .hotspot .out:before{speak:none;font-size:48px;line-height:90px;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;display:block;-webkit-font-smoothing:antialiased}#textInfo .hotspot .out{width:60px;height:60px;border-radius:50%;border:5px solid rgba(255,255,255,.8);transition:transform ease-out .1s,border .2s;box-sizing:border-box}#textInfo .hotspot .in{width:40px;height:40px;position:absolute;top:10px;left:10px;background-color:#fffc;border-radius:50%;transition:transform ease-out .1s,background .2s}#textInfo .hotspot .out:after{top:0;left:0;padding:0;z-index:-1;box-shadow:0 0 0 2px #ffffff1a;opacity:0;pointer-events:none;position:absolute;width:100%;height:100%;border-radius:50%;content:"";box-sizing:content-box;transform:scale(.9)}#textInfo .hotspot:hover .out{border:5px solid rgba(255,255,255,1);transform:scale(.9);color:#fff}#textInfo .hotspot:hover .in{background-color:#fff;transform:scale(.8)}#textInfo .hotspot:hover .out:after{animation:sonarEffect 1.2s ease-out}@keyframes sonarEffect{0%{opacity:.5}20%{opacity:.8;box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80}to{box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80;transform:scale(1.5);opacity:0}}`;function Ni(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,r,o)=>`${r}-${o.toLowerCase()}`)}function kn(e){return Object.entries(e).reduce((t,[r,o])=>{if(o!==void 0){const s=Ni(r);t[s]=o.toString()}return t},{})}const Ri=e=>c(Xe,{children:[c("style",{children:Pi}),c(ki,{...e})]}),Ai=e=>kn(e),Di=e=>kn(e),zi=e=>kn(e);function Oi(e){return{render:function(t){Nr(t,e)},unmount:function(){Or(e)}}}var Hi=Object.defineProperty,Fi=(e,t,r)=>t in e?Hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jt=(e,t,r)=>(Fi(e,typeof t!="symbol"?t+"":t,r),r);const Ui={stringify:e=>e,parse:e=>e},Vi={stringify:e=>`${e}`,parse:e=>parseFloat(e)},Wi={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},Bi={stringify:e=>e.name,parse:(e,t,r)=>{const o=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof o=="function"?o.bind(r):void 0}},Yi={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Ln={string:Ui,number:Vi,boolean:Wi,function:Bi,json:Yi};function Xi(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,r,o)=>`${r}-${o.toLowerCase()}`)}const Qt=Symbol.for("r2wc.render"),en=Symbol.for("r2wc.connected"),bt=Symbol.for("r2wc.context"),gt=Symbol.for("r2wc.props");function Zi(e,t,r){var o,s,l;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const f=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),n={},m={},h={};for(const d of f){n[d]=Array.isArray(t.props)?"string":t.props[d];const p=Xi(d);m[d]=p,h[p]=d}class k extends HTMLElement{constructor(){super(),Jt(this,o,!0),Jt(this,s),Jt(this,l,{}),Jt(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[gt].container=this.container;for(const p of f){const a=m[p],M=this.getAttribute(a),C=n[p],L=C?Ln[C]:null;L!=null&&L.parse&&M&&(this[gt][p]=L.parse(M,a,this))}}static get observedAttributes(){return Object.keys(h)}connectedCallback(){this[en]=!0,this[Qt]()}disconnectedCallback(){this[en]=!1,this[bt]&&r.unmount(this[bt]),delete this[bt]}attributeChangedCallback(p,a,M){const C=h[p],L=n[C],_=L?Ln[L]:null;C in n&&_!=null&&_.parse&&M&&(this[gt][C]=_.parse(M,p,this),this[Qt]())}[(o=en,s=bt,l=gt,Qt)](){this[en]&&(this[bt]?r.update(this[bt],this[gt]):this[bt]=r.mount(this.container,e,this[gt]))}}for(const d of f){const p=m[d],a=n[d];Object.defineProperty(k.prototype,d,{enumerable:!0,configurable:!0,get(){return this[gt][d]},set(M){this[gt][d]=M;const C=a?Ln[a]:null;if(C!=null&&C.stringify){const L=C.stringify(M,p,this);this.getAttribute(p)!==L&&this.setAttribute(p,L)}else this[Qt]()}})}return k}function Gi(e,t,r){const o=Oi(e),s=xn.createElement(t,r);return o.render(s),{root:o,ReactComponent:t}}function ji({root:e,ReactComponent:t},r){const o=xn.createElement(t,r);e.render(o)}function $i({root:e}){setTimeout(()=>{e.unmount()},0)}function In(e,t={}){return Zi(e,t,{mount:Gi,update:ji,unmount:$i})}const qi=In(Ri,{shadow:"closed",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",integration:"boolean",maxItemsShown:"number",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",autoLoadInterior360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean"}}),Ki=In(Ii,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),Ji=In(Si,{shadow:"closed",props:{name:"string"}});function Qi(){customElements.define(lt,qi),customElements.define(Ft,Ki),customElements.define(Ut,Ji)}function es(){Wn()||Qi()}Ae.DEFAULT_EVENT_PREFIX=Vn,Ae.EVENT_COMPOSITION_LOADED=An,Ae.EVENT_COMPOSITION_LOADING=Rn,Ae.EVENT_COMPOSITION_LOAD_ERROR=Dn,Ae.EVENT_EXTEND_MODE_OFF=Hn,Ae.EVENT_EXTEND_MODE_ON=On,Ae.EVENT_GALLERY_CLOSE=Un,Ae.EVENT_GALLERY_OPEN=Fn,Ae.EVENT_HOTSPOTS_OFF=an,Ae.EVENT_HOTSPOTS_ON=on,Ae.EVENT_ITEM_CHANGE=zn,Ae.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Ft,Ae.WEB_PLAYER_ICON_WC_TAG=Ut,Ae.WEB_PLAYER_WC_TAG=lt,Ae.checkCustomElementsDefinition=Wn,Ae.ensureCustomElementsDefinition=es,Ae.generateCompositionUrl=yo,Ae.webPlayerCustomMediaPropsToAttributes=Di,Ae.webPlayerIconPropsToAttributes=zi,Ae.webPlayerPropsToAttributes=Ai,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
|
|
27
|
+
`}),I.current&&c($t,{ref:M,id:I.current,panorama:o,preview:r,width:"0",height:"0",image:o,pitch:Xa,yaw:Ga,hfov:cr,maxHfov:qt,minHfov:Kt,compass:!1,showControls:!1,keyboardZoom:!1,onLoad:k,onError:s,onMousedown:L,onTouchstart:L,onTouchend:L,onMouseup:L,autoLoad:!1})]}),c(qa,{isPannellumLoaded:y,isLoading:a,progress:p,autoloadInterior360:d,loadScene:v,itemIndex:t})]})})})},Ja=e=>{const{itemIndex:t}=e,{setItemInteraction:o}=et(),[r,i]=be();return he(()=>{r===null||r==="error"||o(t,r==="spin"?"running":"ready")},[t,o,r]),r==="error"?c(Mn,{className:"text-background",text:"Interior Spin could not be loaded"}):c(Ka,{...e,onLoaded:()=>i("spin"),onError:()=>i("error")})},Qa=({className:e})=>c(We,{className:e,customizationKey:"UI_360_PLAY",children:c("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c("polygon",{points:"6 3 20 12 6 21 6 3"})})}),ei=750,ti=1250,ni=360,oi=480,ri=({images:e,onlyPreload:t})=>{const{demoSpin:o,reverse360:r}=Ke(),{isShowingDetails:i,isZooming:s}=et(),d=s||i,n=ke(null),m=ke(null),h=ke(o),C=ke(null),f=X(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),p=ke(null),a=()=>{p.current&&(cancelAnimationFrame(p.current),p.current=null)},[M,I]=be(0),y=e.length,_=X(()=>{I(L=>(L-1+y)%y)},[y]),k=X(()=>{I(L=>(L+1)%y)},[y]);return he(()=>{if(d){f();return}const L=n.current,v=m.current;if(!L||!v)return;h.current&&(h.current=!1,C.current=setTimeout(()=>{const Y=Date.now(),$=()=>{const de=()=>{const ye=(Date.now()-Y)/ti,Ee=Math.round((Je=>Je*(2-Je))(ye)*y),Ge=st(Ee%y,0,y-1);I(Ge),!(Ee>=y)&&$()};p.current=requestAnimationFrame(de)};$()},ei));const E=ni/y;let S=null,Z=[];const T=Y=>{Z.push(Y),Z.length>20&&Z.shift()},G=()=>{const Y=(()=>{const Q=Date.now(),Ee=Z.filter(Ze=>Q-Ze.timestamp<50);if(Ee.length<2)return 0;const Ge=Ee[0],Je=Ee[Ee.length-1];return(Je.value-Ge.value)/(.001*Math.max(Je.timestamp-Ge.timestamp,1))})(),$=Date.now();let de=0,P=$;const ye=()=>{const Q=()=>{const Ee=Date.now(),Ge=(Ee-$)/1e3,Je=Math.pow(.05,Ge),Ze=Y*Je,g=(Ee-P)/1e3;if(de+=Ze*g,Math.abs(Ze)<5*E&&Math.abs(de)<E){p.current=null;return}Math.abs(de)>=E&&(de>0!==r?k():_(),de=0),P=Ee,ye()};p.current=requestAnimationFrame(Q)};ye()},j=()=>{f(),a()},O=Y=>{if(Y.button!==0)return;Y.preventDefault(),Y.stopPropagation(),j();const $=Y.clientX;S=$,Z=[{timestamp:Date.now(),value:$}]},ee=Y=>{if(S===null)return;Y.stopPropagation();const{clientX:$}=Y;T({timestamp:Date.now(),value:$});const de=$-S;Math.abs(de)<E||(de>0!==r?k():_(),S=$)},F=()=>{S!==null&&(S=null,G())};L.addEventListener("mousedown",O),document.addEventListener("mousemove",ee),document.addEventListener("mouseleave",F),document.addEventListener("mouseup",F),document.addEventListener("contextmenu",F);const q=oi/y,xe=()=>v.getBoundingClientRect().width,W=()=>v.scrollWidth/2-xe()/2,U=()=>{const Y=W();v.scrollLeft=Y};U();const K=()=>{const Y=v.scrollLeft-W();Math.abs(Y)<q||(Y<0!==r?k():_(),U())};v.addEventListener("scroll",K);let R=null;const B=Y=>{if(R!==null||Y.changedTouches.length!==1)return;j();const{identifier:$,clientX:de}=Y.changedTouches[0];R=$,S=de,Z=[{timestamp:Date.now(),value:de}]},J=Y=>{if(!S)return;const $=Array.from(Y.changedTouches).find(({identifier:ye})=>ye===R);if(!$)return;Y.preventDefault();const{clientX:de}=$;T({timestamp:Date.now(),value:de});const P=de-S;Math.abs(P)<E||(P>0!==r?k():_(),S=de)},A=Y=>{!S||!Array.from(Y.changedTouches).some(({identifier:de})=>de===R)||(R=null,S=null,G())};return v.addEventListener("touchstart",B),v.addEventListener("touchmove",J),v.addEventListener("touchend",A),v.addEventListener("touchcancel",A),()=>{L.removeEventListener("mousedown",O),document.removeEventListener("mousemove",ee),document.removeEventListener("mouseleave",F),document.removeEventListener("mouseup",F),document.removeEventListener("contextmenu",F),v.removeEventListener("scroll",K),v.removeEventListener("touchstart",B),v.removeEventListener("touchmove",J),v.removeEventListener("touchend",A),v.removeEventListener("touchcancel",A)}},[f,k,_,d,r,y]),c("div",{ref:n,className:"cursor-ew-resize",children:c("div",{ref:m,className:" overflow-x-scroll",children:[c("div",{className:"sticky left-0 top-0",children:[e.map(L=>c(mt,{src:L.src,className:"pointer-events-none !absolute left-0 top-0 -z-10"},L.src)),c(ir,{...e[M],onlyPreload:t,itemIndex:-1})]}),c("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},ai=({itemIndex:e,images:t,onPlaceholderImageLoaded:o,onSpinImagesLoaded:r,onError:i})=>{const{autoLoad360:s,emitAnalyticsEvent:d}=Ke(),{displayedCategoryId:n,displayedCategoryName:m}=et(),h=Pe(()=>t.map(({src:y})=>y),[t]),[C,f]=be(null),p=C?[...C.values()].filter(y=>y).length/t.length*100:null,a=X(y=>{p===null&&(f(new Map(h.map(_=>[_,!1]))),d({type:"track",category_id:n,category_name:m,item_type:"exterior-360",item_position:e,action_properties:{action_name:"Exterior 360 Play",action_field:"exterior_360_play",action_value:y}}))},[p,h,d,n,m,e]),M=X(()=>{a("click")},[a]),I=X(y=>{f(_=>{const k=new Map(_);return k.set(y,!0),k})},[]);return he(()=>{s&&a("auto")},[s,a]),he(()=>{p===100&&r()},[p,r]),c("div",{className:"relative aspect-[4/3] w-full",children:[p!==null&&p!==100&&c("div",{className:"hidden",children:h.map(y=>c(mt,{src:y,onLoad:()=>I(y),onError:i},y))}),c(mt,{className:"size-full",src:h[0],onLoad:o}),c("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[c(tr,{className:"size-20"}),c(ot,{color:"neutral",shape:"icon",onClick:M,children:c(Qa,{className:"size-full"})}),c("div",{className:se("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",p===null&&"invisible"),children:c("div",{className:"h-full bg-primary transition-[width]",style:{width:`${p??0}%`}})})]})]})},ii=e=>{const{itemIndex:t}=e,{setItemInteraction:o}=et(),[r,i]=be();return he(()=>{r===null||r==="error"||o(t,r==="spin"?"running":"ready")},[t,o,r]),r==="error"?c(Mn,{className:"text-background",text:"Spin could not be loaded"}):r!=="spin"?c(ai,{...e,onPlaceholderImageLoaded:()=>i(s=>s===null?"placeholder":s),onSpinImagesLoaded:()=>i("spin"),onError:()=>i("error")}):c(ri,{...e})},si=e=>c(ot,{color:"neutral",shape:"icon",...e,children:c(er,{className:"size-full"})}),li=({className:e})=>c(We,{className:e,customizationKey:"UI_PAUSE",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),ci=({className:e})=>c(We,{className:e,customizationKey:"UI_VOLUME",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),ui=({className:e})=>c(We,{className:e,customizationKey:"UI_VOLUME_OFF",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),ur=({progress:e})=>c("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:c("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-e)}%)`}})}),di=3e3,pi=({src:e,poster:t,itemIndex:o})=>{const{carrouselItemIndex:r,setItemInteraction:i}=et(),s=ke(null),d=ke(null),n=X(()=>{if(!d.current)throw new Error("videoRef.current is null");return d.current},[]);he(()=>{i(o,"ready")},[o,i]);const m=X(()=>{n().play()},[n]),h=X(()=>{n().pause()},[n]);he(()=>{r===o||h()},[r,o,h]);const[C,f]=be(!1),[p,a]=be(!0),M=()=>{f(!0),i(o,"running")},I=()=>{f(!1),i(o,"ready")},y=()=>{a(!1)},_=()=>{a(!0)},[k,L]=be(null),v=W=>{const U=n(),K=W.currentTarget.getBoundingClientRect(),B=(W.clientX-K.left)/K.width,J=Math.min(1,Math.max(0,B));U.volume=J,U.muted=!1},E=W=>{const U=n();U.muted=W};he(()=>{const W=d.current;if(!W)return;const U=()=>{L({volume:W.volume,isMuted:W.muted})};return U(),W.addEventListener("volumechange",U),()=>{W.removeEventListener("volumechange",U)}},[]);const[S,Z]=be(null),T=S?S.currentTime/S.duration:0;he(()=>{const W=d.current;if(!W)return;const U=()=>{const K=W.currentTime,R=W.duration;isNaN(K)||isNaN(R)||Z({currentTime:K,duration:R})};return U(),W.addEventListener("timeupdate",U),()=>{W.removeEventListener("timeupdate",U)}},[]);const G=W=>{const U=n(),K=W.currentTarget.getBoundingClientRect(),B=(W.clientX-K.left)/K.width,J=U.duration*B;U.currentTime=J},j=W=>{const U=Math.floor(W%3600/60),K=Math.floor(W%60);return`${U}:${K.toString().padStart(2,"0")}`},[O,ee]=be(!1),F=ke(void 0),q=X(()=>clearTimeout(F.current),[]),xe=X(()=>{q(),F.current=setTimeout(()=>{ee(!1)},di)},[q]);return he(()=>{const W=s.current,U=d.current;if(!W||!U)return;const K=()=>{xe(),ee(!0)},R=()=>{q(),ee(!1)};let B=!1;const J=()=>{B=!0},A=()=>{B&&(B=!1,h())},Y=()=>{B=!1,K()},$=de=>{de.preventDefault(),de.touches.length===1&&(xe(),ee(ye=>!ye))};return W.addEventListener("mousedown",J),W.addEventListener("mouseup",A),W.addEventListener("mouseenter",K),W.addEventListener("mousemove",Y),W.addEventListener("mouseleave",R),U.addEventListener("touchstart",$,{passive:!0}),()=>{W.removeEventListener("mousedown",J),W.removeEventListener("mouseup",A),W.removeEventListener("mouseenter",K),W.removeEventListener("mousemove",K),W.removeEventListener("mouseleave",R),U.removeEventListener("touchstart",$)}},[q,h,xe]),c("div",{ref:s,className:"relative aspect-[4/3] w-full",children:[c("video",{ref:d,className:"size-full",src:e,poster:t,disablePictureInPicture:!0,playsInline:!0,onPlay:M,onPause:I,onEnded:I,onCanPlay:y,onWaiting:_}),C?c(Xe,{children:[c("div",{className:se("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",O?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:W=>W.stopPropagation(),children:[c("div",{className:"flex items-center justify-between text-background",children:[c("div",{className:"flex items-center gap-x-4",children:[c(ot,{shape:"icon",variant:"ghost",color:"neutral",onClick:h,children:c(li,{className:"size-full"})}),S&&c("span",{className:"text-sm",children:[j(S.currentTime)," /"," ",j(S.duration)]})]}),k&&c("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[c("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${k.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:v,children:c(ur,{progress:k.volume})}),c("div",{className:"size-5 cursor-pointer",onClick:()=>E(!k.isMuted),children:k.isMuted?c(ui,{className:"size-full"}):c(ci,{className:"size-full"})})]})]}),c("div",{className:"cursor-pointer py-1",onClick:G,children:c(ur,{progress:T})})]}),p&&c("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(Ko,{size:"lg",color:"background"})})]}):c("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:c(si,{onClick:m})})]})},fi=({index:e,item:t,isShown:o})=>{const{type:r}=t;let i;switch(r){case"image":i=c(ir,{itemIndex:e,onlyPreload:!o,...t});break;case"video":i=c(pi,{itemIndex:e,...t});break;case"360":i=c(ii,{itemIndex:e,onlyPreload:!o,...t});break;case"interior-360":i=c(Ja,{itemIndex:e,onlyPreload:!o,...t});break;case"custom":i=c(Oa,{itemIndex:e,...t})}return i=c("div",{className:"grid grid-cols-[repeat(var(--max-items),1fr)]",children:i}),i},hi=e=>{he(()=>{const t=o=>{o.key==="Escape"&&e()};return addEventListener("keydown",t),()=>{removeEventListener("keydown",t)}},[e])};function mi(e){return e.target===e.currentTarget}const gi=({className:e,children:t,isVisible:o,url:r,title:i,description:s,clickHandler:d,extendMode:n,variant:m,aspectRatioStyle:h,maxItemsShown:C=1})=>{const{isFullScreen:f,integration:p}=Ke(),a=()=>m||(!p||f?"centered":"aside"),M=()=>!!(i||s),I=a(),y=_=>{if(!h)return{};switch(_){case"centered":return{...h,maxHeight:M()?"50%":"100%"};case"aside":return{...h,minHeight:0,flex:"1 1 auto"};case"fullwidth":return{...h,height:"85%"};default:return h}};return I==="centered"?c("div",{className:se(e,"absolute inset-0 z-overlay flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",o?"opacity-100":"pointer-events-none opacity-0"),onClick:d,children:c("div",{className:se("flex h-full flex-col bg-background transition-transform duration-details",o?"translate-x-0":"translate-x-full",M()?"max-w-[60%]":"w-full"),children:[t,o&&c(Xe,{children:[c(mt,{className:se(M()?"max-h-[50%]":"h-full","w-full bg-foreground/65 object-contain"),src:r||"",style:y("centered"),imgInPlayerWidthRatio:.6}),M()&&c("div",{className:se("flex-1 space-y-1 overflow-y-auto px-2 py-1 small:p-3",n&&"large:p-4"),children:[i&&c("span",{className:se("text-sm font-semibold small:text-base small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:se("text-xs text-foreground/65 small:text-sm",n&&"large:text-base"),children:s})]})]})]})}):I==="aside"?c("div",{className:se(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",o?"opacity-100":"pointer-events-none opacity-0"),onClick:d,children:c("div",{className:se("relative flex h-full flex-col bg-background transition-transform duration-details",o?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(f?1:C)}%`:`${100/C}%`},children:[t,o&&c(Xe,{children:[c(mt,{className:"min-h-0 w-full flex-1 bg-foreground/65 object-contain",src:r||"",style:y("aside"),imgInPlayerWidthRatio:.6}),c("div",{className:"min-h-[15%] shrink-0 space-y-1 p-2 small:p-3",children:[i&&c("span",{className:se("block text-xs font-semibold leading-tight small:text-base small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:se("text-[10px] leading-tight text-foreground/65 small:text-sm",n&&"large:text-base"),children:s})]})]})]})}):c("div",{className:se(e,"absolute inset-0 z-overlay flex items-center justify-center overflow-hidden bg-foreground/60 transition-opacity duration-details",o?"opacity-100":"pointer-events-none opacity-0"),onClick:d,children:c("div",{className:se("relative flex aspect-[4/3] flex-col bg-background transition-transform duration-details",o?"translate-y-0":"translate-y-full"),style:{width:p?`${100/(f?1:C)}%`:`${100/C}%`},children:[t,o&&r&&c(Xe,{children:[c(mt,{className:"h-[85%] w-full bg-foreground/65 object-contain",src:r,style:y("fullwidth"),imgInPlayerWidthRatio:.6}),c("div",{className:"h-[15%] space-y-1 overflow-y-auto px-2 py-1 small:p-3",children:[i&&c("span",{className:se("text-sm font-semibold small:text-base small:font-bold",n&&"large:text-lg"),children:i}),s&&c("p",{className:se("text-xs text-foreground/65 small:text-sm",n&&"large:text-base"),children:s})]})]})]})})},vi=({currentIndex:e,maxIndex:t})=>c("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 transition-radius small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[c("span",{children:e+1}),c("span",{children:"/"}),c("span",{children:t+1})]}),dr=({className:e})=>c(We,{className:e,customizationKey:"UI_ARROW_RIGHT",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),_i=({className:e})=>c(We,{className:e,customizationKey:"UI_EXTEND",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),wi=({className:e})=>c(We,{className:e,customizationKey:"UI_GALLERY",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),yi=({className:e})=>c(We,{className:e,customizationKey:"UI_HOTSPOTS",children:c("svg",{className:e,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c("g",{clipPath:"url(#clip0_418_982)",children:c("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),c("defs",{children:c("clipPath",{id:"clip0_418_982",children:c("rect",{width:"12",height:"12",fill:"white"})})})]})}),bi=({className:e})=>c(We,{className:e,customizationKey:"UI_MINUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),xi=({className:e})=>c(We,{className:e,customizationKey:"UI_PLUS",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Ei=({className:e})=>c(We,{className:e,customizationKey:"UI_REDUCE",children:c("svg",{className:e,viewBox:"0 0 16 16",fill:"none",children:c("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),Ci=({enabled:e,onToggle:t,label:o,className:r,children:i})=>c("label",{className:se("flex cursor-pointer items-center justify-center gap-x-2",r),children:[c("input",{type:"checkbox",className:"sr-only",checked:e,onChange:t}),o&&c("div",{className:"text-xs text-background",children:o}),c("div",{className:se("flex h-5 w-8 items-center justify-center rounded-full transition-colors",e?"bg-primary":"bg-background/60"),children:c("div",{className:se("flex size-4 items-center justify-center rounded-full p-0.5 transition",e?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:i})})]}),Mi=({className:e})=>c(We,{className:e,customizationKey:"UI_BURGER",children:c("svg",{className:e,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:c("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),ki=({sharedClassName:e})=>{const{categories:t}=ht(),{displayedCategoryId:o,changeCategory:r}=et(),[i,s]=be(!1),d=()=>{s(!i)},n=()=>{s(!1)};return c(Xe,{children:[i&&c("div",{className:se(e,"inset-0 small:hidden"),onClick:n}),c("div",{className:se(e,It("top-left"),"flex gap-x-2 small:hidden"),children:[c(ot,{shape:"icon",color:i?"primary":"neutral",onClick:d,children:c(Mi,{})}),i&&c("div",{className:"rounded-ui-md bg-background transition-radius",children:c("ul",{className:"space-y-0.5 p-1",children:t.map(({id:m,title:h})=>c("li",{className:se("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-all hover:bg-primary/30",m===o&&"bg-primary/50"),onClick:()=>{r(m),s(!1)},children:h},m))})})]}),c("div",{className:se(e,qo("top"),"w-full overflow-x-auto max-small:hidden"),children:c("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:t.map(({id:m,title:h})=>c(ot,{variant:m===o?"fill":"ghost",onClick:()=>r(m),children:h},m))})})]})},Li=()=>{const{hideCategoriesNav:e,infiniteCarrousel:t,permanentGallery:o,extendBehavior:r,maxItemsShown:i,isFullScreen:s,integration:d}=Ke(),{aspectRatioStyle:n,categories:{length:m}}=ht(),{items:{length:h},slidable:C,carrouselItemIndex:f,masterItemIndex:p,prevItem:a,nextItem:M,showGalleryControls:I,enableHotspotsControl:y,currentItemHotspotsVisible:_,toggleHotspots:k,showGallery:L,toggleGallery:v,extendMode:E,toggleExtendMode:S,shownDetails:Z,isShowingDetails:T,resetShownDetails:G,showZoomControls:j,isZooming:O,canZoomIn:ee,zoomIn:F,canZoomOut:q,zoomOut:xe,resetView:W}=et(),U=X(J=>{mi(J)&&G()},[G]);hi(G);const K="absolute z-overlay",R=()=>{if(i===1)return f;const A=Math.floor(i)-1;return f+A},B=()=>{if(!d)return p;const A=Math.floor(i)-1;return p+A};return c(Xe,{children:[!e&&m>1&&c(ki,{sharedClassName:se(K,"transition-opacity",O?"!pointer-events-none opacity-0":"opacity-100")}),C&&!O&&c("div",{className:se(K,It("top-right")),children:c(vi,{currentIndex:!d||s?f:R(),maxIndex:h-1})}),C&&c(Xe,{children:[c(ot,{shape:"icon",color:"neutral",className:se(K,It("middle-left"),O?"!pointer-events-none opacity-0":"opacity-100"),onClick:a,disabled:!t&&p<=0,children:c(We,{customizationKey:"CONTROLS_PREV",children:c(dr,{className:"size-full -scale-x-100"})})}),c(ot,{shape:"icon",color:"neutral",className:se(K,It("middle-right"),O?"!pointer-events-none opacity-0":"opacity-100"),onClick:M,disabled:!t&&B()>=h-1,children:c(We,{customizationKey:"CONTROLS_NEXT",children:c(dr,{className:"size-full"})})})]}),c("div",{className:se(K,It("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!o&&C&&c(Xe,{children:[c(ot,{className:I&&!O?"opacity-100":"!pointer-events-none opacity-0",variant:"fill",color:L?"primary":"neutral",shape:"icon",onClick:v,children:c(wi,{className:"size-full"})}),L&&c(or,{className:se("transition-opacity",I&&!O?"opacity-100":"!pointer-events-none opacity-0","[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),c("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[y&&c(Ci,{className:se("transition-opacity",O?"!pointer-events-none opacity-0":"opacity-100"),enabled:_,onToggle:k,children:c(yi,{className:"size-full"})}),j&&(!d||s)&&c("div",{className:"max-small:hidden",children:[c(ot,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!ee,onClick:F,children:c(xi,{className:"size-full"})}),c(nr,{color:"background"}),c(ot,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!q,onClick:xe,children:c(bi,{className:"size-full"})})]}),r!=="none"&&c(ot,{variant:"fill",color:E?"primary":"neutral",shape:"icon",onClick:S,children:E?c(Ei,{className:"size-full"}):c(_i,{className:"size-full"})})]})]}),c(gi,{isVisible:T,className:K,url:Z?.src,title:Z?.title,description:Z?.text,clickHandler:U,extendMode:E,maxItemsShown:i,aspectRatioStyle:n,children:c(Cn,{className:"absolute right-2 top-2 z-10",onClick:G})}),O&&c(Cn,{className:se(K,It("top-right")),onClick:W})]})},Ii=({className:e=""})=>{const{infiniteCarrousel:t,preloadRange:o,isFullScreen:r,maxItemsShown:i,integration:s}=Ke(),{aspectRatioStyle:d}=ht(),{items:n,slidable:m,carrouselItemIndex:h,setCarrouselItemIndex:C,itemIndexCommand:f,setItemIndexCommand:p,specialCommand:a,isRunningSpecialCommand:M,finishSpecialCommand:I,extendMode:y,extendTransition:_}=et(),{effectiveMaxItemsShown:k}=Wo(),L=ke(null),v=X(R=>{if(!L.current)throw new Error(`[${R??"sliderOrThrow"}] slider.current is null`);return L.current},[]),E=ke(!1),S=ke(null),Z=ke(null),T=ke(null),G=X(()=>{T.current&&cancelAnimationFrame(T.current)},[]),j=X(()=>{const R=v("computeClosestSnapIndex"),B=Array.from(R.children),J=R.scrollLeft;let A=0,Y=1/0;if(B.forEach(($,de)=>{const P=$.offsetLeft,ye=Math.abs(P-J);ye<Y&&(Y=ye,A=de)}),k>1){const $=Math.ceil(k),de=n.length+(s&&!t&&k%1!==0?1:0),P=Math.max(0,de-$);if(A=Math.min(A,P),s&&!t&&k%1!==0){const ye=n.length-1;A=Math.min(A,ye)}}return A},[v,k,n.length,t,s]),O=X(R=>{const B=v("setStyleCursor");B.style.cursor=R},[v]),ee=X(R=>{const B=v("setStyleSnapState");R==="mandatory"?B.style.scrollSnapType="x mandatory":B.style.scrollSnapType="none"},[v]),F=X((R,B,J)=>{G();const A=v("scrollToIndex"),Y=Array.from(A.children),$=A.scrollLeft;let de=Y[R].offsetLeft;const P=A.clientWidth,ye=A.scrollWidth-P;if(k>1){const b=Math.ceil(k),re=n.length+(s&&!t&&k%1!==0?1:0);R>=re-b&&(de=Math.min(de,ye))}const Q=b=>{A.scrollTo({left:b,behavior:"instant"})},Ee=()=>{Q(de),ee("mandatory"),J?.()},Ge=Math.abs($-de);if(Ge<1||B==="instant"){Ee();return}const Je=st(Ge/2.5,300,1e3),Ze=new Date().getTime();ee("none");const g=()=>{const b=()=>{const le=new Date().getTime()-Ze;if(le>=Je){Ee();return}const te=Math.min(le/Je,1),x=rr(te),ae=Zt($,de,x);Q(ae),g()};T.current=requestAnimationFrame(b)};g()},[G,v,k,ee,n.length,s,t]),[q,xe]=be(),W=!!q;he(()=>{const R=()=>{clearTimeout(q);const B=setTimeout(()=>{xe(void 0)},Vo);xe(B)};return addEventListener("resize",R),document.addEventListener("fullscreenchange",R),()=>{removeEventListener("resize",R),document.removeEventListener("fullscreenchange",R)}},[q]),he(()=>{if(a)return;const R=j();Number.isNaN(R)||R!==h&&F(h,"instant")},[h,j,F,a,n,q,r,y,_]),he(()=>{if(!m||M){O("auto");return}const R=L.current;if(!R)return;O("grab"),ee("mandatory");const B=Y=>{Y.button===0&&(Y.preventDefault(),Y.stopPropagation(),G(),E.current=!0,S.current=Y.pageX-R.offsetLeft,Z.current=R.scrollLeft,O("grabbing"))},J=Y=>{if(!E.current)return;if(S.current===null)throw new Error("[onMouseMove] startX is null");ee("none");const de=Y.pageX-R.offsetLeft-S.current;requestAnimationFrame(()=>{if(Z.current===null)throw new Error("[onMouseMove] scrollLeft is null");let P=Z.current-de;if(!t){const ye=R.scrollWidth-R.clientWidth;P>ye&&(P=ye)}R.scrollLeft=P})},A=()=>{if(!E.current)return;E.current=!1,O("grab");const Y=j();F(Y,"smooth")};return R.addEventListener("mousedown",B),document.addEventListener("mousemove",J),document.addEventListener("mouseleave",A),document.addEventListener("mouseup",A),document.addEventListener("contextmenu",A),()=>{R.removeEventListener("mousedown",B),document.removeEventListener("mousemove",J),document.removeEventListener("mouseleave",A),document.removeEventListener("mouseup",A),document.removeEventListener("contextmenu",A)}},[G,j,t,M,F,O,ee,m]),he(()=>{if(_||W)return;const R=L.current;if(!R)return;const B=()=>{const J=j();Number.isNaN(J)||(C(J),J===f&&p(null))};return R.addEventListener("scroll",B),()=>{R.removeEventListener("scroll",B)}},[j,_,W,f,i,C,p]),he(()=>{if(f===null)return;const R=()=>{setTimeout(()=>{p(null),I()},75)};switch(a){case"first_to_last":{const B=Math.ceil(k),J=n.length+(s&&!t&&k%1!==0?1:0),A=k>1?Math.max(0,J-B):n.length-1;F(A,"instant",R);break}case"last_to_first":F(0,"instant",R);break;case"instant":F(f,"instant",R);break;default:F(f,"smooth");break}},[a,I,f,n.length,F,p,k,t,s]);const U=Pe(()=>!s||r?d:{aspectRatio:"auto"},[s,r,d]),K=Pe(()=>({...d,minWidth:`${100/k}%`,width:`${100/k}%`,flexShrink:0}),[d,k]);return c("div",{className:se("relative overflow-hidden rounded-carrousel transition-radius",e),style:U,children:[c("div",{ref:L,className:`flex size-full ${m?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[n.map((R,B)=>{const J=B===h,A=B===0,Y=B===n.length-1,$=(()=>{const Ee=Math.ceil(k);if(a==="first_to_last"&&A)return{transform:`translateX(${100*n.length/Ee}%)`};if(a==="last_to_first"&&Y)return{transform:`translateX(-${100*n.length/Ee}%)`}})(),de=Math.ceil(k),P=Math.max(o,de);let ye=Math.abs(B-h)<=P;ye||=B===f,ye||=B>=h&&B<h+de,t&&(ye||=h<P&&n.length-B<=P-h,ye||=h>=n.length-P&&B<=P-(n.length-h));const Q=(()=>{let Ee;switch(R.type){case"360":Ee=R.images[0].src;break;case"interior-360":Ee=R.poster??"interior-360";break;case"image":Ee=R.src;break;case"video":Ee=R.poster??"video";break;case"custom":Ee="custom";break;default:Ee="unknown"}return`${B}_${Ee}`})();return c("div",{className:se("h-full bg-foreground/35",h===B&&"z-1"),style:{...K,...$},children:ye&&c(fi,{index:B,item:R,isShown:J})},Q)}),s&&!t&&!r&&i%1!==0&&c("div",{className:"h-full",style:K},"empty-slide")]}),c(Li,{})]})},Ti=()=>{const{permanentGallery:e,integration:t}=Ke(),{aspectRatioStyle:o}=ht(),{isShowingDetails:r,resetShownDetails:i,extendMode:s,disableExtendMode:d,isZooming:n,resetZoom:m,fakeFullScreen:h}=et(),C=ke(null),f=ke(null),p=ke(null);return he(()=>{if(!s)return;const a=C.current,M=f.current,I=p.current;if(!a||!M||!I)return;let y=!1;const _=v=>[a,M,I].includes(v.target),k=v=>{y=_(v)},L=v=>{y&&(_(v)&&d(),y=!1)};return a.addEventListener("mousedown",k),a.addEventListener("mouseup",L),()=>{a.removeEventListener("mousedown",k),a.removeEventListener("mouseup",L)}},[d,s]),he(()=>{const a=M=>{M.key==="Escape"&&(n?m():r?i():d())};return addEventListener("keydown",a),()=>{removeEventListener("keydown",a)}},[d,r,n,i,m]),c("div",{ref:C,className:se("relative",s&&"flex size-full items-center justify-center",h&&"fixed inset-0 z-overlay bg-foreground/75"),children:[c("div",{ref:f,className:s?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[c("div",{ref:p,className:se(s&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:t?{}:o,children:c(Ii,{className:se(s&&"h-full min-w-0")})}),e&&c(or,{className:se(s&&"my-2 shrink-0 small:my-4")})]}),s&&c(Cn,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:d})]})},Si=()=>{const{emitEvent:e,compositionUrl:t}=Ke(),{data:o,status:r,isSuccess:i,error:s}=ga(t);return he(()=>{s?e(Dn,s):r==="fetching"?e(Rn,t):i&&e(An,o)},[o,t,e,s,i,r]),s?c(Mn,{className:"aspect-square text-foreground/70",text:"Player could not be loaded"}):i?c(_a,{composition:o,children:c(ba,{children:c(Ti,{})})}):c("div",{className:"flex aspect-square size-full flex-col items-center justify-center gap-y-4",children:[c("div",{className:"animate-pulse text-xl",children:"Loading Player"}),c(Ko,{color:"foreground"})]})},Ni={hideCategoriesNav:!0,infiniteCarrousel:!1,permanentGallery:!1},Pi=[1,1.5,2,2.5],Ri=()=>Pe(()=>Lr(),[]),Ai=()=>Pe(()=>Ir(),[]),Di=()=>Pe(()=>Tr(),[]),zi=({compositionUrl:e,integration:t=!1,maxItemsShown:o=1,hideCategoriesNav:r=!1,infiniteCarrousel:i=!1,permanentGallery:s=!1,mediaLoadStrategy:d=wr,minMediaWidth:n=0,maxMediaWidth:m=1/0,preloadRange:h=1,autoLoad360:C=!1,autoLoadInterior360:f=!1,categoriesFilter:p=yr,extendBehavior:a=br,eventPrefix:M=Vn,demoSpin:I=!1,reverse360:y=!1,analyticsEventPrefix:_=xr,analyticsUrl:k=Er,analyticsBearer:L=Cr,analyticsSimpleRequestsOnly:v=!1,analyticsDryRun:E=!1,analyticsDebug:S=!1,children:Z})=>{o=wa(o,Pi);const T=ke(null),[G,j]=be(.5),[O,ee]=be(!1),F=X((J,A)=>{const Y=M+J,$=new CustomEvent(Y,{detail:A});document.dispatchEvent($)},[M]),q=Ri(),xe=Ai(),W=Di(),U=X(async J=>{try{const Y={...{type:J.type,timestamp:new Date().toISOString(),instance_id:W},...J};if(E){console.log("[DRY RUN] AnalyticsEvent:",Y);return}const $=_+J.type,de=new CustomEvent($,{detail:Y});if(document.dispatchEvent(de),k){const P="POST",ye=new Headers;v||(ye.append("Content-Type","application/json"),ye.append("Cache-Control","no-cache"),L&&ye.append("Authorization",`Bearer ${L}`));const Q=JSON.stringify(Y);await fetch(k,{method:P,headers:ye,body:Q})}}catch(A){if(!S)return;console.error("Error while sending analytics event:",A)}},[_,k,L,v,E,S,W]),[K]=be({type:"identify",browser_id:q,session_id:xe,referrer:document.referrer,origin:window.location.origin,page_url:window.location.href,user_agent:navigator.userAgent,wp_properties:{composition_url:e,integration:t,max_items_shown:o,hide_categories_nav:r,infinite_carrousel:i,permanent_gallery:s,media_load_strategy:d,min_media_width:n,max_media_width:m,preload_range:h,auto_load_360:C,auto_load_interior_360:f,categories_filter:p,extend_behavior:a,event_prefix:M,demo_spin:I,reverse_360:y}});he(()=>{const J=setTimeout(()=>U(K),0);return()=>clearTimeout(J)},[U,K]),he(()=>{if(O){j(1);return}if(!T.current)return;const J=T.current,A=()=>{const Y=window.innerWidth,$=J.clientWidth;j($/Y)};return A(),addEventListener("resize",A),()=>{removeEventListener("resize",A)}},[O]),he(()=>{if(a!=="full_screen")return;const J=T.current;if(!J)throw new Error("Wrapper not found");const A=()=>{const{fullscreenElement:Y}=document;ee(Y===J||Y?.localName===lt)};return document.addEventListener("fullscreenchange",A),()=>{document.removeEventListener("fullscreenchange",A)}},[a]);const R=X(async()=>{const J=T.current;if(!J)throw new Error("Wrapper not found");try{return await J.requestFullscreen(),!0}catch{return!1}},[]),B=X(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return c(va,{compositionUrl:e,integration:t,hideCategoriesNav:r,infiniteCarrousel:i,permanentGallery:s,maxItemsShown:o,mediaLoadStrategy:d,minMediaWidth:n,maxMediaWidth:m,preloadRange:h,categoriesFilter:p,autoLoad360:C,autoLoadInterior360:f,extendBehavior:a,demoSpin:I,reverse360:y,emitEvent:F,emitAnalyticsEvent:U,playerInViewportWidthRatio:G,isFullScreen:O,requestFullscreen:R,exitFullscreen:B,...t?Ni:{},children:c(ya,{children:[c("div",{ref:T,className:"select-none text-foreground",style:{"--background":"var(--cc-webplayer-background, 0 0% 100%)","--foreground":"var(--cc-webplayer-foreground, 240 10% 3.9%)","--primary":"var(--cc-webplayer-primary, 216 100% 52%)","--primary-foreground":"var(--cc-webplayer-primary-foreground, var(--background))","--primary-light":"var(--cc-webplayer-primary-light, var(--primary))","--neutral":"var(--cc-webplayer-neutral, 0 0% 39%)","--neutral-foreground":"var(--cc-webplayer-neutral-foreground, var(--foreground))","--radius-ui":"var(--cc-webplayer-radius-ui, 16px)","--radius-carrousel":"var(--cc-webplayer-radius-carrousel, 0)","--radius-gallery":"var(--cc-webplayer-radius-gallery, 0)","--hotspot-damage-color":"hsl(var(--cc-webplayer-hotspot-damage-color, 37 89% 52%))","--hotspot-feature-color":"hsl(var(--cc-webplayer-hotspot-feature-color, var(--primary)))"},children:c(Si,{})}),Z]})})},Oi=({children:e,index:t,thumbnailSrc:o})=>{const{registerCustomMedia:r,unregisterCustomMedia:i}=Ot();return he(()=>{if(!e)return;const s=r({Media:e,index:t,thumbnailSrc:o});return()=>{i(s)}},[e,i,t,r,o]),null},Hi=e=>En()?c(Oi,{...e}):c("slot",{}),Fi=({name:e,children:t})=>{const{registerIconConfig:o,unregisterIconConfig:r}=Ot();return he(()=>{if(t)return o(e,{Icon:t}),()=>{r(e)}},[t,e,o,r]),null},Ui=e=>En()?c(Fi,{...e}):c("slot",{}),Vi=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-x-0{left:0;right:0}.inset-x-1{left:4px;right:4px}.inset-y-1{top:4px;bottom:4px}.-bottom-1{bottom:-4px}.-left-1{left:-4px}.-right-1{right:-4px}.-top-1{top:-4px}.bottom-0{bottom:0}.bottom-1{bottom:4px}.left-0{left:0}.left-1{left:4px}.left-1\\/2{left:50%}.right-1{right:4px}.right-2{right:8px}.top-0{top:0}.top-1{top:4px}.top-1\\/2{top:50%}.top-2{top:8px}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-1{z-index:1}.z-10,.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:4px;margin-right:4px}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:8px;margin-bottom:8px}.-ml-px{margin-left:-1px}.-mt-px{margin-top:-1px}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.aspect-square{aspect-ratio:1 / 1}.size-1{width:4px;height:4px}.size-12{width:48px;height:48px}.size-20{width:80px;height:80px}.size-4{width:16px;height:16px}.size-5{width:20px;height:20px}.size-8{width:32px;height:32px}.size-full{width:100%;height:100%}.h-1{height:4px}.h-10{height:40px}.h-20{height:80px}.h-3\\/4{height:75%}.h-5{height:20px}.h-8{height:32px}.h-\\[15\\%\\]{height:15%}.h-\\[85\\%\\]{height:85%}.h-full{height:100%}.h-px{height:1px}.max-h-\\[50\\%\\]{max-height:50%}.min-h-0{min-height:0}.min-h-\\[15\\%\\]{min-height:15%}.w-12{width:48px}.w-3\\/5{width:60%}.w-8{width:32px}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-\\[calc\\(100\\%\\+2px\\)\\]{width:calc(100% + 2px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0}.max-w-40{max-width:160px}.max-w-\\[1600px\\]{max-width:1600px}.max-w-\\[60\\%\\]{max-width:60%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: 6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-scale-x-100{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:1}0%,to{opacity:0}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.grid-cols-\\[repeat\\(var\\(--max-items\\)\\,1fr\\)\\]{grid-template-columns:repeat(var(--max-items),1fr)}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-x-1{-moz-column-gap:4px;column-gap:4px}.gap-x-2{-moz-column-gap:8px;column-gap:8px}.gap-x-4{-moz-column-gap:16px;column-gap:16px}.gap-y-1{row-gap:4px}.gap-y-2{row-gap:8px}.gap-y-4{row-gap:16px}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2px * var(--tw-space-x-reverse));margin-left:calc(2px * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + 2px)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - 2px)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-foreground{border-color:hsl(var(--foreground))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:2px}.p-1{padding:4px}.p-2{padding:8px}.p-4{padding:16px}.px-1\\.5{padding-left:6px;padding-right:6px}.px-2{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:2px;padding-bottom:2px}.py-1{padding-top:4px;padding-bottom:4px}.pl-6{padding-left:24px}.pr-12{padding-right:48px}.pr-4{padding-right:16px}.pt-8{padding-top:32px}.text-2xl{font-size:24px;line-height:32px}.text-\\[10px\\]{font-size:10px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-tight{line-height:1.25}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/65{color:hsl(var(--foreground) / .65)}.text-foreground\\/70{color:hsl(var(--foreground) / .7)}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-radius{transition-property:border-radius;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:size-full>*{width:100%;height:100%}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.\\*\\:object-cover>*{-o-object-fit:cover;object-fit:cover}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-all:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:8px;right:8px}.small\\:inset-y-2{top:8px;bottom:8px}.small\\:bottom-2{bottom:8px}.small\\:left-2{left:8px}.small\\:right-2{right:8px}.small\\:right-4{right:16px}.small\\:top-2{top:8px}.small\\:top-4{top:16px}.small\\:my-4{margin-top:16px;margin-bottom:16px}.small\\:hidden{display:none}.small\\:h-12{height:48px}.small\\:h-28{height:112px}.small\\:max-w-48{max-width:192px}.small\\:gap-2{gap:8px}.small\\:gap-x-2{-moz-column-gap:8px;column-gap:8px}.small\\:gap-y-2{row-gap:8px}.small\\:gap-y-4{row-gap:16px}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-3{padding:12px}.small\\:px-2{padding-left:8px;padding-right:8px}.small\\:py-1{padding-top:4px;padding-bottom:4px}.small\\:pl-8{padding-left:32px}.small\\:pr-6{padding-right:24px}.small\\:text-base{font-size:16px;line-height:24px}.small\\:text-sm{font-size:14px;line-height:20px}.small\\:font-bold{font-weight:700}}@media (min-width: 1280px){.large\\:h-20{height:80px}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:224px}.large\\:gap-4{gap:16px}.large\\:p-2{padding:8px}.large\\:p-4{padding:16px}.large\\:text-base{font-size:16px;line-height:24px}.large\\:text-lg{font-size:18px;line-height:28px}}.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,Nimbus Sans L,Liberation Sans,Arial,sans-serif;background:#f4f4f4 url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='67'%20height='100'%20viewBox='0%200%2067%20100'%3e%3cpath%20stroke='%23ccc'%20fill='none'%20d='M33.5,50,0,63,33.5,75,67,63,33.5,50m-33.5-50,67,25m-0.5,0,0,75m-66.5-75,67-25m-33.5,75,0,25m0-100,0,50'/%3e%3c/svg%3e") repeat;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content;touch-action:none}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='26'%20width='26'%3e%3cpath%20stroke='%23000'%20stroke-width='1px'%20fill='%23fff'%20d='m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55'/%3e%3c/svg%3e") 12 8,default}.pnlm-sprite{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='26'%20height='208'%3e%3ccircle%20fill-opacity='.78'%20cy='117'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20fill-opacity='.78'%20cy='143'%20cx='13'%20r='11'%20fill='%23fff'/%3e%3ccircle%20cy='169'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cy='195'%20cx='13'%20r='7'%20fill='none'%20stroke='%23000'%20stroke-width='2'/%3e%3ccircle%20cx='13'%20cy='195'%20r='2.5'/%3e%3cpath%20d='m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z'/%3e%3cpath%20d='m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z'/%3e%3cpath%20d='m17%2038v2h-8v-2z'/%3e%3cpath%20d='m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z'/%3e%3cpath%20d='m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z'/%3e%3cpath%20d='m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z'/%3e%3c/svg%3e")}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:#0006;border-radius:3px;cursor:pointer;z-index:2;transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:#0000001a;border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:#ffffff80;border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:#000000b3;border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{0%{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:#000000b3;border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:#000c}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px;background:#000000b3;border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:#fff3}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:#000000b3;color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:"";position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='50'%20width='50'%3e%3cpath%20d='m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z'/%3e%3c/svg%3e");cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;transform-origin:0 0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer}#textInfo .tooltip-content{font-size:1.6em;position:absolute;left:-70px;bottom:80px;width:200px;pointer-events:none;background-color:#333;color:#fff;line-height:1.2em;padding:.8em;opacity:0;transform-origin:50% calc(100% + 6em);transform:rotate3d(0,0,1,15deg);transition:opacity .5s,transform .5s;transition-timing-function:ease,cubic-bezier(.17,.67,.4,1.39)}#textInfo:hover{z-index:3}#textInfo:hover .tooltip-content{opacity:1;pointer-events:all;transform:translateZ(0) rotate3d(0,0,0,0)}#textInfo .hotspot{cursor:pointer;box-sizing:border-box}#textInfo .hotspot .out:before{speak:none;font-size:48px;line-height:90px;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;display:block;-webkit-font-smoothing:antialiased}#textInfo .hotspot .out{width:60px;height:60px;border-radius:50%;border:5px solid rgba(255,255,255,.8);transition:transform ease-out .1s,border .2s;box-sizing:border-box}#textInfo .hotspot .in{width:40px;height:40px;position:absolute;top:10px;left:10px;background-color:#fffc;border-radius:50%;transition:transform ease-out .1s,background .2s}#textInfo .hotspot .out:after{top:0;left:0;padding:0;z-index:-1;box-shadow:0 0 0 2px #ffffff1a;opacity:0;pointer-events:none;position:absolute;width:100%;height:100%;border-radius:50%;content:"";box-sizing:content-box;transform:scale(.9)}#textInfo .hotspot:hover .out{border:5px solid rgba(255,255,255,1);transform:scale(.9);color:#fff}#textInfo .hotspot:hover .in{background-color:#fff;transform:scale(.8)}#textInfo .hotspot:hover .out:after{animation:sonarEffect 1.2s ease-out}@keyframes sonarEffect{0%{opacity:.5}20%{opacity:.8;box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80}to{box-shadow:0 0 0 2px #ffffff1a,0 0 10px 10px #25aae1cc,0 0 0 10px #ffffff80;transform:scale(1.5);opacity:0}}`;function Wi(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,o,r)=>`${o}-${r.toLowerCase()}`)}function kn(e){return Object.entries(e).reduce((t,[o,r])=>{if(r!==void 0){const i=Wi(o);t[i]=r.toString()}return t},{})}const Bi=e=>c(Xe,{children:[c("style",{children:Vi}),c(zi,{...e})]}),Yi=e=>kn(e),Xi=e=>kn(e),Gi=e=>kn(e);function Zi(e){return{render:function(t){Ro(t,e)},unmount:function(){Ho(e)}}}var ji=Object.defineProperty,$i=(e,t,o)=>t in e?ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Jt=(e,t,o)=>($i(e,typeof t!="symbol"?t+"":t,o),o);const qi={stringify:e=>e,parse:e=>e},Ki={stringify:e=>`${e}`,parse:e=>parseFloat(e)},Ji={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},Qi={stringify:e=>e.name,parse:(e,t,o)=>{const r=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof r=="function"?r.bind(o):void 0}},es={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Ln={string:qi,number:Ki,boolean:Ji,function:Qi,json:es};function ts(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,o,r)=>`${o}-${r.toLowerCase()}`)}const Qt=Symbol.for("r2wc.render"),en=Symbol.for("r2wc.connected"),yt=Symbol.for("r2wc.context"),gt=Symbol.for("r2wc.props");function ns(e,t,o){var r,i,s;t.props||(t.props=e.propTypes?Object.keys(e.propTypes):[]);const d=Array.isArray(t.props)?t.props.slice():Object.keys(t.props),n={},m={},h={};for(const f of d){n[f]=Array.isArray(t.props)?"string":t.props[f];const p=ts(f);m[f]=p,h[p]=f}class C extends HTMLElement{constructor(){super(),Jt(this,r,!0),Jt(this,i),Jt(this,s,{}),Jt(this,"container"),t.shadow?this.container=this.attachShadow({mode:t.shadow}):this.container=this,this[gt].container=this.container;for(const p of d){const a=m[p],M=this.getAttribute(a),I=n[p],y=I?Ln[I]:null;y!=null&&y.parse&&M&&(this[gt][p]=y.parse(M,a,this))}}static get observedAttributes(){return Object.keys(h)}connectedCallback(){this[en]=!0,this[Qt]()}disconnectedCallback(){this[en]=!1,this[yt]&&o.unmount(this[yt]),delete this[yt]}attributeChangedCallback(p,a,M){const I=h[p],y=n[I],_=y?Ln[y]:null;I in n&&_!=null&&_.parse&&M&&(this[gt][I]=_.parse(M,p,this),this[Qt]())}[(r=en,i=yt,s=gt,Qt)](){this[en]&&(this[yt]?o.update(this[yt],this[gt]):this[yt]=o.mount(this.container,e,this[gt]))}}for(const f of d){const p=m[f],a=n[f];Object.defineProperty(C.prototype,f,{enumerable:!0,configurable:!0,get(){return this[gt][f]},set(M){this[gt][f]=M;const I=a?Ln[a]:null;if(I!=null&&I.stringify){const y=I.stringify(M,p,this);this.getAttribute(p)!==y&&this.setAttribute(p,y)}else this[Qt]()}})}return C}function os(e,t,o){const r=Zi(e),i=bn.createElement(t,o);return r.render(i),{root:r,ReactComponent:t}}function rs({root:e,ReactComponent:t},o){const r=bn.createElement(t,o);e.render(r)}function as({root:e}){setTimeout(()=>{e.unmount()},0)}function In(e,t={}){return ns(e,t,{mount:os,update:rs,unmount:as})}const is=In(Bi,{shadow:"closed",props:{compositionUrl:"string",hideCategoriesNav:"boolean",infiniteCarrousel:"boolean",permanentGallery:"boolean",integration:"boolean",maxItemsShown:"number",minMediaWidth:"number",maxMediaWidth:"number",mediaLoadStrategy:"string",preloadRange:"number",autoLoad360:"boolean",autoLoadInterior360:"boolean",categoriesFilter:"string",extendBehavior:"string",eventPrefix:"string",demoSpin:"boolean",reverse360:"boolean",analyticsEventPrefix:"string",analyticsUrl:"string",analyticsBearer:"string",analyticsSimpleRequestsOnly:"boolean",analyticsDryRun:"boolean",analyticsDebug:"boolean"}}),ss=In(Hi,{shadow:"closed",props:{index:"number",thumbnailSrc:"string"}}),ls=In(Ui,{shadow:"closed",props:{name:"string"}});function cs(){customElements.define(lt,is),customElements.define(Ft,ss),customElements.define(Ut,ls)}function us(){Wn()||cs()}Ae.DEFAULT_EVENT_PREFIX=Vn,Ae.EVENT_COMPOSITION_LOADED=An,Ae.EVENT_COMPOSITION_LOADING=Rn,Ae.EVENT_COMPOSITION_LOAD_ERROR=Dn,Ae.EVENT_EXTEND_MODE_OFF=Hn,Ae.EVENT_EXTEND_MODE_ON=On,Ae.EVENT_GALLERY_CLOSE=Un,Ae.EVENT_GALLERY_OPEN=Fn,Ae.EVENT_HOTSPOTS_OFF=an,Ae.EVENT_HOTSPOTS_ON=rn,Ae.EVENT_ITEM_CHANGE=zn,Ae.WEB_PLAYER_CUSTOM_MEDIA_WC_TAG=Ft,Ae.WEB_PLAYER_ICON_WC_TAG=Ut,Ae.WEB_PLAYER_WC_TAG=lt,Ae.checkCustomElementsDefinition=Wn,Ae.ensureCustomElementsDefinition=us,Ae.generateCompositionUrl=Mr,Ae.webPlayerCustomMediaPropsToAttributes=Xi,Ae.webPlayerIconPropsToAttributes=Gi,Ae.webPlayerPropsToAttributes=Yi,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
|