(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"); y(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.F=a}else this.F=null;return this};t.fa=function(){return null!=this.F};t.getPath=function(){return this.O};t.setPath=function(a,b){this.m();this.O=b?T(a,!0):a;return this};t.aa=function(){return!!this.O};t.ga=function(){return""!==this.l.toString()};t.V=function(a,b){this.m();a instanceof Q?(this.l=a,this.l.T(this.j)):(b||(a=R(a,na)),this.l=new Q(a,this.j));return this};t.Z=function(){return this.l.toString()}; t.getQuery=function(){return this.Z()};t.oa=function(a,b){this.m();this.l.set(a,b);return this};t.da=function(a){return this.l.get(a)};t.S=function(a,b){this.m();this.I=b?T(a):a;return this};t.ea=function(){return!!this.I};t.removeParameter=function(a){this.m();this.l.remove(a);return this};t.m=function(){if(this.ja)throw Error("Tried to modify a read-only Uri");};t.T=function(a){this.j=a;this.l&&this.l.T(a);return this}; var T=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},R=function(a,b,c){return typeof a===r?(a=encodeURI(a).replace(b,oa),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},oa=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},S=/[#\/\?@]/g,la=/[#\?:]/g,ka=/[#\?]/g,na=/[#\?@]/g,ma=/#/g,Q=function(a,b){this.h=this.g=null;this.v=a||null;this.j=!!b};t=Q.prototype; t.o=function(){if(!this.g&&(this.g=new Map,this.h=0,this.v)){var a=this;ja(this.v,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)})}};t.add=function(a,b){this.o();this.D();a=this.C(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.C(a);return this.g.has(a)?(this.D(),this.h-=this.g.get(a).length,this.g.delete(a)):!1};t.clear=function(){this.D();this.g=null;this.h=0};t.isEmpty=function(){this.o();return 0==this.h}; t.Y=function(a){this.o();a=this.C(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.M=function(){this.o();for(var a=Array.from(this.g.values()),b=Array.from(this.g.keys()),c=[],d=0;d