(function(){var m=function(b){var c=0;return function(){return c<b.length?{done:!1,value:b[c++]}:{done:!0}}},q=function(b){var c="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return c?c.call(b):{next:m(b)}},r=function(b){for(var c,d=[];!(c=b.next()).done;)d.push(c.value);return d};var t=function(b){var c=0,d;for(d in b)c++;return c},u=function(b,c){return null!==b&&c in b},v=function(b,c){c in b&&delete b[c]};var w=function(){this.s=""};w.prototype.toString=function(){return"SafeScript{"+this.s+"}"};w.prototype.b=function(b){this.s=b};(new w).b("");var x=function(){this.v=""};x.prototype.toString=function(){return"SafeStyle{"+this.v+"}"};x.prototype.b=function(b){this.v=b};(new x).b("");var z=function(){this.u=""};z.prototype.toString=function(){return"SafeStyleSheet{"+this.u+"}"};z.prototype.b=function(b){this.u=b};(new z).b("");var A=function(){this.o=""};A.prototype.toString=function(){return"SafeHtml{"+this.o+"}"};A.prototype.b=function(b){this.o=b};(new A).b("<!DOCTYPE html>");(new A).b("");(new A).b("<br>");var B=function(b){b&&b.parentNode&&b.parentNode.removeChild(b)};var D=function(b,c,d,e){var a={w:d,index:e.index,l:e.index};e.j[d]=a;e.i.push(a);e.m[d]=!0;e.index++;d=c[d];for(var g=d.f.length-1;0<=g;g--){var h=d.f[g];u(e.j,h.c)?u(e.m,h.c)&&a.l>e.j[h.c].l&&(B(h.h.a),d.f.splice(g,1)):D(b,c,h.c,e)}if(a.index==a.l)for(;b=e.i[e.i.length-1],v(e.m,b.w),e.i.pop(),b!=a;);},E=function(b,c){b=q(b.childNodes);for(var d=b.next();!d.done;d=b.next())c.appendChild(d.value.cloneNode(!0))};document.addEventListener("DOMContentLoaded",function F(){document.removeEventListener("DOMContentLoaded",F,!1);var c=document,d={},e;if("content"in document.createElement("template")){var a=c.getElementById("gwd-group-definitions");a&&(e=document.importNode(a.content,!0).querySelectorAll("[data-gwd-group-def]"))}e||(e=c.querySelectorAll("[data-gwd-group-def]"));e=q(e);for(a=e.next();!a.done;a=e.next()){a=a.value;var g=a.getAttribute("data-gwd-group-def");g?d[g]?B(a):d[g]={a:a,f:[]}:B(a)}e=[];a=Array.prototype.slice.call(c.querySelectorAll("[data-gwd-group]"));
if("content"in document.createElement("template")&&c.getElementById("gwd-group-definitions"))for(var h in d)g=Array.prototype.slice.call(d[h].a.querySelectorAll("[data-gwd-group]")),0<g.length&&a.push.apply(a,g instanceof Array?g:r(q(g)));h=q(a);for(a=h.next();!a.done;a=h.next()){a=a.value;g=a.childNodes;for(var l=g.length-1;0<=l;l--)8!=g[l].nodeType&&a.removeChild(g[l]);a={a:a,g:a.getAttribute("data-gwd-group")};if(g=d[a.g]){l=a.a.parentNode;for(var C=!1;l&&l!=c;){var y=l.getAttribute("data-gwd-group-def");
if(y&&d[y]){g.f.push({h:a,c:y});C=!0;break}l=l.parentNode}C||e.push(a)}else B(a.a)}h={index:0,j:{},i:[],m:{}};for(var n in d)u(h.j,n)||D(c,d,n,h);c={};for(var f in d)c[f]={};for(var p in d)for(n=q(d[p].f),f=n.next();!f.done;f=n.next())f=c[f.value.c],p in f?f[p]++:f[p]=1;p=[];for(var k in c)0==t(c[k])&&(p.push(k),v(c,k));k=q(p);for(f=k.next();!f.done;f=k.next())for(n=d[f.value],h=q(n.f),f=h.next();!f.done;f=h.next())f=f.value,E(n.a,f.h.a),a=c[f.c],a[f.h.g]--,0==a[f.h.g]&&(v(a,f.h.g),0==t(a)&&(p.push(f.c),
v(c,f.c)));e=q(e);for(k=e.next();!k.done;k=e.next())k=k.value,E(d[k.g].a,k.a)},!1);}).call(this);
