2016-06-10 11:32:05 +02:00
|
|
|
<!DOCTYPE html><html><head lang="en"><meta charset="UTF-8"><title>KeeWeb</title><meta name="signature" content="KLl5I0yq9uP0t6c6efbXnEn64+vcfkjoYjH9kb8lSiccUzKnFJ8DAeCxS4bWlmf1savc0hVXPDeJ9q3xdemiJNdG0rfF+uomN4HsyZx3jx4OTK1dWrGhKG7ITEQejvoMohnrJN9Jk1xwVOQPI11gL0e8XJRM491K0zW/hJxgMr98ol+a3Sh+MAxMqvzUJ03DwSITeoQobT9T9tfv9527bK9dvAJBxixSEK1zUXf0iRHj9ZtdKYDewTdiMZWz5ZacLODGffIiuzbucYip7//Cg7CWymDgFSsg9/CXuE2Q8lZP+w2olkaWZPoDKa6CI8I4t3crWF8KizxCdLetP86Mfg=="><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="theme-color" content="#6386EC"><link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXA
|
|
|
|
o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n,function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this,r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+(t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o),o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments,t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[];if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.is
|
|
|
|
}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=
|
|
|
|
return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function _a(a,b,c){
|
|
|
|
})(this,function(e){return function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:false};e[r].call(i.exports,i,i.exports,__webpack_require__);i.loaded=true;return i.exports}__webpack_require__.m=e;__webpack_require__.c=t;__webpack_require__.p="";return __webpack_require__(0)}([function(e,t,r){e.exports.Kdbx=r(30),e.exports.KdbxUuid=r(6),e.exports.KdbxError=r(8),e.exports.Credentials=r(14),e.exports.Consts=r(1),e.exports.ProtectedValue=r(10),e.exports.ByteUtils=r(2),e.exports.Random=r(9)},function(e,t){"use strict";e.exports.Signatures={FileMagic:2594363651,Sig2Kdbx:3041655655,Sig2Kdb:3041655653},e.exports.ErrorCodes={NotImplemented:"NotImplemented",InvalidArg:"InvalidArg",BadSignature:"BadSignature",InvalidVersion:"InvalidVersion",Unsupported:"Unsupported",FileCorrupt:"FileCorrupt",InvalidKey:"InvalidKey",MergeError:"MergeError"},e.exports.CompressionAlgorithm={None:0,GZip:1},e.exports.CrsAlgorithm={Null:0,ArcFourVariant:1,Salsa20:2},e.exports.AutoTypeObfuscationOptions={None:0,UseClipboard:1},e.exports.Defaults={KeyEncryptionRounds:6e3,MntncHistoryDays:365,HistoryMaxItems:10,HistoryMaxSize:6291456,RecycleBinName:"Recycle Bin"},e.exports.Icons={Key:0,World:1,Warning:2,NetworkServer:3,MarkedDirectory:4,UserCommunication:5,Parts:6,Notepad:7,WorldSocket:8,Identity:9,PaperReady:10,Digicam:11,IRCommunication:12,MultiKeys:13,Energy:14,Scanner:15,WorldStar:16,CDRom:17,Monitor:18,EMail:19,Configuration:20,ClipboardReady:21,PaperNew:22,Screen:23,EnergyCareful:24,EMailBox:25,Disk:26,Drive:27,PaperQ:28,TerminalEncrypted:29,Console:30,Printer:31,ProgramIcons:32,Run:33,Settings:34,WorldComputer:35,Archive:36,Homebanking:37,DriveWindows:39,Clock:39,EMailSearch:40,PaperFlag:41,Memory:42,TrashBin:43,Note:44,Expired:45,Info:46,Package:47,Folder:48,FolderOpen:49,FolderPackage:50,LockOpen:51,PaperLocked:52,Checked:53,Pen:54,Thumbnail:55,Book:56,List:57,UserKey:58,Tool:59,Home:60,Star:61,Tux:62,Feather:63,Apple:64,Wiki:65,Money:66,Certificate:67,BlackBerry:68}},function(e,t,r){"use strict";function arrayBufferEquals(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=new Uint8Array(e),i=new Uint8Array(t),n=0,s=r.length;s>n;n++)if(r[n]!==i[n])return!1;return!0}function bytesToString(e){return e instanceof ArrayBuffer&&(e=new Uint8Array(e)),i.bytes_to_string(e,!0)}function stringToBytes(e){return i.string_to_bytes(e,!0)}function base64ToBytes(e){if("undefined"==typeof atob&&"function"==typeof Buffer){var t=new Buffer(e,"base64");return new Uint8Array(t)}return i.base64_to_bytes(e)}function bytesToBase64(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),"undefined"==typeof btoa&&"function"==typeof Buffer){var t=new Buffer(e);return t.toString("base64")}return i.bytes_to_base64(e)}function arrayToBuffer(e){if(e instanceof ArrayBuffer)return e;var t=e.buffer;return 0===e.byteOffset&&e.byteLength===t.byteLength?t:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function zeroBuffer(e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));for(var t=0,r=e.length;r>t;t++)e[t]=0}var i=r(4);e.exports.arrayBufferEquals=arrayBufferEquals,e.exports.bytesToString=bytesToString,e.exports.stringToBytes=stringToBytes,e.exports.base64ToBytes=base64ToBytes,e.exports.bytesToBase64=bytesToBase64,e.exports.arrayToBuffer=arrayToBuffer,e.exports.zeroBuffer=zeroBuffer},function(e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray)return void e.set(t.subarray(r,r+i),n);for(var s=0;i>s;s++)e[n+s]=t[r+s]},flattenChunks:function(e){var t,r,i,n,s,a;for(i=0,t=0,r=e.length;r>t;t++)i+=e[t].length;for(a=new Uint8Array(i),n=0,t=0,r=e.length;r>t;t++)s=e[t],a.set(s,n),n+
|
|
|
|
4>g||g>=m-4?p[g+b]=_:p[g+b]=s[0][r[_>>>24]]^s[1][r[_>>>16&255]]^s[2][r[_>>>8&255]]^s[3][r[255&_]]}c.set_rounds(e+5)}l||d();var h=new Uint32Array(o);h.set(r,512),h.set(i,768);for(var u=0;4>u;u++)h.set(n[u],4096+1024*u>>2),h.set(s[u],8192+1024*u>>2);var c=function(e,t,r){"use asm";var i=0,n=0,s=0,a=0,o=0,d=0,l=0,h=0,u=0,c=0,f=0,p=0,m=0,y=0,_=0,g=0,b=0,v=0,w=0,k=0,x=0;var z=new e.Uint32Array(r),V=new e.Uint8Array(r);function A(e,t,r,o,d,l,h,u){e=e|0;t=t|0;r=r|0;o=o|0;d=d|0;l=l|0;h=h|0;u=u|0;var c=0,f=0,p=0,m=0,y=0,_=0,g=0,b=0;c=r|1024,f=r|2048,p=r|3072;d=d^z[(e|0)>>2],l=l^z[(e|4)>>2],h=h^z[(e|8)>>2],u=u^z[(e|12)>>2];for(b=16;(b|0)<=o<<4;b=b+16|0){m=z[(r|d>>22&1020)>>2]^z[(c|l>>14&1020)>>2]^z[(f|h>>6&1020)>>2]^z[(p|u<<2&1020)>>2]^z[(e|b|0)>>2],y=z[(r|l>>22&1020)>>2]^z[(c|h>>14&1020)>>2]^z[(f|u>>6&1020)>>2]^z[(p|d<<2&1020)>>2]^z[(e|b|4)>>2],_=z[(r|h>>22&1020)>>2]^z[(c|u>>14&1020)>>2]^z[(f|d>>6&1020)>>2]^z[(p|l<<2&1020)>>2]^z[(e|b|8)>>2],g=z[(r|u>>22&1020)>>2]^z[(c|d>>14&1020)>>2]^z[(f|l>>6&1020)>>2]^z[(p|h<<2&1020)>>2]^z[(e|b|12)>>2];d=m,l=y,h=_,u=g}i=z[(t|d>>22&1020)>>2]<<24^z[(t|l>>14&1020)>>2]<<16^z[(t|h>>6&1020)>>2]<<8^z[(t|u<<2&1020)>>2]^z[(e|b|0)>>2],n=z[(t|l>>22&1020)>>2]<<24^z[(t|h>>14&1020)>>2]<<16^z[(t|u>>6&1020)>>2]<<8^z[(t|d<<2&1020)>>2]^z[(e|b|4)>>2],s=z[(t|h>>22&1020)>>2]<<24^z[(t|u>>14&1020)>>2]<<16^z[(t|d>>6&1020)>>2]<<8^z[(t|l<<2&1020)>>2]^z[(e|b|8)>>2],a=z[(t|u>>22&1020)>>2]<<24^z[(t|d>>14&1020)>>2]<<16^z[(t|l>>6&1020)>>2]<<8^z[(t|h<<2&1020)>>2]^z[(e|b|12)>>2]}function B(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;A(0,2048,4096,x,e,t,r,i)}function C(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var s=0;A(1024,3072,8192,x,e,i,r,t);s=n,n=a,a=s}function D(e,t,r,u){e=e|0;t=t|0;r=r|0;u=u|0;A(0,2048,4096,x,o^e,d^t,l^r,h^u);o=i,d=n,l=s,h=a}function E(e,t,r,u){e=e|0;t=t|0;r=r|0;u=u|0;var c=0;A(1024,3072,8192,x,e,u,r,t);c=n,n=a,a=c;i=i^o,n=n^d,s=s^l,a=a^h;o=e,d=t,l=r,h=u}function F(e,t,r,u){e=e|0;t=t|0;r=r|0;u=u|0;A(0,2048,4096,x,o,d,l,h);o=i=i^e,d=n=n^t,l=s=s^r,h=a=a^u}function G(e,t,r,u){e=e|0;t=t|0;r=r|0;u=u|0;A(0,2048,4096,x,o,d,l,h);i=i^e,n=n^t,s=s^r,a=a^u;o=e,d=t,l=r,h=u}function H(e,t,r,u){e=e|0;t=t|0;r=r|0;u=u|0;A(0,2048,4096,x,o,d,l,h);o=i,d=n,l=s,h=a;i=i^e,n=n^t,s=s^r,a=a^u}function I(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;A(0,2048,4096,x,u,c,f,p);p=~g&p|g&p+1,f=~_&f|_&f+((p|0)==0),c=~y&c|y&c+((f|0)==0),u=~m&u|m&u+((c|0)==0);i=i^e,n=n^t,s=s^r,a=a^o}function J(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;var n=0,s=0,a=0,u=0,c=0,f=0,p=0,m=0,y=0,_=0;e=e^o,t=t^d,r=r^l,i=i^h;n=b|0,s=v|0,a=w|0,u=k|0;for(;(y|0)<128;y=y+1|0){if(n>>>31){c=c^e,f=f^t,p=p^r,m=m^i}n=n<<1|s>>>31,s=s<<1|a>>>31,a=a<<1|u>>>31,u=u<<1;_=i&1;i=i>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(_)e=e^3774873600}o=c,d=f,l=p,h=m}function K(e){e=e|0;x=e}function L(e,t,r,o){e=e|0;t=t|0;r=r|0;o=o|0;i=e,n=t,s=r,a=o}function M(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;o=e,d=t,l=r,h=i}function N(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;u=e,c=t,f=r,p=i}function O(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;m=e,y=t,_=r,g=i}function P(e,t,r,i){e=e|0;t=t|0;r=r|0;i=i|0;p=~g&p|g&i,f=~_&f|_&r,c=~y&c|y&t,u=~m&u|m&e}function Q(e){e=e|0;if(e&15)return-1;V[e|0]=i>>>24,V[e|1]=i>>>16&255,V[e|2]=i>>>8&255,V[e|3]=i&255,V[e|4]=n>>>24,V[e|5]=n>>>16&255,V[e|6]=n>>>8&255,V[e|7]=n&255,V[e|8]=s>>>24,V[e|9]=s>>>16&255,V[e|10]=s>>>8&255,V[e|11]=s&255,V[e|12]=a>>>24,V[e|13]=a>>>16&255,V[e|14]=a>>>8&255,V[e|15]=a&255;return 16}function R(e){e=e|0;if(e&15)return-1;V[e|0]=o>>>24,V[e|1]=o>>>16&255,V[e|2]=o>>>8&255,V[e|3]=o&255,V[e|4]=d>>>24,V[e|5]=d>>>16&255,V[e|6]=d>>>8&255,V[e|7]=d&255,V[e|8]=l>>>24,V[e|9]=l>>>16&255,V[e|10]=l>>>8&255,V[e|11]=l&255,V[e|12]=h>>>24,V[e|13]=h>>>16&255,V[e|14]=h>>>8&255,V[e|15]=h&255;return 16}function S(){B(0,0,0,0);b=i,v=n,w=s,k=a}function T(e,t,r){e=e|0;t=t|0;r=r|0;var o=0;if(t&15)return-1;while((r|0)>=16){j[e&7](V[t|0]<<24|V[t|1]<<16|V[t|2]<<8|V[t|3],V[t|4]<<24|V[t|5]<<16|V[t|6]<<8|V[t|7],V[t|8]<<24|V[t|9]<<16|V[t|10]<<8|V[t|11],V[t|12]<<24|V[t|13]<<16|V[t|14]<<8|V[t|15]);V[t|0]=i>>>24,V[t|1]=i>>>16&255,V[t|2]=i>>>8&255,V[t|3]=i&255,V[t|4]=n>>>24,V[t|5]=n>>>16&255,V[t|6]=n>>>8&255,V[t|7]=n&255,V[t|8]=s>>>24,V[t|
|
|
|
|
break;case i.Elem.LastModTime:this.lastModTime=n.getDate(e);break;case i.Elem.LastAccessTime:this.lastAccessTime=n.getDate(e);break;case i.Elem.ExpiryTime:this.expiryTime=n.getDate(e);break;case i.Elem.Expires:this.expires=n.getBoolean(e);break;case i.Elem.UsageCount:this.usageCount=n.getNumber(e);break;case i.Elem.LocationChanged:this.locationChanged=n.getDate(e)}},s.prototype.clone=function(){var e=new s;return e.creationTime=this.creationTime,e.lastModTime=this.lastModTime,e.lastAccessTime=this.lastAccessTime,e.expiryTime=this.expiryTime,e.expires=this.expires,e.usageCount=this.usageCount,e.locationChanged=this.locationChanged,e},s.prototype.update=function(){var e=new Date;this.lastModTime=e,this.lastAccessTime=e},s.prototype.write=function(e){var t=n.addChildNode(e,i.Elem.Times);n.setDate(n.addChildNode(t,i.Elem.CreationTime),this.creationTime),n.setDate(n.addChildNode(t,i.Elem.LastModTime),this.lastModTime),n.setDate(n.addChildNode(t,i.Elem.LastAccessTime),this.lastAccessTime),n.setDate(n.addChildNode(t,i.Elem.ExpiryTime),this.expiryTime),n.setBoolean(n.addChildNode(t,i.Elem.Expires),this.expires),n.setNumber(n.addChildNode(t,i.Elem.UsageCount),this.usageCount),n.setDate(n.addChildNode(t,i.Elem.LocationChanged),this.locationChanged)},s.create=function(){var e=new s,t=new Date;return e.creationTime=t,e.lastModTime=t,e.lastAccessTime=t,e.expiryTime=t,e.expires=!1,e.usageCount=0,e.locationChanged=t,e},s.read=function(e){for(var t=new s,r=0,i=e.childNodes,n=i.length;n>r;r++){var a=i[r];a.tagName&&t._readNode(a)}return t},e.exports=s},function(e,t,r){"use strict";var i=r(3).assign,n=r(32),s=r(33),a=r(20),o={};i(o,n,s,a),e.exports=o},function(e,t,r){"use strict";function buf2binstring(e,t){if(65537>t&&(e.subarray&&s||!e.subarray&&n))return String.fromCharCode.apply(null,i.shrinkBuf(e,t));for(var r="",a=0;t>a;a++)r+=String.fromCharCode(e[a]);return r}var i=r(3),n=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(a){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(a){s=!1}for(var o=new i.Buf8(256),d=0;256>d;d++)o[d]=d>=252?6:d>=248?5:d>=240?4:d>=224?3:d>=192?2:1;o[254]=o[254]=1,t.string2buf=function(e){var t,r,n,s,a,o=e.length,d=0;for(s=0;o>s;s++)r=e.charCodeAt(s),55296===(64512&r)&&o>s+1&&(n=e.charCodeAt(s+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),s++)),d+=128>r?1:2048>r?2:65536>r?3:4;for(t=new i.Buf8(d),a=0,s=0;d>a;s++)r=e.charCodeAt(s),55296===(64512&r)&&o>s+1&&(n=e.charCodeAt(s+1),56320===(64512&n)&&(r=65536+(r-55296<<10)+(n-56320),s++)),128>r?t[a++]=r:2048>r?(t[a++]=192|r>>>6,t[a++]=128|63&r):65536>r?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return buf2binstring(e,e.length)},t.binstring2buf=function(e){for(var t=new i.Buf8(e.length),r=0,n=t.length;n>r;r++)t[r]=e.charCodeAt(r);return t},t.buf2string=function(e,t){var r,i,n,s,a=t||e.length,d=new Array(2*a);for(i=0,r=0;a>r;)if(n=e[r++],128>n)d[i++]=n;else if(s=o[n],s>4)d[i++]=65533,r+=s-1;else{for(n&=2===s?31:3===s?15:7;s>1&&a>r;)n=n<<6|63&e[r++],s--;s>1?d[i++]=65533:65536>n?d[i++]=n:(n-=65536,d[i++]=55296|n>>10&1023,d[i++]=56320|1023&n)}return buf2binstring(d,i)},t.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&128===(192&e[r]);)r--;return 0>r?t:0===r?t:r+o[e[r]]>t?r:t}},function(e,t){"use strict";function adler32(e,t,r,i){for(var n=65535&e|0,s=e>>>16&65535|0,a=0;0!==r;){a=r>2e3?2e3:r,r-=a;do n=n+t[i++]|0,s=s+n|0;while(--a);n%=65521,s%=65521}return n|s<<16|0}e.exports=adler32},function(e,t){e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t){"use strict";function makeTable(){for(var e,t=[],r=0;256>r;r++){e=r;for(var i=0;8
|
|
|
|
this.getDefaultGroup().forEach(function(t){t&&e[t.uuid]&&(t._editState=e[t.uuid])}),e.meta&&(this.meta._editState=e.meta)},w.prototype.removeLocalEditState=function(){this.getDefaultGroup().forEach(function(e){e&&(e._editState=void 0)}),this.meta._editState=void 0},w.prototype._getObjectMap=function(){var e={},t={};return this.getDefaultGroup().forEach(function(t,r){var i=t||r;if(e[i.uuid])throw new s(p.ErrorCodes.MergeError,"Duplicate: "+i.uuid);e[i.uuid]=i}),this.deletedObjects.forEach(function(e){t[e.uuid]=e.deletionTime}),{objects:e,deleted:t}},w.prototype._generateSalts=function(){this.header.generateSalts()},w.prototype._readHeader=function(e){this.header=o.read(e)},w.prototype._writeHeader=function(e){this.header.write(e)},w.prototype._getMasterKey=function(e){var t=this.credentials.getHash(),r=this.header.transformSeed,n=this.header.keyEncryptionRounds,s=this.header.masterSeed;v.encrypt(t,r,n,function(r){_.zeroBuffer(t);var n=i.SHA256.bytes(r);_.zeroBuffer(r);var a=(new i.SHA256).reset(),o=_.arrayToBuffer(a.process(s).process(n).finish().result);_.zeroBuffer(n),setTimeout(e.bind(null,o),0)})},w.prototype._decryptXml=function(e,t){var r=e.readBytesToEnd();this._getMasterKey(function(e){try{r=_.arrayToBuffer(i.AES_CBC.decrypt(r,e,!1,this.header.encryptionIV)),_.zeroBuffer(e),r=this._trimStartBytes(r),r=y.decrypt(r),this.header.compression===p.CompressionAlgorithm.GZip&&(r=n.ungzip(r));var s=_.bytesToString(r);this._parseXml(s)}catch(a){return t(a)}t()}.bind(this))},w.prototype._encryptXml=function(e){var t=this._serializeXml(),r=_.arrayToBuffer(_.stringToBytes(t));this.header.compression===p.CompressionAlgorithm.GZip&&(r=n.gzip(r)),r=y.encrypt(_.arrayToBuffer(r));var s=new Uint8Array(this.header.streamStartBytes),a=new Uint8Array(r.byteLength+s.length);a.set(s),a.set(new Uint8Array(r),s.length),r=a;var o=this.header.encryptionIV;this._getMasterKey(function(t){r=_.arrayToBuffer(i.AES_CBC.encrypt(r,t,!0,o)),_.zeroBuffer(t),e(r)})},w.prototype._trimStartBytes=function(e){var t=this.header.streamStartBytes;if(e.byteLength<t.byteLength)throw new s(p.ErrorCodes.FileCorrupt,"short start bytes");if(!_.arrayBufferEquals(e.slice(0,this.header.streamStartBytes.byteLength),t))throw new s(p.ErrorCodes.InvalidKey);return e.slice(t.byteLength)},w.prototype._checkHeaderHash=function(e){if(this.meta.headerHash){var t=this.meta.headerHash,r=this._getHeaderHash(e);if(!_.arrayBufferEquals(t,r))throw new s(p.ErrorCodes.FileCorrupt,"header hash mismatch")}},w.prototype._setHeaderHash=function(e){this.meta.headerHash=this._getHeaderHash(e)},w.prototype._getHeaderHash=function(e){return _.arrayToBuffer(i.SHA256.bytes(e.readBytesNoAdvance(0,this.header.endPos)))},w.prototype._parseXml=function(e){e=g.parse(e),Object.defineProperty(this,"xml",{value:e,configurable:!0})},w.prototype._serializeXml=function(){return g.serialize(this.xml)},w.prototype._setProtectedValues=function(){g.setProtectedValues(this.xml.documentElement,this._getProtectSaltGenerator())},w.prototype._updateProtectedValuesSalt=function(){g.updateProtectedValuesSalt(this.xml.documentElement,this._getProtectSaltGenerator())},w.prototype._unprotectValuesInXml=function(){g.unprotectValues(this.xml.documentElement)},w.prototype._protectValuesInXml=function(){g.protectUnprotectedValues(this.xml.documentElement)},w.prototype._protectPlainValues=function(){g.protectPlainValues(this.xml.documentElement)},w.prototype._getProtectSaltGenerator=function(){return new b(this.header.protectedStreamKey)},w.prototype._loadFromXml=function(){var e=this.xml.documentElement;if(e.tagName!==m.Elem.DocNode)throw new s(p.ErrorCodes.FileCorrupt,"bad xml root");this._parseMeta(),this._parseRoot(),this._resolveFieldRefs()},w.prototype._parseMeta=function(){var e=g.getChildNode(this.xml.documentElement,m.Elem.Meta,"no meta node");this.meta=d.read(e)},w.prototype._parseRoot=function(){this.groups=[],this.deletedObjects=[];for(var e=g.getChildNode(this.xml.documentElement,m.Elem.Root,"no root node"),t=0,r=e.childNodes,i=r.length;i>t;t++){var n=r[t];switch(n.tagName){case m.Elem.Group:this._readGroup(n)
|
|
|
|
r.bits=oe,y;e.adler=r.check=1,r.mode=I;case I:if(t===c||t===f)break e;case z:if(r.last){ae>>>=7&oe,oe-=7&oe,r.mode=W;break}for(;3>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}switch(r.last=1&ae,ae>>>=1,oe-=1,3&ae){case 0:r.mode=P;break;case 1:if(fixedtables(r),r.mode=V,t===f){ae>>>=2,oe-=2;break e}break;case 2:r.mode=H;break;case 3:e.msg="invalid block type",r.mode=Q}ae>>>=2,oe-=2;break;case P:for(ae>>>=7&oe,oe-=7&oe;32>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if((65535&ae)!==(ae>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Q;break}if(r.length=65535&ae,ae=0,oe=0,r.mode=M,t===f)break e;case M:r.mode=F;case F:if(he=r.length){if(he>ne&&(he=ne),he>se&&(he=se),0===he)break e;i.arraySet(te,ee,re,he,ie),ne-=he,re+=he,se-=he,ie+=he,r.length-=he;break}r.mode=I;break;case H:for(;14>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if(r.nlen=(31&ae)+257,ae>>>=5,oe-=5,r.ndist=(31&ae)+1,ae>>>=5,oe-=5,r.ncode=(15&ae)+4,ae>>>=4,oe-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Q;break}r.have=0,r.mode=O;case O:for(;r.have<r.ncode;){for(;3>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}r.lens[xe[r.have++]]=7&ae,ae>>>=3,oe-=3}for(;r.have<19;)r.lens[xe[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,we={bits:r.lenbits},ve=o(d,r.lens,0,19,r.lencode,0,r.work,we),r.lenbits=we.bits,ve){e.msg="invalid code lengths set",r.mode=Q;break}r.have=0,r.mode=R;case R:for(;r.have<r.nlen+r.ndist;){for(;Ee=r.lencode[ae&(1<<r.lenbits)-1],fe=Ee>>>24,pe=Ee>>>16&255,me=65535&Ee,!(oe>=fe);){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if(16>me)ae>>>=fe,oe-=fe,r.lens[r.have++]=me;else{if(16===me){for(ke=fe+2;ke>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if(ae>>>=fe,oe-=fe,0===r.have){e.msg="invalid bit length repeat",r.mode=Q;break}be=r.lens[r.have-1],he=3+(3&ae),ae>>>=2,oe-=2}else if(17===me){for(ke=fe+3;ke>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}ae>>>=fe,oe-=fe,be=0,he=3+(7&ae),ae>>>=3,oe-=3}else{for(ke=fe+7;ke>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}ae>>>=fe,oe-=fe,be=0,he=11+(127&ae),ae>>>=7,oe-=7}if(r.have+he>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Q;break}for(;he--;)r.lens[r.have++]=be}}if(r.mode===Q)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Q;break}if(r.lenbits=9,we={bits:r.lenbits},ve=o(l,r.lens,0,r.nlen,r.lencode,0,r.work,we),r.lenbits=we.bits,ve){e.msg="invalid literal/lengths set",r.mode=Q;break}if(r.distbits=6,r.distcode=r.distdyn,we={bits:r.distbits},ve=o(h,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,we),r.distbits=we.bits,ve){e.msg="invalid distances set",r.mode=Q;break}if(r.mode=V,t===f)break e;case V:r.mode=G;case G:if(ne>=6&&se>=258){e.next_out=ie,e.avail_out=se,e.next_in=re,e.avail_in=ne,r.hold=ae,r.bits=oe,a(e,le),ie=e.next_out,te=e.output,se=e.avail_out,re=e.next_in,ee=e.input,ne=e.avail_in,ae=r.hold,oe=r.bits,r.mode===I&&(r.back=-1);break}for(r.back=0;Ee=r.lencode[ae&(1<<r.lenbits)-1],fe=Ee>>>24,pe=Ee>>>16&255,me=65535&Ee,!(oe>=fe);){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if(pe&&0===(240&pe)){for(ye=fe,_e=pe,ge=me;Ee=r.lencode[ge+((ae&(1<<ye+_e)-1)>>ye)],fe=Ee>>>24,pe=Ee>>>16&255,me=65535&Ee,!(oe>=ye+fe);){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}ae>>>=ye,oe-=ye,r.back+=ye}if(ae>>>=fe,oe-=fe,r.back+=fe,r.length=me,0===pe){r.mode=q;break}if(32&pe){r.back=-1,r.mode=I;break}if(64&pe){e.msg="invalid literal/length code",r.mode=Q;break}r.extra=15&pe,r.mode=K;case K:if(r.extra){for(ke=r.extra;ke>oe;){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}r.length+=ae&(1<<r.extra)-1,ae>>>=r.extra,oe-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=L;case L:for(;Ee=r.distcode[ae&(1<<r.distbits)-1],fe=Ee>>>24,pe=Ee>>>16&255,me=65535&Ee,!(oe>=fe);){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}if(0===(240&pe)){for(ye=fe,_e=pe,ge=me;Ee=r.distcode[ge+((ae&(1<<ye+_e)-1)>>ye)],fe=Ee>>>24,pe=Ee>>>16&255,me=65535&Ee,!(oe>=ye+fe);){if(0===ne)break e;ne--,ae+=ee[re++]<<oe,oe+=8}ae>>>=ye,oe-=ye,r.back+=ye}if(ae>>>=fe,oe-=fe,r.back+=fe,64&pe){e.msg="invalid distance code",r.mode=Q;break}r.offset=me,r.extra=15&pe,r.mo
|
|
|
|
return function(r,s){var a;if((!s||!s.tab||s.tab.url.substring(0,t.receiverUrl.length)===t.receiverUrl)&&r.dropbox_oauth_receiver_href)return a=r.dropbox_oauth_receiver_href,t.locationStateParam(a)===e?(e=!1,o&&chrome.tabs.remove(o.id),chrome.runtime.onMessage.removeListener(i),n(h.Util.Oauth.queryParamsFromUrl(a))):void 0}}(this),chrome.runtime.onMessage.addListener(i),chrome.tabs.create({url:t,active:!0,pinned:!1},function(t){return o=t})},e.oauthReceiver=function(){return window.addEventListener("load",function(){var t;return t=window.location.href,window.location.hash="",chrome.runtime.sendMessage({dropbox_oauth_receiver_href:t}),window.close?window.close():void 0})},e}(h.AuthDriver.ChromeBase),h.AuthDriver.Cordova=function(t){function e(t){e.__super__.constructor.call(this,t)}return c(e,t),e.prototype.url=function(){return"https://www.dropbox.com/1/oauth2/redirect_receiver"},e.prototype.doAuthorize=function(t,e,r,n){var i,o,s,a,u;return o=window.open(t,"_blank","location=yes,closebuttoncaption=Cancel"),a=!1,i=/^[^\/]*\/\/[^\/]*\//.exec(t)[0],u=!1,s=function(t){return function(r){if(r.url&&t.locationStateParam(r.url)===e){if(u)return;return o.removeEventListener("loadstart",s),o.removeEventListener("loaderror",s),o.removeEventListener("loadstop",s),o.removeEventListener("exit",s),u=!0,window.setTimeout(function(){return o.close()},10),void n(h.Util.Oauth.queryParamsFromUrl(r.url))}if("exit"===r.type){if(u)return;o.removeEventListener("loadstart",s),o.removeEventListener("loaderror",s),o.removeEventListener("loadstop",s),o.removeEventListener("exit",s),u=!0,n(new AuthError("error=access_denied&error_description=User+closed+browser+window"))}}}(this),o.addEventListener("loadstart",s),o.addEventListener("loaderror",s),o.addEventListener("loadstop",s),o.addEventListener("exit",s)},e}(h.AuthDriver.BrowserBase),h.AuthDriver.Electron=function(t){function e(t){e.__super__.constructor.call(this,t)}return c(e,t),e.prototype.url=function(){return"https://www.dropbox.com/1/oauth2/redirect_receiver"},e.prototype.doAuthorize=function(t,e,r,n){var i,o;return i=!1,o=window.require("remote").require("app").openWindow({show:!1,"web-preferences":{"node-integration":!1,"web-security":!1,"allow-displaying-insecure-content":!0,"allow-running-insecure-content":!0}}),o.loadUrl(t),o.show(),o.webContents.on("did-finish-load",function(t){return function(){var r;if(r=o.webContents.getUrl(),t.locationStateParam(r)===e){if(i)return;return i=!0,o.close(),n(h.Util.Oauth.queryParamsFromUrl(r))}}}(this)),o.on("closed",function(t){return function(){return o=null,i?void 0:n(new h.AuthError("error=access_denied&error_description=User+closed+browser+window"))}}(this))},e}(h.AuthDriver.BrowserBase),h.AuthError=function(){function t(t){var e;if(!t.error)throw new Error("Not an OAuth 2.0 error: "+JSON.stringify(t));e="object"==typeof t.error&&t.error.error?t.error:t,this.code=e.error,this.description=e.error_description||null,this.uri=e.error_uri||null}return t.prototype.code=null,t.prototype.description=null,t.prototype.uri=null,t.ACCESS_DENIED="access_denied",t.INVALID_REQUEST="invalid_request",t.UNAUTHORIZED_CLIENT="unauthorized_client",t.INVALID_GRANT="invalid_grant",t.INVALID_SCOPE="invalid_scope",t.UNSUPPORTED_GRANT_TYPE="unsupported_grant_type",t.UNSUPPORTED_RESPONSE_TYPE="unsupported_response_type",t.SERVER_ERROR="server_error",t.TEMPORARILY_UNAVAILABLE="temporarily_unavailable",t.prototype.toString=function(){return"Dropbox OAuth error "+this.code+" :: "+this.description},t.prototype.inspect=function(){return this.toString()},t}(),h.Client=function(){function e(t){this._serverRoot=t.server||this._defaultServerRoot(),"maxApiServer"in t?this._maxApiServer=t.maxApiServer:this._maxApiServer=this._defaultMaxApiServer(),this._authServer=t.authServer||this._defaultAuthServer(),this._fileServer=t.fileServer||this._defaultFileServer(),this._downloadServer=t.downloadServer||this._defaultDownloadServer(),this._notifyServer=t.notifyServer||this._defaultNotifyServer(),this.onXhr=new h.Util.EventSource({cancelable:!0}),this.onError=new h.Util.EventSource,this.o
|
|
|
|
this._id=null}return this._secret=t.secret||null,this._appHash=null,this._error=null,this._loaded=!0,this.reset(),t.token?(this._token=t.token,t.tokenKey&&(this._tokenKey=t.tokenKey,this._tokenKid=t.tokenKid)):t.oauthCode?this._authCode=t.oauthCode:t.oauthStateParam&&(this._stateParam=t.oauthStateParam),this},t.prototype.credentials=function(){var t;return t={},this._id&&(t.key=this._id),this._secret&&(t.secret=this._secret),null!==this._token?(t.token=this._token,this._tokenKey&&(t.tokenKey=this._tokenKey,t.tokenKid=this._tokenKid)):null!==this._authCode?t.oauthCode=this._authCode:null!==this._stateParam&&(t.oauthStateParam=this._stateParam),t},t.prototype.step=function(){return null!==this._token?h.Client.DONE:null!==this._authCode?h.Client.AUTHORIZED:null!==this._stateParam?this._loaded?h.Client.PARAM_LOADED:h.Client.PARAM_SET:null!==this._error?h.Client.ERROR:h.Client.RESET},t.prototype.setAuthStateParam=function(t){if(null===this._id)throw new Error("No API key supplied, cannot do authorization");return this.reset(),this._loaded=!1,this._stateParam=t,this},t.prototype.checkAuthStateParam=function(t){return this._stateParam===t&&null!==this._stateParam},t.prototype.authStateParam=function(){return this._stateParam},t.prototype.error=function(){return this._error},t.prototype.processRedirectParams=function(t){var e;if(t.error){if(null===this._id)throw new Error("No API key supplied, cannot process errors");return this.reset(),this._error=new h.AuthError(t),!0}if(t.code){if(null===this._id)throw new Error("No API key supplied, cannot do Authorization Codes");return this.reset(),this._loaded=!1,this._authCode=t.code,!0}if(e=t.token_type){if(e=e.toLowerCase(),"bearer"!==e&&"mac"!==e)throw new Error("Unimplemented token type "+e);if(this.reset(),this._loaded=!1,"mac"===e){if("hmac-sha-1"!==t.mac_algorithm)throw new Error("Unimplemented MAC algorithms "+t.mac_algorithm);this._tokenKey=t.mac_key,this._tokenKid=t.kid}return this._token=t.access_token,!0}return!1},t.prototype.authHeader=function(t,e,r){var n,i;return null===this._token?(i=null===this._secret?h.Util.btoa(this._id+":"):h.Util.btoa(this._id+":"+this._secret),"Basic "+i):null===this._tokenKey?"Bearer "+this._token:(n=this.macParams(t,e,r),"MAC kid="+n.kid+" ts="+n.ts+" "+("access_token="+this._token+" mac="+n.mac))},t.prototype.addAuthParams=function(t,e,r){var n;return null===this._token?(r.client_id=this._id,null!==this._secret&&(r.client_secret=this._secret)):(null!==this._tokenKey&&(n=this.macParams(t,e,r),r.kid=n.kid,r.ts=n.ts,r.mac=n.mac),r.access_token=this._token),r},t.prototype.authorizeUrlParams=function(t,e){var r;if("token"!==t&&"code"!==t)throw new Error("Unimplemented /authorize response type "+t);return r={client_id:this._id,state:this._stateParam,response_type:t},e&&(r.redirect_uri=e),r},t.prototype.accessTokenParams=function(t){var e;return e={grant_type:"authorization_code",code:this._authCode},t&&(e.redirect_uri=t),e},t.queryParamsFromUrl=function(t){var e,r,n,i,o,s,a,u,h,l;if(s=/^[^?#]+(\?([^\#]*))?(\#(.*))?$/.exec(t),!s)return{};for(h=s[2]||"","/"===h.substring(0,1)&&(h=h.substring(1)),e=s[4]||"",r=e.indexOf("?"),-1!==r&&(e=e.substring(r+1)),"/"===e.substring(0,1)&&(e=e.substring(1)),u={},l=h.split("&").concat(e.split("&")),n=0,o=l.length;o>n;n++)i=l[n],a=i.indexOf("="),-1!==a&&(u[decodeURIComponent(i.substring(0,a))]=decodeURIComponent(i.substring(a+1)));return u},t.prototype.macParams=function(t,e,r){var n,i;return n={kid:this._tokenKid,ts:h.Util.Oauth.timestamp()},i=t.toUpperCase()+"&"+h.Util.Xhr.urlEncodeValue(e)+"&"+h.Util.Xhr.urlEncodeValue(h.Util.Xhr.urlEncode(r)),n.mac=h.Util.hmac(i,this._tokenKey),n},t.prototype.appHash=function(){return this._appHash?this._appHash:this._appHash=h.Util.sha1("oauth2-"+this._id).replace(/[\/+=]/g,"")},t.prototype.reset=function(){return this._stateParam=null,this._authCode=null,this._token=null,this._tokenKey=null,this._tokenKid=null,this._error=null,this},t.timestamp=function(){return Math.floor(Date.now()/1e3)},t.randomAuthStateParam=function(){return["oas",Date.now().toString(36),Math.random().toSt
|
|
|
|
var i=t[0]+t[1]+t[2],o=this.centerFromEnd(t,n),s=this.crossCheckVertical(e,Math.floor(o),2*t[1],i);if(!isNaN(s)){for(var a=(t[0]+t[1]+t[2])/3,h=this.possibleCenters.length,w=0;h>w;w++){var f=this.possibleCenters[w];if(f.aboutEquals(a,s,o))return new r(o,s,a)}var u=new r(o,s,a);this.possibleCenters.push(u)}return null},this.find=function(){for(var r,s=e+i,a=n+(o>>1),h=[0,0,0],w=0;o>w;w++){var f=a+(0===(1&w)?w+1>>1:-(w+1>>1));h[0]=0,h[1]=0,h[2]=0;for(var u=e;s>u&&!t[u+t.width*f];)u++;for(var c=0;s>u;){if(t[u+f*t.width])if(1===c)h[c]++;else if(2===c){if(this.foundPatternCross(h)&&(r=this.handlePossibleCenter(h,f,u)))return r;h[0]=h[2],h[1]=1,h[2]=0,c=1}else h[++c]++;else 1===c&&c++,h[c]++;u++}if(this.foundPatternCross(h)&&(r=this.handlePossibleCenter(h,f,s),null!==r))return r}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw"Couldn't find enough alignment patterns"}}var r=n(8);t.exports=i},function(t,e){"use strict";function n(t,e,n){this.x=t,this.y=e,this.count=1,this.estimatedModuleSize=n,this.incrementCount=function(){this.count++},this.aboutEquals=function(t,e,n){if(Math.abs(e-this.y)<=t&&Math.abs(n-this.x)<=t){var i=Math.abs(t-this.estimatedModuleSize);return 1>=i||i/this.estimatedModuleSize<=1}return!1}}t.exports=n},function(t,e,n){"use strict";function i(t){var e=t.getDimension();if(21>e||1!==(3&e))throw"Error BitMatrixParser";this.bitMatrix=t,this.parsedVersion=null,this.parsedFormatInfo=null,this.copyBit=function(t,e,n){return this.bitMatrix.getValue(t,e)?n<<1|1:n<<1},this.readFormatInformation=function(){if(this.parsedFormatInfo)return this.parsedFormatInfo;var t,e=0;for(t=0;6>t;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var n=5;n>=0;n--)e=this.copyBit(8,n,e);if(this.parsedFormatInfo=r.decodeFormatInformation(e),this.parsedFormatInfo)return this.parsedFormatInfo;var i=this.bitMatrix.getDimension();e=0;var o=i-8;for(t=i-1;t>=o;t--)e=this.copyBit(t,8,e);for(n=i-7;i>n;n++)e=this.copyBit(8,n,e);if(this.parsedFormatInfo=r.decodeFormatInformation(e),this.parsedFormatInfo)return this.parsedFormatInfo;throw"Error readFormatInformation"},this.readVersion=function(){if(this.parsedVersion)return this.parsedVersion;var t=this.bitMatrix.getDimension(),e=t-17>>2;if(6>=e)return o.getVersionForNumber(e);var n,i,r=0,s=t-11;for(i=5;i>=0;i--)for(n=t-9;n>=s;n--)r=this.copyBit(n,i,r);if(this.parsedVersion=o.decodeVersionInformation(r),this.parsedVersion&&this.parsedVersion.getDimensionForVersion()===t)return this.parsedVersion;for(r=0,n=5;n>=0;n--)for(i=t-9;i>=s;i--)r=this.copyBit(n,i,r);if(this.parsedVersion=o.decodeVersionInformation(r),this.parsedVersion&&this.parsedVersion.getDimensionForVersion()===t)return this.parsedVersion;throw"Error readVersion"},this.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),n=s.forReference(t.dataMask),i=this.bitMatrix.getDimension();n.unmaskBitMatrix(this.bitMatrix,i);for(var r=e.buildFunctionPattern(),o=!0,a=new Array(e.totalCodewords),h=0,w=0,f=0,u=i-1;u>0;u-=2){6===u&&u--;for(var c=0;i>c;c++)for(var l=o?i-1-c:c,d=0;2>d;d++)r.getValue(u-d,l)||(f++,w<<=1,this.bitMatrix.getValue(u-d,l)&&(w|=1),8===f&&(a[h++]=w,f=0,w=0));o^=!0}if(h!==e.totalCodewords)throw"Error readCodewords";return a}}var r=n(4),o=n(6),s=n(11);t.exports=i},function(t,e){"use strict";function n(t,e){this.numDataCodewords=t,this.codewords=e}n.getDataBlocks=function(t,e,i){if(t.length!==e.totalCodewords)throw"ArgumentException";var r,o,s=e.getECBlocksForLevel(i),a=0,h=s.getECBlocks();for(r=0;r<h.length;r++)a+=h[r].count;var w=new Array(a),f=0;for(o=0;o<h.length;o++){var u=h[o];for(r=0;r<u.count;r++){var c=u.dataCodewords,l=s.ecCodewordsPerBlock+c;w[f++]=new n(c,new Array(l))}}for(var d=w[0].codewords.length,v=w.length-1;v>=0;){var g=w[v].codewords.length;if(g===d)break;v--}v++;var m=d-s.ecCodewordsPerBlock,b=0;for(r=0;m>r;r++)for(o=0;f>o;o++)w[o].codewords[r]=t[b++];for(o=v;f>o;o++)w[o].codewords[m]=t[b++];var p=w[0].codewords.length;for(r=m;p>r;r++)for(o=0;f>o;o++){var M=v>o?r:r+1;w[o].codewords[M]=t[b++]}return w},t.exports=n
|
|
|
|
this.hide();self.el.className+=" is-bound";addEvent(opts.trigger,"click",self._onInputClick);addEvent(opts.trigger,"focus",self._onInputFocus);addEvent(opts.trigger,"blur",self._onInputBlur)}else{this.show()}};Pikaday.prototype={config:function(options){if(!this._o){this._o=extend({},defaults,true)}var opts=extend(this._o,options,true);opts.isRTL=!!opts.isRTL;opts.field=opts.field&&opts.field.nodeName?opts.field:null;opts.theme=typeof opts.theme==="string"&&opts.theme?opts.theme:null;opts.bound=!!(opts.bound!==undefined?opts.field&&opts.bound:opts.field);opts.trigger=opts.trigger&&opts.trigger.nodeName?opts.trigger:opts.field;opts.disableWeekends=!!opts.disableWeekends;opts.disableDayFn=typeof opts.disableDayFn==="function"?opts.disableDayFn:null;var nom=parseInt(opts.numberOfMonths,10)||1;opts.numberOfMonths=nom>4?4:nom;if(!isDate(opts.minDate)){opts.minDate=false}if(!isDate(opts.maxDate)){opts.maxDate=false}if(opts.minDate&&opts.maxDate&&opts.maxDate<opts.minDate){opts.maxDate=opts.minDate=false}if(opts.minDate){this.setMinDate(opts.minDate)}if(opts.maxDate){this.setMaxDate(opts.maxDate)}if(isArray(opts.yearRange)){var fallback=(new Date).getFullYear()-10;opts.yearRange[0]=parseInt(opts.yearRange[0],10)||fallback;opts.yearRange[1]=parseInt(opts.yearRange[1],10)||fallback}else{opts.yearRange=Math.abs(parseInt(opts.yearRange,10))||defaults.yearRange;if(opts.yearRange>100){opts.yearRange=100}}return opts},toString:function(format){return!isDate(this._d)?"":hasMoment?moment(this._d).format(format||this._o.format):this._d.toDateString()},getMoment:function(){return hasMoment?moment(this._d):null},setMoment:function(date,preventOnSelect){if(hasMoment&&moment.isMoment(date)){this.setDate(date.toDate(),preventOnSelect)}},getDate:function(){return isDate(this._d)?new Date(this._d.getTime()):null},setDate:function(date,preventOnSelect){if(!date){this._d=null;if(this._o.field){this._o.field.value="";fireEvent(this._o.field,"change",{firedBy:this})}return this.draw()}if(typeof date==="string"){date=new Date(Date.parse(date))}if(!isDate(date)){return}var min=this._o.minDate,max=this._o.maxDate;if(isDate(min)&&date<min){date=min}else if(isDate(max)&&date>max){date=max}this._d=new Date(date.getTime());setToStartOfDay(this._d);this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString();fireEvent(this._o.field,"change",{firedBy:this})}if(!preventOnSelect&&typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},gotoDate:function(date){var newCalendar=true;if(!isDate(date)){return}if(this.calendars){var firstVisibleDate=new Date(this.calendars[0].year,this.calendars[0].month,1),lastVisibleDate=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),visibleDate=date.getTime();lastVisibleDate.setMonth(lastVisibleDate.getMonth()+1);lastVisibleDate.setDate(lastVisibleDate.getDate()-1);newCalendar=visibleDate<firstVisibleDate.getTime()||lastVisibleDate.getTime()<visibleDate}if(newCalendar){this.calendars=[{month:date.getMonth(),year:date.getFullYear()}];if(this._o.mainCalendar==="right"){this.calendars[0].month+=1-this._o.numberOfMonths}}this.adjustCalendars()},adjustCalendars:function(){this.calendars[0]=adjustCalendar(this.calendars[0]);for(var c=1;c<this._o.numberOfMonths;c++){this.calendars[c]=adjustCalendar({month:this.calendars[0].month+c,year:this.calendars[0].year})}this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(month){if(!isNaN(month)){this.calendars[0].month=parseInt(month,10);this.adjustCalendars()}},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(year){if(!isNaN(year)){this.calendars[0].year=parseInt(year,10);this.adjustCalendars()}},setMinDate:function(value){setToStartOfDay(value);this._o.minDate=value;this._o.minYear=value.getFullYear();this._o.minMonth=value.getMonth();this.draw()},setMaxDate:function(value){setToStartOfDay(value);this._o.maxDate=value;this._o.maxYear=value.getFullYear();this._o.
|
|
|
|
newLast.nextSibling=nextChild;if(pre){pre.nextSibling=newFirst}else{parentNode.firstChild=newFirst}if(nextChild==null){parentNode.lastChild=newLast}else{nextChild.previousSibling=newLast}do{newFirst.parentNode=parentNode}while(newFirst!==newLast&&(newFirst=newFirst.nextSibling));_onUpdateChild(parentNode.ownerDocument||parentNode,parentNode);if(newChild.nodeType==DOCUMENT_FRAGMENT_NODE){newChild.firstChild=newChild.lastChild=null}return newChild}function _appendSingleChild(parentNode,newChild){var cp=newChild.parentNode;if(cp){var pre=parentNode.lastChild;cp.removeChild(newChild);var pre=parentNode.lastChild}var pre=parentNode.lastChild;newChild.parentNode=parentNode;newChild.previousSibling=pre;newChild.nextSibling=null;if(pre){pre.nextSibling=newChild}else{parentNode.firstChild=newChild}parentNode.lastChild=newChild;_onUpdateChild(parentNode.ownerDocument,parentNode,newChild);return newChild}Document.prototype={nodeName:"#document",nodeType:DOCUMENT_NODE,doctype:null,documentElement:null,_inc:1,insertBefore:function(newChild,refChild){if(newChild.nodeType==DOCUMENT_FRAGMENT_NODE){var child=newChild.firstChild;while(child){var next=child.nextSibling;this.insertBefore(child,refChild);child=next}return newChild}if(this.documentElement==null&&newChild.nodeType==1){this.documentElement=newChild}return _insertBefore(this,newChild,refChild),newChild.ownerDocument=this,newChild},removeChild:function(oldChild){if(this.documentElement==oldChild){this.documentElement=null}return _removeChild(this,oldChild)},importNode:function(importedNode,deep){return importNode(this,importedNode,deep)},getElementById:function(id){var rtv=null;_visitNode(this.documentElement,function(node){if(node.nodeType==1){if(node.getAttribute("id")==id){rtv=node;return true}}});return rtv},createElement:function(tagName){var node=new Element;node.ownerDocument=this;node.nodeName=tagName;node.tagName=tagName;node.childNodes=new NodeList;var attrs=node.attributes=new NamedNodeMap;attrs._ownerElement=node;return node},createDocumentFragment:function(){var node=new DocumentFragment;node.ownerDocument=this;node.childNodes=new NodeList;return node},createTextNode:function(data){var node=new Text;node.ownerDocument=this;node.appendData(data);return node},createComment:function(data){var node=new Comment;node.ownerDocument=this;node.appendData(data);return node},createCDATASection:function(data){var node=new CDATASection;node.ownerDocument=this;node.appendData(data);return node},createProcessingInstruction:function(target,data){var node=new ProcessingInstruction;node.ownerDocument=this;node.tagName=node.target=target;node.nodeValue=node.data=data;return node},createAttribute:function(name){var node=new Attr;node.ownerDocument=this;node.name=name;node.nodeName=name;node.localName=name;node.specified=true;return node},createEntityReference:function(name){var node=new EntityReference;node.ownerDocument=this;node.nodeName=name;return node},createElementNS:function(namespaceURI,qualifiedName){var node=new Element;var pl=qualifiedName.split(":");var attrs=node.attributes=new NamedNodeMap;node.childNodes=new NodeList;node.ownerDocument=this;node.nodeName=qualifiedName;node.tagName=qualifiedName;node.namespaceURI=namespaceURI;if(pl.length==2){node.prefix=pl[0];node.localName=pl[1]}else{node.localName=qualifiedName}attrs._ownerElement=node;return node},createAttributeNS:function(namespaceURI,qualifiedName){var node=new Attr;var pl=qualifiedName.split(":");node.ownerDocument=this;node.nodeName=qualifiedName;node.name=qualifiedName;node.namespaceURI=namespaceURI;node.specified=true;if(pl.length==2){node.prefix=pl[0];node.localName=pl[1]}else{node.localName=qualifiedName}return node}};_extends(Document,Node);function Element(){this._nsMap={}}Element.prototype={nodeType:ELEMENT_NODE,hasAttribute:function(name){return this.getAttributeNode(name)!=null},getAttribute:function(name){var attr=this.getAttributeNode(name);return attr&&attr.value||""},getAttributeNode:function(name){return this.attributes.getNamedItem(name)},setAttribute:function(name,value){var attr=this.ownerDocumen
|
|
|
|
}}),j.extend=d.Model.extend,a.exports=j}).call(b,c(2))},function(a,b,c){(function(b,d){"use strict";var e=c(1),f=c(23),g=c(57),h=c(13),i=c(7),j=c(38),k=c(8),l=f.extend({renderValue:function(a){return a&&a.isProtected?j.present(a.textLength):b.escape(a||"").replace(/\n/g,"<br/>")},getEditValue:function(a){return a&&a.isProtected?a.getText():a||""},startEdit:function(){var a=this.getEditValue(this.value),b=!(!this.value||!this.value.isProtected);this.$el.toggleClass("details__field--protected",b),this.input=d(document.createElement(this.model.multiline?"textarea":"input")),this.valueEl.html("").append(this.input),this.input.attr({autocomplete:"off",spellcheck:"false"}).val(a).focus()[0].setSelectionRange(a.length,a.length),this.input.bind({input:this.fieldValueInput.bind(this),keydown:this.fieldValueKeydown.bind(this),keypress:this.fieldValueInput.bind(this),click:this.fieldValueInputClick.bind(this),mousedown:this.fieldValueInputMouseDown.bind(this)}),this.listenTo(e,"click",this.fieldValueBlur),this.model.multiline&&this.setInputHeight(),this.model.canGen&&d("<div/>").addClass("details__field-value-btn details__field-value-btn-gen").appendTo(this.valueEl).click(this.showGeneratorClick.bind(this)).mousedown(this.showGenerator.bind(this))},showGeneratorClick:function(a){a.stopPropagation(),this.gen||this.input.focus()},showGenerator:function(){if(this.gen)this.hideGenerator();else{var a=this.input[0].getBoundingClientRect();this.gen=new g({model:{pos:{left:a.left,top:a.bottom},password:this.value}}).render(),this.gen.once("remove",this.generatorClosed.bind(this)),this.gen.once("result",this.generatorResult.bind(this))}},hideGenerator:function(){if(this.gen){var a=this.gen;delete this.gen,a.remove()}},generatorClosed:function(){this.gen&&(delete this.gen,this.endEdit())},generatorResult:function(a){this.gen&&(delete this.gen,this.endEdit(a))},setInputHeight:function(){var a=18;this.input.height(a);var b=this.input[0].scrollHeight;a>=b?b=a:b+=2,this.input.height(b)},fieldValueBlur:function(){!this.gen&&this.input&&this.endEdit(this.input.val())},fieldValueInput:function(a){a.stopPropagation(),this.model.multiline&&this.setInputHeight()},fieldValueInputClick:function(){this.gen&&this.hideGenerator()},fieldValueInputMouseDown:function(a){a.stopPropagation()},fieldValueKeydown:function(a){h.reg(),a.stopPropagation();var b=a.keyCode||a.which;b===i.DOM_VK_RETURN?this.model.multiline&&(a.altKey||a.shiftKey||a.ctrlKey)||(this.stopListening(e,"click",this.fieldValueBlur),this.endEdit(a.target.value)):b===i.DOM_VK_ESCAPE?(this.stopListening(e,"click",this.fieldValueBlur),this.endEdit()):b===i.DOM_VK_TAB&&(a.preventDefault(),this.stopListening(e,"click",this.fieldValueBlur),this.endEdit(a.target.value,{tab:{field:this.model.name,prev:a.shiftKey}}))},endEdit:function(a,b){this.gen&&this.hideGenerator(),this.editing&&(delete this.input,this.stopListening(e,"click",this.fieldValueBlur),"string"==typeof a&&this.value instanceof k.ProtectedValue&&(a=k.ProtectedValue.fromString(a)),"string"==typeof a&&(a=d.trim(a)),f.prototype.endEdit.call(this,a,b))},render:function(){f.prototype.render.call(this)}});a.exports=l}).call(b,c(2),c(4))},function(a,b,c){"use strict";var d=c(5),e={pad:function(a,b){for(var c=a.toString();c.length<b;)c="0"+c;return c},dtStr:function(a){return a?this.dStr(a)+" "+this.pad(a.getHours(),2)+":"+this.pad(a.getMinutes(),2)+":"+this.pad(a.getSeconds(),2):""},dStr:function(a){return a?a.getDate()+" "+d.monthsShort[a.getMonth()]+" "+a.getFullYear():""}};a.exports=e},function(a,b){"use strict";var c={AutoSync:18e5,CopyTip:1500,AutoHideHint:3e3,FileChangeSync:3e3,BeforeAutoLock:300,CheckWindowClosed:300,OtpFadeDuration:1e4};a.exports=c},function(a,b,c){"use strict";var d=c(1),e=c(11),f=c(63),g=e.isDesktop(),h={createScroll:function(a){a.$=d.$,g&&(this.scroll&&this.removeScroll(),this.scroll=f(a)),this.scroller=this.$el.find(".scroller"),this.scrollerBar=this.$el.find(".scroller__bar"),this.scrollerBarWrapper=this.$el.find(".scroller__bar-wrapper")},removeScroll:function(){this.scroll&&(this.scroll.dispose(),this.scroll=null
|
|
|
|
title:f.stringComparator("title",!0),"-title":f.stringComparator("title",!1),website:f.stringComparator("url",!0),"-website":f.stringComparator("url",!1),user:f.stringComparator("user",!0),"-user":f.stringComparator("user",!1),created:f.dateComparator("created",!0),"-created":f.dateComparator("created",!1),updated:f.dateComparator("updated",!0),"-updated":f.dateComparator("updated",!1),"-attachments":function(a,b){return this.attachmentSortVal(a).localeCompare(this.attachmentSortVal(b))}},defaultComparator:"title",initialize:function(){this.comparator=this.comparators[this.defaultComparator]},sortEntries:function(a){this.comparator=this.comparators[a]||this.comparators[this.defaultComparator],this.sort()},attachmentSortVal:function(a){var b=a.attachments,c=b.length?String.fromCharCode(64+b.length):"Z";return b[0]&&(c+=b[0].title),c}});a.exports=g},function(a,b,c){"use strict";var d=c(1),e=c(50),f=d.Collection.extend({model:e});a.exports=f},function(a,b,c){"use strict";var d=c(31),e={receive:function(){var a=window.opener||window.parent;if(location.href.indexOf("state=")>=0)d.receive();else{var b=this.urlArgsToMessage(window.location.href);a.postMessage(b,window.location.origin),window.close()}},urlArgsToMessage:function(a){var b={};return a.split(/[\?#&]/g).forEach(function(a){var c=a.split("=");2===c.length&&(b[c[0]]=c[1])}),b}};a.exports=e},function(a,b){"use strict";var c={dragObject:null};a.exports=c},function(a,b,c){"use strict";var d=c(8),e=function(){this.el=null,this.minChar=5120+Math.round(100*Math.random()),this.maxLen=128,this.length=0,this.pseudoValue="",this.salt=new Uint32Array(0)};e.prototype.setElement=function(a){this.el=a,this.el.val(this.pseudoValue),this.el.on("input",this._input.bind(this))},e.prototype.reset=function(){if(this.el=null,this.length=0,this.pseudoValue="",this.salt)for(var a=0;a<this.salt.length;a++)this.salt[a]=0;this.salt=new Uint32Array(0)},e.prototype._input=function(){for(var a=this.el[0].selectionStart,b=this.el.val(),c="",d=new Uint32Array(this.maxLen),e=0,f=0;e<b.length;){var g=b.charCodeAt(e),h=this.pseudoValue.charCodeAt(f),i=this._isSpecialChar(g);h===g?(c+=this._getChar(c.length),d[c.length-1]=h^this.salt[f]^c.charCodeAt(c.length-1),f++,e++):i?f++:(c+=this._getChar(c.length),d[c.length-1]=c.charCodeAt(c.length-1)^g,e++)}this.length=c.length,this.pseudoValue=c,this.salt=d,this.el.val(c),this.el[0].selectionStart=a,this.el[0].selectionEnd=a},e.prototype._getChar=function(a){return String.fromCharCode(this.minChar+a)},e.prototype._isSpecialChar=function(a){return a>=this.minChar&&a<=this.minChar+this.maxLen},Object.defineProperty(e.prototype,"value",{enumerable:!0,get:function(){for(var a,b,c=this.pseudoValue,e=this.salt,f=c.length,g=0,h=new Uint8Array(4*f),i=d.Random.getBytes(4*f),j=0;f>j;j++){a=String.fromCharCode(c.charCodeAt(j)^e[j]),b=d.ByteUtils.stringToBytes(a);for(var k=0;k<b.length;k++)h[g]=b[k]^i[g],g++}return new d.ProtectedValue(h.buffer.slice(0,g),i.buffer.slice(0,g))}}),a.exports=e},function(a,b,c){"use strict";var d=c(1),e=c(29),f=c(15),g=c(6),h=c(10),i=c(28),j=c(72),k=c(12),l=c(166),m=new k("updater"),n={UpdateInterval:864e5,MinUpdateTimeout:500,MinUpdateSize:1e4,UpdateCheckFiles:["index.html","app.js"],nextCheckTimeout:null,updateCheckDate:new Date(0),enabled:g&&g.updaterEnabled(),getAutoUpdateType:function(){if(!this.enabled)return!1;var a=h.instance.get("autoUpdate");return a&&a===!0&&(a="install"),a},updateInProgress:function(){return"checking"===i.instance.get("status")||["downloading","extracting"].indexOf(i.instance.get("updateStatus"))>=0},init:function(){var a=this.scheduleNextCheck();!a&&this.getAutoUpdateType()&&this.check(),!g&&window.applicationCache&&(window.applicationCache.addEventListener("updateready",this.checkAppCacheUpdateReady.bind(this)),this.checkAppCacheUpdateReady())},scheduleNextCheck:function(){if(this.nextCheckTimeout&&(clearTimeout(this.nextCheckTimeout),this.nextCheckTimeout=null),this.getAutoUpdateType()){var a=this.MinUpdateTimeout,b=i.instance.get("lastCheckDate");return b&&(a=Math.min(Math.max(this.UpdateInterval+(b-new Date),
|
|
|
|
data:f}}});a.exports=i}).call(b,c(4))},function(a,b,c){(function(b){"use strict";var d=c(1),e=c(21),f=d.View.extend({template:c(163),events:{"change .settings__general-prv-field-sel":"changeField","input .settings__general-prv-field-txt":"changeField"},render:function(){var a=e[this.model.name];return a&&a.getSettingsConfig&&this.renderTemplate(a.getSettingsConfig()),this},changeField:function(a){var c=a.target.dataset.id,d=a.target.value;if(a.target.checkValidity()){var f=e[this.model.name];f.applySetting(c,d),b(a.target).is("select")&&this.render()}}});a.exports=f}).call(b,c(4))},,,,,function(a,b,c){"use strict";function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b,c){this.helpers=a||{},this.partials=b||{},this.decorators=c||{},i.registerDefaultHelpers(this),j.registerDefaultDecorators(this)}b.__esModule=!0,b.HandlebarsEnvironment=e;var f=c(14),g=c(24),h=d(g),i=c(170),j=c(168),k=c(178),l=d(k),m="4.0.5";b.VERSION=m;var n=7;b.COMPILER_REVISION=n;var o={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};b.REVISION_CHANGES=o;var p="[object Object]";e.prototype={constructor:e,logger:l["default"],log:l["default"].log,registerHelper:function(a,b){if(f.toString.call(a)===p){if(b)throw new h["default"]("Arg not supported with multiple helpers");f.extend(this.helpers,a)}else this.helpers[a]=b},unregisterHelper:function(a){delete this.helpers[a]},registerPartial:function(a,b){if(f.toString.call(a)===p)f.extend(this.partials,a);else{if("undefined"==typeof b)throw new h["default"]('Attempting to register a partial called "'+a+'" as undefined');this.partials[a]=b}},unregisterPartial:function(a){delete this.partials[a]},registerDecorator:function(a,b){if(f.toString.call(a)===p){if(b)throw new h["default"]("Arg not supported with multiple decorators");f.extend(this.decorators,a)}else this.decorators[a]=b},unregisterDecorator:function(a){delete this.decorators[a]}};var q=l["default"].log;b.log=q,b.createFrame=f.createFrame,b.logger=l["default"]},,function(a,b,c){"use strict";var d=c(1),e=c(49),f=d.Collection.extend({model:e,hasOpenFiles:function(){return this.some(function(a){return a.get("open")})},hasUnsavedFiles:function(){return this.some(function(a){return a.get("modified")})},hasDirtyFiles:function(){return this.some(function(a){return a.get("dirty")})},getByName:function(a){return this.find(function(b){return b.get("name").toLowerCase()===a.toLowerCase()})},getById:function(a){return this.find(function(b){return b.get("id")===a})}});a.exports=f},function(a,b,c){"use strict";var d=c(1),e=c(48),f=c(26),g=d.Collection.extend({model:e,initialize:function(){},load:function(){var a=f.load("file-info");a&&this.reset(a,{silent:!0})},save:function(){f.save("file-info",this.toJSON())},getLast:function(){return this.first()},getMatch:function(a,b,c){return this.find(function(d){return(d.get("storage")||"")===(a||"")&&(d.get("name")||"")===(b||"")&&(d.get("path")||"")===(c||"")})},getByName:function(a){return this.find(function(b){return b.get("name").toLowerCase()===a.toLowerCase()})}});g.load=function(){var a=new g;return a.load(),a},a.exports=g},function(a,b,c){"use strict";var d=c(1),e=c(85),f=d.Collection.extend({model:e});a.exports=f},function(a,b,c){"use strict";var d=c(1),e=c(36),f=d.Collection.extend({model:e});a.exports=f},function(a,b,c){(function(b){"use strict";var d=c(1),e=c(9),f=c(5),g=c(12),h=c(11),i=c(51),j=c(61),k=new g("otp-qr-reader"),l={alert:null,fileInput:null,read:function(){var a=h.screenshotToClipboardShortcut();a&&(a=f.detSetupOtpAlertBodyWith.replace("{}","<code>"+a+"</code>"));var b=h.isMobile()?"":f.detSetupOtpAlertBodyWith.replace("{}","<code>"+h.actionShortcutSymbol()+"V</code>");l.startListenClipoard();var c=[{result:"manually",title:f.detSetupOtpManualButton,silent:!0},e.buttons.cancel];h.isMobile()&&c.unshift({result:"select",title:f.detSetupOtpScanButton});var d=h.isMobile()?f.detSetupOtpAlertBody3Mobile:f.detSetupOtpAlertBody3.replace("{}",b||"");l.alert=e.alert({icon:"qrcode",header:f.detSetupOtpAlert,body:[f.detSetupOtp
|
|
|
|
return a.title}).join(", ")||"("+e.listNoAttachments+")";default:return this.notes||this.url||this.user}}},a.exports=f},function(a,b,c){"use strict";var d=c(16),e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,f=d.extend({name:"cache",enabled:!!e,system:!0,db:null,errorOpening:null,initDb:function(a){if(this.db)return a&&a();var b=this;try{var c=e.open("FilesCache");c.onerror=function(c){b.logger.error("Error opening indexed db",c),b.errorOpening=c,a&&a(c)},c.onsuccess=function(c){b.db=c.target.result,a&&a()},c.onupgradeneeded=function(a){var b=a.target.result;b.createObjectStore("files")}}catch(d){b.logger.error("Error opening indexed db",d),a&&a(d)}},save:function(a,b,c,d){var e=this;e.logger.debug("Save",a),e.initDb(function(b){if(b)return d&&d(b);try{var f=e.logger.ts(),g=e.db.transaction(["files"],"readwrite").objectStore("files").put(c,a);g.onsuccess=function(){e.logger.debug("Saved",a,e.logger.ts(f)),d&&d()},g.onerror=function(){e.logger.error("Error saving to cache",a,g.error),d&&d(g.error)}}catch(h){e.logger.error("Error saving to cache",a,h),d&&d(h)}})},load:function(a,b,c){var d=this;d.logger.debug("Load",a),d.initDb(function(b){if(b)return c&&c(b,null);try{var e=d.logger.ts(),f=d.db.transaction(["files"],"readonly").objectStore("files").get(a);f.onsuccess=function(){d.logger.debug("Loaded",a,d.logger.ts(e)),c&&c(null,f.result)},f.onerror=function(){d.logger.error("Error loading from cache",a,f.error),c&&c(f.error)}}catch(g){d.logger.error("Error loading from cache",a,g),c&&c(g,null)}})},remove:function(a,b,c){var d=this;d.logger.debug("Remove",a),d.initDb(function(b){if(b)return c&&c(b);try{var e=d.logger.ts(),f=d.db.transaction(["files"],"readwrite").objectStore("files")["delete"](a);f.onsuccess=function(){d.logger.debug("Removed",a,d.logger.ts(e)),c&&c()},f.onerror=function(){d.logger.error("Error removing from cache",a,f.error),c&&c(f.error)}}catch(g){d.logger.error("Error removing from cache",a,g),c&&c(g)}})}});a.exports=new f},function(a,b,c){(function(b){"use strict";var d=c(16),e=c(31),f=c(5),g=c(22),h=d.extend({name:"dropbox",icon:"dropbox",enabled:!0,uipos:20,_convertError:function(a){return a?(a.status===e.ERROR_NOT_FOUND&&(a.notFound=!0),a.status===e.ERROR_CONFLICT&&(a.revConflict=!0),a):a},_toFullPath:function(a){var b=this.appSettings.get("dropboxFolder");return b&&(a=g.fixSlashes("/"+b+"/"+a)),a},_toRelPath:function(a){var b=this.appSettings.get("dropboxFolder");if(b){var c=a.toLowerCase().indexOf(b.toLowerCase());0===c?a=a.substr(b.length):1===c&&(a=a.substr(b.length+1)),a=g.fixSlashes("/"+a)}return a},_fixConfigFolder:function(a){return a=a.replace(/\\/g,"/").trim(),"/"===a[0]&&(a=a.substr(1)),a},needShowOpenConfig:function(){return!e.isValidKey()},getOpenConfig:function(){return{desc:"dropboxSetupDesc",fields:[{id:"key",title:"dropboxAppKey",desc:"dropboxAppKeyDesc",type:"text",required:!0,pattern:"\\w+"},{id:"folder",title:"dropboxFolder",desc:"dropboxFolderDesc",type:"text",placeholder:"dropboxFolderPlaceholder"}]}},getSettingsConfig:function(){var a=[],b=e.getKey(),c={id:"link",title:"dropboxLink",type:"select",value:"custom",options:{app:"dropboxLinkApp",full:"dropboxLinkFull",custom:"dropboxLinkCustom"}},d={id:"key",title:"dropboxAppKey",desc:"dropboxAppKeyDesc",type:"text",required:!0,pattern:"\\w+",value:b},f={id:"folder",title:"dropboxFolder",desc:"dropboxFolderSettingsDesc",type:"text",value:this.appSettings.get("dropboxFolder")||""},g=e.canUseBuiltInKeys();return g?(a.push(c),b===e.Keys.AppFolder?c.value="app":b===e.Keys.FullDropbox?(c.value="full",a.push(f)):(a.push(d),a.push(f))):(a.push(d),a.push(f)),{fields:a}},applyConfig:function(a,b){var c=this;e.authenticate(function(d){d||(a.folder&&(a.folder=c._fixConfigFolder(a.folder)),c.appSettings.set({dropboxAppKey:a.key,dropboxFolder:a.folder}),e.resetClient()),b(d)},a.key)},applySetting:function(a,b){switch(a){case"link":switch(a="dropboxAppKey",b){case"app":b=e.Keys.AppFolder;break;case"full":b=e.Keys.FullDropbox;break;case"custom":b="(your app key)";break;default:return}e.resetClient();break;cas
|
|
|
|
item:this.model.menu.allItemsSection.get("items").first()})},menuSelect:function(a){this.model.menu.select(a),this.views.grp.isHidden()||this.showEntries()},userIdle:function(){this.lockWorkspace(!0)},appMinimized:function(){this.model.settings.get("lockOnMinimize")&&this.lockWorkspace(!0)},lockWorkspace:function(a){var b=this;if(!o.alertDisplayed)if(this.model.files.hasUnsavedFiles())if(this.model.settings.get("autoSave"))this.saveAndLock();else{var c=a?v.appCannotLockAutoInit:v.appCannotLock;o.alert({icon:"lock",header:"Lock",body:c,buttons:[{result:"save",title:v.appSaveChangesBtn},{result:"discard",title:v.appDiscardChangesBtn,error:!0},{result:"",title:v.alertCancel}],checkbox:v.appAutoSave,success:function(a,c){"save"===a?(c&&b.model.settings.set("autoSave",c),b.saveAndLock()):"discard"===a&&b.model.closeAllFiles()}})}else this.closeAllFilesAndShowFirst()},saveAndLock:function(a){function b(b,f){if(f&&d.push(b.get("name")),0===--c)if(d.length&&e.model.files.hasDirtyFiles()){if(!o.alertDisplayed){var g=d.length>1?v.appSaveErrorBodyMul:v.appSaveErrorBody;o.error({header:v.appSaveError,body:g+" "+d.join(", ")})}a&&a(!0)}else e.closeAllFilesAndShowFirst(),a&&a(!0)}var c=0,d=[],e=this;this.model.files.forEach(function(a){a.get("dirty")&&(this.model.syncFile(a,null,b.bind(this,a)),c++)},this),c||this.closeAllFilesAndShowFirst()},saveAndExit:function(){this.saveAndLock(function(a){a&&t.exit()})},closeAllFilesAndShowFirst:function(){var a=this.model.files.find(function(a){return!a.get("demo")&&!a.get("created")});if(this.model.closeAllFiles(),a||(a=this.model.fileInfos.getLast()),a){var b=this.model.fileInfos.getMatch(a.get("storage"),a.get("name"),a.get("path"));b&&this.views.open.showOpenFileInfo(b)}},saveAll:function(){this.model.files.forEach(function(a){this.model.syncFile(a)},this)},syncAllByTimer:function(){this.model.settings.get("autoSave")&&this.saveAll()},remoteKeyChanged:function(a){this.showKeyChange(a.file)},keyChangeAccept:function(a){this.showEntries(),this.model.syncFile(a.file,{remoteKey:{password:a.password,keyFileName:a.keyFileName,keyFileData:a.keyFileData}})},toggleSettings:function(a){var b=a?this.model.menu[a+"Section"]:null;b&&(b=b.get("items").first()),this.views.settings?this.views.settings.page!==a&&b?b&&this.model.menu.select({item:b}):this.model.files.hasOpenFiles()?this.showEntries():(this.showLastOpenFile(),this.views.open.toggleMore()):(this.showSettings(),b&&this.model.menu.select({item:b}))},toggleMenu:function(){this.views.menu.switchVisibility()},toggleDetails:function(a){this.$el.find(".app").toggleClass("app--details-visible",a),this.views.menu.switchVisibility(!1)},editGroup:function(a){a&&this.views.grp.isHidden()?(this.showEditGroup(),this.views.grp.showGroup(a)):this.showEntries()},contextmenu:function(a){["input","textarea"].indexOf(a.target.tagName.toLowerCase())<0&&a.preventDefault()},dragover:function(a){a.preventDefault()},drop:function(a){a.preventDefault()},setTheme:function(){u.setTheme(this.model.settings.get("theme"))},extLinkClick:function(a){t&&(a.preventDefault(),t.openLink(a.target.href))},bodyClick:function(a){s.regUserAction(),d.trigger("click",a)}});a.exports=x},function(a,b,c){"use strict";var d=c(1),e=d.View.extend({template:c(134),events:{"click .details__field-label":"fieldLabelClick","click .details__field-value":"fieldValueClick"},render:function(){return this.renderTemplate(),this.labelEl=this.$el.find(".details__field-label"),this},fieldLabelClick:function(){this.trigger("more-click")},fieldValueClick:function(){this.trigger("add-field")}});a.exports=e},function(a,b,c){(function(b){"use strict";var d=c(1),e=c(11),f=d.View.extend({template:c(135),events:{},render:function(a){this.renderTemplate({},!0);var c=this.$el.find(".details__attachment-preview-download-text-shortcut");c.html(e.actionShortcutSymbol(!1));var d=new Blob([this.model.getBinary()],{type:this.model.mimeType}),f=this.$el.find(".details__attachment-preview-data");switch((this.model.mimeType||"").split("/")[0]){case"text":var g=new FileReader;return g.addEventListener("loadend",function(){b("
|
|
|
|
this.otpTimeLeft=0,this.otpValidUntil=0,this.otpTimeout&&(clearTimeout(this.otpTimeout),this.otpTimeout=null),this.otpTickInterval&&(clearInterval(this.otpTickInterval),this.otpTickInterval=null)},requestOtpUpdate:function(){this.value&&this.value.next(this.otpUpdated.bind(this))},otpUpdated:function(a,b){return this.value&&a?(this.otpValue=a||"",this.otpTimeLeft=b||0,this.otpValidUntil=Date.now()+b,this.editing||this.render(),void(this.otpValue&&b&&(this.otpTimeout=setTimeout(this.requestOtpUpdate.bind(this),b),this.otpTickInterval||(this.otpTickInterval=setInterval(this.otpTick.bind(this),300))))):void this.resetOtp()},otpTick:function(){if(this.value&&this.otpValidUntil){var a,b=this.otpValidUntil-Date.now();a=b>=e.OtpFadeDuration||this.editing?1:0>=b?f:Math.max(f,Math.pow(b/e.OtpFadeDuration,2)),this.fieldOpacity!==a&&(this.fieldOpacity=a,this.valueEl.css("opacity",a))}}});a.exports=g},function(a,b,c){"use strict";var d=c(23),e=d.extend({renderValue:function(a){return a},readonly:!0});a.exports=e},function(a,b,c){(function(b,d){"use strict";var e=c(17),f=e.extend({renderValue:function(a){return a?b.escape(a.join(", ")):""},getEditValue:function(a){return a?a.join(", "):""},valueToTags:function(a){var c={};return this.model.tags.forEach(function(a){c[a.toLowerCase()]=a}),b.unique(a.split(/\s*[;,:]\s*/).filter(b.identity).map(function(a){return c[a.toLowerCase()]||a}))},endEdit:function(a,b){void 0!==a&&(a=this.valueToTags(a)),this.tagsAutocomplete&&(this.tagsAutocomplete.remove(),this.tagsAutocomplete=null),e.prototype.endEdit.call(this,a,b)},startEdit:function(){e.prototype.startEdit.call(this);var a=this.input[0].getBoundingClientRect();this.tagsAutocomplete=d('<div class="details__field-autocomplete"></div>').appendTo("body"),this.tagsAutocomplete.css({top:a.bottom,left:a.left,width:a.width-2}),this.tagsAutocomplete.mousedown(this.tagsAutocompleteClick.bind(this)),this.setTags()},fieldValueInput:function(a){a.stopPropagation(),this.setTags(),e.prototype.fieldValueInput.call(this,a)},getAvailableTags:function(){var a=this.valueToTags(this.input.val()),b=a[a.length-1],c=b&&this.model.tags.indexOf(b)<0;return this.model.tags.filter(function(d){return a.indexOf(d)<0&&(!c||d.toLowerCase().indexOf(b.toLowerCase())>=0)})},setTags:function(){var a=this.getAvailableTags(),c=a.map(function(a){return'<div class="details__field-autocomplete-item">'+b.escape(a)+"</div>"}).join("");this.tagsAutocomplete.html(c),this.tagsAutocomplete.toggle(!!c)},tagsAutocompleteClick:function(a){if(a.stopPropagation(),a.target.classList.contains("details__field-autocomplete-item")){var b=d(a.target).text(),c=this.input.val();if(c){var e=this.valueToTags(c),f=e[e.length-1],g=f&&this.model.tags.indexOf(f)<0;g?c=c.substr(0,c.lastIndexOf(f))+b:c+=", "+b}else c=b;this.input.val(c),this.input.focus(),this.setTags()}this.afterPaint(function(){this.input.focus()})}});a.exports=f}).call(b,c(2),c(4))},function(a,b,c){(function(b){"use strict";var d=c(17),e=d.extend({displayUrlRegex:/^http:\/\//i,renderValue:function(a){return a?'<a href="'+b.escape(this.fixUrl(a))+'" target="_blank">'+b.escape(this.displayUrl(a))+"</a>":""},fixUrl:function(a){return a.indexOf(":")<0?"http://"+a:a},displayUrl:function(a){return a.replace(this.displayUrlRegex,"")}});a.exports=e}).call(b,c(2))},function(a,b,c){(function(b){"use strict";var d=c(1),e=c(7),f=c(13),g=c(57),h=c(28),i=d.View.extend({template:c(142),events:{"click .footer__db-item":"showFile","click .footer__db-open":"openFile","click .footer__btn-help":"toggleHelp","click .footer__btn-settings":"toggleSettings","click .footer__btn-generate":"genPass","click .footer__btn-lock":"lockWorkspace"},initialize:function(){this.views={},f.onKey(e.DOM_VK_L,this.lockWorkspace,this,f.SHORTCUT_ACTION),f.onKey(e.DOM_VK_G,this.genPass,this,f.SHORTCUT_ACTION),f.onKey(e.DOM_VK_O,this.openFile,this,f.SHORTCUT_ACTION),f.onKey(e.DOM_VK_S,this.saveAll,this,f.SHORTCUT_ACTION),f.onKey(e.DOM_VK_COMMA,this.toggleSettings,this,f.SHORTCUT_ACTION),this.listenTo(this,"hide",this.viewHidden),this.listenTo(this.model.files,"update reset change
|
|
|
|
icon:"file-text",buttons:[{result:"skip",title:m.openLocalFileDontShow,error:!0},{result:"ok",title:m.alertOk}],click:"",esc:"",enter:"",success:function(b){a.inputEl.focus(),"skip"===b&&a.model.settings.set("skipOpenLocalWarn",!0)}})}},fileSelected:function(a){var b=a.target.files[0];b&&this.processFile(b,function(a){a&&!b.path&&"fileData"===this.reading&&this.showLocalFileAlert()}.bind(this))},processFile:function(a,b){var c=new FileReader;c.onload=function(c){var d=!1;switch(this.reading){case"fileData":if(!this.checkOpenFileFormat(c.target.result))break;this.params.id=null,this.params.fileData=c.target.result,this.params.name=a.name.replace(/\.\w+$/i,""),this.params.path=a.path||null,this.params.storage=a.path?"file":null,this.params.rev=null,this.params.keyFileData||(this.params.keyFileName=null),this.displayOpenFile(),this.displayOpenKeyFile(),d=!0;break;case"fileXml":this.params.id=null,this.params.fileXml=c.target.result,this.params.name=a.name.replace(/\.\w+$/i,""),this.params.path=null,this.params.storage=null,this.params.rev=null,this.importDbWithXml(),d=!0;break;case"keyFileData":this.params.keyFileData=c.target.result,this.params.keyFileName=a.name,this.displayOpenKeyFile(),d=!0}b&&b(d)}.bind(this),c.onerror=function(){i.error({header:m.openFailedRead}),b&&b(!1)}.bind(this),"fileXml"===this.reading?c.readAsText(a):c.readAsArrayBuffer(a)},checkOpenFileFormat:function(a){var b=new Uint32Array(a,0,2);return b[0]!==f.Consts.Signatures.FileMagic?(i.error({header:m.openWrongFile,body:m.openWrongFileBody}),!1):b[1]===f.Consts.Signatures.Sig2Kdb?(i.error({header:m.openWrongFile,body:m.openKdbFileBody}),!1):b[1]!==f.Consts.Signatures.Sig2Kdbx?(i.error({header:m.openWrongFile,body:m.openWrongFileBody}),!1):!0},displayOpenFile:function(){this.$el.addClass("open--file"),this.$el.find(".open__settings-key-file").removeClass("hide"),this.inputEl[0].removeAttribute("readonly"),this.inputEl[0].setAttribute("placeholder",m.openPassFor+" "+this.params.name),this.inputEl.focus()},displayOpenKeyFile:function(){this.$el.toggleClass("open--key-file",!!this.params.keyFileName),this.$el.find(".open__settings-key-file-name").text(this.params.keyFileName||m.openKeyFile),this.inputEl.focus()},setFile:function(a,b,c){this.reading="fileData",this.processFile(a,function(a){a&&b&&(this.reading="keyFileData",this.processFile(b)),a&&"function"==typeof c&&c()}.bind(this))},openFile:function(){this.busy||(this.closeConfig(),this.openAny("fileData"))},importFromXml:function(){this.busy||(this.closeConfig(),this.openAny("fileXml","xml"))},openKeyFile:function(a){b(a.target).hasClass("open__settings-key-file-dropbox")?this.openKeyFileFromDropbox():!this.busy&&this.params.name&&(this.params.keyFileData?(this.params.keyFileData=null,this.params.keyFileName="",this.$el.removeClass("open--key-file"),this.$el.find(".open__settings-key-file-name").text(m.openKeyFile)):this.openAny("keyFileData"))},openKeyFileFromDropbox:function(){this.busy||k.chooseFile(function(a,b){a||(this.params.keyFileData=b.data,this.params.keyFileName=b.name,this.displayOpenKeyFile())}.bind(this))},openAny:function(a,b){this.reading=a,this.params[a]=null,this.$el.find(".open__file-ctrl").attr("accept",b||"").val(null).click()},openLast:function(a){if(!this.busy){var c=b(a.target).closest(".open__last-item").data("id").toString();if(b(a.target).is(".open__last-item-icon-del")){var d=this.model.fileInfos.get(c);if(!d.get("storage")||d.get("modified")){var e=this;return void i.yesno({header:m.openRemoveLastQuestion,body:d.get("modified")?m.openRemoveLastQuestionModBody:m.openRemoveLastQuestionBody,buttons:[{result:"yes",title:m.alertYes},{result:"",title:m.alertNo}],success:function(){e.removeFile(c)}})}return void this.removeFile(c)}this.showOpenFileInfo(this.model.fileInfos.get(c))}},removeFile:function(a){this.model.removeFileInfo(a),this.$el.find('.open__last-item[data-id="'+a+'"]').remove(),this.initialize(),this.render()},inputKeydown:function(a){var b=a.keyCode||a.which;b===h.DOM_VK_RETURN?this.openDb():b===h.DOM_VK_CAPS_LOCK?this.toggleCapsLockWarning(!1):b===h.DOM_VK_A&
|
|
|
|
},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({1:function(a,b,c,d,e){return'<div class="app__beta"><i class="fa fa-exclamation-triangle"></i> '+a.escapeExpression((c.res||b&&b.res||c.helperMissing).call(null!=b?b:{},"appBeta",{name:"res",hash:{},data:e}))+"</div>"},compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){var f;return'<div class="app">\n'+(null!=(f=c["if"].call(null!=b?b:{},null!=b?b.beta:b,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'\n<div class="app__body">\n<div class="app__menu"></div>\n<div class="app__menu-drag"></div>\n<div class="app__list-wrap">\n<div class="app__list"></div>\n<div class="app__list-drag"></div>\n<div class="app__details"></div>\n</div>\n<div class="app__grp"></div>\n</div>\n<div class="app__footer"></div>\n</div>\n'},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){var f=null!=b?b:{},g=c.helperMissing,h=a.escapeExpression;return'<div class="details__field details__field--editable details__field--no-select">\n<div class="details__field-label">'+h((c.res||b&&b.res||g).call(f,"detMore",{name:"res",hash:{},data:e}))+'…</div>\n<div class="details__field-value">\n<div class="details__field-value-add-label">'+h((c.res||b&&b.res||g).call(f,"detClickToAddField",{name:"res",hash:{},data:e}))+"</div>\n</div>\n</div>\n"},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){var f=null!=b?b:{},g=c.helperMissing,h=a.escapeExpression;return'<div class="details__attachment-preview">\n<div class="details__attachment-preview-data"></div>\n<i class="fa details__attachment-preview-icon"></i>\n<div class="details__attachment-preview-download-text">'+h((c.res||b&&b.res||g).call(f,"detAttDownload",{name:"res",hash:{},data:e}))+'\n<span class="details__attachment-preview-download-text-shortcut"></span>'+h((c.res||b&&b.res||g).call(f,"detAttDelToRemove",{name:"res",hash:{},data:e}))+"</div>\n</div>\n"},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){return'<div class="empty-block muted-color">\n<h1 class="empty-block__title">'+a.escapeExpression((c.res||b&&b.res||c.helperMissing).call(null!=b?b:{},"detEmpty",{name:"res",hash:{},data:e}))+"</h1>\n</div>\n"},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){return'<div class="empty-block muted-color">\n<h1 class="empty-block__title">'+a.escapeExpression((c.res||b&&b.res||c.helperMissing).call(null!=b?b:{},"detGroupRestore",{name:"res",hash:{},data:e}))+'</h1>\n<div class="empty-block__lower-btns">\n<i class="details__buttons-trash-del fa fa-minus-circle"></i>\n</div>\n</div>\n'},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){var f=null!=b?b:{},g=c.helperMissing,h=a.escapeExpression;return'<div class="details__history">\n<div class="details__history-desc muted-color">'+h((c.res||b&&b.res||g).call(f,"detHistoryClickPoint",{name:"res",hash:{},data:e}))+'</div>\n<div class="details__history-top">\n<div class="details__history-timeline">\n<div class="details__history-timeline-axis"></div>\n<div class="details__history-arrow-prev"><i class="fa fa-long-arrow-left"></i></div>\n<div class="details__history-arrow-next"><i class="fa fa-long-arrow-right"></i></div>\n</div>\n<a class="details__history-close">'+h((c.res||b&&b.res||g).call(f,"detHistoryReturn",{name:"res",hash:{},data:e}))+' <i class="fa fa-external-link-square"></i></a>\n</div>\n<div class="details__history-body">\n<div class="details__field">\n<div class="details__field-label">'+h((c.Res||b&&b.Res||g).call(f,"title",{name:"Res",hash:{},data:e}))+'</div>\n<div class="details__field-value"><i class="fa fa-key"></i> </div>\n</div>\n</div>\n<div class="details__history-buttons">\n<button class="details__history-button details__history-button-revert btn-silent">'+h((c.res||b&&
|
|
|
|
name:"res",hash:{},data:e}))+'">\n<i class="fa fa-plus"></i>\n</div>\n<div class="list__search-btn-sort" title="'+i((c.res||b&&b.res||h).call(g,"searchSort",{name:"res",hash:{},data:e}))+'">\n<i class="fa fa-sort-alpha-asc"></i>\n</div>\n<div class="list__search-adv hide">\n<div class="list__search-adv-text">'+i((c.res||b&&b.res||h).call(g,"searchSearchIn",{name:"res",hash:{},data:e}))+':</div>\n<div class="list__search-check"><input type="checkbox" id="list__searcn-adv-check-user" data-id="user"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.user:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__searcn-adv-check-user">'+i((c.Res||b&&b.Res||h).call(g,"user",{name:"Res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-other" data-id="other"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.other:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-other">'+i((c.res||b&&b.res||h).call(g,"searchOther",{name:"res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-website" data-id="url"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.url:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-website">'+i((c.Res||b&&b.Res||h).call(g,"website",{name:"Res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-protect" data-id="protect"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.protect:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-protect">'+i((c.res||b&&b.res||h).call(g,"searchProtect",{name:"res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-notes" data-id="notes"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.notes:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-notes">'+i((c.Res||b&&b.Res||h).call(g,"notes",{name:"Res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-pass" data-id="pass"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.pass:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-pass">'+i((c.Res||b&&b.Res||h).call(g,"password",{name:"Res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-title" data-id="title"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.title:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-title">'+i((c.Res||b&&b.Res||h).call(g,"title",{name:"Res",hash:{},data:e}))+'</label></div>\n<div class="list__search-adv-text">'+i((c.res||b&&b.res||h).call(g,"searchOptions",{name:"res",hash:{},data:e}))+':</div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-cs" data-id="cs"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.cs:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-cs">'+i((c.res||b&&b.res||h).call(g,"searchCase",{name:"res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-regex" data-id="regex"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.regex:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+'><label for="list__search-adv-check-regex">'+i((c.res||b&&b.res||h).call(g,"searchRegex",{name:"res",hash:{},data:e}))+'</label></div>\n<div class="list__search-check"><input type="checkbox" id="list__search-adv-check-history" data-id="history"\n'+(null!=(f=c["if"].call(g,null!=(f=null!=b?b.adv:b)?f.history:f,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.no
|
|
|
|
inverse:a.program(22,e,0),data:e}))?f:"")+" "+(null!=(f=c["if"].call(g,null!=b?b.syncing:b,{name:"if",hash:{},fn:a.program(24,e,0),inverse:a.noop,data:e}))?f:"")+"</div>\n"+(null!=(f=c["if"].call(g,null!=b?b.syncError:b,{name:"if",hash:{},fn:a.program(26,e,0),inverse:a.noop,data:e}))?f:"")+"\n"},20:function(a,b,c,d,e){var f;return a.escapeExpression((f=null!=(f=c.syncDate||(null!=b?b.syncDate:b))?f:c.helperMissing,"function"==typeof f?f.call(null!=b?b:{},{name:"syncDate",hash:{},data:e}):f))},22:function(a,b,c,d,e){return a.escapeExpression((c.res||b&&b.res||c.helperMissing).call(null!=b?b:{},"setFileLastSyncUnknown",{name:"res",hash:{},data:e}))},24:function(a,b,c,d,e){return"("+a.escapeExpression((c.res||b&&b.res||c.helperMissing).call(null!=b?b:{},"setFileSyncInProgress",{name:"res",hash:{},data:e}))+"...)"},26:function(a,b,c,d,e){var f,g=null!=b?b:{},h=c.helperMissing,i=a.escapeExpression;return"<div>"+i((c.res||b&&b.res||h).call(g,"setFileSyncError",{name:"res",hash:{},data:e}))+": "+i((f=null!=(f=c.syncError||(null!=b?b.syncError:b))?f:h,"function"==typeof f?f.call(g,{name:"syncError",hash:{},data:e}):f))+"</div>"},28:function(a,b,c,d,e){return"checked"},compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e,f){var g,h,i=null!=b?b:{},j=c.helperMissing,k="function",l=a.escapeExpression;return'<div>\n<h1><i class="fa fa-lock"></i> '+l((h=null!=(h=c.name||(null!=b?b.name:b))?h:j,typeof h===k?h.call(i,{name:"name",hash:{},data:e,blockParams:f}):h))+"</h1>\n"+(null!=(g=c["if"].call(i,null!=b?b.storage:b,{name:"if",hash:{},fn:a.program(1,e,0,f),inverse:a.program(7,e,0,f),data:e,blockParams:f}))?g:"")+'<div class="settings__file-buttons">\n<button class="settings__file-button-save-default" '+(null!=(g=c["if"].call(i,null!=b?b.syncing:b,{name:"if",hash:{},fn:a.program(10,e,0,f),inverse:a.noop,data:e,blockParams:f}))?g:"")+">"+l((c.res||b&&b.res||j).call(i,"setFileSave",{name:"res",hash:{},data:e,blockParams:f}))+'</button>\n<button class="settings__file-button-save-choose btn-silent"\n'+(null!=(g=c["if"].call(i,null!=b?b.syncing:b,{name:"if",hash:{},fn:a.program(10,e,0,f),inverse:a.noop,data:e,blockParams:f}))?g:"")+">"+l((c.res||b&&b.res||j).call(i,"setFileSaveTo",{name:"res",hash:{},data:e,blockParams:f}))+'</button>\n<button class="settings__file-button-close btn-silent">'+l((c.res||b&&b.res||j).call(i,"setFileClose",{name:"res",hash:{},data:e,blockParams:f}))+'</button>\n</div>\n<div class="settings__file-save-choose hide">\n<h2>'+l((c.res||b&&b.res||j).call(i,"setFileSaveTo",{name:"res",hash:{},data:e,blockParams:f}))+"</h2>\n"+(null!=(g=(c.ifneq||b&&b.ifneq||j).call(i,null!=b?b.storage:b,"file",{name:"ifneq",hash:{},fn:a.program(12,e,0,f),inverse:a.noop,data:e,blockParams:f}))?g:"")+(null!=(g=c.each.call(i,null!=b?b.storageProviders:b,{name:"each",hash:{},fn:a.program(14,e,1,f),inverse:a.noop,data:e,blockParams:f}))?g:"")+'<div class="settings__file-save-to settings__file-save-to-xml">\n<i class="fa fa-code"></i>'+l((c.res||b&&b.res||j).call(i,"setFileSaveToXml",{name:"res",hash:{},data:e,blockParams:f}))+"\n</div>\n</div>\n"+(null!=(g=c["if"].call(i,null!=b?b.storage:b,{name:"if",hash:{},fn:a.program(19,e,0,f),inverse:a.noop,data:e,blockParams:f}))?g:"")+"<h2>"+l((c.res||b&&b.res||j).call(i,"setFileSettings",{name:"res",hash:{},data:e,blockParams:f}))+'</h2>\n<label for="settings__file-master-pass" class="settings__file-master-pass-label input-base">'+l((c.res||b&&b.res||j).call(i,"setFilePass",{name:"res",hash:{},data:e,blockParams:f}))+':\n<span class="settings__file-master-pass-warning">\n<i class="fa fa-warning"></i> '+l((c.res||b&&b.res||j).call(i,"setFilePassChanged",{name:"res",hash:{},data:e,blockParams:f}))+'\n</span>\n</label>\n<input type="password" class="settings__input input-base" id="settings__file-master-pass" value="'+l((h=null!=(h=c.password||(null!=b?b.password:b))?h:j,typeof h===k?h.call(i,{name:"password",hash:{},data:e,blockParams:f}):h))+'" />\n<label for="settings__file-key-file">'+l((c.res||b&&b.res||j).call(i,"setFileKeyFile",{name:"res",hash:{},data:e,blockParams:f}))+':</label>\n<select class="
|
|
|
|
f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"A</span> "+j((c.res||b&&b.res||i).call(h,"or",{name:"res",hash:{},data:e}))+' <span class="shortcut">'+(null!=(g=null!=(g=c.alt||(null!=b?b.alt:b))?g:i,f=typeof g===k?g.call(h,{name:"alt",hash:{},data:e}):g)?f:"")+"A</span> "+j((c.res||b&&b.res||i).call(h,"setShShowAll",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.alt||(null!=b?b.alt:b))?g:i,f=typeof g===k?g.call(h,{name:"alt",hash:{},data:e}):g)?f:"")+"C</span> "+j((c.res||b&&b.res||i).call(h,"setShColors",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.alt||(null!=b?b.alt:b))?g:i,f=typeof g===k?g.call(h,{name:"alt",hash:{},data:e}):g)?f:"")+"D</span> "+j((c.res||b&&b.res||i).call(h,"setShTrash",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"F</span> "+j((c.res||b&&b.res||i).call(h,"setShFind",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">esc</span> '+j((c.res||b&&b.res||i).call(h,"setShClearSearch",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">⏎</span> '+j((c.res||b&&b.res||i).call(h,"setShEntry",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"C</span> "+j((c.res||b&&b.res||i).call(h,"setShCopyPass",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"B</span> "+j((c.res||b&&b.res||i).call(h,"setShCopyUser",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"U</span> "+j((c.res||b&&b.res||i).call(h,"setShCopyUrl",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">↑</span> '+j((c.res||b&&b.res||i).call(h,"setShPrev",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">↓</span> '+j((c.res||b&&b.res||i).call(h,"setShNext",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.alt||(null!=b?b.alt:b))?g:i,f=typeof g===k?g.call(h,{name:"alt",hash:{},data:e}):g)?f:"")+"N</span> "+j((c.res||b&&b.res||i).call(h,"setShCreateEntry",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"O</span> "+j((c.res||b&&b.res||i).call(h,"setShOpen",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"S</span> "+j((c.res||b&&b.res||i).call(h,"setShSave",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"G</span> "+j((c.res||b&&b.res||i).call(h,"setShGen",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+",</span> "+j((c.res||b&&b.res||i).call(h,"setShSet",{name:"res",hash:{},data:e}))+'</div>\n<div><span class="shortcut">'+(null!=(g=null!=(g=c.cmd||(null!=b?b.cmd:b))?g:i,f=typeof g===k?g.call(h,{name:"cmd",hash:{},data:e}):g)?f:"")+"L</span> "+j((c.res||b&&b.res||i).call(h,"setShLock",{name:"res",hash:{},data:e}))+"</div>\n"+(null!=(f=c["if"].call(h,null!=b?b.globalShortcutsSupported:b,{name:"if",hash:{},fn:a.program(1,e,0),inverse:a.noop,data:e}))?f:"")+"</div>\n"},useData:!0})},function(a,b,c){var d=c(3);a.exports=(d["default"]||d).template({compiler:[7,">= 4.0.0"],main:function(a,b,c,d,e){return'<div class="settings">\n<div class="settings__back-button">\n<i class="fa fa-chevron-left settings__back-button-
|