vendor: 5,016 bytes, line 1
1import{d as O,C as E,e as R,a0 as M,c as x,o as A,E as S}from"./DU4cSegC.js";var _=(function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var s=o[i];n.call(r,s[1],s[0])}},e})()})(),v=typeof window<"u"&&typeof document<"u"&&window.document===document,f=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),z=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(f):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),T=2;function C(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&a()}function s(){z(o)}function a(){var c=Date.now();if(n){if(c-i<T)return;r=!0}else n=!0,r=!1,setTimeout(s,e);i=c}return a}var D=20,k=["top","right","bottom","left","width","height","size","weight"],B=typeof MutationObserver<"u",G=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=C(this.refresh.bind(this),D)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!v||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=k.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),m=(function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t}),u=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||f}),y=d(0,0,0,0);function h(t){return parseFloat(t)||0}function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+h(o)},0)}function L(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],s=t["padding-"+o];n[o]=h(s)}return n}function P(t){var e=t.getBBox();return d(0,0,e.width,e.height)}function V(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return y;var r=u(t).getComputedStyle(t),i=L(r),o=i.left+i.right,s=i.top+i.bottom,a=h(r.width),c=h(r.height);if(r.boxSizing==="border-box"&&(Math.round(a+o)!==e&&(a-=b(r,"left","right")+o),Math.round(c+s)!==n&&(c-=b(r,"top","bottom")+s)),!W(t)){var l=Math.round(a+o)-e,p=Math.round(c+s)-n;Math.abs(l)!==1&&(a-=l),Math.abs(p)!==1&&(c-=p)}return d(i.left,i.top,a,c)}var j=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof u(t).SVGGraphicsElement}:function(t){return t instanceof u(t).SVGElement&&typeof t.getBBox=="function"}})();function W(t){return t===u(t).document.documentElement}function F(t){return v?j(t)?P(t):V(t):y}function H(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(o.prototype);
1return m(s,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),s}function d(t,e,n,r){return{x:t,y:e,width:n,height:r}}var q=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=d(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=F(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),I=(function(){function t(e,n){var r=H(n);m(this,{target:e,contentRect:r})}return t})(),N=(function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new _,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new q(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof u(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new I(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),w=typeof WeakMap<"u"?new WeakMap:new _,g=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=G.getInstance(),r=new N(e,n,this);w.set(this,r)}return t})();["observe","unobserve","disconnect"].forEach(function(t){g.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}});var $=(function(){return typeof f.ResizeObserver<"u"?f.ResizeObserver:g})();const K=["src"],U=O({__name:"DynamicVideoSet",props:{sources:{}},setup(t){const e=t,n=S(null),r=E({currentSource:e.sources[0].src,observer:null}),i=function(){r.observer=new $(()=>{const o=e.sources.find(s=>window.matchMedia(s.media).matches)??e.sources.find(s=>s.media==null);r.currentSource=o.src}),r.observer.observe(n.value)};return R(()=>{i()}),M(()=>{r.observer&&r.observer.disconnect()}),(o,s)=>(A(),x("video",{disableremoteplayback:"","x-webkit-airplay":"deny",ref_key:"video",ref:n,src:r.currentSource},null,8,K))}}),J=Object.assign(U,{__name:"DynamicVideoSet"});export{J as D};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.