@wix/video 1.95.0 → 1.96.0
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/statics/janet/iframe.html +1 -1
- package/dist/statics/janet/{main.2c19ad7d.iframe.bundle.js → main.18a75df1.iframe.bundle.js} +10 -2
- package/dist/statics/janet/main.18a75df1.iframe.bundle.js.map +1 -0
- package/dist/statics/janet/project.json +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/dist/statics/video.umd.js +10 -2
- package/dist/statics/video.umd.js.map +1 -1
- package/dist/statics/video.umd.min.js +1 -1
- package/dist/statics/video.umd.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/statics/janet/main.2c19ad7d.iframe.bundle.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define("video",["React"],t):"object"==typeof exports?exports.video=t(require("React")):e.video=t(e.React)}("undefined"!=typeof self?self:this,(e=>(()=>{var t,i,r={709:function(e,t,i){var r;!function(t){"use strict";var n=function(){},o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function a(){var e=this;e.reads=[],e.writes=[],e.raf=o.bind(t),n("initialized",e)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(c.bind(null,e)),n("flush scheduled"))}function c(e){n("flush");var t,i=e.writes,r=e.reads;try{n("flushing reads",r.length),e.runTasks(r),n("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(r.length||i.length)&&s(e),t){if(n("task errored",t.message),!e.catch)throw t;e.catch(t)}}function u(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}a.prototype={constructor:a,runTasks:function(e){var t;for(n("run tasks");t=e.shift();)t()},measure:function(e,t){n("measure");var i=t?e.bind(t):e;return this.reads.push(i),s(this),i},mutate:function(e,t){n("mutate");var i=t?e.bind(t):e;return this.writes.push(i),s(this),i},clear:function(e){return n("clear",e),u(this.reads,e)||u(this.writes,e)},extend:function(e){if(n("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var h=t.fastdom=t.fastdom||new a;void 0===(r=function(){return h}.call(h,i,h,e))||(e.exports=r)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},883:t=>{"use strict";t.exports=e},929:(e,t,i)=>{var r=i(76);e.exports=function(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},414:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},921:(e,t,i)=>{var r=i(998).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},76:(e,t,i)=>{var r=i(998).default,n=i(921);e.exports=function(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".chunk.min.js",o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="_wix_video:",o.l=(e,r,n,a)=>{if(t[e])t[e].push(r);else{var s,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),h=0;h<u.length;h++){var l=u[h];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==i+n){s=l;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",i+n),s.src=e,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous")),t[e]=[r];var d=(i,r)=>{s.onerror=s.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),i)return i(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://static.parastorage.com/services/video/2ce95e348a702f871e19aa8541ca158baefffc26e401d1bcec9cceac/",(()=>{var e={180:0};o.f.j=(t,i)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((i,n)=>r=e[t]=[i,n]));i.push(r[2]=n);var a=o.p+o.u(t),s=new Error;o.l(a,(i=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,i)=>{var r,n,[a,s,c]=i,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)c(o)}for(t&&t(i);u<a.length;u++)n=a[u],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},i=("undefined"!=typeof self?self:this).webpackJsonp__wix_video=("undefined"!=typeof self?self:this).webpackJsonp__wix_video||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{Video:()=>wt,initCustomElement:()=>I});var e={};o.r(e),o.d(e,{ke:()=>ot,vO:()=>S,$A:()=>Y,Nk:()=>v,bQ:()=>rt,QC:()=>re,G_:()=>it});var t=o(414),i=o.n(t),r=o(883);const n="nhOWNx",s="b5Y937",c="https://video.wixstatic.com/",u=e=>e.startsWith("http://")||e.startsWith("https://");function h(e,t){return(u(e)?new URL(e):new URL(e,t)).href}async function l(e,t,i,r,n,a,s,l){const d=n&&n.length>0,f=i&&u(i),g=s&&s<40;if("adaptive"===r&&a&&a.length>0&&!g){const e=a.find((e=>"hls"===e.format)),t=await o.e(189).then(o.bind(o,189));if(e&&t&&t.default.isSupported()){const i=h(e.uri,"https://files.wix.com/");return{videoSourceUrl:i,patchVideoSource:e=>{const r=new t.default;r.loadSource(i),r.attachMedia(e),r.on(t.default.Events.ERROR,((e,i)=>{if(i.fatal)switch(i.type){case t.default.ErrorTypes.NETWORK_ERROR:r.startLoad(),l&&l(new Error(`HLS Network Error: ${i.details}.\nAttempting to reconnect...`));break;case t.default.ErrorTypes.MEDIA_ERROR:r.recoverMediaError(),l&&l(new Error(`HLS Media Error: ${i.details}.\nAttempting to recover...`));break;default:r.destroy(),l&&l(new Error(`HLS Unknown Error: ${i.details}.\nUnrecoverable playback error`))}}))}}}}if(d){const i=n[n.length-1];if("highest"===r){var p;const e=null==(p=i.types.find((e=>"mp4"===e.format)))?void 0:p.uri;if(e){const t=h(e,c);return{videoSourceUrl:t,patchVideoSource:e=>{e.src=t,e.load()}}}}else{var m;const r=parseInt(i.width.toString(),10),o=parseInt(i.height.toString(),10),a=function(e,t,i,r){return{wScale:e/i,hScale:t/r}}(e,t,r,o),s=function(e,t,i){const r=Math.min(e.wScale,e.hScale);return{width:Math.round(t*r),height:Math.round(i*r)}}(a,r,o),u=function(e,t){let{width:i,height:r}=t;return e.find((e=>e.width*e.height>i*r))||e[e.length-1]}(n,s),l=null==(m=u.types.find((e=>"mp4"===e.format)))?void 0:m.uri;if(l){const e=h(l,c);return{videoSourceUrl:e,patchVideoSource:t=>{t.src=e,t.load()}}}}}return f?{videoSourceUrl:i,patchVideoSource:e=>{e.src=i,e.load()}}:{videoSourceUrl:"",patchVideoSource:()=>{}}}var d=o(929),f=o.n(d);const g={async measure(e,t,i,r,n,o,a,s){const{videoSourceUrl:c,patchVideoSource:u}=await l(t.offsetWidth,t.offsetHeight,r,i,n,o,a,s),h=function(e,t){const i=e.networkState===e.NETWORK_NO_SOURCE,r=!e.currentSrc.endsWith(t);return Boolean(t&&(r||i))}(e,c);return{needsSrcUpdate:h,patchVideoSource:u}},mutate(e,t,i,r,n,o,a,s,c){if(t.toggleAttribute("autoplay",i),null!=c&&c[0]){const e=c[0].width/c[0].height;t.style.setProperty("--aspect-ratio",e.toString())}!function(e,t){const i=(null==t?void 0:t.x)??50,r=(null==t?void 0:t.y)??50;e.style.setProperty("--focal-x",i.toString()),e.style.setProperty("--focal-y",r.toString())}(t,s),function(e,t,i,r,n){const o=t.paused||""===t.currentSrc;if(e&&o)if(t.ontimeupdate=null,t.onseeked=null,t.onplay=null,n){const e=t.muted;t.ontimeupdate=()=>{t.currentTime>0&&(t.ontimeupdate=null,t.onseeked=()=>{t.onseeked=null,t.muted=e,p(t,i,r)},t.currentTime=0)}}else t.onplay=()=>{t.onplay=null,p(t,i,r)}}(r,t,e,n,i),r&&a(t),t.playbackRate=o}};function p(e,t,i){"fade"===i&&(t.style.transition="opacity 1.6s ease-out"),t.style.opacity="0",e.style.opacity="1"}const m=function(e,t){return class extends t.HTMLElement{constructor(){super(),f()(this,"timeoutId",void 0),this.timeoutId=null}dispatchVideoError(e){this.dispatchEvent(new CustomEvent("videoerror",{detail:{error:e},bubbles:!0}))}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){var t;null==(t=e.intersectionService)||t.observe(this)}disconnectedCallback(){this.unobserveIntersect()}unobserveIntersect(){var t;null==(t=e.intersectionService)||t.unobserve(this)}isPrefersReducedMotion(){return t.matchMedia("(prefers-reduced-motion: reduce)").matches}reLayout(){if(!this.dataset.videoInfo)return;const{uri:t,sources:i,adaptiveSources:r,autoplay:n,playbackRate:o,posterEffect:a,qualityPolicy:s,focalPoint:c,duration:u}=JSON.parse(this.dataset.videoInfo),h=!this.isPrefersReducedMotion()&&n,l=this.querySelector("video"),d=this.querySelector("img");e.mutationService.measure((async()=>{const n=await g.measure(l,this,s,t,i,r,u,(e=>this.dispatchVideoError(e))),{needsSrcUpdate:f,patchVideoSource:p}=n;e.mutationService.mutate((()=>{g.mutate(d,l,h,f,a,o,p,c,i)}))}))}static get observedAttributes(){return["data-video-info"]}}};var T=o(709),_=o.n(T);function I(e,t){void 0===e&&(e=null),void 0===t&&(t={});!function(e,t){const i="wow-video";if(void 0===(e=e||window).customElements.get(i)){let r;e.IntersectionObserver&&(r=new IntersectionObserver((e=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.reLayout()}return e}))),{rootMargin:"50% 100%"}));const n=m({mutationService:_(),intersectionService:r,...t},e);e.customElements.define(i,n)}}(e||window,t)}const E="v1",L=2,b=1920,w=1920,y=1e3,A=1e3,v={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},O={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},S={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},R={[S.CENTER]:{x:.5,y:.5},[S.TOP_LEFT]:{x:0,y:0},[S.TOP_RIGHT]:{x:1,y:0},[S.TOP]:{x:.5,y:0},[S.BOTTOM_LEFT]:{x:0,y:1},[S.BOTTOM_RIGHT]:{x:1,y:1},[S.BOTTOM]:{x:.5,y:1},[S.RIGHT]:{x:1,y:.5},[S.LEFT]:{x:0,y:.5}},M={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},G={BG:"bg",IMG:"img",SVG:"svg"},F={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},P={classic:1,super:2},C={radius:"0.66",amount:"1.00",threshold:"0.01"},x={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},N=25e6,k=[1.5,2,4],H={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},U={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},B={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},Y={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",AVIF:"avif",UNRECOGNIZED:"unrecognized"},$={AVIF:"AVIF",PAVIF:"PAVIF"};Y.JPG,Y.JPEG,Y.JPE,Y.PNG,Y.GIF,Y.WEBP;function j(e,...t){return function(...i){const r=i[i.length-1]||{},n=[e[0]];return t.forEach((function(t,o){const a=Number.isInteger(t)?i[t]:r[t];n.push(a,e[o+1])})),n.join("")}}function z(e){return e[e.length-1]}const V=[Y.PNG,Y.JPEG,Y.JPG,Y.JPE,Y.WIX_ICO_MP,Y.WIX_MP,Y.WEBP,Y.AVIF],D=[Y.JPEG,Y.JPG,Y.JPE];function W(e,t,i){return i&&t&&!(!(r=t.id)||!r.trim()||"none"===r.toLowerCase())&&Object.values(v).includes(e);var r}function q(e,t,i,r){if(/(^https?)|(^data)|(^\/\/)/.test(e))return!1;if(!function(e,t,i){return!(J(e)||X(e))||!t||i}(e,t,i))return!1;const n=function(e){return V.includes(re(e))}(e),o=function(e,t,i){return!(!Q(e)||!t&&!i)}(e,i,r);return n||o}function Z(e){return re(e)===Y.PNG}function J(e){return re(e)===Y.WEBP}function Q(e){return re(e)===Y.GIF}function X(e){return re(e)===Y.AVIF}const K=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),ee=["\\.","\\*"],te="_";function ie(e){return function(e){return D.includes(re(e))}(e)?Y.JPG:Z(e)?Y.PNG:J(e)?Y.WEBP:Q(e)?Y.GIF:X(e)?Y.AVIF:Y.UNRECOGNIZED}function re(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function ne(e,t,i,r,n){let o;return o=n===O.FILL?function(e,t,i,r){return Math.max(i/e,r/t)}(e,t,i,r):n===O.FIT?function(e,t,i,r){return Math.min(i/e,r/t)}(e,t,i,r):1,o}function oe(e,t,i,r,n,o){e=e||r.width,t=t||r.height;const{scaleFactor:a,width:s,height:c}=function(e,t,i,r,n){let o,a=i,s=r;if(o=ne(e,t,i,r,n),n===O.FIT&&(a=e*o,s=t*o),a&&s&&a*s>N){const i=Math.sqrt(N/(a*s));a*=i,s*=i,o=ne(e,t,a,s,n)}return{scaleFactor:o,width:a,height:s}}(e,t,r.width*n,r.height*n,i);return function(e,t,i,r,n,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:c,forceUSM:u}=function(e,t,i,r){if("auto"===r)return function(e,t){const i=ue(e,t);return{optimizedScaleFactor:H[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t);if("super"===r)return function(e){return{optimizedScaleFactor:z(k),upscaleMethodValue:P.super,forceUSM:!(k.includes(e)||e>z(k))}}(i);return function(e,t){const i=ue(e,t);return{optimizedScaleFactor:H[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t)}(e,t,o,n);let h=i,l=r;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case O.FILL:h=i*(s/o),l=r*(s/o);break;case O.FIT:h=e*s,l=t*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(e,t,s,c,o,a,i)}function ae(e,t,i,r){const n=ce(i)||function(e=S.CENTER){return R[e]}(r);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function se(e){return e.alignment&&M[e.alignment]||M[S.CENTER]}function ce(e){let t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:he(Math.max(0,Math.min(100,e.x))/100,2),y:he(Math.max(0,Math.min(100,e.y))/100,2)}),t}function ue(e,t){const i=e*t;return i>H[U.HIGH].size?U.HIGH:i>H[U.MEDIUM].size?U.MEDIUM:i>H[U.LOW].size?U.LOW:U.TINY}function he(e,t){const i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function le(e){return e&&e.upscaleMethod&&F[e.upscaleMethod.toUpperCase()]||F.AUTO}function de(e,t){const i=J(e)||X(e);return re(e)===Y.GIF||i&&t}const fe={isMobile:!1},ge=function(e){return fe[e]};function pe(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e=t&&i,fe["isMobile"]=e}var e}function me(e,t){const i={css:{container:{}}},{css:r}=i,{fittingType:n}=e;switch(n){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:case v.LEGACY_STRIP_ORIGINAL_SIZE:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat";break;case v.SCALE_TO_FIT:case v.LEGACY_STRIP_SCALE_TO_FIT:r.container.backgroundSize="contain",r.container.backgroundRepeat="no-repeat";break;case v.STRETCH:r.container.backgroundSize="100% 100%",r.container.backgroundRepeat="no-repeat";break;case v.SCALE_TO_FILL:case v.LEGACY_STRIP_SCALE_TO_FILL:r.container.backgroundSize="cover",r.container.backgroundRepeat="no-repeat";break;case v.TILE_HORIZONTAL:case v.LEGACY_STRIP_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case v.TILE_VERTICAL:case v.LEGACY_STRIP_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case v.TILE:case v.LEGACY_STRIP_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case v.LEGACY_STRIP_FIT_AND_TILE:r.container.backgroundSize="contain",r.container.backgroundRepeat="repeat";break;case v.FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case v.LEGACY_BG_NORMAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat"}switch(t.alignment){case S.CENTER:r.container.backgroundPosition="center center";break;case S.LEFT:r.container.backgroundPosition="left center";break;case S.RIGHT:r.container.backgroundPosition="right center";break;case S.TOP:r.container.backgroundPosition="center top";break;case S.BOTTOM:r.container.backgroundPosition="center bottom";break;case S.TOP_RIGHT:r.container.backgroundPosition="right top";break;case S.TOP_LEFT:r.container.backgroundPosition="left top";break;case S.BOTTOM_RIGHT:r.container.backgroundPosition="right bottom";break;case S.BOTTOM_LEFT:r.container.backgroundPosition="left bottom"}return i}const Te={[S.CENTER]:"center",[S.TOP]:"top",[S.TOP_LEFT]:"top left",[S.TOP_RIGHT]:"top right",[S.BOTTOM]:"bottom",[S.BOTTOM_LEFT]:"bottom left",[S.BOTTOM_RIGHT]:"bottom right",[S.LEFT]:"left",[S.RIGHT]:"right"},_e={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ie(e,t){const i={css:{container:{},img:{}}},{css:r}=i,{fittingType:n}=e,o=t.alignment;switch(r.container.position="relative",n){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(r.img.width=e.parts[0].width,r.img.height=e.parts[0].height):(r.img.width=e.src.width,r.img.height=e.src.height);break;case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="contain",r.img.objectPosition=Te[o]||"unset";break;case v.LEGACY_BG_NORMAL:r.img.width="100%",r.img.height="100%",r.img.objectFit="none",r.img.objectPosition=Te[o]||"unset";break;case v.STRETCH:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="fill";break;case v.SCALE_TO_FILL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="cover"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==t.width||r.img.height!==t.height)){const e=Math.round((t.height-r.img.height)/2),i=Math.round((t.width-r.img.width)/2);Object.assign(r.img,_e,function(e,t,i){return{[S.TOP_LEFT]:{top:0,left:0},[S.TOP_RIGHT]:{top:0,right:0},[S.TOP]:{top:0,left:t},[S.BOTTOM_LEFT]:{bottom:0,left:0},[S.BOTTOM_RIGHT]:{bottom:0,right:0},[S.BOTTOM]:{bottom:0,left:t},[S.RIGHT]:{top:e,right:0},[S.LEFT]:{top:e,left:0},[S.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(e,i,t)[o])}return i}function Ee(e,t){const i={css:{container:{}},attr:{container:{},img:{}}},{css:r,attr:n}=i,{fittingType:o}=e,a=t.alignment,{width:s,height:c}=e.src;let u;switch(r.container.position="relative",o){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:case v.TILE:e.parts&&e.parts.length?(n.img.width=e.parts[0].width,n.img.height=e.parts[0].height):(n.img.width=s,n.img.height=c),n.img.preserveAspectRatio="xMidYMid slice";break;case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:n.img.width="100%",n.img.height="100%",n.img.transform="",n.img.preserveAspectRatio="";break;case v.STRETCH:n.img.width=t.width,n.img.height=t.height,n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="none";break;case v.SCALE_TO_FILL:q(e.src.id)?(n.img.width=t.width,n.img.height=t.height):(u=function(e,t,i,r,n){const o=ne(e,t,i,r,n);return{width:Math.round(e*o),height:Math.round(t*o)}}(s,c,t.width,t.height,O.FILL),n.img.width=u.width,n.img.height=u.height),n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==t.width||n.img.height!==t.height)){let e,i,r=0,s=0;o===v.TILE?(e=t.width%n.img.width,i=t.height%n.img.height):(e=t.width-n.img.width,i=t.height-n.img.height);const c=Math.round(e/2),u=Math.round(i/2);switch(a){case S.TOP_LEFT:r=0,s=0;break;case S.TOP:r=c,s=0;break;case S.TOP_RIGHT:r=e,s=0;break;case S.LEFT:r=0,s=u;break;case S.CENTER:r=c,s=u;break;case S.RIGHT:r=e,s=u;break;case S.BOTTOM_LEFT:r=0,s=i;break;case S.BOTTOM:r=c,s=i;break;case S.BOTTOM_RIGHT:r=e,s=i}n.img.x=r,n.img.y=s}return n.container.width=t.width,n.container.height=t.height,n.container.viewBox=[0,0,t.width,t.height].join(" "),i}function Le(e,t,i){let r;switch(t.crop&&(r=function(e,t){const i=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),r=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return i&&r&&(e.width!==i||e.height!==r)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:i,height:r}:null}(t,t.crop),r&&(e.src.width=r.width,e.src.height=r.height,e.src.isCropped=!0,e.parts.push(we(r)))),e.fittingType){case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:case v.FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:case v.LEGACY_BG_NORMAL:e.parts.push(be(e,i));break;case v.SCALE_TO_FILL:e.parts.push(function(e,t){const i=oe(e.src.width,e.src.height,O.FILL,t,e.devicePixelRatio,e.upscaleMethod),r=ce(e.focalPoint);return{transformType:r?O.FILL_FOCAL:O.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:se(t),focalPointX:r&&r.x,focalPointY:r&&r.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case v.STRETCH:e.parts.push(function(e,t){const i=ne(e.src.width,e.src.height,t.width,t.height,O.FILL),r={...t};return r.width=e.src.width*i,r.height=e.src.height*i,be(e,r)}(e,i));break;case v.TILE_HORIZONTAL:case v.TILE_VERTICAL:case v.TILE:case v.LEGACY_ORIGINAL_SIZE:case v.ORIGINAL_SIZE:r=ae(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],r),e.src.width=r.width,e.src.height=r.height):e.parts.push(we(r));break;case v.LEGACY_STRIP_TILE_HORIZONTAL:case v.LEGACY_STRIP_TILE_VERTICAL:case v.LEGACY_STRIP_TILE:case v.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:O.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:se(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case v.LEGACY_STRIP_SCALE_TO_FIT:case v.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:O.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case v.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:O.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:se(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function be(e,t){const i=oe(e.src.width,e.src.height,O.FIT,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:!e.src.width||!e.src.height?O.FIT:O.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:M.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function we(e){return{transformType:O.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function ye(e,t){t=t||{},e.quality=function(e,t){const i=e.fileType===Y.PNG,r=e.fileType===Y.JPG,n=e.fileType===Y.WEBP,o=e.fileType===Y.AVIF,a=r||i||n||o;if(a){const r=z(e.parts),n=(s=r.width,c=r.height,H[ue(s,c)].quality);let o=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return o=i?o+5:o,o}var s,c;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=t.autoEncode??!0,e.encoding=t?.encoding,e.unsharpMask=function(e,t){if(function(e){const t="number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&e.radius>=.1&&e.radius<=500,i="number"==typeof e.amount&&!isNaN(e.amount)&&e.amount>=0&&e.amount<=10,r="number"==typeof e.threshold&&!isNaN(e.threshold)&&e.threshold>=0&&e.threshold<=255;return t&&i&&r}(t.unsharpMask))return{radius:he(t.unsharpMask?.radius,2),amount:he(t.unsharpMask?.amount,2),threshold:he(t.unsharpMask?.threshold,2)};if(("number"!=typeof(i=(i=t.unsharpMask)||{}).radius||isNaN(i.radius)||0!==i.radius||"number"!=typeof i.amount||isNaN(i.amount)||0!==i.amount||"number"!=typeof i.threshold||isNaN(i.threshold)||0!==i.threshold)&&function(e){const t=z(e.parts);return!(t.scaleFactor>=1)||t.forceUSM||t.transformType===O.FIT}(e))return C;var i;return}(e,t),e.filters=function(e){const t=e.filters||{},i={};Ae(t[B.CONTRAST],-100,100)&&(i[B.CONTRAST]=t[B.CONTRAST]);Ae(t[B.BRIGHTNESS],-100,100)&&(i[B.BRIGHTNESS]=t[B.BRIGHTNESS]);Ae(t[B.SATURATION],-100,100)&&(i[B.SATURATION]=t[B.SATURATION]);Ae(t[B.HUE],-180,180)&&(i[B.HUE]=t[B.HUE]);Ae(t[B.BLUR],0,100)&&(i[B.BLUR]=t[B.BLUR]);return i}(t)}function Ae(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function ve(e,t,i,r){const n=function(e){return e?.isSEOBot??!1}(r),o=ie(t.id),a=function(e,t){const i=/\.([^.]*)$/,r=new RegExp(`(${K.concat(ee).join("|")})`,"g");if(t&&t.length){let e=t;const n=t.match(i);return n&&V.includes(n[1])&&(e=t.replace(i,"")),encodeURIComponent(e).replace(r,te)}const n=e.match(/\/(.*?)$/);return(n?n[1]:e).replace(i,"")}(t.id,t.name),s=n?1:function(e){return Math.min(e.pixelAspectRatio||1,L)}(i),c=re(t.id),u=c,h=q(t.id,r?.hasAnimation,r?.allowAnimatedTransform,r?.allowFullGIFTransformation),l={fileName:a,fileExtension:c,fileType:o,fittingType:e,preferredExtension:u,src:{id:t.id,width:t.width,height:t.height,isCropped:!1,isAnimated:de(t.id,r?.hasAnimation)},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:le(r),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:h,allowFullGIFTransformation:r?.allowFullGIFTransformation,isPlaceholderFlow:r?.isPlaceholderFlow};return h&&(Le(l,t,i),ye(l,r)),l}function Oe(e,t,i){const r={...i},n=ge("isMobile");switch(e){case v.LEGACY_BG_FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:case v.LEGACY_BG_NORMAL:const e=n?y:b,i=n?A:w;r.width=Math.min(e,t.width),r.height=Math.min(i,Math.round(r.width/(t.width/t.height))),r.pixelAspectRatio=1}return r}const Se=j`fit/w_${"width"},h_${"height"}`,Re=j`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Me=j`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,Ge=j`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,Fe=j`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Pe=j`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Ce=j`,lg_${"upscaleMethodValue"}`,xe=j`,q_${"quality"}`,Ne=j`,quality_auto`,ke=j`,usm_${"radius"}_${"amount"}_${"threshold"}`,He=j`,bl`,Ue=j`,wm_${"watermark"}`,Be={[B.CONTRAST]:j`,con_${"contrast"}`,[B.BRIGHTNESS]:j`,br_${"brightness"}`,[B.SATURATION]:j`,sat_${"saturation"}`,[B.HUE]:j`,hue_${"hue"}`,[B.BLUR]:j`,blur_${"blur"}`},Ye=j`,enc_auto`,$e=j`,enc_avif`,je=j`,enc_pavif`,ze=j`,pstr`,Ve=j`,anm_all`;function De(e,t,i,r={},n){if(q(t.id,r?.hasAnimation,r?.allowAnimatedTransform,r?.allowFullGIFTransformation)){if(J(t.id)||X(t.id)){const{alignment:o,...a}=i;t.focalPoint={x:void 0,y:void 0},delete t?.crop,n=ve(e,t,a,r)}else n=n||ve(e,t,i,r);return function(e){const t=[];e.parts.forEach((e=>{switch(e.transformType){case O.CROP:t.push(Ge(e));break;case O.LEGACY_CROP:t.push(Fe(e));break;case O.LEGACY_FILL:let i=Pe(e);e.upscale&&(i+=Ce(e)),t.push(i);break;case O.FIT:let r=Se(e);e.upscale&&(r+=Ce(e)),t.push(r);break;case O.FILL:let n=Re(e);e.upscale&&(n+=Ce(e)),t.push(n);break;case O.FILL_FOCAL:let o=Me(e);e.upscale&&(o+=Ce(e)),t.push(o)}}));let i=t.join("/");if(e.quality&&(i+=xe(e)),e.unsharpMask&&(i+=ke(e.unsharpMask)),e.progressive||(i+=He(e)),e.watermark&&(i+=Ue(e)),e.filters&&(i+=Object.keys(e.filters).map((t=>Be[t](e.filters))).join("")),e.fileType!==Y.GIF&&(e.encoding===$.AVIF?(i+=$e(e),i+=Ne(e)):e.encoding===$.PAVIF?(i+=je(e),i+=Ne(e)):e.autoEncode&&(i+=Ye(e))),e.src?.isAnimated&&e.transformed){const t=Q(e.src.id),r=!0===e.isPlaceholderFlow,n=!0===e.allowFullGIFTransformation;r?i+=ze(e):t&&n&&(i+=Ve(e))}return`${e.src.id}/${E}/${i}/${e.fileName}.${e.preferredExtension}`}(n)}return t.id}const We={[S.CENTER]:"50% 50%",[S.TOP_LEFT]:"0% 0%",[S.TOP_RIGHT]:"100% 0%",[S.TOP]:"50% 0%",[S.BOTTOM_LEFT]:"0% 100%",[S.BOTTOM_RIGHT]:"100% 100%",[S.BOTTOM]:"50% 100%",[S.RIGHT]:"100% 50%",[S.LEFT]:"0% 50%"},qe=Object.entries(We).reduce(((e,[t,i])=>(e[i]=t,e)),{}),Ze=[v.TILE,v.TILE_HORIZONTAL,v.TILE_VERTICAL,v.LEGACY_BG_FIT_AND_TILE,v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,v.LEGACY_BG_FIT_AND_TILE_VERTICAL],Je=[v.LEGACY_ORIGINAL_SIZE,v.ORIGINAL_SIZE,v.LEGACY_BG_NORMAL];function Qe(e,t,{width:i,height:r}){return e===v.TILE&&t.width>i&&t.height>r}function Xe(e,{width:t,height:i}){if(!t||!i){const r=t||Math.min(980,e.width),n=r/e.width;return{width:r,height:i||e.height*n}}return{width:t,height:i}}function Ke(e,t,i,r="center"){const n={img:{},container:{}};if(e===v.SCALE_TO_FILL){const e=t.focalPoint&&function(e){const t=`${e.x}% ${e.y}%`;return qe[t]||""}(t.focalPoint),o=e||r;t.focalPoint&&!e?n.img={objectPosition:et(t,i,t.focalPoint)}:n.img={objectPosition:We[o]}}else[v.LEGACY_ORIGINAL_SIZE,v.ORIGINAL_SIZE].includes(e)?n.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ze.includes(e)&&(n.container={backgroundSize:`${t.width}px ${t.height}px`});return n}function et(e,t,i){const{width:r,height:n}=e,{width:o,height:a}=t,{x:s,y:c}=i;if(!o||!a)return`${s}% ${c}%`;const u=Math.max(o/r,a/n),h=r*u,l=n*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),f=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${f&&Math.floor(f/(l-a)*100)}%`}const tt={width:"100%",height:"100%"};function it(e,t,i,r={}){const{autoEncode:n=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s,allowAnimatedTransform:c,encoding:u}=r;if(!W(e,t,i))return x;const h=!0,l=c??h,d=q(t.id,s,l);if(!d||a)return rt(e,t,i,{...r,autoEncode:n,useSrcset:d});const f={...i,...Xe(t,i)},{alignment:g,htmlTag:p}=f,m=Qe(e,t,f),T=function(e,t,{width:i,height:r},n=!1){if(n)return{width:i,height:r};const o=!Je.includes(e),a=Qe(e,t,{width:i,height:r}),s=!a&&Ze.includes(e),c=s?t.width:i,u=s?t.height:r,h=o?function(e,t){return e>900?t?.05:.15:e>500?t?.1:.18:e>200?.25:1}(c,Z(t.id)):1;return{width:a?1920:c*h,height:u*h}}(e,t,f,o),_=function(e,t,i){return i?0:Ze.includes(t)?1:e>200?2:3}(f.width,e,o),I=function(e,t){const i=Ze.includes(e)&&!t;return e===v.SCALE_TO_FILL||i?v.SCALE_TO_FIT:e}(e,m),E=Ke(e,t,i,g),{uri:L}=rt(I,t,{...T,alignment:g,htmlTag:p},{autoEncode:n,filters:_?{blur:_}:{},hasAnimation:s,allowAnimatedTransform:l,encoding:u,isPlaceholderFlow:h}),{attr:b={},css:w}=rt(e,t,{...f,alignment:g,htmlTag:p},{});return w.img=w.img||{},w.container=w.container||{},Object.assign(w.img,E.img,tt),Object.assign(w.container,E.container),{uri:L,css:w,attr:b,transformed:!0}}function rt(e,t,i,r){let n={};if(W(e,t,i)){const o=Oe(e,t,i),a=ve(e,t,o,r);n.uri=De(e,t,o,r,a),r?.useSrcset&&(n.srcset=function(e,t,i,r,n){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?n.uri:De(e,t,{...i,pixelAspectRatio:1},r)} 1x`,`${2===o?n.uri:De(e,t,{...i,pixelAspectRatio:2},r)} 2x`]}}(e,t,o,r,n)),Object.assign(n,function(e,t){let i;return i=t.htmlTag===G.BG?me:t.htmlTag===G.SVG?Ee:Ie,i(e,t)}(a,o),{transformed:a.transformed})}else n=x;return n}const nt="https://static.wixstatic.com/media/";"undefined"!=typeof window&&window.devicePixelRatio;pe();pe();const ot=nt,at={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},st=(e,t)=>(Array.isArray(t)?t:[t]).reduce(((t,i)=>{const r=e[i];return void 0!==r?Object.assign(t,{[i]:r}):t}),{}),ct=(e,t)=>e&&t&&Object.keys(t).forEach((i=>{const r=i,n=t[r];void 0!==n?e.style[r]=((e,t)=>"number"!=typeof t||at[e]?t.toString():`${t}px`)(r,n):e.style.removeProperty(r)})),ut=(e,t,i)=>{if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:r}=e,n=e.displayMode||v.SCALE_TO_FILL,o=Object.assign(st(r,["upscaleMethod"]),st(e,["filters","encoding","allowFullGIFTransformation"]),e.quality||r.quality,{hasAnimation:e?.hasAnimation||r?.hasAnimation}),a=e.imageData.devicePixelRatio||t.devicePixelRatio,s=lt(a),c=rt(n,Object.assign(st(r,["width","height","crop","name","focalPoint"]),{id:r.uri}),{width:e.targetWidth,height:e.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:e.alignType||S.CENTER},o);return c.uri=ht(c.uri,t.staticMediaUrl,t.mediaRootUrl),c},ht=(e,t,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;let r=`${t}/`;return e&&(/^micons\//.test(e)?r=i:"ico"===/[^.]+$/.exec(e)?.[0]&&(r=r.replace("media","ficons"))),r+e},lt=e=>{const t=window.location.search.split("&").map((e=>e.split("="))).find((e=>e[0]?.toLowerCase().includes("devicepixelratio")));return(t?.[1]?Number(t[1]):null)||e||1},dt=e=>e.getAttribute("src");const ft={measure:function(e,t,i,{containerElm:r,bgEffect:n="none",sourceSets:o},a){const s=i.image,c=i[e],u=(h=a.getScreenHeightOverride?.(),h||document.documentElement.clientHeight||window.innerHeight||0);var h;const l=r?.dataset.mediaHeightOverrideType,d=n&&"none"!==n||o&&o.some((e=>e.scrollEffect)),f=r&&d?r:c,g=window.getComputedStyle(c).getPropertyValue("--bg-scrub-effect"),{width:p,height:m}=a.getMediaDimensionsByEffect?.(g||n,f.offsetWidth,f.offsetHeight,u)||{width:c.offsetWidth,height:c.offsetHeight};if(o&&(t.sourceSetsTargetHeights=function(e,t,i,r,n){const o={};return e.forEach((({mediaQuery:e,scrollEffect:a})=>{o[e]=n.getMediaDimensionsByEffect?.(a,t,i,r).height||i})),o}(o,f.offsetWidth,f.offsetHeight,u,a)),!s)return;const T=dt(s);g&&(t.top=.5*(c.offsetHeight-m),t.left=.5*(c.offsetWidth-p)),t.width=p,t.height=function(e,t){return"fixed"===t||"viewport"===t?document.documentElement.clientHeight+80:e}(m,l),t.screenHeight=u,t.imgSrc=T,t.boundingRect=c.getBoundingClientRect(),t.mediaHeightOverrideType=l,t.srcset=s.srcset},patch:function(e,t,i,r,n,o,a,s,c,u){if(!Object.keys(t).length)return;const{imageData:h}=r,l=i[e],d=i.image;c&&(h.devicePixelRatio=1);const f=r.targetScale||1,g=n.isExperimentOpen?.("specs.thunderbolt.allowFullGIFTransformation"),p={...r,...!r.skipMeasure&&{targetWidth:(t.width||0)*f,targetHeight:(t.height||0)*f},displayMode:h.displayMode,allowFullGIFTransformation:g},m=ut(p,o,"img"),T=m?.css?.img||{},_=function(e,t,i,r,n){const o=function(e,t=1){return 1!==t?{...e,width:"100%",height:"100%"}:e}(t,r);if(n&&(delete o.height,o.width="100%"),!e)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===e&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),a}(t.mediaHeightOverrideType,T,h.displayMode,f,s);ct(d,_),(t.top||t.left)&&ct(l,{top:`${t.top}px`,left:`${t.left}px`});const I=m?.uri||"",E=h?.hasAnimation||r?.hasAnimation,L=function(e,t,i){const{sourceSets:r}=t;if(!r||!r.length)return;const n={};return r.forEach((({mediaQuery:r,crop:o,focalPoint:a})=>{const s={...t,targetHeight:(e.sourceSetsTargetHeights||{})[r]||0,imageData:{...t.imageData,crop:o,focalPoint:a}},c=ut(s,i,"img");n[r]=c.uri||""})),n}(t,p,o);if(u&&(d.dataset.ssrSrcDone="true"),r.isLQIP&&r.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",d.complete?d.onload=function(){d.dataset.loadDone=""}:d.onload=function(){d.complete?d.dataset.loadDone="":d.onload=function(){d.dataset.loadDone=""}}),a){((e,t)=>re(e)===Y.GIF||re(e)===Y.WEBP&&t)(h.uri,E)?(d.setAttribute("fetchpriority","low"),d.setAttribute("loading","lazy"),d.setAttribute("decoding","async")):d.setAttribute("fetchpriority","high"),d.currentSrc!==I&&d.setAttribute("src",I);t.srcset&&!t.srcset.split(", ").some((e=>e.split(" ")[0]===I))&&d.setAttribute("srcset",I),i.picture&&p.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((e=>{const t=e.media||"",i=L?.[t];e.srcset!==i&&e.setAttribute("srcset",i||"")}))}}},gt={parallax:"ImageParallax",fixed:"ImageReveal"};const pt=function(e,t,i){return class extends i.HTMLElement{constructor(){super(),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){t.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const r={},n={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&>[u];h&&h.length&&h.forEach((e=>{e.scrollEffect&&(e.scrollEffect=gt[e.scrollEffect])})),r[o]=this,a.containerId&&(r[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?r[a.containerId]:void 0;if(r.image=this.querySelector("img"),r.picture=this.querySelector("picture"),!r.image){const e=this;return void this.observeChildren(e)}this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((()=>{ft.measure(o,n,r,{containerElm:d,bgEffect:l,sourceSets:h},e)}));const f=(i,c)=>{e.mutationService.mutate((()=>{ft.patch(o,n,r,a,e,t,i,s,l,c)}))},g=r.image,p=this.dataset.hasSsrSrc&&!g.dataset.ssrSrcDone;!dt(g)||p?f(!0,!0):this.debounceImageLoad(f)}debounceImageLoad(e){clearTimeout(this.timeoutId),this.timeoutId=i.setTimeout((()=>{e(!0)}),250),e(!1)}observeResize(){e.resizeService?.observe(this)}unobserveResize(){e.resizeService?.unobserve(this)}observeIntersect(){e.intersectionService?.observe(this)}unobserveIntersect(){e.intersectionService?.unobserve(this)}observeChildren(e){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(e,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};const mt=()=>{try{return"true"===new URL(window.location.href).searchParams.get("disableLazyLoading")}catch{return!1}};function Tt(e={},t=null,i={}){if("undefined"==typeof window)return;const r={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,disableImagesLazyLoading:mt(),...i},n=function(e,t){const i="wow-image";if(void 0===(e=e||window).customElements.get(i)){let r,n;return e.ResizeObserver&&(r=new e.ResizeObserver((e=>e.map((e=>e.target.reLayout()))))),e.IntersectionObserver&&(n=new IntersectionObserver((e=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.observeResize()}return e}))),{rootMargin:"150% 100%"})),function(o){const a=pt({resizeService:r,intersectionService:n,mutationService:_(),...t},o,e);e.customElements.define(i,a)}}}(t,e);n&&n(r)}const _t="L36Tx5",{ke:It}=e,Et=({fittingType:e,src:t,target:i,options:r})=>{const n=it(e,t,i,{...r,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${It}${n.uri}`),n},Lt=/^[a-z]+:/,bt=e=>{const{id:t,containerId:i,uri:n,alt:o,name:a="",role:s,width:c,height:u,displayMode:h,devicePixelRatio:l,quality:d,alignType:f,bgEffectName:g="",focalPoint:p,upscaleMethod:m,className:T="",crop:_,imageStyles:I={},targetWidth:E,targetHeight:L,targetScale:b,onLoad:w=()=>{},onError:y=()=>{},shouldUseLQIP:A,containerWidth:v,containerHeight:O,getPlaceholder:S,isInFirstFold:R,placeholderTransition:M,socialAttrs:G,isSEOBot:F,skipMeasure:P,hasAnimation:C,encoding:x,isFluidLayout:N}=e,k=r.useRef(null);let H="";const U="blur"===M,B=r.useRef(null);if(!B.current)if(S||A||R||F){const e={upscaleMethod:m,...d||{},shouldLoadHQImage:R,isSEOBot:F,hasAnimation:C,encoding:x};B.current=(S||Et)({fittingType:h,src:{id:n,width:c,height:u,crop:_,name:a,focalPoint:p},target:{width:v,height:O,alignment:f,htmlTag:"img"},options:e}),H=!B.current.transformed||R||F?"":"true"}else B.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const Y=!F&&(S||A)&&!R&&B.current.transformed,$=r.useMemo((()=>JSON.stringify({containerId:i,...i&&{containerId:i},...f&&{alignType:f},...P&&{skipMeasure:!0},displayMode:h,...v&&{targetWidth:v},...O&&{targetHeight:O},...E&&{targetWidth:E},...L&&{targetHeight:L},...b&&{targetScale:b},isLQIP:Y,isSEOBot:F,lqipTransition:M,encoding:x,imageData:{width:c,height:u,uri:n,name:a,displayMode:h,hasAnimation:C,...d&&{quality:d},...l&&{devicePixelRatio:l},...p&&{focalPoint:p},..._&&{crop:_},...m&&{upscaleMethod:m}}})),[i,f,P,h,v,O,E,L,b,Y,F,M,x,c,u,n,a,C,d,l,p,_,m]),j=B.current,z=j?.uri,V=j?.srcset,D=j.css?.img,W=`${_t} ${T}`;r.useEffect((()=>{const e=k.current;w&&e?.currentSrc&&e?.complete&&w({target:e})}),[]);const q=j&&!j?.transformed?`max(${c}px, 100%)`:E?`${E}px`:null;return r.createElement("wow-image",{id:t,class:W,"data-image-info":$,"data-motion-part":`BG_IMG ${i}`,"data-bg-effect-name":g,"data-has-ssr-src":H,"data-animate-blur":!F&&Y&&U?"":void 0,"data-is-responsive":N?"true":void 0,style:q?{"--wix-img-max-width":q}:{}},r.createElement("img",{src:z,ref:k,alt:o||"",role:s,style:{...D,...I},onLoad:w,onError:y,width:v||void 0,height:O||void 0,...G,srcSet:R?V?.dpr?.map((e=>Lt.test(e)?e:`${It}${e}`)).join(", "):void 0,fetchpriority:R?"high":void 0,loading:!1===R?"lazy":void 0,suppressHydrationWarning:!0}))};"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{I(),Tt()}),{once:!0}):(I(),Tt()));const wt=e=>{const{motionPart:t,videoRef:o,videoMedia:a,muted:c,loop:u,autoplay:h,playbackRate:l=1,posterEffect:d,id:f,qualityPolicy:g="proportional",focalPoint:p={x:50,y:50},onError:m}=e,T=r.useRef(null),_=r.useMemo((()=>{const e=(a.sources||[]).sort(((e,t)=>e.width*e.height-t.width*t.height));return JSON.stringify({...a,playbackRate:l,posterEffect:d,sources:e,autoplay:h,qualityPolicy:g,focalPoint:p})}),[a,l,d,h,g,p]),I=a.poster&&r.createElement(bt,i()({},a.poster,{focalPoint:p,id:`videoPoster_${f}`,displayMode:"fill",alt:a.name||a.poster.alt||"",quality:a.poster.quality?{quality:a.poster.quality}:void 0})),E=r.useCallback((e=>{if(m){var t;const i=e.currentTarget,r=new Error(`Video playback error: ${(null==(t=i.error)?void 0:t.message)||"Unknown error"}`);m(r)}}),[m]),L=r.useCallback((e=>{var t;m&&null!=(t=e.detail)&&t.error&&m(e.detail.error)}),[m]);return r.useEffect((()=>{const e=T.current;return null==e||e.addEventListener("videoerror",L),()=>{null==e||e.removeEventListener("videoerror",L)}}),[m,L]),r.createElement("wow-video",{ref:T,"data-video-info":_,"data-motion-part":t||"",class:n},r.createElement("video",{ref:o,className:s,crossOrigin:"anonymous",playsInline:!0,muted:c,loop:u,preload:"none",onError:E}),I)}})(),a})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define("video",["React"],t):"object"==typeof exports?exports.video=t(require("React")):e.video=t(e.React)}("undefined"!=typeof self?self:this,(e=>(()=>{var t,i,r={709:function(e,t,i){var r;!function(t){"use strict";var n=function(){},o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function a(){var e=this;e.reads=[],e.writes=[],e.raf=o.bind(t),n("initialized",e)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(c.bind(null,e)),n("flush scheduled"))}function c(e){n("flush");var t,i=e.writes,r=e.reads;try{n("flushing reads",r.length),e.runTasks(r),n("flushing writes",i.length),e.runTasks(i)}catch(e){t=e}if(e.scheduled=!1,(r.length||i.length)&&s(e),t){if(n("task errored",t.message),!e.catch)throw t;e.catch(t)}}function u(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}a.prototype={constructor:a,runTasks:function(e){var t;for(n("run tasks");t=e.shift();)t()},measure:function(e,t){n("measure");var i=t?e.bind(t):e;return this.reads.push(i),s(this),i},mutate:function(e,t){n("mutate");var i=t?e.bind(t):e;return this.writes.push(i),s(this),i},clear:function(e){return n("clear",e),u(this.reads,e)||u(this.writes,e)},extend:function(e){if(n("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var h=t.fastdom=t.fastdom||new a;void 0===(r=function(){return h}.call(h,i,h,e))||(e.exports=r)}("undefined"!=typeof window?window:void 0!==this?this:globalThis)},883:t=>{"use strict";t.exports=e},929:(e,t,i)=>{var r=i(76);e.exports=function(e,t,i){return(t=r(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},414:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},921:(e,t,i)=>{var r=i(998).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},76:(e,t,i)=>{var r=i(998).default,n=i(921);e.exports=function(e){var t=n(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return r[e].call(i.exports,i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".chunk.min.js",o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},i="_wix_video:",o.l=(e,r,n,a)=>{if(t[e])t[e].push(r);else{var s,c;if(void 0!==n)for(var u=document.getElementsByTagName("script"),h=0;h<u.length;h++){var l=u[h];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==i+n){s=l;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",i+n),s.src=e,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous")),t[e]=[r];var d=(i,r)=>{s.onerror=s.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),i)return i(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://static.parastorage.com/services/video/ef73bb885df2dd6c1c054fe607a015348552f2e559842c1228aa1c83/",(()=>{var e={180:0};o.f.j=(t,i)=>{var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var n=new Promise(((i,n)=>r=e[t]=[i,n]));i.push(r[2]=n);var a=o.p+o.u(t),s=new Error;o.l(a,(i=>{if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+a+")",s.name="ChunkLoadError",s.type=n,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=(t,i)=>{var r,n,[a,s,c]=i,u=0;if(a.some((t=>0!==e[t]))){for(r in s)o.o(s,r)&&(o.m[r]=s[r]);if(c)c(o)}for(t&&t(i);u<a.length;u++)n=a[u],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0},i=("undefined"!=typeof self?self:this).webpackJsonp__wix_video=("undefined"!=typeof self?self:this).webpackJsonp__wix_video||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{Video:()=>yt,initCustomElement:()=>I});var e={};o.r(e),o.d(e,{ke:()=>ot,vO:()=>S,$A:()=>Y,Nk:()=>v,bQ:()=>rt,QC:()=>re,G_:()=>it});var t=o(414),i=o.n(t),r=o(883);const n="nhOWNx",s="b5Y937",c="https://video.wixstatic.com/",u=e=>e.startsWith("http://")||e.startsWith("https://");function h(e,t){return(u(e)?new URL(e):new URL(e,t)).href}async function l(e,t,i,r,n,a,s,l){const d=n&&n.length>0,f=i&&u(i),g=s&&s<40;if("adaptive"===r&&a&&a.length>0&&!g){const e=a.find((e=>"hls"===e.format)),t=await o.e(189).then(o.bind(o,189));if(e&&t&&t.default.isSupported()){const i=h(e.uri,"https://files.wix.com/");return{videoSourceUrl:i,patchVideoSource:e=>{const r=new t.default;r.loadSource(i),r.attachMedia(e),r.on(t.default.Events.ERROR,((e,i)=>{if(i.fatal)switch(i.type){case t.default.ErrorTypes.NETWORK_ERROR:r.startLoad(),l&&l(new Error(`HLS Network Error: ${i.details}.\nAttempting to reconnect...`));break;case t.default.ErrorTypes.MEDIA_ERROR:r.recoverMediaError(),l&&l(new Error(`HLS Media Error: ${i.details}.\nAttempting to recover...`));break;default:r.destroy(),l&&l(new Error(`HLS Unknown Error: ${i.details}.\nUnrecoverable playback error`))}}))}}}}if(d){const i=n[n.length-1];if("highest"===r){var p;const e=null==(p=i.types.find((e=>"mp4"===e.format)))?void 0:p.uri;if(e){const t=h(e,c);return{videoSourceUrl:t,patchVideoSource:e=>{e.src=t,e.load()}}}}else{var m;const r=parseInt(i.width.toString(),10),o=parseInt(i.height.toString(),10),a=function(e,t,i,r){return{wScale:e/i,hScale:t/r}}(e,t,r,o),s=function(e,t,i){const r=Math.min(e.wScale,e.hScale);return{width:Math.round(t*r),height:Math.round(i*r)}}(a,r,o),u=function(e,t){let{width:i,height:r}=t;return e.find((e=>e.width*e.height>i*r))||e[e.length-1]}(n,s),l=null==(m=u.types.find((e=>"mp4"===e.format)))?void 0:m.uri;if(l){const e=h(l,c);return{videoSourceUrl:e,patchVideoSource:t=>{t.src=e,t.load()}}}}}return f?{videoSourceUrl:i,patchVideoSource:e=>{e.src=i,e.load()}}:{videoSourceUrl:"",patchVideoSource:()=>{}}}var d=o(929),f=o.n(d);const g={async measure(e,t,i,r,n,o,a,s){const{videoSourceUrl:c,patchVideoSource:u}=await l(t.offsetWidth,t.offsetHeight,r,i,n,o,a,s),h=function(e,t){const i=e.networkState===e.NETWORK_NO_SOURCE,r=!e.currentSrc.endsWith(t);return Boolean(t&&(r||i))}(e,c);return{needsSrcUpdate:h,patchVideoSource:u}},mutate(e,t,i,r,n,o,a,s,c){if(t.toggleAttribute("autoplay",i),null!=c&&c[0]){const e=c[0].width/c[0].height;t.style.setProperty("--aspect-ratio",e.toString())}!function(e,t){const i=(null==t?void 0:t.x)??50,r=(null==t?void 0:t.y)??50;e.style.setProperty("--focal-x",i.toString()),e.style.setProperty("--focal-y",r.toString())}(t,s),function(e,t,i,r,n){const o=t.paused||""===t.currentSrc;if(e&&o)if(t.ontimeupdate=null,t.onseeked=null,t.onplay=null,n){const e=t.muted;t.ontimeupdate=()=>{t.currentTime>0&&(t.ontimeupdate=null,t.onseeked=()=>{t.onseeked=null,t.muted=e,p(t,i,r)},t.currentTime=0)}}else t.onplay=()=>{t.onplay=null,p(t,i,r)}}(r,t,e,n,i),r&&a(t),t.playbackRate=o}};function p(e,t,i){"fade"===i&&(t.style.transition="opacity 1.6s ease-out"),t.style.opacity="0",e.style.opacity="1"}const m=function(e,t){return class extends t.HTMLElement{constructor(){super(),f()(this,"timeoutId",void 0),this.timeoutId=null}dispatchVideoError(e){this.dispatchEvent(new CustomEvent("videoerror",{detail:{error:e},bubbles:!0}))}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){var t;null==(t=e.intersectionService)||t.observe(this)}disconnectedCallback(){this.unobserveIntersect()}unobserveIntersect(){var t;null==(t=e.intersectionService)||t.unobserve(this)}isPrefersReducedMotion(){return t.matchMedia("(prefers-reduced-motion: reduce)").matches}reLayout(){if(!this.dataset.videoInfo)return;const{uri:t,sources:i,adaptiveSources:r,autoplay:n,playbackRate:o,posterEffect:a,qualityPolicy:s,focalPoint:c,duration:u}=JSON.parse(this.dataset.videoInfo),h=!this.isPrefersReducedMotion()&&n,l=this.querySelector("video"),d=this.querySelector("img");e.mutationService.measure((async()=>{const n=await g.measure(l,this,s,t,i,r,u,(e=>this.dispatchVideoError(e))),{needsSrcUpdate:f,patchVideoSource:p}=n;e.mutationService.mutate((()=>{g.mutate(d,l,h,f,a,o,p,c,i)}))}))}static get observedAttributes(){return["data-video-info"]}}};var T=o(709),_=o.n(T);function I(e,t){void 0===e&&(e=null),void 0===t&&(t={});!function(e,t){const i="wow-video";if(void 0===(e=e||window).customElements.get(i)){let r;e.IntersectionObserver&&(r=new IntersectionObserver((e=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.reLayout()}return e}))),{rootMargin:"50% 100%"}));const n=m({mutationService:_(),intersectionService:r,...t},e);e.customElements.define(i,n)}}(e||window,t)}const E="v1",L=2,b=1920,w=1920,y=1e3,A=1e3,v={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},O={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},S={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},R={[S.CENTER]:{x:.5,y:.5},[S.TOP_LEFT]:{x:0,y:0},[S.TOP_RIGHT]:{x:1,y:0},[S.TOP]:{x:.5,y:0},[S.BOTTOM_LEFT]:{x:0,y:1},[S.BOTTOM_RIGHT]:{x:1,y:1},[S.BOTTOM]:{x:.5,y:1},[S.RIGHT]:{x:1,y:.5},[S.LEFT]:{x:0,y:.5}},M={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},G={BG:"bg",IMG:"img",SVG:"svg"},F={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},P={classic:1,super:2},C={radius:"0.66",amount:"1.00",threshold:"0.01"},x={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},N=25e6,k=[1.5,2,4],H={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},U={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},B={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},Y={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",AVIF:"avif",UNRECOGNIZED:"unrecognized"},$={AVIF:"AVIF",PAVIF:"PAVIF"};Y.JPG,Y.JPEG,Y.JPE,Y.PNG,Y.GIF,Y.WEBP;function j(e,...t){return function(...i){const r=i[i.length-1]||{},n=[e[0]];return t.forEach((function(t,o){const a=Number.isInteger(t)?i[t]:r[t];n.push(a,e[o+1])})),n.join("")}}function z(e){return e[e.length-1]}const D=[Y.PNG,Y.JPEG,Y.JPG,Y.JPE,Y.WIX_ICO_MP,Y.WIX_MP,Y.WEBP,Y.AVIF],V=[Y.JPEG,Y.JPG,Y.JPE];function W(e,t,i){return i&&t&&!(!(r=t.id)||!r.trim()||"none"===r.toLowerCase())&&Object.values(v).includes(e);var r}function q(e,t,i,r){if(/(^https?)|(^data)|(^\/\/)/.test(e))return!1;if(!function(e,t,i){return!(J(e)||X(e))||!t||i}(e,t,i))return!1;const n=function(e){return D.includes(re(e))}(e),o=function(e,t,i){return!(!Q(e)||!t&&!i)}(e,i,r);return n||o}function Z(e){return re(e)===Y.PNG}function J(e){return re(e)===Y.WEBP}function Q(e){return re(e)===Y.GIF}function X(e){return re(e)===Y.AVIF}const K=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),ee=["\\.","\\*"],te="_";function ie(e){return function(e){return V.includes(re(e))}(e)?Y.JPG:Z(e)?Y.PNG:J(e)?Y.WEBP:Q(e)?Y.GIF:X(e)?Y.AVIF:Y.UNRECOGNIZED}function re(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function ne(e,t,i,r,n){let o;return o=n===O.FILL?function(e,t,i,r){return Math.max(i/e,r/t)}(e,t,i,r):n===O.FIT?function(e,t,i,r){return Math.min(i/e,r/t)}(e,t,i,r):1,o}function oe(e,t,i,r,n,o){e=e||r.width,t=t||r.height;const{scaleFactor:a,width:s,height:c}=function(e,t,i,r,n){let o,a=i,s=r;if(o=ne(e,t,i,r,n),n===O.FIT&&(a=e*o,s=t*o),a&&s&&a*s>N){const i=Math.sqrt(N/(a*s));a*=i,s*=i,o=ne(e,t,a,s,n)}return{scaleFactor:o,width:a,height:s}}(e,t,r.width*n,r.height*n,i);return function(e,t,i,r,n,o,a){const{optimizedScaleFactor:s,upscaleMethodValue:c,forceUSM:u}=function(e,t,i,r){if("auto"===r)return function(e,t){const i=ue(e,t);return{optimizedScaleFactor:H[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t);if("super"===r)return function(e){return{optimizedScaleFactor:z(k),upscaleMethodValue:P.super,forceUSM:!(k.includes(e)||e>z(k))}}(i);return function(e,t){const i=ue(e,t);return{optimizedScaleFactor:H[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t)}(e,t,o,n);let h=i,l=r;if(o<=s)return{width:h,height:l,scaleFactor:o,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!1};switch(a){case O.FILL:h=i*(s/o),l=r*(s/o);break;case O.FIT:h=e*s,l=t*s}return{width:h,height:l,scaleFactor:s,upscaleMethodValue:c,forceUSM:u,cssUpscaleNeeded:!0}}(e,t,s,c,o,a,i)}function ae(e,t,i,r){const n=ce(i)||function(e=S.CENTER){return R[e]}(r);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function se(e){return e.alignment&&M[e.alignment]||M[S.CENTER]}function ce(e){let t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:he(Math.max(0,Math.min(100,e.x))/100,2),y:he(Math.max(0,Math.min(100,e.y))/100,2)}),t}function ue(e,t){const i=e*t;return i>H[U.HIGH].size?U.HIGH:i>H[U.MEDIUM].size?U.MEDIUM:i>H[U.LOW].size?U.LOW:U.TINY}function he(e,t){const i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function le(e){return e&&e.upscaleMethod&&F[e.upscaleMethod.toUpperCase()]||F.AUTO}function de(e,t){const i=J(e)||X(e);return re(e)===Y.GIF||i&&t}const fe={isMobile:!1},ge=function(e){return fe[e]};function pe(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e=t&&i,fe["isMobile"]=e}var e}function me(e,t){const i={css:{container:{}}},{css:r}=i,{fittingType:n}=e;switch(n){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:case v.LEGACY_STRIP_ORIGINAL_SIZE:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat";break;case v.SCALE_TO_FIT:case v.LEGACY_STRIP_SCALE_TO_FIT:r.container.backgroundSize="contain",r.container.backgroundRepeat="no-repeat";break;case v.STRETCH:r.container.backgroundSize="100% 100%",r.container.backgroundRepeat="no-repeat";break;case v.SCALE_TO_FILL:case v.LEGACY_STRIP_SCALE_TO_FILL:r.container.backgroundSize="cover",r.container.backgroundRepeat="no-repeat";break;case v.TILE_HORIZONTAL:case v.LEGACY_STRIP_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case v.TILE_VERTICAL:case v.LEGACY_STRIP_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case v.TILE:case v.LEGACY_STRIP_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case v.LEGACY_STRIP_FIT_AND_TILE:r.container.backgroundSize="contain",r.container.backgroundRepeat="repeat";break;case v.FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat";break;case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-x";break;case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="repeat-y";break;case v.LEGACY_BG_NORMAL:r.container.backgroundSize="auto",r.container.backgroundRepeat="no-repeat"}switch(t.alignment){case S.CENTER:r.container.backgroundPosition="center center";break;case S.LEFT:r.container.backgroundPosition="left center";break;case S.RIGHT:r.container.backgroundPosition="right center";break;case S.TOP:r.container.backgroundPosition="center top";break;case S.BOTTOM:r.container.backgroundPosition="center bottom";break;case S.TOP_RIGHT:r.container.backgroundPosition="right top";break;case S.TOP_LEFT:r.container.backgroundPosition="left top";break;case S.BOTTOM_RIGHT:r.container.backgroundPosition="right bottom";break;case S.BOTTOM_LEFT:r.container.backgroundPosition="left bottom"}return i}const Te={[S.CENTER]:"center",[S.TOP]:"top",[S.TOP_LEFT]:"top left",[S.TOP_RIGHT]:"top right",[S.BOTTOM]:"bottom",[S.BOTTOM_LEFT]:"bottom left",[S.BOTTOM_RIGHT]:"bottom right",[S.LEFT]:"left",[S.RIGHT]:"right"},_e={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ie(e,t){const i={css:{container:{},img:{}}},{css:r}=i,{fittingType:n}=e,o=t.alignment;switch(r.container.position="relative",n){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(r.img.width=e.parts[0].width,r.img.height=e.parts[0].height):(r.img.width=e.src.width,r.img.height=e.src.height);break;case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="contain",r.img.objectPosition=Te[o]||"unset";break;case v.LEGACY_BG_NORMAL:r.img.width="100%",r.img.height="100%",r.img.objectFit="none",r.img.objectPosition=Te[o]||"unset";break;case v.STRETCH:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="fill";break;case v.SCALE_TO_FILL:r.img.width=t.width,r.img.height=t.height,r.img.objectFit="cover"}if("number"==typeof r.img.width&&"number"==typeof r.img.height&&(r.img.width!==t.width||r.img.height!==t.height)){const e=Math.round((t.height-r.img.height)/2),i=Math.round((t.width-r.img.width)/2);Object.assign(r.img,_e,function(e,t,i){return{[S.TOP_LEFT]:{top:0,left:0},[S.TOP_RIGHT]:{top:0,right:0},[S.TOP]:{top:0,left:t},[S.BOTTOM_LEFT]:{bottom:0,left:0},[S.BOTTOM_RIGHT]:{bottom:0,right:0},[S.BOTTOM]:{bottom:0,left:t},[S.RIGHT]:{top:e,right:0},[S.LEFT]:{top:e,left:0},[S.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(e,i,t)[o])}return i}function Ee(e,t){const i={css:{container:{}},attr:{container:{},img:{}}},{css:r,attr:n}=i,{fittingType:o}=e,a=t.alignment,{width:s,height:c}=e.src;let u;switch(r.container.position="relative",o){case v.ORIGINAL_SIZE:case v.LEGACY_ORIGINAL_SIZE:case v.TILE:e.parts&&e.parts.length?(n.img.width=e.parts[0].width,n.img.height=e.parts[0].height):(n.img.width=s,n.img.height=c),n.img.preserveAspectRatio="xMidYMid slice";break;case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:n.img.width="100%",n.img.height="100%",n.img.transform="",n.img.preserveAspectRatio="";break;case v.STRETCH:n.img.width=t.width,n.img.height=t.height,n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="none";break;case v.SCALE_TO_FILL:q(e.src.id)?(n.img.width=t.width,n.img.height=t.height):(u=function(e,t,i,r,n){const o=ne(e,t,i,r,n);return{width:Math.round(e*o),height:Math.round(t*o)}}(s,c,t.width,t.height,O.FILL),n.img.width=u.width,n.img.height=u.height),n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==t.width||n.img.height!==t.height)){let e,i,r=0,s=0;o===v.TILE?(e=t.width%n.img.width,i=t.height%n.img.height):(e=t.width-n.img.width,i=t.height-n.img.height);const c=Math.round(e/2),u=Math.round(i/2);switch(a){case S.TOP_LEFT:r=0,s=0;break;case S.TOP:r=c,s=0;break;case S.TOP_RIGHT:r=e,s=0;break;case S.LEFT:r=0,s=u;break;case S.CENTER:r=c,s=u;break;case S.RIGHT:r=e,s=u;break;case S.BOTTOM_LEFT:r=0,s=i;break;case S.BOTTOM:r=c,s=i;break;case S.BOTTOM_RIGHT:r=e,s=i}n.img.x=r,n.img.y=s}return n.container.width=t.width,n.container.height=t.height,n.container.viewBox=[0,0,t.width,t.height].join(" "),i}function Le(e,t,i){let r;switch(t.crop&&(r=function(e,t){const i=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),r=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return i&&r&&(e.width!==i||e.height!==r)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:i,height:r}:null}(t,t.crop),r&&(e.src.width=r.width,e.src.height=r.height,e.src.isCropped=!0,e.parts.push(we(r)))),e.fittingType){case v.SCALE_TO_FIT:case v.LEGACY_FIT_WIDTH:case v.LEGACY_FIT_HEIGHT:case v.LEGACY_FULL:case v.FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:case v.LEGACY_BG_NORMAL:e.parts.push(be(e,i));break;case v.SCALE_TO_FILL:e.parts.push(function(e,t){const i=oe(e.src.width,e.src.height,O.FILL,t,e.devicePixelRatio,e.upscaleMethod),r=ce(e.focalPoint);return{transformType:r?O.FILL_FOCAL:O.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:se(t),focalPointX:r&&r.x,focalPointY:r&&r.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case v.STRETCH:e.parts.push(function(e,t){const i=ne(e.src.width,e.src.height,t.width,t.height,O.FILL),r={...t};return r.width=e.src.width*i,r.height=e.src.height*i,be(e,r)}(e,i));break;case v.TILE_HORIZONTAL:case v.TILE_VERTICAL:case v.TILE:case v.LEGACY_ORIGINAL_SIZE:case v.ORIGINAL_SIZE:r=ae(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],r),e.src.width=r.width,e.src.height=r.height):e.parts.push(we(r));break;case v.LEGACY_STRIP_TILE_HORIZONTAL:case v.LEGACY_STRIP_TILE_VERTICAL:case v.LEGACY_STRIP_TILE:case v.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:O.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:se(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case v.LEGACY_STRIP_SCALE_TO_FIT:case v.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:O.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case v.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:O.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:se(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function be(e,t){const i=oe(e.src.width,e.src.height,O.FIT,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:!e.src.width||!e.src.height?O.FIT:O.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:M.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function we(e){return{transformType:O.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function ye(e,t){t=t||{},e.quality=function(e,t){const i=e.fileType===Y.PNG,r=e.fileType===Y.JPG,n=e.fileType===Y.WEBP,o=e.fileType===Y.AVIF,a=r||i||n||o;if(a){const r=z(e.parts),n=(s=r.width,c=r.height,H[ue(s,c)].quality);let o=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return o=i?o+5:o,o}var s,c;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=t.autoEncode??!0,e.encoding=t?.encoding,e.unsharpMask=function(e,t){if(function(e){const t="number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&e.radius>=.1&&e.radius<=500,i="number"==typeof e.amount&&!isNaN(e.amount)&&e.amount>=0&&e.amount<=10,r="number"==typeof e.threshold&&!isNaN(e.threshold)&&e.threshold>=0&&e.threshold<=255;return t&&i&&r}(t.unsharpMask))return{radius:he(t.unsharpMask?.radius,2),amount:he(t.unsharpMask?.amount,2),threshold:he(t.unsharpMask?.threshold,2)};if(("number"!=typeof(i=(i=t.unsharpMask)||{}).radius||isNaN(i.radius)||0!==i.radius||"number"!=typeof i.amount||isNaN(i.amount)||0!==i.amount||"number"!=typeof i.threshold||isNaN(i.threshold)||0!==i.threshold)&&function(e){const t=z(e.parts);return!(t.scaleFactor>=1)||t.forceUSM||t.transformType===O.FIT}(e))return C;var i;return}(e,t),e.filters=function(e){const t=e.filters||{},i={};Ae(t[B.CONTRAST],-100,100)&&(i[B.CONTRAST]=t[B.CONTRAST]);Ae(t[B.BRIGHTNESS],-100,100)&&(i[B.BRIGHTNESS]=t[B.BRIGHTNESS]);Ae(t[B.SATURATION],-100,100)&&(i[B.SATURATION]=t[B.SATURATION]);Ae(t[B.HUE],-180,180)&&(i[B.HUE]=t[B.HUE]);Ae(t[B.BLUR],0,100)&&(i[B.BLUR]=t[B.BLUR]);return i}(t)}function Ae(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function ve(e,t,i,r){const n=function(e){return e?.isSEOBot??!1}(r),o=ie(t.id),a=function(e,t){const i=/\.([^.]*)$/,r=new RegExp(`(${K.concat(ee).join("|")})`,"g");if(t&&t.length){let e=t;const n=t.match(i);return n&&D.includes(n[1])&&(e=t.replace(i,"")),encodeURIComponent(e).replace(r,te)}const n=e.match(/\/(.*?)$/);return(n?n[1]:e).replace(i,"")}(t.id,t.name),s=n?1:function(e){return Math.min(e.pixelAspectRatio||1,L)}(i),c=re(t.id),u=c,h=q(t.id,r?.hasAnimation,r?.allowAnimatedTransform,r?.allowFullGIFTransformation),l={fileName:a,fileExtension:c,fileType:o,fittingType:e,preferredExtension:u,src:{id:t.id,width:t.width,height:t.height,isCropped:!1,isAnimated:de(t.id,r?.hasAnimation)},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:s,quality:0,upscaleMethod:le(r),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:h,allowFullGIFTransformation:r?.allowFullGIFTransformation,isPlaceholderFlow:r?.isPlaceholderFlow};return h&&(Le(l,t,i),ye(l,r)),l}function Oe(e,t,i){const r={...i},n=ge("isMobile");switch(e){case v.LEGACY_BG_FIT_AND_TILE:case v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case v.LEGACY_BG_FIT_AND_TILE_VERTICAL:case v.LEGACY_BG_NORMAL:const e=n?y:b,i=n?A:w;r.width=Math.min(e,t.width),r.height=Math.min(i,Math.round(r.width/(t.width/t.height))),r.pixelAspectRatio=1}return r}const Se=j`fit/w_${"width"},h_${"height"}`,Re=j`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Me=j`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,Ge=j`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,Fe=j`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Pe=j`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Ce=j`,lg_${"upscaleMethodValue"}`,xe=j`,q_${"quality"}`,Ne=j`,quality_auto`,ke=j`,usm_${"radius"}_${"amount"}_${"threshold"}`,He=j`,bl`,Ue=j`,wm_${"watermark"}`,Be={[B.CONTRAST]:j`,con_${"contrast"}`,[B.BRIGHTNESS]:j`,br_${"brightness"}`,[B.SATURATION]:j`,sat_${"saturation"}`,[B.HUE]:j`,hue_${"hue"}`,[B.BLUR]:j`,blur_${"blur"}`},Ye=j`,enc_auto`,$e=j`,enc_avif`,je=j`,enc_pavif`,ze=j`,pstr`,De=j`,anm_all`;function Ve(e,t,i,r={},n){if(q(t.id,r?.hasAnimation,r?.allowAnimatedTransform,r?.allowFullGIFTransformation)){if(J(t.id)||X(t.id)){const{alignment:o,...a}=i;t.focalPoint={x:void 0,y:void 0},delete t?.crop,n=ve(e,t,a,r)}else n=n||ve(e,t,i,r);return function(e){const t=[];e.parts.forEach((e=>{switch(e.transformType){case O.CROP:t.push(Ge(e));break;case O.LEGACY_CROP:t.push(Fe(e));break;case O.LEGACY_FILL:let i=Pe(e);e.upscale&&(i+=Ce(e)),t.push(i);break;case O.FIT:let r=Se(e);e.upscale&&(r+=Ce(e)),t.push(r);break;case O.FILL:let n=Re(e);e.upscale&&(n+=Ce(e)),t.push(n);break;case O.FILL_FOCAL:let o=Me(e);e.upscale&&(o+=Ce(e)),t.push(o)}}));let i=t.join("/");if(e.quality&&(i+=xe(e)),e.unsharpMask&&(i+=ke(e.unsharpMask)),e.progressive||(i+=He(e)),e.watermark&&(i+=Ue(e)),e.filters&&(i+=Object.keys(e.filters).map((t=>Be[t](e.filters))).join("")),e.fileType!==Y.GIF&&(e.encoding===$.AVIF?(i+=$e(e),i+=Ne(e)):e.encoding===$.PAVIF?(i+=je(e),i+=Ne(e)):e.autoEncode&&(i+=Ye(e))),e.src?.isAnimated&&e.transformed){const t=Q(e.src.id),r=!0===e.isPlaceholderFlow,n=!0===e.allowFullGIFTransformation;r?i+=ze(e):t&&n&&(i+=De(e))}return`${e.src.id}/${E}/${i}/${e.fileName}.${e.preferredExtension}`}(n)}return t.id}const We={[S.CENTER]:"50% 50%",[S.TOP_LEFT]:"0% 0%",[S.TOP_RIGHT]:"100% 0%",[S.TOP]:"50% 0%",[S.BOTTOM_LEFT]:"0% 100%",[S.BOTTOM_RIGHT]:"100% 100%",[S.BOTTOM]:"50% 100%",[S.RIGHT]:"100% 50%",[S.LEFT]:"0% 50%"},qe=Object.entries(We).reduce(((e,[t,i])=>(e[i]=t,e)),{}),Ze=[v.TILE,v.TILE_HORIZONTAL,v.TILE_VERTICAL,v.LEGACY_BG_FIT_AND_TILE,v.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,v.LEGACY_BG_FIT_AND_TILE_VERTICAL],Je=[v.LEGACY_ORIGINAL_SIZE,v.ORIGINAL_SIZE,v.LEGACY_BG_NORMAL];function Qe(e,t,{width:i,height:r}){return e===v.TILE&&t.width>i&&t.height>r}function Xe(e,{width:t,height:i}){if(!t||!i){const r=t||Math.min(980,e.width),n=r/e.width;return{width:r,height:i||e.height*n}}return{width:t,height:i}}function Ke(e,t,i,r="center"){const n={img:{},container:{}};if(e===v.SCALE_TO_FILL){const e=t.focalPoint&&function(e){const t=`${e.x}% ${e.y}%`;return qe[t]||""}(t.focalPoint),o=e||r;t.focalPoint&&!e?n.img={objectPosition:et(t,i,t.focalPoint)}:n.img={objectPosition:We[o]}}else[v.LEGACY_ORIGINAL_SIZE,v.ORIGINAL_SIZE].includes(e)?n.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:Ze.includes(e)&&(n.container={backgroundSize:`${t.width}px ${t.height}px`});return n}function et(e,t,i){const{width:r,height:n}=e,{width:o,height:a}=t,{x:s,y:c}=i;if(!o||!a)return`${s}% ${c}%`;const u=Math.max(o/r,a/n),h=r*u,l=n*u,d=Math.max(0,Math.min(h-o,h*(s/100)-o/2)),f=Math.max(0,Math.min(l-a,l*(c/100)-a/2));return`${d&&Math.floor(d/(h-o)*100)}% ${f&&Math.floor(f/(l-a)*100)}%`}const tt={width:"100%",height:"100%"};function it(e,t,i,r={}){const{autoEncode:n=!0,isSEOBot:o,shouldLoadHQImage:a,hasAnimation:s,allowAnimatedTransform:c,encoding:u}=r;if(!W(e,t,i))return x;const h=!0,l=c??h,d=q(t.id,s,l);if(!d||a)return rt(e,t,i,{...r,autoEncode:n,useSrcset:d});const f={...i,...Xe(t,i)},{alignment:g,htmlTag:p}=f,m=Qe(e,t,f),T=function(e,t,{width:i,height:r},n=!1){if(n)return{width:i,height:r};const o=!Je.includes(e),a=Qe(e,t,{width:i,height:r}),s=!a&&Ze.includes(e),c=s?t.width:i,u=s?t.height:r,h=o?function(e,t){return e>900?t?.05:.15:e>500?t?.1:.18:e>200?.25:1}(c,Z(t.id)):1;return{width:a?1920:c*h,height:u*h}}(e,t,f,o),_=function(e,t,i){return i?0:Ze.includes(t)?1:e>200?2:3}(f.width,e,o),I=function(e,t){const i=Ze.includes(e)&&!t;return e===v.SCALE_TO_FILL||i?v.SCALE_TO_FIT:e}(e,m),E=Ke(e,t,i,g),{uri:L}=rt(I,t,{...T,alignment:g,htmlTag:p},{autoEncode:n,filters:_?{blur:_}:{},hasAnimation:s,allowAnimatedTransform:l,encoding:u,isPlaceholderFlow:h}),{attr:b={},css:w}=rt(e,t,{...f,alignment:g,htmlTag:p},{});return w.img=w.img||{},w.container=w.container||{},Object.assign(w.img,E.img,tt),Object.assign(w.container,E.container),{uri:L,css:w,attr:b,transformed:!0}}function rt(e,t,i,r){let n={};if(W(e,t,i)){const o=Oe(e,t,i),a=ve(e,t,o,r);n.uri=Ve(e,t,o,r,a),r?.useSrcset&&(n.srcset=function(e,t,i,r,n){const o=i.pixelAspectRatio||1;return{dpr:[`${1===o?n.uri:Ve(e,t,{...i,pixelAspectRatio:1},r)} 1x`,`${2===o?n.uri:Ve(e,t,{...i,pixelAspectRatio:2},r)} 2x`]}}(e,t,o,r,n)),Object.assign(n,function(e,t){let i;return i=t.htmlTag===G.BG?me:t.htmlTag===G.SVG?Ee:Ie,i(e,t)}(a,o),{transformed:a.transformed})}else n=x;return n}const nt="https://static.wixstatic.com/media/";"undefined"!=typeof window&&window.devicePixelRatio;pe();pe();const ot=nt,at={columnCount:1,columns:1,fontWeight:1,lineHeight:1,opacity:1,zIndex:1,zoom:1},st=(e,t)=>(Array.isArray(t)?t:[t]).reduce(((t,i)=>{const r=e[i];return void 0!==r?Object.assign(t,{[i]:r}):t}),{}),ct=(e,t)=>e&&t&&Object.keys(t).forEach((i=>{const r=i,n=t[r];void 0!==n?e.style[r]=((e,t)=>"number"!=typeof t||at[e]?t.toString():`${t}px`)(r,n):e.style.removeProperty(r)})),ut=["11062b_","nsplsh_"],ht=(e,t,i)=>{if(!e.targetWidth||!e.targetHeight||!e.imageData.uri)return{uri:"",css:{},transformed:!1};const{imageData:r}=e,n=e.displayMode||v.SCALE_TO_FILL,o=Object.assign(st(r,["upscaleMethod"]),st(e,["filters","encoding","allowFullGIFTransformation"]),e.quality||r.quality,{hasAnimation:e?.hasAnimation||r?.hasAnimation}),a=e.imageData.devicePixelRatio||t.devicePixelRatio,s=dt(a),c=rt(n,Object.assign(st(r,["width","height","crop","name","focalPoint"]),{id:r.uri}),{width:e.targetWidth,height:e.targetHeight,htmlTag:i||"img",pixelAspectRatio:s,alignment:e.alignType||S.CENTER},o);var u;const h=!!t.externalBaseUrl&&!0===t.hasUserDomainMedia&&(u=r.uri,!ut.some((e=>u.startsWith(e))))?`${t.externalBaseUrl}/_media`:t.staticMediaUrl;return c.uri=lt(c.uri,h,t.mediaRootUrl),c},lt=(e,t,i)=>{if(/(^https?)|(^data)|(^blob)|(^\/\/)/.test(e))return e;let r=`${t}/`;return e&&(/^micons\//.test(e)?r=i:"ico"===/[^.]+$/.exec(e)?.[0]&&(r=r.replace("media","ficons"))),r+e},dt=e=>{const t=window.location.search.split("&").map((e=>e.split("="))).find((e=>e[0]?.toLowerCase().includes("devicepixelratio")));return(t?.[1]?Number(t[1]):null)||e||1},ft=e=>e.getAttribute("src");const gt={measure:function(e,t,i,{containerElm:r,bgEffect:n="none",sourceSets:o},a){const s=i.image,c=i[e],u=(h=a.getScreenHeightOverride?.(),h||document.documentElement.clientHeight||window.innerHeight||0);var h;const l=r?.dataset.mediaHeightOverrideType,d=n&&"none"!==n||o&&o.some((e=>e.scrollEffect)),f=r&&d?r:c,g=window.getComputedStyle(c).getPropertyValue("--bg-scrub-effect"),{width:p,height:m}=a.getMediaDimensionsByEffect?.(g||n,f.offsetWidth,f.offsetHeight,u)||{width:c.offsetWidth,height:c.offsetHeight};if(o&&(t.sourceSetsTargetHeights=function(e,t,i,r,n){const o={};return e.forEach((({mediaQuery:e,scrollEffect:a})=>{o[e]=n.getMediaDimensionsByEffect?.(a,t,i,r).height||i})),o}(o,f.offsetWidth,f.offsetHeight,u,a)),!s)return;const T=ft(s);g&&(t.top=.5*(c.offsetHeight-m),t.left=.5*(c.offsetWidth-p)),t.width=p,t.height=function(e,t){return"fixed"===t||"viewport"===t?document.documentElement.clientHeight+80:e}(m,l),t.screenHeight=u,t.imgSrc=T,t.boundingRect=c.getBoundingClientRect(),t.mediaHeightOverrideType=l,t.srcset=s.srcset},patch:function(e,t,i,r,n,o,a,s,c,u){if(!Object.keys(t).length)return;const{imageData:h}=r,l=i[e],d=i.image;c&&(h.devicePixelRatio=1);const f=r.targetScale||1,g=n.isExperimentOpen?.("specs.thunderbolt.allowFullGIFTransformation"),p={...r,...!r.skipMeasure&&{targetWidth:(t.width||0)*f,targetHeight:(t.height||0)*f},displayMode:h.displayMode,allowFullGIFTransformation:g},m=ht(p,o,"img"),T=m?.css?.img||{},_=function(e,t,i,r,n){const o=function(e,t=1){return 1!==t?{...e,width:"100%",height:"100%"}:e}(t,r);if(n&&(delete o.height,o.width="100%"),!e)return o;const a={...o};return"fill"===i?(a.position="absolute",a.top="0"):"fit"===i&&(a.height="100%"),"fixed"===e&&(a["will-change"]="transform"),a.objectPosition&&(a.objectPosition=t.objectPosition.replace(/(center|bottom)$/,"top")),a}(t.mediaHeightOverrideType,T,h.displayMode,f,s);ct(d,_),(t.top||t.left)&&ct(l,{top:`${t.top}px`,left:`${t.left}px`});const I=m?.uri||"",E=h?.hasAnimation||r?.hasAnimation,L=function(e,t,i){const{sourceSets:r}=t;if(!r||!r.length)return;const n={};return r.forEach((({mediaQuery:r,crop:o,focalPoint:a})=>{const s={...t,targetHeight:(e.sourceSetsTargetHeights||{})[r]||0,imageData:{...t.imageData,crop:o,focalPoint:a}},c=ht(s,i,"img");n[r]=c.uri||""})),n}(t,p,o);if(u&&(d.dataset.ssrSrcDone="true"),r.isLQIP&&r.lqipTransition&&!("transitioned"in l.dataset)&&(l.dataset.transitioned="",d.complete?d.onload=function(){d.dataset.loadDone=""}:d.onload=function(){d.complete?d.dataset.loadDone="":d.onload=function(){d.dataset.loadDone=""}}),a){((e,t)=>re(e)===Y.GIF||re(e)===Y.WEBP&&t)(h.uri,E)?(d.setAttribute("fetchpriority","low"),d.setAttribute("loading","lazy"),d.setAttribute("decoding","async")):d.setAttribute("fetchpriority","high"),d.currentSrc!==I&&d.setAttribute("src",I);t.srcset&&!t.srcset.split(", ").some((e=>e.split(" ")[0]===I))&&d.setAttribute("srcset",I),i.picture&&p.sourceSets&&Array.from(i.picture.querySelectorAll("source")).forEach((e=>{const t=e.media||"",i=L?.[t];e.srcset!==i&&e.setAttribute("srcset",i||"")}))}}},pt={parallax:"ImageParallax",fixed:"ImageReveal"};const mt=function(e,t,i){return class extends i.HTMLElement{constructor(){super(),this.childListObserver=null,this.timeoutId=null}attributeChangedCallback(e,t){t&&this.reLayout()}connectedCallback(){t.disableImagesLazyLoading?this.reLayout():this.observeIntersect()}disconnectedCallback(){this.unobserveResize(),this.unobserveIntersect(),this.unobserveChildren()}static get observedAttributes(){return["data-image-info"]}reLayout(){const r={},n={},o=this.getAttribute("id"),a=JSON.parse(this.dataset.imageInfo||""),s="true"===this.dataset.isResponsive,{bgEffectName:c}=this.dataset,{scrollEffect:u}=a.imageData,{sourceSets:h}=a,l=c||u&&pt[u];h&&h.length&&h.forEach((e=>{e.scrollEffect&&(e.scrollEffect=pt[e.scrollEffect])})),r[o]=this,a.containerId&&(r[a.containerId]=i.document.getElementById(`${a.containerId}`));const d=a.containerId?r[a.containerId]:void 0;if(r.image=this.querySelector("img"),r.picture=this.querySelector("picture"),!r.image){const e=this;return void this.observeChildren(e)}this.unobserveChildren(),this.observeChildren(this),e.mutationService.measure((()=>{gt.measure(o,n,r,{containerElm:d,bgEffect:l,sourceSets:h},e)}));const f=(i,c)=>{e.mutationService.mutate((()=>{gt.patch(o,n,r,a,e,t,i,s,l,c)}))},g=r.image,p=this.dataset.hasSsrSrc&&!g.dataset.ssrSrcDone;!ft(g)||p?f(!0,!0):this.debounceImageLoad(f)}debounceImageLoad(e){clearTimeout(this.timeoutId),this.timeoutId=i.setTimeout((()=>{e(!0)}),250),e(!1)}observeResize(){e.resizeService?.observe(this)}unobserveResize(){e.resizeService?.unobserve(this)}observeIntersect(){e.intersectionService?.observe(this)}unobserveIntersect(){e.intersectionService?.unobserve(this)}observeChildren(e){this.childListObserver||(this.childListObserver=new i.MutationObserver((()=>{this.reLayout()}))),this.childListObserver.observe(e,{childList:!0})}unobserveChildren(){this.childListObserver&&(this.childListObserver.disconnect(),this.childListObserver=null)}}};const Tt=()=>{try{return"true"===new URL(window.location.href).searchParams.get("disableLazyLoading")}catch{return!1}};function _t(e={},t=null,i={}){if("undefined"==typeof window)return;const r={staticMediaUrl:"https://static.wixstatic.com/media",mediaRootUrl:"https://static.wixstatic.com",experiments:{},devicePixelRatio:/iemobile/i.test(navigator.userAgent)?Math.round(window.screen.availWidth/(window.screen.width||window.document.documentElement.clientWidth)):window.devicePixelRatio,disableImagesLazyLoading:Tt(),...i},n=function(e,t){const i="wow-image";if(void 0===(e=e||window).customElements.get(i)){let r,n;return e.ResizeObserver&&(r=new e.ResizeObserver((e=>e.map((e=>e.target.reLayout()))))),e.IntersectionObserver&&(n=new IntersectionObserver((e=>e.map((e=>{if(e.isIntersecting){const t=e.target;t.unobserveIntersect(),t.observeResize()}return e}))),{rootMargin:"150% 100%"})),function(o){const a=mt({resizeService:r,intersectionService:n,mutationService:_(),...t},o,e);e.customElements.define(i,a)}}}(t,e);n&&n(r)}const It="L36Tx5",{ke:Et}=e,Lt=({fittingType:e,src:t,target:i,options:r})=>{const n=it(e,t,i,{...r,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${Et}${n.uri}`),n},bt=/^[a-z]+:/,wt=e=>{const{id:t,containerId:i,uri:n,alt:o,name:a="",role:s,width:c,height:u,displayMode:h,devicePixelRatio:l,quality:d,alignType:f,bgEffectName:g="",focalPoint:p,upscaleMethod:m,className:T="",crop:_,imageStyles:I={},targetWidth:E,targetHeight:L,targetScale:b,onLoad:w=()=>{},onError:y=()=>{},shouldUseLQIP:A,containerWidth:v,containerHeight:O,getPlaceholder:S,isInFirstFold:R,placeholderTransition:M,socialAttrs:G,isSEOBot:F,skipMeasure:P,hasAnimation:C,encoding:x,isFluidLayout:N}=e,k=r.useRef(null);let H="";const U="blur"===M,B=r.useRef(null);if(!B.current)if(S||A||R||F){const e={upscaleMethod:m,...d||{},shouldLoadHQImage:R,isSEOBot:F,hasAnimation:C,encoding:x};B.current=(S||Lt)({fittingType:h,src:{id:n,width:c,height:u,crop:_,name:a,focalPoint:p},target:{width:v,height:O,alignment:f,htmlTag:"img"},options:e}),H=!B.current.transformed||R||F?"":"true"}else B.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const Y=!F&&(S||A)&&!R&&B.current.transformed,$=r.useMemo((()=>JSON.stringify({containerId:i,...i&&{containerId:i},...f&&{alignType:f},...P&&{skipMeasure:!0},displayMode:h,...v&&{targetWidth:v},...O&&{targetHeight:O},...E&&{targetWidth:E},...L&&{targetHeight:L},...b&&{targetScale:b},isLQIP:Y,isSEOBot:F,lqipTransition:M,encoding:x,imageData:{width:c,height:u,uri:n,name:a,displayMode:h,hasAnimation:C,...d&&{quality:d},...l&&{devicePixelRatio:l},...p&&{focalPoint:p},..._&&{crop:_},...m&&{upscaleMethod:m}}})),[i,f,P,h,v,O,E,L,b,Y,F,M,x,c,u,n,a,C,d,l,p,_,m]),j=B.current,z=j?.uri,D=j?.srcset,V=j.css?.img,W=`${It} ${T}`;r.useEffect((()=>{const e=k.current;w&&e?.currentSrc&&e?.complete&&w({target:e})}),[]);const q=j&&!j?.transformed?`max(${c}px, 100%)`:E?`${E}px`:null;return r.createElement("wow-image",{id:t,class:W,"data-image-info":$,"data-motion-part":`BG_IMG ${i}`,"data-bg-effect-name":g,"data-has-ssr-src":H,"data-animate-blur":!F&&Y&&U?"":void 0,"data-is-responsive":N?"true":void 0,style:q?{"--wix-img-max-width":q}:{}},r.createElement("img",{src:z,ref:k,alt:o||"",role:s,style:{...V,...I},onLoad:w,onError:y,width:v||void 0,height:O||void 0,...G,srcSet:R?D?.dpr?.map((e=>bt.test(e)?e:`${Et}${e}`)).join(", "):void 0,fetchpriority:R?"high":void 0,loading:!1===R?"lazy":void 0,suppressHydrationWarning:!0}))};"undefined"!=typeof window&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{I(),_t()}),{once:!0}):(I(),_t()));const yt=e=>{const{motionPart:t,videoRef:o,videoMedia:a,muted:c,loop:u,autoplay:h,playbackRate:l=1,posterEffect:d,id:f,qualityPolicy:g="proportional",focalPoint:p={x:50,y:50},onError:m}=e,T=r.useRef(null),_=r.useMemo((()=>{const e=(a.sources||[]).sort(((e,t)=>e.width*e.height-t.width*t.height));return JSON.stringify({...a,playbackRate:l,posterEffect:d,sources:e,autoplay:h,qualityPolicy:g,focalPoint:p})}),[a,l,d,h,g,p]),I=a.poster&&r.createElement(wt,i()({},a.poster,{focalPoint:p,id:`videoPoster_${f}`,displayMode:"fill",alt:a.name||a.poster.alt||"",quality:a.poster.quality?{quality:a.poster.quality}:void 0})),E=r.useCallback((e=>{if(m){var t;const i=e.currentTarget,r=new Error(`Video playback error: ${(null==(t=i.error)?void 0:t.message)||"Unknown error"}`);m(r)}}),[m]),L=r.useCallback((e=>{var t;m&&null!=(t=e.detail)&&t.error&&m(e.detail.error)}),[m]);return r.useEffect((()=>{const e=T.current;return null==e||e.addEventListener("videoerror",L),()=>{null==e||e.removeEventListener("videoerror",L)}}),[m,L]),r.createElement("wow-video",{ref:T,"data-video-info":_,"data-motion-part":t||"",class:n},r.createElement("video",{ref:o,className:s,crossOrigin:"anonymous",playsInline:!0,muted:c,loop:u,preload:"none",onError:E}),I)}})(),a})()));
|
|
2
2
|
//# sourceMappingURL=video.umd.min.js.map
|