// transit-js 0.8.746 // http://transit-format.org // // Copyright 2014 Cognitect. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS-IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License.. ;(function(){var aa=this; function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"== b&&"undefined"==typeof a.call)return"object";return b}function k(a,b){var c=a.split("."),d=aa;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b};function l(a,b){this.k=a|0;this.e=b|0}var ca={};function m(a){if(-128<=a&&128>a){var b=ca[a];if(b)return b}b=new l(a|0,0>a?-1:0);-128<=a&&128>a&&(ca[a]=b);return b}function n(a){return isNaN(a)||!isFinite(a)?p:a<=-da?q:a+1>=da?ea:0>a?r(n(-a)):new l(a%s|0,a/s|0)}function t(a,b){return new l(a,b)} function fa(a,b){if(0==a.length)throw Error("number format error: empty string");var c=b||10;if(2>c||36g?(g=n(Math.pow(c,g)),e=e.multiply(g).add(n(h))):(e=e.multiply(d),e=e.add(n(h)))}return e} var s=4294967296,da=s*s/2,p=m(0),v=m(1),ga=m(-1),ea=t(-1,2147483647),q=t(0,-2147483648),ha=m(16777216);function w(a){return a.e*s+(0<=a.k?a.k:s+a.k)} l.prototype.toString=function(a){a=a||10;if(2>a||36this.e){if(y(this,q)){var b=n(a),c=z(this,b),b=A(c.multiply(b),this);return c.toString(a)+b.k.toString(a)}return"-"+r(this).toString(a)}for(var c=n(Math.pow(a,6)),b=this,d="";;){var e=z(b,c),f=A(b,e.multiply(c)).k.toString(a),b=e;if(x(b))return f+d;for(;6>f.length;)f="0"+f;d=""+f+d}};function x(a){return 0==a.e&&0==a.k}function y(a,b){return a.e==b.e&&a.k==b.k} l.prototype.compare=function(a){if(y(this,a))return 0;var b=0>this.e,c=0>a.e;return b&&!c?-1:!b&&c?1:0>A(this,a).e?-1:1};function r(a){return y(a,q)?q:t(~a.k,~a.e).add(v)}l.prototype.add=function(a){var b=this.e>>>16,c=this.e&65535,d=this.k>>>16,e=a.e>>>16,f=a.e&65535,g=a.k>>>16,h;h=0+((this.k&65535)+(a.k&65535));a=0+(h>>>16);a+=d+g;d=0+(a>>>16);d+=c+f;c=0+(d>>>16);c=c+(b+e)&65535;return t((a&65535)<<16|h&65535,c<<16|d&65535)};function A(a,b){return a.add(r(b))} l.prototype.multiply=function(a){if(x(this)||x(a))return p;if(y(this,q))return 1==(a.k&1)?q:p;if(y(a,q))return 1==(this.k&1)?q:p;if(0>this.e)return 0>a.e?r(this).multiply(r(a)):r(r(this).multiply(a));if(0>a.e)return r(this.multiply(r(a)));if(0>this.compare(ha)&&0>a.compare(ha))return n(w(this)*w(a));var b=this.e>>>16,c=this.e&65535,d=this.k>>>16,e=this.k&65535,f=a.e>>>16,g=a.e&65535,h=a.k>>>16;a=a.k&65535;var J,u,D,va;va=0+e*a;D=0+(va>>>16);D+=d*a;u=0+(D>>>16);D=(D&65535)+e*h;u+=D>>>16;D&=65535;u+= c*a;J=0+(u>>>16);u=(u&65535)+d*h;J+=u>>>16;u&=65535;u+=e*g;J+=u>>>16;u&=65535;J=J+(b*a+c*h+d*g+e*f)&65535;return t(D<<16|va&65535,J<<16|u)}; function z(a,b){if(x(b))throw Error("division by zero");if(x(a))return p;if(y(a,q)){if(y(b,v)||y(b,ga))return q;if(y(b,q))return v;var c;c=1;if(0==c)c=a;else{var d=a.e;c=32>c?t(a.k>>>c|d<<32-c,d>>c):t(d>>c-32,0<=d?0:-1)}c=z(c,b).shiftLeft(1);if(y(c,p))return 0>b.e?v:ga;d=A(a,b.multiply(c));return c.add(z(d,b))}if(y(b,q))return p;if(0>a.e)return 0>b.e?z(r(a),r(b)):r(z(r(a),b));if(0>b.e)return r(z(a,r(b)));for(var e=p,d=a;0<=d.compare(b);){c=Math.max(1,Math.floor(w(d)/w(b)));for(var f=Math.ceil(Math.log(c)/ Math.LN2),f=48>=f?1:Math.pow(2,f-48),g=n(c),h=g.multiply(b);0>h.e||0a?t(b<>>32-a):t(0,b<b?t(a.k>>>b|c<<32-b,c>>>b):32==b?t(c,0):t(c>>>b-32,0)};var B="undefined"!=typeof Object.keys?function(a){return Object.keys(a)}:function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},C="undefined"!=typeof Array.isArray?function(a){return Array.isArray(a)}:function(a){return"array"===ba(a)};function E(){return Math.round(15*Math.random()).toString(16)};var ja=1;function F(a,b){if(null==a)return null==b;if(a===b)return!0;if("object"===typeof a){if(C(a)){if(C(b)&&a.length===b.length){for(var c=0;c>2)}var la={},ma=0; function na(a){var b=0;if(null!=a.forEach)a.forEach(function(a,c){b=(b+(G(c)^G(a)))%4503599627370496});else for(var c=B(a),d=0;da.compare(ra)?a:w(a)}l.prototype.B=function(a){return F(this,a)};l.prototype.equiv=l.prototype.B;l.prototype.s=function(a){return a instanceof l&&y(this,a)};l.prototype.w=function(){return this.k};function ta(a){return I("n",a)}function ua(a){return I("f",a)}function K(a){this.name=a;this.g=-1}K.prototype.toString=function(){return":"+this.name};K.prototype.B=function(a){return F(this,a)}; K.prototype.equiv=K.prototype.B;K.prototype.s=function(a){return a instanceof K&&this.name==a.name};K.prototype.w=function(){-1===this.g&&(this.g=G(this.name));return this.g};function wa(a){return new K(a)}function L(a){this.name=a;this.g=-1}L.prototype.toString=function(){return"[Symbol: "+this.name+"]"};L.prototype.B=function(a){return F(this,a)};L.prototype.equiv=L.prototype.B;L.prototype.s=function(a){return a instanceof L&&this.name==a.name}; L.prototype.w=function(){-1===this.g&&(this.g=G(this.name));return this.g};function xa(a){return new L(a)}function M(a,b,c){var d="";c=c||b+1;for(var e=8*(7-b),f=m(255).shiftLeft(e);bf;f+=2,e-=8)c|=parseInt(a.substring(f,f+2),16)<f;f+=2,e-=8)d|=parseInt(a.substring(f,f+2),16)<f;f+=2,e-=8)c|=parseInt(a.substring(f,f+2),16)<f;f+=2,e-=8)d|=parseInt(a.substring(f,f+2),16)<>(-2*d&6)):0)f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(f);c=h}d=c.length;e=new Uint8Array(d);for(f= 0;fa.size)return!1;a.X++;return 32=a.length){if(b){var d=a;a=[];for(b=0;ba.length&&this.A.fromArray){d=[];for(c=1;cc.length&&this.A.fromArray){var f=[];for(d=0;d=b.length&&a.J.fromArray){f=[];for(e=0;e>8-c%1*8)){b=a.charCodeAt(c+=.75);if(255