From a68256f3ba088c520a9d26f0e8b7394eb561b016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Fri, 11 Sep 2020 09:27:21 +0200 Subject: [PATCH] update dev-dependencies --- dist/base.js | 2 +- dist/component/iterator.js | 2 +- dist/component/sense.js | 2 +- dist/dom/collection.js | 2 +- dist/dom/element.js | 2 +- dist/dom/element.js.map | 2 +- dist/dom/element/appear.js | 2 +- dist/dom/element/resize.js | 2 +- dist/dom/event.js | 2 +- dist/emitter.js | 2 +- dist/function/debounce.js | 2 +- dist/function/descriptor/generate.js | 2 +- dist/function/merge.js | 2 +- dist/function/property/unify.js | 2 +- dist/function/string/lcfirst.js | 2 +- dist/function/string/ucfirst.js | 2 +- dist/hooks/css.js | 2 +- dist/hooks/event.js | 2 +- dist/polyfill/window/matchmedia.js | 2 +- dist/support/css/property.js | 2 +- dist/support/method.js | 2 +- dist/support/prefix.js | 2 +- dist/support/property.js | 2 +- dist/support/test/capability/datauri.js | 2 +- dist/support/test/capability/touch.js | 2 +- dist/support/test/css/borderradius.js | 2 +- dist/support/test/css/boxshadow.js | 2 +- dist/support/test/css/rem.js | 2 +- dist/support/test/css/rgba.js | 2 +- dist/support/test/css/textshadow.js | 2 +- dist/support/test/css/transform.js | 2 +- dist/support/test/css/transform/2d.js | 2 +- dist/support/test/css/transform/3d.js | 2 +- dist/support/test/css/transition.js | 2 +- dist/support/test/dom/listener/passive.js | 2 +- dist/support/test/element/canvas.js | 2 +- dist/support/test/element/canvas/todataurl.js | 2 +- .../test/element/canvas/todataurl/jpeg.js | 2 +- .../test/element/canvas/todataurl/png.js | 2 +- .../test/element/canvas/todataurl/webp.js | 2 +- dist/support/test/element/svg.js | 2 +- dist/support/test/element/video.js | 2 +- dist/support/test/element/video/mp4.js | 2 +- dist/support/test/element/video/ogg.js | 2 +- dist/support/test/element/video/webm.js | 2 +- dist/task.js | 2 +- dist/transport/xhr.js | 4 +-- dist/transport/xhr.js.map | 2 +- dist/url.js | 2 +- package-lock.json | 30 +++++++++---------- package.json | 2 +- src/dom/element.js | 2 +- 52 files changed, 67 insertions(+), 67 deletions(-) diff --git a/dist/base.js b/dist/base.js index b18ecc4..100b8d8 100644 --- a/dist/base.js +++ b/dist/base.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";var e=Object,r=e.create,o=e.getOwnPropertyNames,n=e.getOwnPropertyDescriptor,p=e.defineProperty;function i(t,e,r,o){return{__proto__:null,value:t,enumerable:!!o,configurable:!!r,writable:!!e}}function c(t,e,r,o,n){p(this,t,new i(e,r,o,n))}c.call(Object.prototype,"define",c),Function.prototype.define("extends",(function(t){for(var e,p=this,c=p.prototype,u=o(c),a={constructor:new i(p,!0,!0)},y=0;(e=u[y])&&!a[e];y++)a[e]=n(c,e);try{p.prototype=r(t.prototype||t,a)}catch(t){}if(p.prototype===c)throw new TypeError("Unable to extend, prototype is not writable");return p}))}(); //# sourceMappingURL=base.js.map diff --git a/dist/component/iterator.js b/dist/component/iterator.js index de20274..8e46769 100644 --- a/dist/component/iterator.js +++ b/dist/component/iterator.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["/demand/weakmap","../emitter","../function/merge"],(function(t,e,n){var i=new t;function r(t,e){var n;if((n=i.get(t))&&n.data)return n.data[e]}function s(t,r){var a=e.call(this);return i.set(a,{settings:n({},s.settings,r),index:null,data:null}),t&&a.setData(t),a}return s.prototype={get length(){return r(this,"length")||0},get index(){return function(t,e){var n;if(n=i.get(t))return n.index}(this)},get item(){return r(this,this.index)},setData:function(t){var e,n,r=this;return"object"==typeof t&&t.length&&(n=(e=i.get(r)).settings,e.data=t,null!==n.initial&&r.seek(n.initial)),r},seek:function(t){var e=i.get(this);return(t=parseInt(t,10))!==e.index&&"undefined"!=typeof e.data[t]&&(e.index=t),this},first:function(){return this.seek(0)},last:function(){return this.seek(this.length-1)},previous:function(){var t,e=this,n=i.get(e).settings;return t=!0===n.loop?(e.index-1)%e.length:e.index-1,t=!0===n.loop&&t<0?e.length+t:t,e.seek(t)},next:function(){var t,e=this;return t=!0===i.get(e).settings.loop?(e.index+1)%e.length:e.index+1,e.seek(t)}},s.settings={loop:!0,initial:0},s.extends(e)}))}(); //# sourceMappingURL=iterator.js.map diff --git a/dist/component/sense.js b/dist/component/sense.js index 351d93b..8faa395 100644 --- a/dist/component/sense.js +++ b/dist/component/sense.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t){"use strict";provide(["/demand/weakmap","../emitter",t.matchMedia||"../polyfill/window/matchmedia"],(function(t,e,a){var i=new t;function n(t){var n=e.call(this),r=a(t);return i.set(n,r),r.addListener((function(){n.emit(!0===r.matches?"match":"unmatch")})),n}return n.prototype={get matches(){var t=i.get(this);if(t)return t.matches}},n.extends(e)}))}(this); //# sourceMappingURL=sense.js.map diff --git a/dist/dom/collection.js b/dist/dom/collection.js index 3c23b0b..3fcea49 100644 --- a/dist/dom/collection.js +++ b/dist/dom/collection.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(e){"use strict";provide(["/demand/validator/isTypeOf","/demand/validator/isInstanceOf","/demand/descriptor","./element"],(function(t,n,r,i){var s=Array.prototype.slice,l=Object.defineProperty;function o(n){var r,i,l=0;if(t(n,"string"))for(r=n.split(","),n=[],l=0;i=r[l];l++)try{n=n.concat(s.call(e.querySelectorAll(i)))}catch(e){}return n.length&&!Array.isArray(n)&&(n=s.call(n)),Array.isArray(n)||(n=[n]),n}function c(e){for(var t,n=this,r=n.elements,i=s.call(arguments,1),l=0;t=r[l];l++)t[e].apply(t,i);return n}function a(e,t){return(e=n(e,i)?e:new i(e))&&e[t].call(e,u(this.elements)),this}function u(t){for(var n,r=e.createDocumentFragment(),i=0;n=t[i];i++)r.appendChild(n.node);return r}function f(e){var t=this;return l(t,"elements",new r([])),l(t,"nodes",new r([])),e&&t.add(e),t}return f.prototype={get length(){return this.elements.length},get:function(e){return this.elements[e]},add:function(e){var t,r=this,s=0;for(e=o(e);t=e[s];s++)-1===r.nodes.indexOf(t.node||t)&&(t=n(t,i)?t:new i(t),r.elements.push(t),r.nodes.push(t.node));return r},remove:function(e){var t,n,r=this,i=0;for(e=o(e);t=e[i];i++)-1!==(n=r.nodes.indexOf(t.node||t))&&(r.elements.splice(n,1),r.nodes.splice(n,1));return r},each:function(e){for(var t,n=this.elements,r=0;t=n[r];r++)e.call(t,r);return this},setAttribute:function(e,t){return c.call(this,"setAttribute",e,t)},setAttributes:function(e){return c.call(this,"setAttributes",e)},removeAttribute:function(e){return c.call(this,"removeAttribute",e)},removeAttributes:function(e){return c.call(this,"removeAttributes",e)},setStyle:function(e,t){return c.call(this,"setStyle",e,t)},setStyles:function(e){return c.call(this,"setStyles",e)},removeStyle:function(e){return c.call(this,"removeStyle",e)},removeStyles:function(e){return c.call(this,"removeStyles",e)},addClass:function(e){return c.call(this,"addClass",e)},removeClass:function(e){return c.call(this,"removeClass",e)},toggleClass:function(e){return c.call(this,"toggleClass",e)},prependTo:function(e){return a.call(this,e,"prepend")},appendTo:function(e){return a.call(this,e,"append")},insertBefore:function(e){return(e=n(e,i)?e:new i(e))&&(e=e.node)&&e.parentNode.insertBefore(u(this.elements),e),this},insertAfter:function(e){var t,r;return(e=n(e,i)?e:new i(e))&&(e=e.node)&&(r=u(this.elements),(t=e.nextSibling)?e.parentNode.insertBefore(r,t):e.parentNode.appendChild(r)),this},replace:function(e){for(var t,n=this.elements,r=0;t=n[r];r++)0===r?t.replace(e):t.insertAfter(n[r-1]);return this},detach:function(){for(var e,t=this.elements,n=0;e=t[n];n++)e.detach();return this},blur:function(){return c.call(this,"blur")},on:function(){return c.apply(this,["on"].concat(s.call(arguments)))},one:function(){return c.apply(this,["one"].concat(s.call(arguments)))},off:function(){return c.apply(this,["off"].concat(s.call(arguments)))},emit:function(){return c.apply(this,["emit"].concat(s.call(arguments)))}},f}))}(document); //# sourceMappingURL=collection.js.map diff --git a/dist/dom/element.js b/dist/dom/element.js index 9f98a90..efa991d 100644 --- a/dist/dom/element.js +++ b/dist/dom/element.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(e,t){"use strict";provide(["/demand/validator/isObject","/demand/validator/isInstanceOf","/demand/validator/isTypeOf","/demand/function/uuid","/demand/function/iterate","/demand/descriptor","./event","../hooks/css","../support/method"],(function(n,r,i,o,s,u,d,a,f){var c=t.body||t.getElementsByTagName("body")[0],l=Array.prototype.concat,h=Array.prototype.slice,p=Object.defineProperty,g=Object.defineProperties,v=t.getElementsByTagName("head")[0],m=null,y="undefined",b="string",S="textContent"in t.createElement("a")?"textContent":"innerText",C=f("matches",c)||f("matchesSelector",c),A=/^<(\w+)\s*\/>$/,E=/ +/g,T=/^\s*^/,N=i(v.previousElementSibling,y)?function(){for(var e=this;e=e.previousSibling;)if(1===e.nodeType)return e}:function(){return this.previousElementSibling},w=i(v.nextElementSibling,y)?function(){for(var e=this;e=e.nextSibling;)if(1===e.nodeType)return e}:function(){return this.nextElementSibling},B={},L=!1;function x(e){return L||"boolean"==typeof e?e:e&&e.capture}function P(n,r,i){var o,s=this;(o=t.createEvent("CustomEvent")).initCustomEvent(n,"load"!==n&&"resize"!==n,"load"!==n&&"resize"!==n,r),i&&(o.uuid=i,o.isDelegate=!0),s.node.dispatchEvent(o),s.node===e||o.defaultPrevented||"function"!=typeof s.node[n]||s.node[n]()}function j(e){if("string"==typeof e)try{e=A.test(e)?t.createElement(e.replace(A,"$1").toLowerCase()):t.querySelector(e)}catch(t){e=m}if(!e)throw new Error("Element could not be resolved");return e}function H(e){return l.apply([],h.call(e)).join(" ").split(E)}function O(e,t){for(var n,r=0;n=e.path[r];r++){if(n[C]&&n[C](t))return e.currentTarget=n,!0;if(n===e.currentTarget)break}return!1}function I(e,t,n,r,i){var o=!(r&&1===r),s=!!o&&[];for(i=!o&&i;e=t.call(e);)if(1===e.nodeType){if(!n||e[C](n)){if(!o)return e;s.push(e)}if(i)break}return s}function R(e,t,n,r){var i=!(n&&1===n),o=!!i&&[];for(r=!i&&r;e=e.parentNode;)if(1===e.nodeType){if(!t||e[C](t)){if(!i)return e;o.push(e)}if(r)break}return o}function k(t,r,i){var s,d=this;return(s=(t=j(t)).uuid)||(s=o(),B[s]={},p(t,"uuid",new u(s))),g(d,{uuid:new u(s),type:new u(t===e?"#window":t.nodeName),node:new u(t)}),n(r)&&d.setAttributes(r),n(i)&&d.setStyles(i),d}return function(){var t,n=function(){},r=""+ +new Date;try{t=Object.defineProperty({},"passive",{get:function(){L=!0}}),e.addEventListener(r,n,t),e.removeEventListener(r,n,t)}catch(e){}}(),k.prototype={clone:function(){return new k(this.node.cloneNode(!0))},focus:function(){return this.node.focus(),this},blur:function(){return this.node.blur(),this},getPosition:function(){var e=this.node.getBoundingClientRect();return{left:e.left+c.scrollLeft,top:e.top+c.scrollTop}},getOffset:function(e){var t=this.node,n=e?t.getBoundingClientRect():null;return{left:e?n.left:t.offsetLeft,top:e?n.top:t.offsetTop}},getWidth:function(e){var t,n=this.node,r=n.offsetWidth;return e&&(t=getComputedStyle(n),r+=parseInt(t.marginLeft)+parseInt(t.marginRight)),r},getHeight:function(e){var t,n=this.node,r=n.offsetHeight;return e&&(t=getComputedStyle(n),r+=parseInt(t.marginTop)+parseInt(t.marginBottom)),r},getContent:function(e){var t=this.node;return e?t.innerHTML:t[S]},getAttribute:function(e){if(i(e,b))return this.node.getAttribute(e)},getAttributes:function(){for(var e,t=this,n={},r=H(arguments),i=0;e=r[i];i++)n[e]=t.node.getAttribute(e);return n},getStyle:function(e){if(i(e,b))return a.process("get",this.node,e)},getStyles:function(){for(var e,t=this,n={},r=H(arguments),i=0;e=r[i];i++)n[e]=a.process("get",t.node,e);return n},getSiblingBefore:function(e,t){return I(this.node,N,e,1,t)},getSiblingAfter:function(e,t){return I(this.node,w,e,1,t)},getSiblings:function(e){return this.getSiblingsBefore(e).concat(this.getSiblingsAfter(e))},getSiblingsBefore:function(e){return I(this.node,N,e)},getSiblingsAfter:function(e){return I(this.node,w,e)},getChildren:function(e){var t,n,r,i,o=this.node;if(e)T.test(e)?(t=o.uuid,o.setAttribute("nucleus-uuid",t),e='[nucleus-uuid="'+t+'"] '+e,n=h.call(o.parentNode.querySelectorAll(e)),o.removeAttribute("nucleus-uuid")):n=h.call(o.querySelectorAll(e));else for(n=[],r=0;i=o.childNodes[r];r++)1===i.nodeType&&n.push(i);return n},getParent:function(e,t){return R(this.node,e,1,t)},getParents:function(e){return R(this.node,e)},hasChild:function(e){var t=this.node;return t!==e&&t.contains(e.node||e)},hasClass:function(e){return!!e&&new RegExp("(?:^|\\s)"+e+"(?:\\s|$)").test(this.node.className)},isVisible:function(){var e=this,t=e.node;return!(t.offsetWidth<=0&&t.offsetHeight<=0||"hidden"===e.getStyle("visibility")||e.getStyle("opacity")<=0)},setContent:function(e,t){var n=this.node;return t?n.innerHTML=e:n[S]=e,this},setAttribute:function(e,t){return i(e,b)&&this.node.setAttribute(e,t),this},setAttributes:function(e){var t=this;return s(e,(function(e,n){t.setAttribute(e,n)})),t},removeAttribute:function(e){return i(e,b)&&this.node.removeAttribute(e),this},removeAttributes:function(){for(var e,t=this,n=H(arguments),r=0;e=n[r];r++)t.removeAttribute(e);return t},setStyle:function(e,t){return i(e,b)&&a.process("set",this.node,e,t),this},setStyles:function(e){var t=this;return s(e,(function(e,n){a.process("set",t.node,e,n)})),t},removeStyle:function(e){return i(e,b)&&this.setStyle(e,""),this},removeStyles:function(){for(var e,t=this,n=H(arguments),r=0;e=n[r];r++)t.setStyle(e,"");return t},addClass:function(e){var t=this;return e&&!t.hasClass(e)&&(t.node.className+=t.node.className?" "+e:e),t},removeClass:function(e){var t=this;return e&&t.hasClass(e)&&(t.node.className=t.node.className.replace(new RegExp("(?:^|\\s)"+e+"(?!\\S)"),"").trim()),t},toggleClass:function(e){var t=this;return e&&(t.hasClass(e)?t.removeClass(e):t.addClass(e)),t},prepend:function(e){var t=this,n=t.node;if(e)try{e=r(e,k)?e.node:j(e),n.firstChild?n.insertBefore(e,n.firstChild):t.append(e)}catch(t){n.insertAdjacentHTML("afterBegin",e)}return t},append:function(e){var t=this.node;if(e)try{t.appendChild(r(e,k)?e.node:j(e))}catch(n){t.insertAdjacentHTML("beforeEnd",e)}return this},prependTo:function(e){var t=this,n=t.node;return e&&((e=e.node||j(e)).firstChild?e.insertBefore(n,e.firstChild):t.appendTo(e)),t},appendTo:function(e){return e&&(e.node||j(e)).appendChild(this.node),this},insertBefore:function(e){var t=this.node;return e&&(e=e.node||j(e)).parentNode.insertBefore(t,e),this},insertAfter:function(e){var t=this,n=t.node;return e&&((e=e.node||j(e)).nextSibling?e.parentNode.insertBefore(n,e.nextSibling):t.appendTo(e.parentNode)),t},replace:function(e){var t=this.node;return e&&(e=e.node||j(e)).parentNode.replaceChild(t,e),this},replaceWith:function(e){var t=this.node;return e&&(e=r(e,k)?e.node:j(e),t.parentNode.replaceChild(e,t)),this},detach:function(){var e=this.node;return e.parentNode&&e.parentNode.removeChild(e),this},on:function(e){var t,n=this,r=4===arguments.length||"string"==typeof arguments[1]?arguments[1]:m,i=4===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],s=x(arguments.length>3?arguments[3]:arguments[2]),u=i.uuid||(i.uuid=o()),a=0;for(e=e.split(E);t=e[a];a++){var f=t+"-"+u,c=function(e){var t;(e=new d(e)).isPropagationStopped||(t=e.delegate,e.uuid=o(),r&&!O(e,r)||i.call(e.currentTarget,e,e.originalEvent.detail),t&&(delete e.delegate,P.call(n,t)))};c.type=t,B[n.uuid][f]=c,n.node.addEventListener(t,c,s)}return n},one:function(e){var t=this,n=5===arguments.length||"string"==typeof arguments[1]?arguments[1]:m,r=5===arguments.length||"function"==typeof arguments[2]?arguments[2]:arguments[1],i=x(arguments.length>3?arguments[3]:arguments[2]),s=!1!==(arguments.length>4?arguments[4]:arguments[3]),u=function(n){t.off(!0===s?n.type:e,u,i),r.call(this,n,n.originalEvent.detail)};return r.uuid=u.uuid=o(),n?t.on(e,n,u,i):t.on(e,u,i),t},off:function(e,t,n){var r,i,o,s=this,u=s.node,d=0;for(n=x(n),e=e.split(" ");r=e[d];d++)(o=(i=t.uuid&&r+"-"+t.uuid||m)&&B[s.uuid][i]||m)?(u.removeEventListener(r,o,n),delete B[s.uuid][i]):u.removeEventListener(r,t,n);return s},emit:function(e,t){return P.call(this,e,t),this}},k}))}(this,document); //# sourceMappingURL=element.js.map diff --git a/dist/dom/element.js.map b/dist/dom/element.js.map index 1fc2c0c..3220689 100644 --- a/dist/dom/element.js.map +++ b/dist/dom/element.js.map @@ -1 +1 @@ -{"version":3,"sources":["dom/element.js"],"names":["global","document","provide","isObject","isInstanceOf","isTypeOf","generateUuid","iterate","Descriptor","Event","hooksCss","supportMethod","documentBody","body","getElementsByTagName","arrayPrototypeConcat","Array","prototype","concat","arrayPrototypeSlice","slice","objectDefineProperty","Object","defineProperty","objectDefineProperties","defineProperties","head","NULL","STRING_UNDEFINED","STRING_STRING","STRING_CONTENTATTRIBUTE","createElement","STRING_MATCHES","regexMatchTag","regexMatchSpaces","regexMatchChildSeclector","previousSibling","previousElementSibling","element","this","nodeType","nextSibling","nextElementSibling","listener","supportsPassiveListener","processOptions","options","capture","emitEvent","type","detail","uuid","event","self","createEvent","initCustomEvent","isDelegate","node","dispatchEvent","defaultPrevented","resolveElement","test","replace","toLowerCase","querySelector","exception","Error","resolveArguments","parameters","apply","call","join","split","matchesDelegate","delegate","pointer","i","path","currentTarget","getSiblings","method","selector","limit","strict","multiple","siblings","push","getParents","parents","parentNode","DomElement","attributes","styles","nodeName","setAttributes","setStyles","noop","Date","get","addEventListener","removeEventListener","error","clone","cloneNode","focus","blur","getPosition","bbox","getBoundingClientRect","left","scrollLeft","top","scrollTop","getOffset","viewport","offsetLeft","offsetTop","getWidth","includeMargin","style","width","offsetWidth","getComputedStyle","parseInt","marginLeft","marginRight","getHeight","height","offsetHeight","marginTop","marginBottom","getContent","getHtml","innerHTML","getAttribute","attribute","getAttributes","result","arguments","getStyle","property","process","getStyles","properties","getSiblingBefore","getSiblingAfter","getSiblingsBefore","getSiblingsAfter","getChildren","matches","match","setAttribute","querySelectorAll","removeAttribute","childNodes","getParent","hasChild","child","contains","hasClass","name","RegExp","className","isVisible","setContent","source","isHtml","value","removeAttributes","setStyle","removeStyle","removeStyles","addClass","removeClass","trim","toggleClass","prepend","target","firstChild","insertBefore","append","insertAdjacentHTML","appendChild","prependTo","appendTo","insertAfter","replaceChild","replaceWith","detach","removeChild","on","events","length","fn","id","handler","delegateTo","isPropagationStopped","originalEvent","one","each","off","emit","data"],"mappings":";CAaC,SAASA,EAAQC,GACjB,aAkqBAC,QAAQ,CAAE,6BAA8B,iCAAkC,6BAA8B,wBAAyB,2BAA4B,qBAAsB,UAAW,eAAgB,sBAhqB9M,SAAoBC,EAAUC,EAAcC,EAAUC,EAAcC,EAASC,EAAYC,EAAOC,EAAUC,GACzG,IACCC,EAA2BX,EAASY,MAAQZ,EAASa,qBAAqB,QAAQ,GAClFC,EAA2BC,MAAMC,UAAUC,OAC3CC,EAA2BH,MAAMC,UAAUG,MAC3CC,EAA2BC,OAAOC,eAClCC,EAA2BF,OAAOG,iBAClCC,EAA2BzB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oBhD,EAAO+I,EAASrJ,UAElCH,EAASU,EAAKF,MAAM+I,IAE3BzI,EAAK2C,oBAAoBhD,EAAO6I,EAAInJ,GAItC,OAAOO,GAERqJ,KAAM,SAAStJ,EAAOuJ,GAKrB,OAFA3J,EAAUsB,KAFC/B,KAEUa,EAAOuJ,GAFjBpK,OAQNmD,KAhqBT,CAoqBEnD,KAAMtC","file":"element.js","sourcesContent":["/**\n * @use /demand/validator/isObject\n * @use /demand/validator/isInstanceOf\n * @use /demand/validator/isTypeOf\n * @use /demand/function/uuid\n * @use /demand/function/iterate\n * @use /demand/descriptor\n *\n * @require ./event\n * @require ../hooks/css\n * @require ../support/method\n */\n\n(function(global, document) {\n\t'use strict';\n\n\tfunction definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Descriptor, Event, hooksCss, supportMethod) {\n\t\tvar //shortcuts\n\t\t\tdocumentBody = document.body || document.getElementsByTagName('body')[0],\n\t\t\tarrayPrototypeConcat = Array.prototype.concat,\n\t\t\tarrayPrototypeSlice = Array.prototype.slice,\n\t\t\tobjectDefineProperty = Object.defineProperty,\n\t\t\tobjectDefineProperties = Object.defineProperties,\n\t\t\thead = document.getElementsByTagName('head')[0],\n\t\t\t// constants\n\t\t\tNULL = null,\n\t\t\tSTRING_UNDEFINED = 'undefined',\n\t\t\tSTRING_STRING = 'string',\n\t\t\tSTRING_CONTENTATTRIBUTE = ('textContent' in document.createElement('a')) ? 'textContent' : 'innerText',\n\t\t\tSTRING_MATCHES = supportMethod('matches', documentBody) || supportMethod('matchesSelector', documentBody),\n\t\t\t// regular expressions\n\t\t\tregexMatchTag = /^<(\\w+)\\s*\\/>$/,\n\t\t\tregexMatchSpaces = / +/g,\n\t\t\tregexMatchChildSeclector = /^\\s*^/,\n\t\t\t// methods\n\t\t\tpreviousSibling = (!isTypeOf(head.previousElementSibling, STRING_UNDEFINED)) ? function previousSibling() { return this.previousElementSibling; } : function previousSibling() { var element = this; while(element = element.previousSibling) { if(element.nodeType === 1 ) { return element; } } },\n\t\t\tnextSibling = (!isTypeOf(head.nextElementSibling, STRING_UNDEFINED)) ? function nextSibling() { return this.nextElementSibling; } : function nextSibling() { var element = this; while(element = element.nextSibling) { if(element.nodeType === 1 ) { return element; } } },\n\t\t\t// flags\n\t\t\t// general storage & objects\n\t\t\tlistener = {},\n\t\t\tsupportsPassiveListener = false;\n\n\t\t(function() {\n\t\t\tvar noop = function() {},\n\t\t\t\tevent = '' + (+new Date()),\n\t\t\t\toptions;\n\n\t\t\ttry {\n\t\t\t\toptions = Object.defineProperty({}, 'passive', {\n\t\t\t\t\tget: function() {\n\t\t\t\t\t\tsupportsPassiveListener = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tglobal.addEventListener(event, noop, options);\n\t\t\t\tglobal.removeEventListener(event, noop, options);\n\t\t\t} catch(error) {} /* eslint-disable-line no-empty */\n\t\t}());\n\n\t\tfunction processOptions(options) {\n\t\t\tif(supportsPassiveListener || typeof options === 'boolean') {\n\t\t\t\treturn options;\n\t\t\t}\n\n\t\t\treturn options && options.capture;\n\t\t}\n\n\t\tfunction emitEvent(type, detail, uuid) {\n\t\t\tvar self = this,\n\t\t\t\tevent;\n\n\t\t\tevent = document.createEvent('CustomEvent');\n\t\t\tevent.initCustomEvent(type, type !== 'load' && type !== 'resize', type !== 'load' && type !== 'resize', detail);\n\n\t\t\tif(uuid) {\n\t\t\t\tevent.uuid = uuid;\n\t\t\t\tevent.isDelegate = true;\n\t\t\t}\n\n\t\t\tself.node.dispatchEvent(event);\n\n\t\t\tif(self.node !== global && !event.defaultPrevented && typeof self.node[type] === 'function') {\n\t\t\t\tself.node[type]();\n\t\t\t}\n\t\t}\n\n\t\tfunction resolveElement(element) {\n\t\t\tif(typeof element === 'string') {\n\t\t\t\ttry {\n\t\t\t\t\tif(regexMatchTag.test(element)) {\n\t\t\t\t\t\telement = document.createElement(element.replace(regexMatchTag, '$1').toLowerCase());\n\t\t\t\t\t} else {\n\t\t\t\t\t\telement = document.querySelector(element);\n\t\t\t\t\t}\n\t\t\t\t} catch(exception) {\n\t\t\t\t\telement = NULL;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!element) {\n\t\t\t\tthrow new Error('Element could not be resolved');\n\t\t\t}\n\n\t\t\treturn element;\n\t\t}\n\n\t\tfunction resolveArguments(parameters) {\n\t\t\treturn arrayPrototypeConcat.apply([], arrayPrototypeSlice.call(parameters)).join(' ').split(regexMatchSpaces);\n\t\t}\n\n\t\tfunction matchesDelegate(event, delegate) {\n\t\t\tvar i = 0, pointer;\n\n\t\t\tfor(; pointer = event.path[i]; i++) {\n\t\t\t\tif(pointer[STRING_MATCHES] && pointer[STRING_MATCHES](delegate)) {\n\t\t\t\t\tevent.currentTarget = pointer;\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif(pointer === event.currentTarget) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction getSiblings(pointer, method, selector, limit, strict) {\n\t\t\tvar multiple = !(limit && limit === 1),\n\t\t\t\tsiblings = multiple ? [] : false;\n\n\t\t\tstrict = multiple ? false : strict;\n\n\t\t\twhile(pointer = method.call(pointer)) {\n\t\t\t\tif(pointer.nodeType === 1) {\n\t\t\t\t\tif(!selector || pointer[STRING_MATCHES](selector)) {\n\t\t\t\t\t\tif(multiple) {\n\t\t\t\t\t\t\tsiblings.push(pointer);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn pointer;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(strict) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn siblings;\n\t\t}\n\n\t\tfunction getParents(pointer, selector, limit, strict) {\n\t\t\tvar multiple = !(limit && limit === 1),\n\t\t\t\tparents = multiple ? [] : false;\n\n\t\t\tstrict = multiple ? false : strict;\n\n\t\t\twhile(pointer = pointer.parentNode) {\n\t\t\t\tif(pointer.nodeType === 1) {\n\t\t\t\t\tif(!selector || pointer[STRING_MATCHES](selector)) {\n\t\t\t\t\t\tif(multiple) {\n\t\t\t\t\t\t\tparents.push(pointer);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn pointer;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(strict) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn parents\n\t\t}\n\n\t\tfunction DomElement(element, attributes, styles) {\n\t\t\tvar self = this,\n\t\t\t\tuuid;\n\n\t\t\telement = resolveElement(element);\n\t\t\tuuid = element.uuid;\n\n\t\t\tif(!uuid) {\n\t\t\t\tuuid = generateUuid();\n\t\t\t\tlistener[uuid] = {};\n\n\t\t\t\tobjectDefineProperty(element, 'uuid', new Descriptor(uuid));\n\t\t\t}\n\n\t\t\tobjectDefineProperties(self, {\n\t\t\t\tuuid: new Descriptor(uuid),\n\t\t\t\ttype: new Descriptor(element === global ? '#window' : element.nodeName),\n\t\t\t\tnode: new Descriptor(element)\n\t\t\t});\n\n\t\t\tif(isObject(attributes)) {\n\t\t\t\tself.setAttributes(attributes);\n\t\t\t}\n\n\t\t\tif(isObject(styles)) {\n\t\t\t\tself.setStyles(styles);\n\t\t\t}\n\n\t\t\treturn self;\n\t\t}\n\n\t\tDomElement.prototype = {\n\t\t\t/* only for reference\n\t\t\t uuid: NULL,\n\t\t\t type: NULL,\n\t\t\t node: NULL\n\t\t\t */\n\t\t\tclone: function() {\n\t\t\t\treturn new DomElement(this.node.cloneNode(true));\n\t\t\t},\n\t\t\tfocus: function() {\n\t\t\t\tthis.node.focus();\n\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tblur: function() {\n\t\t\t\tthis.node.blur();\n\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tgetPosition: function() {\n\t\t\t\tvar bbox = this.node.getBoundingClientRect();\n\n\t\t\t\treturn {\n\t\t\t\t\tleft: bbox.left + documentBody.scrollLeft,\n\t\t\t\t\ttop: bbox.top + documentBody.scrollTop\n\t\t\t\t};\n\t\t\t},\n\t\t\tgetOffset: function(viewport) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\tbbox = viewport ? node.getBoundingClientRect() : null;\n\n\t\t\t\treturn {\n\t\t\t\t\tleft: viewport ? bbox.left : node.offsetLeft,\n\t\t\t\t\ttop: viewport ? bbox.top : node.offsetTop\n\t\t\t\t};\n\t\t\t},\n\t\t\tgetWidth: function(includeMargin) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\twidth = node.offsetWidth,\n\t\t\t\t\tstyle;\n\n\t\t\t\tif(includeMargin) {\n\t\t\t\t\tstyle = getComputedStyle(node);\n\n\t\t\t\t\twidth += parseInt(style.marginLeft) + parseInt(style.marginRight);\n\t\t\t\t}\n\n\t\t\t\treturn width;\n\t\t\t},\n\t\t\tgetHeight: function(includeMargin) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\theight = node.offsetHeight,\n\t\t\t\t\tstyle;\n\n\t\t\t\tif(includeMargin) {\n\t\t\t\t\tstyle = getComputedStyle(node);\n\n\t\t\t\t\theight += parseInt(style.marginTop) + parseInt(style.marginBottom);\n\t\t\t\t}\n\n\t\t\t\treturn height;\n\t\t\t},\n\t\t\tgetContent: function(getHtml) {\n\t\t\t\tvar node = this.node;\n\n\t\t\t\treturn getHtml ? node.innerHTML : node[STRING_CONTENTATTRIBUTE];\n\t\t\t},\n\t\t\tgetAttribute: function(attribute) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\treturn self.node.getAttribute(attribute);\n\t\t\t\t}\n\t\t\t},\n\t\t\tgetAttributes: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tresult = {},\n\t\t\t\t\tattributes = resolveArguments(arguments),\n\t\t\t\t\ti = 0, attribute;\n\n\t\t\t\tfor(; attribute = attributes[i]; i++) {\n\t\t\t\t\tresult[attribute] = self.node.getAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tgetStyle: function(property) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\treturn hooksCss.process('get', self.node, property);\n\t\t\t\t}\n\t\t\t},\n\t\t\tgetStyles: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tresult = {},\n\t\t\t\t\tproperties = resolveArguments(arguments),\n\t\t\t\t\ti = 0, property;\n\n\t\t\t\tfor(; property = properties[i]; i++) {\n\t\t\t\t\tresult[property] = hooksCss.process('get', self.node, property);\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tgetSiblingBefore: function(selector, strict) {\n\t\t\t\treturn getSiblings(this.node, previousSibling, selector, 1, strict);\n\t\t\t},\n\t\t\tgetSiblingAfter: function(selector, strict) {\n\t\t\t\treturn getSiblings(this.node, nextSibling, selector, 1, strict);\n\t\t\t},\n\t\t\tgetSiblings: function(selector) {\n\t\t\t\treturn this.getSiblingsBefore(selector).concat(this.getSiblingsAfter(selector));\n\t\t\t},\n\t\t\tgetSiblingsBefore: function(selector) {\n\t\t\t\treturn getSiblings(this.node, previousSibling, selector);\n\t\t\t},\n\t\t\tgetSiblingsAfter: function(selector) {\n\t\t\t\treturn getSiblings(this.node, nextSibling, selector);\n\t\t\t},\n\t\t\tgetChildren: function(selector) {\n\t\t\t\tvar self = this.node,\n\t\t\t\t\tuuid, matches, i, match;\n\n\t\t\t\tif(!selector) {\n\t\t\t\t\tmatches = [];\n\n\t\t\t\t\tfor(i = 0; match = self.childNodes[i]; i++) {\n\t\t\t\t\t\tif(match.nodeType === 1) {\n\t\t\t\t\t\t\tmatches.push(match);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if(regexMatchChildSeclector.test(selector)) {\n\t\t\t\t\tuuid = self.uuid;\n\n\t\t\t\t\tself.setAttribute('nucleus-uuid', uuid);\n\n\t\t\t\t\tselector = '[nucleus-uuid=\"' + uuid + '\"] ' + selector;\n\t\t\t\t\tmatches = arrayPrototypeSlice.call(self.parentNode.querySelectorAll(selector));\n\n\t\t\t\t\tself.removeAttribute('nucleus-uuid');\n\t\t\t\t} else {\n\t\t\t\t\tmatches = arrayPrototypeSlice.call(self.querySelectorAll(selector));\n\t\t\t\t}\n\n\t\t\t\treturn matches;\n\t\t\t},\n\t\t\tgetParent: function(selector, strict) {\n\t\t\t\treturn getParents(this.node, selector, 1, strict);\n\t\t\t},\n\t\t\tgetParents: function(selector) {\n\t\t\t\treturn getParents(this.node, selector);\n\t\t\t},\n\t\t\thasChild: function(child) {\n\t\t\t\tvar node = this.node;\n\n\t\t\t\treturn node !== child && node.contains(child.node || child);\n\t\t\t},\n\t\t\thasClass: function(name) {\n\t\t\t\treturn (name) ? (new RegExp('(?:^|\\\\s)' + name + '(?:\\\\s|$)')).test(this.node.className) : false;\n\t\t\t},\n\t\t\tisVisible: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\treturn !((node.offsetWidth <= 0 && node.offsetHeight <= 0) || self.getStyle('visibility') === 'hidden' || self.getStyle('opacity') <= 0);\n\t\t\t},\n\t\t\tsetContent: function(source, isHtml) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(isHtml) {\n\t\t\t\t\tnode.innerHTML = source;\n\t\t\t\t} else {\n\t\t\t\t\tnode[STRING_CONTENTATTRIBUTE] = source;\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetAttribute: function(attribute, value) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\tself.node.setAttribute(attribute, value);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetAttributes: function(attributes) {\n\t\t\t\tvar self = this;\n\n\t\t\t\titerate(attributes, function(attribute, value) {\n\t\t\t\t\tself.setAttribute(attribute, value);\n\t\t\t\t});\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveAttribute: function(attribute) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\tself.node.removeAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveAttributes: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tattributes = resolveArguments(arguments),\n\t\t\t\t\ti = 0, attribute;\n\n\t\t\t\tfor(; attribute = attributes[i]; i++) {\n\t\t\t\t\tself.removeAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetStyle: function(property, value) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\thooksCss.process('set', self.node, property, value);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetStyles: function(properties) {\n\t\t\t\tvar self = this;\n\n\t\t\t\titerate(properties, function(property, value) {\n\t\t\t\t\thooksCss.process('set', self.node, property, value);\n\t\t\t\t});\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveStyle: function(property) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\tself.setStyle(property, '');\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveStyles: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tproperties = resolveArguments(arguments),\n\t\t\t\t\ti = 0, property;\n\n\t\t\t\tfor(; property = properties[i]; i++) {\n\t\t\t\t\tself.setStyle(property, '');\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\taddClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name && !self.hasClass(name)) {\n\t\t\t\t\tself.node.className += (self.node.className) ? ' ' + name : name;\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name && self.hasClass(name)) {\n\t\t\t\t\tself.node.className = self.node.className.replace(new RegExp('(?:^|\\\\s)' + name + '(?!\\\\S)'), '').trim();\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\ttoggleClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name) {\n\t\t\t\t\tself.hasClass(name) ? self.removeClass(name) : self.addClass(name);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tprepend: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\telement = (isInstanceOf(element, DomElement)) ? element.node : resolveElement(element);\n\n\t\t\t\t\t\ttarget.firstChild ? target.insertBefore(element, target.firstChild) : self.append(element);\n\t\t\t\t\t} catch(exception) {\n\t\t\t\t\t\ttarget.insertAdjacentHTML('afterBegin', element);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tappend: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttarget.appendChild((isInstanceOf(element, DomElement)) ? element.node : resolveElement(element));\n\t\t\t\t\t} catch(exception) {\n\t\t\t\t\t\ttarget.insertAdjacentHTML('beforeEnd', element);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tprependTo: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).firstChild ? target.insertBefore(node, target.firstChild) : self.appendTo(target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tappendTo: function(target) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target.node || resolveElement(target)).appendChild(self.node);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tinsertBefore: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).parentNode.insertBefore(node, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tinsertAfter: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).nextSibling ? target.parentNode.insertBefore(node, target.nextSibling) : self.appendTo(target.parentNode);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\treplace: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).parentNode.replaceChild(node, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\treplaceWith: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\telement = (isInstanceOf(element, DomElement)) ? element.node : resolveElement(element);\n\n\t\t\t\t\ttarget.parentNode.replaceChild(element, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tdetach: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tnode.parentNode && node.parentNode.removeChild(node);\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\ton: function(events) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tdelegate = (arguments.length === 4 || typeof arguments[1] === 'string') ? arguments[1] : NULL,\n\t\t\t\t\tfn = (arguments.length === 4 || typeof arguments[2] === 'function') ? arguments[2] : arguments[1],\n\t\t\t\t\toptions = processOptions((arguments.length > 3) ? arguments[3] : arguments[2]),\n\t\t\t\t\tuuid = fn.uuid || (fn.uuid = generateUuid()),\n\t\t\t\t\ti = 0, event;\n\n\t\t\t\tevents = events.split(regexMatchSpaces);\n\n\t\t\t\tfor(; event = events[i]; i++) {\n\t\t\t\t\tvar id = event + '-' + uuid,\n\t\t\t\t\t\thandler = function(event) {\n\t\t\t\t\t\t\tvar delegateTo;\n\n\t\t\t\t\t\t\tevent = new Event(event);\n\n\t\t\t\t\t\t\tif(!event.isPropagationStopped) {\n\t\t\t\t\t\t\t\tdelegateTo = event.delegate;\n\t\t\t\t\t\t\t\tevent.uuid = generateUuid();\n\n\t\t\t\t\t\t\t\tif(!delegate || matchesDelegate(event, delegate)) {\n\t\t\t\t\t\t\t\t\tfn.call(event.currentTarget, event, event.originalEvent.detail);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif(delegateTo) {\n\t\t\t\t\t\t\t\t\tdelete event.delegate;\n\n\t\t\t\t\t\t\t\t\temitEvent.call(self, delegateTo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\thandler.type = event;\n\t\t\t\t\tlistener[self.uuid][id] = handler;\n\n\t\t\t\t\tself.node.addEventListener(event, handler, options);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tone: function(events) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tdelegate = (arguments.length === 5 || typeof arguments[1] === 'string') ? arguments[1] : NULL,\n\t\t\t\t\tfn = (arguments.length === 5 || typeof arguments[2] === 'function') ? arguments[2] : arguments[1],\n\t\t\t\t\toptions = processOptions((arguments.length > 3) ? arguments[3] : arguments[2]),\n\t\t\t\t\teach = ((arguments.length > 4) ? arguments[4] : arguments[3]) !== false,\n\t\t\t\t\thandler = function(event) {\n\t\t\t\t\t\tself.off(((each === true) ? event.type : events), handler, options);\n\n\t\t\t\t\t\tfn.call(this, event, event.originalEvent.detail);\n\t\t\t\t\t};\n\n\t\t\t\tfn.uuid = handler.uuid = generateUuid();\n\n\t\t\t\tif(delegate) {\n\t\t\t\t\tself.on(events, delegate, handler, options);\n\t\t\t\t} else {\n\t\t\t\t\tself.on(events, handler, options);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\toff: function(events, fn, options) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node,\n\t\t\t\t\ti = 0, event, id, handler;\n\n\t\t\t\toptions = processOptions(options);\n\t\t\t\tevents = events.split(' ');\n\n\t\t\t\tfor(; event = events[i]; i++) {\n\t\t\t\t\tid = fn.uuid && event + '-' + fn.uuid || NULL;\n\t\t\t\t\thandler = id && listener[self.uuid][id] || NULL;\n\n\t\t\t\t\tif(handler) {\n\t\t\t\t\t\tnode.removeEventListener(event, handler, options);\n\n\t\t\t\t\t\tdelete listener[self.uuid][id];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnode.removeEventListener(event, fn, options);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\temit: function(event, data) {\n\t\t\t\tvar self = this;\n\n\t\t\t\temitEvent.call(self, event, data);\n\n\t\t\t\treturn self;\n\t\t\t}\n\t\t};\n\n\t\treturn DomElement;\n\t}\n\n\tprovide([ '/demand/validator/isObject', '/demand/validator/isInstanceOf', '/demand/validator/isTypeOf', '/demand/function/uuid', '/demand/function/iterate', '/demand/descriptor', './event', '../hooks/css', '../support/method' ], definition);\n}(this, document));\n"]} \ No newline at end of file +{"version":3,"sources":["dom/element.js"],"names":["global","document","provide","isObject","isInstanceOf","isTypeOf","generateUuid","iterate","Descriptor","Event","hooksCss","supportMethod","documentBody","body","getElementsByTagName","arrayPrototypeConcat","Array","prototype","concat","arrayPrototypeSlice","slice","objectDefineProperty","Object","defineProperty","objectDefineProperties","defineProperties","head","NULL","STRING_UNDEFINED","STRING_STRING","STRING_CONTENTATTRIBUTE","createElement","STRING_MATCHES","regexMatchTag","regexMatchSpaces","regexMatchChildSeclector","previousSibling","previousElementSibling","element","this","nodeType","nextSibling","nextElementSibling","listener","supportsPassiveListener","processOptions","options","capture","emitEvent","type","detail","uuid","event","self","createEvent","initCustomEvent","isDelegate","node","dispatchEvent","defaultPrevented","resolveElement","test","replace","toLowerCase","querySelector","exception","Error","resolveArguments","parameters","apply","call","join","split","matchesDelegate","delegate","pointer","i","path","currentTarget","getSiblings","method","selector","limit","strict","multiple","siblings","push","getParents","parents","parentNode","DomElement","attributes","styles","nodeName","setAttributes","setStyles","noop","Date","get","addEventListener","removeEventListener","error","clone","cloneNode","focus","blur","getPosition","bbox","getBoundingClientRect","left","scrollLeft","top","scrollTop","getOffset","viewport","offsetLeft","offsetTop","getWidth","includeMargin","style","width","offsetWidth","getComputedStyle","parseInt","marginLeft","marginRight","getHeight","height","offsetHeight","marginTop","marginBottom","getContent","getHtml","innerHTML","getAttribute","attribute","getAttributes","result","arguments","getStyle","property","process","getStyles","properties","getSiblingBefore","getSiblingAfter","getSiblingsBefore","getSiblingsAfter","getChildren","matches","match","setAttribute","querySelectorAll","removeAttribute","childNodes","getParent","hasChild","child","contains","hasClass","name","RegExp","className","isVisible","setContent","source","isHtml","value","removeAttributes","setStyle","removeStyle","removeStyles","addClass","removeClass","trim","toggleClass","prepend","target","firstChild","insertBefore","append","insertAdjacentHTML","appendChild","prependTo","appendTo","insertAfter","replaceChild","replaceWith","detach","removeChild","on","events","length","fn","id","handler","delegateTo","isPropagationStopped","originalEvent","one","each","off","emit","data"],"mappings":";CAaC,SAASA,EAAQC,GACjB,aAkqBAC,QAAQ,CAAE,6BAA8B,iCAAkC,6BAA8B,wBAAyB,2BAA4B,qBAAsB,UAAW,eAAgB,sBAhqB9M,SAAoBC,EAAUC,EAAcC,EAAUC,EAAcC,EAASC,EAAYC,EAAOC,EAAUC,GACzG,IACCC,EAA2BX,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B,EAAQ2I,EAAOnH,GAAIA,KAExBuH,GADAD,EAAUD,EAAG9I,MAAQC,EAAQ,IAAM6I,EAAG9I,MAAQxB,IAC9BgB,EAASU,EAAKF,MAAM+I,IAAOvK,IAG1C8B,EAAK2C,oBAAoBhD,EAAO+I,EAASrJ,UAElCH,EAASU,EAAKF,MAAM+I,IAE3BzI,EAAK2C,oBAAoBhD,EAAO6I,EAAInJ,GAItC,OAAOO,GAERqJ,KAAM,SAAStJ,EAAOuJ,GAKrB,OAFA3J,EAAUsB,KAFC/B,KAEUa,EAAOuJ,GAFjBpK,OAQNmD,KAhqBT,CAoqBEnD,KAAMtC","file":"element.js","sourcesContent":["/**\n * @use /demand/validator/isObject\n * @use /demand/validator/isInstanceOf\n * @use /demand/validator/isTypeOf\n * @use /demand/function/uuid\n * @use /demand/function/iterate\n * @use /demand/descriptor\n *\n * @require ./event\n * @require ../hooks/css\n * @require ../support/method\n */\n\n(function(global, document) {\n\t'use strict';\n\n\tfunction definition(isObject, isInstanceOf, isTypeOf, generateUuid, iterate, Descriptor, Event, hooksCss, supportMethod) {\n\t\tvar //shortcuts\n\t\t\tdocumentBody = document.body || document.getElementsByTagName('body')[0],\n\t\t\tarrayPrototypeConcat = Array.prototype.concat,\n\t\t\tarrayPrototypeSlice = Array.prototype.slice,\n\t\t\tobjectDefineProperty = Object.defineProperty,\n\t\t\tobjectDefineProperties = Object.defineProperties,\n\t\t\thead = document.getElementsByTagName('head')[0],\n\t\t\t// constants\n\t\t\tNULL = null,\n\t\t\tSTRING_UNDEFINED = 'undefined',\n\t\t\tSTRING_STRING = 'string',\n\t\t\tSTRING_CONTENTATTRIBUTE = ('textContent' in document.createElement('a')) ? 'textContent' : 'innerText',\n\t\t\tSTRING_MATCHES = supportMethod('matches', documentBody) || supportMethod('matchesSelector', documentBody),\n\t\t\t// regular expressions\n\t\t\tregexMatchTag = /^<(\\w+)\\s*\\/>$/,\n\t\t\tregexMatchSpaces = / +/g,\n\t\t\tregexMatchChildSeclector = /^\\s*^/,\n\t\t\t// methods\n\t\t\tpreviousSibling = (!isTypeOf(head.previousElementSibling, STRING_UNDEFINED)) ? function previousSibling() { return this.previousElementSibling; } : function previousSibling() { var element = this; while(element = element.previousSibling) { if(element.nodeType === 1 ) { return element; } } },\n\t\t\tnextSibling = (!isTypeOf(head.nextElementSibling, STRING_UNDEFINED)) ? function nextSibling() { return this.nextElementSibling; } : function nextSibling() { var element = this; while(element = element.nextSibling) { if(element.nodeType === 1 ) { return element; } } },\n\t\t\t// flags\n\t\t\t// general storage & objects\n\t\t\tlistener = {},\n\t\t\tsupportsPassiveListener = false;\n\n\t\t(function() {\n\t\t\tvar noop = function() {},\n\t\t\t\tevent = '' + (+new Date()),\n\t\t\t\toptions;\n\n\t\t\ttry {\n\t\t\t\toptions = Object.defineProperty({}, 'passive', {\n\t\t\t\t\tget: function() {\n\t\t\t\t\t\tsupportsPassiveListener = true;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tglobal.addEventListener(event, noop, options);\n\t\t\t\tglobal.removeEventListener(event, noop, options);\n\t\t\t} catch(error) {} /* eslint-disable-line no-empty */\n\t\t}());\n\n\t\tfunction processOptions(options) {\n\t\t\tif(supportsPassiveListener || typeof options === 'boolean') {\n\t\t\t\treturn options;\n\t\t\t}\n\n\t\t\treturn options && options.capture;\n\t\t}\n\n\t\tfunction emitEvent(type, detail, uuid) {\n\t\t\tvar self = this,\n\t\t\t\tevent;\n\n\t\t\tevent = document.createEvent('CustomEvent');\n\t\t\tevent.initCustomEvent(type, type !== 'load' && type !== 'resize', type !== 'load' && type !== 'resize', detail);\n\n\t\t\tif(uuid) {\n\t\t\t\tevent.uuid = uuid;\n\t\t\t\tevent.isDelegate = true;\n\t\t\t}\n\n\t\t\tself.node.dispatchEvent(event);\n\n\t\t\tif(self.node !== global && !event.defaultPrevented && typeof self.node[type] === 'function') {\n\t\t\t\tself.node[type]();\n\t\t\t}\n\t\t}\n\n\t\tfunction resolveElement(element) {\n\t\t\tif(typeof element === 'string') {\n\t\t\t\ttry {\n\t\t\t\t\tif(regexMatchTag.test(element)) {\n\t\t\t\t\t\telement = document.createElement(element.replace(regexMatchTag, '$1').toLowerCase());\n\t\t\t\t\t} else {\n\t\t\t\t\t\telement = document.querySelector(element);\n\t\t\t\t\t}\n\t\t\t\t} catch(exception) {\n\t\t\t\t\telement = NULL;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!element) {\n\t\t\t\tthrow new Error('Element could not be resolved');\n\t\t\t}\n\n\t\t\treturn element;\n\t\t}\n\n\t\tfunction resolveArguments(parameters) {\n\t\t\treturn arrayPrototypeConcat.apply([], arrayPrototypeSlice.call(parameters)).join(' ').split(regexMatchSpaces);\n\t\t}\n\n\t\tfunction matchesDelegate(event, delegate) {\n\t\t\tvar i = 0, pointer;\n\n\t\t\tfor(; pointer = event.path[i]; i++) {\n\t\t\t\tif(pointer[STRING_MATCHES] && pointer[STRING_MATCHES](delegate)) {\n\t\t\t\t\tevent.currentTarget = pointer;\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif(pointer === event.currentTarget) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction getSiblings(pointer, method, selector, limit, strict) {\n\t\t\tvar multiple = !(limit && limit === 1),\n\t\t\t\tsiblings = multiple ? [] : false;\n\n\t\t\tstrict = multiple ? false : strict;\n\n\t\t\twhile(pointer = method.call(pointer)) {\n\t\t\t\tif(pointer.nodeType === 1) {\n\t\t\t\t\tif(!selector || pointer[STRING_MATCHES](selector)) {\n\t\t\t\t\t\tif(multiple) {\n\t\t\t\t\t\t\tsiblings.push(pointer);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn pointer;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(strict) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn siblings;\n\t\t}\n\n\t\tfunction getParents(pointer, selector, limit, strict) {\n\t\t\tvar multiple = !(limit && limit === 1),\n\t\t\t\tparents = multiple ? [] : false;\n\n\t\t\tstrict = multiple ? false : strict;\n\n\t\t\twhile(pointer = pointer.parentNode) {\n\t\t\t\tif(pointer.nodeType === 1) {\n\t\t\t\t\tif(!selector || pointer[STRING_MATCHES](selector)) {\n\t\t\t\t\t\tif(multiple) {\n\t\t\t\t\t\t\tparents.push(pointer);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn pointer;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(strict) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn parents\n\t\t}\n\n\t\tfunction DomElement(element, attributes, styles) {\n\t\t\tvar self = this,\n\t\t\t\tuuid;\n\n\t\t\telement = resolveElement(element);\n\t\t\tuuid = element.uuid;\n\n\t\t\tif(!uuid) {\n\t\t\t\tuuid = generateUuid();\n\t\t\t\tlistener[uuid] = {};\n\n\t\t\t\tobjectDefineProperty(element, 'uuid', new Descriptor(uuid));\n\t\t\t}\n\n\t\t\tobjectDefineProperties(self, {\n\t\t\t\tuuid: new Descriptor(uuid),\n\t\t\t\ttype: new Descriptor(element === global ? '#window' : element.nodeName),\n\t\t\t\tnode: new Descriptor(element)\n\t\t\t});\n\n\t\t\tif(isObject(attributes)) {\n\t\t\t\tself.setAttributes(attributes);\n\t\t\t}\n\n\t\t\tif(isObject(styles)) {\n\t\t\t\tself.setStyles(styles);\n\t\t\t}\n\n\t\t\treturn self;\n\t\t}\n\n\t\tDomElement.prototype = {\n\t\t\t/* only for reference\n\t\t\t uuid: NULL,\n\t\t\t type: NULL,\n\t\t\t node: NULL\n\t\t\t */\n\t\t\tclone: function() {\n\t\t\t\treturn new DomElement(this.node.cloneNode(true));\n\t\t\t},\n\t\t\tfocus: function() {\n\t\t\t\tthis.node.focus();\n\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tblur: function() {\n\t\t\t\tthis.node.blur();\n\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tgetPosition: function() {\n\t\t\t\tvar bbox = this.node.getBoundingClientRect();\n\n\t\t\t\treturn {\n\t\t\t\t\tleft: bbox.left + documentBody.scrollLeft,\n\t\t\t\t\ttop: bbox.top + documentBody.scrollTop\n\t\t\t\t};\n\t\t\t},\n\t\t\tgetOffset: function(viewport) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\tbbox = viewport ? node.getBoundingClientRect() : null;\n\n\t\t\t\treturn {\n\t\t\t\t\tleft: viewport ? bbox.left : node.offsetLeft,\n\t\t\t\t\ttop: viewport ? bbox.top : node.offsetTop\n\t\t\t\t};\n\t\t\t},\n\t\t\tgetWidth: function(includeMargin) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\twidth = node.offsetWidth,\n\t\t\t\t\tstyle;\n\n\t\t\t\tif(includeMargin) {\n\t\t\t\t\tstyle = getComputedStyle(node);\n\n\t\t\t\t\twidth += parseInt(style.marginLeft) + parseInt(style.marginRight);\n\t\t\t\t}\n\n\t\t\t\treturn width;\n\t\t\t},\n\t\t\tgetHeight: function(includeMargin) {\n\t\t\t\tvar node = this.node,\n\t\t\t\t\theight = node.offsetHeight,\n\t\t\t\t\tstyle;\n\n\t\t\t\tif(includeMargin) {\n\t\t\t\t\tstyle = getComputedStyle(node);\n\n\t\t\t\t\theight += parseInt(style.marginTop) + parseInt(style.marginBottom);\n\t\t\t\t}\n\n\t\t\t\treturn height;\n\t\t\t},\n\t\t\tgetContent: function(getHtml) {\n\t\t\t\tvar node = this.node;\n\n\t\t\t\treturn getHtml ? node.innerHTML : node[STRING_CONTENTATTRIBUTE];\n\t\t\t},\n\t\t\tgetAttribute: function(attribute) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\treturn self.node.getAttribute(attribute);\n\t\t\t\t}\n\t\t\t},\n\t\t\tgetAttributes: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tresult = {},\n\t\t\t\t\tattributes = resolveArguments(arguments),\n\t\t\t\t\ti = 0, attribute;\n\n\t\t\t\tfor(; attribute = attributes[i]; i++) {\n\t\t\t\t\tresult[attribute] = self.node.getAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tgetStyle: function(property) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\treturn hooksCss.process('get', self.node, property);\n\t\t\t\t}\n\t\t\t},\n\t\t\tgetStyles: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tresult = {},\n\t\t\t\t\tproperties = resolveArguments(arguments),\n\t\t\t\t\ti = 0, property;\n\n\t\t\t\tfor(; property = properties[i]; i++) {\n\t\t\t\t\tresult[property] = hooksCss.process('get', self.node, property);\n\t\t\t\t}\n\n\t\t\t\treturn result;\n\t\t\t},\n\t\t\tgetSiblingBefore: function(selector, strict) {\n\t\t\t\treturn getSiblings(this.node, previousSibling, selector, 1, strict);\n\t\t\t},\n\t\t\tgetSiblingAfter: function(selector, strict) {\n\t\t\t\treturn getSiblings(this.node, nextSibling, selector, 1, strict);\n\t\t\t},\n\t\t\tgetSiblings: function(selector) {\n\t\t\t\treturn this.getSiblingsBefore(selector).concat(this.getSiblingsAfter(selector));\n\t\t\t},\n\t\t\tgetSiblingsBefore: function(selector) {\n\t\t\t\treturn getSiblings(this.node, previousSibling, selector);\n\t\t\t},\n\t\t\tgetSiblingsAfter: function(selector) {\n\t\t\t\treturn getSiblings(this.node, nextSibling, selector);\n\t\t\t},\n\t\t\tgetChildren: function(selector) {\n\t\t\t\tvar self = this.node,\n\t\t\t\t\tuuid, matches, i, match;\n\n\t\t\t\tif(!selector) {\n\t\t\t\t\tmatches = [];\n\n\t\t\t\t\tfor(i = 0; match = self.childNodes[i]; i++) {\n\t\t\t\t\t\tif(match.nodeType === 1) {\n\t\t\t\t\t\t\tmatches.push(match);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if(regexMatchChildSeclector.test(selector)) {\n\t\t\t\t\tuuid = self.uuid;\n\n\t\t\t\t\tself.setAttribute('nucleus-uuid', uuid);\n\n\t\t\t\t\tselector = '[nucleus-uuid=\"' + uuid + '\"] ' + selector;\n\t\t\t\t\tmatches = arrayPrototypeSlice.call(self.parentNode.querySelectorAll(selector));\n\n\t\t\t\t\tself.removeAttribute('nucleus-uuid');\n\t\t\t\t} else {\n\t\t\t\t\tmatches = arrayPrototypeSlice.call(self.querySelectorAll(selector));\n\t\t\t\t}\n\n\t\t\t\treturn matches;\n\t\t\t},\n\t\t\tgetParent: function(selector, strict) {\n\t\t\t\treturn getParents(this.node, selector, 1, strict);\n\t\t\t},\n\t\t\tgetParents: function(selector) {\n\t\t\t\treturn getParents(this.node, selector);\n\t\t\t},\n\t\t\thasChild: function(child) {\n\t\t\t\tvar node = this.node;\n\n\t\t\t\treturn node !== child && node.contains(child.node || child);\n\t\t\t},\n\t\t\thasClass: function(name) {\n\t\t\t\treturn (name) ? (new RegExp('(?:^|\\\\s)' + name + '(?:\\\\s|$)')).test(this.node.className) : false;\n\t\t\t},\n\t\t\tisVisible: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\treturn !((node.offsetWidth <= 0 && node.offsetHeight <= 0) || self.getStyle('visibility') === 'hidden' || self.getStyle('opacity') <= 0);\n\t\t\t},\n\t\t\tsetContent: function(source, isHtml) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(isHtml) {\n\t\t\t\t\tnode.innerHTML = source;\n\t\t\t\t} else {\n\t\t\t\t\tnode[STRING_CONTENTATTRIBUTE] = source;\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetAttribute: function(attribute, value) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\tself.node.setAttribute(attribute, value);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetAttributes: function(attributes) {\n\t\t\t\tvar self = this;\n\n\t\t\t\titerate(attributes, function(attribute, value) {\n\t\t\t\t\tself.setAttribute(attribute, value);\n\t\t\t\t});\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveAttribute: function(attribute) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(attribute, STRING_STRING)) {\n\t\t\t\t\tself.node.removeAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveAttributes: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tattributes = resolveArguments(arguments),\n\t\t\t\t\ti = 0, attribute;\n\n\t\t\t\tfor(; attribute = attributes[i]; i++) {\n\t\t\t\t\tself.removeAttribute(attribute);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetStyle: function(property, value) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\thooksCss.process('set', self.node, property, value);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tsetStyles: function(properties) {\n\t\t\t\tvar self = this;\n\n\t\t\t\titerate(properties, function(property, value) {\n\t\t\t\t\thooksCss.process('set', self.node, property, value);\n\t\t\t\t});\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveStyle: function(property) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(isTypeOf(property, STRING_STRING)) {\n\t\t\t\t\tself.setStyle(property, '');\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveStyles: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tproperties = resolveArguments(arguments),\n\t\t\t\t\ti = 0, property;\n\n\t\t\t\tfor(; property = properties[i]; i++) {\n\t\t\t\t\tself.setStyle(property, '');\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\taddClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name && !self.hasClass(name)) {\n\t\t\t\t\tself.node.className += (self.node.className) ? ' ' + name : name;\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tremoveClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name && self.hasClass(name)) {\n\t\t\t\t\tself.node.className = self.node.className.replace(new RegExp('(?:^|\\\\s)' + name + '(?!\\\\S)'), '').trim();\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\ttoggleClass: function(name) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(name) {\n\t\t\t\t\tself.hasClass(name) ? self.removeClass(name) : self.addClass(name);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tprepend: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\telement = (isInstanceOf(element, DomElement)) ? element.node : resolveElement(element);\n\n\t\t\t\t\t\ttarget.firstChild ? target.insertBefore(element, target.firstChild) : self.append(element);\n\t\t\t\t\t} catch(exception) {\n\t\t\t\t\t\ttarget.insertAdjacentHTML('afterBegin', element);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tappend: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttarget.appendChild((isInstanceOf(element, DomElement)) ? element.node : resolveElement(element));\n\t\t\t\t\t} catch(exception) {\n\t\t\t\t\t\ttarget.insertAdjacentHTML('beforeEnd', element);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tprependTo: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).firstChild ? target.insertBefore(node, target.firstChild) : self.appendTo(target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tappendTo: function(target) {\n\t\t\t\tvar self = this;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target.node || resolveElement(target)).appendChild(self.node);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tinsertBefore: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).parentNode.insertBefore(node, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tinsertAfter: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).nextSibling ? target.parentNode.insertBefore(node, target.nextSibling) : self.appendTo(target.parentNode);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\treplace: function(target) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tif(target) {\n\t\t\t\t\t(target = target.node || resolveElement(target)).parentNode.replaceChild(node, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\treplaceWith: function(element) {\n\t\t\t\tvar self = this,\n\t\t\t\t\ttarget = self.node;\n\n\t\t\t\tif(element) {\n\t\t\t\t\telement = (isInstanceOf(element, DomElement)) ? element.node : resolveElement(element);\n\n\t\t\t\t\ttarget.parentNode.replaceChild(element, target);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tdetach: function() {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node;\n\n\t\t\t\tnode.parentNode && node.parentNode.removeChild(node);\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\ton: function(events) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tdelegate = (arguments.length === 4 || typeof arguments[1] === 'string') ? arguments[1] : NULL,\n\t\t\t\t\tfn = (arguments.length === 4 || typeof arguments[2] === 'function') ? arguments[2] : arguments[1],\n\t\t\t\t\toptions = processOptions((arguments.length > 3) ? arguments[3] : arguments[2]),\n\t\t\t\t\tuuid = fn.uuid || (fn.uuid = generateUuid()),\n\t\t\t\t\ti = 0, event;\n\n\t\t\t\tevents = events.split(regexMatchSpaces);\n\n\t\t\t\tfor(; (event = events[i]); i++) {\n\t\t\t\t\tvar id = event + '-' + uuid,\n\t\t\t\t\t\thandler = function(event) {\n\t\t\t\t\t\t\tvar delegateTo;\n\n\t\t\t\t\t\t\tevent = new Event(event);\n\n\t\t\t\t\t\t\tif(!event.isPropagationStopped) {\n\t\t\t\t\t\t\t\tdelegateTo = event.delegate;\n\t\t\t\t\t\t\t\tevent.uuid = generateUuid();\n\n\t\t\t\t\t\t\t\tif(!delegate || matchesDelegate(event, delegate)) {\n\t\t\t\t\t\t\t\t\tfn.call(event.currentTarget, event, event.originalEvent.detail);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif(delegateTo) {\n\t\t\t\t\t\t\t\t\tdelete event.delegate;\n\n\t\t\t\t\t\t\t\t\temitEvent.call(self, delegateTo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\n\t\t\t\t\thandler.type = event;\n\t\t\t\t\tlistener[self.uuid][id] = handler;\n\n\t\t\t\t\tself.node.addEventListener(event, handler, options);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\tone: function(events) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tdelegate = (arguments.length === 5 || typeof arguments[1] === 'string') ? arguments[1] : NULL,\n\t\t\t\t\tfn = (arguments.length === 5 || typeof arguments[2] === 'function') ? arguments[2] : arguments[1],\n\t\t\t\t\toptions = processOptions((arguments.length > 3) ? arguments[3] : arguments[2]),\n\t\t\t\t\teach = ((arguments.length > 4) ? arguments[4] : arguments[3]) !== false,\n\t\t\t\t\thandler = function(event) {\n\t\t\t\t\t\tself.off(((each === true) ? event.type : events), handler, options);\n\n\t\t\t\t\t\tfn.call(this, event, event.originalEvent.detail);\n\t\t\t\t\t};\n\n\t\t\t\tfn.uuid = handler.uuid = generateUuid();\n\n\t\t\t\tif(delegate) {\n\t\t\t\t\tself.on(events, delegate, handler, options);\n\t\t\t\t} else {\n\t\t\t\t\tself.on(events, handler, options);\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\toff: function(events, fn, options) {\n\t\t\t\tvar self = this,\n\t\t\t\t\tnode = self.node,\n\t\t\t\t\ti = 0, event, id, handler;\n\n\t\t\t\toptions = processOptions(options);\n\t\t\t\tevents = events.split(' ');\n\n\t\t\t\tfor(; event = events[i]; i++) {\n\t\t\t\t\tid = fn.uuid && event + '-' + fn.uuid || NULL;\n\t\t\t\t\thandler = id && listener[self.uuid][id] || NULL;\n\n\t\t\t\t\tif(handler) {\n\t\t\t\t\t\tnode.removeEventListener(event, handler, options);\n\n\t\t\t\t\t\tdelete listener[self.uuid][id];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnode.removeEventListener(event, fn, options);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn self;\n\t\t\t},\n\t\t\temit: function(event, data) {\n\t\t\t\tvar self = this;\n\n\t\t\t\temitEvent.call(self, event, data);\n\n\t\t\t\treturn self;\n\t\t\t}\n\t\t};\n\n\t\treturn DomElement;\n\t}\n\n\tprovide([ '/demand/validator/isObject', '/demand/validator/isInstanceOf', '/demand/validator/isTypeOf', '/demand/function/uuid', '/demand/function/iterate', '/demand/descriptor', './event', '../hooks/css', '../support/method' ], definition);\n}(this, document));\n"]} \ No newline at end of file diff --git a/dist/dom/element/appear.js b/dist/dom/element/appear.js index 71c66fd..e807dc4 100644 --- a/dist/dom/element/appear.js +++ b/dist/dom/element/appear.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(t,e,i){"use strict";if("CSS1Compat"!==e.compatMode)throw new Error("Browser needs to be in standards mode");provide(["/demand/weakmap","../element","../../function/merge","../../function/debounce"],(function(n,o,r,s){var a=e.documentElement,c=new o(t),u={},d=new n,h=[],l="resize orientationchange",g="appear",f="disappear";function m(){u.left=0,u.top=0,u.right=t.innerWidth||a.clientWidth,u.bottom=t.innerHeight||a.clientHeight}function p(){var t=d.get(this),e=t.settings,i=t.boundaries,n=e.threshold,o=void 0!==n?n:a.clientWidth*e.auto,r=void 0!==n?n:a.clientHeight*e.auto;i.left=u.left-o,i.top=u.top-r,i.right=u.right+o,i.bottom=u.bottom+r}function b(t,e){var i=t.getBoundingClientRect();return!(i.right<=e.left||i.bottom<=e.top||i.left>=e.right||i.top>=e.bottom)}function v(){var t=this.node,e=d.get(this);return b(t,u)?2:b(t,e.boundaries)?1:0}function w(t,e){var i=o.call(this,t);return"auto"===(e=r({},w.settings,e)).threshold&&delete e.threshold,d.set(i,{settings:e,boundaries:{},state:-1}),c.on(l,s(p.bind(i))),p.call(i),h.push(i),i}return c.on(l,s(m)),m(),i((function(){for(var t,e,i,n,o=0;t=h[o];o++)if(!(i=(e=d.get(t)).settings).visibility||t.isVisible()){if((n=v.call(t))!==e.state){switch(n){case 0:t.emit(f,{priority:1});break;case 1:t.emit(e.state<=0?g:f,{priority:2});break;case 2:t.emit(g,{priority:1})}e.state=n}i.recur||2!==n||(h.splice(o,1),o--)}}),1e3/30),w.settings={threshold:"auto",recur:!0,auto:1,visibility:!0},w.extends(o)}))}(this,document,setInterval); //# sourceMappingURL=appear.js.map diff --git a/dist/dom/element/resize.js b/dist/dom/element/resize.js index 9a1eac5..225019d 100644 --- a/dist/dom/element/resize.js +++ b/dist/dom/element/resize.js @@ -1,3 +1,3 @@ -/**! Qoopido.nucleus 3.2.8 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ +/**! Qoopido.nucleus 3.2.9 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(){"use strict";provide(["/demand/weakmap","../element"],(function(e,n){var t=new e,i=!(document.documentMode<11)&&"pointerEvents"in document.createElement("iframe").style,o={pointerEvents:"none",userSelect:"none",userDrag:"none",zIndex:"-1",display:"block",opacity:0,position:"absolute",left:0,top:"-100%",width:"100%",height:"100%",margin:"1px 0 0",padding:0,border:"none"};return i||(o.visibility="hidden"),function(e){var i,d,a=n.call(this,e),r=t.get(a.node);if(r)return r;i=a.getStyle("position"),d=new n("