Current File : /home/tradevaly/www/public/assets/libs/tui-dom/tui-dom.min.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["tui-code-snippet"],e):"object"==typeof exports?exports.dom=e(require("tui-code-snippet")):(t.tui=t.tui||{},t.tui.dom=e(t.tui&&t.tui.util))}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="dist",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var i=n(2),a=o(i),u=n(3),l=o(u),f=n(1),s=r(f);t.exports=s.default.extend({},l,a)},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=t[b];if(n||(n=t[b]={}),e){var r=n[e];r||(r=n[e]=new A.default.Map),n=r}return n}function i(t,e,n,r){var i=o(t,e),a=i.get(n);a?a.push(r):(a=[r],i.set(n,a))}function a(t,e,n){o(t,e).delete(n)}function u(t,e,n,r){function o(e){n.call(r||t,e||window.event)}function a(e){e=e||window.event,d(t,e)&&o(e)}"addEventListener"in t?"mouseenter"===e||"mouseleave"===e?(e="mouseenter"===e?"mouseover":"mouseout",t.addEventListener(e,a),i(t,e,n,a)):(t.addEventListener(e,o),i(t,e,n,o)):"attachEvent"in t&&(t.attachEvent("on"+e,o),i(t,e,n,o))}function l(t,e,n){var r=o(t,e),i=r.get(n);i&&(a(t,e,n),A.default.forEach(i,function(n){"removeEventListener"in t?t.removeEventListener(e,n):"detachEvent"in t&&t.detachEvent("on"+e,n)}))}function f(t,e,n,r){return A.default.isString(e)?void A.default.forEach(e.split(/\s+/g),function(e){u(t,e,n,r)}):void A.default.forEach(e,function(e,r){u(t,r,e,n)})}function s(t,e,n,r){if(A.default.isObject(e)){var o=!0,i=!1,a=void 0;try{for(var u,l=e[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var d=g(u.value,2),v=d[0],p=d[1];s(t,p,v,n)}}catch(t){i=!0,a=t}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}}else{var h=function o(){for(var i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];n.apply(r||t,a),c(t,e,o,r)};f(t,e,h,r)}}function c(t,e,n){return A.default.isString(e)?void A.default.forEach(e.split(/\s+/g),function(e){l(t,e,n)}):void A.default.forEach(e,function(e,n){l(t,n,e)})}function d(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}function v(){return navigator.userAgent.indexOf("msie 8")>-1||navigator.userAgent.indexOf("msie 7")>-1||navigator.userAgent.indexOf("msie 6")>-1}function p(t){return _?t.button:h(t)}function h(t){var e=String(t.button);return A.default.inArray(e,x)>-1?0:A.default.inArray(e,S)>-1?2:A.default.inArray(e,w)>-1?1:null}function m(t,e){var n=A.default.isArray(t),r=n?t[0]:t.clientX,o=n?t[1]:t.clientY;if(!e)return[r,o];var i=(0,y.getRect)(e);return[r-i.left-e.clientLeft,o-i.top-e.clientTop]}e.__esModule=!0;var g=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.on=f,e.once=s,e.off=c,e.checkMouse=d,e._isIE8AndEarlier=v,e.getMouseButton=p,e._getMouseButtonIE8AndEarlier=h,e.getMousePosition=m;var y=n(3),E=n(1),A=r(E),b="_feEventKey",x=["0","1","3","5","7"],S=["2","6"],w=["4"],_=!v()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t,e,n){var r=t.style;return D.default.isString(e)?void(r[e]=n):void D.default.forEach(e,function(t,e){r[e]=t})}function a(t){return t&&t.className?D.default.isUndefined(t.className.baseVal)?t.className:t.className.baseVal:""}function u(t,e){if(t.classList)return t.classList.contains(e);var n=a(t).split(/\s+/);return D.default.inArray(e,n)>-1}function l(t,e){return e=D.default.isArray(e)?e.join(" "):e,e=B(e),D.default.isUndefined(t.className.baseVal)?void(t.className=e):void(t.className.baseVal=e)}function f(t){var e=q.call(arguments,1);if(t.classList){var n=t.classList;return void D.default.forEach(e,function(t){n.add(t)})}var r=a(t);r&&(e=[].concat(r.split(/\s+/),e));var o=[];D.default.forEach(e,function(t){D.default.inArray(t,o)<0&&o.push(t)}),l(t,o)}function s(t){var e=q.call(arguments,1);if(t.classList)return void D.default.forEach(e,function(e){t.classList.toggle(e)});var n=a(t).split(/\s+/);D.default.forEach(e,function(t){var e=D.default.inArray(t,n);e>-1?n.splice(e,1):n.push(t)}),l(t,n)}function c(t){var e=q.call(arguments,1);if(t.classList){var n=t.classList;return void D.default.forEach(e,function(t){n.remove(t)})}var r=a(t).split(/\s+/),o=D.default.filter(r,function(t){return D.default.inArray(t,e)<0});l(t,o)}function d(t){var e=t.getBoundingClientRect(),n=e.top,r=e.right,o=e.bottom,i=e.left,a=e.width,u=e.height;return(D.default.isUndefined(a)||D.default.isUndefined(u))&&(a=t.offsetWidth,u=t.offsetHeight),{top:n,right:r,bottom:o,left:i,width:a,height:u}}function v(t){return"-"+t.toLowerCase()}function p(t,e,n){return t.dataset?void(t.dataset[e]=n):(e=e.replace(/([A-Z])/g,v),void t.setAttribute("data-"+e,n))}function h(t,e){return t.dataset?t.dataset[e]:(e=e.replace(/([A-Z])/g,v),t.getAttribute("data-"+e))}function m(t,e){return t.dataset?void delete t.dataset[e]:(e=e.replace(/([A-Z])/g,v),void t.removeAttribute("data-"+e))}function g(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.top,r=e.right,o=e.bottom,i=e.left,a=e.width,u=e.height,l={top:n,right:r,bottom:o,left:i,width:a,height:u},f={};D.default.forEach(l,function(t,e){D.default.isExisty(t)&&(f[e]=D.default.isNumber(t)?t+"px":t)}),D.default.extend(t.style,f)}function E(t,e){return P.call(t,e)}function A(t,e){var n=t.parentNode;if(E(t,e))return t;for(;n&&n!==document;){if(E(n,e))return n;n=n.parentNode}return null}function b(t,e){return D.default.isString(t)?document.querySelector(t):t.querySelector(e)}function x(t,e){return D.default.isString(t)?D.default.toArray(document.querySelectorAll(t)):D.default.toArray(t.querySelectorAll(e))}function S(t){return t.stopPropagation?void t.stopPropagation():void(t.cancelBubble=!0)}function w(t){return t.preventDefault?void t.preventDefault():void(t.returnValue=!1)}function _(t){for(var e=document.documentElement.style,n=t.length,r=0;r<n;r+=1)if(t[r]in e)return t[r];return!1}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=void 0;V?j.on(t,"selectstart",w):(t=t===document?document.documentElement:t,e=t.style,T=e[k],e[k]="none")}function L(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;V?j.off(t,"selectstart",w):(t=t===document?document.documentElement:t,t.style[k]=T)}function N(t){return D.default.isExisty(t.textContent)?t.textContent:t.innerText}function C(t,e){var n=e.parentNode;e===n.lastChild?n.appendChild(t):n.insertBefore(t,e.nextSibling)}e.__esModule=!0,e.css=i,e.getClass=a,e.hasClass=u,e.addClass=f,e.toggleClass=s,e.removeClass=c,e.getRect=d,e.setData=p,e.getData=h,e.removeData=m,e.removeElement=g,e.setBound=y,e.matches=E,e.closest=A,e.find=b,e.findAll=x,e.stopPropagation=S,e.preventDefault=w,e.disableTextSelection=M,e.enableTextSelection=L,e.textContent=N,e.insertAfter=C;var O=n(2),j=o(O),U=n(1),D=r(U),q=Array.prototype.slice,B=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},F=Element.prototype,P=F.matches||F.webkitMatchesSelector||F.mozMatchesSelector||F.msMatchesSelector||function(t){var e=this.document||this.ownerDocument;return D.default.inArray(this,x(e,t))>-1},T="",V="onselectstart"in document,k=_(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"])}])});