New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@knighttower/adaptive

Package Overview
Dependencies
Maintainers
0
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knighttower/adaptive - npm Package Compare versions

Comparing version 3.11.0 to 3.12.0

2

dist/browser/Adaptive.js

@@ -1,1 +0,1 @@

(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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 u,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==n.return||n.return()}finally{if(c){throw u}}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=s(t);return null!==e?e:t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==s(t)||"boolean"==typeof t?t:f(t)?e:t}t.r(e),t.d(e,{Adaptive:()=>te,adaptive:()=>te,default:()=>te});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function c(){return"id__"+a(8)+"__"+(new Date).getTime()}var l=c;function f(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function s(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,u=n(e.split("|"));try{for(u.s();!(i=u.n()).done;){var a=i.value;if(r===a){return a}}}catch(t){u.e(t)}finally{u.f()}return!1}return e===r}return r}function p(t){return function(t){if(Array.isArray(t)){return d(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return d(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t){var e=new Set(["_private"].concat(p(t._private||[]))),n=new Set(["_protected"].concat(p(e),p(t._protected||[]))),r=new Set(t._mutable||[]),o=function(t){return n.has(t)&&!r.has(t)?(console.error("Attempt to modify protected property: ".concat(t)),!1):!(e.has(t)&&!r.has(t))||(console.error("Attempt to modify private property: ".concat(t)),!1)};return new Proxy(t,{get:function(t,n,r){if(!e.has(n)){return Reflect.get(t,n,r)}console.error("Attempt to access private property: ".concat(n))},set:function(t,e,n,r){return!!o(e)&&Reflect.set(t,e,n,r)},deleteProperty:function(t,e){return!!o(e)&&Reflect.deleteProperty(t,e)},defineProperty:function(t,e,n){return!!o(e)&&Reflect.defineProperty(t,e,n)},ownKeys:function(t){return Reflect.ownKeys(t).filter((function(t){return!e.has(t)}))},enumerate:function(t){return Reflect.enumerate(t).filter((function(t){return!e.has(t)}))},has:function(t,n){return!e.has(n)&&Reflect.has(t,n)},getOwnPropertyDescriptor:function(t,n){if(!e.has(n)){return Reflect.getOwnPropertyDescriptor(t,n)}}})}function m(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function j(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(I(e));return t.replace(n,"")}),t).trim()}}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function O(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return x(t,"{","}")},n=function(t){return x(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},a=function(t){if(t){var r=function(t){var e=S(t,"{","}"),n=S(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(w(t));if(r){return t=function(t,r){var i="__".concat(l(),"__"),u=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:u,matched:r},t}(t,r),a(t)||t}}},c=function(t,e){t=w(t);var n="object"===e?{}:[];return k(t).forEach((function(t,r){var a=t.includes(":")&&"object"===e,l=a?k(t,":"):[],f=P(u(l[0],r));if((t=a?l[1]:t)in o){var s=o[t];t=c(s.matched,s.type)}t=i(P(t)),"object"===e?n[f]=t:n.push(t)})),n};return c(a(t)||t,r)}function E(t){var e=t;if(!u(e)){return null}var n=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:t}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=g(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",h({},e.split("(")[0].trim(),T(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,O(i))}if("dotObject"===o){var a,c,l,f={};return k(e,"&&").forEach((function(t){if(t.match(r)){a=T(t,"](",")"),c=T(t,"[","]"),l=t.split("[")[0].trim()}else{a=T(t,"(",")");var e=m(k(t=t.replace(A(t,"(",")"),""),"."),2);l=e[0],c=e[1]}a=O(a),f[l]||(f[l]={}),k(c,"|").forEach((function(t){f[l][t]=a}))})),n("dotObject",f)}}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=I(e),n=I(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(f(t)){return[]}var n=(t=j(t)).split(e).map((function(t){return j(t)}));return 1===n.length&&""===n[0]?[t]:n}function T(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=A(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return j(t,e,n)})):j(i,e,n)}function P(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function I(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return C(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var _,D={},R=function(){if("undefined"!=typeof window&&!_){var t={childList:!0,subtree:!0};if(_=new MutationObserver((function(t){var e,n=M(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in D){D[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return _.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return _.observe(document.body,t)}))}},N=function(t,e){e&&(D[t]=e)},$=function(t){t&&delete D[t]},K=function(){Object.keys(D).forEach((function(t){return delete D[t]}))};function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=U(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=U(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==U(e)?e:e+""}var q=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),this.selector=e,"object"===U(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),$(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&L(e.prototype,n),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new q(t,e)};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var X=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===W(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function V(t){return function(t){if(Array.isArray(t)){return B(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return B(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,J(r.key),r)}}function J(t){var e=function(t,e){if("object"!=H(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=H(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}var Z=new Map,Y=new Map;function G(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function tt(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return x(e,"[","]")?"array":x(e,"{","}")?"object":"basic"}var et=function(t){return e=t,Y.has(e)?Y.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=X.get(o),u=null!=i?i:G(o);return u&&t.push(u),r&&t.push(X.get("null"),X.get("undefined")),Y.set(e,t),t}),[]);var e},nt=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=O(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,rt(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&z(e.prototype,n),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function rt(t){if(Z.has(t)){return Z.get(t)}var e=new Map([["testMethod",tt(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",et(t));break;case"array":e.set("tests",function(t){var e=[];return O(t).forEach((function(t){e.push(rt(t))})),e}(t));break;case"object":var n=nt(t);e=new Map([].concat(V(e),V(n)));break;default:G(t)}return Z.set(t,e),e}function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function at(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||ft(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t){return function(t){if(Array.isArray(t)){return st(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||ft(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){if(t){if("string"==typeof t){return st(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function yt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function dt(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vt(t){var e=function(t,e){if("object"!=ot(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ot(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ot(e)?e:e+""}var mt=[],bt=new Map,ht=function(){return dt((function t(e,n){yt(this,t);var r=lt(n.entries()).reduce((function(t,e){var n=ct(e,2),r=n[0],o=n[1];return ut(ut({},t),{},at({},r,o))}),{}),o=r.testOnly,i=r.testFew,u=r.testAllAny,a=r.optionalKeys,c=r.tests;this.testUnitKeys=lt(c.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=u,this.optionalKeys=a,this.testCollection=c,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!f(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!f(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return St(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=ct(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||wt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?wt(null,this.testCollection.get("any")):e.every((function(e){return wt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}}])}(),gt=function(t,e){return!!y(t,"object")&&new ht(t,e).handleUnitTest()};function wt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||St(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return wt(t[n],e)}))}(t,r);case"object":return gt(t,e);default:return!1}}function jt(t){if(t){if(bt.has(t)){return bt.get(t)}var e=null;switch(ot(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return bt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function St(t,e){mt.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var Ot=function(t,e,n){return new(function(){return dt((function r(){var o;yt(this,r),this.unitTest=rt(e),this.testResult=wt(t,this.unitTest),this.bool=this.testResult,this.settings=jt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=mt[mt.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),mt.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return kt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pt(r.key),r)}}function Pt(t){var e=function(t,e){if("object"!=Et(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Et(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var xt=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),Ot(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=Q(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var u=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));u.isInDom()||((u=document.createElement("param")).name="adaptive",u.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",u))}},(e=[{key:"beam",value:function(t){var e=this;if(y(t=E(t).directive,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=At(t,2),o=r[0],i=r[1],u=Q(i),a="beforeend";switch(o){case"before":a="beforebegin";break;case"after":a="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(a,this.props.domElement):N(this.props.adaptiveId,(function(){var t=Q(i);t.isInDom()&&(t.domElement.insertAdjacentElement(a,e.props.domElement),$(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){$(this.props.adaptiveId)}}])&&Tt(t.prototype,e),n&&Tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),It=!1;function Mt(){It||(document.querySelectorAll("[data-teleport]").forEach((function(t){new xt(t).beam(t.getAttribute("data-teleport"))})),It=!0)}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function _t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Rt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function Dt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||Rt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){if(t){if("string"==typeof t){return Nt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var $t=function(){var t="undefined"!=typeof window?window:{},e={},n=new Proxy(e,{get:function(t,e){if(e in t){return t[e]}}}),r={},o={},i={},u=!1;function a(e){var n=t.matchMedia(e);n.matches&&o[n.media].forEach((function(t){return t[0](t[1])}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={q:null,e:null};if(e){var r,o,i=e.getMinMaxQueries(),u=e.getExpQueries();if(n.q=null!==(r=i[t])&&void 0!==r?r:null,n.e=null!==(o=u[t])&&void 0!==o?o:null,n.q||n.e){if(n.q){return l(n.q[0],n.q[1])}if(n.e){return n.e}}else if(t.includes("|")){var a=t.split("|"),c=a[0],f=a[1];if(i[c]&&i[f]){return l(i[c],i[f],!0)}if(u[c]&&u[f]){return l(u[c],u[f],!0,!0)}}}return null}function l(t,e){var n="(min-width: $1px) and (max-width: $2px)";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||(t=n.replace("$1",t[0]).replace("$2",t[1]),e=n.replace("$1",e[0]).replace("$2",e[1])),"".concat(t,", ").concat(e)):n.replace("$1",t).replace("$2",e)}function f(e){if(!r[e]){var n=t.matchMedia(e),c=function(t){t.matches?o[t.media].forEach((function(t){return t[0](t[1])})):i[t.media].forEach((function(t){return t[0](t[1])}))};return r[e]=c,n.addEventListener("change",c)}u&&a(e)}return e.add=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var u in t){var a,l=t[u],s=null!==(a=c(u,r))&&void 0!==a?a:u;o[s]||(o[s]=[],i[s]=[]),o[s].push([e,l]),n&&i[s].push([n,l]),f(s)}},e.remove=function(t,e){for(var n=0,r=Object.entries(o);n<r.length;n++){var i,u=Dt(r[n],2),a=u[0],c=_t(u[1]);try{for(c.s();!(i=c.n()).done;){var l=i.value,f=Ct(l[1]);e&&"object"===f?e in l[1]&&l[1][e]===t&&(o[a]=o[a].filter((function(n){return n[1][e]!==t}))):"string"===f&&l[1]===e&&(o[a]=o[a].filter((function(e){return e[0]!==t})))}}catch(t){c.e(t)}finally{c.f()}}},e.init=function(){u=!0,Object.keys(o).forEach((function(t){f(t),a(t)}))},e.reset=function(){Object.keys(r).forEach((function(e){t.matchMedia(e).removeEventListener("change",r[e]),delete r[e]})),Object.keys(o).forEach((function(t){return delete o[t]})),Object.keys(i).forEach((function(t){return delete i[t]}))},t.QueryHandler=n,t.QueryHandler}();function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ft(r.key),r)}}function Lt(t,e,n){return(e=Ft(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t){var e=function(t,e){if("object"!=Kt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Kt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kt(e)?e:e+""}var qt=function(){return t=function t(e,n){var r=this;for(var o in function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),Lt(this,"_addClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.add(t)}))})),Lt(this,"_removeClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.remove(t)}))})),this.props=e,this.Adaptive=n,e.settings){this[o](e.settings[o])}},(e=[{key:"addClass",value:function(t){return $t.add(t,this._addClass,this._removeClass,this.Adaptive)}},{key:"removeClass",value:function(t){return $t.add(t,this._removeClass,this._addClass,this.Adaptive)}},{key:"addStyle",value:function(t){var e=this;return this.props.originalStyle=this.props.domElement.getAttribute("style"),$t.add(t,(function(t){return e.props.domElement.style.cssText+=t}),(function(){return e.props.domElement.style.cssText=e.props.originalStyle}),this.Adaptive)}},{key:"teleport",value:function(t){var e=new xt(this.props);return $t.add(t,(function(t){return e.beam(t)}),(function(){return e.back(),e.cancel()}),this.Adaptive)}},{key:"execute",value:function(t){var e=this,n={adaptiveId:e.props.uniqueId,helper:e.props.helper,domElement:e.props.domElement,xpath:e.props.xpath};return $t.add(t,(function(t){if(t&&"function"==typeof t){return t(n)}}),(function(t){if(t&&"function"==typeof t){return t(n)}}),this.Adaptive)}}])&&Ut(t.prototype,e),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const Qt={name:"TeleportTo",inheritAttrs:!1,props:{target:{type:[String,Object],require:!0},position:{type:String,default:"to",require:!1}},setup:function(t){return{directive:"".concat(t.position,"(").concat(t.target,")")}},template:'\n <div>\n <div v-teleport-to="directive">\n <slot></slot>\n </div>\n </div>\n '};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ht(r.key),r)}}function Ht(t){var e=function(t,e){if("object"!=Wt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}function Vt(t,e,n){return e=Zt(e),function(t,e){if(e&&("object"==Wt(e)||"function"==typeof e)){return e}if(void 0!==e){throw new TypeError("Derived constructors may only return object or undefined")}return function(t){if(void 0===t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(t)}(t,zt()?Reflect.construct(e,n||[],Zt(t).constructor):e.apply(t,n))}function Bt(t){var e="function"==typeof Map?new Map:void 0;return Bt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t)){return t}if("function"!=typeof t){throw new TypeError("Super expression must either be null or a function")}if(void 0!==e){if(e.has(t)){return e.get(t)}e.set(t,n)}function n(){return function(t,e,n){if(zt()){return Reflect.construct.apply(null,arguments)}var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Jt(o,n.prototype),o}(t,arguments,Zt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jt(n,t)},Bt(t)}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Yt=function(t){function e(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,e),Vt(this,e)}return function(t,e){if("function"!=typeof e&&null!==e){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t,e=this.getAttribute("target"),n=null!==(t=this.getAttribute("position"))&&void 0!==t?t:"to",r=this.getAttribute("data-adaptive-id");if(e&&!r){return new xt(this).beam("".concat(n,"(").concat(e,")"))}}}])&&Xt(n.prototype,r),o&&Xt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt(HTMLElement));function Gt(t){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(t)}var te=function(){R();var t="undefined"!=typeof window?window:{};if(t.$adaptive){return t.$adaptive}var e={_mutable:["registerElement","addQueryMinMax","addQueryExpression"]},n=v(e),r={},o=!1,i=!1,u=!1,a=!1,l=!1,f={320:[1,379],480:[380,519],520:[520,599],600:[600,699],700:[700,799],800:[800,919],920:[920,999],1e3:[1e3,1199],1200:[1200,1439],1440:[1440,1599],1600:[1600,1700]},s={mobile:[1,599],tablet:[600,799],odd:[800,1023],desktop:[1024,1920]},y={"non-desktop":[100,1023],nondesktop:[100,1023],fullscreen:[1920,6e3]},p={},d={};function m(t,n){if(!t.getAttribute("data-adaptive-id")){var o=t.getHash(),a=E(n||t.getAttribute("data-adaptive")).directive;return t.domElement.setAttribute("data-adaptive-id",o),r[o]=new qt({adaptiveId:o,helper:t,domElement:t.domElement,xpath:t.getXpathTo(),settings:a,useVue:i,useReact:u},e),o}}function b(){o=!0,document.querySelectorAll("[data-adaptive]:not([data-adaptive-id])").forEach((function(t){e.registerElement(t)})),function(){var t=document.querySelector("body"),n={};for(var r in f){n[r]="screen-"+r}for(var o in s){n[o]="is-"+o}for(var i in y){n[i]="type-"+i}e.registerElement(t,{addClass:n})}(),$t.init(),i||u?l&&Mt():Mt()}function h(){document.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),b()}return e.getAllQueries=function(){return Object.assign({},f,s,y,p,d)},e.getMinMaxQueries=function(){return Object.assign({},f,s,y,p)},e.getExpQueries=function(){return Object.assign({},d)},e.registerElement=function(t,e){var n=Q(t);if(n.isInDom()){return m(n,e)}n.whenInDom().then((function(t){return m(t,e)}))},e.addQueryMinMax=function(t,e,n){if(!p[t]){if(!e||!n){throw new Error("Min or Max must be passed (id, min, max)",1)}p[t]=[e,n]}},e.addQueryExpression=function(t,e){d[t]||(d[t]=e)},e.if=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n&&"function"==typeof n,o=n&&Array.isArray(n),i={};return i[t]={_private:["breakdownId","match","ifElse","do","removeAfterExec"],_mutable:["ifElse","match","removeAfterExec"],uid:c(),breakdownId:t,match:!1,executed:!1,removeAfterExec:!1,ifElse:null,else:function(t){t&&"function"==typeof t&&(this.ifElse=t)},onlyOnce:function(){this.removeAfterExec=!0,this.executed&&$t.remove(this.uid,"uid")},do:function(){return this.match?(r&&n(),o&&(n[0][n[1]]=!0),this.removeAfterExec&&$t.remove(this.uid,"uid"),this.executed=!0,!0):(o&&(n[0][n[1]]=!1),this.ifElse&&this.ifElse(),!1)}},$t.add(i,(function(t){t.match=!0,t.do()}),(function(t){t.match=!1,t.do()}),e),v(i[t])},e.reset=function(){Object.keys(r).forEach((function(t){return delete r[t]})),K(),$t.reset(),o=!1},e.init=function(){return!o&&("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?h():(document.addEventListener("DOMContentLoaded",h),void t.addEventListener("load",h)))},e.useVue=function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&"function"==typeof t.mixin){i=!0;var e={install:function(t){t.config.globalProperties.Adaptive=n,t.provide("Adaptive",n)}};t.use(e),t.directive("adaptive",{mounted:function(t,e){n.registerElement(t,e.value)}}),t.directive("teleport-to",{mounted:function(t,e){return new xt(t).beam(e.value)}}),t.component("TeleportTo",Qt),t.mixin({mounted:function(){return n.init()}})}return t},e.useWebComponent=function(){a||i||(customElements.define("teleport-to",Yt),a=!0)},e.useReact=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&(e.useWebComponent(),u=!0)},t.$adaptive=n,t.$adaptive}();window.Adaptive=e})();
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=s(t);return null!==e?e:t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==s(t)||"boolean"==typeof t?t:f(t)?e:t}t.r(e),t.d(e,{Adaptive:()=>te,adaptive:()=>te,default:()=>te});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function c(){return"id__"+a(8)+"__"+(new Date).getTime()}var l=c;function f(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function s(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,u=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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 u,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(c){throw u}}}}}(e.split("|"));try{for(u.s();!(i=u.n()).done;){var a=i.value;if(r===a){return a}}}catch(t){u.e(t)}finally{u.f()}return!1}return e===r}return r}function p(t){return function(t){if(Array.isArray(t)){return d(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return d(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t){var e=new Set(["_private"].concat(p(t._private||[]))),n=new Set(["_protected"].concat(p(e),p(t._protected||[]))),r=new Set(t._mutable||[]),o=function(t){return n.has(t)&&!r.has(t)?(console.error("Attempt to modify protected property: ".concat(t)),!1):!(e.has(t)&&!r.has(t))||(console.error("Attempt to modify private property: ".concat(t)),!1)};return new Proxy(t,{get:function(t,n,r){if(!e.has(n)){return Reflect.get(t,n,r)}console.error("Attempt to access private property: ".concat(n))},set:function(t,e,n,r){return!!o(e)&&Reflect.set(t,e,n,r)},deleteProperty:function(t,e){return!!o(e)&&Reflect.deleteProperty(t,e)},defineProperty:function(t,e,n){return!!o(e)&&Reflect.defineProperty(t,e,n)},ownKeys:function(t){return Reflect.ownKeys(t).filter((function(t){return!e.has(t)}))},enumerate:function(t){return Reflect.enumerate(t).filter((function(t){return!e.has(t)}))},has:function(t,n){return!e.has(n)&&Reflect.has(t,n)},getOwnPropertyDescriptor:function(t,n){if(!e.has(n)){return Reflect.getOwnPropertyDescriptor(t,n)}}})}function m(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function j(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(I(e));return t.replace(n,"")}),t).trim()}}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function O(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return x(t,"{","}")},n=function(t){return x(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},a=function(t){if(t){var r=function(t){var e=S(t,"{","}"),n=S(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(w(t));if(r){return t=function(t,r){var i="__".concat(l(),"__"),u=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:u,matched:r},t}(t,r),a(t)||t}}},c=function(t,e){t=w(t);var n="object"===e?{}:[];return k(t).forEach((function(t,r){var a=t.includes(":")&&"object"===e,l=a?k(t,":"):[],f=P(u(l[0],r));if((t=a?l[1]:t)in o){var s=o[t];t=c(s.matched,s.type)}t=i(P(t)),"object"===e?n[f]=t:n.push(t)})),n};return c(a(t)||t,r)}function E(t){var e=t;if(!u(e)){return null}var n=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:t}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=g(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",h({},e.split("(")[0].trim(),T(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,O(i))}if("dotObject"===o){var a,c,l,f={};return k(e,"&&").forEach((function(t){if(t.match(r)){a=T(t,"](",")"),c=T(t,"[","]"),l=t.split("[")[0].trim()}else{a=T(t,"(",")");var e=m(k(t=t.replace(A(t,"(",")"),""),"."),2);l=e[0],c=e[1]}a=O(a),f[l]||(f[l]={}),k(c,"|").forEach((function(t){f[l][t]=a}))})),n("dotObject",f)}}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=I(e),n=I(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(f(t)){return[]}var n=(t=j(t)).split(e).map((function(t){return j(t)}));return 1===n.length&&""===n[0]?[t]:n}function T(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=A(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return j(t,e,n)})):j(i,e,n)}function P(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function I(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return C(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var _,D={},R=function(){if("undefined"!=typeof window&&!_){var t={childList:!0,subtree:!0};if(_=new MutationObserver((function(t){var e,n=M(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in D){D[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return _.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return _.observe(document.body,t)}))}},N=function(t,e){e&&(D[t]=e)},$=function(t){t&&delete D[t]},K=function(){Object.keys(D).forEach((function(t){return delete D[t]}))};function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=U(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=U(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==U(e)?e:e+""}var q=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),this.selector=e,"object"===U(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),$(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&L(e.prototype,n),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new q(t,e)};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var X=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===W(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function V(t){return function(t){if(Array.isArray(t)){return B(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return B(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,J(r.key),r)}}function J(t){var e=function(t,e){if("object"!=H(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=H(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}var Z=new Map,Y=new Map;function G(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function tt(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return x(e,"[","]")?"array":x(e,"{","}")?"object":"basic"}var et=function(t){return e=t,Y.has(e)?Y.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=X.get(o),u=null!=i?i:G(o);return u&&t.push(u),r&&t.push(X.get("null"),X.get("undefined")),Y.set(e,t),t}),[]);var e},nt=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=O(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,rt(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&z(e.prototype,n),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function rt(t){if(Z.has(t)){return Z.get(t)}var e=new Map([["testMethod",tt(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",et(t));break;case"array":e.set("tests",function(t){var e=[];return O(t).forEach((function(t){e.push(rt(t))})),e}(t));break;case"object":var n=nt(t);e=new Map([].concat(V(e),V(n)));break;default:G(t)}return Z.set(t,e),e}function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function at(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||ft(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t){return function(t){if(Array.isArray(t)){return st(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||ft(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){if(t){if("string"==typeof t){return st(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function yt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function dt(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vt(t){var e=function(t,e){if("object"!=ot(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ot(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ot(e)?e:e+""}var mt=[],bt=new Map,ht=function(){return dt((function t(e,n){yt(this,t);var r=lt(n.entries()).reduce((function(t,e){var n=ct(e,2),r=n[0],o=n[1];return ut(ut({},t),{},at({},r,o))}),{}),o=r.testOnly,i=r.testFew,u=r.testAllAny,a=r.optionalKeys,c=r.tests;this.testUnitKeys=lt(c.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=u,this.optionalKeys=a,this.testCollection=c,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!f(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!f(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return St(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=ct(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||wt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?wt(null,this.testCollection.get("any")):e.every((function(e){return wt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}}])}(),gt=function(t,e){return!!y(t,"object")&&new ht(t,e).handleUnitTest()};function wt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||St(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return wt(t[n],e)}))}(t,r);case"object":return gt(t,e);default:return!1}}function jt(t){if(t){if(bt.has(t)){return bt.get(t)}var e=null;switch(ot(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return bt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function St(t,e){mt.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var Ot=function(t,e,n){return new(function(){return dt((function r(){var o;yt(this,r),this.unitTest=rt(e),this.testResult=wt(t,this.unitTest),this.bool=this.testResult,this.settings=jt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=mt[mt.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),mt.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return kt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pt(r.key),r)}}function Pt(t){var e=function(t,e){if("object"!=Et(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Et(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var xt=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),Ot(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=Q(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var u=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));u.isInDom()||((u=document.createElement("param")).name="adaptive",u.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",u))}},(e=[{key:"beam",value:function(t){var e=this;if(y(t=E(t).directive,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=At(t,2),o=r[0],i=r[1],u=Q(i),a="beforeend";switch(o){case"before":a="beforebegin";break;case"after":a="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(a,this.props.domElement):N(this.props.adaptiveId,(function(){var t=Q(i);t.isInDom()&&(t.domElement.insertAdjacentElement(a,e.props.domElement),$(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){$(this.props.adaptiveId)}}])&&Tt(t.prototype,e),n&&Tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),It=!1;function Mt(){It||(document.querySelectorAll("[data-teleport]").forEach((function(t){new xt(t).beam(t.getAttribute("data-teleport"))})),It=!0)}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function _t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Rt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function Dt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||Rt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){if(t){if("string"==typeof t){return Nt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var $t=function(){var t="undefined"!=typeof window?window:{},e={},n=new Proxy(e,{get:function(t,e){if(e in t){return t[e]}}}),r={},o={},i={},u=!1;function a(e){var n=t.matchMedia(e);n.matches&&o[n.media].forEach((function(t){return t[0](t[1])}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={q:null,e:null};if(e){var r,o,i=e.getMinMaxQueries(),u=e.getExpQueries();if(n.q=null!==(r=i[t])&&void 0!==r?r:null,n.e=null!==(o=u[t])&&void 0!==o?o:null,n.q||n.e){if(n.q){return l(n.q[0],n.q[1])}if(n.e){return n.e}}else if(t.includes("|")){var a=t.split("|"),c=a[0],f=a[1];if(i[c]&&i[f]){return l(i[c],i[f],!0)}if(u[c]&&u[f]){return l(u[c],u[f],!0,!0)}}}return null}function l(t,e){var n="(min-width: $1px) and (max-width: $2px)";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||(t=n.replace("$1",t[0]).replace("$2",t[1]),e=n.replace("$1",e[0]).replace("$2",e[1])),"".concat(t,", ").concat(e)):n.replace("$1",t).replace("$2",e)}function f(e){if(!r[e]){var n=t.matchMedia(e),c=function(t){t.matches?o[t.media].forEach((function(t){return t[0](t[1])})):i[t.media].forEach((function(t){return t[0](t[1])}))};return r[e]=c,n.addEventListener("change",c)}u&&a(e)}return e.add=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var u in t){var a,l=t[u],s=null!==(a=c(u,r))&&void 0!==a?a:u;o[s]||(o[s]=[],i[s]=[]),o[s].push([e,l]),n&&i[s].push([n,l]),f(s)}},e.remove=function(t,e){for(var n=0,r=Object.entries(o);n<r.length;n++){var i,u=Dt(r[n],2),a=u[0],c=_t(u[1]);try{for(c.s();!(i=c.n()).done;){var l=i.value,f=Ct(l[1]);e&&"object"===f?e in l[1]&&l[1][e]===t&&(o[a]=o[a].filter((function(n){return n[1][e]!==t}))):"string"===f&&l[1]===e&&(o[a]=o[a].filter((function(e){return e[0]!==t})))}}catch(t){c.e(t)}finally{c.f()}}},e.init=function(){u=!0,Object.keys(o).forEach((function(t){f(t),a(t)}))},e.reset=function(){Object.keys(r).forEach((function(e){t.matchMedia(e).removeEventListener("change",r[e]),delete r[e]})),Object.keys(o).forEach((function(t){return delete o[t]})),Object.keys(i).forEach((function(t){return delete i[t]}))},t.QueryHandler=n,t.QueryHandler}();function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ft(r.key),r)}}function Lt(t,e,n){return(e=Ft(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t){var e=function(t,e){if("object"!=Kt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Kt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kt(e)?e:e+""}var qt=function(){return t=function t(e,n){var r=this;for(var o in function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),Lt(this,"_addClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.add(t)}))})),Lt(this,"_removeClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.remove(t)}))})),this.props=e,this.Adaptive=n,e.settings){this[o](e.settings[o])}},(e=[{key:"addClass",value:function(t){return $t.add(t,this._addClass,this._removeClass,this.Adaptive)}},{key:"removeClass",value:function(t){return $t.add(t,this._removeClass,this._addClass,this.Adaptive)}},{key:"addStyle",value:function(t){var e=this;return this.props.originalStyle=this.props.domElement.getAttribute("style"),$t.add(t,(function(t){return e.props.domElement.style.cssText+=t}),(function(){return e.props.domElement.style.cssText=e.props.originalStyle}),this.Adaptive)}},{key:"teleport",value:function(t){var e=new xt(this.props);return $t.add(t,(function(t){return e.beam(t)}),(function(){return e.back(),e.cancel()}),this.Adaptive)}},{key:"execute",value:function(t){var e=this,n={adaptiveId:e.props.uniqueId,helper:e.props.helper,domElement:e.props.domElement,xpath:e.props.xpath};return $t.add(t,(function(t){if(t&&"function"==typeof t){return t(n)}}),(function(t){if(t&&"function"==typeof t){return t(n)}}),this.Adaptive)}}])&&Ut(t.prototype,e),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const Qt={name:"TeleportTo",inheritAttrs:!1,props:{target:{type:[String,Object],require:!0},position:{type:String,default:"to",require:!1}},setup:function(t){return{directive:"".concat(t.position,"(").concat(t.target,")")}},template:'\n <div>\n <div v-teleport-to="directive">\n <slot></slot>\n </div>\n </div>\n '};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ht(r.key),r)}}function Ht(t){var e=function(t,e){if("object"!=Wt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}function Vt(t,e,n){return e=Zt(e),function(t,e){if(e&&("object"==Wt(e)||"function"==typeof e)){return e}if(void 0!==e){throw new TypeError("Derived constructors may only return object or undefined")}return function(t){if(void 0===t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(t)}(t,zt()?Reflect.construct(e,n||[],Zt(t).constructor):e.apply(t,n))}function Bt(t){var e="function"==typeof Map?new Map:void 0;return Bt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t)){return t}if("function"!=typeof t){throw new TypeError("Super expression must either be null or a function")}if(void 0!==e){if(e.has(t)){return e.get(t)}e.set(t,n)}function n(){return function(t,e,n){if(zt()){return Reflect.construct.apply(null,arguments)}var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Jt(o,n.prototype),o}(t,arguments,Zt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jt(n,t)},Bt(t)}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Yt=function(t){function e(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,e),Vt(this,e)}return function(t,e){if("function"!=typeof e&&null!==e){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t,e=this.getAttribute("target"),n=null!==(t=this.getAttribute("position"))&&void 0!==t?t:"to",r=this.getAttribute("data-adaptive-id");if(e&&!r){return new xt(this).beam("".concat(n,"(").concat(e,")"))}}}])&&Xt(n.prototype,r),o&&Xt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt(HTMLElement));function Gt(t){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(t)}var te=function(){R();var t="undefined"!=typeof window?window:{};if(t.$adaptive){return t.$adaptive}var e={_mutable:["registerElement","addQueryMinMax","addQueryExpression"]},n=v(e),r={},o=!1,i=!1,u=!1,a=!1,l=!1,f={320:[1,379],480:[380,519],520:[520,599],600:[600,699],700:[700,799],800:[800,919],920:[920,999],1e3:[1e3,1199],1200:[1200,1439],1440:[1440,1599],1600:[1600,1700]},s={mobile:[1,599],tablet:[600,799],odd:[800,1023],desktop:[1024,1920]},y={"non-desktop":[100,1023],nondesktop:[100,1023],fullscreen:[1920,6e3]},p={},d={};function m(t,n){if(!t.getAttribute("data-adaptive-id")){var o=t.getHash(),a=E(n||t.getAttribute("data-adaptive")).directive;return t.domElement.setAttribute("data-adaptive-id",o),r[o]=new qt({adaptiveId:o,helper:t,domElement:t.domElement,xpath:t.getXpathTo(),settings:a,useVue:i,useReact:u},e),o}}function b(){o=!0,document.querySelectorAll("[data-adaptive]:not([data-adaptive-id])").forEach((function(t){e.registerElement(t)})),function(){var t=document.querySelector("body"),n={};for(var r in f){n[r]="screen-"+r}for(var o in s){n[o]="is-"+o}for(var i in y){n[i]="type-"+i}e.registerElement(t,{addClass:n})}(),$t.init(),i||u?l&&Mt():Mt()}function h(){document.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),b()}return e.getAllQueries=function(){return Object.assign({},f,s,y,p,d)},e.getMinMaxQueries=function(){return Object.assign({},f,s,y,p)},e.getExpQueries=function(){return Object.assign({},d)},e.registerElement=function(t,e){var n=Q(t);if(n.isInDom()){return m(n,e)}n.whenInDom().then((function(t){return m(t,e)}))},e.addQueryMinMax=function(t,e,n){if(!p[t]){if(!e||!n){throw new Error("Min or Max must be passed (id, min, max)",1)}p[t]=[e,n]}},e.addQueryExpression=function(t,e){d[t]||(d[t]=e)},e.if=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n&&"function"==typeof n,o=n&&Array.isArray(n),i={};return i[t]={_private:["breakdownId","match","ifElse","do","removeAfterExec"],_mutable:["ifElse","match","removeAfterExec"],uid:c(),breakdownId:t,match:!1,executed:!1,removeAfterExec:!1,ifElse:null,else:function(t){t&&"function"==typeof t&&(this.ifElse=t)},onlyOnce:function(){this.removeAfterExec=!0,this.executed&&$t.remove(this.uid,"uid")},do:function(){return this.match?(r&&n(),o&&(n[0][n[1]]=!0),this.removeAfterExec&&$t.remove(this.uid,"uid"),this.executed=!0,!0):(o&&(n[0][n[1]]=!1),this.ifElse&&this.ifElse(),!1)}},$t.add(i,(function(t){t.match=!0,t.do()}),(function(t){t.match=!1,t.do()}),e),v(i[t])},e.reset=function(){Object.keys(r).forEach((function(t){return delete r[t]})),K(),$t.reset(),o=!1},e.init=function(){return!o&&("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?h():(document.addEventListener("DOMContentLoaded",h),void t.addEventListener("load",h)))},e.useVue=function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&"function"==typeof t.mixin){i=!0;var e={install:function(t){t.config.globalProperties.Adaptive=n,t.provide("Adaptive",n)}};t.use(e),t.directive("adaptive",{mounted:function(t,e){n.registerElement(t,e.value)}}),t.directive("teleport-to",{mounted:function(t,e){return new xt(t).beam(e.value)}}),t.component("TeleportTo",Qt),t.mixin({mounted:function(){return n.init()}})}return t},e.useWebComponent=function(){a||i||(customElements.define("teleport-to",Yt),a=!0)},e.useReact=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&(e.useWebComponent(),u=!0)},t.$adaptive=n,t.$adaptive}();window.Adaptive=e})();

@@ -1,1 +0,1 @@

(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(l){throw a}}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=f(t);return null!==e?e:t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==f(t)||"boolean"==typeof t?t:s(t)?e:t}t.r(e),t.d(e,{Teleport:()=>At,TeleportGlobal:()=>Et,default:()=>At,teleport:()=>At});var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function l(){return"id__"+u(8)+"__"+(new Date).getTime()}var c=l;function s(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function f(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,a=n(e.split("|"));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(r===u){return u}}}catch(t){a.e(t)}finally{a.f()}return!1}return e===r}return r}function p(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function d(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(E(e));return t.replace(n,"")}),t).trim()}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function w(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return k(t,"{","}")},n=function(t){return k(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},u=function(t){if(t){var r=function(t){var e=g(t,"{","}"),n=g(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(h(t));if(r){return t=function(t,r){var i="__".concat(c(),"__"),a=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:a,matched:r},t}(t,r),u(t)||t}}},l=function(t,e){t=h(t);var n="object"===e?{}:[];return O(t).forEach((function(t,r){var u=t.includes(":")&&"object"===e,c=u?O(t,":"):[],s=A(a(c[0],r));if((t=u?c[1]:t)in o){var f=o[t];t=l(f.matched,f.type)}t=i(A(t)),"object"===e?n[s]=t:n.push(t)})),n};return l(u(t)||t,r)}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=E(e),n=E(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(s(t)){return[]}var n=(t=d(t)).split(e).map((function(t){return d(t)}));return 1===n.length&&""===n[0]?[t]:n}function S(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=j(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return d(t,e,n)})):d(i,e,n)}function A(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function E(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function T(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return I(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u){throw i}}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var P,M={},D=function(){if("undefined"!=typeof window&&!P){var t={childList:!0,subtree:!0};if(P=new MutationObserver((function(t){var e,n=T(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in M){M[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return P.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return P.observe(document.body,t)}))}},N=function(t,e){e&&(M[t]=e)},x=function(t){t&&delete M[t]};function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function U(t){var e=function(t,e){if("object"!=C(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}var R=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),D(),this.selector=e,"object"===C(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),x(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&K(e.prototype,n),r&&K(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new R(t,e)};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var $=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===_(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function X(t){return function(t){if(Array.isArray(t)){return L(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return L(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!=W(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=W(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}var B=new Map,H=new Map;function J(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function Z(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return k(e,"[","]")?"array":k(e,"{","}")?"object":"basic"}var q=function(t){return e=t,H.has(e)?H.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=$.get(o),a=null!=i?i:J(o);return a&&t.push(a),r&&t.push($.get("null"),$.get("undefined")),H.set(e,t),t}),[]);var e},Y=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=w(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,G(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&V(e.prototype,n),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function G(t){if(B.has(t)){return B.get(t)}var e=new Map([["testMethod",Z(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",q(t));break;case"array":e.set("tests",function(t){var e=[];return w(t).forEach((function(t){e.push(G(t))})),e}(t));break;case"object":var n=Y(t);e=new Map([].concat(X(e),X(n)));break;default:J(t)}return B.set(t,e),e}function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nt(t,e,n){return(e=st(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t){return function(t){if(Array.isArray(t)){return at(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t){return at(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function ut(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,st(r.key),r)}}function ct(t,e,n){return e&&lt(t.prototype,e),n&&lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t){var e=function(t,e){if("object"!=Q(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Q(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Q(e)?e:e+""}var ft=[],yt=new Map,pt=function(){return ct((function t(e,n){ut(this,t);var r=ot(n.entries()).reduce((function(t,e){var n=rt(e,2),r=n[0],o=n[1];return et(et({},t),{},nt({},r,o))}),{}),o=r.testOnly,i=r.testFew,a=r.testAllAny,u=r.optionalKeys,l=r.tests;this.testUnitKeys=ot(l.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=a,this.optionalKeys=u,this.testCollection=l,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!s(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!s(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return ht(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=rt(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||vt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?vt(null,this.testCollection.get("any")):e.every((function(e){return vt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}}])}(),bt=function(t,e){return!!y(t,"object")&&new pt(t,e).handleUnitTest()};function vt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||ht(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return vt(t[n],e)}))}(t,r);case"object":return bt(t,e);default:return!1}}function mt(t){if(t){if(yt.has(t)){return yt.get(t)}var e=null;switch(Q(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return yt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function ht(t,e){ft.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var dt=function(t,e,n){return new(function(){return ct((function r(){var o;ut(this,r),this.unitTest=G(e),this.testResult=vt(t,this.unitTest),this.bool=this.testResult,this.settings=mt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=ft[ft.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),ft.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function wt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return jt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,St(r.key),r)}}function St(t){var e=function(t,e){if("object"!=gt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gt(e)?e:e+""}var At=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),D(),dt(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=F(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var a=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));a.isInDom()||((a=document.createElement("param")).name="adaptive",a.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",a))}},e=[{key:"beam",value:function(t){var e=this;if(t=function(t){var e=t;if(!a(e)){return null}var n=function(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=m(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",v({},e.split("(")[0].trim(),S(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,w(i))}if("dotObject"===o){var u,l,c,s={};return O(e,"&&").forEach((function(t){if(t.match(r)){u=S(t,"](",")"),l=S(t,"[","]"),c=t.split("[")[0].trim()}else{u=S(t,"(",")");var e=p(O(t=t.replace(j(t,"(",")"),""),"."),2);c=e[0],l=e[1]}u=w(u),s[c]||(s[c]={}),O(l,"|").forEach((function(t){s[c][t]=u}))})),n("dotObject",s)}}(t).directive,y(t,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=wt(t,2),o=r[0],i=r[1],u=F(i),l="beforeend";switch(o){case"before":l="beforebegin";break;case"after":l="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(l,this.props.domElement):N(this.props.adaptiveId,(function(){var t=F(i);t.isInDom()&&(t.domElement.insertAdjacentElement(l,e.props.domElement),x(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){x(this.props.adaptiveId)}}],e&&Ot(t.prototype,e),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),kt=!1;function Et(){kt||(document.querySelectorAll("[data-teleport]").forEach((function(t){new At(t).beam(t.getAttribute("data-teleport"))})),kt=!0)}window.Teleport=e})();
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=f(t);return null!==e?e:t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==f(t)||"boolean"==typeof t?t:s(t)?e:t}t.r(e),t.d(e,{Teleport:()=>At,TeleportGlobal:()=>Et,default:()=>At,teleport:()=>At});var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function l(){return"id__"+u(8)+"__"+(new Date).getTime()}var c=l;function s(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function f(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(l){throw a}}}}}(e.split("|"));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(r===u){return u}}}catch(t){a.e(t)}finally{a.f()}return!1}return e===r}return r}function p(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function d(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(E(e));return t.replace(n,"")}),t).trim()}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function w(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return k(t,"{","}")},n=function(t){return k(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},u=function(t){if(t){var r=function(t){var e=g(t,"{","}"),n=g(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(h(t));if(r){return t=function(t,r){var i="__".concat(c(),"__"),a=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:a,matched:r},t}(t,r),u(t)||t}}},l=function(t,e){t=h(t);var n="object"===e?{}:[];return O(t).forEach((function(t,r){var u=t.includes(":")&&"object"===e,c=u?O(t,":"):[],s=A(a(c[0],r));if((t=u?c[1]:t)in o){var f=o[t];t=l(f.matched,f.type)}t=i(A(t)),"object"===e?n[s]=t:n.push(t)})),n};return l(u(t)||t,r)}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=E(e),n=E(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(s(t)){return[]}var n=(t=d(t)).split(e).map((function(t){return d(t)}));return 1===n.length&&""===n[0]?[t]:n}function S(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=j(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return d(t,e,n)})):d(i,e,n)}function A(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function E(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function T(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return I(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u){throw i}}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var P,M={},D=function(){if("undefined"!=typeof window&&!P){var t={childList:!0,subtree:!0};if(P=new MutationObserver((function(t){var e,n=T(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in M){M[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return P.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return P.observe(document.body,t)}))}},N=function(t,e){e&&(M[t]=e)},x=function(t){t&&delete M[t]};function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function U(t){var e=function(t,e){if("object"!=C(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}var R=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),D(),this.selector=e,"object"===C(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),x(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&K(e.prototype,n),r&&K(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new R(t,e)};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var $=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===_(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function X(t){return function(t){if(Array.isArray(t)){return L(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return L(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!=W(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=W(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}var B=new Map,H=new Map;function J(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function Z(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return k(e,"[","]")?"array":k(e,"{","}")?"object":"basic"}var q=function(t){return e=t,H.has(e)?H.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=$.get(o),a=null!=i?i:J(o);return a&&t.push(a),r&&t.push($.get("null"),$.get("undefined")),H.set(e,t),t}),[]);var e},Y=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=w(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,G(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&V(e.prototype,n),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function G(t){if(B.has(t)){return B.get(t)}var e=new Map([["testMethod",Z(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",q(t));break;case"array":e.set("tests",function(t){var e=[];return w(t).forEach((function(t){e.push(G(t))})),e}(t));break;case"object":var n=Y(t);e=new Map([].concat(X(e),X(n)));break;default:J(t)}return B.set(t,e),e}function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nt(t,e,n){return(e=st(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t){return function(t){if(Array.isArray(t)){return at(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t){return at(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function ut(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,st(r.key),r)}}function ct(t,e,n){return e&&lt(t.prototype,e),n&&lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t){var e=function(t,e){if("object"!=Q(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Q(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Q(e)?e:e+""}var ft=[],yt=new Map,pt=function(){return ct((function t(e,n){ut(this,t);var r=ot(n.entries()).reduce((function(t,e){var n=rt(e,2),r=n[0],o=n[1];return et(et({},t),{},nt({},r,o))}),{}),o=r.testOnly,i=r.testFew,a=r.testAllAny,u=r.optionalKeys,l=r.tests;this.testUnitKeys=ot(l.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=a,this.optionalKeys=u,this.testCollection=l,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!s(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!s(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return ht(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=rt(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||vt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?vt(null,this.testCollection.get("any")):e.every((function(e){return vt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}}])}(),bt=function(t,e){return!!y(t,"object")&&new pt(t,e).handleUnitTest()};function vt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||ht(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return vt(t[n],e)}))}(t,r);case"object":return bt(t,e);default:return!1}}function mt(t){if(t){if(yt.has(t)){return yt.get(t)}var e=null;switch(Q(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return yt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function ht(t,e){ft.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var dt=function(t,e,n){return new(function(){return ct((function r(){var o;ut(this,r),this.unitTest=G(e),this.testResult=vt(t,this.unitTest),this.bool=this.testResult,this.settings=mt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=ft[ft.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),ft.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function wt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return jt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,St(r.key),r)}}function St(t){var e=function(t,e){if("object"!=gt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gt(e)?e:e+""}var At=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),D(),dt(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=F(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var a=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));a.isInDom()||((a=document.createElement("param")).name="adaptive",a.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",a))}},e=[{key:"beam",value:function(t){var e=this;if(t=function(t){var e=t;if(!a(e)){return null}var n=function(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=m(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",v({},e.split("(")[0].trim(),S(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,w(i))}if("dotObject"===o){var u,l,c,s={};return O(e,"&&").forEach((function(t){if(t.match(r)){u=S(t,"](",")"),l=S(t,"[","]"),c=t.split("[")[0].trim()}else{u=S(t,"(",")");var e=p(O(t=t.replace(j(t,"(",")"),""),"."),2);c=e[0],l=e[1]}u=w(u),s[c]||(s[c]={}),O(l,"|").forEach((function(t){s[c][t]=u}))})),n("dotObject",s)}}(t).directive,y(t,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=wt(t,2),o=r[0],i=r[1],u=F(i),l="beforeend";switch(o){case"before":l="beforebegin";break;case"after":l="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(l,this.props.domElement):N(this.props.adaptiveId,(function(){var t=F(i);t.isInDom()&&(t.domElement.insertAdjacentElement(l,e.props.domElement),x(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){x(this.props.adaptiveId)}}],e&&Ot(t.prototype,e),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),kt=!1;function Et(){kt||(document.querySelectorAll("[data-teleport]").forEach((function(t){new At(t).beam(t.getAttribute("data-teleport"))})),kt=!0)}window.Teleport=e})();

@@ -236,2 +236,3 @@ // // -----------------------------------------

// emptyOrValue,
// extend,
// formatPhoneNumber,

@@ -238,0 +239,0 @@ // getDynamicId,

@@ -1,1 +0,1 @@

var t,e;t=this,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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 u,a=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==n.return||n.return()}finally{if(c){throw u}}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=s(t);return null!==e?e:t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==s(t)||"boolean"==typeof t?t:f(t)?e:t}t.r(e),t.d(e,{Adaptive:()=>te,adaptive:()=>te,default:()=>te});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function c(){return"id__"+a(8)+"__"+(new Date).getTime()}var l=c;function f(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function s(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,u=n(e.split("|"));try{for(u.s();!(i=u.n()).done;){var a=i.value;if(r===a){return a}}}catch(t){u.e(t)}finally{u.f()}return!1}return e===r}return r}function p(t){return function(t){if(Array.isArray(t)){return d(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return d(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t){var e=new Set(["_private"].concat(p(t._private||[]))),n=new Set(["_protected"].concat(p(e),p(t._protected||[]))),r=new Set(t._mutable||[]),o=function(t){return n.has(t)&&!r.has(t)?(console.error("Attempt to modify protected property: ".concat(t)),!1):!(e.has(t)&&!r.has(t)&&(console.error("Attempt to modify private property: ".concat(t)),1))};return new Proxy(t,{get:function(t,n,r){if(!e.has(n)){return Reflect.get(t,n,r)}console.error("Attempt to access private property: ".concat(n))},set:function(t,e,n,r){return!!o(e)&&Reflect.set(t,e,n,r)},deleteProperty:function(t,e){return!!o(e)&&Reflect.deleteProperty(t,e)},defineProperty:function(t,e,n){return!!o(e)&&Reflect.defineProperty(t,e,n)},ownKeys:function(t){return Reflect.ownKeys(t).filter((function(t){return!e.has(t)}))},enumerate:function(t){return Reflect.enumerate(t).filter((function(t){return!e.has(t)}))},has:function(t,n){return!e.has(n)&&Reflect.has(t,n)},getOwnPropertyDescriptor:function(t,n){if(!e.has(n)){return Reflect.getOwnPropertyDescriptor(t,n)}}})}function m(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function j(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(I(e));return t.replace(n,"")}),t).trim()}}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function O(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return P(t,"{","}")},n=function(t){return P(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},a=function(t){if(t){var r=function(t){var e=S(t,"{","}"),n=S(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(w(t));if(r){return t=function(t,r){var i="__".concat(l(),"__"),u=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:u,matched:r},t}(t,r),a(t)||t}}},c=function(t,e){t=w(t);var n="object"===e?{}:[];return k(t).forEach((function(t,r){var a=t.includes(":")&&"object"===e,l=a?k(t,":"):[],f=x(u(l[0],r));if((t=a?l[1]:t)in o){var s=o[t];t=c(s.matched,s.type)}t=i(x(t)),"object"===e?n[f]=t:n.push(t)})),n};return c(a(t)||t,r)}function E(t){var e=t;if(!u(e)){return null}var n=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:t}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=g(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",h({},e.split("(")[0].trim(),T(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,O(i))}if("dotObject"===o){var a,c,l,f={};return k(e,"&&").forEach((function(t){if(t.match(r)){a=T(t,"](",")"),c=T(t,"[","]"),l=t.split("[")[0].trim()}else{a=T(t,"(",")");var e=m(k(t=t.replace(A(t,"(",")"),""),"."),2);l=e[0],c=e[1]}a=O(a),f[l]||(f[l]={}),k(c,"|").forEach((function(t){f[l][t]=a}))})),n("dotObject",f)}}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=I(e),n=I(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(f(t)){return[]}var n=(t=j(t)).split(e).map((function(t){return j(t)}));return 1===n.length&&""===n[0]?[t]:n}function T(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=A(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return j(t,e,n)})):j(i,e,n)}function x(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function I(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return C(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var _,D={},R=function(){if("undefined"!=typeof window&&!_){var t={childList:!0,subtree:!0};if(_=new MutationObserver((function(t){var e,n=M(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in D){D[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return _.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return _.observe(document.body,t)}))}},N=function(t,e){e&&(D[t]=e)},$=function(t){t&&delete D[t]},K=function(){Object.keys(D).forEach((function(t){return delete D[t]}))};function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=U(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=U(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==U(e)?e:e+""}var q=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),this.selector=e,"object"===U(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),$(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&L(e.prototype,n),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new q(t,e)};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var X=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===W(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function V(t){return function(t){if(Array.isArray(t)){return B(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return B(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,J(r.key),r)}}function J(t){var e=function(t,e){if("object"!=H(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=H(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}var Z=new Map,Y=new Map;function G(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function tt(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return P(e,"[","]")?"array":P(e,"{","}")?"object":"basic"}var et=function(t){return e=t,Y.has(e)?Y.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=X.get(o),u=null!=i?i:G(o);return u&&t.push(u),r&&t.push(X.get("null"),X.get("undefined")),Y.set(e,t),t}),[]);var e},nt=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=O(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,rt(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&z(e.prototype,n),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function rt(t){if(Z.has(t)){return Z.get(t)}var e=new Map([["testMethod",tt(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",et(t));break;case"array":e.set("tests",function(t){var e=[];return O(t).forEach((function(t){e.push(rt(t))})),e}(t));break;case"object":var n=nt(t);e=new Map([].concat(V(e),V(n)));break;default:G(t)}return Z.set(t,e),e}function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function at(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||ft(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t){return function(t){if(Array.isArray(t)){return st(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||ft(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){if(t){if("string"==typeof t){return st(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function yt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function dt(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vt(t){var e=function(t,e){if("object"!=ot(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ot(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ot(e)?e:e+""}var mt=[],bt=new Map,ht=function(){return dt((function t(e,n){yt(this,t);var r=lt(n.entries()).reduce((function(t,e){var n=ct(e,2),r=n[0],o=n[1];return ut(ut({},t),{},at({},r,o))}),{}),o=r.testOnly,i=r.testFew,u=r.testAllAny,a=r.optionalKeys,c=r.tests;this.testUnitKeys=lt(c.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=u,this.optionalKeys=a,this.testCollection=c,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!f(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!f(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return St(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=ct(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||wt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?wt(null,this.testCollection.get("any")):e.every((function(e){return wt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}}])}(),gt=function(t,e){return!!y(t,"object")&&new ht(t,e).handleUnitTest()};function wt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||St(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return wt(t[n],e)}))}(t,r);case"object":return gt(t,e);default:return!1}}function jt(t){if(t){if(bt.has(t)){return bt.get(t)}var e=null;switch(ot(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return bt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function St(t,e){mt.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var Ot=function(t,e,n){return new(function(){return dt((function r(){var o;yt(this,r),this.unitTest=rt(e),this.testResult=wt(t,this.unitTest),this.bool=this.testResult,this.settings=jt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=mt[mt.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),mt.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return kt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xt(r.key),r)}}function xt(t){var e=function(t,e){if("object"!=Et(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Et(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var Pt=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),Ot(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=Q(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var u=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));u.isInDom()||((u=document.createElement("param")).name="adaptive",u.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",u))}},(e=[{key:"beam",value:function(t){var e=this;if(y(t=E(t).directive,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=At(t,2),o=r[0],i=r[1],u=Q(i),a="beforeend";switch(o){case"before":a="beforebegin";break;case"after":a="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(a,this.props.domElement):N(this.props.adaptiveId,(function(){var t=Q(i);t.isInDom()&&(t.domElement.insertAdjacentElement(a,e.props.domElement),$(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){$(this.props.adaptiveId)}}])&&Tt(t.prototype,e),n&&Tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),It=!1;function Mt(){It||(document.querySelectorAll("[data-teleport]").forEach((function(t){new Pt(t).beam(t.getAttribute("data-teleport"))})),It=!0)}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function _t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Rt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function Dt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||Rt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){if(t){if("string"==typeof t){return Nt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var $t=function(){var t="undefined"!=typeof window?window:{},e={},n=new Proxy(e,{get:function(t,e){if(e in t){return t[e]}}}),r={},o={},i={},u=!1;function a(e){var n=t.matchMedia(e);n.matches&&o[n.media].forEach((function(t){return t[0](t[1])}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={q:null,e:null};if(e){var r,o,i=e.getMinMaxQueries(),u=e.getExpQueries();if(n.q=null!==(r=i[t])&&void 0!==r?r:null,n.e=null!==(o=u[t])&&void 0!==o?o:null,n.q||n.e){if(n.q){return l(n.q[0],n.q[1])}if(n.e){return n.e}}else if(t.includes("|")){var a=t.split("|"),c=a[0],f=a[1];if(i[c]&&i[f]){return l(i[c],i[f],!0)}if(u[c]&&u[f]){return l(u[c],u[f],!0,!0)}}}return null}function l(t,e){var n="(min-width: $1px) and (max-width: $2px)";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||(t=n.replace("$1",t[0]).replace("$2",t[1]),e=n.replace("$1",e[0]).replace("$2",e[1])),"".concat(t,", ").concat(e)):n.replace("$1",t).replace("$2",e)}function f(e){if(!r[e]){var n=t.matchMedia(e),c=function(t){t.matches?o[t.media].forEach((function(t){return t[0](t[1])})):i[t.media].forEach((function(t){return t[0](t[1])}))};return r[e]=c,n.addEventListener("change",c)}u&&a(e)}return e.add=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var u in t){var a,l=t[u],s=null!==(a=c(u,r))&&void 0!==a?a:u;o[s]||(o[s]=[],i[s]=[]),o[s].push([e,l]),n&&i[s].push([n,l]),f(s)}},e.remove=function(t,e){for(var n=0,r=Object.entries(o);n<r.length;n++){var i,u=Dt(r[n],2),a=u[0],c=_t(u[1]);try{for(c.s();!(i=c.n()).done;){var l=i.value,f=Ct(l[1]);e&&"object"===f?e in l[1]&&l[1][e]===t&&(o[a]=o[a].filter((function(n){return n[1][e]!==t}))):"string"===f&&l[1]===e&&(o[a]=o[a].filter((function(e){return e[0]!==t})))}}catch(t){c.e(t)}finally{c.f()}}},e.init=function(){u=!0,Object.keys(o).forEach((function(t){f(t),a(t)}))},e.reset=function(){Object.keys(r).forEach((function(e){t.matchMedia(e).removeEventListener("change",r[e]),delete r[e]})),Object.keys(o).forEach((function(t){return delete o[t]})),Object.keys(i).forEach((function(t){return delete i[t]}))},t.QueryHandler=n,t.QueryHandler}();function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ft(r.key),r)}}function Lt(t,e,n){return(e=Ft(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t){var e=function(t,e){if("object"!=Kt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Kt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kt(e)?e:e+""}var qt=function(){return t=function t(e,n){var r=this;for(var o in function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),Lt(this,"_addClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.add(t)}))})),Lt(this,"_removeClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.remove(t)}))})),this.props=e,this.Adaptive=n,e.settings){this[o](e.settings[o])}},(e=[{key:"addClass",value:function(t){return $t.add(t,this._addClass,this._removeClass,this.Adaptive)}},{key:"removeClass",value:function(t){return $t.add(t,this._removeClass,this._addClass,this.Adaptive)}},{key:"addStyle",value:function(t){var e=this;return this.props.originalStyle=this.props.domElement.getAttribute("style"),$t.add(t,(function(t){return e.props.domElement.style.cssText+=t}),(function(){return e.props.domElement.style.cssText=e.props.originalStyle}),this.Adaptive)}},{key:"teleport",value:function(t){var e=new Pt(this.props);return $t.add(t,(function(t){return e.beam(t)}),(function(){return e.back(),e.cancel()}),this.Adaptive)}},{key:"execute",value:function(t){var e=this,n={adaptiveId:e.props.uniqueId,helper:e.props.helper,domElement:e.props.domElement,xpath:e.props.xpath};return $t.add(t,(function(t){if(t&&"function"==typeof t){return t(n)}}),(function(t){if(t&&"function"==typeof t){return t(n)}}),this.Adaptive)}}])&&Ut(t.prototype,e),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const Qt={name:"TeleportTo",inheritAttrs:!1,props:{target:{type:[String,Object],require:!0},position:{type:String,default:"to",require:!1}},setup:function(t){return{directive:"".concat(t.position,"(").concat(t.target,")")}},template:'\n <div>\n <div v-teleport-to="directive">\n <slot></slot>\n </div>\n </div>\n '};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ht(r.key),r)}}function Ht(t){var e=function(t,e){if("object"!=Wt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}function Vt(t,e,n){return e=Zt(e),function(t,e){if(e&&("object"==Wt(e)||"function"==typeof e)){return e}if(void 0!==e){throw new TypeError("Derived constructors may only return object or undefined")}return function(t){if(void 0===t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(t)}(t,zt()?Reflect.construct(e,n||[],Zt(t).constructor):e.apply(t,n))}function Bt(t){var e="function"==typeof Map?new Map:void 0;return Bt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t)){return t}if("function"!=typeof t){throw new TypeError("Super expression must either be null or a function")}if(void 0!==e){if(e.has(t)){return e.get(t)}e.set(t,n)}function n(){return function(t,e,n){if(zt()){return Reflect.construct.apply(null,arguments)}var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Jt(o,n.prototype),o}(t,arguments,Zt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jt(n,t)},Bt(t)}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Yt=function(t){function e(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,e),Vt(this,e)}return function(t,e){if("function"!=typeof e&&null!==e){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t,e=this.getAttribute("target"),n=null!==(t=this.getAttribute("position"))&&void 0!==t?t:"to",r=this.getAttribute("data-adaptive-id");if(e&&!r){return new Pt(this).beam("".concat(n,"(").concat(e,")"))}}}])&&Xt(n.prototype,r),o&&Xt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt(HTMLElement));function Gt(t){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(t)}var te=function(){R();var t="undefined"!=typeof window?window:{};if(t.$adaptive){return t.$adaptive}var e={_mutable:["registerElement","addQueryMinMax","addQueryExpression"]},n=v(e),r={},o=!1,i=!1,u=!1,a=!1,l=!1,f={320:[1,379],480:[380,519],520:[520,599],600:[600,699],700:[700,799],800:[800,919],920:[920,999],1e3:[1e3,1199],1200:[1200,1439],1440:[1440,1599],1600:[1600,1700]},s={mobile:[1,599],tablet:[600,799],odd:[800,1023],desktop:[1024,1920]},y={"non-desktop":[100,1023],nondesktop:[100,1023],fullscreen:[1920,6e3]},p={},d={};function m(t,n){if(!t.getAttribute("data-adaptive-id")){var o=t.getHash(),a=E(n||t.getAttribute("data-adaptive")).directive;return t.domElement.setAttribute("data-adaptive-id",o),r[o]=new qt({adaptiveId:o,helper:t,domElement:t.domElement,xpath:t.getXpathTo(),settings:a,useVue:i,useReact:u},e),o}}function b(){o=!0,document.querySelectorAll("[data-adaptive]:not([data-adaptive-id])").forEach((function(t){e.registerElement(t)})),function(){var t=document.querySelector("body"),n={};for(var r in f){n[r]="screen-"+r}for(var o in s){n[o]="is-"+o}for(var i in y){n[i]="type-"+i}e.registerElement(t,{addClass:n})}(),$t.init(),i||u?l&&Mt():Mt()}function h(){document.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),b()}return e.getAllQueries=function(){return Object.assign({},f,s,y,p,d)},e.getMinMaxQueries=function(){return Object.assign({},f,s,y,p)},e.getExpQueries=function(){return Object.assign({},d)},e.registerElement=function(t,e){var n=Q(t);if(n.isInDom()){return m(n,e)}n.whenInDom().then((function(t){return m(t,e)}))},e.addQueryMinMax=function(t,e,n){if(!p[t]){if(!e||!n){throw new Error("Min or Max must be passed (id, min, max)",1)}p[t]=[e,n]}},e.addQueryExpression=function(t,e){d[t]||(d[t]=e)},e.if=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n&&"function"==typeof n,o=n&&Array.isArray(n),i={};return i[t]={_private:["breakdownId","match","ifElse","do","removeAfterExec"],_mutable:["ifElse","match","removeAfterExec"],uid:c(),breakdownId:t,match:!1,executed:!1,removeAfterExec:!1,ifElse:null,else:function(t){t&&"function"==typeof t&&(this.ifElse=t)},onlyOnce:function(){this.removeAfterExec=!0,this.executed&&$t.remove(this.uid,"uid")},do:function(){return this.match?(r&&n(),o&&(n[0][n[1]]=!0),this.removeAfterExec&&$t.remove(this.uid,"uid"),this.executed=!0,!0):(o&&(n[0][n[1]]=!1),this.ifElse&&this.ifElse(),!1)}},$t.add(i,(function(t){t.match=!0,t.do()}),(function(t){t.match=!1,t.do()}),e),v(i[t])},e.reset=function(){Object.keys(r).forEach((function(t){return delete r[t]})),K(),$t.reset(),o=!1},e.init=function(){return!o&&("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?h():(document.addEventListener("DOMContentLoaded",h),void t.addEventListener("load",h)))},e.useVue=function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&"function"==typeof t.mixin){i=!0;var e={install:function(t){t.config.globalProperties.Adaptive=n,t.provide("Adaptive",n)}};t.use(e),t.directive("adaptive",{mounted:function(t,e){n.registerElement(t,e.value)}}),t.directive("teleport-to",{mounted:function(t,e){return new Pt(t).beam(e.value)}}),t.component("TeleportTo",Qt),t.mixin({mounted:function(){return n.init()}})}return t},e.useWebComponent=function(){a||i||(customElements.define("teleport-to",Yt),a=!0)},e.useReact=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&(e.useWebComponent(),u=!0)},t.$adaptive=n,t.$adaptive}();return e})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Adaptive",[],e):"object"==typeof exports?exports.Adaptive=e():t.Adaptive=e();
var t,e;t=this,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=s(t);return null!==e?e:t}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==s(t)||"boolean"==typeof t?t:f(t)?e:t}t.r(e),t.d(e,{Adaptive:()=>te,adaptive:()=>te,default:()=>te});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function c(){return"id__"+a(8)+"__"+(new Date).getTime()}var l=c;function f(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function s(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,u=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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 u,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,u=t},f:function(){try{a||null==r.return||r.return()}finally{if(c){throw u}}}}}(e.split("|"));try{for(u.s();!(i=u.n()).done;){var a=i.value;if(r===a){return a}}}catch(t){u.e(t)}finally{u.f()}return!1}return e===r}return r}function p(t){return function(t){if(Array.isArray(t)){return d(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return d(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t){var e=new Set(["_private"].concat(p(t._private||[]))),n=new Set(["_protected"].concat(p(e),p(t._protected||[]))),r=new Set(t._mutable||[]),o=function(t){return n.has(t)&&!r.has(t)?(console.error("Attempt to modify protected property: ".concat(t)),!1):!(e.has(t)&&!r.has(t)&&(console.error("Attempt to modify private property: ".concat(t)),1))};return new Proxy(t,{get:function(t,n,r){if(!e.has(n)){return Reflect.get(t,n,r)}console.error("Attempt to access private property: ".concat(n))},set:function(t,e,n,r){return!!o(e)&&Reflect.set(t,e,n,r)},deleteProperty:function(t,e){return!!o(e)&&Reflect.deleteProperty(t,e)},defineProperty:function(t,e,n){return!!o(e)&&Reflect.defineProperty(t,e,n)},ownKeys:function(t){return Reflect.ownKeys(t).filter((function(t){return!e.has(t)}))},enumerate:function(t){return Reflect.enumerate(t).filter((function(t){return!e.has(t)}))},has:function(t,n){return!e.has(n)&&Reflect.has(t,n)},getOwnPropertyDescriptor:function(t,n){if(!e.has(n)){return Reflect.getOwnPropertyDescriptor(t,n)}}})}function m(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function w(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function j(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(I(e));return t.replace(n,"")}),t).trim()}}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function O(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return P(t,"{","}")},n=function(t){return P(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},a=function(t){if(t){var r=function(t){var e=S(t,"{","}"),n=S(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(w(t));if(r){return t=function(t,r){var i="__".concat(l(),"__"),u=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:u,matched:r},t}(t,r),a(t)||t}}},c=function(t,e){t=w(t);var n="object"===e?{}:[];return k(t).forEach((function(t,r){var a=t.includes(":")&&"object"===e,l=a?k(t,":"):[],f=x(u(l[0],r));if((t=a?l[1]:t)in o){var s=o[t];t=c(s.matched,s.type)}t=i(x(t)),"object"===e?n[f]=t:n.push(t)})),n};return c(a(t)||t,r)}function E(t){var e=t;if(!u(e)){return null}var n=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:t}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=g(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",h({},e.split("(")[0].trim(),T(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,O(i))}if("dotObject"===o){var a,c,l,f={};return k(e,"&&").forEach((function(t){if(t.match(r)){a=T(t,"](",")"),c=T(t,"[","]"),l=t.split("[")[0].trim()}else{a=T(t,"(",")");var e=m(k(t=t.replace(A(t,"(",")"),""),"."),2);l=e[0],c=e[1]}a=O(a),f[l]||(f[l]={}),k(c,"|").forEach((function(t){f[l][t]=a}))})),n("dotObject",f)}}function A(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=I(e),n=I(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(f(t)){return[]}var n=(t=j(t)).split(e).map((function(t){return j(t)}));return 1===n.length&&""===n[0]?[t]:n}function T(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=A(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return j(t,e,n)})):j(i,e,n)}function x(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function I(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return C(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var _,D={},R=function(){if("undefined"!=typeof window&&!_){var t={childList:!0,subtree:!0};if(_=new MutationObserver((function(t){var e,n=M(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in D){D[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return _.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return _.observe(document.body,t)}))}},N=function(t,e){e&&(D[t]=e)},$=function(t){t&&delete D[t]},K=function(){Object.keys(D).forEach((function(t){return delete D[t]}))};function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function F(t){var e=function(t,e){if("object"!=U(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=U(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==U(e)?e:e+""}var q=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),this.selector=e,"object"===U(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):N(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),$(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&L(e.prototype,n),r&&L(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),Q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new q(t,e)};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var X=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===W(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function V(t){return function(t){if(Array.isArray(t)){return B(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return B(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,J(r.key),r)}}function J(t){var e=function(t,e){if("object"!=H(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=H(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}var Z=new Map,Y=new Map;function G(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function tt(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return P(e,"[","]")?"array":P(e,"{","}")?"object":"basic"}var et=function(t){return e=t,Y.has(e)?Y.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=X.get(o),u=null!=i?i:G(o);return u&&t.push(u),r&&t.push(X.get("null"),X.get("undefined")),Y.set(e,t),t}),[]);var e},nt=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=O(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,rt(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&z(e.prototype,n),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function rt(t){if(Z.has(t)){return Z.get(t)}var e=new Map([["testMethod",tt(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",et(t));break;case"array":e.set("tests",function(t){var e=[];return O(t).forEach((function(t){e.push(rt(t))})),e}(t));break;case"object":var n=nt(t);e=new Map([].concat(V(e),V(n)));break;default:G(t)}return Z.set(t,e),e}function ot(t){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ot(t)}function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){at(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function at(t,e,n){return(e=vt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||ft(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(t){return function(t){if(Array.isArray(t)){return st(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||ft(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){if(t){if("string"==typeof t){return st(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(t,e):void 0}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function yt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vt(r.key),r)}}function dt(t,e,n){return e&&pt(t.prototype,e),n&&pt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vt(t){var e=function(t,e){if("object"!=ot(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ot(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ot(e)?e:e+""}var mt=[],bt=new Map,ht=function(){return dt((function t(e,n){yt(this,t);var r=lt(n.entries()).reduce((function(t,e){var n=ct(e,2),r=n[0],o=n[1];return ut(ut({},t),{},at({},r,o))}),{}),o=r.testOnly,i=r.testFew,u=r.testAllAny,a=r.optionalKeys,c=r.tests;this.testUnitKeys=lt(c.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=u,this.optionalKeys=a,this.testCollection=c,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!f(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!f(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return St(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=ct(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||wt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?wt(null,this.testCollection.get("any")):e.every((function(e){return wt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return wt(t.inputObject[e],n)}))}}])}(),gt=function(t,e){return!!y(t,"object")&&new ht(t,e).handleUnitTest()};function wt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||St(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return wt(t[n],e)}))}(t,r);case"object":return gt(t,e);default:return!1}}function jt(t){if(t){if(bt.has(t)){return bt.get(t)}var e=null;switch(ot(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return bt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function St(t,e){mt.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var Ot=function(t,e,n){return new(function(){return dt((function r(){var o;yt(this,r),this.unitTest=rt(e),this.testResult=wt(t,this.unitTest),this.bool=this.testResult,this.settings=jt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=mt[mt.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),mt.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function At(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t){return kt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Tt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,xt(r.key),r)}}function xt(t){var e=function(t,e){if("object"!=Et(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Et(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var Pt=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),R(),Ot(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=Q(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var u=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));u.isInDom()||((u=document.createElement("param")).name="adaptive",u.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",u))}},(e=[{key:"beam",value:function(t){var e=this;if(y(t=E(t).directive,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=At(t,2),o=r[0],i=r[1],u=Q(i),a="beforeend";switch(o){case"before":a="beforebegin";break;case"after":a="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(a,this.props.domElement):N(this.props.adaptiveId,(function(){var t=Q(i);t.isInDom()&&(t.domElement.insertAdjacentElement(a,e.props.domElement),$(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=Q('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){$(this.props.adaptiveId)}}])&&Tt(t.prototype,e),n&&Tt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),It=!1;function Mt(){It||(document.querySelectorAll("[data-teleport]").forEach((function(t){new Pt(t).beam(t.getAttribute("data-teleport"))})),It=!0)}function Ct(t){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ct(t)}function _t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Rt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(a){throw i}}}}}function Dt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,a=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}c=!1}else{for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0){}}}catch(t){l=!0,o=t}finally{try{if(!c&&null!=n.return&&(u=n.return(),Object(u)!==u)){return}}finally{if(l){throw o}}}return a}}(t,e)||Rt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rt(t,e){if(t){if("string"==typeof t){return Nt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var $t=function(){var t="undefined"!=typeof window?window:{},e={},n=new Proxy(e,{get:function(t,e){if(e in t){return t[e]}}}),r={},o={},i={},u=!1;function a(e){var n=t.matchMedia(e);n.matches&&o[n.media].forEach((function(t){return t[0](t[1])}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={q:null,e:null};if(e){var r,o,i=e.getMinMaxQueries(),u=e.getExpQueries();if(n.q=null!==(r=i[t])&&void 0!==r?r:null,n.e=null!==(o=u[t])&&void 0!==o?o:null,n.q||n.e){if(n.q){return l(n.q[0],n.q[1])}if(n.e){return n.e}}else if(t.includes("|")){var a=t.split("|"),c=a[0],f=a[1];if(i[c]&&i[f]){return l(i[c],i[f],!0)}if(u[c]&&u[f]){return l(u[c],u[f],!0,!0)}}}return null}function l(t,e){var n="(min-width: $1px) and (max-width: $2px)";return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||(t=n.replace("$1",t[0]).replace("$2",t[1]),e=n.replace("$1",e[0]).replace("$2",e[1])),"".concat(t,", ").concat(e)):n.replace("$1",t).replace("$2",e)}function f(e){if(!r[e]){var n=t.matchMedia(e),c=function(t){t.matches?o[t.media].forEach((function(t){return t[0](t[1])})):i[t.media].forEach((function(t){return t[0](t[1])}))};return r[e]=c,n.addEventListener("change",c)}u&&a(e)}return e.add=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var u in t){var a,l=t[u],s=null!==(a=c(u,r))&&void 0!==a?a:u;o[s]||(o[s]=[],i[s]=[]),o[s].push([e,l]),n&&i[s].push([n,l]),f(s)}},e.remove=function(t,e){for(var n=0,r=Object.entries(o);n<r.length;n++){var i,u=Dt(r[n],2),a=u[0],c=_t(u[1]);try{for(c.s();!(i=c.n()).done;){var l=i.value,f=Ct(l[1]);e&&"object"===f?e in l[1]&&l[1][e]===t&&(o[a]=o[a].filter((function(n){return n[1][e]!==t}))):"string"===f&&l[1]===e&&(o[a]=o[a].filter((function(e){return e[0]!==t})))}}catch(t){c.e(t)}finally{c.f()}}},e.init=function(){u=!0,Object.keys(o).forEach((function(t){f(t),a(t)}))},e.reset=function(){Object.keys(r).forEach((function(e){t.matchMedia(e).removeEventListener("change",r[e]),delete r[e]})),Object.keys(o).forEach((function(t){return delete o[t]})),Object.keys(i).forEach((function(t){return delete i[t]}))},t.QueryHandler=n,t.QueryHandler}();function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ft(r.key),r)}}function Lt(t,e,n){return(e=Ft(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t){var e=function(t,e){if("object"!=Kt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Kt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Kt(e)?e:e+""}var qt=function(){return t=function t(e,n){var r=this;for(var o in function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),Lt(this,"_addClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.add(t)}))})),Lt(this,"_removeClass",(function(t){(t=t.split(" ")).forEach((function(t){r.props.domElement.classList.remove(t)}))})),this.props=e,this.Adaptive=n,e.settings){this[o](e.settings[o])}},(e=[{key:"addClass",value:function(t){return $t.add(t,this._addClass,this._removeClass,this.Adaptive)}},{key:"removeClass",value:function(t){return $t.add(t,this._removeClass,this._addClass,this.Adaptive)}},{key:"addStyle",value:function(t){var e=this;return this.props.originalStyle=this.props.domElement.getAttribute("style"),$t.add(t,(function(t){return e.props.domElement.style.cssText+=t}),(function(){return e.props.domElement.style.cssText=e.props.originalStyle}),this.Adaptive)}},{key:"teleport",value:function(t){var e=new Pt(this.props);return $t.add(t,(function(t){return e.beam(t)}),(function(){return e.back(),e.cancel()}),this.Adaptive)}},{key:"execute",value:function(t){var e=this,n={adaptiveId:e.props.uniqueId,helper:e.props.helper,domElement:e.props.domElement,xpath:e.props.xpath};return $t.add(t,(function(t){if(t&&"function"==typeof t){return t(n)}}),(function(t){if(t&&"function"==typeof t){return t(n)}}),this.Adaptive)}}])&&Ut(t.prototype,e),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();const Qt={name:"TeleportTo",inheritAttrs:!1,props:{target:{type:[String,Object],require:!0},position:{type:String,default:"to",require:!1}},setup:function(t){return{directive:"".concat(t.position,"(").concat(t.target,")")}},template:'\n <div>\n <div v-teleport-to="directive">\n <slot></slot>\n </div>\n </div>\n '};function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function Xt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ht(r.key),r)}}function Ht(t){var e=function(t,e){if("object"!=Wt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Wt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}function Vt(t,e,n){return e=Zt(e),function(t,e){if(e&&("object"==Wt(e)||"function"==typeof e)){return e}if(void 0!==e){throw new TypeError("Derived constructors may only return object or undefined")}return function(t){if(void 0===t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}(t)}(t,zt()?Reflect.construct(e,n||[],Zt(t).constructor):e.apply(t,n))}function Bt(t){var e="function"==typeof Map?new Map:void 0;return Bt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t)){return t}if("function"!=typeof t){throw new TypeError("Super expression must either be null or a function")}if(void 0!==e){if(e.has(t)){return e.get(t)}e.set(t,n)}function n(){return function(t,e,n){if(zt()){return Reflect.construct.apply(null,arguments)}var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&Jt(o,n.prototype),o}(t,arguments,Zt(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jt(n,t)},Bt(t)}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jt(t,e)}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}var Yt=function(t){function e(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,e),Vt(this,e)}return function(t,e){if("function"!=typeof e&&null!==e){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jt(t,e)}(e,t),n=e,(r=[{key:"connectedCallback",value:function(){var t,e=this.getAttribute("target"),n=null!==(t=this.getAttribute("position"))&&void 0!==t?t:"to",r=this.getAttribute("data-adaptive-id");if(e&&!r){return new Pt(this).beam("".concat(n,"(").concat(e,")"))}}}])&&Xt(n.prototype,r),o&&Xt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Bt(HTMLElement));function Gt(t){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt(t)}var te=function(){R();var t="undefined"!=typeof window?window:{};if(t.$adaptive){return t.$adaptive}var e={_mutable:["registerElement","addQueryMinMax","addQueryExpression"]},n=v(e),r={},o=!1,i=!1,u=!1,a=!1,l=!1,f={320:[1,379],480:[380,519],520:[520,599],600:[600,699],700:[700,799],800:[800,919],920:[920,999],1e3:[1e3,1199],1200:[1200,1439],1440:[1440,1599],1600:[1600,1700]},s={mobile:[1,599],tablet:[600,799],odd:[800,1023],desktop:[1024,1920]},y={"non-desktop":[100,1023],nondesktop:[100,1023],fullscreen:[1920,6e3]},p={},d={};function m(t,n){if(!t.getAttribute("data-adaptive-id")){var o=t.getHash(),a=E(n||t.getAttribute("data-adaptive")).directive;return t.domElement.setAttribute("data-adaptive-id",o),r[o]=new qt({adaptiveId:o,helper:t,domElement:t.domElement,xpath:t.getXpathTo(),settings:a,useVue:i,useReact:u},e),o}}function b(){o=!0,document.querySelectorAll("[data-adaptive]:not([data-adaptive-id])").forEach((function(t){e.registerElement(t)})),function(){var t=document.querySelector("body"),n={};for(var r in f){n[r]="screen-"+r}for(var o in s){n[o]="is-"+o}for(var i in y){n[i]="type-"+i}e.registerElement(t,{addClass:n})}(),$t.init(),i||u?l&&Mt():Mt()}function h(){document.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),b()}return e.getAllQueries=function(){return Object.assign({},f,s,y,p,d)},e.getMinMaxQueries=function(){return Object.assign({},f,s,y,p)},e.getExpQueries=function(){return Object.assign({},d)},e.registerElement=function(t,e){var n=Q(t);if(n.isInDom()){return m(n,e)}n.whenInDom().then((function(t){return m(t,e)}))},e.addQueryMinMax=function(t,e,n){if(!p[t]){if(!e||!n){throw new Error("Min or Max must be passed (id, min, max)",1)}p[t]=[e,n]}},e.addQueryExpression=function(t,e){d[t]||(d[t]=e)},e.if=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n&&"function"==typeof n,o=n&&Array.isArray(n),i={};return i[t]={_private:["breakdownId","match","ifElse","do","removeAfterExec"],_mutable:["ifElse","match","removeAfterExec"],uid:c(),breakdownId:t,match:!1,executed:!1,removeAfterExec:!1,ifElse:null,else:function(t){t&&"function"==typeof t&&(this.ifElse=t)},onlyOnce:function(){this.removeAfterExec=!0,this.executed&&$t.remove(this.uid,"uid")},do:function(){return this.match?(r&&n(),o&&(n[0][n[1]]=!0),this.removeAfterExec&&$t.remove(this.uid,"uid"),this.executed=!0,!0):(o&&(n[0][n[1]]=!1),this.ifElse&&this.ifElse(),!1)}},$t.add(i,(function(t){t.match=!0,t.do()}),(function(t){t.match=!1,t.do()}),e),v(i[t])},e.reset=function(){Object.keys(r).forEach((function(t){return delete r[t]})),K(),$t.reset(),o=!1},e.init=function(){return!o&&("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?h():(document.addEventListener("DOMContentLoaded",h),void t.addEventListener("load",h)))},e.useVue=function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&"function"==typeof t.mixin){i=!0;var e={install:function(t){t.config.globalProperties.Adaptive=n,t.provide("Adaptive",n)}};t.use(e),t.directive("adaptive",{mounted:function(t,e){n.registerElement(t,e.value)}}),t.directive("teleport-to",{mounted:function(t,e){return new Pt(t).beam(e.value)}}),t.component("TeleportTo",Qt),t.mixin({mounted:function(){return n.init()}})}return t},e.useWebComponent=function(){a||i||(customElements.define("teleport-to",Yt),a=!0)},e.useReact=function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(l=!0),"object"===Gt(t)&&(e.useWebComponent(),u=!0)},t.$adaptive=n,t.$adaptive}();return e})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Adaptive",[],e):"object"==typeof exports?exports.Adaptive=e():t.Adaptive=e();

@@ -1,1 +0,1 @@

var t,e;t=this,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(l){throw a}}}}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=f(t);return null!==e?e:t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==f(t)||"boolean"==typeof t?t:s(t)?e:t}t.r(e),t.d(e,{Teleport:()=>At,TeleportGlobal:()=>Et,default:()=>At,teleport:()=>At});var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function l(){return"id__"+u(8)+"__"+(new Date).getTime()}var c=l;function s(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function f(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,a=n(e.split("|"));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(r===u){return u}}}catch(t){a.e(t)}finally{a.f()}return!1}return e===r}return r}function p(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function d(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(E(e));return t.replace(n,"")}),t).trim()}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function w(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return k(t,"{","}")},n=function(t){return k(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},u=function(t){if(t){var r=function(t){var e=g(t,"{","}"),n=g(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(h(t));if(r){return t=function(t,r){var i="__".concat(c(),"__"),a=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:a,matched:r},t}(t,r),u(t)||t}}},l=function(t,e){t=h(t);var n="object"===e?{}:[];return O(t).forEach((function(t,r){var u=t.includes(":")&&"object"===e,c=u?O(t,":"):[],s=A(a(c[0],r));if((t=u?c[1]:t)in o){var f=o[t];t=l(f.matched,f.type)}t=i(A(t)),"object"===e?n[s]=t:n.push(t)})),n};return l(u(t)||t,r)}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=E(e),n=E(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(s(t)){return[]}var n=(t=d(t)).split(e).map((function(t){return d(t)}));return 1===n.length&&""===n[0]?[t]:n}function S(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=j(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return d(t,e,n)})):d(i,e,n)}function A(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function E(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function T(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return I(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u){throw i}}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var P,M={},x=function(){if("undefined"!=typeof window&&!P){var t={childList:!0,subtree:!0};if(P=new MutationObserver((function(t){var e,n=T(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in M){M[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return P.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return P.observe(document.body,t)}))}},D=function(t,e){e&&(M[t]=e)},N=function(t){t&&delete M[t]};function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function U(t){var e=function(t,e){if("object"!=C(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}var R=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),x(),this.selector=e,"object"===C(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):D(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),N(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&K(e.prototype,n),r&&K(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new R(t,e)};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var $=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===_(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function X(t){return function(t){if(Array.isArray(t)){return L(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return L(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!=W(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=W(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}var B=new Map,H=new Map;function J(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function Z(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return k(e,"[","]")?"array":k(e,"{","}")?"object":"basic"}var q=function(t){return e=t,H.has(e)?H.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=$.get(o),a=null!=i?i:J(o);return a&&t.push(a),r&&t.push($.get("null"),$.get("undefined")),H.set(e,t),t}),[]);var e},Y=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=w(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,G(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&V(e.prototype,n),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function G(t){if(B.has(t)){return B.get(t)}var e=new Map([["testMethod",Z(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",q(t));break;case"array":e.set("tests",function(t){var e=[];return w(t).forEach((function(t){e.push(G(t))})),e}(t));break;case"object":var n=Y(t);e=new Map([].concat(X(e),X(n)));break;default:J(t)}return B.set(t,e),e}function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nt(t,e,n){return(e=st(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t){return function(t){if(Array.isArray(t)){return at(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t){return at(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function ut(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,st(r.key),r)}}function ct(t,e,n){return e&&lt(t.prototype,e),n&&lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t){var e=function(t,e){if("object"!=Q(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Q(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Q(e)?e:e+""}var ft=[],yt=new Map,pt=function(){return ct((function t(e,n){ut(this,t);var r=ot(n.entries()).reduce((function(t,e){var n=rt(e,2),r=n[0],o=n[1];return et(et({},t),{},nt({},r,o))}),{}),o=r.testOnly,i=r.testFew,a=r.testAllAny,u=r.optionalKeys,l=r.tests;this.testUnitKeys=ot(l.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=a,this.optionalKeys=u,this.testCollection=l,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!s(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!s(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return ht(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=rt(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||vt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?vt(null,this.testCollection.get("any")):e.every((function(e){return vt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}}])}(),bt=function(t,e){return!!y(t,"object")&&new pt(t,e).handleUnitTest()};function vt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||ht(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return vt(t[n],e)}))}(t,r);case"object":return bt(t,e);default:return!1}}function mt(t){if(t){if(yt.has(t)){return yt.get(t)}var e=null;switch(Q(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return yt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function ht(t,e){ft.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var dt=function(t,e,n){return new(function(){return ct((function r(){var o;ut(this,r),this.unitTest=G(e),this.testResult=vt(t,this.unitTest),this.bool=this.testResult,this.settings=mt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=ft[ft.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),ft.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function wt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return jt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,St(r.key),r)}}function St(t){var e=function(t,e){if("object"!=gt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gt(e)?e:e+""}var At=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),x(),dt(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=F(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var a=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));a.isInDom()||((a=document.createElement("param")).name="adaptive",a.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",a))}},e=[{key:"beam",value:function(t){var e=this;if(t=function(t){var e=t;if(!a(e)){return null}var n=function(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=m(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",v({},e.split("(")[0].trim(),S(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,w(i))}if("dotObject"===o){var u,l,c,s={};return O(e,"&&").forEach((function(t){if(t.match(r)){u=S(t,"](",")"),l=S(t,"[","]"),c=t.split("[")[0].trim()}else{u=S(t,"(",")");var e=p(O(t=t.replace(j(t,"(",")"),""),"."),2);c=e[0],l=e[1]}u=w(u),s[c]||(s[c]={}),O(l,"|").forEach((function(t){s[c][t]=u}))})),n("dotObject",s)}}(t).directive,y(t,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=wt(t,2),o=r[0],i=r[1],u=F(i),l="beforeend";switch(o){case"before":l="beforebegin";break;case"after":l="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(l,this.props.domElement):D(this.props.adaptiveId,(function(){var t=F(i);t.isInDom()&&(t.domElement.insertAdjacentElement(l,e.props.domElement),N(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){N(this.props.adaptiveId)}}],e&&Ot(t.prototype,e),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),kt=!1;function Et(){kt||(document.querySelectorAll("[data-teleport]").forEach((function(t){new At(t).beam(t.getAttribute("data-teleport"))})),kt=!0)}return e})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Teleport",[],e):"object"==typeof exports?exports.Teleport=e():t.Teleport=e();
var t,e;t=this,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n){t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e){if(t){if("string"==typeof t){return r(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=f(t);return null!==e?e:t}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!==f(t)||"boolean"==typeof t?t:s(t)?e:t}t.r(e),t.d(e,{Teleport:()=>At,TeleportGlobal:()=>Et,default:()=>At,teleport:()=>At});var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;t=t||40;for(var e="",n=0;n<t/3+1;n++){e+=Math.random().toString(36).substring(2,15)}return e.substring(0,t)};function l(){return"id__"+u(8)+"__"+(new Date).getTime()}var c=l;function s(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:t instanceof Map||t instanceof Set?0===t.size:ArrayBuffer.isView(t)?0===t.byteLength:"object"===o(t)&&0===Object.keys(t).length)}function f(t){var e=o(t);switch(t){case null:case void 0:case"":return null;case"0":case 0:return 0;default:if(!("number"!==e&&"string"!==e||"number"!=typeof t&&Number.isNaN(Number(t)))){return+t}}return null}function y(t,e){if(null===t){return e?null===e||"null"===e:"null"}var r;switch(o(t)){case"number":case"string":case"boolean":case"undefined":case"bigint":case"symbol":case"function":r=o(t);break;case"object":r=Array.isArray(t)?"array":"object";break;default:r="unknown"}if(e){if(e.includes("|")){var i,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},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(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(l){throw a}}}}}(e.split("|"));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(r===u){return u}}}catch(t){a.e(t)}finally{a.f()}return!1}return e===r}return r}function p(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return b(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function v(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=m(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==m(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function h(t){var e=t.match(/^(\{.*\}|\[.*\])$/);return e?e[0].slice(1,-1).trim():t}function d(t){if(t){if("string"!=typeof t){return t}for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return n.reduce((function(t,e){var n=e instanceof RegExp?e:new RegExp(E(e));return t.replace(n,"")}),t).trim()}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"]";if("string"!=typeof t){return t}var r=t.lastIndexOf(e);if(-1===r){return null}var o=t.substring(r),i=o.indexOf(n);return-1===i?null:o.substring(0,i+1)}function w(t){if(y(t,"object")||y(t,"array")||!t){return t}var e=function(t){return k(t,"{","}")},n=function(t){return k(t,"[","]")},r=(e(t)?"object":null)||(n(t)?"array":null);if(!r){return t}var o={},u=function(t){if(t){var r=function(t){var e=g(t,"{","}"),n=g(t,"[","]");return t.indexOf(e)>t.indexOf(n)?e||null:n||null}(h(t));if(r){return t=function(t,r){var i="__".concat(c(),"__"),a=(e(r)?"object":null)||(n(r)?"array":null)||"string";return t=t.replace(r,i),o[i]={type:a,matched:r},t}(t,r),u(t)||t}}},l=function(t,e){t=h(t);var n="object"===e?{}:[];return O(t).forEach((function(t,r){var u=t.includes(":")&&"object"===e,c=u?O(t,":"):[],s=A(a(c[0],r));if((t=u?c[1]:t)in o){var f=o[t];t=l(f.matched,f.type)}t=i(A(t)),"object"===e?n[s]=t:n.push(t)})),n};return l(u(t)||t,r)}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}e=E(e),n=E(n);var o=new RegExp(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}if(e.length<2){throw new Error("You need to pass at least two arguments")}var r="";return e.forEach((function(t,e){t instanceof RegExp&&(t=t.source),0===e?r=t:r+="((.|\n)*?)".concat(t)})),r}(e,n),"gm"),i=t.match(o);return i?r?i:i[0]:null}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";if("string"!=typeof t){return t}if(s(t)){return[]}var n=(t=d(t)).split(e).map((function(t){return d(t)}));return 1===n.length&&""===n[0]?[t]:n}function S(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof t){return t}var i=null!==(r=j(t,e,n,o))&&void 0!==r?r:o?[]:t;return o?i.map((function(t){return d(t,e,n)})):d(i,e,n)}function A(t){return"string"!=typeof t?t:t.replace(/`|'|"/g,"")}function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(!e||t.startsWith(e))&&(!n||t.endsWith(n))}function E(t){return t instanceof RegExp?t:t.split("").map((function(t){return["$","^",".","*","+","?","(",")","[","]","{","}","|","\\"].includes(t)?"\\".concat(t):t})).join("")}function T(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t){return I(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}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 i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u){throw i}}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}var P,M={},x=function(){if("undefined"!=typeof window&&!P){var t={childList:!0,subtree:!0};if(P=new MutationObserver((function(t){var e,n=T(t);try{for(n.s();!(e=n.n()).done;){if("childList"===e.value.type){for(var r in M){M[r]()}}}}catch(t){n.e(t)}finally{n.f()}})),document.body){return P.observe(document.body,t)}document.addEventListener("DOMContentLoaded",(function(e){return P.observe(document.body,t)}))}},D=function(t,e){e&&(M[t]=e)},N=function(t){t&&delete M[t]};function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function U(t){var e=function(t,e){if("object"!=C(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}var R=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;!function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),x(),this.selector=e,"object"===C(e)?this.domElement=e:String(e).includes("//")?this.domElement=this.getElementByXpath(e):this.domElement=n.querySelector(e)}return e=t,(n=[{key:"isInDom",value:function(){var t;return Boolean(null===(t=this.domElement)||void 0===t?void 0:t.outerHTML)}},{key:"whenInDom",value:function(){var e=this,n=Date.now()+Math.floor(1e3*Math.random());return new Promise((function(r){e.isInDom()?r(e):D(n,(function(){var o=new t(e.selector);o.isInDom()&&(r(e=o),N(n))}))}))}},{key:"getElementByXpath",value:function(t){return document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}},{key:"getXpathTo",value:function(){var e=this.domElement;if(e.id){return"//*[@id='".concat(e.id,"']")}if(e===document.body){return"//"+e.tagName}for(var n=0,r=e.parentNode.childNodes,o=0;o<r.length;o++){var i=r[o];if(i===e){return new t(e.parentNode).getXpathTo()+"/"+e.tagName+"["+(n+1)+"]"}1===i.nodeType&&i.tagName===e.tagName&&n++}}},{key:"getAttribute",value:function(t){return this.domElement.getAttribute(t)||null}},{key:"getHash",value:function(){var t=String(this.getXpathTo()),e=0;if(0===t.length){return e}for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e|=0}return e}}])&&K(e.prototype,n),r&&K(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}(),F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return new R(t,e)};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}var $=new Map([["array",function(t){return y(t,"array")}],["bigInt",function(t){return"bigint"==typeof t}],["boolean",function(t){return"boolean"==typeof t}],["date",function(t){return t instanceof Date}],["float",function(t){return"number"==typeof t&&!Number.isInteger(t)}],["function",function(t){return"function"==typeof t}],["int",function(t){return Number.isInteger(t)}],["map",function(t){return t instanceof Map}],["null",function(t){return null===t}],["number",function(t){return"number"==typeof t}],["object",function(t){return y(t,"object")}],["promise",function(t){return t instanceof Promise}],["regExp",function(t){return t instanceof RegExp}],["set",function(t){return t instanceof Set}],["string",function(t){return"string"==typeof t}],["symbol",function(t){return"symbol"===_(t)}],["undefined",function(t){return void 0===t}],["weakMap",function(t){return t instanceof WeakMap}],["weakSet",function(t){return t instanceof WeakSet}]]);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function X(t){return function(t){if(Array.isArray(t)){return L(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||function(t,e){if(t){if("string"==typeof t){return L(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z(r.key),r)}}function z(t){var e=function(t,e){if("object"!=W(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=W(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==W(e)?e:e+""}var B=new Map,H=new Map;function J(t){throw new Error('Type Error: "'.concat(t,'" is not supported'))}function Z(t){if(y(t,"array")||y(t,"object")){return y(t)}var e=t.trim();return k(e,"[","]")?"array":k(e,"{","}")?"object":"basic"}var q=function(t){return e=t,H.has(e)?H.get(e):e.split("|").reduce((function(t,n){var r=!1,o=n.trim();o.endsWith("?")&&(o=o.slice(0,-1),r=!0);var i=$.get(o),a=null!=i?i:J(o);return a&&t.push(a),r&&t.push($.get("null"),$.get("undefined")),H.set(e,t),t}),[]);var e},Y=function(t){return new(function(){return e=function t(){return function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),this.testUnit=new Map([["tests",new Map],["optionalKeys",[]],["testFew",[]],["testAllAny",!1],["testOnly",!1]]),this.handleObject()},(n=[{key:"checkOptionalKey",value:function(t){return t.endsWith("?")&&(t=t.slice(0,-1),this.testUnit.get("optionalKeys").push(t)),t}},{key:"checkTheAnyKey",value:function(t){if("any"in t){var e=Object.keys(t);1===e.length?this.testUnit.set("testAllAny",!0):this.testUnit.set("testFew",e.filter((function(t){return"any"!==t})))}}},{key:"handleObject",value:function(){var e=w(t);for(var n in this.checkTheAnyKey(e),e){var r=this.checkOptionalKey(n),o=e[n];"..."!==o?this.testUnit.get("tests").set(r,G(o)):(delete e[n],this.testUnit.set("testOnly",!0))}return this.testUnit}}])&&V(e.prototype,n),r&&V(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}())};function G(t){if(B.has(t)){return B.get(t)}var e=new Map([["testMethod",Z(t)],["tests",null]]);switch(e.get("testMethod")){case"basic":e.set("tests",q(t));break;case"array":e.set("tests",function(t){var e=[];return w(t).forEach((function(t){e.push(G(t))})),e}(t));break;case"object":var n=Y(t);e=new Map([].concat(X(e),X(n)));break;default:J(t)}return B.set(t,e),e}function Q(t){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q(t)}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nt(t,e,n){return(e=st(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||it(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ot(t){return function(t){if(Array.isArray(t)){return at(t)}}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"]){return Array.from(t)}}(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function it(t,e){if(t){if("string"==typeof t){return at(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(t,e):void 0}}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function ut(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,st(r.key),r)}}function ct(t,e,n){return e&&lt(t.prototype,e),n&&lt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t){var e=function(t,e){if("object"!=Q(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Q(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Q(e)?e:e+""}var ft=[],yt=new Map,pt=function(){return ct((function t(e,n){ut(this,t);var r=ot(n.entries()).reduce((function(t,e){var n=rt(e,2),r=n[0],o=n[1];return et(et({},t),{},nt({},r,o))}),{}),o=r.testOnly,i=r.testFew,a=r.testAllAny,u=r.optionalKeys,l=r.tests;this.testUnitKeys=ot(l.keys()),this.testOnly=o,this.testFew=i,this.testAllAny=a,this.optionalKeys=u,this.testCollection=l,this.inputObject=e}),[{key:"handleUnitTest",value:function(){switch(!0){case this.testAllAny:return this.testObjAllAny();case!s(this.testFew):var t=this.testObjFew();return this.filterOutFew(),t&&this.testObjAllAny();case!s(this.optionalKeys):var e=this.testObjOptionalKeys();return this.filterOutOptionalKeys(),e&&this.defaultTest();case!this.testOnly:for(var n in this.inputObject){if(!this.testCollection.has(n)){return ht(this.inputObject,'Key: "'.concat(n,'" not found in the test collection, or use the "any" (any:[type]) key test or "..." after the last key in the test collection {key1: type, key2: type, ...} to only test a few keys.')),!1}}}return this.defaultTest()}},{key:"filterOutOptionalKeys",value:function(){var t=this;this.testUnitKeys=this.testUnitKeys.filter((function(e){return!t.optionalKeys.includes(e)}))}},{key:"filterOutFew",value:function(){var t=this;this.inputObject=Object.fromEntries(Object.entries(this.inputObject).filter((function(e){var n=rt(e,1)[0];return!t.testFew.includes(n)})))}},{key:"testObjOptionalKeys",value:function(){var t=this;return this.optionalKeys.every((function(e){var n=t.testCollection.get(e),r=t.inputObject[e];return!r||vt(r,n)}))}},{key:"testObjFew",value:function(){var t=this;return this.testFew.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}},{key:"testObjAllAny",value:function(){var t=this,e=Object.values(this.inputObject);return 0===e.length?vt(null,this.testCollection.get("any")):e.every((function(e){return vt(e,t.testCollection.get("any"))}))}},{key:"defaultTest",value:function(){var t=this;return this.testUnitKeys.every((function(e){var n=t.testCollection.get(e);return vt(t.inputObject[e],n)}))}}])}(),bt=function(t,e){return!!y(t,"object")&&new pt(t,e).handleUnitTest()};function vt(t,e){var n=e.get("testMethod"),r=e.get("tests");switch(n){case"basic":return function(t,e){return e.some((function(n){var r=n(t);return r||ht(t,e),r}))}(t,r);case"array":return function(t,e){return!(!y(t,"array")||0===t.length)&&e.every((function(e,n){return vt(t[n],e)}))}(t,r);case"object":return bt(t,e);default:return!1}}function mt(t){if(t){if(yt.has(t)){return yt.get(t)}var e=null;switch(Q(t)){case"function":e={callback:t};break;case"object":e=t;break;case"string":switch(t){case"log":e={log:!0};break;case"fail":e={fail:!0};break;case"return":e={return:!0};break;case"validOutput":e={validOutput:t}}}return yt.set(t,e),e}return{log:!1,fail:!1,return:!1,validOutput:!1,callback:null}}function ht(t,e){ft.push({value:JSON.stringify(t),tests:JSON.stringify(e),found:y(t)})}var dt=function(t,e,n){return new(function(){return ct((function r(){var o;ut(this,r),this.unitTest=G(e),this.testResult=vt(t,this.unitTest),this.bool=this.testResult,this.settings=mt(n),this.callback=null!==(o=this.settings.callback)&&void 0!==o?o:null,this.testData={typeExp:e,inputVal:t,inputType:y(t),callback:this.callback,unitTest:this.unitTest,testResult:this.testResult},this.settings.log&&this.log(),this.settings.fail&&this.fail(),this.callback&&this.callback(this.testData)}),[{key:"test",value:function(){return this.testResult}},{key:"log",value:function(){return console.log("-------------------------- \n ::: Test Data Info :::"),console.table(this.testData),this}},{key:"fail",value:function(){var e;return this.testResult?this:(this.log(),(null===(e=this.settings)||void 0===e?void 0:e.error)&&console.log("\n\n-----\x3e Error Message: ",this.settings.error),function(t){var e=ft[ft.length-1];throw console.log("\n::::::::::::: Type error or not valid ::::::::::::::"),console.log("Input Value used: ",t),console.log("---\x3e Value Found:",e.found),console.log("---\x3e Test Permormed:",e.tests),ft.length=0,new Error('\n\n---------------------\nTypeCheck Error ---\x3e\n\n The value must not be of type (Type found) = "'.concat(e.found,'". \n\n The Type used is invalid for value: "').concat(e.value,'". \n\n see logged error for details\n---------------------\n\n'))}(t))}},{key:"return",value:function(){return t}}])}())};function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function wt(t,e){return function(t){if(Array.isArray(t)){return t}}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n){return}l=!1}else{for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0){}}}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a)){return}}finally{if(c){throw o}}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t){return jt(t,e)}var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++){r[n]=t[n]}return r}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,St(r.key),r)}}function St(t){var e=function(t,e){if("object"!=gt(t)||!t){return t}var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=gt(r)){return r}throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gt(e)?e:e+""}var At=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}(this,t),x(),dt(e,"string|object").test()){if(this.props=e,!this.props.adaptiveId){var n,r=F(this.props),o=null!==(n=r.getAttribute("data-adaptive-id"))&&void 0!==n?n:null,i=o||r.getHash();o||r.domElement.setAttribute("data-adaptive-id",i),this.props=Object.assign({},this.props,{adaptiveId:i,helper:r,domElement:r.domElement,xpath:r.getXpathTo()})}var a=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));a.isInDom()||((a=document.createElement("param")).name="adaptive",a.value=this.props.adaptiveId,this.props.domElement.insertAdjacentElement("beforebegin",a))}},e=[{key:"beam",value:function(t){var e=this;if(t=function(t){var e=t;if(!a(e)){return null}var n=function(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,directive:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null}},r=/([a-zA-Z]+)\[((.|\n)*?)\]\(((.|\n)*?)\)/gm,o=m(e);if("object"===o||"array"===o){return n(o,e)}switch(!0){case!!e.match(/^\[((.|\n)*?)\]$/gm):o="array";break;case!!e.match(/^\{((.|\n)*?)\:((.|\n)*?)\}$/gm):o="object";break;case!!e.match(/^([a-zA-Z]+)(\()(\.|\#)(.*)(\))/g):return n("idOrClassWithDirective",v({},e.split("(")[0].trim(),S(e,"(",")")));case!!e.match(/([a-zA-Z]+)\.(.*?)\(((.|\n)*?)\)/gm):case!!e.match(r):o="dotObject";break;default:return n("string",e)}if("array"===o||"object"===o){var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'"';return"string"!=typeof t?t:t.replace(/`|'|"/g,e)}(e);try{return n(o,JSON.parse(i))}catch(t){}return n(o,w(i))}if("dotObject"===o){var u,l,c,s={};return O(e,"&&").forEach((function(t){if(t.match(r)){u=S(t,"](",")"),l=S(t,"[","]"),c=t.split("[")[0].trim()}else{u=S(t,"(",")");var e=p(O(t=t.replace(j(t,"(",")"),""),"."),2);c=e[0],l=e[1]}u=w(u),s[c]||(s[c]={}),O(l,"|").forEach((function(t){s[c][t]=u}))})),n("dotObject",s)}}(t).directive,y(t,"object")&&t.teleport){return this.props.domElement.removeAttribute("data-adaptive-id"),void $adaptive.registerElement(this.props.domElement,t)}switch(y(t)){case"string":t=["default",t];break;case"object":var n=Object.keys(t)[0];t=[n,t[n]];break;case"array":1===t.length&&(t=["default",t[0]])}var r=wt(t,2),o=r[0],i=r[1],u=F(i),l="beforeend";switch(o){case"before":l="beforebegin";break;case"after":l="afterend"}u.isInDom()?u.domElement.insertAdjacentElement(l,this.props.domElement):D(this.props.adaptiveId,(function(){var t=F(i);t.isInDom()&&(t.domElement.insertAdjacentElement(l,e.props.domElement),N(e.props.adaptiveId))}))}},{key:"back",value:function(){var t=F('[name="adaptive"][value="'.concat(this.props.adaptiveId,'"'));t.isInDom()&&t.domElement.insertAdjacentElement("afterend",this.props.domElement)}},{key:"cancel",value:function(){N(this.props.adaptiveId)}}],e&&Ot(t.prototype,e),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),kt=!1;function Et(){kt||(document.querySelectorAll("[data-teleport]").forEach((function(t){new At(t).beam(t.getAttribute("data-teleport"))})),kt=!0)}return e})(),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Teleport",[],e):"object"==typeof exports?exports.Teleport=e():t.Teleport=e();
{
"name": "@knighttower/adaptive",
"version": "3.11.0",
"version": "3.12.0",
"type": "module",

@@ -5,0 +5,0 @@ "main": "index.cjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc