make8bitart.com

ok now remove build

-786
-1
build/app.min.js
··· 1 - ((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})("undefined"!=typeof window?window:this,function(w,P){var e=[],C=w.document,Y=Object.getPrototypeOf,s=e.slice,O=e.concat,q=e.push,r=e.indexOf,n={},G=n.toString,R=n.hasOwnProperty,H=R.toString,B=H.call(Object),g={};function F(e,t){var n=(t=t||C).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function W(e,t){return t.toUpperCase()}var t="3.2.1",$=function(e,t){return new $.fn.init(e,t)},X=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Z=/^-ms-/,U=/-([a-z])/g;function Q(e){var t=!!e&&"length"in e&&e.length,n=$.type(e);return"function"!==n&&!$.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}$.fn=$.prototype={jquery:t,constructor:$,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=$.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return $.each(this,e)},map:function(n){return this.pushStack($.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:q,sort:e.sort,splice:e.splice},$.extend=$.fn.extend=function(){var e,t,n,o,r,i=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof i&&(l=i,i=arguments[a]||{},a++),"object"==typeof i||$.isFunction(i)||(i={}),a===s&&(i=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)r=i[t],n=e[t],i!==n&&(l&&n&&($.isPlainObject(n)||(o=Array.isArray(n)))?(r=o?(o=!1,r&&Array.isArray(r)?r:[]):r&&$.isPlainObject(r)?r:{},i[t]=$.extend(l,r,n)):void 0!==n&&(i[t]=n));return i},$.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===$.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=$.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){return!(!e||"[object Object]"!==G.call(e)||(e=Y(e))&&("function"!=typeof(e=R.call(e,"constructor")&&e.constructor)||H.call(e)!==B))},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[G.call(e)]||"object":typeof e},globalEval:function(e){F(e)},camelCase:function(e){return e.replace(Z,"ms-").replace(U,W)},each:function(e,t){var n,o=0;if(Q(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(X,"")},makeArray:function(e,t){t=t||[];return null!=e&&(Q(Object(e))?$.merge(t,"string"==typeof e?[e]:e):q.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,a=!n;r<i;r++)!t(e[r],r)!=a&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,a=[];if(Q(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&a.push(r);return O.apply([],a)},guid:1,proxy:function(e,t){var n,o;if("string"==typeof t&&(o=e[t],t=e,e=o),$.isFunction(e))return n=s.call(arguments,2),(o=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||$.guid++,o},now:Date.now,support:g}),"function"==typeof Symbol&&($.fn[Symbol.iterator]=e[Symbol.iterator]),$.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});function o(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&$(e).is(n))break;o.push(e)}return o}function J(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var t=(P=>{function d(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(65536+o):String.fromCharCode(o>>10|55296,1023&o|56320)}function Y(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function O(){C()}var e,p,b,i,q,h,G,R,w,l,c,C,$,n,k,g,o,r,m,T="sizzle"+ +new Date,v=P.document,D=0,H=0,B=de(),F=de(),y=de(),W=function(e,t){return e===t&&(c=!0),0},X={}.hasOwnProperty,t=[],Z=t.pop,U=t.push,M=t.push,Q=t.slice,x=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",V="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",_=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",K=new RegExp(a+"+","g"),S=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),ee=new RegExp("^"+a+"*,"+a+"*"),te=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ne=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),oe=new RegExp(_),re=new RegExp("^"+s+"$"),f={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ie=/^(?:input|select|textarea|button)$/i,ae=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,A=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig"),ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ue=I(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{M.apply(t=Q.call(v.childNodes),v.childNodes),t[v.childNodes.length].nodeType}catch(e){M={apply:t.length?function(e,t){U.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function E(e,t,n,o){var r,i,a,s,l,c,u,d=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!o&&((t?t.ownerDocument||t:v)!==$&&C(t),t=t||$,k)){if(11!==f&&(l=se.exec(e)))if(r=l[1]){if(9===f){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&m(t,a)&&a.id===r)return n.push(a),n}else{if(l[2])return M.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(r)),n}if(p.qsa&&!y[e+" "]&&(!g||!g.test(e))){if(1!==f)d=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(ce,Y):t.setAttribute("id",s=T),i=(c=h(e)).length;i--;)c[i]="#"+s+" "+N(c[i]);u=c.join(","),d=le.test(e)&&ge(t.parentNode)||t}if(u)try{return M.apply(n,d.querySelectorAll(u)),n}catch(e){}finally{s===T&&t.removeAttribute("id")}}}return R(e.replace(S,"$1"),t,n,o)}function de(){var n=[];function o(e,t){return n.push(e+" ")>b.cacheLength&&delete o[n.shift()],o[e+" "]=t}return o}function j(e){return e[T]=!0,e}function z(e){var t=$.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)b.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ue(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function L(a){return j(function(i){return i=+i,j(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=E.support={},q=E.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},C=E.setDocument=function(e){var e=e?e.ownerDocument||e:v;return e!==$&&9===e.nodeType&&e.documentElement&&(n=($=e).documentElement,k=!q($),v!==$&&(e=$.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",O,!1):e.attachEvent&&e.attachEvent("onunload",O)),p.attributes=z(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=z(function(e){return e.appendChild($.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=u.test($.getElementsByClassName),p.getById=z(function(e){return n.appendChild(e).id=T,!$.getElementsByName||!$.getElementsByName(T).length}),p.getById?(b.filter.ID=function(e){var t=e.replace(A,d);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&k)return(t=t.getElementById(e))?[t]:[]}):(b.filter.ID=function(e){var t=e.replace(A,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),b.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},b.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},o=[],g=[],(p.qsa=u.test($.querySelectorAll))&&(z(function(e){n.appendChild(e).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+a+"*(?:value|"+J+")"),e.querySelectorAll("[id~="+T+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]")}),z(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=$.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=u.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&z(function(e){p.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),o.push("!=",_)}),g=g.length&&new RegExp(g.join("|")),o=o.length&&new RegExp(o.join("|")),e=u.test(n.compareDocumentPosition),m=e||u.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=e?function(e,t){var n;return e===t?(c=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===$||e.ownerDocument===v&&m(v,e)?-1:t===$||t.ownerDocument===v&&m(v,t)?1:l?x(l,e)-x(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e===$?-1:t===$?1:r?-1:i?1:l?x(l,e)-x(l,t):0;if(r===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?pe(a[o],s[o]):a[o]===v?-1:s[o]===v?1:0}),$},E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(e,t){if((e.ownerDocument||e)!==$&&C(e),t=t.replace(ne,"='$1']"),p.matchesSelector&&k&&!y[t+" "]&&(!o||!o.test(t))&&(!g||!g.test(t)))try{var n=r.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<E(t,$,null,[e]).length},E.contains=function(e,t){return(e.ownerDocument||e)!==$&&C(e),m(e,t)},E.attr=function(e,t){(e.ownerDocument||e)!==$&&C(e);var n=b.attrHandle[t.toLowerCase()],n=n&&X.call(b.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==n?n:p.attributes||!k?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},E.escape=function(e){return(e+"").replace(ce,Y)},E.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],o=0,r=0;if(c=!p.detectDuplicates,l=!p.sortStable&&e.slice(0),e.sort(W),c){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return l=null,e},i=E.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=i(t);return n},(b=E.selectors={cacheLength:50,createPseudo:j,match:f,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(A,d),e[3]=(e[3]||e[4]||e[5]||"").replace(A,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||E.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&E.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&oe.test(n)&&(t=(t=h(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(A,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,o){return function(e){e=E.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===o:"!="===n?e!==o:"^="===n?o&&0===e.indexOf(o):"*="===n?o&&-1<e.indexOf(o):"$="===n?o&&e.slice(-o.length)===o:"~="===n?-1<(" "+e.replace(K," ")+" ").indexOf(o):"|="===n&&(e===o||e.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,e,t,g,m){var v="nth"!==h.slice(0,3),y="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var o,r,i,a,s,l,c=v!=y?"nextSibling":"previousSibling",u=e.parentNode,d=x&&e.nodeName.toLowerCase(),f=!n&&!x,p=!1;if(u){if(v){for(;c;){for(a=e;a=a[c];)if(x?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===h&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&f){for(p=(s=(o=(r=(i=(a=u)[T]||(a[T]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===D&&o[1])&&o[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0,l.pop());)if(1===a.nodeType&&++p&&a===e){r[h]=[D,s,p];break}}else if(!1===(p=f?s=(o=(r=(i=(a=e)[T]||(a[T]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===D&&o[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0,l.pop()))&&((x?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(f&&((r=(i=a[T]||(a[T]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]=[D,p]),a!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,i){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||E.error("unsupported pseudo: "+e);return a[T]?a(i):1<a.length?(t=[e,e,"",i],b.setFilters.hasOwnProperty(e.toLowerCase())?j(function(e,t){for(var n,o=a(e,i),r=o.length;r--;)e[n=x(e,o[r])]=!(t[n]=o[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:j(function(e){var o=[],r=[],s=G(e.replace(S,"$1"));return s[T]?j(function(e,t,n,o){for(var r,i=s(e,null,o,[]),a=e.length;a--;)(r=i[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return o[0]=e,s(o,null,n,r),o[0]=null,!r.pop()}}),has:j(function(t){return function(e){return 0<E(t,e).length}}),contains:j(function(t){return t=t.replace(A,d),function(e){return-1<(e.textContent||e.innerText||i(e)).indexOf(t)}}),lang:j(function(n){return re.test(n||"")||E.error("unsupported lang: "+n),n=n.replace(A,d).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=P.location&&P.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return ae.test(e.nodeName)},input:function(e){return ie.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var o=n<0?n+t:n;0<=--o;)e.push(o);return e}),gt:L(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(e);function me(){}function N(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function I(a,e,t){var s=e.dir,l=e.next,c=l||s,u=t&&"parentNode"===c,d=H++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||u)return a(e,t,n);return!1}:function(e,t,n){var o,r,i=[D,d];if(n){for(;e=e[s];)if((1===e.nodeType||u)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||u)if(r=(r=e[T]||(e[T]={}))[e.uniqueID]||(r[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[s]||e;else{if((o=r[c])&&o[0]===D&&o[1]===d)return i[2]=o[2];if((r[c]=i)[2]=a(e,t,n))return!0}return!1}}function ve(r){return 1<r.length?function(e,t,n){for(var o=r.length;o--;)if(!r[o](e,t,n))return!1;return!0}:r[0]}function ye(e,t,n,o,r){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)!(i=e[s])||n&&!n(i,o,r)||(a.push(i),c&&t.push(s));return a}function xe(p,h,g,m,v,e){return m&&!m[T]&&(m=xe(m)),v&&!v[T]&&(v=xe(v,e)),j(function(e,t,n,o){var r,i,a,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var o=0,r=t.length;o<r;o++)E(e,t[o],n);return n})(h||"*",n.nodeType?[n]:n,[]),d=!p||!e&&h?u:ye(u,s,p,n,o),f=g?v||(e?p:c||m)?[]:t:d;if(g&&g(d,f,n,o),m)for(r=ye(f,l),m(r,[],n,o),i=r.length;i--;)(a=r[i])&&(f[l[i]]=!(d[l[i]]=a));if(e){if(v||p){if(v){for(r=[],i=f.length;i--;)(a=f[i])&&r.push(d[i]=a);v(null,f=[],r,o)}for(i=f.length;i--;)(a=f[i])&&-1<(r=v?x(e,a):s[i])&&(e[r]=!(t[r]=a))}}else f=ye(f===t?f.splice(c,f.length):f),v?v(null,t,f,o):M.apply(t,f)})}function be(m,v){function e(e,t,n,o,r){var i,a,s,l=0,c="0",u=e&&[],d=[],f=w,p=e||x&&b.find.TAG("*",r),h=D+=null==f?1:Math.random()||.1,g=p.length;for(r&&(w=t===$||t||r);c!==g&&null!=(i=p[c]);c++){if(x&&i){for(a=0,t||i.ownerDocument===$||(C(i),n=!k);s=m[a++];)if(s(i,t||$,n)){o.push(i);break}r&&(D=h)}y&&((i=!s&&i)&&l--,e)&&u.push(i)}if(l+=c,y&&c!==l){for(a=0;s=v[a++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=Z.call(o));d=ye(d)}M.apply(o,d),r&&!e&&0<d.length&&1<l+v.length&&E.uniqueSort(o)}return r&&(D=h,w=f),u}var y=0<v.length,x=0<m.length;return y?j(e):e}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=E.tokenize=function(e,t){var n,o,r,i,a,s,l,c=F[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=b.preFilter;a;){for(i in n&&!(o=ee.exec(a))||(o&&(a=a.slice(o[0].length)||a),s.push(r=[])),n=!1,(o=te.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(S," ")}),a=a.slice(n.length)),b.filter)!(o=f[i].exec(a))||l[i]&&!(o=l[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?E.error(e):F(e,s).slice(0)},G=E.compile=function(e,t){var n,o=[],r=[],i=y[e+" "];if(!i){for(n=(t=t||h(e)).length;n--;)((i=function e(t){for(var o,n,r,i=t.length,a=b.relative[t[0].type],s=a||b.relative[" "],l=a?1:0,c=I(function(e){return e===o},s,!0),u=I(function(e){return-1<x(o,e)},s,!0),d=[function(e,t,n){return e=!a&&(n||t!==w)||((o=t).nodeType?c:u)(e,t,n),o=null,e}];l<i;l++)if(n=b.relative[t[l].type])d=[I(ve(d),n)];else{if((n=b.filter[t[l].type].apply(null,t[l].matches))[T]){for(r=++l;r<i&&!b.relative[t[r].type];r++);return xe(1<l&&ve(d),1<l&&N(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(S,"$1"),n,l<r&&e(t.slice(l,r)),r<i&&e(t=t.slice(r)),r<i&&N(t))}d.push(n)}return ve(d)}(t[n]))[T]?o:r).push(i);(i=y(e,be(r,o))).selector=e}return i},R=E.select=function(e,t,n,o){var r,i,a,s,l,c="function"==typeof e&&e,u=!o&&h(e=c.selector||e);if(n=n||[],1===u.length){if(2<(i=u[0]=u[0].slice(0)).length&&"ID"===(a=i[0]).type&&9===t.nodeType&&k&&b.relative[i[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(A,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=f.needsContext.test(e)?0:i.length;r--&&(a=i[r],!b.relative[s=a.type]);)if((l=b.find[s])&&(o=l(a.matches[0].replace(A,d),le.test(i[0].type)&&ge(t.parentNode)||t))){if(i.splice(r,1),e=o.length&&N(i))break;return M.apply(n,o),n}}return(c||G(e,u))(o,t,!k,n,!t||le.test(e)&&ge(t.parentNode)||t),n},p.sortStable=T.split("").sort(W).join("")===T,p.detectDuplicates=!!c,C(),p.sortDetached=z(function(e){return 1&e.compareDocumentPosition($.createElement("fieldset"))}),z(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&z(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),z(function(e){return null==e.getAttribute("disabled")})||fe(J,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),E})(w),V=($.find=t,$.expr=t.selectors,$.expr[":"]=$.expr.pseudos,$.uniqueSort=$.unique=t.uniqueSort,$.text=t.getText,$.isXMLDoc=t.isXML,$.contains=t.contains,$.escapeSelector=t.escape,$.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var _=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,K=/^.[^:#\[\.,]*$/;function ee(e,n,o){return $.isFunction(n)?$.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?$.grep(e,function(e){return e===n!==o}):"string"!=typeof n?$.grep(e,function(e){return-1<r.call(n,e)!==o}):K.test(n)?$.filter(n,e,o):(n=$.filter(n,e),$.grep(e,function(e){return-1<r.call(n,e)!==o&&1===e.nodeType}))}$.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?$.find.matchesSelector(o,e)?[o]:[]:$.find.matches(e,$.grep(t,function(e){return 1===e.nodeType}))},$.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack($(e).filter(function(){for(t=0;t<o;t++)if($.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)$.find(e,r[t],n);return 1<o?$.uniqueSort(n):n},filter:function(e){return this.pushStack(ee(this,e||[],!1))},not:function(e){return this.pushStack(ee(this,e||[],!0))},is:function(e){return!!ee(this,"string"==typeof e&&V.test(e)?$(e):e||[],!1).length}});var te,ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,oe=(($.fn.init=function(e,t,n){if(e){if(n=n||te,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):$.isFunction(e)?void 0!==n.ready?n.ready(e):e($):$.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ne.exec(e))||!o[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(o[1]){if(t=t instanceof $?t[0]:t,$.merge(this,$.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),_.test(o[1])&&$.isPlainObject(t))for(var o in t)$.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o])}else(n=C.getElementById(o[2]))&&(this[0]=n,this.length=1)}return this}).prototype=$.fn,te=$(C),/^(?:parents|prev(?:Until|All))/),re={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}$.fn.extend({has:function(e){var t=$(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if($.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&$(e);if(!V.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&$.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?$.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?r.call($(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack($.uniqueSort($.merge(this.get(),$(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),$.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return o(e,"parentNode")},parentsUntil:function(e,t,n){return o(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return o(e,"nextSibling")},prevAll:function(e){return o(e,"previousSibling")},nextUntil:function(e,t,n){return o(e,"nextSibling",n)},prevUntil:function(e,t,n){return o(e,"previousSibling",n)},siblings:function(e){return J((e.parentNode||{}).firstChild,e)},children:function(e){return J(e.firstChild)},contents:function(e){return l(e,"iframe")?e.contentDocument:(l(e,"template")&&(e=e.content||e),$.merge([],e.childNodes))}},function(o,r){$.fn[o]=function(e,t){var n=$.map(this,r,e);return(t="Until"!==o.slice(-5)?e:t)&&"string"==typeof t&&(n=$.filter(t,n)),1<this.length&&(re[o]||$.uniqueSort(n),oe.test(o))&&n.reverse(),this.pushStack(n)}});var k=/[^\x20\t\r\n\f]+/g;function u(e){return e}function ae(e){throw e}function se(e,t,n,o){var r;try{e&&$.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&$.isFunction(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}$.Callbacks=function(o){var e,n;o="string"==typeof o?(e=o,n={},$.each(e.match(k)||[],function(e,t){n[t]=!0}),n):$.extend({},o);function r(){for(s=s||o.once,a=i=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&o.stopOnFalse&&(u=l.length,t=!1);o.memory||(t=!1),i=!1,s&&(l=t?[]:"")}var i,t,a,s,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!i&&(u=l.length-1,c.push(t)),function n(e){$.each(e,function(e,t){$.isFunction(t)?o.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==$.type(t)&&n(t)})}(arguments),t)&&!i&&r(),this},remove:function(){return $.each(arguments,function(e,t){for(var n;-1<(n=$.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<$.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=c=[],t||i||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),i)||r(),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},$.extend({Deferred:function(e){var i=[["notify","progress",$.Callbacks("memory"),$.Callbacks("memory"),2],["resolve","done",$.Callbacks("once memory"),$.Callbacks("once memory"),0,"resolved"],["reject","fail",$.Callbacks("once memory"),$.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return $.Deferred(function(o){$.each(i,function(e,t){var n=$.isFunction(r[t[4]])&&r[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&$.isFunction(e.promise)?e.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,o){var l=0;function c(r,i,a,s){return function(){function e(){var e,t;if(!(r<l)){if((e=a.apply(n,o))===i.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,$.isFunction(t)?s?t.call(e,c(l,i,u,s),c(l,i,ae,s)):(l++,t.call(e,c(l,i,u,s),c(l,i,ae,s),c(l,i,u,i.notifyWith))):(a!==u&&(n=void 0,o=[e]),(s||i.resolveWith)(n,o))}}var n=this,o=arguments,t=s?e:function(){try{e()}catch(e){$.Deferred.exceptionHook&&$.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(a!==ae&&(n=void 0,o=[e]),i.rejectWith(n,o))}};r?t():($.Deferred.getStackHook&&(t.stackTrace=$.Deferred.getStackHook()),w.setTimeout(t))}}return $.Deferred(function(e){i[0][3].add(c(0,e,$.isFunction(o)?o:u,e.notifyWith)),i[1][3].add(c(0,e,$.isFunction(t)?t:u)),i[2][3].add(c(0,e,$.isFunction(n)?n:ae))}).promise()},promise:function(e){return null!=e?$.extend(e,a):a}},s={};return $.each(i,function(e,t){var n=t[2],o=t[5];a[t[1]]=n.add,o&&n.add(function(){r=o},i[3-e][2].disable,i[0][2].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(r,i)}}var n=arguments.length,o=n,r=Array(o),i=s.call(arguments),a=$.Deferred();if(n<=1&&(se(e,a.done(t(o)).resolve,a.reject,!n),"pending"===a.state()||$.isFunction(i[o]&&i[o].then)))return a.then();for(;o--;)se(i[o],t(o),a.reject);return a.promise()}});var le=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ce=($.Deferred.exceptionHook=function(e,t){w.console&&w.console.warn&&e&&le.test(e.name)&&w.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},$.readyException=function(e){w.setTimeout(function(){throw e})},$.Deferred());function ue(){C.removeEventListener("DOMContentLoaded",ue),w.removeEventListener("load",ue),$.ready()}$.fn.ready=function(e){return ce.then(e).catch(function(e){$.readyException(e)}),this},$.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--$.readyWait:$.isReady)||($.isReady=!0)!==e&&0<--$.readyWait||ce.resolveWith(C,[$])}}),$.ready.then=ce.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?w.setTimeout($.ready):(C.addEventListener("DOMContentLoaded",ue),w.addEventListener("load",ue));function d(e,t,n,o,r,i,a){var s=0,l=e.length,c=null==n;if("object"===$.type(n))for(s in r=!0,n)d(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,$.isFunction(o)||(a=!0),t=c?a?(t.call(e,o),null):(c=t,function(e,t,n){return c.call($(e),n)}):t))for(;s<l;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):i}function de(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function i(){this.expando=$.expando+i.uid++}i.uid=1,i.prototype={cache:function(e){var t=e[this.expando];return t||(t={},de(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[$.camelCase(t)]=n;else for(o in t)r[$.camelCase(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map($.camelCase):(t=$.camelCase(t))in o?[t]:t.match(k)||[]).length;for(;n--;)delete o[t[n]]}void 0!==t&&!$.isEmptyObject(o)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!$.isEmptyObject(e)}};var v=new i,c=new i,fe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,pe=/[A-Z]/g;function he(e,t,n){var o,r;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(pe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:fe.test(r)?JSON.parse(r):r)}catch(e){}c.set(e,t,n)}else n=void 0;return n}$.extend({hasData:function(e){return c.hasData(e)||v.hasData(e)},data:function(e,t,n){return c.access(e,t,n)},removeData:function(e,t){c.remove(e,t)},_data:function(e,t,n){return v.access(e,t,n)},_removeData:function(e,t){v.remove(e,t)}}),$.fn.extend({data:function(n,e){var t,o,r,i=this[0],a=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){c.set(this,n)}):d(this,function(e){var t;if(i&&void 0===e)return void 0!==(t=c.get(i,n))||void 0!==(t=he(i,n))?t:void 0;this.each(function(){c.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=c.get(i),1===i.nodeType)&&!v.get(i,"hasDataAttrs")){for(t=a.length;t--;)a[t]&&0===(o=a[t].name).indexOf("data-")&&(o=$.camelCase(o.slice(5)),he(i,o,r[o]));v.set(i,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){c.remove(this,e)})}}),$.extend({queue:function(e,t,n){var o;if(e)return o=v.get(e,t=(t||"fx")+"queue"),n&&(!o||Array.isArray(n)?o=v.access(e,t,$.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=$.queue(e,t),o=n.length,r=n.shift(),i=$._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){$.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v.get(e,n)||v.access(e,n,{empty:$.Callbacks("once memory").add(function(){v.remove(e,[t+"queue",n])})})}}),$.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?$.queue(this[0],t):void 0===n?this:this.each(function(){var e=$.queue(this,t,n);$._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&$.dequeue(this,t)})},dequeue:function(e){return this.each(function(){$.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||i.resolveWith(a,[a])}var o,r=1,i=$.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(o=v.get(a[s],e+"queueHooks"))&&o.empty&&(r++,o.empty.add(n));return n(),i.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&$.contains(e.ownerDocument,e)&&"none"===$.css(e,"display")}function me(e,t,n,o){var r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in n=n.apply(e,o||[]),t)e.style[r]=i[r];return n}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,f=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"];function ve(e,t,n,o){var r,i=1,a=20,s=o?function(){return o.cur()}:function(){return $.css(e,t,"")},l=s(),c=n&&n[3]||($.cssNumber[t]?"":"px"),u=($.cssNumber[t]||"px"!==c&&+l)&&f.exec($.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;$.style(e,t,(u/=i=i||".5")+c),i!==(i=s()/l)&&1!==i&&--a;);return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],o)&&(o.unit=c,o.start=u,o.end=r),r}var ye={};function m(e,t){for(var n,o,r,i,a,s=[],l=0,c=e.length;l<c;l++)(o=e[l]).style&&(n=o.style.display,t?("none"===n&&(s[l]=v.get(o,"display")||null,s[l]||(o.style.display="")),""===o.style.display&&ge(o)&&(s[l]=(a=i=void 0,i=(r=o).ownerDocument,(a=ye[r=r.nodeName])||(i=i.body.appendChild(i.createElement(r)),a=$.css(i,"display"),i.parentNode.removeChild(i),ye[r]=a="none"===a?"block":a)))):"none"!==n&&(s[l]="none",v.set(o,"display",n)));for(l=0;l<c;l++)null!=s[l]&&(e[l].style.display=s[l]);return e}$.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?$(this).show():$(this).hide()})}});var xe=/^(?:checkbox|radio)$/i,be=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,we=/^$|\/(?:java|ecma)script/i,h={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function y(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?$.merge([e],n):n}function Ce(e,t){for(var n=0,o=e.length;n<o;n++)v.set(e[n],"globalEval",!t||v.get(t[n],"globalEval"))}h.optgroup=h.option,h.tbody=h.tfoot=h.colgroup=h.caption=h.thead,h.th=h.td;var $e=/<|&#?\w+;/;function ke(e,t,n,o,r){for(var i,a,s,l,c,u=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((i=e[f])||0===i)if("object"===$.type(i))$.merge(d,i.nodeType?[i]:i);else if($e.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(be.exec(i)||["",""])[1].toLowerCase(),s=h[s]||h._default,a.innerHTML=s[1]+$.htmlPrefilter(i)+s[2],c=s[0];c--;)a=a.lastChild;$.merge(d,a.childNodes),(a=u.firstChild).textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",f=0;i=d[f++];)if(o&&-1<$.inArray(i,o))r&&r.push(i);else if(l=$.contains(i.ownerDocument,i),a=y(u.appendChild(i),"script"),l&&Ce(a),n)for(c=0;i=a[c++];)we.test(i.type||"")&&n.push(i);return u}t=C.createDocumentFragment().appendChild(C.createElement("div")),(A=C.createElement("input")).setAttribute("type","radio"),A.setAttribute("checked","checked"),A.setAttribute("name","t"),t.appendChild(A),g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue;var Te=C.documentElement,De=/^key/,Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function x(){return!1}function Ee(){try{return C.activeElement}catch(e){}}function je(e,t,n,o,r,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)je(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=x;else if(!r)return e;return 1===i&&(a=r,(r=function(e){return $().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=$.guid++)),e.each(function(){$.event.add(this,t,r,o,n)})}$.event={global:{},add:function(t,e,n,o,r){var i,a,s,l,c,u,d,f,p,h=v.get(t);if(h)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&$.find.matchesSelector(Te,r),n.guid||(n.guid=$.guid++),s=(s=h.events)||(h.events={}),a=(a=h.handle)||(h.handle=function(e){return void 0!==$&&$.event.triggered!==e.type?$.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(k)||[""]).length;l--;)d=p=(f=Se.exec(e[l])||[])[1],f=(f[2]||"").split(".").sort(),d&&(c=$.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,c=$.event.special[d]||{},p=$.extend({type:d,origType:p,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&$.expr.match.needsContext.test(r),namespace:f.join(".")},i),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,o,f,a))||t.addEventListener&&t.addEventListener(d,a),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,p):u.push(p),$.event.global[d]=!0)},remove:function(e,t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,m=v.hasData(e)&&v.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(k)||[""]).length;c--;)if(p=g=(s=Se.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=$.event.special[p]||{},f=l[p=(o?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||$.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)$.event.remove(e,p+t[c],n,o,!0);$.isEmptyObject(l)&&v.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a=$.event.fix(e),s=new Array(arguments.length),e=(v.get(this,"events")||{})[a.type]||[],l=$.event.special[a.type]||{};for(s[0]=a,t=1;t<arguments.length;t++)s[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(i=$.event.handlers.call(this,a,e),t=0;(o=i[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(r=(($.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(a.result=r)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,o,r,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?-1<$(r,this).index(c):$.find(r,this,null,[c]).length),a[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty($.Event.prototype,t,{enumerable:!0,configurable:!0,get:$.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[$.expando]?e:new $.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ee()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ee()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&l(this,"input"))return this.click(),!1},_default:function(e){return l(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},$.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},$.Event=function(e,t){return this instanceof $.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:x,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&$.extend(this,t),this.timeStamp=e&&e.timeStamp||$.now(),void(this[$.expando]=!0)):new $.Event(e,t)},$.Event.prototype={constructor:$.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},$.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&De.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Me.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},$.event.addProp),$.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){$.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,o=e.handleObj;return n&&(n===this||$.contains(this,n))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=r),t}}}),$.fn.extend({on:function(e,t,n,o){return je(this,e,t,n,o)},one:function(e,t,n,o){return je(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)o=e.handleObj,$(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=x),this.each(function(){$.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r])}return this}});var ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^true\/(.*)/,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ye(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&$(">tbody",e)[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){var t=Ie.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ge(e,t){var n,o,r,i,a,s;if(1===t.nodeType){if(v.hasData(e)&&(i=v.access(e),a=v.set(t,i),s=i.events))for(r in delete a.handle,a.events={},s)for(n=0,o=s[r].length;n<o;n++)$.event.add(t,r,s[r][n]);c.hasData(e)&&(i=c.access(e),a=$.extend({},i),c.set(t,a))}}function b(n,o,r,i){o=O.apply([],o);var e,t,a,s,l,c,u=0,d=n.length,f=d-1,p=o[0],h=$.isFunction(p);if(h||1<d&&"string"==typeof p&&!g.checkClone&&Ne.test(p))return n.each(function(e){var t=n.eq(e);h&&(o[0]=p.call(this,e,t.html())),b(t,o,r,i)});if(d&&(t=(e=ke(o,n[0].ownerDocument,!1,n,i)).firstChild,1===e.childNodes.length&&(e=t),t||i)){for(s=(a=$.map(y(e,"script"),Oe)).length;u<d;u++)l=e,u!==f&&(l=$.clone(l,!0,!0),s)&&$.merge(a,y(l,"script")),r.call(n[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,$.map(a,qe),u=0;u<s;u++)l=a[u],we.test(l.type||"")&&!v.access(l,"globalEval")&&$.contains(c,l)&&(l.src?$._evalUrl&&$._evalUrl(l.src):F(l.textContent.replace(Pe,""),c))}return n}function Re(e,t,n){for(var o,r=t?$.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||$.cleanData(y(o)),o.parentNode&&(n&&$.contains(o.ownerDocument,o)&&Ce(y(o,"script")),o.parentNode.removeChild(o));return e}$.extend({htmlPrefilter:function(e){return e.replace(ze,"<$1></$2>")},clone:function(e,t,n){var o,r,i,a,s,l,c,u=e.cloneNode(!0),d=$.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||$.isXMLDoc(e)))for(a=y(u),o=0,r=(i=y(e)).length;o<r;o++)s=i[o],l=a[o],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&xe.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||y(e),a=a||y(u),o=0,r=i.length;o<r;o++)Ge(i[o],a[o]);else Ge(e,u);return 0<(a=y(u,"script")).length&&Ce(a,!d&&y(e,"script")),u},cleanData:function(e){for(var t,n,o,r=$.event.special,i=0;void 0!==(n=e[i]);i++)if(de(n)){if(t=n[v.expando]){if(t.events)for(o in t.events)r[o]?$.event.remove(n,o):$.removeEvent(n,o,t.handle);n[v.expando]=void 0}n[c.expando]&&(n[c.expando]=void 0)}}}),$.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return d(this,function(e){return void 0===e?$.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return b(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ye(this,e).appendChild(e)})},prepend:function(){return b(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ye(this,e)).insertBefore(e,t.firstChild)})},before:function(){return b(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return b(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&($.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return $.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!h[(be.exec(e)||["",""])[1].toLowerCase()]){e=$.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&($.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return b(this,arguments,function(e){var t=this.parentNode;$.inArray(this,n)<0&&($.cleanData(y(this)),t)&&t.replaceChild(e,this)},n)}}),$.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){$.fn[e]=function(e){for(var t,n=[],o=$(e),r=o.length-1,i=0;i<=r;i++)t=i===r?this:this.clone(!0),$(o[i])[a](t),q.apply(n,t.get());return this.pushStack(n)}});function He(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:w).getComputedStyle(e)}var Be,Fe,We,Xe,a,T,Ze=/^margin/,Ue=new RegExp("^("+e+")(?!px)[a-z%]+$","i");function Qe(){var e;T&&(T.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",T.innerHTML="",Te.appendChild(a),e=w.getComputedStyle(T),Be="1%"!==e.top,Xe="2px"===e.marginLeft,Fe="4px"===e.width,T.style.marginRight="50%",We="4px"===e.marginRight,Te.removeChild(a),T=null)}function D(e,t,n){var o,r,i=e.style;return(n=n||He(e))&&(""!==(r=n.getPropertyValue(t)||n[t])||$.contains(e.ownerDocument,e)||(r=$.style(e,t)),!g.pixelMarginRight())&&Ue.test(r)&&Ze.test(t)&&(e=i.width,t=i.minWidth,o=i.maxWidth,i.minWidth=i.maxWidth=i.width=r,r=n.width,i.width=e,i.minWidth=t,i.maxWidth=o),void 0!==r?r+"":r}function Je(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}a=C.createElement("div"),(T=C.createElement("div")).style&&(T.style.backgroundClip="content-box",T.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===T.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(T),$.extend(g,{pixelPosition:function(){return Qe(),Be},boxSizingReliable:function(){return Qe(),Fe},pixelMarginRight:function(){return Qe(),We},reliableMarginLeft:function(){return Qe(),Xe}}));var Ve=/^(none|table(?!-c[ea]).+)/,_e=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"},tt=["Webkit","Moz","ms"],nt=C.createElement("div").style;function ot(e){return $.cssProps[e]||($.cssProps[e]=(e=>{if(e in nt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e})(e)||e)}function rt(e,t,n){var o=f.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function it(e,t,n,o,r){for(var i=0,a=n===(o?"border":"content")?4:"width"===t?1:0;a<4;a+=2)"margin"===n&&(i+=$.css(e,n+p[a],!0,r)),o?("content"===n&&(i-=$.css(e,"padding"+p[a],!0,r)),"margin"!==n&&(i-=$.css(e,"border"+p[a]+"Width",!0,r))):(i+=$.css(e,"padding"+p[a],!0,r),"padding"!==n&&(i+=$.css(e,"border"+p[a]+"Width",!0,r)));return i}function at(e,t,n){var o,r=He(e),i=D(e,t,r),a="border-box"===$.css(e,"boxSizing",!1,r);return Ue.test(i)?i:(o=a&&(g.boxSizingReliable()||i===e.style[t]),"auto"===i&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)]),(i=parseFloat(i)||0)+it(e,t,n||(a?"border":"content"),o,r)+"px")}function M(e,t,n,o,r){return new M.prototype.init(e,t,n,o,r)}$.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=D(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,o){var r,i,a,s,l,c;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return s=$.camelCase(t),l=_e.test(t),c=e.style,l||(t=ot(s)),a=$.cssHooks[t]||$.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:c[t]:("string"===(i=typeof n)&&(r=f.exec(n))&&r[1]&&(n=ve(e,t,r),i="number"),void(null!=n&&n==n&&("number"===i&&(n+=r&&r[3]||($.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l?c.setProperty(t,n):c[t]=n))))},css:function(e,t,n,o){var r,i=$.camelCase(t);return _e.test(t)||(t=ot(i)),"normal"===(r=void 0===(r=(i=$.cssHooks[t]||$.cssHooks[i])&&"get"in i?i.get(e,!0,n):r)?D(e,t,o):r)&&t in et&&(r=et[t]),(""===n||n)&&(i=parseFloat(r),!0===n||isFinite(i))?i||0:r}}),$.each(["height","width"],function(e,r){$.cssHooks[r]={get:function(e,t,n){if(t)return!Ve.test($.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,r,n):me(e,Ke,function(){return at(e,r,n)})},set:function(e,t,n){var o=n&&He(e),n=n&&it(e,r,n,"border-box"===$.css(e,"boxSizing",!1,o),o);return n&&(o=f.exec(t))&&"px"!==(o[3]||"px")&&(e.style[r]=t,t=$.css(e,r)),rt(0,t,n)}}}),$.cssHooks.marginLeft=Je(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(D(e,"marginLeft"))||e.getBoundingClientRect().left-me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),$.each({margin:"",padding:"",border:"Width"},function(r,i){$.cssHooks[r+i]={expand:function(e){for(var t=0,n={},o="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+p[t]+i]=o[t]||o[t-2]||o[0];return n}},Ze.test(r)||($.cssHooks[r+i].set=rt)}),$.fn.extend({css:function(e,t){return d(this,function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=He(e),r=t.length;a<r;a++)i[t[a]]=$.css(e,t[a],!1,o);return i}return void 0!==n?$.style(e,t,n):$.css(e,t)},e,t,1<arguments.length)}}),(($.Tween=M).prototype={constructor:M,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||$.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||($.cssNumber[n]?"":"px")},cur:function(){var e=M.propHooks[this.prop];return(e&&e.get?e:M.propHooks._default).get(this)},run:function(e){var t,n=M.propHooks[this.prop];return this.options.duration?this.pos=t=$.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:M.propHooks._default).set(this),this}}).init.prototype=M.prototype,(M.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=$.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){$.fx.step[e.prop]?$.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[$.cssProps[e.prop]]&&!$.cssHooks[e.prop]?e.elem[e.prop]=e.now:$.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},$.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},$.fx=M.prototype.init,$.fx.step={};var S,st,A,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===C.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(ut):w.setTimeout(ut,$.fx.interval),$.fx.tick())}function dt(){return w.setTimeout(function(){S=void 0}),S=$.now()}function ft(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=p[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function pt(e,t,n){for(var o,r=(E.tweeners[t]||[]).concat(E.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function E(r,e,t){var n,i,o,a,s,l,c,u=0,d=E.prefilters.length,f=$.Deferred().always(function(){delete p.elem}),p=function(){if(i)return!1;for(var e=S||dt(),e=Math.max(0,h.startTime+h.duration-e),t=1-(e/h.duration||0),n=0,o=h.tweens.length;n<o;n++)h.tweens[n].run(t);return f.notifyWith(r,[h,t,e]),t<1&&o?e:(o||f.notifyWith(r,[h,1,0]),f.resolveWith(r,[h]),!1)},h=f.promise({elem:r,props:$.extend({},e),opts:$.extend(!0,{specialEasing:{},easing:$.easing._default},t),originalProperties:e,originalOptions:t,startTime:S||dt(),duration:t.duration,tweens:[],createTween:function(e,t){t=$.Tween(r,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(t),t},stop:function(e){var t=0,n=e?h.tweens.length:0;if(!i){for(i=!0;t<n;t++)h.tweens[t].run(1);e?(f.notifyWith(r,[h,1,0]),f.resolveWith(r,[h,e])):f.rejectWith(r,[h,e])}return this}}),g=h.props,m=g,v=h.opts.specialEasing;for(o in m)if(a=$.camelCase(o),s=v[a],l=m[o],Array.isArray(l)&&(s=l[1],l=m[o]=l[0]),o!==a&&(m[a]=l,delete m[o]),c=$.cssHooks[a],c&&"expand"in c)for(o in l=c.expand(l),delete m[a],l)o in m||(m[o]=l[o],v[o]=s);else v[a]=s;for(;u<d;u++)if(n=E.prefilters[u].call(h,r,g,h.opts))return $.isFunction(n.stop)&&($._queueHooks(h.elem,h.opts.queue).stop=$.proxy(n.stop,n)),n;return $.map(g,pt,h),$.isFunction(h.opts.start)&&h.opts.start.call(r,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),$.fx.timer($.extend(p,{elem:r,anim:h,queue:h.opts.queue})),h}$.Animation=$.extend(E,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ve(n.elem,e,f.exec(t),n),n}]},tweener:function(e,t){for(var n,o=0,r=(e=$.isFunction(e)?(t=e,["*"]):e.match(k)).length;o<r;o++)n=e[o],E.tweeners[n]=E.tweeners[n]||[],E.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,a,s,l,c,u="width"in t||"height"in t,d=this,f={},p=e.style,h=e.nodeType&&ge(e),g=v.get(e,"fxshow");for(o in n.queue||(null==(a=$._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,$.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[o],lt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!g||void 0===g[o])continue;h=!0}f[o]=g&&g[o]||$.style(e,o)}if((l=!$.isEmptyObject(t))||!$.isEmptyObject(f))for(o in u&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=v.get(e,"display")),"none"===(u=$.css(e,"display"))&&(c?u=c:(m([e],!0),c=e.style.display||c,u=$.css(e,"display"),m([e]))),"inline"===u||"inline-block"===u&&null!=c)&&"none"===$.css(e,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block"),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(h=g.hidden):g=v.access(e,"fxshow",{display:c}),i&&(g.hidden=!h),h&&m([e],!0),d.done(function(){for(o in h||m([e]),v.remove(e,"fxshow"),f)$.style(e,o,f[o])})),l=pt(h?g[o]:0,o,d),o in g||(g[o]=l.start,h&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?E.prefilters.unshift(e):E.prefilters.push(e)}}),$.speed=function(e,t,n){var o=e&&"object"==typeof e?$.extend({},e):{complete:n||!n&&t||$.isFunction(e)&&e,duration:e,easing:n&&t||t&&!$.isFunction(t)&&t};return $.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in $.fx.speeds?o.duration=$.fx.speeds[o.duration]:o.duration=$.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){$.isFunction(o.old)&&o.old.call(this),o.queue&&$.dequeue(this,o.queue)},o},$.fn.extend({fadeTo:function(e,t,n,o){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(t,e,n,o){function r(){var e=E(this,$.extend({},t),a);(i||v.get(this,"finish"))&&e.stop(!0)}var i=$.isEmptyObject(t),a=$.speed(e,n,o);return r.finish=r,i||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,i){function a(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof r&&(i=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=$.timers,o=v.get(this);if(t)o[t]&&o[t].stop&&a(o[t]);else for(t in o)o[t]&&o[t].stop&&ct.test(t)&&a(o[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||$.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=v.get(this),n=t[a+"queue"],o=t[a+"queueHooks"],r=$.timers,i=n?n.length:0;for(t.finish=!0,$.queue(this,a,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),$.each(["toggle","show","hide"],function(e,o){var r=$.fn[o];$.fn[o]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(ft(o,!0),e,t,n)}}),$.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,o){$.fn[e]=function(e,t,n){return this.animate(o,e,t,n)}}),$.timers=[],$.fx.tick=function(){var e,t=0,n=$.timers;for(S=$.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||$.fx.stop(),S=void 0},$.fx.timer=function(e){$.timers.push(e),$.fx.start()},$.fx.interval=13,$.fx.start=function(){st||(st=!0,ut())},$.fx.stop=function(){st=null},$.fx.speeds={slow:600,fast:200,_default:400},$.fn.delay=function(o,e){return o=$.fx&&$.fx.speeds[o]||o,this.queue(e=e||"fx",function(e,t){var n=w.setTimeout(e,o);t.stop=function(){w.clearTimeout(n)}})},A=C.createElement("input"),t=C.createElement("select").appendChild(C.createElement("option")),A.type="checkbox",g.checkOn=""!==A.value,g.optSelected=t.selected,(A=C.createElement("input")).value="t",A.type="radio",g.radioValue="t"===A.value;var ht,j=$.expr.attrHandle,gt=($.fn.extend({attr:function(e,t){return d(this,$.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){$.removeAttr(this,e)})}}),$.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?$.prop(e,t,n):(1===i&&$.isXMLDoc(e)||(r=$.attrHooks[t.toLowerCase()]||($.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void $.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):!(r&&"get"in r&&null!==(o=r.get(e,t)))&&null==(o=$.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&l(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(k);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?$.removeAttr(e,n):e.setAttribute(n,n),n}},$.each($.expr.match.bool.source.match(/\w+/g),function(e,t){var a=j[t]||$.find.attr;j[t]=function(e,t,n){var o,r,i=t.toLowerCase();return n||(r=j[i],j[i]=o,o=null!=a(e,t,n)?i:null,j[i]=r),o}}),/^(?:input|select|textarea|button)$/i),mt=/^(?:a|area)$/i;function z(e){return(e.match(k)||[]).join(" ")}function L(e){return e.getAttribute&&e.getAttribute("class")||""}$.fn.extend({prop:function(e,t){return d(this,$.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[$.propFix[e]||e]})}}),$.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&$.isXMLDoc(e)||(t=$.propFix[t]||t,r=$.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=$.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||($.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),$.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){$.propFix[this.toLowerCase()]=this}),$.fn.extend({addClass:function(t){var e,n,o,r,i,a,s=0;if($.isFunction(t))return this.each(function(e){$(this).addClass(t.call(this,e,L(this)))});if("string"==typeof t&&t)for(e=t.match(k)||[];n=this[s++];)if(a=L(n),o=1===n.nodeType&&" "+z(a)+" "){for(i=0;r=e[i++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");a!==(a=z(o))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,o,r,i,a,s=0;if($.isFunction(t))return this.each(function(e){$(this).removeClass(t.call(this,e,L(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(k)||[];n=this[s++];)if(a=L(n),o=1===n.nodeType&&" "+z(a)+" "){for(i=0;r=e[i++];)for(;-1<o.indexOf(" "+r+" ");)o=o.replace(" "+r+" "," ");a!==(a=z(o))&&n.setAttribute("class",a)}return this},toggleClass:function(r,t){var i=typeof r;return"boolean"==typeof t&&"string"==i?t?this.addClass(r):this.removeClass(r):$.isFunction(r)?this.each(function(e){$(this).toggleClass(r.call(this,e,L(this),t),t)}):this.each(function(){var e,t,n,o;if("string"==i)for(t=0,n=$(this),o=r.match(k)||[];e=o[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=i||((e=L(this))&&v.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&v.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,o=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+z(L(t))+" ").indexOf(o))return!0;return!1}});var vt=/\r/g,yt=($.fn.extend({val:function(t){var n,e,o,r=this[0];return arguments.length?(o=$.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=o?t.call(this,e,$(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=$.map(e,function(e){return null==e?"":e+""})),(n=$.valHooks[this.type]||$.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=$.valHooks[r.type]||$.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(vt,""):null==e?"":e:void 0}}),$.extend({valHooks:{option:{get:function(e){var t=$.find.attr(e,"value");return null!=t?t:z($.text(e))}},select:{get:function(e){for(var t,n=e.options,o=e.selectedIndex,r="select-one"===e.type,i=r?null:[],a=r?o+1:n.length,s=o<0?a:r?o:0;s<a;s++)if(((t=n[s]).selected||s===o)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=$(t).val(),r)return t;i.push(t)}return i},set:function(e,t){for(var n,o,r=e.options,i=$.makeArray(t),a=r.length;a--;)((o=r[a]).selected=-1<$.inArray($.valHooks.option.get(o),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),$.each(["radio","checkbox"],function(){$.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<$.inArray($(e).val(),t)}},g.checkOn||($.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),/^(?:focusinfocus|focusoutblur)$/),N=($.extend($.event,{trigger:function(e,t,n,o){var r,i,a,s,l,c,u=[n||C],d=R.call(e,"type")?e.type:e,f=R.call(e,"namespace")?e.namespace.split("."):[],p=i=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!yt.test(d+$.event.triggered)&&(-1<d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),s=d.indexOf(":")<0&&"on"+d,(e=e[$.expando]?e:new $.Event(d,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:$.makeArray(t,[e]),c=$.event.special[d]||{},o||!c.trigger||!1!==c.trigger.apply(n,t))){if(!o&&!c.noBubble&&!$.isWindow(n)){for(a=c.delegateType||d,yt.test(a+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),i=p;i===(n.ownerDocument||C)&&u.push(i.defaultView||i.parentWindow||w)}for(r=0;(p=u[r++])&&!e.isPropagationStopped();)e.type=1<r?a:c.bindType||d,(l=(v.get(p,"events")||{})[e.type]&&v.get(p,"handle"))&&l.apply(p,t),(l=s&&p[s])&&l.apply&&de(p)&&(e.result=l.apply(p,t),!1===e.result)&&e.preventDefault();return e.type=d,o||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!de(n)||s&&$.isFunction(n[d])&&!$.isWindow(n)&&((i=n[s])&&(n[s]=null),n[$.event.triggered=d](),$.event.triggered=void 0,i)&&(n[s]=i),e.result}},simulate:function(e,t,n){n=$.extend(new $.Event,n,{type:e,isSimulated:!0});$.event.trigger(n,null,t)}}),$.fn.extend({trigger:function(e,t){return this.each(function(){$.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return $.event.trigger(e,t,n,!0)}}),$.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){$.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),$.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in w,g.focusin||$.each({focus:"focusin",blur:"focusout"},function(n,o){function r(e){$.event.simulate(o,e.target,$.event.fix(e))}$.event.special[o]={setup:function(){var e=this.ownerDocument||this,t=v.access(e,o);t||e.addEventListener(n,r,!0),v.access(e,o,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=v.access(e,o)-1;t?v.access(e,o,t):(e.removeEventListener(n,r,!0),v.remove(e,o))}}}),w.location),xt=$.now(),bt=/\?/,wt=($.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||$.error("Invalid XML: "+e),t},/\[\]$/),Ct=/\r?\n/g,$t=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;$.param=function(e,t){function n(e,t){t=$.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var o,r=[];if(Array.isArray(e)||e.jquery&&!$.isPlainObject(e))$.each(e,function(){n(this.name,this.value)});else for(o in e)!function n(o,e,r,i){if(Array.isArray(e))$.each(e,function(e,t){r||wt.test(o)?i(o,t):n(o+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==$.type(e))i(o,e);else for(var t in e)n(o+"["+t+"]",e[t],r,i)}(o,e[o],t,n);return r.join("&")},$.fn.extend({serialize:function(){return $.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=$.prop(this,"elements");return e?$.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!$(this).is(":disabled")&&kt.test(this.nodeName)&&!$t.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var n=$(this).val();return null==n?null:Array.isArray(n)?$.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var Tt=/%20/g,Dt=/#.*$/,Mt=/([?&])_=[^&]*/,St=/^(.*?):[ \t]*([^\r\n]*)$/gm,At=/^(?:GET|HEAD)$/,Et=/^\/\//,jt={},zt={},Lt="*/".concat("*"),Nt=C.createElement("a");function It(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,o=0,r=e.toLowerCase().match(k)||[];if($.isFunction(t))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function Pt(t,o,r,i){var a={},s=t===zt;function l(e){var n;return a[e]=!0,$.each(t[e]||[],function(e,t){t=t(o,r,i);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(o.dataTypes.unshift(t),l(t),!1)}),n}return l(o.dataTypes[0])||!a["*"]&&l("*")}function Yt(e,t){var n,o,r=$.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o=o||{})[n]=t[n]);return o&&$.extend(!0,e,o),e}Nt.href=N.href,$.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:N.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(N.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":$.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,$.ajaxSettings),t):Yt($.ajaxSettings,e)},ajaxPrefilter:It(jt),ajaxTransport:It(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,u,n,d,f,p,o,h=$.ajaxSetup({},t=t||{}),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?$(g):$.event,v=$.Deferred(),y=$.Callbacks("once memory"),x=h.statusCode||{},r={},i={},a="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(f){if(!n)for(n={};t=St.exec(u);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return f?u:null},setRequestHeader:function(e,t){return null==f&&(e=i[e.toLowerCase()]=i[e.toLowerCase()]||e,r[e]=t),this},overrideMimeType:function(e){return null==f&&(h.mimeType=e),this},statusCode:function(e){if(e)if(f)b.always(e[b.status]);else for(var t in e)x[t]=[x[t],e[t]];return this},abort:function(e){e=e||a;return l&&l.abort(e),s(0,e),this}};if(v.promise(b),h.url=((e||h.url||N.href)+"").replace(Et,N.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(k)||[""],null==h.crossDomain){e=C.createElement("a");try{e.href=h.url,e.href=e.href,h.crossDomain=Nt.protocol+"//"+Nt.host!=e.protocol+"//"+e.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=$.param(h.data,h.traditional)),Pt(jt,h,t,b),!f){for(o in(p=$.event&&h.global)&&0==$.active++&&$.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!At.test(h.type),c=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Tt,"+")):(e=h.url.slice(c.length),h.data&&(c+=(bt.test(c)?"&":"?")+h.data,delete h.data),!1===h.cache&&(c=c.replace(Mt,"$1"),e=(bt.test(c)?"&":"?")+"_="+xt+++e),h.url=c+e),h.ifModified&&($.lastModified[c]&&b.setRequestHeader("If-Modified-Since",$.lastModified[c]),$.etag[c])&&b.setRequestHeader("If-None-Match",$.etag[c]),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Lt+"; q=0.01":""):h.accepts["*"]),h.headers)b.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(!1===h.beforeSend.call(g,b,h)||f))return b.abort();if(a="abort",y.add(h.complete),b.done(h.success),b.fail(h.error),l=Pt(zt,h,t,b)){if(b.readyState=1,p&&m.trigger("ajaxSend",[b,h]),f)return b;h.async&&0<h.timeout&&(d=w.setTimeout(function(){b.abort("timeout")},h.timeout));try{f=!1,l.send(r,s)}catch(e){if(f)throw e;s(-1,e)}}else s(-1,"No Transport")}return b;function s(e,t,n,o){var r,i,a,s=t;f||(f=!0,d&&w.clearTimeout(d),l=void 0,u=o||"",b.readyState=0<e?4:0,o=200<=e&&e<300||304===e,n&&(a=((e,t,n)=>{for(var o,r,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}a=a||r}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]})(h,b,n)),a=((e,t,n,o)=>{var r,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(r in c)if(s=r.split(" "),s[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}})(h,a,b,o),o?(h.ifModified&&((n=b.getResponseHeader("Last-Modified"))&&($.lastModified[c]=n),n=b.getResponseHeader("etag"))&&($.etag[c]=n),204===e||"HEAD"===h.type?s="nocontent":304===e?s="notmodified":(s=a.state,r=a.data,o=!(i=a.error))):(i=s,!e&&s||(s="error",e<0&&(e=0))),b.status=e,b.statusText=(t||s)+"",o?v.resolveWith(g,[r,s,b]):v.rejectWith(g,[b,s,i]),b.statusCode(x),x=void 0,p&&m.trigger(o?"ajaxSuccess":"ajaxError",[b,h,o?r:i]),y.fireWith(g,[b,s]),p&&(m.trigger("ajaxComplete",[b,h]),--$.active||$.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return $.get(e,t,n,"json")},getScript:function(e,t){return $.get(e,void 0,t,"script")}}),$.each(["get","post"],function(e,r){$[r]=function(e,t,n,o){return $.isFunction(t)&&(o=o||n,n=t,t=void 0),$.ajax($.extend({url:e,type:r,dataType:o,data:t,success:n},$.isPlainObject(e)&&e))}}),$._evalUrl=function(e){return $.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},$.fn.extend({wrapAll:function(e){return this[0]&&($.isFunction(e)&&(e=e.call(this[0])),e=$(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return $.isFunction(n)?this.each(function(e){$(this).wrapInner(n.call(this,e))}):this.each(function(){var e=$(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=$.isFunction(t);return this.each(function(e){$(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){$(this).replaceWith(this.childNodes)}),this}}),$.expr.pseudos.hidden=function(e){return!$.expr.pseudos.visible(e)},$.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},$.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},I=$.ajaxSettings.xhr(),qt=(g.cors=!!I&&"withCredentials"in I,g.ajax=I=!!I,$.ajaxTransport(function(r){var i,a;if(g.cors||I&&!r.crossDomain)return{send:function(e,t){var n,o=r.xhr();if(o.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)o[n]=r.xhrFields[n];for(n in r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)o.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(i=a=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?t(0,"error"):t(o.status,o.statusText):t(Ot[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),a=o.onerror=i("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&w.setTimeout(function(){i&&a()})},i=i("abort");try{o.send(r.hasContent&&r.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),$.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),$.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return $.globalEval(e),e}}}),$.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),$.ajaxTransport("script",function(n){var o,r;if(n.crossDomain)return{send:function(e,t){o=$("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(o[0])},abort:function(){r&&r()}}}),[]),Gt=/(=)\?(?=&|$)|\?\?/,Rt=($.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||$.expando+"_"+xt++;return this[e]=!0,e}}),$.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=$.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Gt,"$1"+o):!1!==e.jsonp&&(e.url+=(bt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||$.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=w[o],w[o]=function(){i=arguments},n.always(function(){void 0===r?$(w).removeProp(o):w[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,qt.push(o)),i&&$.isFunction(r)&&r(i[0]),i=r=void 0}),"script"}),g.createHTMLDocument=((e=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),$.parseHTML=function(e,t,n){var o;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((o=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(o)):t=C),o=!n&&[],(n=_.exec(e))?[t.createElement(n[1])]:(n=ke([e],t,o),o&&o.length&&$(o).remove(),$.merge([],n.childNodes)))},$.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1<s&&(o=z(e.slice(s)),e=e.slice(0,s)),$.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&$.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?$("<div>").append($.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},$.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){$.fn[t]=function(e){return this.on(t,e)}}),$.expr.pseudos.animated=function(t){return $.grep($.timers,function(e){return t===e.elem}).length},$.offset={setOffset:function(e,t,n){var o,r,i,a,s=$.css(e,"position"),l=$(e),c={};"static"===s&&(e.style.position="relative"),i=l.offset(),o=$.css(e,"top"),a=$.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(o+a).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(o)||0,parseFloat(a)||0),null!=(t=$.isFunction(t)?t.call(e,n,$.extend({},i)):t).top&&(c.top=t.top-i.top+r),null!=t.left&&(c.left=t.left-i.left+s),"using"in t?t.using.call(e,c):l.css(c)}},$.fn.extend({offset:function(t){var e,n,o;return arguments.length?void 0===t?this:this.each(function(e){$.offset.setOffset(this,t,e)}):(o=this[0])?o.getClientRects().length?(n=o.getBoundingClientRect(),e=(o=o.ownerDocument).documentElement,{top:n.top+(o=o.defaultView).pageYOffset-e.clientTop,left:n.left+o.pageXOffset-e.clientLeft}):{top:0,left:0}:void 0},position:function(){var e,t,n,o;if(this[0])return n=this[0],o={top:0,left:0},"fixed"===$.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),o={top:(o=l(e[0],"html")?o:e.offset()).top+$.css(e[0],"borderTopWidth",!0),left:o.left+$.css(e[0],"borderLeftWidth",!0)}),{top:t.top-o.top-$.css(n,"marginTop",!0),left:t.left-o.left-$.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===$.css(e,"position");)e=e.offsetParent;return e||Te})}}),$.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;$.fn[t]=function(e){return d(this,function(e,t,n){var o;return $.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n?o?o[r]:e[t]:void(o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n)},t,e,arguments.length)}}),$.each(["top","left"],function(e,n){$.cssHooks[n]=Je(g.pixelPosition,function(e,t){if(t)return t=D(e,n),Ue.test(t)?$(e).position()[n]+"px":t})}),$.each({Height:"height",Width:"width"},function(a,s){$.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){$.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var o;return $.isWindow(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?$.css(e,t,r):$.style(e,t,n,r)},s,n?e:void 0,n)}})}),$.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),$.holdReady=function(e){e?$.readyWait++:$.ready(!0)},$.isArray=Array.isArray,$.parseJSON=JSON.parse,$.nodeName=l,"function"==typeof define&&define.amd&&define("jquery",[],function(){return $}),w.jQuery),Ht=w.$;return $.noConflict=function(e){return w.$===$&&(w.$=Ht),e&&w.jQuery===$&&(w.jQuery=Rt),$},P||(w.jQuery=w.$=$),$}),(a=>{function o(e){e.preventDefault();var t=(e={x:e.pageX,y:e.pageY}).x-d.x,n=e.y-d.y;r.css({top:"+="+n,left:"+="+t}),d=e}function e(e){e=a(e.target),c&&(e.attr("aria-grabbed",!1),a("."+i).removeClass(i),g.off("mousemove"),c=!1,window.removeEventListener("touchmove",o,{passive:!0}))}var r,s="draggyBits",i="ui-moving",l="ui-dragger",t="ui-hidden",c=!1,u=100,d={x:0,y:0},f=0,p=20,h=20,g=a(window),m={onMinimize:function(e){return!1},onInit:function(e){return!1},onClose:function(e){return!1},onRestore:function(e){return!1}},n={init:function(i){return this.each(function(){var e=a(this).addClass(s),t=e.find("."+l),n=e.find(".ui-closer").click(y),o=e.find(".ui-hider").click(x),r=a.extend(m,i),n={$this:e,$dragger:t,$closer:n,$minimizer:o,onMinimize:r.onMinimize,onClose:r.onClose,onInit:r.onInit,onRestore:r.onRestore},o=(e.data(s,n),t.attr("aria-grabbed",!1),t.mousedown(v),{top:++f*h,left:200+f*p,position:"absolute"});e.css(o),r.onInit(e)})},minimize:function(){var e=a(this).addClass(t);e.data(s).onMinimize(e)},restore:function(){var e=a(this).removeClass(t).css("z-index",u++).focus();e.data(s).onRestore(e)},close:function(){var e=a(this);e.data(s).onClose(e),e.remove()}},v=(a.fn[s]=function(e){return n[e]?n[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void a.error("Method "+e+" does not exist"):n.init.apply(this,arguments)},function(e){var t=a(e.target),t=t.is("button")?t:t.parent("button"),n=t.hasClass(l);t.parents("."+s).css("z-index",u++),n&&(e.preventDefault(),d={x:e.pageX,y:e.pageY},t.attr("aria-grabbed",!0),r=t.parents("."+s).addClass(i),g.on("mousemove",o),c=!0,window.addEventListener("touchmove",o,{passive:!0}))}),y=function(e){a(this).parents("."+s)[s]("close")},x=function(e){a(this).parents("."+s)[s]("minimize")};a(window).mouseup(e),window.addEventListener("touchend",e,{passive:!0})})(jQuery),(t=>{for(var l={},c={16:!1,18:!1,17:!1,91:!1},n="all",u={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},o={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},d=function(e){return o[e]||e.toUpperCase().charCodeAt(0)},f=[],p=1;p<20;p++)o["f"+p]=111+p;function h(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}var g={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function r(e){var t,n,o,r,i,a=e.keyCode;if(-1==h(f,a)&&f.push(a),(a=93!=a&&224!=a?a:91)in c)for(n in c[a]=!0,u)u[n]==a&&(m[n]=!0);else{var s=e;for(p in c)c[p]=s[g[p]];if(m.filter.call(this,e)&&a in l)for(i=v(),o=0;o<l[a].length;o++)if((t=l[a][o]).scope==i||"all"==t.scope){for(n in r=0<t.mods.length,c)(!c[n]&&-1<h(t.mods,+n)||c[n]&&-1==h(t.mods,+n))&&(r=!1);(0!=t.mods.length||c[16]||c[18]||c[17]||c[91])&&!r||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble)&&(e.cancelBubble=!0)}}}function m(e,t,n){var o,r=y(e);void 0===n&&(n=t,t="all");for(var i=0;i<r.length;i++)o=[],1<(e=r[i].split("+")).length&&(o=x(e),e=[e[e.length-1]]),e=e[0],(e=d(e))in l||(l[e]=[]),l[e].push({shortcut:r[i],scope:t,method:n,key:r[i],mods:o})}for(p in u)m[p]=!1;function v(){return n||"all"}function y(e){return""==(e=(e=e.replace(/\s/g,"")).split(","))[e.length-1]&&(e[e.length-2]+=","),e}function x(e){for(var t=e.slice(0,e.length-1),n=0;n<t.length;n++)t[n]=u[t[n]];return t}function e(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,function(){n(window.event)})}e(document,"keydown",function(e){r(e)}),e(document,"keyup",function(e){var t,n=e.keyCode;if(0<=(e=h(f,n))&&f.splice(e,1),(n=93!=n&&224!=n?n:91)in c)for(t in c[n]=!1,u)u[t]==n&&(m[t]=!1)}),e(window,"focus",function(){for(p in c)c[p]=!1;for(p in u)m[p]=!1});var i=t.key;t.key=m,t.key.setScope=function(e){n=e||"all"},t.key.getScope=v,t.key.deleteScope=function(e){var t,n,o;for(t in l)for(n=l[t],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++},t.key.filter=function(e){return!("INPUT"==(e=(e.target||e.srcElement).tagName)||"SELECT"==e||"TEXTAREA"==e)},t.key.isPressed=function(e){return"string"==typeof e&&(e=d(e)),-1!=h(f,e)},t.key.getPressedKeyCodes=function(){return f.slice(0)},t.key.noConflict=function(){var e=t.key;return t.key=i,e},t.key.unbind=function(e,t){for(var n,o,r,i=[],a=y(e),s=0;s<a.length;s++){if(1<(n=a[s].split("+")).length&&(i=x(n),e=n[n.length-1]),e=d(e),void 0===t&&(t=v()),!l[e])return;for(o in l[e])(r=l[e][o]).scope===t&&((e,t)=>{if(e.length==t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return 1}})(r.mods,i)&&(l[e][o]={})}},"undefined"!=typeof module&&(module.exports=key)})(this),((b,e,o,p)=>{function h(e){var t=b(this);t.data("draggy").draggyBits("restore"),t.parent().remove()}function g(){var e,t;A.$window.width()-A.$window.width()%L.size<=z.width&&A.$window.height()-A.$window.height()%L.size<=z.height||I()&&!E.save&&(e=A.$window.width()-A.$window.width()%L.size,t=A.$window.height()-A.$window.height()%L.size,O(),_(e,t),v())}function m(e){L.size=parseInt(e),A.$pixelSizeDemoDiv.css({width:L.size,height:L.size}),A.$pixelSizeInput.val(L.size);var t,n,o,r,i=new Image;i.src=(e=L.size,t=p.createElement("canvas"),n=t.getContext("2d",{willReadFrequently:!0}),r=o=2*e,t.width=o,t.height=r,n.fillStyle="#fff",n.fillRect(0,0,o,r),n.fillStyle="#ccc",n.fillRect(0,0,e,e),n.fillRect(e,e,e,e),t.toDataURL()),i.onload=function(){A.$canvas.css("background","url("+i.src+")")}}function B(e){for(var t=0;t<e.touches.length;t++)ee(e.touches[t])}function v(){var e=localStorage.make8bitartSavedCanvas;e&&te(e,0,0,!0)}function r(e,t){var n,o=t?(n=M[e].originalColor,e-1):(n=M[e].color,e+1);M[e].action===j.cut||M[e].action===j.paste?te(t?M[e].originalSrc:M[e].src,0,0,!0):(M[e].action===j.fill&&M[o]&&M[e].index===M[o].index&&(t?k--:k++,r(k,t)),N(M[e].x,M[e].y,n,M[e].size),M[e].drawPathId&&M[o]&&M[o].drawPathId===M[e].drawPathId&&r(t?--k:++k,t))}function t(){var e,t;for(t in E.dropper?(A.$dropper.removeAttr("style"),A.$canvas.removeClass(S.dropperMode),E.dropper=!1,"rgba(0, 0, 0, 0)"!==L.color&&(e="none"),A.$pixelSizeDemoDiv.css("background-image",e),A.$colorPickerDemo.css({"background-image":e,"background-color":L.color}),A.$hex.val(G(L.color))):E.save?A.$buttonSaveSelection.click():E.copy||E.cut?A.$overlay.addClass(S.hidden):E.paste&&A.$pasteInstructions.addClass(S.hidden),E)E.hasOwnProperty(t)&&(E[t]=!1);A.$toolButtons.removeClass(S.currentTool)}function n(e,t){$.endX=Y(e.pageX),$.endY=Y(e.pageY),A.$body.append('<canvas id="'+S.selectionCanvas+'"></canvas>');var n=(e=b("#"+S.selectionCanvas))[0].getContext("2d"),o=Math.abs($.endX-$.startX),r=Math.abs($.endY-$.startY),i=(e[0].width=o,e[0].height=r,Math.min($.startX,$.endX)),a=Math.min($.startY,$.endY);o&&r&&(n.drawImage(A.$canvas[0],i,a,o,r,0,0,o,r),n=e[0].toDataURL("image/png"),t===j.save?(ne(n),A.$buttonSaveSelection.click(),A.$saveModalContainer.removeClass(S.hidden)):((C=new Image).src=n,t===j.cut&&(n=A.$canvas[0].toDataURL("image/png"),w.clearRect(i,a,o,r),A.$cut.click(),i=A.$canvas[0].toDataURL("image/png"),j.index++,T=Date(),P(j.index,j.cut,0,0,null,null,null,T,n,i),O()),t===j.copy&&A.$copy.click())),e.remove()}function F(e){$.w=Y(e.pageX-this.offsetLeft-$.startX),$.h=Y(e.pageY-this.offsetTop-$.startY),d.clearRect(0,0,A.$overlay.width(),A.$overlay.height()),d.fillStyle="rgba(0,0,0,.5)",d.fillRect(0,0,A.$overlay.width(),A.$overlay.height()),d.clearRect($.startX,$.startY,$.w,$.h)}function i(){if(0===u.length)A.$openLocalModalContainer.addClass(S.hidden),A.$openLocalForm.addClass(S.hidden);else{A.$openLocalForm.removeClass(S.hidden),A.$openLocalGalleryItems.remove();for(var e=0;e<u.length;e++){var t=b('<li data-local="'+e+'"><button role="button" class="thumb"><img src="'+u[e]+'" alt="open thumbnail #'+e+'" /></button><button role="button" class="delete"><img class="delete" src="assets/draggybits/hider.png" alt="delete thumbnail #'+e+'"></button></li>');A.$openLocalGallery.append(t)}A.$openLocalGalleryItems=A.$openLocalGallery.find("li"),A.$openLocalGalleryItemThumbs=A.$openLocalGallery.find(".thumb"),A.$openLocalGalleryItemDelete=A.$openLocalGallery.find(".delete"),A.$openLocalGalleryItemThumbs.click(function(){var e=u[b(this).parent("li").data("local")];te(e,0,0,!0),A.$openLocalModalContainer.addClass(S.hidden)}),A.$openLocalGalleryItemDelete.click(function(){o.confirm("Careful! This will permanently delete this thumbnail's art from your browser.")&&(u.splice(b(this).parent("li").data("local"),1),localStorage.make8bitartSavedCanvasArray=JSON.stringify(u),u=JSON.parse(localStorage.make8bitartSavedCanvasArray),i())})}}function W(e){L.color=e,A.$color.removeClass(S.current),A.$pixelSizeDemoDiv.css("background-image","none"),A.$colorPickerDemo.css("background-image","none"),A.$pixelSizeDemoDiv.css("background-color",L.color),A.$colorPickerDemo.css("background-color",L.color),A.$hex.val(G(A.$colorPickerDemo.css("background-color"))),A.$draggydivs.css("box-shadow","5px 5px 0 "+L.color)}function y(){var e="#"+A.$hex.val();b("."+S.current).removeClass(S.current),A.$hex.addClass(S.current),L.color=e,A.$colorPickerDemo.css("background-color",e),A.$draggydivs.css("box-shadow","5px 5px 0 "+e)}function a(e){if(e.preventDefault(),3!==e.which){var t=w.getImageData(e.pageX,e.pageY,1,1).data,t=q(t);if(E.dropper)E.dropper=!1,W(t),A.$canvas.removeClass(S.dropperMode),A.$dropper.removeClass(S.currentTool).removeAttr("style");else if(E.paste){var n=Math.ceil(e.pageX/L.size)*L.size-L.size,o=Math.ceil(e.pageY/L.size)*L.size-L.size,r=A.$canvas[0].toDataURL("image/png"),n=(w.drawImage(C,n,o),M=M.slice(0,k+1),A.$redo.attr("disabled","disabled"),A.$canvas[0].toDataURL("image/png"));j.index++,T=Date(),P(j.index,j.paste,0,0,null,null,null,T,r,n),O(),A.$paste.click()}else if(E.save||E.copy||E.cut)($={}).startX=Y(e.pageX-this.offsetLeft),$.startY=Y(e.pageY-this.offsetTop),A.$overlay.on("mousemove",F),A.$overlay[0].addEventListener("touchmove",F,{passive:!0});else if(M=M.slice(0,k+1),A.$redo.attr("disabled","disabled"),E.paint&&!R(t,L.color)){j.index++;var o=e.pageX,i=e.pageY,a=L.color,s=void 0,l=[[o=Math.ceil(o/L.size)*L.size-L.size,o,i=Math.ceil(i/L.size)*L.size-L.size,null,!0,!0]],c=z.width,r=w.getImageData(0,0,z.width,z.height),u=r.data,d=(a="#"===a[0]?oe(a):a).substring(5,a.length-1).split(",");function f(e,t){e=4*(e+t*z.width),t=[e,1+e,2+e,3+e].map(function(e){return u[e]});return q(t)}function p(e,t){for(var n=4*(e+t*c),o=0===parseInt(d[3])?0:255,r=n;r<n+4*L.size;r+=4){u[r]=d[0],u[r+1]=d[1],u[r+2]=d[2],u[r+3]=o;for(var i=r;i<r+L.size*(4*c);i+=4*c)u[i]=d[0],u[i+1]=d[1],u[i+2]=d[2],u[i+3]=o}P(j.index,j.fill,e+L.size-1,t+L.size-1,s,a,L.size,null,null)}function h(e,t,n){for(var o=y,r=!1,i=y;i<=x;i+=L.size){var a=(t||i<g[0]||i>g[1])&&R(f(i,e),s);!r&&a?(o=i,r=!0):r&&!a&&(l.push([o,i-L.size,e,n,o===y,!1]),r=!1),r&&p(i,e),t||i!==g[0]||(i=g[1])}r&&l.push([o,i-L.size,e,n,o===y,!0])}for(s=f(o,i),p(o,i);l.length;){var g=l.pop(),m=!0===g[3],v=!1===g[3],y=g[0];if(i=g[2],g[4])for(;0<y&&R(f(y-L.size,i),s);)p(y-=L.size,i);var x=g[1];if(g[5])for(;x<z.width-L.size&&R(f(x+L.size,i),s);)p(x+=L.size,i);g[0]-=L.size,g[1]+=L.size,i<z.height&&h(i+L.size,!v,!0),0<i&&h(i-L.size,!m,!1)}w.putImageData(r,0,0)}else T=Date.now(),E.drawing=!0,j.index++,N(e.pageX,e.pageY,L.color,L.size),R(t,L.color)||P(j.index,j.draw,e.pageX,e.pageY,t,L.color,L.size,T,null,null),A.$canvas.on("mousemove",ee),A.$canvas[0].addEventListener("touchmove",B,{passive:!0}),"rgba(0, 0, 0, 0)"!==L.color&&(n=G(L.color),-1===(e=D.indexOf(n))?20===D.length&&(D.pop(),A.$colorHistoryPalette.find("li").eq(19).remove()):(D.splice(e,1),A.$colorHistoryPalette.find("li").eq(e).remove()),D.unshift(n),e=b('<li><button role="button" class="button color" style="background-color:#'+n+'" title="history:#'+n+'" data-color="#'+n+'" /> </button></li>'),A.$colorHistoryPalette.prepend(e),e.find("a").addClass(S.current),A.$color=b("."+S.color),A.$color.click(H),A.$colorHistoryModule.removeClass(S.hidden),I())&&(localStorage.colorHistory=D)}}function s(e){E.paste||(E.save||E.copy||E.cut?(A.$overlay.off("mousemove"),d.clearRect(0,0,A.$overlay.width(),A.$overlay.height()),E.save?n(e,"save"):E.copy?n(e,"copy"):E.cut&&n(e,"cut")):(A.$canvas.off("mousemove"),E.drawing=!1,T=null,O()))}function l(e){return function(){e.is(":disabled")||e.trigger("click")}}var w,c,x,u,C,$,k,T,d,D,X,Z,M=[],U=[],S={selectionCanvas:"selectionCanvas",current:"current",currentTool:"current-tool",dropperMode:"dropper-mode",wait:"wait",tipText:"tip-text",color:"color",transparent:"transparent",activeTab:"active",hidden:"hidden",local:"local",deleteItem:"delete"},A={$window:b(o),$body:b("body"),$header:b("#header"),$whatbox:b("#what"),$toolbox:b("#toolbox"),$filebox:b("#filebox"),$colorbox:b("#colorbox"),$waiting:b("#wait"),$tabs:b(".tabs button"),$color:b(".color"),$colorHistoryModule:b("#color-history"),$colorHistoryPalette:b(".color-history-list"),$colorCustomPalette:b(".color-custom-list"),$pickers:b("#pickers"),$customPalettes:b("#custom-palettes"),$defaultPalettes:b("#default-palettes"),$8bitPicker:b("#eight-bit-colors"),$colorPickerDemo:b(".color-demo"),$hex:b("#hex-color"),$dropper:b("#color-dropper"),$toolButtons:b(".icon-button"),$pencil:b("#pencil"),$paint:b("#paint"),$buttonNewCanvas:b("#new-canvas"),$buttonSaveLocal:b("#save-local"),$buttonSaveFull:b("#save-full"),$buttonSaveSelection:b("#save-selection"),$buttonSaveImgur:b("#save-imgur"),$buttonOpenFile:b("#open-file"),$buttonOpenLocal:b("#open-local"),$buttonImportPXON:b("#import-pxon"),$buttonExportPXON:b("#export-pxon"),$pxonModalContainer:b("#pxon-modal-container"),$pixelSizeInput:b(".pixel-size-input"),$pixelSizeDemoDiv:b("#pixel-size-demo"),$minimizedToolsMenu:b("#minimized-tools-menu"),$draggydivs:b(".draggy"),$saveInstruction:b(".instructions.save"),$pasteInstructions:b(".instructions.paste"),$undo:b("#undo"),$redo:b("#redo"),$cut:b("#cut"),$copy:b("#copy"),$paste:b("#paste"),$modalContainers:b(".modal"),$modalExit:b(".modal .ui-hider"),$saveModalContainer:b("#save-modal-container"),$saveImg:b("#finished-art"),$linkImgur:b("#link-imgur"),$openLocalModalContainer:b("#open-modal-container"),$openFile:b("#open-file"),$openLocalForm:b("#open-local-form"),$openLocal:b("#open-local"),$openLocalGallery:b("#open-modal .gallery"),$openLocalGalleryItems:b("#open-modal .gallery li"),$colorHistoryTools:{clearPalette:b("#color-history-tools .clear"),exportPalette:b("#color-history-tools .export")},$colorCustomTools:{clearPalette:b("#color-custom-tools .clear"),importPalette:b("#color-custom-tools .import")}},E={dropper:!1,drawing:!1,save:!1,paint:!1,trill:!0},j={draw:"draw",fill:"fill",cut:"cut",paste:"paste",save:"save",index:0},z={height:A.$window.height()-A.$window.height()%15,width:Math.max(A.$window.width()-A.$window.width()%15,250),background:'url("assets/bg.png")'},Q="turn off selection",J="save selection",L={color:"rgba(0, 0, 0, 1)"},f={exif:{software:"http://make8bitart.com"},pxif:{pixels:[]}},V="11112830fafe58a",_=(A.$draggydivs.draggyBits({onMinimize:function(e){e=b('<button role="button" tabindex="0" data-section="#'+e.attr("data-title")+'">').html(e.attr("title")).on("click",h).data("draggy",e);b("<span></span>").append(e).appendTo(A.$minimizedToolsMenu)}}),A.$draggydivs.mouseup(function(){A.$canvas.off("mousemove")}),A.$header.css({left:"20px",top:"20px"}),A.$colorbox.css({left:"20px",top:"240px"}),A.$toolbox.css({left:"40px",top:"260px"}),A.$filebox.css({left:"60px",top:"280px"}),A.$whatbox.css({left:"80px",top:"300px"}),function(e,t){z.width=e-e%L.size,z.height=t-e%L.size,A.$canvas.attr("width",e).attr("height",t),A.$overlay.attr("width",e).attr("height",t),w=A.$canvas[0].getContext("2d",{willReadFrequently:!0}),(d=A.$overlay[0].getContext("2d",{willReadFrequently:!0})).fillStyle="rgba(0,0,0,.5)"}),K=function(e,t){o.confirm("You cannot undo canvas resets. Are you sure you want to erase this entire drawing?")&&(w.clearRect(0,0,A.$canvas.width(),A.$canvas.height()),t&&_(A.$body.prop("clientWidth"),A.$window.height()),e&&"rgba(0, 0, 0, 0)"!==e&&(w.fillStyle=e,w.fillRect(0,0,A.$canvas.width(),A.$canvas.height())),M=[],k=-1,A.$redo.attr("disabled","disabled"),A.$undo.attr("disabled","disabled"))},N=function(e,t,n,o){return w.beginPath(),e=Math.ceil(e/o)*o-o,t=Math.ceil(t/o)*o-o,w.moveTo(e,t),w.fillStyle=n,w.lineHeight=0,"rgba(0, 0, 0, 0)"===n?w.clearRect(e,t,o,o):w.fillRect(e,t,o,o),{x:e,y:t}},ee=function(e){var t=w.getImageData(e.pageX,e.pageY,1,1).data,t=q(t);R(t,L.color,L.size)||(N(e.pageX,e.pageY,L.color,L.size),P(j.index,j.draw,e.pageX,e.pageY,t,L.color,L.size,T,null,null))},I=function(){try{return"localStorage"in o&&null!==o.localStorage}catch(e){return!1}},te=function(e,n,o,t){t&&w.clearRect(0,0,A.$canvas.width(),A.$canvas.height());var r=new Image;r.onload=function(){var e=A.$canvas.width()<this.width?this.width:A.$canvas.width(),t=A.$canvas.height()<this.height?this.height:A.$canvas.height();_(e,t),w.drawImage(r,n,o)},r.src=e},P=function(e,t,n,o,r,i,a,s,l,c){e={index:e,action:t,x:n,y:o,originalColor:r,color:i,size:a,drawPathId:s,originalSrc:l,src:c};M.push(e),U.push(e),k++,A.$undo.removeAttr("disabled")},Y=function(e){return 0===L.size||void 0!==L.size?Math.round(e/L.size)*L.size:e},ne=function(e){A.$saveImg.attr("src",e),A.$saveImg.parent().attr("href",e),A.$saveModalContainer.removeClass(S.hidden),A.$saveModalContainer.find(".ui-hider").focus()},O=function(){I()&&(x=A.$canvas[0].toDataURL("image/png"),localStorage.make8bitartSavedCanvas=x)},q=function(e){var t=e[3]/255;return"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"},G=function(e){if(6===e.length)return e;if("#"===e.charAt(0)&&7===e.length)return e.slice(1,7);if("transparent"===e)return null;for(var t="a"===e.charAt(3)?5:4,n=e.substr(t,e.length-5).split(","),o="",r=0;r<=2;r++){var i=parseInt(n[r],10).toString(16);o+=i=1===i.length?"0"+i:i}return o},oe=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,o){return t+t+n+n+o+o});e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?"rgba("+parseInt(e[1],16)+", "+parseInt(e[2],16)+", "+parseInt(e[3],16)+", 1)":null},R=function(e,t){return("rgba(0, 0, 0, 0)"!==e||"#000000"!==t&&"rgba(0, 0, 0, 1)"!==t)&&("#000000"!==e&&"rgba(0, 0, 0, 1)"!==e||"rgba(0, 0, 0, 0)"!==t)&&G(e)===G(t)},H=(A.$pencil.click(function(e){e.preventDefault(),t(),b(this).addClass(S.currentTool)}),A.$paint.click(function(e){e.preventDefault(),t(),b(this).addClass(S.currentTool),E.paint=!0}),A.$pixelSizeInput.change(function(){m(b(this).val())}),A.$buttonNewCanvas.click(function(){K(L.color,!0),O()}),A.$undo.click(function(){r(k,!0),k--,A.$redo.removeAttr("disabled"),k<0&&A.$undo.attr("disabled","disabled")}),A.$redo.click(function(){r(++k,!1),A.$undo.removeAttr("disabled"),k===M.length-1&&A.$redo.attr("disabled","disabled")}),A.$cut.click(function(){t(),E.cut?(E.cut=!1,b(this).removeClass(S.currentTool),A.$overlay.addClass(S.hidden)):(E.cut=!0,d.fillRect(0,0,A.$overlay.width(),A.$overlay.height()),b(this).addClass(S.currentTool),A.$overlay.removeClass(S.hidden))}),A.$copy.click(function(){t(),E.copy?(E.copy=!1,b(this).removeClass(S.currentTool),A.$overlay.addClass(S.hidden)):(E.copy=!0,d.fillRect(0,0,A.$overlay.width(),A.$overlay.height()),b(this).addClass(S.currentTool),A.$overlay.removeClass(S.hidden))}),A.$paste.click(function(){C&&(t(),E.paste||(E.paste=!0,b(this).addClass(S.currentTool),A.$pasteInstructions.addClass(S.hidden)))}),e("ctrl+z, ⌘+z",l(A.$undo)),e("ctrl+y, ⌘+shift+z",l(A.$redo)),e("esc",function(){A.$modalContainers.addClass(S.hidden)}),e("B",l(A.$pencil)),e("G",l(A.$paint)),function(){var e,t=b(this),n=t.attr("data-color");b("."+S.current).removeClass(S.current),t.addClass(S.current),L.color=n,"rgba(0, 0, 0, 0)"!==L.color?(e=L.color,A.$pixelSizeDemoDiv.css("background-image","none"),A.$colorPickerDemo.css("background-image","none")):(A.$pixelSizeDemoDiv.css("background-image",z.background),A.$colorPickerDemo.css("background-image",z.background),A.$hex.val("")),A.$pixelSizeDemoDiv.css("background-color",e),A.$colorPickerDemo.css("background-color",e),A.$hex.val(G(A.$colorPickerDemo.css("background-color"))),A.$draggydivs.css("box-shadow","5px 5px 0 "+n)}),re=(A.$color.click(H),A.$8bitPicker.mouseover(function(e){b(this).mousemove(re)}),A.$8bitPicker.mouseout(function(e){b(this).unbind("mouseover"),A.$colorPickerDemo.css("background-color",L.color),A.$hex.val(G(A.$colorPickerDemo.css("background-color")))}),function(e){var t=A.$8bitPicker.offset(),e=c.getImageData(e.pageX-t.left,e.pageY-t.top,1,1).data,t=q(e);A.$pixelSizeDemoDiv.css("background-image","none"),A.$colorPickerDemo.css("background-image","none"),A.$colorPickerDemo.css("background-color",t),A.$hex.val(G(t))});A.$8bitPicker.click(function(e){var t=A.$8bitPicker.offset(),e=c.getImageData(e.pageX-t.left,e.pageY-t.top,1,1).data,t=q(e);b("."+S.current).removeClass(S.current),L.color=t,A.$colorPickerDemo.css("background-color",t),A.$draggydivs.css("box-shadow","5px 5px 0 "+t)}),A.$hex.keyup(y),A.$hex.focus(y),A.$dropper.click(function(e){e.preventDefault(),A.$dropper.hasClass(S.currentTool)?t():(t(),E.dropper=!0,A.$dropper.addClass(S.currentTool),A.$canvas.addClass(S.dropperMode),A.$canvas.mousemove(function(e){e=w.getImageData(e.pageX,e.pageY,1,1).data,e=q(e);A.$dropper.css("background-color",e),A.$pixelSizeDemoDiv.css("background-image","none"),A.$colorPickerDemo.css({"background-image":"none","background-color":e}),A.$hex.val(G(e))}))}),A.$buttonSaveLocal.click(function(){I()&&((u=localStorage.make8bitartSavedCanvasArray?JSON.parse(localStorage.make8bitartSavedCanvasArray):[]).push(A.$canvas[0].toDataURL("image/png")),localStorage.make8bitartSavedCanvasArray=JSON.stringify(u)),i(),alert('Your art has been saved locally to your browser. You can see all locally saved art by clicking the "open existing art" button!')}),A.$buttonSaveFull.click(function(){var e=A.$canvas[0].toDataURL("image/png");ne(e)}),A.$buttonSaveSelection.click(function(){E.save?(E.save=!1,A.$saveInstruction.slideUp(),b(this).val(J),A.$overlay.addClass(S.hidden)):(t(),E.save=!0,A.$saveInstruction.slideDown(),b(this).val(Q),d.fillRect(0,0,A.$overlay.width(),A.$overlay.height()),A.$overlay.removeClass(S.hidden))}),A.$buttonOpenLocal.click(function(){A.$openLocalModalContainer.removeClass(S.hidden),A.$openLocalModalContainer.find(".ui-hider").focus()}),A.$buttonImportPXON.change(function(e){var t,n=b(this).prop("files")[0];n=n,o.FileReader?((t=new FileReader).readAsText(n),t.onload=function(e){e&&(f=JSON.parse(e.target.result),k=M.length-1,K(),f.pxif.pixels.forEach(function(e,t,n){N(e.x,e.y,e.color,e.size)}))},t.onerror=function(){alert("Unable to read file. Try again.")}):alert("Your browser doesn't support FileReader, which is required for uploading custom palettes.")}),A.$buttonExportPXON.click(function(e){f.exif.software="make8bitart.com",f.exif.dateTime=new Date,f.exif.dateTimeOriginal=f.exif.dateTimeOriginal||f.exif.dateTime,f.pxif.pixels=U,A.$pxonModalContainer.removeClass(S.hidden),A.$pxonModalContainer.find(".ui-hider").focus();var t=JSON.stringify(f);A.$pxonModalContainer.find("textarea").html(t)}),A.$modalExit.click(function(){A.$modalContainers.addClass(S.hidden),A.$linkImgur.html(""),A.$buttonSaveImgur.removeClass(S.hidden)}),A.$modalContainers.click(function(e){e=b(e.target).context;e!==A.$saveModalContainer[0]&&e!==A.$openLocalModalContainer[0]||b(this).addClass(S.hidden)}),A.$buttonSaveImgur.click(function(){var e;e=A.$saveImg.attr("src").replace(/^data:image\/(png|jpg);base64,/,""),b.ajax({method:"POST",url:"https://api.imgur.com/3/image",headers:{Authorization:"Client-ID "+V},dataType:"json",data:{image:e,type:"base64",title:"made on make8bitart.com",description:"made on make8bitart.com"},success:function(e){var t=e.data.link;e.data.id;A.$linkImgur.html('<p>image link: <a target="_blank" href="'+t+'">'+t+"</a></p>"),A.$buttonSaveImgur.addClass(S.hidden)},error:function(e){A.$linkImgur.text("There was an error saving to Imgur.")}})}),A.$tabs.click(function(e){var t=b(this),n=t.attr("data-href"),o=(t.siblings().removeClass(S.activeTab),t.addClass(S.activeTab),[]);t.siblings().each(function(){o.push(b(this).attr("data-href"))}),b(n).removeClass(S.hidden);for(var r=0;r<o.length;r++)b(o[r]).addClass(S.hidden)}),A.$window.resize(function(){clearTimeout(X),X=setTimeout(g,100)}),A.$colorHistoryTools.clearPalette.click(function(){D=[],A.$colorHistoryPalette.find("li").remove(),localStorage.colorHistory=[],A.$colorHistoryModule.addClass(S.hidden)}),A.$colorHistoryTools.exportPalette.click(function(){console.log("export coming soon")}),A.$colorCustomTools.clearPalette.click(function(){A.$colorCustomPalette.find("li").remove()}),A.$colorCustomTools.importPalette.on("change",function(e){var t,n=b(this).prop("files")[0];o.FileReader?((t=new FileReader).readAsText(n),t.onload=function(e){A.$colorCustomPalette.find("li").remove();for(var t=e.target.result.split(/\r\n|\n/),n=0;n<t.length;n++){var o=t[n].split(","),r=b("<a>"),o=(r.attr({class:"button color",style:"background-color:#"+o[1],title:o[0],"data-color":"#"+o[1]}),b("<li>").append(r));A.$colorCustomPalette.append(o)}A.$color=b("."+S.color),A.$color.click(H)},t.onerror=function(){alert("Unable to read file. Try again.")}):alert("Your browser doesn't support FileReader, which is required for uploading custom palettes.")}),A.$customPalettes.addClass(S.hidden),A.$canvas=b('<canvas id="canvas" width="'+z.width+'" height="'+z.height+"\">Your browser doesn't support canvas. Boo-hiss.</canvas>"),A.$body.prepend(A.$canvas),w=A.$canvas[0].getContext("2d",{willReadFrequently:!0}),A.$overlay=b('<canvas id="overlay" width="'+z.width+'" height="'+z.height+'"></canvas>'),A.$overlay.css({background:"none",position:"absolute",top:0,left:0}).addClass(S.hidden),A.$body.prepend(A.$overlay),(d=A.$overlay[0].getContext("2d",{willReadFrequently:!0})).fillStyle="rgba(0,0,0,.5)",I()&&v(),c=A.$8bitPicker[0].getContext("2d",{willReadFrequently:!0}),(Z=new Image).onload=function(){c.drawImage(Z,0,0)},Z.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAADDCAYAAAA/f6WqAAAHDElEQVR4nO3T22vVBQDA8bOzm266c7SczWk6tVnZNq3sQqR2IbttszBwSkKM6CWnrLkSKnrIgnIuLwhFId0s2FA3o55MMwIrh3M+dEELuoG3bYplO79bf8M3jm/fh8+f8ElFF0cTIvmXieILWC4eRS6Fw8hwfAEZiS8jo0mIDIcR9zczOhIil0ZjJDcSIfHo/zDyD3QRSZnBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmCGvGeKfBhMiOjPEBIPYSDyE/BodQwajE8jx6E9kMP4HOXYp4n6HTgTIr4PM8GCEhMdz3OBpJDr2A2IGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYIb8ZogO9idEfHI/M/YZ9lfcj3wb9yH7os+R/vgEsj8eRfpHYmzfUMh8zhzpZ/7oC5Bo32Us2Pszs+9LxAxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxmuSIbg420JEQ0wyeWd2KlwB7I/2I5sD99BdkRfI9ujs8i20zG29VCEvPV2gPRvZ07uCJFw299YsHUAid7ajZjBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmCHPGd5oT4joUCdzaSM2FL6A7Ao6kQ3hK0hn3Ic8H/2JdPwWYs/tDZD1L+WQdztCZHADk+u4yLUfQIL2NxAzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjPkOUP7ioSI+lqQ+MIa7EjwJPJmsBpZFT6NrA53IauiU8jKX0JsxXsB8thTzKaWHPJNS4gEK89juSf6kLHH2xEzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjPkN0O48q4E+WgpEo8sww4GDyCd4f3IkvBh5N6wm4l/RBb/GGC3dY0hNy8LkPWLc8iBJQESLBnBxu74gFm0CjGDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMEN+MwRL5yZEtPMmZvhO7IvwdqQ1uBWpj+5EGsKXkYXREHLj8RCb8eIYMnVBgLTcMIb0z2fG5p/nZu1EclX3I2YwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxwRTKcWzAtQV6bjZw/tRDbfa4BWXH2JqT2XD0y71wbcv35w8isr05jk9vOIGW1zCM1p5EP5jBn5/zCVb6OnJlwC2IGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYIb8Zhi4cUpCfN8xHRk4dAO29eg85MGB65CZR+chs46uQWoGPkGqPx3AMmu+R0prmCXV3yKbp3+HHJ1xmJvUyYyvQ8xgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzJDfDD1zsgnR21qJ7P2wBtvYOxO5u2cGUtVTw/QuR6r3bEambNmDlTczxdV7kUWVPUjn1F6kd+r73MRWpKe0FjGDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMEN+M3TNKE+Q5Vlky6YqrHXLNciCrkpkclcVctWW+5CruzYg2Y5urGRpF1I0pRupy3YhrZO6ke7sq1jXuOXI5uJrETOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM+Q3w7OVJQmxdnEZsu6ZSVhTWxapXVuBTFg7mWm7GZnY1oKUr1qHFd/CpDNrkdllbcij5Uxb2TPYupLFTLoKMYMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwQ34zNGYLE6Kprph5aDx2RzMzvXkcUtJYxjTNRUqb70FKljZhhXObkYJxTcjUokZkUTHTXPww1pSuQxoLsogZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMYAYzXJEM9eMLEqJhWpqpK8Jm1hciGShdX4IUNlQi6YZ5TG0DVlDJpIrqkGy6HqkpbEDqCudj9elqJjUeMYMZzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwQ34zZNOphMiMYyoyXDlUBKWobAmTqWAm/g+lGSSdrkCKUkx5KotUpDJcQRmSKShAzGAGM5jBDGYwgxnMYAYzmMEMZjCDGcxgBjOYwQxmMIMZzGAGM5jBDGYwgxnMkNcM/wECh/7lGUVf0gAAAABJRU5ErkJggg==",I()&&localStorage.colorHistory?D=localStorage.colorHistory.split(","):(D=[],A.$colorHistoryModule.addClass(S.hidden)),0!==D.length&&((e=>{for(var t=0;t<e.length;t++)e[t]=G(e[t]);return e})(D).forEach(function(e){e=b('<li><button role="button" class="button color" style="background-color:#'+e+'" title="history:#'+e+'" data-color="#'+e+'" /> </button></li>');A.$colorHistoryPalette.append(e)}),A.$color=b("."+S.color),A.$color.click(H)),m(15),A.$colorbox.draggyBits("minimize"),A.$toolbox.draggyBits("minimize"),A.$filebox.draggyBits("minimize"),A.$whatbox.draggyBits("minimize"),I()?localStorage.make8bitartSavedCanvasArray&&"[]"!==localStorage.make8bitartSavedCanvasArray?(u=JSON.parse(localStorage.make8bitartSavedCanvasArray),i(),A.$buttonOpenLocal.trigger("click")):A.$openLocalForm.addClass(S.hidden):b("."+S.local).addClass(S.hidden),k=-1,A.$canvas.mousedown(a).mouseup(s),A.$overlay.mousedown(a).mouseup(s),A.$canvas.on("contextmenu",function(e){t();e=w.getImageData(e.pageX,e.pageY,1,1).data,e=q(e);return W(e),A.$canvas.removeClass(S.dropperMode),A.$dropper.removeClass(S.currentTool).removeAttr("style"),!1}),A.$canvas[0].addEventListener("touchstart",a,{passive:!0}),A.$canvas[0].addEventListener("touchend",s,{passive:!0}),A.$overlay[0].addEventListener("touchstart",a,{passive:!0}),A.$overlay[0].addEventListener("touchend",s,{passive:!0})})(window.jQuery,window.key,window,document);
build/assets/bg.png

This is a binary file and will not be displayed.

build/assets/brighton.png

This is a binary file and will not be displayed.

build/assets/copy.png

This is a binary file and will not be displayed.

build/assets/cut.png

This is a binary file and will not be displayed.

build/assets/draggybits/dragger.png

This is a binary file and will not be displayed.

build/assets/draggybits/hider.png

This is a binary file and will not be displayed.

build/assets/dropper.png

This is a binary file and will not be displayed.

-48
build/assets/example.csv
··· 1 - white,FFFFFF 2 - light yellow,EAE257 3 - yellow,F3E705 4 - dark yellow,F9D102 5 - dark orange,FDBB16 6 - orange,FD790D 7 - vermillion,EA320C 8 - carmine red,CA1306 9 - carmine red,AB1518 10 - beige,F4B18F 11 - pink,F67A9C 12 - red violet,A081C4 13 - light violet,944A7E 14 - bordeaux red,7F252F 15 - violet,541F6D 16 - blue violet,1D105D 17 - delft blue,3D2729 18 - ice blue,ABBFC0 19 - sky blue,6B9DA8 20 - light blue,3A76A7 21 - mountain blue,6470AC 22 - phthalo blue,495467 23 - cobalt dark,23416F 24 - dark blue,1D396B 25 - cobalt blue,172089 26 - prussian blue,0B2461 27 - pea green,53B1A0 28 - bice green,65DB26 29 - may green,07B518 30 - olive green light,478136 31 - dark olive green,657612 32 - dark grass green,007D67 33 - grass green,1F8023 34 - dark green,0B4432 35 - blue green,075876 36 - gold,D6B96F 37 - gold ochre,FDAE05 38 - dark ochre,D59E5B 39 - indian red,A73A1D 40 - light brown,96543A 41 - brown,604331 42 - dark brown,461D11 43 - brunt umber,534032 44 - grey,7E7579 45 - silver,AFA0A3 46 - steel grey,6B7984 47 - medium grey,786F7B 48 - black,000000
build/assets/fonts/8bit-Art-Sans-subset.ttf

This is a binary file and will not be displayed.

build/assets/fonts/8bit-Art-Sans-subset.woff2

This is a binary file and will not be displayed.

build/assets/fonts/8bit-Art-Sans-subset.zopfli.woff

This is a binary file and will not be displayed.

build/assets/fonts/8bit-Art-Sans.ttf

This is a binary file and will not be displayed.

build/assets/fonts/VT323-Regular-subset.ttf

This is a binary file and will not be displayed.

build/assets/fonts/VT323-Regular-subset.woff2

This is a binary file and will not be displayed.

build/assets/fonts/VT323-Regular-subset.zopfli.woff

This is a binary file and will not be displayed.

build/assets/fonts/VT323-Regular.ttf

This is a binary file and will not be displayed.

build/assets/hsl-palette.png

This is a binary file and will not be displayed.

build/assets/icons/copy.png

This is a binary file and will not be displayed.

build/assets/icons/cut.png

This is a binary file and will not be displayed.

build/assets/icons/dropper.png

This is a binary file and will not be displayed.

build/assets/icons/paint.png

This is a binary file and will not be displayed.

build/assets/icons/paste-disabled.png

This is a binary file and will not be displayed.

build/assets/icons/paste.png

This is a binary file and will not be displayed.

build/assets/icons/pencil.png

This is a binary file and will not be displayed.

build/assets/paint.png

This is a binary file and will not be displayed.

build/assets/paste-disabled.png

This is a binary file and will not be displayed.

build/assets/paste.png

This is a binary file and will not be displayed.

build/assets/pencil.png

This is a binary file and will not be displayed.

-1
build/draggybits.min.css
··· 1 - .draggy.ui-hidden{display:none}.draggy .controls{float:right}.draggy .controls button{width:auto;height:auto;padding:0;margin:0;background:0 0;border:none}.draggy .controls .ui-dragger{cursor:move}.draggy .controls .ui-closer,.draggy .controls .ui-hider{cursor:pointer}
-665
build/index.html
··· 1 - <!DOCTYPE html> 2 - <html lang="en"> 3 - <head> 4 - <meta charset="UTF-8" /> 5 - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 - <meta 7 - name="description" 8 - content="make8bitart.com is a fun free in-browser pixel art tool for you!" 9 - /> 10 - <meta 11 - property="og:description" 12 - content="make8bitart.com is a fun free in-browser pixel art tool for you!" 13 - /> 14 - <meta 15 - property="og:image" 16 - content="https://make8bitart.com/assets/brighton.png" 17 - /> 18 - <meta property="og:title" content="make 8-bit art!" /> 19 - <title>make 8-bit art!</title> 20 - <link 21 - rel="preload" 22 - href="/assets/fonts/8bit-Art-Sans-subset.woff2" 23 - as="font" 24 - type="font/woff2" 25 - crossorigin 26 - /> 27 - <link 28 - rel="preload" 29 - href="/assets/fonts/VT323-Regular-subset.woff2" 30 - as="font" 31 - type="font/woff2" 32 - crossorigin 33 - /> 34 - <link rel="stylesheet" href="draggybits.min.css" /> 35 - <link rel="stylesheet" href="make8bitart.min.css" /> 36 - <link rel="icon" href="/assets/brighton.png" /> 37 - <link rel="manifest" href="/manifest.json" /> 38 - <link rel="me" href="https://glitch.com/@jennschiffer" /> 39 - <meta name="theme-color" content="#00ffff" /> 40 - <script src="app.min.js" defer></script> 41 - <script 42 - defer 43 - data-domain="make8bitart.com" 44 - src="https://plausible.io/js/script.js" 45 - ></script> 46 - </head> 47 - 48 - <!-- 49 - ____ 50 - ___ .-~. /_"-._ 51 - `-._~-. / /_ "~o\ :Y 52 - \ \ / : \~x. ` ') 53 - ] Y / | Y< ~-.__j ------------------------- 54 - / ! _.--~T : l l< /.-~ / \ 55 - / / ____.--~ . ` l /~\ \<|Y -----\ JENN SCHIFFER MADE THIS | 56 - / / .-~~" /| . ',-~\ \L| \ WOWOWOWOWOWOWOWOW 😈 / 57 - / / / .^ \ Y~Y \.^>/l_ "--' \________________________/ 58 - / Y .-"( . l__ j_j l_/ /~_.-~ . 59 - Y l / \ ) ~~~." / `/"~ / \.__/l_ 60 - | \ _.-" ~-{__ l : l._Z~-.___.--~ 61 - | ~---~ / ~~"---\_ ' __[> 62 - l . _.^ ___ _>-y~ 63 - \ \ . .-~ .-~ ~>--" / 64 - \ ~---" / ./ _.-' 65 - "-.,_____.,_ _.--~\ _.-~ 66 - ~~ ( _} 67 - `. ~( 68 - ) \ 69 - /,`--'~\--' 70 - --> 71 - 72 - <body id="gravity-and-time-are-social-constructs"> 73 - <!-- 74 - .--.__ 75 - .~ (@) ~~~---_ 76 - { `-_~,,,,,,) 77 - { (_ ', ---- haha nope 78 - ~ . = _', 79 - ~- '. =-' 80 - ~ : 81 - . _,.-~ (''); 82 - '. .-~ \ \ ; 83 - ':-_ _.--~ \ \; _-=,. 84 - ~-:-.__ _.-~ { '---- _'-=,. 85 - ~-._~--._ __.-~ ~---------=,.` 86 - ~~-._~~-----~~~~~~ .+++~~~~~~~~-__ / 87 - ~-.,____ { - + } _/ 88 - ~~-.______{_ _ -=\ / /_.~ 89 - : ~--~ // / ..- 90 - : / / // / (( 91 - : / / { `-------,. )) 92 - : / ''=--------. }o 93 - .=._________,' ) )) 94 - ) _________ -'' ~~ 95 - / / _ _ 96 - (_.-.'O'-'. HEADER INFO --> 97 - 98 - <header id="header" class="draggy" role="banner"> 99 - <div class="controls"> 100 - <button role="button" class="ui-dragger"> 101 - <img 102 - src="assets/draggybits/dragger.png" 103 - width="30" 104 - height="30" 105 - alt="move controls window" 106 - /> 107 - </button> 108 - </div> 109 - 110 - <h1>make 8-bit art!</h1> 111 - <menu id="minimized-tools-menu" role="navigation"></menu> 112 - </header> 113 - 114 - <!-- 115 - _..--+~/@-~--. 116 - _-=~ ( . ' 117 - _-~ _.--=.\ \'''' --- BOOTY HAD ME LIKE... 118 - _~ _- \ \_\ 119 - = _= '--' 120 - ' = . 121 - : : ____ '=_. ___ 122 - ___ | ; ____ '~--.~. 123 - ; ; _____ } | 124 - ___= \ ___ __ __..-...__ ___/__/__ 125 - : =_ _.-~~ ~~--.__ 126 - _____ \ ~-+-~ ___~=_______ 127 - ~@#~~ == ...______ __ ___ _--~~--_ SOCIAL LINKS 128 - --> 129 - 130 - <section id="what" class="draggy" title="what is this?" data-title="what"> 131 - <div class="controls"> 132 - <button role="button" class="ui-dragger"> 133 - <img 134 - src="assets/draggybits/dragger.png" 135 - width="30" 136 - height="30" 137 - alt="move controls window" 138 - /> 139 - </button> 140 - <button role="button" class="ui-hider"> 141 - <img 142 - src="assets/draggybits/hider.png" 143 - width="30" 144 - height="30" 145 - alt="move controls window" 146 - /> 147 - </button> 148 - </div> 149 - 150 - <h2>what is this?</h2> 151 - 152 - <p> 153 - this is an 154 - <a 155 - href="https://glitch.com/edit/#!/make8bitart" 156 - title="link to make8bitart repo on glitch" 157 - target="_blank" 158 - >open source</a 159 - > 160 - pixel art drawing tool by 161 - <a 162 - href="https://jennschiffer.com" 163 - title="official website of" 164 - target="_blank" 165 - >jenn schiffer</a 166 - >, now on <a href="https://glitch.com">glitch.com</a>! 167 - </p> 168 - 169 - <p> 170 - if you make something cool, i wanna see it – find me on the fediverse 171 - <a rel="me" href="https://pixel.kitchen/@jenn">@jenn@pixel.kitchen</a> 172 - or email jenn@dotbiz.info! 173 - </p> 174 - </section> 175 - 176 - <!-- 177 - . . 178 - / `. .' \ 179 - .---. < > < > .---. 180 - | \ \ - ~ ~ - / / | 181 - ~-..-~ ~-..-~ 182 - \~~~\.' `./~~~/ 183 - \__/ \__/ 184 - / .- . \ 185 - _._ _.- .-~ ~-. / } \/~~~/ 186 - _.-'q }~ / } { ; \__/ 187 - butts --- {'__, / ( / { / `. ,~~| . . 188 - `''''='~~-.__( /_ | /- _ `..-' \\ // 189 - / \ =/ ~~--~~{ ./| ~-. `-..__\\_//_.-' 190 - { \ +\ \ =\ ( ~ - . _ _ _..---~ 191 - | | { } \ \_\ 192 - '---.o___,' .o___, TOOLBOX --> 193 - 194 - <section 195 - id="toolbox" 196 - class="draggy" 197 - title="canvas/brush tools" 198 - data-title="tools" 199 - > 200 - <div class="controls"> 201 - <button role="button" class="ui-dragger"> 202 - <img 203 - src="assets/draggybits/dragger.png" 204 - width="30" 205 - height="30" 206 - alt="move controls window" 207 - /> 208 - </button> 209 - <button role="button" class="ui-hider"> 210 - <img 211 - src="assets/draggybits/hider.png" 212 - width="30" 213 - height="30" 214 - alt="move controls window" 215 - /> 216 - </button> 217 - </div> 218 - 219 - <div id="instruments" class="inner"> 220 - <h2>instruments</h2> 221 - <menu role="toolbar"> 222 - <button id="pencil" role="button" class="current-tool icon-button"> 223 - <img 224 - src="assets/icons/pencil.png" 225 - width="45" 226 - height="45" 227 - alt="draw" 228 - /> 229 - </button> 230 - <button id="paint" role="button" class="icon-button"> 231 - <img 232 - src="assets/icons/paint.png" 233 - width="52" 234 - height="45" 235 - alt="paint/fill" 236 - /> 237 - </button> 238 - </menu> 239 - </div> 240 - 241 - <div id="editing" class="inner"> 242 - <h2>editing</h2> 243 - <menu role="toolbar"> 244 - <button id="cut" role="button" class="icon-button"> 245 - <img src="assets/icons/cut.png" width="27" height="45" alt="cut" /> 246 - </button> 247 - <button id="copy" role="button" class="icon-button"> 248 - <img 249 - src="assets/icons/copy.png" 250 - width="34" 251 - height="45" 252 - alt="copy" 253 - /> 254 - </button> 255 - <button id="paste" role="button" class="icon-button"> 256 - <img 257 - src="assets/icons/paste.png" 258 - width="30" 259 - height="45" 260 - alt="paste" 261 - /> 262 - </button> 263 - </menu> 264 - 265 - <ul class="instructions paste"> 266 - <li> 267 - click on the canvas where you want the top left corner of your 268 - copied clip to be pasted. 269 - </li> 270 - </ul> 271 - 272 - <button role="button" class="text-button" id="undo" disabled="disabled"> 273 - undo 274 - </button> 275 - <button role="button" class="text-button" id="redo" disabled="disabled"> 276 - redo 277 - </button> 278 - <button role="button" class="text-button" id="new-canvas"> 279 - new canvas 280 - </button> 281 - </div> 282 - 283 - <div id="size" class="inner"> 284 - <h2>brush size</h2> 285 - <input 286 - aria-label="pixel size text input" 287 - id="pixel-size" 288 - class="pixel-size-input" 289 - type="number" 290 - min="2" 291 - max="100" 292 - step="1" 293 - value="15" 294 - /> 295 - <input 296 - aria-label="pixel size slider" 297 - id="pixel-size-slider" 298 - class="pixel-size-input" 299 - type="range" 300 - min="2" 301 - max="100" 302 - step="1" 303 - value="15" 304 - /> 305 - <div id="pixel-size-demo" class="color-demo"></div> 306 - </div> 307 - </section> 308 - 309 - <!-- 310 - _..-=~=-._ 311 - _.-~' ~. 312 - __..---~~~~~ ~. 313 - _.-~~ _.._ ~. 314 - _ -~_ / \ ; 315 - ( ` '@) { | : 316 - / | | : 317 - / /} ( ) | | .- --- farting on 318 - / //-=-~-_-_ | | \ ; .' the h8rs 319 - / // | =._-| }/ / / /_.==\ ; _.' * 320 - ( oo //| = ) ~| /.__..-='| \ :' ** 321 - ====||*| / / + ) \ |_.-~`\ : |** 322 - |*| * / / / / \ | ([ ]) /|||( 323 - * |* /_/ / / ( ] `/ \' /|||_ 324 - **(* | (((| /_/ __/_/__ -| |-- _|_|__ 325 - *|\| (((| ----- __|_|__ 326 - _/(h8rs)|__ ''' ----- 327 - _||_|__ FILE BOX --> 328 - 329 - <section 330 - id="filebox" 331 - class="draggy" 332 - title="export/save" 333 - data-title="export-save" 334 - > 335 - <div class="controls"> 336 - <button role="button" class="ui-dragger"> 337 - <img src="assets/draggybits/dragger.png" alt="move controls window" /> 338 - </button> 339 - <button role="button" class="ui-hider"> 340 - <img src="assets/draggybits/hider.png" alt="move controls window" /> 341 - </button> 342 - </div> 343 - 344 - <div id="import" class="inner hidden"> 345 - <h2>import art</h2> 346 - 347 - <label for="open-local" class="local" id="open-local-form"> 348 - from local storage: 349 - <button role="button" class="text-button" id="open-local"> 350 - import local art 351 - </button> 352 - </label> 353 - 354 - <label for="import-pxon" class="pxon" id="import-pxon-form"> 355 - import <a href="https://jennmoney.biz/pxon">pxon</a> (WARNING: THIS 356 - BREAKS A LOT): 357 - <input type="file" id="import-pxon" name="import-pxon" /> 358 - </label> 359 - </div> 360 - 361 - <div id="export"> 362 - <h2>export art</h2> 363 - 364 - <label for="save-png" class="png" id="save-png-form"> 365 - to png:<br /> 366 - <button role="button" class="text-button" id="save-full"> 367 - full page 368 - </button> 369 - <button role="button" class="text-button" id="save-selection"> 370 - selection 371 - </button> 372 - </label> 373 - 374 - <label for="save-local" class="local" id="save-local-form"> 375 - to local storage:<br /> 376 - <button role="button" class="text-button local" id="save-local"> 377 - local store 378 - </button> 379 - </label> 380 - 381 - <label for="export-pxon" class="pxon hidden" id="export-pxon-form"> 382 - export <a href="https://jennmoney.biz/pxon">pxon</a>:<br /> 383 - <button role="button" class="text-button pxon" id="export-pxon"> 384 - export pxon 385 - </button> 386 - </label> 387 - </div> 388 - 389 - <ul class="instructions save"> 390 - <li> 391 - click and drag to select the area of the canvas you want to save. 392 - </li> 393 - </ul> 394 - </section> 395 - 396 - <!-- 397 - <\ _ 398 - \\ _/{ 399 - _ \\ _- -_ 400 - /{ / `\ _- - -_ 401 - _~ = ( @ \ - - -_ 402 - _- - ~-_ \( =\ \ - -_ 403 - _~ - ~_ | 1 :\ \ _-~-_ - -_ 404 - _- - ~ |V: \ \ _-~ ~-_- -_ 405 - _-~ - / | : \ \ ~-_- -_ 406 - _-~ - _.._ { | : _-`` ~- _-_ 407 - _-~ -__..--~ ~-_ { : \:} --- hi h8rs 408 - =~__.--~~ ~-_\ : / 409 - \ : /__ 410 - //`Y'--\\ 411 - <+ \\ 412 - \\ WWW 413 - MMM COLORBOX --> 414 - 415 - <section 416 - id="colorbox" 417 - class="draggy" 418 - title="color tools" 419 - data-title="colors" 420 - > 421 - <div class="controls"> 422 - <button role="button" class="ui-dragger"> 423 - <img 424 - src="assets/draggybits/dragger.png" 425 - width="30" 426 - height="30" 427 - alt="move controls window" 428 - /> 429 - </button> 430 - <button role="button" class="ui-hider"> 431 - <img 432 - src="assets/draggybits/hider.png" 433 - width="30" 434 - height="30" 435 - alt="move controls window" 436 - /> 437 - </button> 438 - </div> 439 - 440 - <div class="tabs" role="navigation"> 441 - <button role="button" class="pickers active" data-href="#pickers"> 442 - color pickers 443 - </button> 444 - <button role="button" class="palettes" data-href="#custom-palettes"> 445 - history/custom palettes 446 - </button> 447 - </div> 448 - 449 - <div id="pickers"> 450 - <div id="hex-picker"> 451 - <h2>hex value:</h2> 452 - <span class="pound">#</span 453 - ><input 454 - aria-label="hex color input" 455 - type="text" 456 - id="hex-color" 457 - value="000000" 458 - autocomplete="off" 459 - autocorrect="off" 460 - spellcheck="false" 461 - /> 462 - 463 - <button role="button" id="color-dropper" class="icon-button"> 464 - <img 465 - src="assets/icons/dropper.png" 466 - width="45" 467 - height="45" 468 - alt="color dropper" 469 - /> 470 - </button> 471 - </div> 472 - 473 - <ul class="colors clearfix"> 474 - <li> 475 - <button 476 - role="button" 477 - class="button color primary cyan" 478 - title="cyan" 479 - data-color="rgba(0, 255, 255, 1)" 480 - ></button> 481 - </li> 482 - <li> 483 - <button 484 - role="button" 485 - class="button color primary magenta" 486 - title="magenta" 487 - data-color="rgba(255, 0, 255, 1)" 488 - ></button> 489 - </li> 490 - <li> 491 - <button 492 - role="button" 493 - class="button color primary yellow" 494 - title="yellow" 495 - data-color="rgba(255, 255, 0, 1)" 496 - ></button> 497 - </li> 498 - <li> 499 - <button 500 - role="button" 501 - class="button color primary black" 502 - title="black" 503 - data-color="rgba(0, 0, 0, 1)" 504 - ></button> 505 - </li> 506 - <li> 507 - <button 508 - role="button" 509 - class="button color primary gray" 510 - title="gray" 511 - data-color="rgba(128, 128, 128, 1)" 512 - ></button> 513 - </li> 514 - <li> 515 - <button 516 - role="button" 517 - class="button color primary white" 518 - title="white" 519 - data-color="rgba(255, 255, 255, 1)" 520 - ></button> 521 - </li> 522 - <li> 523 - <button 524 - role="button" 525 - class="button color transparent" 526 - title="erase" 527 - data-color="rgba(0, 0, 0, 0)" 528 - ></button> 529 - </li> 530 - </ul> 531 - 532 - <div id="eight-bit-picker"> 533 - <h2 class="eightbit">click to pick:</h2> 534 - <canvas id="eight-bit-colors" width="195" height="195"></canvas> 535 - <div class="color-demo eightbit"></div> 536 - </div> 537 - </div> 538 - 539 - <div id="custom-palettes"> 540 - <div id="color-history" class="inner"> 541 - <h2 class="color-history-label">history:</h2> 542 - <ul class="color-history-list colors clearfix"></ul> 543 - <div id="color-history-tools"> 544 - <button role="button" class="text-button clear"> 545 - clear history 546 - </button> 547 - </div> 548 - </div> 549 - 550 - <div id="color-custom" class="palettes inner"> 551 - <h2 class="color-upload-label">custom palette:</h2> 552 - <ul class="color-custom-list colors clearfix"></ul> 553 - <div id="color-custom-tools"> 554 - <p> 555 - Upload file in "name,hex" csv format, like in 556 - <a href="assets/example.csv">example.csv</a>! 557 - </p> 558 - 559 - <input type="file" name="upload-palette" class="import" /> 560 - <button role="button" class="text-button clear"> 561 - clear palette 562 - </button> 563 - </div> 564 - </div> 565 - </div> 566 - </section> 567 - 568 - <section id="save-modal-container" class="modal hidden"> 569 - <div id="save-modal" class="inside-modal"> 570 - <div class="controls"> 571 - <button role="button" class="ui-hider"> 572 - <img 573 - src="assets/draggybits/hider.png" 574 - width="30" 575 - height="30" 576 - alt="move controls window" 577 - /> 578 - </button> 579 - </div> 580 - <h2>you saved your art!</h2> 581 - <a href="#" target="_blank" download="art.png" 582 - ><img id="finished-art" 583 - /></a> 584 - 585 - <p> 586 - Click or drag your art to your desktop to save!<br /> 587 - <button role="button" class="text-button" id="save-imgur"> 588 - Or upload to imgur.com! 589 - </button> 590 - </p> 591 - <p id="link-imgur"></p> 592 - </div> 593 - </section> 594 - 595 - <section id="open-modal-container" class="modal hidden"> 596 - <div id="open-modal" class="inside-modal"> 597 - <div class="controls"> 598 - <button role="button" class="ui-hider"> 599 - <img 600 - src="assets/draggybits/hider.png" 601 - width="30" 602 - height="30" 603 - alt="move controls window" 604 - /> 605 - </button> 606 - </div> 607 - 608 - <h2>you have some locally saved art!</h2> 609 - <h3>wanna open one? click a thumbnail...</h3> 610 - 611 - <ul class="gallery"></ul> 612 - </div> 613 - </section> 614 - 615 - <section id="pxon-modal-container" class="modal hidden"> 616 - <div id="open-modal-pxon" class="inside-modal"> 617 - <div class="controls"> 618 - <button role="button" class="ui-hider"> 619 - <img 620 - src="assets/draggybits/hider.png" 621 - width="30" 622 - height="30" 623 - alt="move controls window" 624 - /> 625 - </button> 626 - </div> 627 - 628 - <h2>export pxon!</h2> 629 - <h3> 630 - <a href="https://jennmoney.biz/pxon/">what is pxon? read my spec!</a> 631 - </h3> 632 - 633 - <p> 634 - the gist of it is that pxon is pixel art represented in JSON. the 635 - current session of your drawing should be represented in the textarea 636 - below - paste into a .json file or app that supports pxon for good 637 - fun! 638 - </p> 639 - 640 - <textarea></textarea> 641 - 642 - <p> 643 - <strong 644 - >note: pxon is a draft proposal and a fake idea by me (jenn, creator 645 - of make8bitart.com) that's being updated sporadically and sometimes 646 - doesn't work. please let me know if it's broken!</strong 647 - > 648 - </p> 649 - </div> 650 - </section> 651 - 652 - <script type="text/javascript"> 653 - if ("serviceWorker" in navigator) { 654 - navigator.serviceWorker 655 - .register("service-worker.js") 656 - .then(function (reg) { 657 - console.log("service worker registered --- " + reg.scope + " :)"); 658 - }) 659 - .catch(function (err) { 660 - console.log("service worker failed: " + err); 661 - }); 662 - } 663 - </script> 664 - </body> 665 - </html>
build/make8bitart.css

This is a binary file and will not be displayed.

-1
build/make8bitart.min.css
··· 1 - @font-face{font-family:VT323;src:url('../assets/fonts/VT323-Regular-subset.woff2') format('woff2'),url('../assets/fonts/VT323-Regular-subset.zopfli.woff') format('woff'),url('../assets/fonts/VT323-Regular-subset.ttf') format('truetype');font-display:swap}@font-face{font-family:'8bit Art Sans';src:url('../assets/fonts/8bit-Art-Sans-subset.woff2') format('woff2'),url('../assets/fonts/8bit-Art-Sans-subset.zopfli.woff') format('woff'),url('../assets/fonts/8bit-Art-Sans-subset.ttf') format('truetype');font-display:swap}body{background:#fff;padding:0;margin:0;font-family:VT323,monospace;font-size:16px;color:#000}a{color:#00f}h2{font-size:1.5em;margin:.1em 0}menu{padding-left:0}canvas{cursor:crosshair;touch-action:none;display:block;image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:-o-crisp-edges;image-rendering:pixelated;-ms-interpolation-mode:nearest-neighbor}.draggy{padding:10px;box-shadow:6px 6px 0 #000;border:4px solid #000;background:#eff;-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden}.ui-hider img{margin:3px 6px 0 0}.tabs{list-style:none;margin:0;padding:0}.tabs button{font-family:VT323,monospace;font-size:1em;display:inline-block;padding:.5em 1em;margin:0 0 .5em;border:1px solid #000;background-color:#ccc;box-shadow:2px 2px 0 #000}.tabs button.active{background-color:#0ff;box-shadow:inset 3px 3px 0 #000}.tabs:hover{cursor:pointer}header{font-size:1em;width:200px}header h1{font-family:'8bit Art Sans';font-size:2em;line-height:1em;margin:0}#minimized-tools-menu{font-size:1.2em;margin-top:10px;padding:0}#minimized-tools-menu button{display:inline-block;padding:3px 10px;background:#0f0;margin:3px;border:none;font-family:VT323,monospace;font-size:1em}#minimized-tools-menu button:hover{color:green;cursor:pointer}#minimized-tools-menu button:after{content:' +'}#what{width:200px}#toolbox{width:200px}#toolbox .inner{margin:1em 0}#toolbox ul{list-style:none;margin:0;padding:0}#toolbox ul li{display:inline-block;margin:.2em}.icon-button{border:3px dashed transparent;padding:0;margin:0;background:0}.icon-button img{padding:.3em;vertical-align:middle}.icon-button.current-tool{border-color:#000}.text-button{background:#efefef;border:2px solid #ccc;padding:.3em .5em;margin:.2em;font-family:monospace;font-size:.8em;font-weight:700;cursor:pointer}input[type=submit]{margin:.2em 0 .2em 0;font-size:.8em}input[type=file]{max-width:100%}#pixel-size{width:75%;font-size:1.2em;font-family:monospace;padding:5px 3px 3px}#pixel-size-slider{margin:0;width:100%}#pixel-size-demo{background:#000}#filebox{width:175px}#filebox input{display:block}#filebox label{display:block;margin:1em .5em}.instructions{display:none}#colorbox{width:225px}.colors,.colors li{list-style:none;margin:0;padding:0}.colors{margin:.5em 0}.button{display:block;float:left;border:2px solid rgba(255,255,255,.5)}.button.save{float:none;width:75px}.button:hover{background:#ddd}.button.color{background:#fff;border:5px solid transparent;width:25px;height:25px;padding:0;margin:3px}.button.color.cyan{background:#0ff}.button.color.magenta{background:#ff00ff}.button.color.yellow{background:#ff0}.button.color.black{background:#000}.button.color.gray{background:gray}.button.color.white{background:#fff;border:2px solid rgba(0,0,0,.25)}.button.color.transparent{border-color:#ccc;background:url('../assets/bg.png')}.button.color.current,.button.current,.button.custom.current{border:5px solid #333}.button.brush.current{margin:1px 8px 1px 0}#eight-bit-colors{margin:0 auto;background:0 0}#eight-bit-picker{position:relative}#eight-bit-picker .color-demo{background:#000;width:100%;height:20px;margin-top:10px}#eight-bit-picker p{font-size:1.5em;margin:0 0 10px}#hex-color{width:48%;vertical-align:middle;margin-left:5px;font-size:1.5em;font-family:monospace;padding:5px 3px 3px}.pound{vertical-align:middle;font-size:2em}#color-dropper{padding:5px;vertical-align:middle}.modal{text-align:center;width:100%;height:100%;background:rgba(0,0,0,.8);position:absolute;top:0;left:0;z-index:999999}.inside-modal{text-align:center;width:auto;max-width:50%;display:inline-block;padding:20px;margin:20px;box-shadow:5px 5px 0 #000;border:1px solid #000;background:#eff;position:relative}.inside-modal h2{font-size:2em;margin:.25em 1em}.inside-modal .ui-hider{position:absolute;top:10px;right:10px;background:0 0;border:0;padding:0;margin:0}.inside-modal .ui-hider img{padding:0;margin:0}.inside-modal .ui-hider:hover{cursor:pointer}.gallery{margin:0;padding:0}.gallery li{list-style-type:none;display:inline-block;margin:10px;border:5px solid #000;position:relative}.gallery button{background:0 0;border:0;padding:0}.gallery li img{height:50px}.gallery button.delete{position:absolute;top:-10px;right:-10px}.gallery li .delete img{height:10px;padding:5px;background-color:#fff;border:2px solid #000}#finished-art{max-width:95%;display:block;border:5px solid #000;margin:10px auto;background:url('../assets/bg.png')}#pxon-modal-container textarea{width:100%;min-width:500px;min-height:200px}@media only screen and (min-device-width:320px) and (max-device-width:568px){body{font-size:1em}.ui-dragger{display:none}input{font-size:.6em}header{width:300px}#toolbox input{font-size:.8em}#save-selection{display:none}h2{margin:.5em 0}}.hidden{display:none!important}.clearfix:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}* html .clearfix{height:1%}
-23
build/manifest.json
··· 1 - { 2 - "name": "make8bitart", 3 - "short_name": "make8bitart", 4 - "description": "make8bitart.com is a fun free in-browser pixel art tool for you!", 5 - "icons": [ 6 - { 7 - "sizes": "800x800", 8 - "type": "image/png", 9 - "src": "https://cdn.glitch.global/2bc3df24-5bca-426a-9445-f1f6dbdd528e/make8bitart-800.png", 10 - "purpose": "any" 11 - }, 12 - { 13 - "sizes": "180x180", 14 - "type": "image/png", 15 - "src": "https://cdn.glitch.global/2bc3df24-5bca-426a-9445-f1f6dbdd528e/make8bitart-180.png", 16 - "purpose": "maskable" 17 - } 18 - ], 19 - "display": "standalone", 20 - "background_color": "#ffffff", 21 - "theme_color": "#00ffff", 22 - "start_url": "/" 23 - }
-47
build/service-worker.js
··· 1 - /* 2 - * ServiceWorker to make site function as a PWA (Progressive Web App) 3 - * 4 - * Based on https://glitch.com/~pwa by https://glitch.com/@PaulKinlan 5 - */ 6 - 7 - // Specify what we want added to the cache for offline use 8 - self.addEventListener("install", (e) => { 9 - e.waitUntil( 10 - // Give the cache a name 11 - caches.open("make8bitart-pwa").then((cache) => { 12 - // Cache the homepage and stylesheets - add any assets you want to cache! 13 - return cache.addAll([ 14 - "/", 15 - "/index.html", 16 - "/app.min.js", 17 - "/make8bitart.min.css", 18 - "/draggybits.min.css", 19 - "/assets/bg.png", 20 - "/assets/brighton.png", 21 - "/assets/hsl-palette.png", 22 - "/assets/example.csv", 23 - "/assets/draggybits/dragger.png", 24 - "/assets/draggybits/hider.png", 25 - "/assets/icons/copy.png", 26 - "/assets/icons/cut.png", 27 - "/assets/icons/dropper.png", 28 - "/assets/icons/paint.png", 29 - "/assets/icons/paste-disabled.png", 30 - "/assets/icons/paste.png", 31 - "/assets/icons/pencil.png", 32 - "/assets/fonts/8bit-Art-Sans-subset.woff2", 33 - "/assets/fonts/VT323-Regular-subset.woff2", 34 - ]); 35 - }) 36 - ); 37 - }); 38 - 39 - // Network falling back to cache approach - we only cache the home route 40 - // https://developers.google.com/web/ilt/pwa/caching-files-with-service-worker 41 - self.addEventListener("fetch", function (event) { 42 - event.respondWith( 43 - fetch(event.request).catch(function () { 44 - return caches.match(event.request); 45 - }) 46 - ); 47 - });