!function(){function n(n,t){var o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var o=Object.prototype.toString.call(n).slice(8,-1);"Object"===o&&n.constructor&&(o=n.constructor.name);if("Map"===o||"Set"===o)return Array.from(n);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return e(n,t)}(n))||t&&n&&"number"==typeof n.length){o&&(n=o);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){o=o.call(n)},n:function(){var n=o.next();return u=n.done,n},e:function(n){l=!0,a=n},f:function(){try{u||null==o.return||o.return()}finally{if(l)throw a}}}}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?v:e;if(!t)return{x:u(0),y:u(0)};var o=u(t.pageXOffset),r=u(t.pageYOffset);return c("scroll",(function(){o.value=t.pageXOffset,r.value=t.pageYOffset}),{capture:!1,passive:!0}),{x:o,y:r}},c:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.window,t=void 0===e?v:e,o=null==t?void 0:t.navigator,r=Boolean(o&&"connection"in o),i=u(!0),a=u(!1),l=u(void 0),f=u(void 0),d=u(void 0),s=u(void 0),p=u(void 0),w=u(void 0),y=u("unknown"),b=r&&o.connection;function g(){o&&(i.value=o.onLine,l.value=i.value?void 0:Date.now(),f.value=i.value?Date.now():void 0,b&&(d.value=b.downlink,s.value=b.downlinkMax,w.value=b.effectiveType,p.value=b.rtt,a.value=b.saveData,y.value=b.type))}t&&(c(t,"offline",(function(){i.value=!1,l.value=Date.now()})),c(t,"online",(function(){i.value=!0,f.value=Date.now()})));b&&c(b,"change",g,!1);return g(),{isSupported:r,isOnline:i,saveData:a,offlineAt:l,onlineAt:f,downlink:d,downlinkMax:s,effectiveType:w,rtt:p,type:y}},u:function(n,e){var t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o,u=r.window,l=void 0===u?v:u,c=h(r,["window"]),d=l&&"ResizeObserver"in l,s=function(){t&&(t.disconnect(),t=void 0)},p=a((function(){return f(n)}),(function(n){s(),d&&l&&n&&(t=new ResizeObserver(e)).observe(n,c)}),{immediate:!0,flush:"post"}),w=function(){s(),p()};return i(w),{isSupported:d,stop:w}}});var v=t?window:void 0;function c(){for(var n,e,t,u,l=arguments.length,c=new Array(l),d=0;d