// transit-js 0.8.874 // 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(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ function aa(a){var b=0;return function(){return b>2)}var pa={},qa=0; function ra(a){var b=0;if(null!=a.forEach)a.forEach(function(h,p){b=(b+(v(p)^v(h)))%4503599627370496});else for(var c=n(a),d=0;d>>0)} w.prototype.toString=function(a){a=a||10;if(2>a||36>21;if(0==b||-1==b&&(0!=this.h||-2097152!=this.g))return b=x(this),10==a?""+b:b.toString(a);b=14-(a>>2);var c=Math.pow(a,b),d=y(c,c/4294967296);c=B(this,d);d=Math.abs(x(this.add(C(D(c,d)))));var e=10==a?""+d:d.toString(a);e.length>>0>b.h>>>0?1:-1:a.g>b.g?1:-1}function C(a){var b=~a.h+1|0;return y(b,~a.g+!b|0)}w.prototype.add=function(a){var b=this.g>>>16,c=this.g&65535,d=this.h>>>16,e=a.g>>>16,f=a.g&65535,h=a.h>>>16;a=(this.h&65535)+(a.h&65535);h=(a>>>16)+(d+h);d=h>>>16;d+=c+f;b=(d>>>16)+(b+e)&65535;return y((h&65535)<<16|a&65535,b<<16|d&65535)}; function D(a,b){if(E(a))return a;if(E(b))return b;var c=a.g>>>16,d=a.g&65535,e=a.h>>>16;a=a.h&65535;var f=b.g>>>16,h=b.g&65535,p=b.h>>>16;b=b.h&65535;var z=a*b;var A=(z>>>16)+e*b;var F=A>>>16;A=(A&65535)+a*p;F+=A>>>16;F+=d*b;var ia=F>>>16;F=(F&65535)+e*p;ia+=F>>>16;F=(F&65535)+a*h;ia=ia+(F>>>16)+(c*b+d*p+e*h+a*f)&65535;return y((A&65535)<<16|z&65535,ia<<16|F&65535)} function B(a,b){if(E(b))throw Error("division by zero");if(0>a.g){if(G(a,H)){if(G(b,ua)||G(b,va))return H;if(G(b,H))return ua;var c=1;if(0==c)c=a;else{var d=a.g;c=32>c?y(a.h>>>c|d<<32-c,d>>c):y(d>>c-32,0<=d?0:-1)}c=wa(B(c,b),1);if(G(c,I))return 0>b.g?ua:va;a=a.add(C(D(b,c)));return c.add(B(a,b))}return 0>b.g?B(C(a),C(b)):C(B(C(a),b))}if(E(a))return I;if(0>b.g)return G(b,H)?I:C(B(a,C(b)));for(d=I;0<=ta(a,b);){c=Math.max(1,Math.floor(x(a)/x(b)));var e=Math.ceil(Math.log(c)/Math.LN2);e=48>=e?1:Math.pow(2, e-48);for(var f=J(c),h=D(f,b);0>h.g||0b?y(c<>>32-b):y(0,c<b?y(a.h>>>b|c<<32-b,c>>>b):32==b?y(c,0):y(c>>>b-32,0)}function J(a){return 0a?-9223372036854775808>=a?H:C(new w(-a,-a/4294967296)):I}function y(a,b){return new w(a,b)} function za(a,b){if("-"==a.charAt(0))return C(za(a.substring(1),b));var c=parseInt(a,b||10);if(9007199254740991>=c)return new w(c%4294967296|0,c/4294967296|0);if(0==a.length)throw Error("number format error: empty string");if(0<=a.indexOf("-"))throw Error('number format error: interior "-" character: '+a);b=b||10;if(2>b||36f?d=D(d,J(Math.pow(b, f))).add(J(h)):(d=D(d,c),d=d.add(J(h)))}return d}var I=y(0,0),ua=y(1,0),va=y(-1,-1),ya=y(4294967295,2147483647),H=y(0,2147483648);var Aa="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function K(a,b){this.tag=a;this.rep=b;this.g=-1}K.prototype.toString=function(){return"[TaggedValue: "+this.tag+", "+this.rep+"]"};K.prototype.h=function(a){return u(this,a)};K.prototype.equiv=K.prototype.h;K.prototype.C=function(a){return a instanceof K?this.tag===a.tag&&u(this.rep,a.rep):!1};K.prototype.D=function(){-1===this.g&&(this.g=oa(v(this.tag),v(this.rep)));return this.g};function L(a,b){return new K(a,b)} var Ba=za("9007199254740991"),Ca=za("-9007199254740991");function Da(a){if("number"===typeof a)return a;if(a instanceof w)return a;a=za(a,10);var b;(b=0ta(a,Ca));return b?a:x(a)}w.prototype.v=function(a){return u(this,a)};w.prototype.equiv=w.prototype.v;w.prototype.C=function(a){return a instanceof w&&G(this,a)};w.prototype.D=function(){return this.h};function Ea(a){return L("n",a)}function Fa(a){return L("f",a)}function M(a){this.s=a;this.g=-1} M.prototype.toString=function(){return":"+this.s};M.prototype.namespace=function(){var a=this.s.indexOf("/");return-1!=a?this.s.substring(0,a):null};M.prototype.name=function(){var a=this.s.indexOf("/");return-1!=a?this.s.substring(a+1,this.s.length):this.s};M.prototype.h=function(a){return u(this,a)};M.prototype.equiv=M.prototype.h;M.prototype.C=function(a){return a instanceof M&&this.s==a.s};M.prototype.D=function(){-1===this.g&&(this.g=v(this.s));return this.g};function Ga(a){return new M(a)} function N(a){this.s=a;this.g=-1}N.prototype.namespace=function(){var a=this.s.indexOf("/");return-1!=a?this.s.substring(0,a):null};N.prototype.name=function(){var a=this.s.indexOf("/");return-1!=a?this.s.substring(a+1,this.s.length):this.s};N.prototype.toString=function(){return this.s};N.prototype.h=function(a){return u(this,a)};N.prototype.equiv=N.prototype.h;N.prototype.C=function(a){return a instanceof N&&this.s==a.s};N.prototype.D=function(){-1===this.g&&(this.g=v(this.s));return this.g}; function Ha(a){return new N(a)}function Ia(a,b,c){var d="";c=c||b+1;for(var e=8*(7-b),f=wa(new w(255,0),e);bd;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)e|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)b|=parseInt(a.substring(d,d+2),16)<d;d+=2,c-=8)e|=parseInt(a.substring(d,d+2),16)<>(-2*b&6)):0)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(d);c=f}a=c.length;b=new Uint8Array(a);for(d=0;d< a;d++)b[d]=c.charCodeAt(d);c=b}else c=L("b",a);else c=new l.g(a,"base64");return c}function Ma(a){return L("r",a)}function P(a,b){this.entries=a;this.type=b||0;this.o=0}P.prototype.next=function(){if(this.o "+Qa(d);ba.size)return!1;a.h++;return 32=a.length){if(b){var d=a;a=[];for(b=0;ba.length&&this.h.fromArray){d=[];for(c=1;cc.length&&this.h.fromArray){var f=[];for(d=0;d=b.length&&a.F.fromArray){f=[];for(e=0;e>8-d%1*8)){c=a.charCodeAt(d+=.75);if(255