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O,QAAQ,QAAgB,OAAO,SAAS,QAAQ,OAAO,SAAS,OAAO,GAE/H,CAEA,OAAA,GACE,IAAM,KAAK,OAAQ,QAAQ,OAC7B,EAEF,MAAM,EAAI,CACR,GAAI,EACJ,SAAU,EACV,SAAU,GAEZ,GAAK,SAAS,GACZ,EAAE,WAAa,EAAG,EAAE,WAAa,CACnC,CAFK,CAEH,eAEA,gBACA","file":"/npm/@mobiloud/ml-back-button@1.0.2/dist/ml-back-button.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@mobiloud/ml-back-button@1.0.2/dist/ml-back-button.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var w = Object.defineProperty;\nvar y = (a, e, s) => e in a ? w(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;\nvar i = (a, e, s) => (y(a, typeof e != \"symbol\" ? e + \"\" : e, s), s);\nconst l = typeof window < \"u\";\nfunction h() {\n  var a = navigator.userAgent.toLowerCase() || navigator.vendor.toLowerCase() || window.opera;\n  return /windows phone/i.test(a) ? \"windows\" : /android/i.test(a) ? \"android\" : /ipad|iphone|ipod/.test(a) && !window.MSStream ? \"ios\" : \"desktop\";\n}\nconst k = h(), x = !!navigator.userAgent.toLowerCase().match(/(ipad)|(iphone)|(ipod)|(android)|(webos)/i), v = navigator.userAgent.toLowerCase().includes(\"canvas\");\nclass C {\n  constructor(e) {\n    i(this, \"display\", \"onLoad\");\n    i(this, \"delay\");\n    i(this, \"containerSelector\", null);\n    i(this, \"containerOrder\");\n    i(this, \"replaceElement\");\n    i(this, \"regex\", null);\n    i(this, \"button\");\n    i(this, \"isCanvas\", navigator.userAgent.toLowerCase().includes(\"canvas\"));\n    i(this, \"os\", h());\n    i(this, \"isMobile\", navigator.userAgent.toLowerCase().match(/(ipad)|(iphone)|(ipod)|(android)|(webos)/i));\n    i(this, \"logs\");\n    if (!l)\n      return;\n    e = Object.assign({}, {\n      textColor: \"white\",\n      fillColor: \"white\",\n      buttonColorPrimary: \"#000\",\n      label: '<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>',\n      position: \"top-left\",\n      animation: null,\n      display: \"onLoad\",\n      radius: \"50%\",\n      width: \"3em\",\n      padding: \"1em\",\n      delay: 0,\n      containerSelector: null,\n      containerOrder: \"first\",\n      textAlign: \"center\",\n      shadow: !1,\n      replaceElement: null,\n      regex: null,\n      logs: !0\n    }, e);\n    let o = { right: \"unset\", left: \"unset\", bottom: \"unset\", top: \"unset\" };\n    switch (e.position) {\n      case \"bottom-right\":\n        o.right = \"32px\", o.bottom = \"32px\";\n        break;\n      case \"bottom-left\":\n        o.left = \"32px\", o.bottom = \"32px\";\n        break;\n      case \"top-right\":\n        o.top = \"32px\", o.right = \"32px\";\n        break;\n      case \"top-left\":\n        o.top = \"32px\", o.left = \"32px\";\n        break;\n      default:\n        o.right = \"32px\", o.bottom = \"32px\";\n    }\n    const c = `\n\t\t\n\t\t/* BTN CLASSES */\n\t\t.backButton-toggle {\n\t\t\tbackground: ${e.buttonColorPrimary};\n\t\t\twidth: ${e.width};\n\t\t\taspect-ratio: 1;\n\t\t\tpadding: ${e.padding};\n\t\t\tposition: ${e.containerSelector == null ? \"fixed\" : \"inline-block\"};\n\t\t\tborder-radius: ${e.radius};\n\t\t\tborder:none;\n\t\t\tright: ${o.right};\n\t\t\tbottom: ${o.bottom};\n\t\t\tleft: ${o.left};\n\t\t\ttop: ${o.top};\n\t\t\tcursor: pointer;\n\t\t\ttransition: all 0.5s ease;\n\t\t\tdisplay: none;\n\t\t\tjustify-content: ${e.textAlign};\n\t\t\talign-items: center;\n\t\t\tz-index: 999999;\n\t\t\tcolor: ${e.textColor};\n\t\t\tfill: ${e.fillColor};\n\t\t\tanimation: ${e.animation + \" 0.5s both\"};\n\t\t\tbox-shadow: ${e.shadow ? \"0px 3px 15px rgba(0,0,0,0.2);\" : \"none\"}     \n\t\t}\n\t\t\n\t\t.backButton-toggle--inactive {\n\t\t\tdisplay: none;\n\t\t}\n\t\t\n\t\t.backButton-toggle--visible {\n\t\t\tdisplay: inline-flex\n\t\t}\n\t\t\n\t\t@keyframes fadeIn {\n\t\t\t0% {\n\t\t\t\topacity: 0;\n\t\t\t}\n\t\t\t100% {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t@keyframes scaleUp {\n\t\t\t0% {\n\t\t\t\ttransform: scale(0.5);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: scale(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@keyframes slideBottom {\n\t\t\t0% {\n\t\t\t\ttransform: translateY(1000px);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: translateY(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@keyframes slideTop {\n\t\t\t0% {\n\t\t\t\ttransform: translateY(-1000px);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: translateY(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@keyframes slideLeft {\n\t\t\t0% {\n\t\t\t\ttransform: translateX(-1000px);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: translateX(0);\n\t\t\t}\n\t\t}\n\t\t\n\t\t@keyframes slideRight {\n\t\t\t0% {\n\t\t\t\ttransform: translateX(1000px);\n\t\t\t}\n\t\t\t100% {\n\t\t\t\ttransform: translateX(0);\n\t\t\t}\n\t\t}\n\t\t/* CHECK MEDIA CLASSES */\n\t\t@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n\t\t\t.darkmode-toggle {display: none !important}\n\t\t}\n\t\t\n\t\t@supports (-ms-ime-align:auto), (-ms-accelerator:true) {\n\t\t\t.darkmode-toggle {display: none !important}\n\t\t}\n\t\t`, n = document.createElement(\"button\");\n    n.innerHTML = e.label, this.addStyle(c), this.button = n, this.display = e.display, this.delay = e.delay, this.containerSelector = e.containerSelector, this.containerOrder = e.containerOrder, this.replaceElement = e.replaceElement, this.regex = e.regex, this.logs = e.logs;\n  }\n  // (1) inserts css in page\n  addStyle(e) {\n    const s = document.createElement(\"link\");\n    s.setAttribute(\"rel\", \"stylesheet\"), s.setAttribute(\"type\", \"text/css\"), s.setAttribute(\n      \"href\",\n      \"data:text/css;charset=UTF-8,\" + encodeURIComponent(e)\n    ), document.head.appendChild(s);\n  }\n  init() {\n    const e = this.isMobile, s = this.isCanvas, o = this.containerSelector, c = this.containerOrder, n = this.button, m = this.display, d = this.replaceElement, u = this.regex, f = this.logs;\n    function p(t) {\n      return !t || t === \"\" ? !1 : new RegExp(t).test(window.location.href);\n    }\n    if (!l || window.history.length <= 1 || window.location.pathname == \"/\" || !e || s || p(u)) {\n      const t = [\n        !l && \"Is not a browser \",\n        window.history.length <= 1 && \"History length <= 1\",\n        window.location.pathname == \"/\" && 'Pathname \"/\"',\n        !e && \"Is Not Mobile Browser\",\n        s && \"Is canvas\",\n        p(u) && `URL Regex matches: ${u}`\n      ].filter(Boolean);\n      f && console.log(\n        `ML-BackButton | Reason(s) for skipping: \n•`,\n        t.join(`\n• `)\n      );\n      return;\n    }\n    if (d && d !== \"\") {\n      let t = document.querySelector(d);\n      t == null || t.replaceWith(n);\n    } else if (!o || o === \"\")\n      document.body.insertBefore(n, document.body.firstChild);\n    else {\n      const t = document.querySelector(o);\n      switch (c) {\n        case \"first\":\n          t == null || t.insertBefore(n, t.firstChild);\n          break;\n        case \"last\":\n          t == null || t.appendChild(n);\n          break;\n        default:\n          t == null || t.appendChild(n);\n      }\n    }\n    const g = this.delay, b = () => {\n      let t = 0;\n      switch (m) {\n        case \"onLoad\":\n          this.button.classList.add(\"backButton-toggle--visible\");\n          break;\n        case \"onScrollDown\":\n          window.addEventListener(\"scroll\", function() {\n            let r = window.scrollY || document.documentElement.scrollTop;\n            r < t ? n.style.display = \"none\" : n.style.display = \"inline-flex\", t = r;\n          });\n          break;\n        case \"onScrollUp\":\n          window.addEventListener(\"scroll\", function() {\n            let r = window.scrollY || document.documentElement.scrollTop;\n            r > t ? n.style.display = \"none\" : n.style.display = \"inline-flex\", t = r;\n          });\n          break;\n        default:\n          this.button.classList.add(\"backButton-toggle--visible\");\n          break;\n      }\n    };\n    setTimeout(() => {\n      b();\n    }, g), n.classList.add(\"backButton-toggle\"), n.setAttribute(\"aria-label\", \"Go back\"), n.addEventListener(\"click\", () => {\n      window.history.length > 1 && history.back(), window.history.length === 1 && window.location.replace(window.location.origin);\n    });\n  }\n  // PROGRAMATIC GO BACK\n  trigger() {\n    l && (this.button, history.back());\n  }\n}\nconst S = {\n  os: k,\n  isMobile: x,\n  isCanvas: v\n};\nl && function(a) {\n  a.BackButton = C, a.deviceData = S;\n}(window);\nexport {\n  C as BackButton,\n  S as deviceData\n};\n"]}