!function(global){varqq=function(e){"use strict";return{hide:function(){returne.style.display="none",this},attach:function(t,n){returne.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){returne.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){returnt.parentNode.insertBefore(e,t),this},remove:function(){returne.parentNode.removeChild(e),this},css:function(t){if(null==e.style)thrownewqq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");returnnull!=t.opacity&&"string"!=typeofe.style.opacity&&void0!==e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){vari=newRegExp("(^| )"+t+"( |$)");returni.test(e.className)||!(!n||!i.test(e.parentNode.className))},addClass:function(t){returnqq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){varn=newRegExp("(^| )"+t+"( |$)");returne.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){vari,o=[];returnn&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(i=e.getElementsByTagName("*"),qq.each(i,(function(e,n){qq(n).hasClass(t)&&o.push(n)})),n?o[0]:o)},getFirstByClass:function(t){returnqq(e).getByClass(t,!0)},children:function(){for(vart=[],n=e.firstChild;n;)1===n.nodeType&&t.push(n),n=n.nextSibling;returnt},setText:function(t){returne.innerText=t,e.textContent=t,this},clearText:function(){returnqq(e).setText("")},hasAttribute:function(t){varn;returne.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):void0!==(n=e[t])&&null==/^false$/i.exec(n)}}},e;!function(){"use strict";vare;qq.canvasToBlob=function(e,t,n){returnqq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){vart,n,i,o;returnn=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),o=e.split(",")[0].split(":")[1].split(";")[0],t=newArrayBuffer(n.length),i=newUint8Array(t),qq.each(n,(function(e,t){i[e]=t.charCodeAt(0)})),function(e,t){varn=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i=n&&newn;returni?(i.append(e),i.getBlob(t)):newBlob([e],{type:t})}(t,o)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){returne&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"==typeofe},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){returnString.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){vart=Array.prototype.slice.call(arguments,1),n=e,i=n.indexOf("{}");returnqq.each(t,(function(e,t){varo=n.substring(0,i),r=n.substring(i+2);if((i=(n=o+t+r).indexOf("{}",i+t.length))<0)return!1})),n},qq.isFile=function(e){returnwindow.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){returnwindow.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){returnqq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){varn=function(e){varn=e.toLowerCase();returnt?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},q