filer/dist/idbfs.min.js

4 lines
94 KiB
JavaScript

/*! idbfs 2013-12-02 */
(function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.IDBFS||(t.IDBFS=e())})(this,function(){var t,e,n;(function(r){function i(t,e){return w.call(t,e)}function o(t,e){var n,r,i,o,s,c,a,u,f,l,d=e&&e.split("/"),h=_.map,p=h&&h["*"]||{};if(t&&"."===t.charAt(0))if(e){for(d=d.slice(0,d.length-1),t=d.concat(t.split("/")),u=0;t.length>u;u+=1)if(l=t[u],"."===l)t.splice(u,1),u-=1;else if(".."===l){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((d||p)&&h){for(n=t.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),d)for(f=d.length;f>0;f-=1)if(i=h[d.slice(0,f).join("/")],i&&(i=i[r])){o=i,s=u;break}if(o)break;!c&&p&&p[r]&&(c=p[r],a=u)}!o&&c&&(o=c,s=a),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function s(t,e){return function(){return h.apply(r,x.call(arguments,0).concat([t,e]))}}function c(t){return function(e){return o(e,t)}}function a(t){return function(e){v[t]=e}}function u(t){if(i(y,t)){var e=y[t];delete y[t],m[t]=!0,d.apply(r,e)}if(!i(v,t)&&!i(m,t))throw Error("No "+t);return v[t]}function f(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function l(t){return function(){return _&&_.config&&_.config[t]||{}}}var d,h,p,g,v={},y={},_={},m={},w=Object.prototype.hasOwnProperty,x=[].slice;p=function(t,e){var n,r=f(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=u(i)),i?t=n&&n.normalize?n.normalize(t,c(e)):o(t,e):(t=o(t,e),r=f(t),i=r[0],t=r[1],i&&(n=u(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},g={require:function(t){return s(t)},exports:function(t){var e=v[t];return e!==void 0?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:l(t)}}},d=function(t,e,n,o){var c,f,l,d,h,_,w=[];if(o=o||t,"function"==typeof n){for(e=!e.length&&n.length?["require","exports","module"]:e,h=0;e.length>h;h+=1)if(d=p(e[h],o),f=d.f,"require"===f)w[h]=g.require(t);else if("exports"===f)w[h]=g.exports(t),_=!0;else if("module"===f)c=w[h]=g.module(t);else if(i(v,f)||i(y,f)||i(m,f))w[h]=u(f);else{if(!d.p)throw Error(t+" missing "+f);d.p.load(d.n,s(o,!0),a(f),{}),w[h]=v[f]}l=n.apply(v[t],w),t&&(c&&c.exports!==r&&c.exports!==v[t]?v[t]=c.exports:l===r&&_||(v[t]=l))}else t&&(v[t]=n)},t=e=h=function(t,e,n,i,o){return"string"==typeof t?g[t]?g[t](e):u(p(t,e).f):(t.splice||(_=t,e.splice?(t=e,e=n,n=null):t=r),e=e||function(){},"function"==typeof n&&(n=i,i=o),i?d(r,t,e,n):setTimeout(function(){d(r,t,e,n)},4),h)},h.config=function(t){return _=t,_.deps&&h(_.deps,_.callback),h},n=function(t,e,n){e.splice||(n=e,e=[]),i(v,t)||i(y,t)||(y[t]=[t,e,n])},n.amd={jQuery:!0}})(),n("build/almond",function(){}),n("nodash",["require"],function(){function t(t,e){return h.call(t,e)}function e(t){return null==t?0:t.length===+t.length?t.length:v(t).length}function n(t){return t}function r(t,e,n){var r,i;if(null!=t)if(u&&t.forEach===u)t.forEach(e,n);else if(t.length===+t.length){for(r=0,i=t.length;i>r;r++)if(e.call(n,t[r],r,t)===g)return}else{var o=o(t);for(r=0,i=o.length;i>r;r++)if(e.call(n,t[o[r]],o[r],t)===g)return}}function i(t,e,i){e||(e=n);var o=!1;return null==t?o:l&&t.some===l?t.some(e,i):(r(t,function(t,n,r){return o||(o=e.call(i,t,n,r))?g:void 0}),!!o)}function o(t,e){return null==t?!1:f&&t.indexOf===f?-1!=t.indexOf(e):i(t,function(t){return t===e})}function s(t){this.value=t}function c(t){return t&&"object"==typeof t&&!Array.isArray(t)&&h.call(t,"__wrapped__")?t:new s(t)}var a=Array.prototype,u=a.forEach,f=a.indexOf,l=a.some,d=Object.prototype,h=d.hasOwnProperty,p=Object.keys,g={},v=p||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var n=[];for(var r in e)t(e,r)&&n.push(r);return n};return s.prototype.has=function(e){return t(this.value,e)},s.prototype.contains=function(t){return o(this.value,t)},s.prototype.size=function(){return e(this.value)},c}),function(t){t["encoding-indexes"]=t["encoding-indexes"]||[]}(this),n("encoding-indexes-shim",function(){}),function(t){function e(t,e,n){return t>=e&&n>=t}function n(t,e){return Math.floor(t/e)}function r(t){var e=0;this.get=function(){return e>=t.length?N:Number(t[e])},this.offset=function(n){if(e+=n,0>e)throw Error("Seeking past start of the buffer");if(e>t.length)throw Error("Seeking past EOF")},this.match=function(n){if(n.length>e+t.length)return!1;var r;for(r=0;n.length>r;r+=1)if(Number(t[e+r])!==n[r])return!1;return!0}}function i(t){var e=0;this.emit=function(){var n,r=N;for(n=0;arguments.length>n;++n)r=Number(arguments[n]),t[e++]=r;return r}}function o(t){function n(t){for(var n=[],r=0,i=t.length;t.length>r;){var o=t.charCodeAt(r);if(e(o,55296,57343))if(e(o,56320,57343))n.push(65533);else if(r===i-1)n.push(65533);else{var s=t.charCodeAt(r+1);if(e(s,56320,57343)){var c=1023&o,a=1023&s;r+=1,n.push(65536+(c<<10)+a)}else n.push(65533)}else n.push(o);r+=1}return n}var r=0,i=n(t);this.offset=function(t){if(r+=t,0>r)throw Error("Seeking past start of the buffer");if(r>i.length)throw Error("Seeking past EOF")},this.get=function(){return r>=i.length?L:i[r]}}function s(){var t="";this.string=function(){return t},this.emit=function(e){65535>=e?t+=String.fromCharCode(e):(e-=65536,t+=String.fromCharCode(55296+(1023&e>>10)),t+=String.fromCharCode(56320+(1023&e)))}}function c(t){this.name="EncodingError",this.message=t,this.code=0}function a(t,e){if(t)throw new c("Decoder error");return e||65533}function u(t){throw new c("The code point "+t+" could not be encoded.")}function f(t){return t=(t+"").trim().toLowerCase(),Object.prototype.hasOwnProperty.call(P,t)?P[t]:null}function l(t,e){return(e||[])[t]||null}function d(t,e){var n=e.indexOf(t);return-1===n?null:n}function h(e){if(!("encoding-indexes"in t))throw Error("Indexes missing. Did you forget to include encoding-indexes.js?");return t["encoding-indexes"][e]}function p(t){if(t>39419&&189e3>t||t>1237575)return null;var e,n=0,r=0,i=h("gb18030");for(e=0;i.length>e;++e){var o=i[e];if(!(t>=o[0]))break;n=o[0],r=o[1]}return r+t-n}function g(t){var e,n=0,r=0,i=h("gb18030");for(e=0;i.length>e;++e){var o=i[e];if(!(t>=o[1]))break;n=o[1],r=o[0]}return r+t-n}function v(t){var n=t.fatal,r=0,i=0,o=0,s=0;this.decode=function(t){var c=t.get();if(c===N)return 0!==i?a(n):L;if(t.offset(1),0===i){if(e(c,0,127))return c;if(e(c,194,223))i=1,s=128,r=c-192;else if(e(c,224,239))i=2,s=2048,r=c-224;else{if(!e(c,240,244))return a(n);i=3,s=65536,r=c-240}return r*=Math.pow(64,i),null}if(!e(c,128,191))return r=0,i=0,o=0,s=0,t.offset(-1),a(n);if(o+=1,r+=(c-128)*Math.pow(64,i-o),o!==i)return null;var u=r,f=s;return r=0,i=0,o=0,s=0,e(u,f,1114111)&&!e(u,55296,57343)?u:a(n)}}function y(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,55296,57343))return u(i);if(e(i,0,127))return t.emit(i);var o,s;e(i,128,2047)?(o=1,s=192):e(i,2048,65535)?(o=2,s=224):e(i,65536,1114111)&&(o=3,s=240);for(var c=t.emit(n(i,Math.pow(64,o))+s);o>0;){var a=n(i,Math.pow(64,o-1));c=t.emit(128+a%64),o-=1}return c}}function _(t,n){var r=n.fatal;this.decode=function(n){var i=n.get();if(i===N)return L;if(n.offset(1),e(i,0,127))return i;var o=t[i-128];return null===o?a(r):o}}function m(t,n){n.fatal,this.encode=function(n,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,0,127))return n.emit(i);var o=d(i,t);return null===o&&u(i),n.emit(o+128)}}function w(t,n){var r=n.fatal,i=0,o=0,s=0;this.decode=function(n){var c=n.get();if(c===N&&0===i&&0===o&&0===s)return L;c!==N||0===i&&0===o&&0===s||(i=0,o=0,s=0,a(r)),n.offset(1);var u;if(0!==s)return u=null,e(c,48,57)&&(u=p(10*(126*(10*(i-129)+(o-48))+(s-129))+c-48)),i=0,o=0,s=0,null===u?(n.offset(-3),a(r)):u;if(0!==o)return e(c,129,254)?(s=c,null):(n.offset(-2),i=0,o=0,a(r));if(0!==i){if(e(c,48,57)&&t)return o=c,null;var f=i,d=null;i=0;var g=127>c?64:65;return(e(c,64,126)||e(c,128,254))&&(d=190*(f-129)+(c-g)),u=null===d?null:l(d,h("gbk")),null===d&&n.offset(-1),null===u?a(r):u}return e(c,0,127)?c:128===c?8364:e(c,129,254)?(i=c,null):a(r)}}function x(t,r){r.fatal,this.encode=function(r,i){var o=i.get();if(o===L)return N;if(i.offset(1),e(o,0,127))return r.emit(o);var s=d(o,h("gbk"));if(null!==s){var c=n(s,190)+129,a=s%190,f=63>a?64:65;return r.emit(c,a+f)}if(null===s&&!t)return u(o);s=g(o);var l=n(n(n(s,10),126),10);s-=10*126*10*l;var p=n(n(s,10),126);s-=126*10*p;var v=n(s,10),y=s-10*v;return r.emit(l+129,p+48,v+129,y+48)}}function E(t){var n=t.fatal,r=!1,i=0;this.decode=function(t){var o=t.get();if(o===N&&0===i)return L;if(o===N&&0!==i)return i=0,a(n);if(t.offset(1),126===i)return i=0,123===o?(r=!0,null):125===o?(r=!1,null):126===o?126:10===o?null:(t.offset(-1),a(n));if(0!==i){var s=i;i=0;var c=null;return e(o,33,126)&&(c=l(190*(s-1)+(o+63),h("gbk"))),10===o&&(r=!1),null===c?a(n):c}return 126===o?(i=126,null):r?e(o,32,127)?(i=o,null):(10===o&&(r=!1),a(n)):e(o,0,127)?o:a(n)}}function b(t){t.fatal;var r=!1;this.encode=function(t,i){var o=i.get();if(o===L)return N;if(i.offset(1),e(o,0,127)&&r)return i.offset(-1),r=!1,t.emit(126,125);if(126===o)return t.emit(126,126);if(e(o,0,127))return t.emit(o);if(!r)return i.offset(-1),r=!0,t.emit(126,123);var s=d(o,h("gbk"));if(null===s)return u(o);var c=n(s,190)+1,a=s%190-63;return e(c,33,126)&&e(a,33,126)?t.emit(c,a):u(o)}}function S(t){var n=t.fatal,r=0,i=null;this.decode=function(t){if(null!==i){var o=i;return i=null,o}var s=t.get();if(s===N&&0===r)return L;if(s===N&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var c=r,u=null;r=0;var f=127>s?64:98;if((e(s,64,126)||e(s,161,254))&&(u=157*(c-129)+(s-f)),1133===u)return i=772,202;if(1135===u)return i=780,202;if(1164===u)return i=772,234;if(1166===u)return i=780,234;var d=null===u?null:l(u,h("big5"));return null===u&&t.offset(-1),null===d?a(n):d}return e(s,0,127)?s:e(s,129,254)?(r=s,null):a(n)}}function k(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,0,127))return t.emit(i);var o=d(i,h("big5"));if(null===o)return u(i);var s=n(o,157)+129,c=o%157,a=63>c?64:98;return t.emit(s,c+a)}}function B(t){var n=t.fatal,r=0,i=0;this.decode=function(t){var o=t.get();if(o===N)return 0===r&&0===i?L:(r=0,i=0,a(n));t.offset(1);var s,c;return 0!==i?(s=i,i=0,c=null,e(s,161,254)&&e(o,161,254)&&(c=l(94*(s-161)+o-161,h("jis0212"))),e(o,161,254)||t.offset(-1),null===c?a(n):c):142===r&&e(o,161,223)?(r=0,65377+o-161):143===r&&e(o,161,254)?(r=0,i=o,null):0!==r?(s=r,r=0,c=null,e(s,161,254)&&e(o,161,254)&&(c=l(94*(s-161)+o-161,h("jis0208"))),e(o,161,254)||t.offset(-1),null===c?a(n):c):e(o,0,127)?o:142===o||143===o||e(o,161,254)?(r=o,null):a(n)}}function O(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,0,127))return t.emit(i);if(165===i)return t.emit(92);if(8254===i)return t.emit(126);if(e(i,65377,65439))return t.emit(142,i-65377+161);var o=d(i,h("jis0208"));if(null===o)return u(i);var s=n(o,94)+161,c=o%94+161;return t.emit(s,c)}}function D(t){var n=t.fatal,r={ASCII:0,escape_start:1,escape_middle:2,escape_final:3,lead:4,trail:5,Katakana:6},i=r.ASCII,o=!1,s=0;this.decode=function(t){var c=t.get();switch(c!==N&&t.offset(1),i){default:case r.ASCII:return 27===c?(i=r.escape_start,null):e(c,0,127)?c:c===N?L:a(n);case r.escape_start:return 36===c||40===c?(s=c,i=r.escape_middle,null):(c!==N&&t.offset(-1),i=r.ASCII,a(n));case r.escape_middle:var u=s;return s=0,36!==u||64!==c&&66!==c?36===u&&40===c?(i=r.escape_final,null):40!==u||66!==c&&74!==c?40===u&&73===c?(i=r.Katakana,null):(c===N?t.offset(-1):t.offset(-2),i=r.ASCII,a(n)):(i=r.ASCII,null):(o=!1,i=r.lead,null);case r.escape_final:return 68===c?(o=!0,i=r.lead,null):(c===N?t.offset(-2):t.offset(-3),i=r.ASCII,a(n));case r.lead:return 10===c?(i=r.ASCII,a(n,10)):27===c?(i=r.escape_start,null):c===N?L:(s=c,i=r.trail,null);case r.trail:if(i=r.lead,c===N)return a(n);var f=null,d=94*(s-33)+c-33;return e(s,33,126)&&e(c,33,126)&&(f=o===!1?l(d,h("jis0208")):l(d,h("jis0212"))),null===f?a(n):f;case r.Katakana:return 27===c?(i=r.escape_start,null):e(c,33,95)?65377+c-33:c===N?L:a(n)}}}function C(t){t.fatal;var r={ASCII:0,lead:1,Katakana:2},i=r.ASCII;this.encode=function(t,o){var s=o.get();if(s===L)return N;if(o.offset(1),(e(s,0,127)||165===s||8254===s)&&i!==r.ASCII)return o.offset(-1),i=r.ASCII,t.emit(27,40,66);if(e(s,0,127))return t.emit(s);if(165===s)return t.emit(92);if(8254===s)return t.emit(126);if(e(s,65377,65439)&&i!==r.Katakana)return o.offset(-1),i=r.Katakana,t.emit(27,40,73);if(e(s,65377,65439))return t.emit(s-65377-33);if(i!==r.lead)return o.offset(-1),i=r.lead,t.emit(27,36,66);var c=d(s,h("jis0208"));if(null===c)return u(s);var a=n(c,94)+33,f=c%94+33;return t.emit(a,f)}}function R(t){var n=t.fatal,r=0;this.decode=function(t){var i=t.get();if(i===N&&0===r)return L;if(i===N&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var o=r;if(r=0,e(i,64,126)||e(i,128,252)){var s=127>i?64:65,c=160>o?129:193,u=l(188*(o-c)+i-s,h("jis0208"));return null===u?a(n):u}return t.offset(-1),a(n)}return e(i,0,128)?i:e(i,161,223)?65377+i-161:e(i,129,159)||e(i,224,252)?(r=i,null):a(n)}}function z(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,0,128))return t.emit(i);if(165===i)return t.emit(92);if(8254===i)return t.emit(126);if(e(i,65377,65439))return t.emit(i-65377+161);var o=d(i,h("jis0208"));if(null===o)return u(i);var s=n(o,188),c=31>s?129:193,a=o%188,f=63>a?64:65;return t.emit(s+c,a+f)}}function M(t){var n=t.fatal,r=0;this.decode=function(t){var i=t.get();if(i===N&&0===r)return L;if(i===N&&0!==r)return r=0,a(n);if(t.offset(1),0!==r){var o=r,s=null;if(r=0,e(o,129,198)){var c=178*(o-129);e(i,65,90)?s=c+i-65:e(i,97,122)?s=c+26+i-97:e(i,129,254)&&(s=c+26+26+i-129)}e(o,199,253)&&e(i,161,254)&&(s=12460+94*(o-199)+(i-161));var u=null===s?null:l(s,h("euc-kr"));return null===s&&t.offset(-1),null===u?a(n):u}return e(i,0,127)?i:e(i,129,253)?(r=i,null):a(n)}}function A(t){t.fatal,this.encode=function(t,r){var i=r.get();if(i===L)return N;if(r.offset(1),e(i,0,127))return t.emit(i);var o=d(i,h("euc-kr"));if(null===o)return u(i);var s,c;if(12460>o){s=n(o,178)+129,c=o%178;var a=26>c?65:52>c?71:77;return t.emit(s,c+a)}return o-=12460,s=n(o,94)+199,c=o%94+161,t.emit(s,c)}}function I(t,n){var r=n.fatal,i=null,o=null;this.decode=function(n){var s=n.get();if(s===N&&null===i&&null===o)return L;if(s===N&&(null!==i||null!==o))return a(r);if(n.offset(1),null===i)return i=s,null;var c;if(c=t?(i<<8)+s:(s<<8)+i,i=null,null!==o){var u=o;return o=null,e(c,56320,57343)?65536+1024*(u-55296)+(c-56320):(n.offset(-2),a(r))}return e(c,55296,56319)?(o=c,null):e(c,56320,57343)?a(r):c}}function F(t,r){r.fatal,this.encode=function(r,i){function o(e){var n=e>>8,i=255&e;return t?r.emit(n,i):r.emit(i,n)}var s=i.get();if(s===L)return N;if(i.offset(1),e(s,55296,57343)&&u(s),65535>=s)return o(s);var c=n(s-65536,1024)+55296,a=(s-65536)%1024+56320;return o(c),o(a)}}function j(t,e){if(!(this instanceof j))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":q,e=Object(e),this._encoding=f(t),null===this._encoding||"utf-8"!==this._encoding.name&&"utf-16le"!==this._encoding.name&&"utf-16be"!==this._encoding.name)throw new TypeError("Unknown encoding: "+t);return this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty?Object.defineProperty(this,"encoding",{get:function(){return this._encoding.name}}):this.encoding=this._encoding.name,this}function T(t,e){if(!(this instanceof T))throw new TypeError("Constructor cannot be called as a function");if(t=t?t+"":q,e=Object(e),this._encoding=f(t),null===this._encoding)throw new TypeError("Unknown encoding: "+t);return this._streaming=!1,this._decoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty?Object.defineProperty(this,"encoding",{get:function(){return this._encoding.name}}):this.encoding=this._encoding.name,this}var N=-1,L=-1;c.prototype=Error.prototype;var W=[{encodings:[{labels:["unicode-1-1-utf-8","utf-8","utf8"],name:"utf-8"}],heading:"The Encoding"},{encodings:[{labels:["866","cp866","csibm866","ibm866"],name:"ibm866"},{labels:["csisolatin2","iso-8859-2","iso-ir-101","iso8859-2","iso88592","iso_8859-2","iso_8859-2:1987","l2","latin2"],name:"iso-8859-2"},{labels:["csisolatin3","iso-8859-3","iso-ir-109","iso8859-3","iso88593","iso_8859-3","iso_8859-3:1988","l3","latin3"],name:"iso-8859-3"},{labels:["csisolatin4","iso-8859-4","iso-ir-110","iso8859-4","iso88594","iso_8859-4","iso_8859-4:1988","l4","latin4"],name:"iso-8859-4"},{labels:["csisolatincyrillic","cyrillic","iso-8859-5","iso-ir-144","iso8859-5","iso88595","iso_8859-5","iso_8859-5:1988"],name:"iso-8859-5"},{labels:["arabic","asmo-708","csiso88596e","csiso88596i","csisolatinarabic","ecma-114","iso-8859-6","iso-8859-6-e","iso-8859-6-i","iso-ir-127","iso8859-6","iso88596","iso_8859-6","iso_8859-6:1987"],name:"iso-8859-6"},{labels:["csisolatingreek","ecma-118","elot_928","greek","greek8","iso-8859-7","iso-ir-126","iso8859-7","iso88597","iso_8859-7","iso_8859-7:1987","sun_eu_greek"],name:"iso-8859-7"},{labels:["csiso88598e","csisolatinhebrew","hebrew","iso-8859-8","iso-8859-8-e","iso-ir-138","iso8859-8","iso88598","iso_8859-8","iso_8859-8:1988","visual"],name:"iso-8859-8"},{labels:["csiso88598i","iso-8859-8-i","logical"],name:"iso-8859-8-i"},{labels:["csisolatin6","iso-8859-10","iso-ir-157","iso8859-10","iso885910","l6","latin6"],name:"iso-8859-10"},{labels:["iso-8859-13","iso8859-13","iso885913"],name:"iso-8859-13"},{labels:["iso-8859-14","iso8859-14","iso885914"],name:"iso-8859-14"},{labels:["csisolatin9","iso-8859-15","iso8859-15","iso885915","iso_8859-15","l9"],name:"iso-8859-15"},{labels:["iso-8859-16"],name:"iso-8859-16"},{labels:["cskoi8r","koi","koi8","koi8-r","koi8_r"],name:"koi8-r"},{labels:["koi8-u"],name:"koi8-u"},{labels:["csmacintosh","mac","macintosh","x-mac-roman"],name:"macintosh"},{labels:["dos-874","iso-8859-11","iso8859-11","iso885911","tis-620","windows-874"],name:"windows-874"},{labels:["cp1250","windows-1250","x-cp1250"],name:"windows-1250"},{labels:["cp1251","windows-1251","x-cp1251"],name:"windows-1251"},{labels:["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"],name:"windows-1252"},{labels:["cp1253","windows-1253","x-cp1253"],name:"windows-1253"},{labels:["cp1254","csisolatin5","iso-8859-9","iso-ir-148","iso8859-9","iso88599","iso_8859-9","iso_8859-9:1989","l5","latin5","windows-1254","x-cp1254"],name:"windows-1254"},{labels:["cp1255","windows-1255","x-cp1255"],name:"windows-1255"},{labels:["cp1256","windows-1256","x-cp1256"],name:"windows-1256"},{labels:["cp1257","windows-1257","x-cp1257"],name:"windows-1257"},{labels:["cp1258","windows-1258","x-cp1258"],name:"windows-1258"},{labels:["x-mac-cyrillic","x-mac-ukrainian"],name:"x-mac-cyrillic"}],heading:"Legacy single-byte encodings"},{encodings:[{labels:["chinese","csgb2312","csiso58gb231280","gb2312","gb_2312","gb_2312-80","gbk","iso-ir-58","x-gbk"],name:"gbk"},{labels:["gb18030"],name:"gb18030"},{labels:["hz-gb-2312"],name:"hz-gb-2312"}],heading:"Legacy multi-byte Chinese (simplified) encodings"},{encodings:[{labels:["big5","big5-hkscs","cn-big5","csbig5","x-x-big5"],name:"big5"}],heading:"Legacy multi-byte Chinese (traditional) encodings"},{encodings:[{labels:["cseucpkdfmtjapanese","euc-jp","x-euc-jp"],name:"euc-jp"},{labels:["csiso2022jp","iso-2022-jp"],name:"iso-2022-jp"},{labels:["csshiftjis","ms_kanji","shift-jis","shift_jis","sjis","windows-31j","x-sjis"],name:"shift_jis"}],heading:"Legacy multi-byte Japanese encodings"},{encodings:[{labels:["cseuckr","csksc56011987","euc-kr","iso-ir-149","korean","ks_c_5601-1987","ks_c_5601-1989","ksc5601","ksc_5601","windows-949"],name:"euc-kr"}],heading:"Legacy multi-byte Korean encodings"},{encodings:[{labels:["csiso2022kr","iso-2022-kr","iso-2022-cn","iso-2022-cn-ext"],name:"replacement"},{labels:["utf-16be"],name:"utf-16be"},{labels:["utf-16","utf-16le"],name:"utf-16le"},{labels:["x-user-defined"],name:"x-user-defined"}],heading:"Legacy miscellaneous encodings"}],H={},P={};W.forEach(function(t){t.encodings.forEach(function(t){H[t.name]=t,t.labels.forEach(function(e){P[e]=t})})}),H["utf-8"].getEncoder=function(t){return new y(t)},H["utf-8"].getDecoder=function(t){return new v(t)},function(){W.forEach(function(t){"Legacy single-byte encodings"===t.heading&&t.encodings.forEach(function(t){var e=h(t.name);t.getDecoder=function(t){return new _(e,t)},t.getEncoder=function(t){return new m(e,t)}})})}(),H.gbk.getEncoder=function(t){return new x(!1,t)},H.gbk.getDecoder=function(t){return new w(!1,t)},H.gb18030.getEncoder=function(t){return new x(!0,t)},H.gb18030.getDecoder=function(t){return new w(!0,t)},H["hz-gb-2312"].getEncoder=function(t){return new b(t)},H["hz-gb-2312"].getDecoder=function(t){return new E(t)},H.big5.getEncoder=function(t){return new k(t)},H.big5.getDecoder=function(t){return new S(t)},H["euc-jp"].getEncoder=function(t){return new O(t)},H["euc-jp"].getDecoder=function(t){return new B(t)},H["iso-2022-jp"].getEncoder=function(t){return new C(t)},H["iso-2022-jp"].getDecoder=function(t){return new D(t)},H.shift_jis.getEncoder=function(t){return new z(t)},H.shift_jis.getDecoder=function(t){return new R(t)},H["euc-kr"].getEncoder=function(t){return new A(t)},H["euc-kr"].getDecoder=function(t){return new M(t)},H["utf-16le"].getEncoder=function(t){return new F(!1,t)},H["utf-16le"].getDecoder=function(t){return new I(!1,t)},H["utf-16be"].getEncoder=function(t){return new F(!0,t)},H["utf-16be"].getDecoder=function(t){return new I(!0,t)};var q="utf-8";j.prototype={encode:function(t,e){t=t?t+"":"",e=Object(e),this._streaming||(this._encoder=this._encoding.getEncoder(this._options)),this._streaming=Boolean(e.stream);for(var n=[],r=new i(n),s=new o(t);s.get()!==L;)this._encoder.encode(r,s);if(!this._streaming){var c;do c=this._encoder.encode(r,s);while(c!==N);this._encoder=null}return new Uint8Array(n)}},T.prototype={decode:function(t,e){if(t&&!("buffer"in t&&"byteOffset"in t&&"byteLength"in t))throw new TypeError("Expected ArrayBufferView");t||(t=new Uint8Array(0)),e=Object(e),this._streaming||(this._decoder=this._encoding.getDecoder(this._options),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var n,i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),o=new r(i),c=new s;o.get()!==N;)n=this._decoder.decode(o),null!==n&&n!==L&&c.emit(n);if(!this._streaming){do n=this._decoder.decode(o),null!==n&&n!==L&&c.emit(n);while(n!==L&&o.get()!=N);this._decoder=null}var a=c.string();return!this._BOMseen&&a.length&&(this._BOMseen=!0,-1!==["utf-8","utf-16le","utf-16be"].indexOf(this.encoding)&&65279===a.charCodeAt(0)&&(a=a.substring(1))),a}},t.TextEncoder=t.TextEncoder||j,t.TextDecoder=t.TextDecoder||T}(this),n("encoding",["encoding-indexes-shim"],function(){}),n("src/path",[],function(){function t(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function e(){for(var e="",n=!1,r=arguments.length-1;r>=-1&&!n;r--){var i=r>=0?arguments[r]:"/";"string"==typeof i&&i&&(e=i+"/"+e,n="/"===i.charAt(0))}return e=t(e.split("/").filter(function(t){return!!t}),!n).join("/"),(n?"/":"")+e||"."}function n(e){var n="/"===e.charAt(0),r="/"===e.substr(-1);return e=t(e.split("/").filter(function(t){return!!t}),!n).join("/"),e||n||(e="."),e&&r&&(e+="/"),(n?"/":"")+e}function r(){var t=Array.prototype.slice.call(arguments,0);return n(t.filter(function(t){return t&&"string"==typeof t}).join("/"))}function i(t,e){function n(t){for(var e=0;t.length>e&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=exports.resolve(t).substr(1),e=exports.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,c=0;o>c;c++)if(r[c]!==i[c]){s=c;break}for(var a=[],c=s;r.length>c;c++)a.push("..");return a=a.concat(i.slice(s)),a.join("/")}function o(t){var e=u(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."}function s(t,e){var n=u(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),""===n?"/":n}function c(t){return u(t)[3]}var a=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,u=function(t){var e=a.exec(t);return[e[1]||"",e[2]||"",e[3]||"",e[4]||""]};return{normalize:n,resolve:e,join:r,relative:i,sep:"/",delimiter:":",dirname:o,basename:s,extname:c}});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,c=i/(4*s),c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0),e=c*s,i=t.min(4*e,i);if(e){for(var a=0;e>a;a+=s)this._doProcessBlock(r,a);a=r.splice(0,e),n.sigBytes-=i}return o.create(a,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(t){var e=r,n=e.lib,i=n.WordArray,n=n.Hasher,o=e.algo,s=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;n>=r;r++)if(!(e%r))return!1;return!0}function n(t){return 0|4294967296*(t-(0|t))}for(var r=2,i=0;64>i;)e(r)&&(8>i&&(s[i]=n(t.pow(r,.5))),c[i]=n(t.pow(r,1/3)),i++),r++})();var a=[],o=o.SHA256=n.extend({_doReset:function(){this._hash=i.create(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],f=n[5],l=n[6],d=n[7],h=0;64>h;h++){if(16>h)a[h]=0|t[e+h];else{var p=a[h-15],g=a[h-2];a[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+a[h-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+a[h-16]}p=d+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&f^~u&l)+c[h]+a[h],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),d=l,l=f,f=u,u=0|s+p,s=o,o=i,i=r,r=0|p+g}n[0]=0|n[0]+r,n[1]=0|n[1]+i,n[2]=0|n[2]+o,n[3]=0|n[3]+s,n[4]=0|n[4]+u,n[5]=0|n[5]+f,n[6]=0|n[6]+l,n[7]=0|n[7]+d},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+15]=n,t.sigBytes=4*e.length,this._process()}});e.SHA256=n._createHelper(o),e.HmacSHA256=n._createHmacHelper(o)})(Math),n("crypto-js/rollups/sha256",function(){}),n("src/shared",["require","crypto-js/rollups/sha256"],function(t){function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=0|16*Math.random(),n="x"==t?e:8|3&e;return n.toString(16)}).toUpperCase()}function n(t){return o.SHA256(t).toString(o.enc.hex)}function i(){}t("crypto-js/rollups/sha256");var o=r;return{guid:e,hash:n,nop:i}}),n("src/error",["require"],function(){function t(t){this.message=t||""}function e(t){this.message=t||""}function n(t){this.message=t||""}function r(t){this.message=t||""}function i(t){this.message=t||""}function o(t){this.message=t||""}function s(t){this.message=t||""}function c(t){this.message=t||""}function a(t){this.message=t||""}function u(t){this.message=t||""}function f(t){this.message=t||""}function l(t){this.message=t||""}function d(t){this.message=t||""}return t.prototype=Error(),t.prototype.name="EExists",t.prototype.constructor=t,e.prototype=Error(),e.prototype.name="EIsDirectory",e.prototype.constructor=e,n.prototype=Error(),n.prototype.name="ENoEntry",n.prototype.constructor=n,r.prototype=Error(),r.prototype.name="EBusy",r.prototype.constructor=r,i.prototype=Error(),i.prototype.name="ENotEmpty",i.prototype.constructor=i,o.prototype=Error(),o.prototype.name="ENotDirectory",o.prototype.constructor=o,s.prototype=Error(),s.prototype.name="EBadFileDescriptor",s.prototype.constructor=s,c.prototype=Error(),c.prototype.name="ENotImplemented",c.prototype.constructor=c,a.prototype=Error(),a.prototype.name="ENotMounted",a.prototype.constructor=a,u.prototype=Error(),u.prototype.name="EInvalid",u.prototype.constructor=u,f.prototype=Error(),f.prototype.name="EIO",f.prototype.constructor=f,l.prototype=Error(),l.prototype.name="ELoop",l.prototype.constructor=l,d.prototype=Error(),d.prototype.name="EFileSystemError",d.prototype.constructor=d,{EExists:t,EIsDirectory:e,ENoEntry:n,EBusy:r,ENotEmpty:i,ENotDirectory:o,EBadFileDescriptor:s,ENotImplemented:c,ENotMounted:a,EInvalid:u,EIO:f,ELoop:l}}),n("src/constants",["require"],function(){var t="READ",e="WRITE",n="CREATE",r="EXCLUSIVE",i="TRUNCATE",o="APPEND";return{FILE_SYSTEM_NAME:"local",FILE_STORE_NAME:"files",IDB_RO:"readonly",IDB_RW:"readwrite",WSQL_VERSION:"1",WSQL_SIZE:5242880,WSQL_DESC:"FileSystem Storage",MODE_FILE:"FILE",MODE_DIRECTORY:"DIRECTORY",MODE_SYMBOLIC_LINK:"SYMLINK",SYMLOOP_MAX:10,BINARY_MIME_TYPE:"application/octet-stream",JSON_MIME_TYPE:"application/json",ROOT_DIRECTORY_NAME:"/",ROOT_NODE_ID:"8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1",FS_FORMAT:"FORMAT",O_READ:t,O_WRITE:e,O_CREATE:n,O_EXCLUSIVE:r,O_TRUNCATE:i,O_APPEND:o,O_FLAGS:{r:[t],"r+":[t,e],w:[e,n,i],"w+":[e,t,n,i],wx:[e,n,r,i],"wx+":[e,t,n,r,i],a:[e,n,o],"a+":[e,t,n,o],ax:[e,n,r,o],"ax+":[e,t,n,r,o]},FS_READY:"READY",FS_PENDING:"PENDING",FS_ERROR:"ERROR"}}),n("src/providers/indexeddb",["require","src/constants","src/constants","src/constants","src/constants"],function(t){function e(t,e){var n=t.transaction(i,e);this.objectStore=n.objectStore(i)}function n(t){this.name=t||r,this.db=null}var r=t("src/constants").FILE_SYSTEM_NAME,i=t("src/constants").FILE_STORE_NAME,o=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,s=t("src/constants").IDB_RW,c=t("src/constants").IDB_RO;return e.prototype.clear=function(t){try{var e=this.objectStore.clear();e.onsuccess=function(){t()
},e.onerror=function(e){t(e)}}catch(n){t(n)}},e.prototype.get=function(t,e){try{var n=this.objectStore.get(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){e(t)}}catch(r){e(r)}},e.prototype.put=function(t,e,n){try{var r=this.objectStore.put(e,t);r.onsuccess=function(t){var e=t.target.result;n(null,e)},r.onerror=function(t){n(t)}}catch(i){n(i)}},e.prototype.delete=function(t,e){try{var n=this.objectStore.delete(t);n.onsuccess=function(t){var n=t.target.result;e(null,n)},n.onerror=function(t){e(t)}}catch(r){e(r)}},n.isSupported=function(){return!!o},n.prototype.open=function(t){var e=this;if(e.db)return t(null,!1),void 0;var n=!1,r=o.open(e.name);r.onupgradeneeded=function(t){var e=t.target.result;e.objectStoreNames.contains(i)&&e.deleteObjectStore(i),e.createObjectStore(i),n=!0},r.onsuccess=function(r){e.db=r.target.result,t(null,n)},r.onerror=function(e){t(e)}},n.prototype.getReadOnlyContext=function(){return new e(this.db,c)},n.prototype.getReadWriteContext=function(){return new e(this.db,s)},n}),n("src/providers/websql",["require","src/constants","src/constants","src/constants","src/constants","src/constants"],function(t){function e(t,e){var n=this;this.getTransaction=function(r){return n.transaction?(r(n.transaction),void 0):(t[e?"readTransaction":"transaction"](function(t){n.transaction=t,r(t)}),void 0)}}function n(t){this.name=t||r,this.db=null}var r=t("src/constants").FILE_SYSTEM_NAME,i=t("src/constants").FILE_STORE_NAME,o=t("src/constants").WSQL_VERSION,s=t("src/constants").WSQL_SIZE,c=t("src/constants").WSQL_DESC;return e.prototype.clear=function(t){function e(e,n){t(n)}function n(){t(null)}this.getTransaction(function(t){t.executeSql("DELETE FROM "+i,[],n,e)})},e.prototype.get=function(t,e){function n(t,n){var r=0===n.rows.length?null:n.rows.item(0).data;e(null,r)}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("SELECT data FROM "+i+" WHERE id = ?",[t],n,r)})},e.prototype.put=function(t,e,n){function r(){n(null)}function o(t,e){n(e)}this.getTransaction(function(n){n.executeSql("INSERT OR REPLACE INTO "+i+" (id, data) VALUES (?, ?)",[t,e],r,o)})},e.prototype.delete=function(t,e){function n(){e(null)}function r(t,n){e(n)}this.getTransaction(function(e){e.executeSql("DELETE FROM "+i+" WHERE id = ?",[t],n,r)})},n.isSupported=function(){return!!window.openDatabase},n.prototype.open=function(t){function e(e,n){t(n)}function n(e){function n(e,n){var r=0===n.rows.item(0).count;t(null,r)}function o(e,n){t(n)}r.db=a,e.executeSql("SELECT COUNT(id) AS count FROM "+i+";",[],n,o)}var r=this;if(r.db)return t(null,!1),void 0;var a=window.openDatabase(r.name,o,c,s);return a?(a.transaction(function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+i+" (id unique, data)",[],n,e)}),void 0):(t("[WebSQL] Unable to open database."),void 0)},n.prototype.getReadOnlyContext=function(){return new e(this.db,!0)},n.prototype.getReadWriteContext=function(){return new e(this.db,!1)},n}),n("src/providers/memory",["require","src/constants"],function(t){function e(t,e){this.readOnly=e,this.objectStore=t}function n(t){this.name=t||r,this.db={}}var r=t("src/constants").FILE_SYSTEM_NAME;return e.prototype.clear=function(t){if(this.readOnly)return t("[MemoryContext] Error: write operation on read only context");var e=this.objectStore;Object.keys(e).forEach(function(t){delete e[t]}),t(null)},e.prototype.get=function(t,e){e(null,this.objectStore[t])},e.prototype.put=function(t,e,n){return this.readOnly?n("[MemoryContext] Error: write operation on read only context"):(this.objectStore[t]=e,n(null),void 0)},e.prototype.delete=function(t,e){return this.readOnly?e("[MemoryContext] Error: write operation on read only context"):(delete this.objectStore[t],e(null),void 0)},n.isSupported=function(){return!0},n.prototype.open=function(t){t(null,!0)},n.prototype.getReadOnlyContext=function(){return new e(this.db,!0)},n.prototype.getReadWriteContext=function(){return new e(this.db,!1)},n}),n("src/providers/providers",["require","src/providers/indexeddb","src/providers/websql","src/providers/memory"],function(t){var e=t("src/providers/indexeddb"),n=t("src/providers/websql"),r=t("src/providers/memory");return{IndexedDB:e,WebSQL:n,Memory:r,Default:e,Fallback:function(){function t(){throw"[IDBFS Error] Your browser doesn't support IndexedDB or WebSQL."}return e.isSupported()?e:n.isSupported()?n:(t.isSupported=function(){return!1},t)}()}});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,c=i/(4*s),c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0),e=c*s,i=t.min(4*e,i);if(e){for(var a=0;e>a;a+=s)this._doProcessBlock(r,a);a=r.splice(0,e),n.sigBytes-=i}return o.create(a,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(){var t=r,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var t=[],i=0;n>i;i+=3)for(var o=(255&e[i>>>2]>>>24-8*(i%4))<<16|(255&e[i+1>>>2]>>>24-8*((i+1)%4))<<8|255&e[i+2>>>2]>>>24-8*((i+2)%4),s=0;4>s&&n>i+.75*s;s++)t.push(r.charAt(63&o>>>6*(3-s)));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var t=t.replace(/\s/g,""),n=t.length,r=this._map,i=r.charAt(64);i&&(i=t.indexOf(i),-1!=i&&(n=i));for(var i=[],o=0,s=0;n>s;s++)if(s%4){var c=r.indexOf(t.charAt(s-1))<<2*(s%4),a=r.indexOf(t.charAt(s))>>>6-2*(s%4);i[o>>>2]|=(c|a)<<24-8*(o%4),o++}return e.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),function(t){function e(t,e,n,r,i,o,s){return t=t+(e&n|~e&r)+i+s,(t<<o|t>>>32-o)+e}function n(t,e,n,r,i,o,s){return t=t+(e&r|n&~r)+i+s,(t<<o|t>>>32-o)+e}function i(t,e,n,r,i,o,s){return t=t+(e^n^r)+i+s,(t<<o|t>>>32-o)+e}function o(t,e,n,r,i,o,s){return t=t+(n^(e|~r))+i+s,(t<<o|t>>>32-o)+e}var s=r,c=s.lib,a=c.WordArray,c=c.Hasher,u=s.algo,f=[];(function(){for(var e=0;64>e;e++)f[e]=0|4294967296*t.abs(t.sin(e+1))})(),u=u.MD5=c.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var c=r+s,a=t[c];t[c]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}for(var c=this._hash.words,a=c[0],u=c[1],l=c[2],d=c[3],s=0;64>s;s+=4)16>s?(a=e(a,u,l,d,t[r+s],7,f[s]),d=e(d,a,u,l,t[r+s+1],12,f[s+1]),l=e(l,d,a,u,t[r+s+2],17,f[s+2]),u=e(u,l,d,a,t[r+s+3],22,f[s+3])):32>s?(a=n(a,u,l,d,t[r+(s+1)%16],5,f[s]),d=n(d,a,u,l,t[r+(s+6)%16],9,f[s+1]),l=n(l,d,a,u,t[r+(s+11)%16],14,f[s+2]),u=n(u,l,d,a,t[r+s%16],20,f[s+3])):48>s?(a=i(a,u,l,d,t[r+(3*s+5)%16],4,f[s]),d=i(d,a,u,l,t[r+(3*s+8)%16],11,f[s+1]),l=i(l,d,a,u,t[r+(3*s+11)%16],16,f[s+2]),u=i(u,l,d,a,t[r+(3*s+14)%16],23,f[s+3])):(a=o(a,u,l,d,t[r+3*s%16],6,f[s]),d=o(d,a,u,l,t[r+(3*s+7)%16],10,f[s+1]),l=o(l,d,a,u,t[r+(3*s+14)%16],15,f[s+2]),u=o(u,l,d,a,t[r+(3*s+5)%16],21,f[s+3]));c[0]=0|c[0]+a,c[1]=0|c[1]+u,c[2]=0|c[2]+l,c[3]=0|c[3]+d},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),t=this._hash.words,e=0;4>e;e++)n=t[e],t[e]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}}),s.MD5=c._createHelper(u),s.HmacMD5=c._createHmacHelper(u)}(Math),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,e=t.algo,o=e.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),s=o.words,c=n.keySize,n=n.iterations;c>s.length;){a&&r.update(a);var a=r.update(t).finalize(e);r.reset();for(var u=1;n>u;u++)a=r.finalize(a),r.reset();o.concat(a)}return o.sigBytes=4*c,o}});t.EvpKDF=function(t,e,n){return o.create(n).compute(t,e)}}(),r.lib.Cipher||function(t){var e=r,n=e.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,c=e.enc.Base64,a=e.algo.EvpKDF,u=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(t){return{encrypt:function(e,n,r){return("string"==typeof n?g:p).encrypt(t,e,n,r)},decrypt:function(e,n,r){return("string"==typeof n?g:p).decrypt(t,e,n,r)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=e.mode={},l=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=f.CBC=function(){function e(e,n,r){var i=this._iv;i?this._iv=t:i=this._prevBlock;for(var o=0;r>o;o++)e[n+o]^=i[o]}var n=l.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),n}(),d=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,n=n-t.sigBytes%n,r=n<<24|n<<16|n<<8|n,i=[],s=0;n>s;s+=4)i.push(r);n=o.create(i,n),t.concat(n)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var h=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,e=(t?o.create([1398893684,1701076831]).concat(t).concat(e):e).toString(c);return e=e.replace(/(.{64})/g,"$1\n")},parse:function(t){var t=c.parse(t),e=t.words;if(1398893684==e[0]&&1701076831==e[1]){var n=o.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return h.create({ciphertext:t,salt:n})}},p=n.SerializableCipher=i.extend({cfg:i.extend({format:f}),encrypt:function(t,e,n,r){var r=this.cfg.extend(r),i=t.createEncryptor(n,r),e=i.finalize(e),i=i.cfg;return h.create({ciphertext:e,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t):t}}),e=(e.kdf={}).OpenSSL={compute:function(t,e,n,r){return r||(r=o.random(8)),t=a.create({keySize:e+n}).compute(t,r),n=o.create(t.words.slice(e),4*n),t.sigBytes=4*e,h.create({key:t,iv:n,salt:r})}},g=n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:e}),encrypt:function(t,e,n,r){return r=this.cfg.extend(r),n=r.kdf.compute(n,t.keySize,t.ivSize),r.iv=n.iv,t=p.encrypt.call(this,t,e,n.key,r),t.mixIn(n),t},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),n=r.kdf.compute(n,t.keySize,t.ivSize,e.salt),r.iv=n.iv,p.decrypt.call(this,t,e,n.key,r)}})}(),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],s=[],c=[],a=[],u=[],f=[],l=[],d=[],h=[];(function(){for(var t=[],e=0;256>e;e++)t[e]=128>e?e<<1:283^e<<1;for(var n=0,r=0,e=0;256>e;e++){var p=r^r<<1^r<<2^r<<3^r<<4,p=99^(p>>>8^255&p);i[n]=p,o[p]=n;var g=t[n],v=t[g],y=t[v],_=257*t[p]^16843008*p;s[n]=_<<24|_>>>8,c[n]=_<<16|_>>>16,a[n]=_<<8|_>>>24,u[n]=_,_=16843009*y^65537*v^257*g^16843008*n,f[p]=_<<24|_>>>8,l[p]=_<<16|_>>>16,d[p]=_<<8|_>>>24,h[p]=_,n?(n=g^t[t[t[y^g]]],r^=t[t[r]]):n=r=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes/4,t=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],o=0;t>o;o++)if(n>o)r[o]=e[o];else{var s=r[o-1];o%n?n>6&&4==o%n&&(s=i[s>>>24]<<24|i[255&s>>>16]<<16|i[255&s>>>8]<<8|i[255&s]):(s=s<<8|s>>>24,s=i[s>>>24]<<24|i[255&s>>>16]<<16|i[255&s>>>8]<<8|i[255&s],s^=p[0|o/n]<<24),r[o]=r[o-n]^s}for(e=this._invKeySchedule=[],n=0;t>n;n++)o=t-n,s=n%4?r[o]:r[o-4],e[n]=4>n||4>=o?s:f[i[s>>>24]]^l[i[255&s>>>16]]^d[i[255&s>>>8]]^h[i[255&s]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,a,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,f,l,d,h,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,s,c){for(var a=this._nRounds,u=t[e]^n[0],f=t[e+1]^n[1],l=t[e+2]^n[2],d=t[e+3]^n[3],h=4,p=1;a>p;p++)var g=r[u>>>24]^i[255&f>>>16]^o[255&l>>>8]^s[255&d]^n[h++],v=r[f>>>24]^i[255&l>>>16]^o[255&d>>>8]^s[255&u]^n[h++],y=r[l>>>24]^i[255&d>>>16]^o[255&u>>>8]^s[255&f]^n[h++],d=r[d>>>24]^i[255&u>>>16]^o[255&f>>>8]^s[255&l]^n[h++],u=g,f=v,l=y;g=(c[u>>>24]<<24|c[255&f>>>16]<<16|c[255&l>>>8]<<8|c[255&d])^n[h++],v=(c[f>>>24]<<24|c[255&l>>>16]<<16|c[255&d>>>8]<<8|c[255&u])^n[h++],y=(c[l>>>24]<<24|c[255&d>>>16]<<16|c[255&u>>>8]<<8|c[255&f])^n[h++],d=(c[d>>>24]<<24|c[255&u>>>16]<<16|c[255&f>>>8]<<8|c[255&l])^n[h++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=d},keySize:8});t.AES=e._createHelper(n)}(),n("crypto-js/rollups/aes",function(){});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,c=i/(4*s),c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0),e=c*s,i=t.min(4*e,i);if(e){for(var a=0;e>a;a+=s)this._doProcessBlock(r,a);a=r.splice(0,e),n.sigBytes-=i}return o.create(a,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(){var t=r,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var t=[],i=0;n>i;i+=3)for(var o=(255&e[i>>>2]>>>24-8*(i%4))<<16|(255&e[i+1>>>2]>>>24-8*((i+1)%4))<<8|255&e[i+2>>>2]>>>24-8*((i+2)%4),s=0;4>s&&n>i+.75*s;s++)t.push(r.charAt(63&o>>>6*(3-s)));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var t=t.replace(/\s/g,""),n=t.length,r=this._map,i=r.charAt(64);i&&(i=t.indexOf(i),-1!=i&&(n=i));for(var i=[],o=0,s=0;n>s;s++)if(s%4){var c=r.indexOf(t.charAt(s-1))<<2*(s%4),a=r.indexOf(t.charAt(s))>>>6-2*(s%4);i[o>>>2]|=(c|a)<<24-8*(o%4),o++}return e.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),function(t){function e(t,e,n,r,i,o,s){return t=t+(e&n|~e&r)+i+s,(t<<o|t>>>32-o)+e}function n(t,e,n,r,i,o,s){return t=t+(e&r|n&~r)+i+s,(t<<o|t>>>32-o)+e}function i(t,e,n,r,i,o,s){return t=t+(e^n^r)+i+s,(t<<o|t>>>32-o)+e}function o(t,e,n,r,i,o,s){return t=t+(n^(e|~r))+i+s,(t<<o|t>>>32-o)+e}var s=r,c=s.lib,a=c.WordArray,c=c.Hasher,u=s.algo,f=[];(function(){for(var e=0;64>e;e++)f[e]=0|4294967296*t.abs(t.sin(e+1))})(),u=u.MD5=c.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var c=r+s,a=t[c];t[c]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}for(var c=this._hash.words,a=c[0],u=c[1],l=c[2],d=c[3],s=0;64>s;s+=4)16>s?(a=e(a,u,l,d,t[r+s],7,f[s]),d=e(d,a,u,l,t[r+s+1],12,f[s+1]),l=e(l,d,a,u,t[r+s+2],17,f[s+2]),u=e(u,l,d,a,t[r+s+3],22,f[s+3])):32>s?(a=n(a,u,l,d,t[r+(s+1)%16],5,f[s]),d=n(d,a,u,l,t[r+(s+6)%16],9,f[s+1]),l=n(l,d,a,u,t[r+(s+11)%16],14,f[s+2]),u=n(u,l,d,a,t[r+s%16],20,f[s+3])):48>s?(a=i(a,u,l,d,t[r+(3*s+5)%16],4,f[s]),d=i(d,a,u,l,t[r+(3*s+8)%16],11,f[s+1]),l=i(l,d,a,u,t[r+(3*s+11)%16],16,f[s+2]),u=i(u,l,d,a,t[r+(3*s+14)%16],23,f[s+3])):(a=o(a,u,l,d,t[r+3*s%16],6,f[s]),d=o(d,a,u,l,t[r+(3*s+7)%16],10,f[s+1]),l=o(l,d,a,u,t[r+(3*s+14)%16],15,f[s+2]),u=o(u,l,d,a,t[r+(3*s+5)%16],21,f[s+3]));c[0]=0|c[0]+a,c[1]=0|c[1]+u,c[2]=0|c[2]+l,c[3]=0|c[3]+d},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),t=this._hash.words,e=0;4>e;e++)n=t[e],t[e]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}}),s.MD5=c._createHelper(u),s.HmacMD5=c._createHmacHelper(u)}(Math),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,e=t.algo,o=e.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),s=o.words,c=n.keySize,n=n.iterations;c>s.length;){a&&r.update(a);var a=r.update(t).finalize(e);r.reset();for(var u=1;n>u;u++)a=r.finalize(a),r.reset();o.concat(a)}return o.sigBytes=4*c,o}});t.EvpKDF=function(t,e,n){return o.create(n).compute(t,e)}}(),r.lib.Cipher||function(t){var e=r,n=e.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,c=e.enc.Base64,a=e.algo.EvpKDF,u=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(t){return{encrypt:function(e,n,r){return("string"==typeof n?g:p).encrypt(t,e,n,r)},decrypt:function(e,n,r){return("string"==typeof n?g:p).decrypt(t,e,n,r)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=e.mode={},l=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=f.CBC=function(){function e(e,n,r){var i=this._iv;i?this._iv=t:i=this._prevBlock;for(var o=0;r>o;o++)e[n+o]^=i[o]}var n=l.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),n}(),d=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,n=n-t.sigBytes%n,r=n<<24|n<<16|n<<8|n,i=[],s=0;n>s;s+=4)i.push(r);n=o.create(i,n),t.concat(n)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var h=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,e=(t?o.create([1398893684,1701076831]).concat(t).concat(e):e).toString(c);return e=e.replace(/(.{64})/g,"$1\n")},parse:function(t){var t=c.parse(t),e=t.words;if(1398893684==e[0]&&1701076831==e[1]){var n=o.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return h.create({ciphertext:t,salt:n})}},p=n.SerializableCipher=i.extend({cfg:i.extend({format:f}),encrypt:function(t,e,n,r){var r=this.cfg.extend(r),i=t.createEncryptor(n,r),e=i.finalize(e),i=i.cfg;return h.create({ciphertext:e,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t):t}}),e=(e.kdf={}).OpenSSL={compute:function(t,e,n,r){return r||(r=o.random(8)),t=a.create({keySize:e+n}).compute(t,r),n=o.create(t.words.slice(e),4*n),t.sigBytes=4*e,h.create({key:t,iv:n,salt:r})}},g=n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:e}),encrypt:function(t,e,n,r){return r=this.cfg.extend(r),n=r.kdf.compute(n,t.keySize,t.ivSize),r.iv=n.iv,t=p.encrypt.call(this,t,e,n.key,r),t.mixIn(n),t},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),n=r.kdf.compute(n,t.keySize,t.ivSize,e.salt),r.iv=n.iv,p.decrypt.call(this,t,e,n.key,r)}})}(),function(){function t(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function e(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}var n=r,i=n.lib,o=i.WordArray,i=i.BlockCipher,s=n.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;56>n;n++){var r=c[n]-1;
e[n]=1&t[r>>>5]>>>31-r%32}for(t=this._subKeys=[],r=0;16>r;r++){for(var i=t[r]=[],o=u[r],n=0;24>n;n++)i[0|n/6]|=e[(a[n]-1+o)%28]<<31-n%6,i[4+(0|n/6)]|=e[28+(a[n+24]-1+o)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(e=this._invSubKeys=[],n=0;16>n;n++)e[n]=t[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;16>o;o++){for(var s=i[o],c=this._lBlock,a=this._rBlock,u=0,d=0;8>d;d++)u|=f[d][((a^s[d])&l[d])>>>0];this._lBlock=a,this._rBlock=c^u}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=i._createHelper(d),s=s.TripleDES=i.extend({_doReset:function(){var t=this._key.words;this._des1=d.createEncryptor(o.create(t.slice(0,2))),this._des2=d.createEncryptor(o.create(t.slice(2,4))),this._des3=d.createEncryptor(o.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=i._createHelper(s)}(),n("crypto-js/rollups/tripledes",function(){});var r=r||function(t,e){var n={},r=n.lib={},i=r.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var n=new t;return e&&n.mixIn(e),n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.$super.extend(this)}}}(),o=r.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,t=t.sigBytes;if(this.clamp(),r%4)for(var i=0;t>i;i++)e[r+i>>>2]|=(255&n[i>>>2]>>>24-8*(i%4))<<24-8*((r+i)%4);else if(n.length>65535)for(i=0;t>i;i+=4)e[r+i>>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-8*(n%4),e.length=t.ceil(n/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;e>r;r+=4)n.push(0|4294967296*t.random());return o.create(n,e)}}),s=n.enc={},c=s.Hex={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++){var i=255&e[r>>>2]>>>24-8*(r%4);n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8);return o.create(n,e/2)}},a=s.Latin1={stringify:function(t){for(var e=t.words,t=t.sigBytes,n=[],r=0;t>r;r++)n.push(String.fromCharCode(255&e[r>>>2]>>>24-8*(r%4)));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;e>r;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-8*(r%4);return o.create(n,e)}},u=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(a.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return a.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=o.create(),this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,s=this.blockSize,c=i/(4*s),c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0),e=c*s,i=t.min(4*e,i);if(e){for(var a=0;e>a;a+=s)this._doProcessBlock(r,a);a=r.splice(0,e),n.sigBytes-=i}return o.create(a,i)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});r.Hasher=f.extend({init:function(){this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize(),this._hash},clone:function(){var t=f.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:16,_createHelper:function(t){return function(e,n){return t.create(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return l.HMAC.create(t,n).finalize(e)}}});var l=n.algo={};return n}(Math);(function(){var t=r,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,r=this._map;t.clamp();for(var t=[],i=0;n>i;i+=3)for(var o=(255&e[i>>>2]>>>24-8*(i%4))<<16|(255&e[i+1>>>2]>>>24-8*((i+1)%4))<<8|255&e[i+2>>>2]>>>24-8*((i+2)%4),s=0;4>s&&n>i+.75*s;s++)t.push(r.charAt(63&o>>>6*(3-s)));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var t=t.replace(/\s/g,""),n=t.length,r=this._map,i=r.charAt(64);i&&(i=t.indexOf(i),-1!=i&&(n=i));for(var i=[],o=0,s=0;n>s;s++)if(s%4){var c=r.indexOf(t.charAt(s-1))<<2*(s%4),a=r.indexOf(t.charAt(s))>>>6-2*(s%4);i[o>>>2]|=(c|a)<<24-8*(o%4),o++}return e.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),function(t){function e(t,e,n,r,i,o,s){return t=t+(e&n|~e&r)+i+s,(t<<o|t>>>32-o)+e}function n(t,e,n,r,i,o,s){return t=t+(e&r|n&~r)+i+s,(t<<o|t>>>32-o)+e}function i(t,e,n,r,i,o,s){return t=t+(e^n^r)+i+s,(t<<o|t>>>32-o)+e}function o(t,e,n,r,i,o,s){return t=t+(n^(e|~r))+i+s,(t<<o|t>>>32-o)+e}var s=r,c=s.lib,a=c.WordArray,c=c.Hasher,u=s.algo,f=[];(function(){for(var e=0;64>e;e++)f[e]=0|4294967296*t.abs(t.sin(e+1))})(),u=u.MD5=c.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var c=r+s,a=t[c];t[c]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}for(var c=this._hash.words,a=c[0],u=c[1],l=c[2],d=c[3],s=0;64>s;s+=4)16>s?(a=e(a,u,l,d,t[r+s],7,f[s]),d=e(d,a,u,l,t[r+s+1],12,f[s+1]),l=e(l,d,a,u,t[r+s+2],17,f[s+2]),u=e(u,l,d,a,t[r+s+3],22,f[s+3])):32>s?(a=n(a,u,l,d,t[r+(s+1)%16],5,f[s]),d=n(d,a,u,l,t[r+(s+6)%16],9,f[s+1]),l=n(l,d,a,u,t[r+(s+11)%16],14,f[s+2]),u=n(u,l,d,a,t[r+s%16],20,f[s+3])):48>s?(a=i(a,u,l,d,t[r+(3*s+5)%16],4,f[s]),d=i(d,a,u,l,t[r+(3*s+8)%16],11,f[s+1]),l=i(l,d,a,u,t[r+(3*s+11)%16],16,f[s+2]),u=i(u,l,d,a,t[r+(3*s+14)%16],23,f[s+3])):(a=o(a,u,l,d,t[r+3*s%16],6,f[s]),d=o(d,a,u,l,t[r+(3*s+7)%16],10,f[s+1]),l=o(l,d,a,u,t[r+(3*s+14)%16],15,f[s+2]),u=o(u,l,d,a,t[r+(3*s+5)%16],21,f[s+3]));c[0]=0|c[0]+a,c[1]=0|c[1]+u,c[2]=0|c[2]+l,c[3]=0|c[3]+d},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),t=this._hash.words,e=0;4>e;e++)n=t[e],t[e]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}}),s.MD5=c._createHelper(u),s.HmacMD5=c._createHmacHelper(u)}(Math),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,e=t.algo,o=e.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),s=o.words,c=n.keySize,n=n.iterations;c>s.length;){a&&r.update(a);var a=r.update(t).finalize(e);r.reset();for(var u=1;n>u;u++)a=r.finalize(a),r.reset();o.concat(a)}return o.sigBytes=4*c,o}});t.EvpKDF=function(t,e,n){return o.create(n).compute(t,e)}}(),r.lib.Cipher||function(t){var e=r,n=e.lib,i=n.Base,o=n.WordArray,s=n.BufferedBlockAlgorithm,c=e.enc.Base64,a=e.algo.EvpKDF,u=n.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(t){return{encrypt:function(e,n,r){return("string"==typeof n?g:p).encrypt(t,e,n,r)},decrypt:function(e,n,r){return("string"==typeof n?g:p).decrypt(t,e,n,r)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=e.mode={},l=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=f.CBC=function(){function e(e,n,r){var i=this._iv;i?this._iv=t:i=this._prevBlock;for(var o=0;r>o;o++)e[n+o]^=i[o]}var n=l.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize;e.call(this,t,n,i),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+i)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=t.slice(n,n+i);r.decryptBlock(t,n),e.call(this,t,n,i),this._prevBlock=o}}),n}(),d=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,n=n-t.sigBytes%n,r=n<<24|n<<16|n<<8|n,i=[],s=0;n>s;s+=4)i.push(r);n=o.create(i,n),t.concat(n)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var h=n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,t=t.salt,e=(t?o.create([1398893684,1701076831]).concat(t).concat(e):e).toString(c);return e=e.replace(/(.{64})/g,"$1\n")},parse:function(t){var t=c.parse(t),e=t.words;if(1398893684==e[0]&&1701076831==e[1]){var n=o.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return h.create({ciphertext:t,salt:n})}},p=n.SerializableCipher=i.extend({cfg:i.extend({format:f}),encrypt:function(t,e,n,r){var r=this.cfg.extend(r),i=t.createEncryptor(n,r),e=i.finalize(e),i=i.cfg;return h.create({ciphertext:e,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t):t}}),e=(e.kdf={}).OpenSSL={compute:function(t,e,n,r){return r||(r=o.random(8)),t=a.create({keySize:e+n}).compute(t,r),n=o.create(t.words.slice(e),4*n),t.sigBytes=4*e,h.create({key:t,iv:n,salt:r})}},g=n.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:e}),encrypt:function(t,e,n,r){return r=this.cfg.extend(r),n=r.kdf.compute(n,t.keySize,t.ivSize),r.iv=n.iv,t=p.encrypt.call(this,t,e,n.key,r),t.mixIn(n),t},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),n=r.kdf.compute(n,t.keySize,t.ivSize,e.salt),r.iv=n.iv,p.decrypt.call(this,t,e,n.key,r)}})}(),function(){function t(){var t=this._X,e=this._C;e[0]=0|e[0]+1295307597+this._b,e[1]=0|e[1]+3545052371+(1295307597>e[0]>>>0?1:0),e[2]=0|e[2]+886263092+(3545052371>e[1]>>>0?1:0),e[3]=0|e[3]+1295307597+(886263092>e[2]>>>0?1:0),e[4]=0|e[4]+3545052371+(1295307597>e[3]>>>0?1:0),e[5]=0|e[5]+886263092+(3545052371>e[4]>>>0?1:0),e[6]=0|e[6]+1295307597+(886263092>e[5]>>>0?1:0),e[7]=0|e[7]+3545052371+(1295307597>e[6]>>>0?1:0),this._b=3545052371>e[7]>>>0?1:0;for(var n=0;8>n;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16;o[n]=((i*i>>>17)+i*s>>>15)+s*s^(0|(4294901760&r)*r)+(0|(65535&r)*r)}var e=o[0],n=o[1],r=o[2],i=o[3],s=o[4],c=o[5],a=o[6],u=o[7];t[0]=0|e+(u<<16|u>>>16)+(a<<16|a>>>16),t[1]=0|n+(e<<8|e>>>24)+u,t[2]=0|r+(n<<16|n>>>16)+(e<<16|e>>>16),t[3]=0|i+(r<<8|r>>>24)+n,t[4]=0|s+(i<<16|i>>>16)+(r<<16|r>>>16),t[5]=0|c+(s<<8|s>>>24)+i,t[6]=0|a+(c<<16|c>>>16)+(s<<16|s>>>16),t[7]=0|u+(a<<8|a>>>24)+c}var e=r,n=e.lib.StreamCipher,i=[],o=[],s=e.algo.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,n=e[0],r=e[1],i=e[2],o=e[3],e=this._X=[n,o<<16|i>>>16,r,n<<16|o>>>16,i,r<<16|n>>>16,o,i<<16|r>>>16],n=this._C=[i<<16|i>>>16,4294901760&n|65535&r,o<<16|o>>>16,4294901760&r|65535&i,n<<16|n>>>16,4294901760&i|65535&o,r<<16|r>>>16,4294901760&o|65535&n],r=this._b=0;4>r;r++)t.call(this);for(r=0;8>r;r++)n[r]^=e[7&r+4];if(e=this.cfg.iv)for(r=e.words,e=r[0],r=r[1],e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),i=e>>>16|4294901760&r,o=r<<16|65535&e,n[0]^=e,n[1]^=i,n[2]^=r,n[3]^=o,n[4]^=e,n[5]^=i,n[6]^=r,n[7]^=o,r=0;4>r;r++)t.call(this)},_doProcessBlock:function(e,n){var r=this._X;for(t.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16,r=0;4>r;r++){var o=i[r],o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);e[n+r]^=o}},blockSize:4,ivSize:2});e.Rabbit=n._createHelper(s)}(),n("crypto-js/rollups/rabbit",function(){}),n("src/adapters/crypto",["require","crypto-js/rollups/aes","crypto-js/rollups/tripledes","crypto-js/rollups/rabbit"],function(t){function e(t,e,n){this.context=t,this.encrypt=e,this.decrypt=n}function n(t){function n(e,n){this.provider=n,this.encrypt=function(n){return""+r[t].encrypt(n,e)},this.decrypt=function(n){return r[t].decrypt(n,e).toString(r.enc.Utf8)}}return n.isSupported=function(){return!0},n.prototype.open=function(t){this.provider.open(t)},n.prototype.getReadOnlyContext=function(){return new e(this.provider.getReadOnlyContext(),this.encrypt,this.decrypt)},n.prototype.getReadWriteContext=function(){return new e(this.provider.getReadWriteContext(),this.encrypt,this.decrypt)},n}return t("crypto-js/rollups/aes"),t("crypto-js/rollups/tripledes"),t("crypto-js/rollups/rabbit"),e.prototype.clear=function(t){this.context.clear(t)},e.prototype.get=function(t,e){var n=this.decrypt;this.context.get(t,function(t,r){return t?(e(t),void 0):(r&&(r=n(r)),e(null,r),void 0)})},e.prototype.put=function(t,e,n){var r=this.encrypt(e);this.context.put(t,r,n)},e.prototype.delete=function(t,e){this.context.delete(t,e)},{AES:n("AES"),TripleDES:n("TripleDES"),Rabbit:n("Rabbit")}}),n("src/adapters/adapters",["require","src/adapters/crypto"],function(t){var e=t("src/adapters/crypto");return{AES:e.AES,TripleDES:e.TripleDES,Rabbit:e.Rabbit,Encryption:e.AES}}),n("src/fs",["require","nodash","encoding","src/path","src/path","src/path","src/shared","src/shared","src/shared","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/error","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/constants","src/providers/providers","src/adapters/adapters","src/path"],function(t){function e(t,e){this.id=t,this.type=e||ae}function n(t,e,n){this.id=t,this.flags=e,this.position=n}function r(t,e,n,r,i,o,s,c,a,u){var f=Date.now();this.id=t||Y(K()),this.mode=e||ae,this.size=n||0,this.atime=r||f,this.ctime=i||f,this.mtime=o||f,this.flags=s||[],this.xattrs=c||{},this.nlinks=a||0,this.version=u||0,this.blksize=void 0,this.nblocks=1,this.data=Y(K())}function i(t,e){this.node=t.id,this.dev=e,this.size=t.size,this.nlinks=t.nlinks,this.atime=t.atime,this.mtime=t.mtime,this.ctime=t.ctime,this.type=t.mode}function o(t,e,n){function r(t,e){t?n(t):e?n(null,e):n(new G("path does not exist"))}function i(e,r){e?n(e):r.mode===ue&&r.data?t.get(r.data,s):n(new te("a component of the path prefix is not a directory"))}function s(e,r){if(e)n(e);else if(P(r).has(u)){var i=r[u].id;t.get(i,c)}else n(new G("path does not exist"))}function c(t,e){t?n(t):e.mode==fe?(l++,l>he?n(new ie("too many symbolic links were encountered")):a(e.data)):n(null,e)}function a(e){e=q(e),f=U(e),u=X(e),le==u?t.get(de,r):o(t,f,i)}if(e=q(e),!e)return n(new G("path is an empty string"));var u=X(e),f=U(e),l=0;le==u?t.get(de,r):o(t,f,i)}function s(t,e){function n(n,o){!n&&o?e(new Q):n&&!n instanceof G?e(n):(s=new r(de,ue),s.nlinks+=1,t.put(s.id,s,i))}function i(n){n?e(n):(c={},t.put(s.data,c,e))}var s,c;o(t,le,n)}function c(t,n,i){function s(e,n){!e&&n?i(new Q):e&&!e instanceof G?i(e):o(t,v,c)}function c(e,n){e?i(e):(h=n,t.get(h.data,a))}function a(e,n){e?i(e):(p=n,l=new r(void 0,ue),l.nlinks+=1,t.put(l.id,l,u))}function u(e){e?i(e):(d={},t.put(l.data,d,f))}function f(n){n?i(n):(p[g]=new e(l.id,ue),t.put(h.data,p,i))}n=q(n);var l,d,h,p,g=X(n),v=U(n);o(t,n,s)}function a(t,e,n){function r(e,r){e?n(e):(h=r,t.get(h.data,i))}function i(e,r){e?n(e):le==g?n(new J):P(r).has(g)?(p=r,l=p[g].id,t.get(l,s)):n(new G)}function s(e,r){e?n(e):r.mode!=ue?n(new te):(l=r,t.get(l.data,c))}function c(t,e){t?n(t):(d=e,P(d).size()>0?n(new Z):a())}function a(){delete p[g],t.put(h.data,p,u)}function u(e){e?n(e):t.delete(l.id,f)}function f(e){e?n(e):t.delete(l.data,n)}e=q(e);var l,d,h,p,g=X(e),v=U(e);o(t,v,r)}function u(t,n,i,s){function c(e,n){e?s(e):(v=n,t.get(v.data,a))}function a(e,n){e?s(e):(y=n,P(y).has(x)?P(i).contains(we)?s(new G("O_CREATE and O_EXCLUSIVE are set, and the named file exists")):(_=y[x],_.type==ue&&P(i).contains(_e)?s(new V("the named file is a directory and O_WRITE is set")):t.get(_.id,u)):P(i).contains(me)?d():s(new G("O_CREATE is not set and the named file does not exist")))}function u(t,e){if(t)s(t);else{var n=e;n.mode==fe?(b++,b>he?s(new ie("too many symbolic links were encountered")):f(n.data)):l(void 0,n)}}function f(e){e=q(e),E=U(e),x=X(e),le==x&&(P(i).contains(_e)?s(new V("the named file is a directory and O_WRITE is set")):o(t,n,l)),o(t,E,c)}function l(t,e){t?s(t):(m=e,s(null,m))}function d(){m=new r(void 0,ae),m.nlinks+=1,t.put(m.id,m,h)}function h(e){e?s(e):(w=new Uint8Array(0),t.put(m.data,w,p))}function p(n){n?s(n):(y[x]=new e(m.id,ae),t.put(v.data,y,g))}function g(t){t?s(t):s(null,m)}n=q(n);var v,y,_,m,w,x=X(n),E=U(n),b=0;le==x?P(i).contains(_e)?s(new V("the named file is a directory and O_WRITE is set")):o(t,n,l):o(t,E,c)}function f(t,e,n,r,i,o,s){function c(t){t?s(t):s(null,i)}function a(e){e?s(e):t.put(l.id,l,c)}function u(r,c){if(r)s(r);else{d=c;var u=void 0!==o&&null!==o?o:e.position,f=Math.max(d.length,u+i),h=new Uint8Array(f);d&&h.set(d),h.set(n,u),void 0===o&&(e.position+=i),l.size=f,l.mtime=Date.now(),l.version+=1,t.put(l.data,h,a)}}function f(e,n){e?s(e):(l=n,t.get(l.data,u))}var l,d;t.get(e.id,f)}function l(t,e,n,r,i,o,s){function c(t,c){if(t)s(t);else{f=c;var a=void 0!==o&&null!==o?o:e.position;i=a+i>n.length?i-a:i;var u=f.subarray(a,a+i);n.set(u,r),void 0===o&&(e.position+=i),s(null,i)}}function a(e,n){e?s(e):(u=n,t.get(u.data,c))}var u,f;t.get(e.id,a)}function d(t,e,n){function r(t,e){t?n(t):n(null,e)}e=q(e),X(e),o(t,e,r)}function h(t,e,n){function r(t,e){t?n(t):n(null,e)}t.get(e.id,r)}function p(t,e,n){function r(e,r){e?n(e):(c=r,t.get(c.data,i))}function i(e,r){e?n(e):(a=r,P(a).has(u)?t.get(a[u].id,s):n(new G("a component of the path does not name an existing file")))}function s(t,e){t?n(t):n(null,e)}e=q(e);var c,a,u=X(e),f=U(e);le==u?t.get(de,s):o(t,f,r)}function g(t,e,n,r){function i(e,n){e?r(e):(y=n,y.nlinks+=1,t.put(y.id,y,r))}function s(e){e?r(e):t.get(v[_].id,i)}function c(e,n){e?r(e):(v=n,P(v).has(_)?r(new Q("newpath resolves to an existing file")):(v[_]=p[l],t.put(g.data,v,s)))}function a(e,n){e?r(e):(g=n,t.get(g.data,c))}function u(e,n){e?r(e):(p=n,P(p).has(l)?o(t,m,a):r(new G("a component of either path prefix does not exist")))}function f(e,n){e?r(e):(h=n,t.get(h.data,u))}e=q(e);var l=X(e),d=U(e);n=q(n);var h,p,g,v,y,_=X(n),m=U(n);o(t,d,f)}function v(t,e,n){function r(e){e?n(e):(delete f[d],t.put(u.data,f,n))}function i(e){e?n(e):t.delete(l.data,r)}function s(e,o){e?n(e):(l=o,l.nlinks-=1,1>l.nlinks?t.delete(l.id,i):t.put(l.id,l,r))}function c(e,r){e?n(e):(f=r,P(f).has(d)?t.get(f[d].id,s):n(new G("a component of the path does not name an existing file")))}function a(e,r){e?n(e):(u=r,t.get(u.data,c))}e=q(e);var u,f,l,d=X(e),h=U(e);o(t,h,a)}function y(t,e,n){function r(t,e){if(t)n(t);else{c=e;var r=Object.keys(c);n(null,r)}}function i(e,i){e?n(e):(s=i,t.get(s.data,r))}e=q(e),X(e);var s,c;o(t,e,i)}function _(t,n,i,s){function c(e,n){e?s(e):(l=n,t.get(l.data,a))}function a(t,e){t?s(t):(d=e,P(d).has(p)?s(new Q("the destination path already exists")):u())}function u(){h=new r(void 0,fe),h.nlinks+=1,h.size=n.length,h.data=n,t.put(h.id,h,f)}function f(n){n?s(n):(d[p]=new e(h.id,fe),t.put(l.data,d,s))}i=q(i);var l,d,h,p=X(i),g=U(i);le==p?s(new Q("the destination path already exists")):o(t,g,c)}function m(t,e,n){function r(e,r){e?n(e):(c=r,t.get(c.data,i))}function i(e,r){e?n(e):(a=r,P(a).has(u)?t.get(a[u].id,s):n(new G("a component of the path does not name an existing file")))}function s(t,e){t?n(t):e.mode!=fe?n(new ne("path not a symbolic link")):n(null,e.data)}e=q(e);var c,a,u=X(e),f=U(e);o(t,f,r)}function w(t){return P(Ee).has(t)?Ee[t]:null}function x(t,e){if(-1!==(""+t).indexOf("\0")){var n=Error("Path must be a string without null bytes.");return e(n),!1}return!0}function E(t){return"function"==typeof t?t:function(t){if(t)throw t}}function b(t,e){function n(){l.forEach(function(t){t.call(this)}.bind(a)),l=null}t=t||{},e=e||$;var r=t.name||se,i=t.flags,o=t.provider||new be.Default(r),c=P(i).contains(ce),a=this;a.readyState=ge,a.name=r,a.error=null;var u={},f=1;Object.defineProperty(this,"openFiles",{get:function(){return u}}),this.allocDescriptor=function(t){var e=f++;return u[e]=t,e},this.releaseDescriptor=function(t){delete u[t]};var l=[];this.queueOrRun=function(t){var e;return pe==a.readyState?t.call(a):ve==a.readyState?e=new oe("unknown error"):l.push(t),e},o.open(function(t,r){function i(t){a.provider=o,t?a.readyState=ve:(a.readyState=pe,n()),e(t)}if(t)return i(t);if(!c&&!r)return i(null);var u=o.getReadWriteContext();u.clear(function(t){return t?(i(t),void 0):(s(u,i),void 0)})})}function S(t,e,r,i,o){function s(e,r){if(e)o(e);else{var s;s=P(i).contains(xe)?r.size:0;var c=new n(r.id,i,s),a=t.allocDescriptor(c);o(null,a)}}x(r,o)&&(i=w(i),i||o(new ne("flags is not valid")),u(e,r,i,s))}function k(t,e,n){P(t.openFiles).has(e)?(t.releaseDescriptor(e),n(null)):n(new ee("invalid file descriptor"))}function B(t,e,n){function r(t){t?n(t):n(null)}x(e,n)&&c(t,e,r)}function O(t,e,n){function r(t){t?n(t):n(null)}x(e,n)&&a(t,e,r)}function D(t,e,n,r){function o(t,n){if(t)r(t);else{var o=new i(n,e);r(null,o)}}x(n,r)&&d(t,n,o)}function C(t,e,n,r){function o(e,n){if(e)r(e);else{var o=new i(n,t.name);r(null,o)}}var s=t.openFiles[n];s?h(e,s,o):r(new ee("invalid file descriptor"))}function R(t,e,n,r){function i(t){t?r(t):r(null)}x(e,r)&&x(n,r)&&g(t,e,n,i)}function z(t,e,n){function r(t){t?n(t):n(null)}x(e,n)&&v(t,e,r)}function M(t,e,n,r,i,o,s,c){function a(t,e){t?c(t):c(null,e)}i=void 0===i?0:i,o=void 0===o?r.length-i:o;var u=t.openFiles[n];u?P(u.flags).contains(ye)?l(e,u,r,i,o,s,a):c(new ee("descriptor does not permit reading")):c(new ee("invalid file descriptor"))}function A(t,e,r,o,s){if(o?"function"==typeof o?o={encoding:null,flag:"r"}:"string"==typeof o&&(o={encoding:o,flag:"r"}):o={encoding:null,flag:"r"},x(r,s)){var c=w(o.flag||"r");c||s(new ne("flags is not valid")),u(e,r,c,function(r,a){if(r)return s(r);var u=new n(a.id,c,0),f=t.allocDescriptor(u);h(e,u,function(n,r){if(n)return s(n);var c=new i(r,t.name),a=c.size,d=new Uint8Array(a);l(e,u,d,0,a,0,function(e){if(e)return s(e);t.releaseDescriptor(f);var n;n="utf8"===o.encoding?new TextDecoder("utf-8").decode(d):d,s(null,n)})})})}}function I(t,e,n,r,i,o,s,c){function a(t,e){t?c(t):c(null,e)}i=void 0===i?0:i,o=void 0===o?r.length-i:o;var u=t.openFiles[n];u?P(u.flags).contains(_e)?o>r.length-i?c(new re("intput buffer is too small")):f(e,u,r,i,o,s,a):c(new ee("descriptor does not permit writing")):c(new ee("invalid file descriptor"))}function F(t,e,r,i,o,s){if(o?"function"==typeof o?o={encoding:"utf8",flag:"w"}:"string"==typeof o&&(o={encoding:o,flag:"w"}):o={encoding:"utf8",flag:"w"},x(r,s)){var c=w(o.flag||"w");c||s(new ne("flags is not valid")),i=i||"","number"==typeof i&&(i=""+i),"string"==typeof i&&"utf8"===o.encoding&&(i=new TextEncoder("utf-8").encode(i)),u(e,r,c,function(r,o){if(r)return s(r);var a=new n(o.id,c,0),u=t.allocDescriptor(a);f(e,a,i,0,i.length,0,function(e){return e?s(e):(t.releaseDescriptor(u),s(null),void 0)})})}}function j(t,e,n,r,i,o){function s(t,e){t?o(t):0>e.size+r?o(new ne("resulting file offset would be negative")):(c.position=e.size+r,o(null,c.position))}var c=t.openFiles[n];c||o(new ee("invalid file descriptor")),"SET"===i?0>r?o(new ne("resulting file offset would be negative")):(c.position=r,o(null,c.position)):"CUR"===i?0>c.position+r?o(new ne("resulting file offset would be negative")):(c.position+=r,o(null,c.position)):"END"===i?h(e,c,s):o(new ne("whence argument is not a proper value"))}function T(t,e,n){function r(t,e){t?n(t):n(null,e)}x(e,n)&&y(t,e,r)}function N(t,e,n,r){function i(t){t?r(t):r(null)}function o(n){n?r(n):v(t,e,i)}x(e,r)&&x(n,r)&&g(t,e,n,o)}function L(t,e,n,r){function i(t){t?r(t):r(null)}x(e,r)&&x(n,r)&&_(t,e,n,i)}function W(t,e,n){function r(t,e){t?n(t):n(null,e)}x(e,n)&&m(t,e,r)}function H(t,e,n,r){function o(e,n){if(e)r(e);else{var o=new i(n,t.name);r(null,o)}}x(n,r)&&p(e,n,o)}var P=t("nodash");t("encoding");var q=t("src/path").normalize,U=t("src/path").dirname,X=t("src/path").basename,K=t("src/shared").guid,Y=t("src/shared").hash,$=t("src/shared").nop,Q=t("src/error").EExists,V=t("src/error").EIsDirectory,G=t("src/error").ENoEntry,J=t("src/error").EBusy,Z=t("src/error").ENotEmpty,te=t("src/error").ENotDirectory,ee=t("src/error").EBadFileDescriptor;t("src/error").ENotImplemented,t("src/error").ENotMounted;var ne=t("src/error").EInvalid,re=t("src/error").EIO,ie=t("src/error").ELoop,oe=t("src/error").EFileSystemError,se=t("src/constants").FILE_SYSTEM_NAME,ce=t("src/constants").FS_FORMAT,ae=t("src/constants").MODE_FILE,ue=t("src/constants").MODE_DIRECTORY,fe=t("src/constants").MODE_SYMBOLIC_LINK,le=t("src/constants").ROOT_DIRECTORY_NAME,de=t("src/constants").ROOT_NODE_ID,he=t("src/constants").SYMLOOP_MAX,pe=t("src/constants").FS_READY,ge=t("src/constants").FS_PENDING,ve=t("src/constants").FS_ERROR,ye=t("src/constants").O_READ,_e=t("src/constants").O_WRITE,me=t("src/constants").O_CREATE,we=t("src/constants").O_EXCLUSIVE;t("src/constants").O_TRUNCATE;var xe=t("src/constants").O_APPEND,Ee=t("src/constants").O_FLAGS,be=t("src/providers/providers"),Se=t("src/adapters/adapters");return b.providers=be,b.adapters=Se,b.prototype.open=function(t,e,n,r){r=E(arguments[arguments.length-1]);var i=this,o=i.queueOrRun(function(){var n=i.provider.getReadWriteContext();S(i,n,t,e,r)});o&&r(o)},b.prototype.close=function(t,e){k(this,t,E(e))},b.prototype.mkdir=function(t,e,n){"function"==typeof e&&(n=e),n=E(n);var r=this,i=r.queueOrRun(function(){var e=r.provider.getReadWriteContext();B(e,t,n)});i&&n(i)},b.prototype.rmdir=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();O(r,t,e)});r&&e(r)},b.prototype.stat=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();D(r,n.name,t,e)});r&&e(r)},b.prototype.fstat=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();C(n,r,t,e)});r&&e(r)},b.prototype.link=function(t,e,n){n=E(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();R(i,t,e,n)});i&&n(i)},b.prototype.unlink=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();z(r,t,e)});r&&e(r)},b.prototype.read=function(t,e,n,r,i,o){function s(t,n){o(t,n||0,e)}o=E(o);var c=this,a=c.queueOrRun(function(){var o=c.provider.getReadWriteContext();M(c,o,t,e,n,r,i,s)});a&&o(a)},b.prototype.readFile=function(t,e){var n=E(arguments[arguments.length-1]),r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();A(r,i,t,e,n)});i&&n(i)},b.prototype.write=function(t,e,n,r,i,o){o=E(o);var s=this,c=s.queueOrRun(function(){var c=s.provider.getReadWriteContext();I(s,c,t,e,n,r,i,o)});c&&o(c)},b.prototype.writeFile=function(t,e,n){var r=E(arguments[arguments.length-1]),i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();F(i,o,t,e,n,r)});o&&r(o)},b.prototype.lseek=function(t,e,n,r){r=E(r);var i=this,o=i.queueOrRun(function(){var o=i.provider.getReadWriteContext();j(i,o,t,e,n,r)});o&&r(o)},b.prototype.readdir=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();T(r,t,e)});r&&e(r)},b.prototype.rename=function(t,e,n){n=E(n);var r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();N(i,t,e,n)});i&&n(i)},b.prototype.readlink=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();W(r,t,e)});r&&e(r)},b.prototype.symlink=function(t,e){var n=E(arguments[arguments.length-1]),r=this,i=r.queueOrRun(function(){var i=r.provider.getReadWriteContext();L(i,t,e,n)});i&&n(i)},b.prototype.lstat=function(t,e){e=E(e);var n=this,r=n.queueOrRun(function(){var r=n.provider.getReadWriteContext();H(n,r,t,e)});r&&e(r)},{FileSystem:b,Path:t("src/path")}});var i=e("src/fs");return i});