/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/safe-area-insets@1.4.1/out/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var inited,support,attrs=["top","left","right","bottom"],elementComputedStyle={};function getSupport(){return support="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function init(){if(support="string"==typeof support?support:getSupport()){var t=[],e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e={passive:!0}}});window.addEventListener("test",null,n)}catch(t){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),attrs.forEach((function(t){!function(t,n){var o=document.createElement("div"),a=document.createElement("div"),p=document.createElement("div"),s=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:support+"(safe-area-inset-"+n+")"};r(o,c),r(a,c),r(p,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(s,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(p),a.appendChild(s),t.appendChild(o),t.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var t=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?t:r)&&(o.scrollTop=a.scrollTop=1e4,t=o.scrollTop,r=a.scrollTop,attrChange(n))}o.addEventListener("scroll",i,e),a.addEventListener("scroll",i,e)}));var l=getComputedStyle(o);Object.defineProperty(elementComputedStyle,n,{configurable:!0,get:function(){return parseFloat(l.paddingBottom)}})}(o,t)})),document.body.appendChild(o),i(),inited=!0}else attrs.forEach((function(t){elementComputedStyle[t]=0}));function r(t,e){var n=t.style;Object.keys(e).forEach((function(t){var o=e[t];n[t]=o}))}function i(e){e?t.push(e):t.forEach((function(t){t()}))}}function getAttr(t){return inited||init(),elementComputedStyle[t]}var changeAttrs=[];function attrChange(t){changeAttrs.length||setTimeout((function(){var t={};changeAttrs.forEach((function(e){t[e]=elementComputedStyle[e]})),changeAttrs.length=0,callbacks.forEach((function(e){e(t)}))}),0),changeAttrs.push(t)}var callbacks=[];function onChange(t){getSupport()&&(inited||init(),"function"==typeof t&&callbacks.push(t))}function offChange(t){var e=callbacks.indexOf(t);e>=0&&callbacks.splice(e,1)}var safeAreaInsets={get support(){return 0!=("string"==typeof support?support:getSupport()).length},get top(){return getAttr("top")},get left(){return getAttr("left")},get right(){return getAttr("right")},get bottom(){return getAttr("bottom")},onChange:onChange,offChange:offChange};module.exports=safeAreaInsets;
//# sourceMappingURL=/sm/302870dceed2ce918f3bc893b3ae97ecd32193ff34093975902f25a0f19fe8cd.map