clientnode 4.0.1359 → 4.0.1360
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Lock.js +1 -1
- package/dist/Logger.js +1 -1
- package/dist/array.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/context.d.ts +5 -10
- package/dist/context.js +1 -1
- package/dist/cookie.js +1 -1
- package/dist/data-transfer.d.ts +1 -26
- package/dist/data-transfer.js +1 -1
- package/dist/datetime.js +1 -1
- package/dist/filesystem.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/indicators.js +1 -1
- package/dist/number.js +1 -1
- package/dist/object.js +1 -1
- package/dist/process.js +1 -1
- package/dist/property-types.js +1 -1
- package/dist/require.js +1 -1
- package/dist/scope.d.ts +1 -1
- package/dist/scope.js +1 -1
- package/dist/string.d.ts +4 -1
- package/dist/string.js +1 -1
- package/dist/test-helper.js +1 -1
- package/dist/type.d.ts +0 -48
- package/dist/utility.js +1 -1
- package/package.json +15 -22
- package/readme.md +0 -5
- package/dist/Tools.d.ts +0 -238
- package/dist/Tools.js +0 -1
- package/dist/test/Tools.d.ts +0 -1
package/dist/utility.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@babel/runtime/helpers/extends"),function(){try{return require("jquery")}catch(e){}}(),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct"));else if("function"==typeof define&&define.amd)define(["@babel/runtime/helpers/extends","jquery","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/createClass","@babel/runtime/helpers/construct"],r);else{var t="object"==typeof exports?r(require("@babel/runtime/helpers/extends"),function(){try{return require("jquery")}catch(e){}}(),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/createClass"),require("@babel/runtime/helpers/construct")):r(e["@babel/runtime/helpers/extends"],e.jQuery,e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/createClass"],e["@babel/runtime/helpers/construct"]);for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(this,(function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__12__,__WEBPACK_EXTERNAL_MODULE__10__,__WEBPACK_EXTERNAL_MODULE__13__,__WEBPACK_EXTERNAL_MODULE__8__){return function(){var __webpack_modules__=[function(e,r,t){t.d(r,{ABBREVIATIONS:function(){return i},CLASS_TO_TYPE_MAPPING:function(){return a},CONSOLE_METHODS:function(){return n},IGNORE_NULL_AND_UNDEFINED_SYMBOL:function(){return o},PLAIN_OBJECT_PROTOTYPES:function(){return l}});var n=["debug","error","info","log","warn"],o=(Symbol.for("clientnodeValue"),Symbol.for("clientnodeIgnoreNullAndUndefined")),i=["html","id","url","us","de","api","href"],a={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Error]":"error","[object Function]":"function","[object Map]":"map","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object Set]":"set","[object String]":"string"},l=[Object.prototype]},function(e,r,t){t.d(r,{isArrayLike:function(){return i},isFunction:function(){return u},isMap:function(){return s},isObject:function(){return a},isPlainObject:function(){return l}});var n=t(0),o=t(3);var i=function(e){var r;try{r=Boolean(e)&&e.length}catch(e){return!1}var t,n=(0,o.determineType)(e);if("function"===n||![null,void 0].includes(t=e)&&"object"==typeof t&&t===(null==t?void 0:t.window))return!1;if("array"===n||0===r)return!0;if("number"==typeof r&&r>0)try{e[r-1];return!0}catch(e){}return!1},a=function(e){return null!==e&&"object"==typeof e},l=function(e){return a(e)&&n.PLAIN_OBJECT_PROTOTYPES.includes(Object.getPrototypeOf(e))},s=function(e){return"map"===(0,o.determineType)(e)},u=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},function(e,r,t){t.d(r,{$:function(){return u},NOOP:function(){return c}});var n,o,i=t(1),a=t(6),l=t(11);e=t.hmd(e);var s="undefined"==typeof globalThis?void 0===window?void 0===t.g?e:Object.prototype.hasOwnProperty.call(t.g,"window")?t.g.window:t.g:window:globalThis;s.fetch=s.fetch?s.fetch.bind(s):null!==(n=null==(o=(0,a.optionalRequire)("node-fetch"))?void 0:o.default)&&void 0!==n?n:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.currentImport?(0,a.currentImport)("node-fetch").then((function(e){var t;return(t=e).default.apply(t,r)})):null};var u=function(){var e,r,n=function(){};if(Object.prototype.hasOwnProperty.call(s,"$"))n=s.$;else{if(Object.prototype.hasOwnProperty.call(s,"document"))try{n=t(12)}catch(e){}if(void 0===n||"object"==typeof n&&0===Object.keys(n).length){var o,a=null!=(o=s.document)&&o.querySelectorAll?s.document.querySelectorAll.bind(s.document):function(){return null};(n=function(e){var r=null;if("string"==typeof e?r=a(e):Array.isArray(e)?r=e:("object"==typeof HTMLElement&&e instanceof HTMLElement||1===(null==e?void 0:e.nodeType)&&"string"==typeof e.nodeName)&&(r=[e]),r){if(Object.prototype.hasOwnProperty.call(n,"fn"))for(var t=0,o=Object.entries(n.fn);t<o.length;t++){var l=o[t],u=l[0],c=l[1];r[u]=c.bind(r)}return r.jquery="clientnode",r}return(0,i.isFunction)(e)&&s.document&&s.document.addEventListener("DOMContentLoaded",e),e}).fn={}}}(Object.prototype.hasOwnProperty.call(n,"global")||(n.global=s),Object.prototype.hasOwnProperty.call(n.global,"window"))&&(!n.document&&Object.prototype.hasOwnProperty.call(n.global.window,"document")&&(n.document=null==(e=n.global.window)?void 0:e.document),!n.location&&Object.prototype.hasOwnProperty.call(n.global.window,"location")&&(n.location=null==(r=n.global.window)?void 0:r.location));return n}(),c=(function(){if(!u.document)return 0;var e,r=u.document.createElement("div");for(e=0;e<10&&(r.innerHTML="\x3c!--[if gt IE "+String(e)+"]><i></i><![endif]--\x3e",0!==r.getElementsByTagName("i").length);e++);if(0===e&&Object.prototype.hasOwnProperty.call(u.global.window,"navigator")){var t;if(-1!==(null==(t=u.global.window)?void 0:t.navigator.appVersion.indexOf("MSIE 10")))return 10;if(![u.global.window.navigator.userAgent.indexOf("Trident"),u.global.window.navigator.userAgent.indexOf("rv:11")].includes(-1))return 11}}(),Object.prototype.hasOwnProperty.call(u,"noop")?u.noop.bind(u):function(){});!function(e){var r,t;(u=e,Object.prototype.hasOwnProperty.call(u,"global")||(u.global=s),Object.prototype.hasOwnProperty.call(u.global,"window"))&&(!u.document&&Object.prototype.hasOwnProperty.call(u.global.window,"document")&&(u.document=null==(r=u.global.window)?void 0:r.document),!u.location&&Object.prototype.hasOwnProperty.call(u.global.window,"location")&&(u.location=null==(t=u.global.window)?void 0:t.location));if(Object.prototype.hasOwnProperty.call(u,"fn")&&(u.fn.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return l.default.controller(l.default,r,this)}),u.Tools=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return l.default.controller(l.default,r)},u.Tools.class=l.default,Object.prototype.hasOwnProperty.call(u,"fn")){var n=u.fn.prop;u.fn.prop=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),o=1;o<r;o++)t[o-1]=arguments[o];if(t.length<2&&this.length&&["#text","#comment"].includes(this[0].nodeName.toLowerCase())&&e in this[0]){if(0===t.length)return this[0][e];if(1===t.length)return this[0][e]=t[0],this}return n.call.apply(n,[this,e].concat(t))}}}(u),u.readyException=function(e){if("string"!=typeof e||"canceled"!==e)throw e}},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _extends,VALUE_COPY_SYMBOL,isMap,isSet,isObject,isPlainObject,isFunction,isProxy,isNumeric,isNotANumber,evaluate,escapeRegularExpressions;__webpack_require__.d(__webpack_exports__,{determineType:function(){return determineType},extend:function(){return _extend}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_indicators__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var _addDynamicGetterAndSetter=function(e,r,t,n,o,i){if(void 0===r&&(r=null),void 0===t&&(t=null),void 0===n&&(n={}),void 0===o&&(o=!0),void 0===i&&(i=[Object]),o&&"object"==typeof e)if(Array.isArray(e))for(var a,l=0,s=_createForOfIteratorHelperLoose(e);!(a=s()).done;){var u=a.value;e[l]=_addDynamicGetterAndSetter(u,r,t,n,o),l+=1}else if(isMap(e))for(var c,f=_createForOfIteratorHelperLoose(e);!(c=f()).done;){var _=c.value,p=_[0],d=_[1];e.set(p,_addDynamicGetterAndSetter(d,r,t,n,o))}else if(isSet(e)){for(var v,b=[],y=_createForOfIteratorHelperLoose(e);!(v=y()).done;){var m=v.value;e.delete(m),b.push(_addDynamicGetterAndSetter(m,r,t,n,o))}for(var g=0,h=b;g<h.length;g++){var O=h[g];e.add(O)}}else if(null!==e)for(var E=0,A=Object.entries(e);E<A.length;E++){var w=A[E],P=w[0],j=w[1];e[P]=_addDynamicGetterAndSetter(j,r,t,n,o)}if(r||t)for(var I,N,L=function(){var o=N.value;if(isObject(e)&&e instanceof o){var i=getProxyHandler(e,n),a=getProxyHandler(e,n);r&&(a.get=function(t,n){return"__target__"===n?e:"__revoke__"===n?function(){return u(),e}:"function"==typeof e[n]?e[n]:r(i.get(s,n),n,e)}),t&&(a.set=function(r,n,o){return i.set(s,n,t(n,o,e))});var l=Proxy.revocable({},a),s=l.proxy,u=l.revoke;return{v:s}}},S=_createForOfIteratorHelperLoose(i);!(N=S()).done;)if(I=L())return I.v;return e},convertCircularObjectToJSON=function(e,r,t){void 0===r&&(r=function(e){return null!=e?e:"__circularReference__"}),void 0===t&&(t=0);var n=new Map;return function(e){var o=function(e,t){if(isObject(t)){var i,a;if(n.has(t))return r(null!==(i=n.get(t))&&void 0!==i?i:null,e,t,n);if(n.set(t,null),Array.isArray(t)){a=[];for(var l,s=_createForOfIteratorHelperLoose(t);!(l=s()).done;){var u=l.value;a.push(o(null,u))}}else{a={};for(var c=0,f=Object.entries(t);c<f.length;c++){var _=f[c],p=_[0],d=_[1];a[p]=o(p,d)}}return n.set(t,a),a}return t};return JSON.stringify(e,o,t)}(e)},_convertMapToPlainObject=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isMap(e)){for(var t,n={},o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var i=t.value,a=i[0],l=i[1];r&&(l=_convertMapToPlainObject(l,r)),["number","string"].includes(typeof a)&&(n[String(a)]=l)}return n}if(r)if(isPlainObject(e))for(var s=0,u=Object.entries(e);s<u.length;s++){var c=u[s],f=c[0],_=c[1];e[f]=_convertMapToPlainObject(_,r)}else if(Array.isArray(e))for(var p=0,d=0,v=e;d<v.length;d++){var b=v[d];e[p]=_convertMapToPlainObject(b,r),p+=1}else if(isSet(e)){for(var y,m=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var h=y.value;e.delete(h),m.push(_convertMapToPlainObject(h,r))}for(var O=0,E=m;O<E.length;O++){var A=E[O];e.add(A)}}}return e},_convertPlainObjectToMap=function(e,r){if(void 0===r&&(r=!0),"object"==typeof e){if(isPlainObject(e)){for(var t=new Map,n=0,o=Object.entries(e);n<o.length;n++){var i=o[n],a=i[0],l=i[1];r&&(e[a]=_convertPlainObjectToMap(l,r)),t.set(a,e[a])}return t}if(r)if(Array.isArray(e))for(var s=0,u=0,c=e;u<c.length;u++){var f=c[u];e[s]=_convertPlainObjectToMap(f,r),s+=1}else if(isMap(e))for(var _,p=_createForOfIteratorHelperLoose(e);!(_=p()).done;){var d=_.value,v=d[0],b=d[1];e.set(v,_convertPlainObjectToMap(b,r))}else if(isSet(e)){for(var y,m=[],g=_createForOfIteratorHelperLoose(e);!(y=g()).done;){var h=y.value;e.delete(h),m.push(_convertPlainObjectToMap(h,r))}for(var O=0,E=m;O<E.length;O++){var A=E[O];e.add(A)}}}return e},_convertSubstringInPlainObject=function(e,r,t){for(var n=0,o=Object.entries(e);n<o.length;n++){var i=o[n],a=i[0],l=i[1];isPlainObject(l)?e[a]=_convertSubstringInPlainObject(l,r,t):"string"==typeof l&&(e[a]=l.replace(r,t))}return e},_copy=function(e,r,t,n,o,i,a,l){if(void 0===r&&(r=!1),void 0===t&&(t=-1),void 0===n&&(n=VALUE_COPY_SYMBOL),void 0===o&&(o=null),void 0===i&&(i=!1),void 0===a&&(a=[]),void 0===l&&(l=0),isObject(e)){if(!o){if(Array.isArray(e))return _copy(e,r,t,n,[],i,a,l);if(e instanceof Map)return _copy(e,r,t,n,new Map,i,a,l);if(e instanceof Set)return _copy(e,r,t,n,new Set,i,a,l);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var s=/[^/]*$/.exec(e.toString());return(o=new RegExp(e.source,s?s[0]:void 0)).lastIndex=e.lastIndex,o}return"undefined"!=typeof Blob&&e instanceof Blob?r?e.slice(0,e.size,e.type):e:_copy(e,r,t,n,{},i,a,l)}if(e===o)throw new Error("Can't copy because source and destination are identical.");if(!i&&![void 0,null].includes(e)){var u=a.indexOf(e);if(-1!==u)return a[u];a.push(e)}var c=function(e){if(-1!==t&&t<l+1)return n===VALUE_COPY_SYMBOL?e:n;var o=_copy(e,r,t,n,null,i,a,l+1);return i||[void 0,null].includes(e)||"object"!=typeof e||a.push(e),o};if(Array.isArray(e))for(var f,_=_createForOfIteratorHelperLoose(e);!(f=_()).done;){var p=f.value;o.push(c(p))}else if(e instanceof Map)for(var d,v=_createForOfIteratorHelperLoose(e);!(d=v()).done;){var b=d.value,y=b[0],m=b[1];o.set(y,c(m))}else if(e instanceof Set)for(var g,h=_createForOfIteratorHelperLoose(e);!(g=h()).done;){var O=g.value;o.add(c(O))}else for(var E=0,A=Object.entries(e);E<A.length;E++){var w=A[E],P=w[0],j=w[1];try{o[P]=c(j)}catch(e){throw new Error('Failed to copy property value object "'+P+'": '+_represent(e),{cause:e})}}}return o||e},determineType=function(e){if([null,void 0].includes(e))return String(e);var r=typeof e;if(["function","object"].includes(r)&&"toString"in e){var t=Object.prototype.toString.call(e);if(Object.prototype.hasOwnProperty.call(_constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING,t))return _constants__WEBPACK_IMPORTED_MODULE_1__.CLASS_TO_TYPE_MAPPING[t]}return r},_equals=function equals(firstValue,secondValue,givenOptions){void 0===givenOptions&&(givenOptions={});var options=_extends({compareBlobs:!1,deep:-1,exceptionPrefixes:[],ignoreFunctions:!0,properties:null,returnReasonIfNotEqual:!1},givenOptions);if(options.ignoreFunctions&&isFunction(firstValue)&&isFunction(secondValue)||firstValue===secondValue||isNotANumber(firstValue)&&isNotANumber(secondValue)||firstValue instanceof RegExp&&secondValue instanceof RegExp&&firstValue.toString()===secondValue.toString()&&firstValue.flags.split("").sort().join("")===secondValue.flags.split("").sort().join("")||firstValue instanceof Date&&secondValue instanceof Date&&(isNaN(firstValue.getTime())&&isNaN(secondValue.getTime())||!isNaN(firstValue.getTime())&&!isNaN(secondValue.getTime())&&firstValue.getTime()===secondValue.getTime())||options.compareBlobs&&"undefined"!==eval("typeof Buffer")&&Object.prototype.hasOwnProperty.call(eval("Buffer"),"isBuffer")&&firstValue instanceof eval("Buffer")&&secondValue instanceof eval("Buffer")&&firstValue.toString("base64")===secondValue.toString("base64"))return!0;if(options.compareBlobs&&"undefined"!=typeof Blob&&firstValue instanceof Blob&&secondValue instanceof Blob)return new Promise((function(e){for(var r=[],t=0,n=[firstValue,secondValue];t<n.length;t++){var o=n[t],i=new FileReader;i.onload=function(t){null===t.target?r.push(null):r.push(t.target.result),2===r.length&&(r[0]===r[1]?e(!0):e(!!options.returnReasonIfNotEqual&&">>> Blob("+_represent(r[0])+") !== Blob("+_represent(r[1])+")"))},i.readAsDataURL(o)}}));if(isPlainObject(firstValue)&&isPlainObject(secondValue)&&!(firstValue instanceof RegExp||secondValue instanceof RegExp)||Array.isArray(firstValue)&&Array.isArray(secondValue)&&firstValue.length===secondValue.length||determineType(firstValue)===determineType(secondValue)&&["map","set"].includes(determineType(firstValue))&&firstValue.size===secondValue.size){for(var promises=[],_i11=0,_arr4=[[firstValue,secondValue],[secondValue,firstValue]];_i11<_arr4.length;_i11++){var _arr4$_i=_arr4[_i11],first=_arr4$_i[0],second=_arr4$_i[1],firstIsArray=Array.isArray(first);if(firstIsArray&&(!Array.isArray(second)||first.length!==second.length))return!!options.returnReasonIfNotEqual&&".length";var firstIsMap=isMap(first);if(firstIsMap&&(!isMap(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";var firstIsSet=isSet(first);if(firstIsSet&&(!isSet(second)||first.size!==second.size))return!!options.returnReasonIfNotEqual&&".size";if(firstIsArray){for(var index=0,_loop2=function(){var e=_arr5[_i12];if(0!==options.deep){var r=_equals(e,second[index],_extends({},options,{deep:options.deep-1}));if(!r)return{v:!1};var t=index,n=function(e){var r;return"string"==typeof e?"["+String(t)+"]"+(null!==(r={"[":"",">":" "}[e[0]])&&void 0!==r?r:".")+e:e};if(Object.prototype.hasOwnProperty.call(r,"then")&&promises.push(r.then(n)),"string"==typeof r)return{v:n(r)}}index+=1},_ret2,_i12=0,_arr5=first;_i12<_arr5.length;_i12++)if(_ret2=_loop2(),_ret2)return _ret2.v}else if(firstIsMap){for(var _loop3=function(){var e=_step11.value,r=e[0],t=e[1];if(0!==options.deep){var n=_equals(t,second.get(r),_extends({},options,{deep:options.deep-1}));if(!n)return{v:!1};var o=function(e){var t;return"string"==typeof e?"get("+_represent(r)+")"+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(n,"then")&&promises.push(n.then(o)),"string"==typeof n)return{v:o(n)}}},_ret3,_iterator11=_createForOfIteratorHelperLoose(first),_step11;!(_step11=_iterator11()).done;)if(_ret3=_loop3(),_ret3)return _ret3.v}else if(firstIsSet){for(var _loop4=function(){var e=_step12.value;if(0!==options.deep){for(var r,t=!1,n=[],o=_createForOfIteratorHelperLoose(second);!(r=o()).done;){var i=r.value,a=_equals(e,i,_extends({},options,{deep:options.deep-1}));if("boolean"==typeof a){if(a){t=!0;break}}else n.push(a)}var l=function(r){return!!r||!!options.returnReasonIfNotEqual&&">>> {-> "+_represent(e)+" not found}"};return t?0:(n.length&&promises.push(new Promise((function(e){Promise.all(n).then((function(r){e(l(r.some((function(e){return e}))))}),(function(){}))}))),{v:l(!1)})}},_ret4,_iterator12=_createForOfIteratorHelperLoose(first),_step12;!(_step12=_iterator12()).done;)if(_ret4=_loop4(),0!==_ret4&&_ret4)return _ret4.v}else for(var _loop5=function(){var e=_Object$entries7[_i13],r=e[0],t=e[1];if(options.properties&&!options.properties.includes(r))return 0;for(var n,o=!1,i=_createForOfIteratorHelperLoose(options.exceptionPrefixes);!(n=i()).done;){var a=n.value;if(r.startsWith(a)){o=!0;break}}if(o)return 0;if(0!==options.deep){var l=_equals(t,second[r],_extends({},options,{deep:options.deep-1}));if(!l)return{v:!1};var s=function(e){var t;return"string"==typeof e?r+(null!==(t={"[":"",">":" "}[e[0]])&&void 0!==t?t:".")+e:e};if(Object.prototype.hasOwnProperty.call(l,"then")&&promises.push(l.then(s)),"string"==typeof l)return{v:s(l)}}},_ret5,_i13=0,_Object$entries7=Object.entries(first);_i13<_Object$entries7.length&&(_ret5=_loop5(),0!==_ret5);_i13++)if(_ret5)return _ret5.v}return!promises.length||new Promise((function(e){Promise.all(promises).then((function(r){for(var t,n=_createForOfIteratorHelperLoose(r);!(t=n()).done;){var o=t.value;if(!o||"string"==typeof o){e(o);break}}e(!0)}),(function(){}))}))}return!!options.returnReasonIfNotEqual&&">>> "+_represent(firstValue)+" !== "+_represent(secondValue)},evaluateDynamicData=function(e,r,t,n,o){if(void 0===r&&(r={}),void 0===t&&(t="self"),void 0===n&&(n="__evaluate__"),void 0===o&&(o="__execute__"),"object"!=typeof e||null===e)return e;t in r||(r[t]=e);var i=function(e,t){void 0===t&&(t=n);var i=evaluate(e,r,t===o);if(i.error)throw new Error(i.error);return i.result},a=function(e){if("object"!=typeof e||null===e||"undefined"==typeof Proxy)return e;for(var r=0,t=Object.entries(e);r<t.length;r++){var s=t[r],u=s[0],c=s[1];if("__target__"!==u&&isObject(c)){var f=c;if(a(f),Object.prototype.hasOwnProperty.call(f,n)||Object.prototype.hasOwnProperty.call(f,o)){var _=f;e[u]=new Proxy(f,{get:function(e,r){if("__target__"===r)return e;if("hasOwnProperty"===r)return e[r];for(var t=0,a=[n,o];t<a.length;t++){var s=a[t];if(r===s&&"string"==typeof e[r])return l(i(e[r],s))}var u=l(e);if("toString"===r){var c=i(u);return c[r].bind(c)}if("string"!=typeof r){var f,_=i(u);return null!=(f=_[r])&&f.bind?_[r].bind(_):_[r]}for(var p=0,d=[n,o];p<d.length;p++){var v=d[p];if(Object.prototype.hasOwnProperty.call(e,v))return i(u,v)[r]}return u[r]},ownKeys:function(e){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return Object.getOwnPropertyNames(l(i(e[a],a)))}return Object.getOwnPropertyNames(e)}}),e[u].__target__||(e[u].__target__=_)}}}return e},l=function(e){if(isObject(e)){if(isProxy(e)){for(var r=0,t=[n,o];r<t.length;r++){var a=t[r];if(Object.prototype.hasOwnProperty.call(e,a))return e[a]}e=e.__target__}for(var s=0,u=Object.entries(e);s<u.length;s++){var c=u[s],f=c[0],_=c[1];if([n,o].includes(f))return"undefined"==typeof Proxy?l(i(_)):_;e[f]=l(_)}}return e};r.resolve=l;var s=function(e){if(isObject(e))for(var r=0,t=Object.entries(e);r<t.length;r++){var n=t[r],o=n[0],i=n[1];if("__target__"!==o&&null!==i&&["function","undefined"].includes(typeof i)){var a=i.__target__;void 0!==a&&(e[o]=a),s(i)}}return e};return Object.prototype.hasOwnProperty.call(e,n)?i(e[n]):Object.prototype.hasOwnProperty.call(e,o)?i(e[o],o):s(l(a(e)))},_removeKeysInEvaluation=function(e,r){void 0===r&&(r=["__evaluate__","__execute__"]);for(var t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];!r.includes(i)&&r.some((function(r){return Object.prototype.hasOwnProperty.call(e,r)}))?delete e[i]:isPlainObject(a)&&_removeKeysInEvaluation(a,r)}return e},_extend=function(e,r){for(var t=!1,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a,l=o;e===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL||"boolean"==typeof e?(t=e,a=r):(a=e,(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(r)?l=[r].concat(l):void 0!==r&&(a=r));for(var s,u=function(e,r){return r===e?e:t&&r&&((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(r)||(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(r))?(n=(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(r)?e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(e)?e:new Map:e&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(e)?e:{},_extend(t,n,r)):r;var n},c=_createForOfIteratorHelperLoose(l);!(s=c()).done;){var f=s.value,_=typeof a,p=typeof f;if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(_+=" Map"),(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f)&&(p+=" Map"),_===p&&a!==f)if((0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(a)&&(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isMap)(f))for(var d,v=_createForOfIteratorHelperLoose(f);!(d=v()).done;){var b=d.value,y=b[0],m=b[1];a.set(y,u(a.get(y),m))}else if(!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(a)||Array.isArray(a)||"undefined"!=typeof Blob&&a instanceof Blob||!(0,_indicators__WEBPACK_IMPORTED_MODULE_2__.isObject)(f)||Array.isArray(f)||"undefined"!=typeof Blob&&f instanceof Blob)a=f;else for(var g=0,h=Object.entries(f);g<h.length;g++){var O=h[g],E=O[0],A=O[1];t===_constants__WEBPACK_IMPORTED_MODULE_1__.IGNORE_NULL_AND_UNDEFINED_SYMBOL&&[null,void 0].includes(A)||(a[E]=u(a[E],A))}else a=f}return a},getSubstructure=function(e,r,t,n){void 0===t&&(t=!0),void 0===n&&(n=".");for(var o,i=[],a=_createForOfIteratorHelperLoose([].concat(r));!(o=a()).done;){var l=o.value;if("string"==typeof l)for(var s,u=_createForOfIteratorHelperLoose(l.split(n));!(s=u()).done;){var c=s.value;if(c){var f=c.match(/(.*?)(\[[0-9]+])/g);if(f)for(var _,p=_createForOfIteratorHelperLoose(f);!(_=p()).done;){var d=_.value,v=/(.*?)(\[[0-9]+])/.exec(d),b="";if(v){var y;y=v[1],b=v[2],y&&i.push(y)}i.push(b.substring(1,b.length-1))}else i.push(c)}}else i=i.concat(l)}for(var m,g=e,h=_createForOfIteratorHelperLoose(i);!(m=h()).done;){var O=m.value;if(isObject(g)){if("string"==typeof O&&Object.prototype.hasOwnProperty.call(g,O))g=g[O];else if(isFunction(O))g=O(g);else if(!t)return}else if(!t)return}return g},getProxyHandler=function(e,r){return void 0===r&&(r={}),r=_extends({delete:"[]",get:"[]",has:"[]",set:"[]"},r),{deleteProperty:function(t,n){return"[]"!==r.delete||"string"!=typeof n?e[r.delete](n):(delete e[n],!0)},get:function(t,n){return"[]"===r.get&&"string"==typeof n?e[n]:e[r.get](n)},has:function(t,n){return"[]"===r.has?n in e:e[r.has](n)},set:function(t,n,o){return"[]"!==r.set||"string"!=typeof n?e[r.set](n,o):(e[n]=o,!0)}}},_mask=function(e,r){if(!0===(r=_extends({exclude:!1,include:!0},r)).exclude||Array.isArray(r.exclude)&&0===r.exclude.length||!1===r.include||"object"!=typeof e)return{};var t=Array.isArray(r.exclude)?r.exclude.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.exclude,n=Array.isArray(r.include)?r.include.reduce((function(e,r){var t;return _extends({},e,((t={})[r]=!0,t))}),{}):r.include,o={};if(isPlainObject(n))for(var i=0,a=Object.entries(n);i<a.length;i++){var l=a[i],s=l[0],u=l[1];Object.prototype.hasOwnProperty.call(e,s)&&(!0===u?o[s]=e[s]:(isPlainObject(u)||Array.isArray(u)&&u.length)&&"object"==typeof e[s]&&(o[s]=_mask(e[s],{include:u})))}else o=e;if(isPlainObject(t)){for(var c=!1,f=_extends({},o),_=0,p=Object.entries(t);_<p.length;_++){var d=p[_],v=d[0],b=d[1];if(Object.prototype.hasOwnProperty.call(f,v))if(!0===b)c=!0,delete f[v];else if((isPlainObject(b)||Array.isArray(b)&&b.length)&&"object"==typeof f[v]){var y=f[v];f[v]=_mask(f[v],{exclude:b}),f[v]!==y&&(c=!0)}}c&&(o=f)}return o},_modifyObject=function(e,r,t,n,o,i,a,l,s){if(void 0===t&&(t="__remove__"),void 0===n&&(n="__prepend__"),void 0===o&&(o="__append__"),void 0===i&&(i="__"),void 0===a&&(a="__"),void 0===l&&(l=null),void 0===s&&(s=null),isMap(r)&&isMap(e))for(var u,c=_createForOfIteratorHelperLoose(r);!(u=c()).done;){var f=u.value,_=f[0],p=f[1];e.has(_)&&_modifyObject(e.get(_),p,t,n,o,i,a,r,_)}else if(isObject(r)&&isObject(e))for(var d=0,v=Object.entries(r);d<v.length;d++){var b=v[d],y=b[0],m=b[1],g=NaN;if(Array.isArray(e)&&y.startsWith(i)&&y.endsWith(a)&&((g=parseInt(y.substring(i.length,y.length-a.length),10))<0||g>=e.length)&&(g=NaN),[t,n,o].includes(y)||!isNaN(g)){if(Array.isArray(e))if(y===t)for(var h,O=_createForOfIteratorHelperLoose([].concat(m));!(h=O()).done;){var E=h.value;"string"==typeof E&&E.startsWith(i)&&E.endsWith(a)?e.splice(parseInt(E.substring(i.length,E.length-a.length),10),1):e.includes(E)?e.splice(e.indexOf(E),1):"number"==typeof E&&E<e.length&&e.splice(E,1)}else y===o?e=e.concat(m):y===n?e=[].concat(m).concat(e):isObject(e[g])&&isObject(m)?_extend(!0,_modifyObject(e[g],m,t,n,o,i,a),e[g],m):e[g]=m;else if(y===t)for(var A,w=_createForOfIteratorHelperLoose([].concat(m));!(A=w()).done;){var P=A.value;"string"==typeof P&&Object.prototype.hasOwnProperty.call(e,P)&&delete e[P]}delete r[y],l&&"string"==typeof s&&delete l[s]}else null!==e&&Object.prototype.hasOwnProperty.call(e,y)&&(e[y]=_modifyObject(e[y],m,t,n,o,i,a,r,y))}return e},_removeKeyPrefixes=function(e,r){void 0===r&&(r="#");var t=[].concat(r);if(Array.isArray(e))for(var n,o=0,i=_createForOfIteratorHelperLoose(e.slice());!(n=i()).done;){var a=n.value,l=!1;if("string"==typeof a){for(var s,u=_createForOfIteratorHelperLoose(t);!(s=u()).done;){var c=s.value;if(a.startsWith(c+":")){e.splice(o,1),l=!0;break}}if(l)continue}e[o]=_removeKeyPrefixes(a,t),o+=1}else if(isSet(e))for(var f,_=_createForOfIteratorHelperLoose(new Set(e));!(f=_()).done;){var p=f.value,d=!1;if("string"==typeof p){for(var v,b=_createForOfIteratorHelperLoose(t);!(v=b()).done;){var y=v.value;if(p.startsWith(y+":")){e.delete(p),d=!0;break}}if(d)continue}_removeKeyPrefixes(p,t)}else if(isMap(e))for(var m,g=_createForOfIteratorHelperLoose(new Map(e));!(m=g()).done;){var h=m.value,O=h[0],E=h[1],A=!1;if("string"==typeof O){for(var w,P=_createForOfIteratorHelperLoose(t);!(w=P()).done;){var j=w.value,I=escapeRegularExpressions(j);if(new RegExp("^"+I+"[0-9]*$").test(O)){e.delete(O),A=!0;break}}if(A)continue}e.set(O,_removeKeyPrefixes(E,t))}else if(isObject(e))for(var N=0,L=Object.entries(Object.assign({},e));N<L.length;N++){for(var S,x=L[N],M=x[0],T=x[1],D=!1,R=_createForOfIteratorHelperLoose(t);!(S=R()).done;){var $=S.value,C=escapeRegularExpressions($);if(new RegExp("^"+C+"[0-9]*$").test(M)){delete e[M],D=!0;break}}D||(e[M]=_removeKeyPrefixes(T,t))}return e},_represent=function(e,r,t,n,o,i){if(void 0===r&&(r=30),void 0===t&&(t=" "),void 0===n&&(n=""),void 0===o&&(o="__maximum_number_of_levels_reached__"),void 0===i&&(i=8),0===i)return String(o);if(null===e)return"null";if(void 0===e)return"undefined";if("string"==typeof e)return'"'+e.replace(/\n/g,"\n"+n)+'"';if(isNumeric(e)||"boolean"==typeof e)return String(e);if(e instanceof Date)return e.toISOString();if(Array.isArray(e)){for(var a,l="[",s=!1,u=1,c=_createForOfIteratorHelperLoose(e);!(a=c()).done;){var f=a.value;if(u>r){l+="\n"+n+"...";break}s&&(l+=","),l+="\n"+n+t+_represent(f,r,t,""+n+t,o,i-1),s=!0,u+=1}return s&&(l+="\n"+n),l+="]"}if(isMap(e)){for(var _,p="",d=!1,v=1,b=_createForOfIteratorHelperLoose(e);!(_=b()).done;){var y=_.value,m=y[0],g=y[1];if(v>r){p+=",\n"+n+"...";break}d&&(p+=",\n"+n+t),p+=_represent(m,r,t,""+n+t,o,i-1)+" -> "+_represent(g,r,t,""+n+t,o,i-1),d=!0,v+=1}return d||(p="EmptyMap"),p}if(isSet(e)){for(var h,O="{",E=!1,A=1,w=_createForOfIteratorHelperLoose(e);!(h=w()).done;){var P=h.value;if(A>r){O+=",\n"+n+"...";break}E&&(O+=","),O+="\n"+n+t+_represent(P,r,t,""+n+t,o,i-1),E=!0,A+=1}return E?O+="\n"+n+"}":O="EmptySet",O}if(isFunction(e))return"__function__";for(var j,I="{",N=!1,L=1,S=_createForOfIteratorHelperLoose(Object.getOwnPropertyNames(e).sort());!(j=S()).done;){var x=j.value;if(L>r){I+=",\n"+n+"...";break}N&&(I+=","),I+="\n"+n+t+x+": "+_represent(e[x],r,t,""+n+t,o,i-1),N=!0,L+=1}return N&&(I+="\n"+n),I+="}"},sort=function(e){var r=[];if(Array.isArray(e))for(var t=0;t<e.length;t++)r.push(t);else if("object"==typeof e)if(isMap(e))for(var n,o=_createForOfIteratorHelperLoose(e);!(n=o()).done;){var i=n.value;r.push(i[0])}else if(null!==e)for(var a=0,l=Object.keys(e);a<l.length;a++){var s=l[a];r.push(s)}return r.sort()},_unwrapProxy=function(e,r){if(void 0===r&&(r=new Set),isObject(e)){if(r.has(e))return e;try{isFunction(e.__revoke__)&&(isProxy(e)&&(e=e.__target__),e.__revoke__())}catch(r){return e}finally{r.add(e)}if(Array.isArray(e))for(var t,n=0,o=_createForOfIteratorHelperLoose(e);!(t=o()).done;){var i=t.value;e[n]=_unwrapProxy(i,r),n+=1}else if(isMap(e))for(var a,l=_createForOfIteratorHelperLoose(e);!(a=l()).done;){var s=a.value,u=s[0],c=s[1];e.set(u,_unwrapProxy(c,r))}else if(isSet(e)){for(var f,_=[],p=_createForOfIteratorHelperLoose(e);!(f=p()).done;){var d=f.value;e.delete(d),_.push(_unwrapProxy(d,r))}for(var v=0,b=_;v<b.length;v++){var y=b[v];e.add(y)}}else for(var m=0,g=Object.entries(e);m<g.length;m++){var h=g[m],O=h[0],E=h[1];e[O]=_unwrapProxy(E,r)}}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _extends,_construct,SPECIAL_REGEX_SEQUENCES,DEFAULT_ENCODING,$,MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION,MAXIMAL_NUMBER_OF_ITERATIONS,readFileSync,isFileSync,represent,determineType;__webpack_require__.d(__webpack_exports__,{camelCaseToDelimited:function(){return camelCaseToDelimited},capitalize:function(){return capitalize},compressStyleValue:function(){return compressStyleValue},delimitedToCamelCase:function(){return delimitedToCamelCase},format:function(){return format},normalizeDomNodeSelector:function(){return normalizeDomNodeSelector}});var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8),_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_construct__WEBPACK_IMPORTED_MODULE_1__),_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0);function _createForOfIteratorHelperLoose(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var ALLOWED_VARIABLE_SYMBOLS="0-9a-zA-Z_$",ALLOWED_STARTING_VARIABLE_SYMBOLS="a-zA-Z_$",FIX_ENCODING_ERROR_MAPPING=null,escapeRegularExpressions=function(e,r){if(void 0===r&&(r=[]),1===e.length&&!SPECIAL_REGEX_SEQUENCES.includes(e))return e;r.includes("\\")||e.replace(/\\/g,"\\\\");for(var t,n=_createForOfIteratorHelperLoose(SPECIAL_REGEX_SEQUENCES);!(t=n()).done;){var o=t.value;r.includes(o)||(e=e.replace(new RegExp("\\"+o,"g"),"\\"+o))}return e},convertToValidVariableName=function(e){return["class","default"].includes(e)?"_"+e:e.replace(new RegExp("^[^"+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]+"),"").replace(new RegExp("[^"+ALLOWED_VARIABLE_SYMBOLS+"]+([a-zA-Z])","g"),(function(e,r){return r.toUpperCase()}))},encodeURIComponentExtended=function(e,r){return void 0===r&&(r=!1),encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,r?"%20":"+")},addSeparatorToPath=function(e,r){return void 0===r&&(r="/"),(e=e.trim()).substring(e.length-1)!==r&&e.length?e+r:e},hasPathPrefix=function(e,r,t){var n;(void 0===e&&(e="/admin"),void 0===r)&&(r=(null==(n=$.location)?void 0:n.pathname)||"");return void 0===t&&(t="/"),"string"==typeof e&&(e.endsWith(t)||(e+=t),r===e.substring(0,e.length-t.length)||r.startsWith(e))},getDomainName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.hostname)||"");var o=/^([a-z]*:?\/\/)?([^/]+?)(?::[0-9]+)?(?:\/.*|$)/i.exec(e);return o&&o.length>2&&o[1]&&o[2]?o[2]:r},getPortNumber=function(e,r){var t,n,o;void 0===e&&(e=(null==(n=$.location)?void 0:n.href)||"");void 0===r&&(r=null!=(o=$.location)&&o.port?parseInt($.location.port):null);var i=/^(?:[a-z]*:?\/\/[^/]+?)?[^/]+?:([0-9]+)/i.exec(e);return i&&i.length>1?parseInt(i[1],10):null!==r?r:null!=(t=$.location)&&t.port&&parseInt($.location.port,10)?parseInt($.location.port,10):"https"===getProtocolName(e)?443:80},getProtocolName=function(e,r){var t,n;void 0===e&&(e=(null==(t=$.location)?void 0:t.href)||"");void 0===r&&(r=(null==(n=$.location)?void 0:n.protocol)&&$.location.protocol.substring(0,$.location.protocol.length-1)||"");var o=/^([a-z]+):\/\//i.exec(e);return o&&o.length>1&&o[1]?o[1]:r},getURLParameter=function(e,r,t,n,o,i,a){var l,s,u;(void 0===e&&(e=null),void 0===r&&(r=!1),void 0===t&&(t=null),void 0===n&&(n="$"),void 0===o&&(o="!"),void 0===i&&(i=null),void 0===a)&&(a=null!==(s=null==(u=$.location)?void 0:u.hash)&&void 0!==s?s:"");var c=null!==(l=a)&&void 0!==l?l:"#",f="";if(i)f=i;else if(o&&c.startsWith(o)){var _,p=c.indexOf("#");-1===p?(_=c.substring(o.length),c=""):(_=c.substring(o.length,p),c=c.substring(p));var d=_.indexOf("?");-1!==d&&(f=_.substring(d))}else $.location&&(f=$.location.search||"");var v=t||f,b="&"===v;if(b||"#"===v){var y="";try{y=decodeURIComponent(c)}catch(e){}var m=y.indexOf(n);-1===m?v="":(v=y.substring(m)).startsWith(n)&&(v=v.substring(n.length))}else v.startsWith("?")&&(v=v.substring(1));var g=v?v.split("&"):[];f=f.substring(1),b&&f&&(g=g.concat(f.split("&")));for(var h,O=[],E=_createForOfIteratorHelperLoose(g);!(h=E()).done;){var A=h.value,w=A.split("="),P=void 0;try{P=decodeURIComponent(w[0])}catch(e){P=""}try{A=decodeURIComponent(w[1])}catch(e){A=""}O.push(P),r?Object.prototype.hasOwnProperty.call(O,P)&&Array.isArray(O[P])?O[P].push(A):O[P]=[A]:O[P]=A}return e?Object.prototype.hasOwnProperty.call(O,e)?O[e]:null:O},serviceURLEquals=function(e,r){var t;void 0===r&&(r=(null==(t=$.location)?void 0:t.href)||"");var n=getDomainName(e,""),o=getProtocolName(e,""),i=getPortNumber(e);return!(""!==n&&n!==getDomainName(r)||""!==o&&o!==getProtocolName(r)||null!==i&&i!==getPortNumber(r))},normalizeURL=function(e){if("string"==typeof e){var r=e.replace(/^:?\/+/,"").replace(/\/+$/,"").trim();return r.startsWith("http")?r:"http://"+r}return""},representURL=function(e){return"string"==typeof e?e.replace(/^(https?)?:?\/+/,"").replace(/\/+$/,"").trim():""},camelCaseToDelimited=function(e,r,t){void 0===r&&(r="-"),void 0===t&&(t=null),t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS);var n=maskForRegularExpression(r);if(t.length){for(var o,i="",a=_createForOfIteratorHelperLoose(t);!(o=a()).done;){i&&(i+="|"),i+=o.value.toUpperCase()}e=e.replace(new RegExp("("+i+")("+i+")","g"),"$1"+r+"$2")}return(e=e.replace(new RegExp("([^"+n+"])([A-Z][a-z]+)","g"),"$1"+r+"$2")).replace(/([a-z0-9])([A-Z])/g,"$1"+r+"$2").toLowerCase()},capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1)},compressStyleValue=function(e){return e.replace(/ *([:;]) */g,"$1").replace(/ +/g," ").replace(/^;+/,"").replace(/;+$/,"").trim()},decodeHTMLEntities=function(e){if($.document){var r=$.document.createElement("textarea");return r.innerHTML=e,r.value}return null},delimitedToCamelCase=function(e,r,t,n,o){void 0===r&&(r="-"),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=!1);var i,a=maskForRegularExpression(r);if(t||(t=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS),n)i=_constants__WEBPACK_IMPORTED_MODULE_2__.ABBREVIATIONS.join("|");else{i="";for(var l,s=_createForOfIteratorHelperLoose(t);!(l=s()).done;){var u=l.value;i&&(i+="|"),i+=capitalize(u)+"|"+u}}var c=e.startsWith(r);return c&&(e=e.substring(r.length)),e=e.replace(new RegExp("("+a+")("+i+")("+a+"|$)","g"),(function(e,r,t,n){return r+t.toUpperCase()+n})),o&&(a="(?:"+a+")+"),e=e.replace(new RegExp(a+"([a-zA-Z0-9])","g"),(function(e,r){return r.toUpperCase()})),c&&(e=r+e),e},compile=function(e,r,t,n,o){var i;void 0===r&&(r=[]),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===o&&(o={});for(var a,l,s=Object.keys(globalThis).concat("globalThis").filter((function(e){return new RegExp("^["+ALLOWED_STARTING_VARIABLE_SYMBOLS+"]["+ALLOWED_VARIABLE_SYMBOLS+"]*$").test(e)})),u={error:null,globalNames:s,globalNamesUndefinedList:s.map((function(){})),originalScopeNames:Array.isArray(r)?r:"string"==typeof r?[r]:Object.keys(r),scopeNameMapping:{},scopeNames:[],templateFunction:function(){}},c=_createForOfIteratorHelperLoose(u.originalScopeNames);!(a=c()).done;){var f=a.value,_=convertToValidVariableName(f);u.scopeNameMapping[f]=_,u.scopeNames.push(_)}if(0!==MAXIMAL_SUPPORTED_INTERNET_EXPLORER_VERSION.value)if(null!=(i=$.global.Babel)&&i.transform)e=$.global.Babel.transform("("+e+")",{plugins:["transform-template-literals"]}).code;else if(e.startsWith("`")&&e.endsWith("`")){var p="####",d="`"===(e=e.replace(/\\\$/g,p).replace(/^`\$\{([\s\S]+)}`$/,"String($1)").replace(/^`([^']+)`$/,"'$1'").replace(/^`([^"]+)`$/,'"$1"')).charAt(0)?"'":e.charAt(0);e=e.replace(/\$\{((([^{]*{[^}]*}[^}]*})|[^{}]+)+)}/g,d+"+($1)+"+d).replace(/^`([\s\S]+)`$/,d+"$1"+d).replace(/\n+/g,"").replace(new RegExp(p,"g"),"\\$")}try{l=_construct(Function,(n?u.globalNames:[]).concat(u.scopeNames,[(t?"":"return ")+e]))}catch(r){u.error='Given expression "'+e+'" could not be compiled width given scope names "'+u.scopeNames.join('", "')+'": '+represent(r)}if(l){var v=l.bind(o);u.templateFunction=n?function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return v.apply(void 0,u.globalNamesUndefinedList.concat(r))}:v}return u},evaluate=function(e,r,t,n,o){void 0===r&&(r={}),void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===o&&(o={});var i=compile(e,r,t,n,o),a=i.error,l=i.originalScopeNames,s=i.scopeNames,u=i.templateFunction,c={compileError:null,runtimeError:null,error:"Not yet evaluated.",result:void 0};if(a)return c.compileError=c.error=a,c;try{c={compileError:null,runtimeError:null,error:null,result:u.apply(void 0,l.map((function(e){return r[e]})))}}catch(a){c.error=c.runtimeError='Given expression "'+e+'" could not be evaluated with given scope names "'+s.join('", "')+'": '+represent(a)}return c},findNormalizedMatchRange=function(e,r,t,n){void 0===t&&(t=function(e){return String(e).toLowerCase()}),void 0===n&&(n=["<",">"]);var o=t(r),i=t(e),a="string"==typeof e?e:i;if(i&&o)for(var l=!1,s=0;s<a.length;s+=1)if(l)Array.isArray(n)&&a.charAt(s)===n[1]&&(l=!1);else if(Array.isArray(n)&&a.charAt(s)===n[0])l=!0;else if(t(a.substring(s)).startsWith(o)){if(1===o.length)return[s,s+1];for(var u=a.length;u>s;u-=1)if(!t(a.substring(s,u)).startsWith(o))return[s,u+1]}return null},fixKnownEncodingErrors=function(e){for(var r=0,t=FIX_ENCODING_ERROR_MAPPING;r<t.length;r++){var n=t[r],o=n[0],i=n[1];e=e.replace(new RegExp(o,"g"),i)}return e},format=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];t.unshift(e);for(var o=0,i=0,a=t;i<a.length;i++){var l=a[i];e=e.replace(new RegExp("\\{"+String(o)+"\\}","gm"),String(l)),o+=1}return e},getEditDistance=function(e,r){for(var t=Array(r.length+1).fill(null).map((function(){return Array(e.length+1).fill(null)})),n=0;n<=e.length;n++)t[0][n]=n;for(var o=0;o<=r.length;o++)t[o][0]=o;for(var i=1;i<=r.length;i++)for(var a=1;a<=e.length;a++){var l=e[a-1]===r[i-1]?0:1;t[i][a]=Math.min(t[i][a-1]+1,t[i-1][a]+1,t[i-1][a-1]+l)}return t[r.length][e.length]},maskForRegularExpression=function(e){return e.replace(/([\\|.*$^+[\]()?\-{}])/g,"\\$1")},lowerCase=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},mark=function(e,r,t){if(void 0===t&&(t={}),"string"==typeof e&&null!=r&&r.length){var n=_extends({marker:'<span class="tools-mark">{1}</span>',normalizer:function(e){return String(e).toLowerCase()},skipTagDelimitedParts:["<",">"]},t);e=e.trim();for(var o,i=[],a=[].concat(r),l=0,s=_createForOfIteratorHelperLoose(a);!(o=s()).done;){var u=o.value;a[l]=n.normalizer(u).trim(),l+=1}for(var c=e,f=0,_=0;_<MAXIMAL_NUMBER_OF_ITERATIONS.value;_++){for(var p,d=null,v=void 0,b=_createForOfIteratorHelperLoose(a);!(p=b()).done;){var y=p.value;(v=findNormalizedMatchRange(c,y,n.normalizer,n.skipTagDelimitedParts))&&(!d||v[0]<d[0])&&(d=v)}if(!d){c.length&&i.push(c);break}d[0]>0&&i.push(e.substring(f,f+d[0])),i.push("string"==typeof n.marker?format(n.marker,e.substring(f+d[0],f+d[1])):n.marker(e.substring(f+d[0],f+d[1]),i)),f+=d[1],c=e.substring(f)}return"string"==typeof n.marker?i.join(""):i}return e},normalizePhoneNumber=function(e,r){if(void 0===r&&(r=!0),"string"==typeof e||"number"==typeof e){var t=String(e).trim();if(t=(t=t.replace(/^[^0-9]*\+/,"00")).replace(/([0-9].*?) *(,|o[rd]?)\.? ?-?[0-9]+$/,"$1"),r)return t.replace(/[^0-9]+/g,"");var n="(?:[ /\\-]+)";t=(t=t.replace(new RegExp("^(.+?)"+n+"?\\(0\\)"+n+"?(.+)$"),"$1-$2")).replace(new RegExp("^(.+?)"+n+"?\\((.+)\\)"+n+"?(.+)$"),"$1-$2-$3");var o=new RegExp("^(00[0-9]+)"+n+"([0-9]+)"+n+"(.+)$");if(o.test(t))t=t.replace(o,(function(e,r,t,n){return r+"-"+t+"-"+sliceAllExceptNumberAndLastSeparator(n)}));else{var i=function(e,r,t){return r.replace(/ +/,"")+"-"+sliceAllExceptNumberAndLastSeparator(t)};t=(o=/^([0-9 ]+)[/-](.+)$/).test(t)?t.replace(o,i):t.replace(new RegExp("^([0-9]+)"+n+"(.+)$"),i)}return t.replace(/[^0-9-]+/g,"").replace(/^-+$/,"")}return""},normalizeZipCode=function(e){return"string"==typeof e||"number"==typeof e?String(e).trim().replace(/^([^0-9]*[a-zA-Z]-)?(.+)$/,(function(e,r,t){var n;return r&&(r=r.substring(r.length-2).charAt(0).toUpperCase()+"-"),(null!==(n=r)&&void 0!==n?n:"")+(null!=t?t:"").trim().replace(/[^0-9]+/g,"")})):""},parseEncodedObject=function parseEncodedObject(serializedObject,scope,name){var _evaluate;if(void 0===scope&&(scope={}),void 0===name&&(name="scope"),!readFileSync)throw new Error("File system api could not be loaded.");serializedObject.endsWith(".json")&&isFileSync(serializedObject)&&(serializedObject=readFileSync(serializedObject,{encoding:DEFAULT_ENCODING})),serializedObject=serializedObject.trim(),serializedObject.startsWith("{")||(serializedObject=eval("Buffer").from(serializedObject,"base64").toString(DEFAULT_ENCODING));var result=evaluate(serializedObject,(_evaluate={},_evaluate[name]=scope,_evaluate));return"object"==typeof result.result?result.result:null},representPhoneNumber=function(e){if(["number","string"].includes(determineType(e))&&e){var r=String(e).replace(/^(00|\+)([0-9]+)-([0-9-]+)$/,"+$2 (0) $3");return(r=(r=r.replace(/^0([1-9][0-9-]+)$/,"+49 (0) $1")).replace(/^([^-]+)-([0-9-]+)$/,"$1 / $2")).replace(/^(.*?)([0-9]+)(-?[0-9]*)$/,(function(e,r,t,n){return r+(t.length%2==0?t.replace(/([0-9]{2})/g,"$1 "):t.replace(/^([0-9]{3})([0-9]+)$/,(function(e,r,t){return r+" "+t.replace(/([0-9]{2})/g,"$1 ").trim()}))+n).trim()})).trim()}return""},sliceAllExceptNumberAndLastSeparator=function(e){var r=/^(.*[0-9].*)-([0-9]+)$/;return r.test(e)?e.replace(r,(function(e,r,t){return r.replace(/[^0-9]+/g,"")+"-"+t})):e.replace(/[^0-9]+/g,"")},normalizeDomNodeSelector=function(e,r){void 0===r&&(r="");var t="";return r&&(t=r+" "),e.startsWith(t)||e.trim().startsWith("<")||(e=t+e),e.trim()},limit=function(e,r){if(void 0===r&&(r=100),e.length<=r)return e;return e.substring(0,r-3)+"..."}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{currentImport:function(){return currentImport},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c);for(var r={},t=0,n=Object.entries(e);t<n.length;t++){var o=n[t],i=o[0],a=o[1];r[i]=a,delete e[i]}return r},restoreRequireCache=function(e,r){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c),clearRequireCache();for(var t=0,n=Object.entries(r);t<n.length;t++){var o=n[t],i=o[0],a=o[1];e[i]=a}},isolatedRequire=function(e,r){void 0===r&&(r=currentRequire||__webpack_require__(9));var t=clearRequireCache(r.cache);try{return r(e)}catch(e){throw e}finally{restoreRequireCache(r.cache,t)}}},function(e,r,t){t.d(r,{makeArray:function(){return a}});t(4);var n=t(1);function o(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return i(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var a=function(e){var r=[];return[null,void 0].includes(e)||((0,n.isArrayLike)(Object(e))?l(r,"string"==typeof e?[e]:e):r.push(e)),r},l=function(e,r){Array.isArray(r)||(r=Array.prototype.slice.call(r));for(var t,n=o(r);!(t=n()).done;){var i=t.value;e.push(i)}return e}},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__8__},function(e){function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=function(){return[]},r.resolve=r,r.id=9,e.exports=r},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__10__},function(e,r,t){t(10);var n=t(13),o=t.n(n),i=t(7),a=t(0),l=t(2),s=t(1),u=t(3),c=t(5);function f(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(t)return(t=t.call(e)).next.bind(t);if(Array.isArray(e)||(t=function(e,r){if(e){if("string"==typeof e)return _(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,r):void 0}}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var p=!1,d=function(){function e(r){var t=this;this.$domNode=null,this.options=void 0,this._bindEventHelper=function(e,r,n){void 0===r&&(r=!1),n||(n=r?"off":"on");var o=(0,l.$)(e[0]);if("object"===(0,u.determineType)(e[1])&&!r){for(var a=0,s=Object.entries(e[1]);a<s.length;a++){var c=s[a],f=c[0],_=c[1];t[n](o,f,_)}return o}return 0===(e=(0,i.makeArray)(e).slice(1)).length&&e.push(""),e[0].includes(".")||(e[0]+="."+t.options.name),o[n].apply(o,e)},r&&(this.$domNode=r),this.options=e._defaultOptions,Object.prototype.hasOwnProperty.call(l.$.global,"console")||(l.$.global.console={}),l.$.global.console||(l.$.global.console={});for(var n,o=f(a.CONSOLE_METHODS);!(n=o()).done;){var s=n.value;s in l.$.global.console||(l.$.global.console[s]=l.NOOP)}}var r=e.prototype;return r.destructor=function(){var e;return null!=(e=l.$.fn)&&e.off&&this.off("*"),this},r.initialize=function(r){return void 0===r&&(r={}),this.options=(0,u.extend)(!0,{},e._defaultOptions,r),this.options.domNodeSelectorPrefix=(0,c.format)(this.options.domNodeSelectorPrefix,(0,c.camelCaseToDelimited)(null===this.options.domNodeSelectorInfix?"":this.options.domNodeSelectorInfix||this.options.name)),this.renderJavaScriptDependentVisibility(),this},e.controller=function(r,t,n){void 0===n&&(n=null),"function"==typeof r&&((r=new r(n))instanceof e||(r=(0,u.extend)(!0,new e,r)));var o,a=(0,i.makeArray)(t);if(a.length&&"string"==typeof a[0]&&a[0]in r)return(0,s.isFunction)(r[a[0]])?(o=r)[a[0]].apply(o,a.slice(1)):r[a[0]];if(0===a.length||"object"==typeof a[0]){var l,c,f=(l=r).initialize.apply(l,a),_=r.options.name||r.constructor.name;return null!=(c=n)&&c.data&&!n.data(_)&&n.data(_,r),f}if(a.length&&"string"==typeof a[0])throw new Error('Method "'+a[0]+'" does not exist on $-extended dom node "'+r+'".')},e.isEquivalentDOM=function(e,r,t){if(void 0===t&&(t=!1),e===r)return!0;if(e&&r){for(var n=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,o={first:e,second:r},i={first:(0,l.$)("<dummy>"),second:(0,l.$)("<dummy>")},a=0,s=Object.entries(o);a<s.length;a++){var u=s[a],c=u[0],f=u[1];if("string"==typeof f&&(t||f.startsWith("<")&&f.endsWith(">")&&f.length>=3||n.test(f)))i[c]=(0,l.$)("<div>"+f+"</div>");else try{var _=(0,l.$)(f).clone();if(!_.length)return!1;i[c]=(0,l.$)("<div>").append(_)}catch(e){return!1}}if(i.first.length&&i.first.length===i.second.length){i.first=i.first.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode,i.second=i.second.Tools("normalizedClassNames").$domNode.Tools("normalizedStyles").$domNode;for(var p=0,d=0,v=i.first;d<v.length;d++){if(!v[d].isEqualNode(i.second[p]))return!1;p+=1}return!0}}return!1},r.getPositionRelativeToViewport=function(e){if(void 0===e&&(e={}),!l.$.global.window)throw new Error("No window object available.");var r=(0,u.extend)({bottom:0,left:0,right:0,top:0},e),t=this.$domNode;if(Object.prototype.hasOwnProperty.call(l.$.global,"window")&&null!=t&&t.length&&t[0]&&"getBoundingClientRect"in t[0]){var n=(0,l.$)(l.$.global.window),o=t[0].getBoundingClientRect();if(o.top&&o.top+r.top<0)return"above";if(o.left+r.left<0)return"left";var i=n.height();if("number"==typeof i&&i<o.bottom+r.bottom)return"below";var a=n.width();if("number"==typeof a&&a<o.right+r.right)return"right"}return"in"},e.generateDirectiveSelector=function(e){var r=(0,c.camelCaseToDelimited)(e);return r+", ."+r+", ["+r+"], [data-"+r+"], [x-"+r+"]"+(r.includes("-")?", ["+r.replace(/-/g,"\\:")+"], ["+r.replace(/-/g,"_")+"]":"")},r.removeDirective=function(e){if(null===this.$domNode)return null;var r=(0,c.camelCaseToDelimited)(e);return this.$domNode.removeClass(r).removeAttr(r).removeAttr("data-"+r).removeAttr("x-"+r).removeAttr(r.replace("-",":")).removeAttr(r.replace("-","_"))},r.renderJavaScriptDependentVisibility=function(){!p&&l.$.document&&"filter"in l.$&&"hide"in l.$&&"show"in l.$&&((0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.hideJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentHide")})).data("javaScriptDependentContentHide",!0).hide(),(0,l.$)(this.options.domNodeSelectorPrefix+" "+this.options.domNodes.showJavaScriptEnabled).filter((function(e,r){return!(0,l.$)(r).data("javaScriptDependentContentShow")})).data("javaScriptDependentContentShow",!0).show(),p=!0)},e.getNormalizedDirectiveName=function(e){for(var r,t=f(["-",":","_"]);!(r=t()).done;){for(var n,o=r.value,i=!1,a=f(["data"+o,"x"+o]);!(n=a()).done;){var l=n.value;if(e.startsWith(l)){e=e.substring(l.length),i=!0;break}}if(i)break}for(var s,u=f(["-",":","_"]);!(s=u()).done;){var _=s.value;e=(0,c.delimitedToCamelCase)(e,_)}return e},r.getDirectiveValue=function(e){if(null===this.$domNode)return null;for(var r=(0,c.camelCaseToDelimited)(e),t=0,n=[r,"data-"+r,"x-"+r,r.replace("-","\\:")];t<n.length;t++){var o=n[t],i=this.$domNode.attr(o);if("string"==typeof i)return i}return null},r.sliceDomNodeSelectorPrefix=function(e){return this.options.domNodeSelectorPrefix&&e.startsWith(this.options.domNodeSelectorPrefix)?e.substring(this.options.domNodeSelectorPrefix.length).trim():e},e.getDomNodeName=function(e){var r=/^<?([a-zA-Z]+).*>?.*/.exec(e);return r?r[1]:null},r.grabDomNodes=function(e,r){var t=this,n={};if(r)for(var o=(0,l.$)(r),i=0,a=Object.entries(e);i<a.length;i++){var s=a[i],u=s[0],f=s[1];n[u]=o.find(f)}else for(var _=0,p=Object.entries(e);_<p.length;_++){var d=p[_],v=d[0],b=d[1],y=/, */.exec(b);y&&(e[v]+=b.split(y[0]).map((function(e){return", "+(0,c.normalizeDomNodeSelector)(e,t.options.domNodeSelectorPrefix)})).join("")),n[v]=(0,l.$)((0,c.normalizeDomNodeSelector)(e[v],this.options.domNodeSelectorPrefix))}return this.options.domNodeSelectorPrefix&&(n.parent=(0,l.$)(this.options.domNodeSelectorPrefix)),Object.prototype.hasOwnProperty.call(l.$.global,"window")&&(n.window=(0,l.$)(l.$.global.window),l.$.document&&(n.document=(0,l.$)(l.$.document))),n},r.fireEvent=function(e,r,t){var n;void 0===r&&(r=!1),void 0===t&&(t=this);for(var o="on"+(0,c.capitalize)(e),i=t,a=arguments.length,s=new Array(a>3?a-3:0),u=3;u<a;u++)s[u-3]=arguments[u];return r||(o in i?i[o].apply(i,s):"_"+o in i&&i["_"+o].apply(i,s)),!i.options||!(o in i.options)||i.options[o]===l.NOOP||(n=i.options[o]).call.apply(n,[this].concat(s))},r.on=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!1)},r.off=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return this._bindEventHelper(r,!0)},o()(e,[{key:"normalizedClassNames",get:function(){if(this.$domNode){var e="class";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,o.trim().replace(/ +/," ").split(" ").sort().join(" ")):n.is("[class]")&&n.removeAttr(e)}))}return this}},{key:"normalizedStyles",get:function(){if(this.$domNode){var e="style";this.$domNode.find("*").addBack().each((function(r,t){var n=(0,l.$)(t),o=n.attr(e);o?n.attr(e,(0,c.compressStyleValue)((0,c.compressStyleValue)(o).split(";").sort().map((function(e){return e.trim()})).join(";"))):n.is("[style]")&&n.removeAttr(e)}))}return this}},{key:"style",get:function(){var e={},r=this.$domNode;if(null!=r&&r.length){var t,n;if(null!=(t=l.$.global.window)&&t.getComputedStyle){if("length"in(n=l.$.global.window.getComputedStyle(r[0],null)))for(var o=0;o<n.length;o+=1){var i=n[o];e[(0,c.delimitedToCamelCase)(i)]=n.getPropertyValue(i)}else for(var a=0,s=Object.entries(n);a<s.length;a++){var u=s[a],f=u[0],_=u[1];e[(0,c.delimitedToCamelCase)(f)]=_||n.getPropertyValue(f)}return e}n=r[0].style;for(var p=0,d=Object.entries(n);p<d.length;p++){var v=d[p],b=v[0],y=v[1];"function"!=typeof y&&(e[b]=y)}}return e}},{key:"text",get:function(){return this.$domNode?this.$domNode.clone().children().remove().end().text():""}}])}();d._defaultOptions={domNodes:{hideJavaScriptEnabled:".tools-hidden-on-javascript-enabled",showJavaScriptEnabled:".tools-visible-on-javascript-enabled"},domNodeSelectorInfix:"",domNodeSelectorPrefix:"body",name:"Tools"};r.default=d},function(e){if(void 0===__WEBPACK_EXTERNAL_MODULE__12__){var r=new Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}e.exports=__WEBPACK_EXTERNAL_MODULE__12__},function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__13__},,,,,,,function(e,r,t){t.r(r),t.d(r,{debounce:function(){return i},timeout:function(){return a}});var n=t(2),o=t(1),i=function(e,r){void 0===r&&(r=600);for(var t=arguments.length,n=new Array(t>2?t-2:0),o=2;o<t;o++)n[o-2]=arguments[o];var i,l,s=new Promise((function(e){l=e}));return function(){for(var t,o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];return u=u.concat(n),null==(t=i)||t.clear(),i=a((function(){l(e.apply(void 0,u)),s=new Promise((function(e){l=e}))}),r),s}},a=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];for(var i,a,l=n.NOOP,s=0,u=!1,c=0,f=r;c<f.length;c++){var _=f[c];"number"!=typeof _||isNaN(_)?"boolean"==typeof _?u=_:(0,o.isFunction)(_)&&(l=_):s=_}var p=new Promise((function(e,r){i=r,a=e})),d=function(){var e;(e=l).call.apply(e,[p].concat(r)),a(!1)},v=2147483647;if(s<=v)p.timeoutID=setTimeout(d,s);else{var b=Math.floor(s/v),y=s%v,m=function(){b>0?(b-=1,p.timeoutID=setTimeout(m,v)):p.timeoutID=setTimeout(d,y)};m()}return p.clear=function(){Object.prototype.hasOwnProperty.call(p,"timeoutID")&&(clearTimeout(p.timeoutID),(u?i:a)(!0))},p}}],__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var t=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](t,t.exports,__webpack_require__),t.loaded=!0,t.exports}__webpack_require__.c=__webpack_module_cache__,__webpack_require__.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(r,{a:r}),r},__webpack_require__.d=function(e,r){for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(20);return __webpack_exports__}()}));
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r();else if("function"==typeof define&&define.amd)define([],r);else{var n=r();for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,(function(){return function(){var __webpack_modules__={1:function(e,r,n){n.d(r,{NOOP:function(){return c}});var t,o,u=n(5);e=n.hmd(e);var i="undefined"==typeof globalThis?void 0===window?void 0===n.g?e:Object.prototype.hasOwnProperty.call(n.g,"window")?n.g.window:n.g:window:globalThis;i.fetch=i.fetch?i.fetch.bind(i):null!==(t=null==(o=(0,u.optionalRequire)("node-fetch"))?void 0:o.default)&&void 0!==t?t:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return u.currentImport?(0,u.currentImport)("node-fetch").then((function(e){var n;return(n=e).default.apply(n,r)})):null};var c=function(){}},4:function(e,r,n){n.d(r,{isFunction:function(){return t}});var t=function(e){return Boolean(e)&&["[object AsyncFunction]","[object Function]"].includes({}.toString.call(e))}},5:function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{currentImport:function(){return currentImport},optionalRequire:function(){return optionalRequire}});var currentRequire=eval("typeof require === 'undefined' ? null : require"),currentOptionalImport=null;try{currentOptionalImport=eval("typeof import === 'undefined' ? null : import")}catch(e){}var currentImport=currentOptionalImport,optionalRequire=function(e){try{return currentRequire?currentRequire(e):null}catch(e){return null}},clearRequireCache=function(e){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c);for(var r={},n=0,t=Object.entries(e);n<t.length;n++){var o=t[n],u=o[0],i=o[1];r[u]=i,delete e[u]}return r},restoreRequireCache=function(e,r){void 0===e&&(e=(null==currentRequire?void 0:currentRequire.cache)||__webpack_require__.c),clearRequireCache();for(var n=0,t=Object.entries(r);n<t.length;n++){var o=t[n],u=o[0],i=o[1];e[u]=i}},isolatedRequire=function(e,r){void 0===r&&(r=currentRequire||__webpack_require__(6));var n=clearRequireCache(r.cache);try{return r(e)}catch(e){throw e}finally{restoreRequireCache(r.cache,n)}}},15:function(e,r,n){n.r(r),n.d(r,{debounce:function(){return u},timeout:function(){return i}});var t=n(1),o=n(4),u=function(e,r){void 0===r&&(r=600);for(var n=arguments.length,t=new Array(n>2?n-2:0),o=2;o<n;o++)t[o-2]=arguments[o];var u,c,a=new Promise((function(e){c=e}));return function(){for(var n,o=arguments.length,_=new Array(o),l=0;l<o;l++)_[l]=arguments[l];return _=_.concat(t),null==(n=u)||n.clear(),u=i((function(){c(e.apply(void 0,_)),a=new Promise((function(e){c=e}))}),r),a}},i=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var u,i,c=t.NOOP,a=0,_=!1,l=0,f=r;l<f.length;l++){var p=f[l];"number"!=typeof p||isNaN(p)?"boolean"==typeof p?_=p:(0,o.isFunction)(p)&&(c=p):a=p}var d=new Promise((function(e,r){u=r,i=e})),s=function(){var e;(e=c).call.apply(e,[d].concat(r)),i(!1)},m=2147483647;if(a<=m)d.timeoutID=setTimeout(s,a);else{var b=Math.floor(a/m),v=a%m,w=function(){b>0?(b-=1,d.timeoutID=setTimeout(w,m)):d.timeoutID=setTimeout(s,v)};w()}return d.clear=function(){Object.prototype.hasOwnProperty.call(d,"timeoutID")&&(clearTimeout(d.timeoutID),(_?u:i)(!0))},d}},6:function(e){function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=function(){return[]},r.resolve=r,r.id=6,e.exports=r}},__webpack_module_cache__={};function __webpack_require__(e){var r=__webpack_module_cache__[e];if(void 0!==r)return r.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.c=__webpack_module_cache__,__webpack_require__.d=function(e,r){for(var n in r)__webpack_require__.o(r,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(15);return __webpack_exports__}()}));
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clientnode",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1360",
|
|
4
4
|
"description": "upgrade to object orientated rock solid plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"client",
|
|
7
7
|
"tools",
|
|
8
8
|
"node",
|
|
9
9
|
"polymorph",
|
|
10
|
-
"
|
|
10
|
+
"utility"
|
|
11
11
|
],
|
|
12
12
|
"homepage": "https://torben.website/clientnode",
|
|
13
13
|
"bugs": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"exports": {
|
|
20
20
|
".": "./dist/index.js",
|
|
21
21
|
"./dist/*": "./dist/*",
|
|
22
|
-
"./property-types": "./dist/property-types",
|
|
23
|
-
"./test-helper": "./dist/test-helper"
|
|
22
|
+
"./property-types": "./dist/property-types.js",
|
|
23
|
+
"./test-helper": "./dist/test-helper.js"
|
|
24
24
|
},
|
|
25
25
|
"typesVersions": {
|
|
26
26
|
"*": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "yarn build:types; yarn build:plain",
|
|
49
|
-
"build:alternate": "command='babel --plugins @babel/plugin-proposal-class-properties,@babel/plugin-transform-runtime --presets @babel/preset-env,@babel/preset-typescript --source-maps inline --out-file'
|
|
49
|
+
"build:alternate": "command='node_modules/.bin/babel --plugins @babel/plugin-proposal-class-properties,@babel/plugin-transform-runtime --presets @babel/preset-env,@babel/preset-typescript --source-maps inline --out-file'; for name in array cli cookie constants context data-transfer datetime filesystem function index indicators Logger Lock number object process property-types require scope Semaphore string type utility; do $command \"dist/${name}.js\" \"src/${name}.ts\"; done; yarn make:executable",
|
|
50
50
|
"build:bundle": "yarn build:types; yarn build:bundle:plain",
|
|
51
51
|
"build:bundle:compatible": "yarn build:types; weboptimizer build '{__reference__: [\"target:bundle\", \"target:compatible\"]}'",
|
|
52
52
|
"build:bundle:plain": "weboptimizer build '{__reference__: \"target:bundle\"}'",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"clear": "weboptimizer clear",
|
|
58
58
|
"document": "weboptimizer document",
|
|
59
59
|
"lint": "weboptimizer lint",
|
|
60
|
-
"make:executable": "node --eval \"fs.chmodSync('index.js', '700')\"",
|
|
60
|
+
"make:executable": "node --eval \"fs.chmodSync('dist/index.js', '700')\"",
|
|
61
61
|
"prepare": "if ! yarn build; then echo You should rerun install procedure to resolve dependency cycle. && yarn build:alternate; fi",
|
|
62
62
|
"serve": "weboptimizer serve",
|
|
63
63
|
"start": "yarn serve",
|
|
@@ -79,33 +79,30 @@
|
|
|
79
79
|
"@types/ejs": "^3.1.5",
|
|
80
80
|
"@types/html-minifier": "^4.0.6",
|
|
81
81
|
"@types/imagemin": "^9.0.1",
|
|
82
|
-
"@types/jquery": "^4.0.0",
|
|
83
82
|
"@types/node": "^25.5.0",
|
|
84
83
|
"@types/prop-types": "^15.7.15",
|
|
85
84
|
"@types/webpack-env": "^1.18.8",
|
|
86
|
-
"@typescript-eslint/eslint-plugin": "^8.57.
|
|
87
|
-
"@typescript-eslint/parser": "^8.57.
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
86
|
+
"@typescript-eslint/parser": "^8.57.2",
|
|
88
87
|
"clientnode": "workspace:.",
|
|
89
88
|
"documentation-website": "^1.0.401",
|
|
90
|
-
"eslint": "^10.0
|
|
89
|
+
"eslint": "^10.1.0",
|
|
91
90
|
"eslint-config-google": "^0.14.0",
|
|
92
91
|
"eslint-plugin-jsdoc": "^62.8.0",
|
|
93
92
|
"favicons-webpack-plugin": "^6.0.1",
|
|
94
93
|
"image-minimizer-webpack-plugin": "^5.0.0",
|
|
95
94
|
"jest": "^30.3.0",
|
|
96
|
-
"jquery": "^4.0.0",
|
|
97
95
|
"jsdoc": "^4.0.5",
|
|
98
96
|
"node-fetch": "^3.3.2",
|
|
99
97
|
"prop-types": "^15.8.1",
|
|
100
98
|
"rimraf": "^6.1.3",
|
|
101
|
-
"typescript-eslint": "^8.57.
|
|
102
|
-
"weboptimizer": "^3.0.
|
|
99
|
+
"typescript-eslint": "^8.57.2",
|
|
100
|
+
"weboptimizer": "^3.0.11",
|
|
103
101
|
"webpack-dev-server": "^5.2.3"
|
|
104
102
|
},
|
|
105
103
|
"peerDependencies": {
|
|
106
104
|
"@babel/runtime": "*",
|
|
107
105
|
"@types/prop-types": "*",
|
|
108
|
-
"jquery": "*",
|
|
109
106
|
"node-fetch": "*",
|
|
110
107
|
"prop-types": "*"
|
|
111
108
|
},
|
|
@@ -116,9 +113,6 @@
|
|
|
116
113
|
"@types/prop-types": {
|
|
117
114
|
"optional": true
|
|
118
115
|
},
|
|
119
|
-
"jquery": {
|
|
120
|
-
"optional": true
|
|
121
|
-
},
|
|
122
116
|
"node-fetch": {
|
|
123
117
|
"optional": true
|
|
124
118
|
},
|
|
@@ -179,11 +173,10 @@
|
|
|
179
173
|
"module": {
|
|
180
174
|
"aliases": {
|
|
181
175
|
"#": "Ensure that dependent modules uses latest clientnode version.",
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"formdata-polyfill/esm.min.js$": "formdata-polyfill"
|
|
186
|
-
"jquery$": "jquery/dist/jquery.min"
|
|
176
|
+
"clientnode$": "../../src/index",
|
|
177
|
+
"clientnode/property-types$": "../../src/property-types",
|
|
178
|
+
"clientnode/type$": "../../src/type",
|
|
179
|
+
"formdata-polyfill/esm.min.js$": "formdata-polyfill"
|
|
187
180
|
},
|
|
188
181
|
"optimizer": {
|
|
189
182
|
"babelMinify": {
|
package/readme.md
CHANGED
|
@@ -99,11 +99,6 @@ after needed dependencies:
|
|
|
99
99
|
-->
|
|
100
100
|
|
|
101
101
|
```HTML
|
|
102
|
-
<script
|
|
103
|
-
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
|
104
|
-
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
|
105
|
-
crossorigin="anonymous"
|
|
106
|
-
></script>
|
|
107
102
|
<!--Inject downloaded file:
|
|
108
103
|
<script src="index.js"></script>
|
|
109
104
|
-->
|
package/dist/Tools.d.ts
DELETED
|
@@ -1,238 +0,0 @@
|
|
|
1
|
-
import { $DomNodes, $T, Mapping, Options, ParametersExceptFirst, RecursivePartial, RelativePosition } from './type';
|
|
2
|
-
export declare let JAVASCRIPT_DEPENDENT_CONTENT_HANDLED: boolean;
|
|
3
|
-
/**
|
|
4
|
-
* This plugin provides such interface logic like generic controller logic for
|
|
5
|
-
* integrating plugins into $, mutual exclusion for dependent gui elements,
|
|
6
|
-
* logging additional string, array or function handling. A set of helper
|
|
7
|
-
* functions to parse option objects dom trees or handle events is also
|
|
8
|
-
* provided.
|
|
9
|
-
* @property _defaultOptions - Static fallback options if not overwritten by
|
|
10
|
-
* the options given to the constructor method.
|
|
11
|
-
* @property _defaultOptions.logging {boolean} - Static indicator whether
|
|
12
|
-
* logging should be active.
|
|
13
|
-
* @property _defaultOptions.domNodeSelectorInfix {string} - Static selector
|
|
14
|
-
* infix for all needed dom nodes.
|
|
15
|
-
* @property _defaultOptions.domNodeSelectorPrefix {string} - Static selector
|
|
16
|
-
* prefix for all needed dom nodes.
|
|
17
|
-
* @property _defaultOptions.domNodes {Object.<string, string>} - Static
|
|
18
|
-
* mapping of names to needed dom nodes referenced by their selector.
|
|
19
|
-
* @property _defaultOptions.domNodes.hideJavaScriptEnabled {string} - Static
|
|
20
|
-
* selector to dom nodes which should be hidden if javaScript is available.
|
|
21
|
-
* @property _defaultOptions.domNodes.showJavaScriptEnabled {string} - Static
|
|
22
|
-
* selector to dom nodes which should be visible if javaScript is available.
|
|
23
|
-
* @property $domNode - $-extended dom node if one was given to the constructor
|
|
24
|
-
* method.
|
|
25
|
-
* @property options - Options given to the constructor.
|
|
26
|
-
*/
|
|
27
|
-
export declare class Tools<TElement = HTMLElement> {
|
|
28
|
-
static _defaultOptions: Partial<Options>;
|
|
29
|
-
$domNode: null | $T<TElement>;
|
|
30
|
-
options: Options;
|
|
31
|
-
/**
|
|
32
|
-
* Triggered if current object is created via the "new" keyword. The dom
|
|
33
|
-
* node selector prefix enforces to not globally select any dom nodes which
|
|
34
|
-
* aren't in the expected scope of this plugin. "{1}" will be automatically
|
|
35
|
-
* replaced with this plugin name suffix ("tools"). You don't have to use
|
|
36
|
-
* "{1}" but it can help you to write code which is more reconcilable with
|
|
37
|
-
* the dry concept.
|
|
38
|
-
* @param $domNode - $-extended dom node to use as reference in various
|
|
39
|
-
* methods.
|
|
40
|
-
*/
|
|
41
|
-
constructor($domNode?: $T<TElement>);
|
|
42
|
-
/**
|
|
43
|
-
* This method could be overwritten normally. It acts like a destructor.
|
|
44
|
-
* @returns Returns the current instance.
|
|
45
|
-
*/
|
|
46
|
-
destructor(): this;
|
|
47
|
-
/**
|
|
48
|
-
* This method should be overwritten normally. It is triggered if current
|
|
49
|
-
* object was created via the "new" keyword and is called now.
|
|
50
|
-
* @param options - An options object.
|
|
51
|
-
* @returns Returns the current instance.
|
|
52
|
-
*/
|
|
53
|
-
initialize<R = this>(options?: RecursivePartial<Options>): R;
|
|
54
|
-
/**
|
|
55
|
-
* Defines a generic controller for dom node aware plugins.
|
|
56
|
-
* @param object - The object or class to control. If "object" is a class
|
|
57
|
-
* an instance will be generated.
|
|
58
|
-
* @param parameters - The initially given arguments object.
|
|
59
|
-
* @param $domNode - Optionally a $-extended dom node to use as reference.
|
|
60
|
-
* @returns Returns whatever the initializer method returns.
|
|
61
|
-
*/
|
|
62
|
-
static controller<TElement = HTMLElement>(object: unknown, parameters: unknown, $domNode?: null | $T<TElement>): unknown;
|
|
63
|
-
/**
|
|
64
|
-
* Normalizes class name order of current dom node.
|
|
65
|
-
* @returns Current instance.
|
|
66
|
-
*/
|
|
67
|
-
get normalizedClassNames(): this;
|
|
68
|
-
/**
|
|
69
|
-
* Normalizes style attributes order of current dom node.
|
|
70
|
-
* @returns Returns current instance.
|
|
71
|
-
*/
|
|
72
|
-
get normalizedStyles(): this;
|
|
73
|
-
/**
|
|
74
|
-
* Retrieves a mapping of computed style attributes to their corresponding
|
|
75
|
-
* values.
|
|
76
|
-
* @returns The computed style mapping.
|
|
77
|
-
*/
|
|
78
|
-
get style(): Mapping<number | string>;
|
|
79
|
-
/**
|
|
80
|
-
* Get text content of current element without it children's text contents.
|
|
81
|
-
* @returns The text string.
|
|
82
|
-
*/
|
|
83
|
-
get text(): string;
|
|
84
|
-
/**
|
|
85
|
-
* Checks whether given html or text strings are equal.
|
|
86
|
-
* @param first - First html, selector to dom node or text to compare.
|
|
87
|
-
* @param second - Second html, selector to dom node or text to compare.
|
|
88
|
-
* @param forceHTMLString - Indicates whether given contents are
|
|
89
|
-
* interpreted as html string (otherwise an automatic detection will be
|
|
90
|
-
* triggered).
|
|
91
|
-
* @returns Returns true if both dom representations are equivalent.
|
|
92
|
-
*/
|
|
93
|
-
static isEquivalentDOM(first: Node | string | $T | $T<Node>, second: Node | string | $T | $T<Node>, forceHTMLString?: boolean): boolean;
|
|
94
|
-
/**
|
|
95
|
-
* Determines where current dom node is relative to current view port
|
|
96
|
-
* position.
|
|
97
|
-
* @param givenDelta - Allows deltas for "top", "left", "bottom" and
|
|
98
|
-
* "right" for determining positions.
|
|
99
|
-
* @param givenDelta.bottom - Bottom delta.
|
|
100
|
-
* @param givenDelta.left - Left delta.
|
|
101
|
-
* @param givenDelta.right - Right delta.
|
|
102
|
-
* @param givenDelta.top - Top delta.
|
|
103
|
-
* @returns Returns one of "above", "left", "below", "right" or "in".
|
|
104
|
-
*/
|
|
105
|
-
getPositionRelativeToViewport(givenDelta?: {
|
|
106
|
-
bottom?: number;
|
|
107
|
-
left?: number;
|
|
108
|
-
right?: number;
|
|
109
|
-
top?: number;
|
|
110
|
-
}): RelativePosition;
|
|
111
|
-
/**
|
|
112
|
-
* Generates a directive name corresponding selector string.
|
|
113
|
-
* @param directiveName - The directive name.
|
|
114
|
-
* @returns Returns generated selector.
|
|
115
|
-
*/
|
|
116
|
-
static generateDirectiveSelector(directiveName: string): string;
|
|
117
|
-
/**
|
|
118
|
-
* Removes a directive name corresponding class or attribute.
|
|
119
|
-
* @param directiveName - The directive name.
|
|
120
|
-
* @returns Returns current dom node.
|
|
121
|
-
*/
|
|
122
|
-
removeDirective(directiveName: string): null | $T<TElement>;
|
|
123
|
-
/**
|
|
124
|
-
* Hide or show all marked nodes which should be displayed depending on
|
|
125
|
-
* javascript availability.
|
|
126
|
-
*/
|
|
127
|
-
renderJavaScriptDependentVisibility(): void;
|
|
128
|
-
/**
|
|
129
|
-
* Determines a normalized camel case directive name representation.
|
|
130
|
-
* @param directiveName - The directive name.
|
|
131
|
-
* @returns Returns the corresponding name.
|
|
132
|
-
*/
|
|
133
|
-
static getNormalizedDirectiveName(directiveName: string): string;
|
|
134
|
-
/**
|
|
135
|
-
* Determines a directive attribute value.
|
|
136
|
-
* @param directiveName - The directive name.
|
|
137
|
-
* @returns Returns the corresponding attribute value or "null" if no
|
|
138
|
-
* attribute value exists.
|
|
139
|
-
*/
|
|
140
|
-
getDirectiveValue(directiveName: string): null | string;
|
|
141
|
-
/**
|
|
142
|
-
* Removes a selector prefix from a given selector. These methods search in
|
|
143
|
-
* the options object for a given "domNodeSelectorPrefix".
|
|
144
|
-
* @param domNodeSelector - The dom node selector to slice.
|
|
145
|
-
* @returns Returns the sliced selector.
|
|
146
|
-
*/
|
|
147
|
-
sliceDomNodeSelectorPrefix(domNodeSelector: string): string;
|
|
148
|
-
/**
|
|
149
|
-
* Determines the dom node name of a given dom node string.
|
|
150
|
-
* @param domNodeSelector - A given to dom node selector to determine its
|
|
151
|
-
* name.
|
|
152
|
-
* @returns Returns The dom node name.
|
|
153
|
-
* @example
|
|
154
|
-
* // returns 'div'
|
|
155
|
-
* $.Tools.getDomNodeName('<div>')
|
|
156
|
-
* @example
|
|
157
|
-
* // returns 'div'
|
|
158
|
-
* $.Tools.getDomNodeName('<div></div>')
|
|
159
|
-
* @example
|
|
160
|
-
* // returns 'br'
|
|
161
|
-
* $.Tools.getDomNodeName('<br/>')
|
|
162
|
-
*/
|
|
163
|
-
static getDomNodeName(domNodeSelector: string): null | string;
|
|
164
|
-
/**
|
|
165
|
-
* Converts an object of dom selectors to an array of $ wrapped dom nodes.
|
|
166
|
-
* Note if selector description as one of "class" or "id" as suffix element
|
|
167
|
-
* will be ignored.
|
|
168
|
-
* @param domNodeSelectors - An object with dom node selectors.
|
|
169
|
-
* @param wrapperDomNode - A dom node to be the parent or wrapper of all
|
|
170
|
-
* retrieved dom nodes.
|
|
171
|
-
* @returns Returns All $ wrapped dom nodes corresponding to given
|
|
172
|
-
* selectors.
|
|
173
|
-
*/
|
|
174
|
-
grabDomNodes(domNodeSelectors: Mapping, wrapperDomNode?: Node | null | string | $T<Node>): $DomNodes;
|
|
175
|
-
/**
|
|
176
|
-
* Searches for internal event handler methods and runs them by default. In
|
|
177
|
-
* addition, this method searches for a given event method by the options
|
|
178
|
-
* object. Additional arguments are forwarded to respective event
|
|
179
|
-
* functions.
|
|
180
|
-
* @param eventName - An event name.
|
|
181
|
-
* @param callOnlyOptionsMethod - Prevents from trying to call an internal
|
|
182
|
-
* event handler.
|
|
183
|
-
* @param scope - The scope from where the given event handler should be
|
|
184
|
-
* called.
|
|
185
|
-
* @param additionalArguments - Additional arguments to forward to
|
|
186
|
-
* corresponding event handlers.
|
|
187
|
-
* @returns - Returns result of an options event handler (when called) and
|
|
188
|
-
* "true" otherwise.
|
|
189
|
-
*/
|
|
190
|
-
fireEvent(eventName: string, callOnlyOptionsMethod?: boolean, scope?: unknown, ...additionalArguments: Array<unknown>): unknown;
|
|
191
|
-
/**
|
|
192
|
-
* A wrapper method for "$.on()". It sets current plugin name as event
|
|
193
|
-
* scope if no scope is given. Given arguments are modified and passed
|
|
194
|
-
* through "$.on()".
|
|
195
|
-
* @param parameters - Parameter to forward.
|
|
196
|
-
* @returns Returns $'s grabbed dom node.
|
|
197
|
-
*/
|
|
198
|
-
on<TElement = HTMLElement>(...parameters: Array<unknown>): $T<TElement>;
|
|
199
|
-
/**
|
|
200
|
-
* A wrapper method fo "$.off()". It sets current plugin name as event
|
|
201
|
-
* scope if no scope is given. Given arguments are modified and passed
|
|
202
|
-
* through "$.off()".
|
|
203
|
-
* @param parameters - Parameter to forward.
|
|
204
|
-
* @returns Returns $'s grabbed dom node.
|
|
205
|
-
*/
|
|
206
|
-
off<TElement = HTMLElement>(...parameters: Array<unknown>): $T<TElement>;
|
|
207
|
-
/**
|
|
208
|
-
* Helper method for attach/remove event handler methods.
|
|
209
|
-
* @param parameters - Arguments object given to methods like "on()" or
|
|
210
|
-
* "off()".
|
|
211
|
-
* @param removeEvent - Indicates if handler should be attached or removed.
|
|
212
|
-
* @param eventFunctionName - Name of function to wrap.
|
|
213
|
-
* @returns Returns $'s wrapped dom node.
|
|
214
|
-
*/
|
|
215
|
-
_bindEventHelper: <TElement_1 = HTMLElement>(parameters: Array<unknown>, removeEvent?: boolean, eventFunctionName?: string) => $T<TElement_1>;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Dom bound version of Tools class.
|
|
219
|
-
*/
|
|
220
|
-
export declare class BoundTools<TElement = HTMLElement> extends Tools<TElement> {
|
|
221
|
-
$domNode: $T<TElement>;
|
|
222
|
-
readonly self: typeof BoundTools;
|
|
223
|
-
/**
|
|
224
|
-
* This method should be overwritten normally. It is triggered if current
|
|
225
|
-
* object is created via the "new" keyword. The dom node selector prefix
|
|
226
|
-
* enforces to not globally select any dom nodes which aren't in the
|
|
227
|
-
* expected scope of this plugin. "{1}" will be automatically replaced with
|
|
228
|
-
* this plugin name suffix ("tools"). You don't have to use "{1}" but it
|
|
229
|
-
* can help you to write code which is more reconcilable with the dry
|
|
230
|
-
* concept.
|
|
231
|
-
* @param $domNode - $-extended dom node to use as reference in various
|
|
232
|
-
* methods.
|
|
233
|
-
* @param additionalParameters - Additional parameters to call super method
|
|
234
|
-
* with.
|
|
235
|
-
*/
|
|
236
|
-
constructor($domNode: $T<TElement>, ...additionalParameters: ParametersExceptFirst<Tools['constructor']>);
|
|
237
|
-
}
|
|
238
|
-
export default Tools;
|