(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var l="Symbol.iterator",p="function",q="object",r="string",t,u=function(a){var b=0;return function(){return b>>0)+"_",d=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(h||"")+"_"+d++,h)};return e},"es6","es3"); x(l,function(a){if(a)return a;a=Symbol(l);for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cc?Math.max(0,a.length+c):c;if(typeof a===r)return typeof b!==r||1!=b.length?-1:a.indexOf(b,c);for(;ca)throw Error("Bad port number "+a);this.D=a}else this.D=null;return this};t.da=function(){return null!=this.D};t.getPath=function(){return this.M};t.setPath=function(a,b){this.m();this.M=b?V(a,!0):a;return this};t.Y=function(){return!!this.M};t.ea=function(){return""!==this.l.toString()};t.T=function(a,b){this.m();a instanceof T?(this.l=a,this.l.R(this.j)):(b||(a=U(a,sa)),this.l=new T(a,this.j));return this};t.X=function(){return this.l.toString()}; t.getQuery=function(){return this.X()};t.ma=function(a,b){this.m();this.l.set(a,b);return this};t.ba=function(a){return this.l.get(a)};t.P=function(a,b){this.m();this.G=b?V(a):a;return this};t.ca=function(){return!!this.G};t.removeParameter=function(a){this.m();this.l.remove(a);return this};t.m=function(){if(this.ha)throw Error("Tried to modify a read-only Uri");};t.R=function(a){this.j=a;this.l&&this.l.R(a);return this}; var V=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},U=function(a,b,c){return typeof a===r?(a=encodeURI(a).replace(b,ta),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},ta=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},oa=/[#\/\?@]/g,qa=/[#\?:]/g,pa=/[#\?]/g,sa=/[#\?@]/g,ra=/#/g,T=function(a,b){this.h=this.g=null;this.u=a||null;this.j=!!b};t=T.prototype; t.o=function(){if(!this.g&&(this.g=new Map,this.h=0,this.u)){var a=this;na(this.u,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};t.add=function(a,b){this.o();this.C();a=this.B(a);var c=this.g.get(a);c||this.g.set(a,c=[]);c.push(b);this.h+=1;return this};t.remove=function(a){this.o();a=this.B(a);return this.g.has(a)?(this.C(),this.h-=this.g.get(a).length,this.g.delete(a)):!1};t.clear=function(){this.C();this.g=null;this.h=0};t.isEmpty=function(){this.o();return 0==this.h}; t.W=function(a){this.o();a=this.B(a);return this.g.has(a)};t.forEach=function(a,b){this.o();this.g.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};t.K=function(){this.o();for(var a=Array.from(this.g.values()),b=Array.from(this.g.keys()),c=[],d=0;d