@mantou/gem 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/gem.es.js +1845 -1904
  2. package/dist/gem.umd.js +34 -191
  3. package/elements/base/dialog.d.ts +0 -4
  4. package/elements/base/dialog.d.ts.map +1 -1
  5. package/elements/base/dialog.js +0 -4
  6. package/elements/base/dialog.js.map +1 -1
  7. package/elements/base/gesture.d.ts +4 -14
  8. package/elements/base/gesture.d.ts.map +1 -1
  9. package/elements/base/gesture.js +34 -37
  10. package/elements/base/gesture.js.map +1 -1
  11. package/elements/base/link.d.ts +2 -19
  12. package/elements/base/link.d.ts.map +1 -1
  13. package/elements/base/link.js +29 -42
  14. package/elements/base/link.js.map +1 -1
  15. package/elements/base/modal-factory.d.ts +32 -33
  16. package/elements/base/modal-factory.d.ts.map +1 -1
  17. package/elements/base/reflect.d.ts +0 -3
  18. package/elements/base/reflect.d.ts.map +1 -1
  19. package/elements/base/reflect.js +0 -3
  20. package/elements/base/reflect.js.map +1 -1
  21. package/elements/base/route.d.ts +0 -10
  22. package/elements/base/route.d.ts.map +1 -1
  23. package/elements/base/route.js +10 -22
  24. package/elements/base/route.js.map +1 -1
  25. package/elements/base/title.d.ts +0 -6
  26. package/elements/base/title.d.ts.map +1 -1
  27. package/elements/base/title.js +13 -8
  28. package/elements/base/title.js.map +1 -1
  29. package/elements/base/unsafe.d.ts +1 -6
  30. package/elements/base/unsafe.d.ts.map +1 -1
  31. package/elements/base/unsafe.js +12 -12
  32. package/elements/base/unsafe.js.map +1 -1
  33. package/elements/base/use.d.ts +0 -4
  34. package/elements/base/use.d.ts.map +1 -1
  35. package/elements/base/use.js +15 -13
  36. package/elements/base/use.js.map +1 -1
  37. package/helper/theme.d.ts +3 -3
  38. package/helper/theme.d.ts.map +1 -1
  39. package/helper/theme.js +3 -3
  40. package/helper/theme.js.map +1 -1
  41. package/index.d.ts +0 -1
  42. package/index.d.ts.map +1 -1
  43. package/index.js +0 -1
  44. package/index.js.map +1 -1
  45. package/lib/decorators.d.ts +7 -6
  46. package/lib/decorators.d.ts.map +1 -1
  47. package/lib/decorators.js +48 -33
  48. package/lib/decorators.js.map +1 -1
  49. package/lib/directive.d.ts +83 -0
  50. package/lib/directive.d.ts.map +1 -0
  51. package/lib/directive.js +59 -0
  52. package/lib/directive.js.map +1 -0
  53. package/lib/element.d.ts +9 -23
  54. package/lib/element.d.ts.map +1 -1
  55. package/lib/element.js +61 -56
  56. package/lib/element.js.map +1 -1
  57. package/lib/lit-html.d.ts +331 -0
  58. package/lib/lit-html.d.ts.map +1 -0
  59. package/lib/lit-html.js +941 -0
  60. package/lib/lit-html.js.map +1 -0
  61. package/lib/ref.d.ts +1 -0
  62. package/lib/ref.d.ts.map +1 -0
  63. package/lib/ref.js +2 -0
  64. package/lib/ref.js.map +1 -0
  65. package/lib/repeat.d.ts +126 -0
  66. package/lib/repeat.d.ts.map +1 -0
  67. package/lib/repeat.js +533 -0
  68. package/lib/repeat.js.map +1 -0
  69. package/lib/store.d.ts +1 -1
  70. package/lib/store.d.ts.map +1 -1
  71. package/lib/store.js +4 -4
  72. package/lib/store.js.map +1 -1
  73. package/lib/utils.d.ts +1 -4
  74. package/lib/utils.d.ts.map +1 -1
  75. package/lib/utils.js +6 -15
  76. package/lib/utils.js.map +1 -1
  77. package/package.json +7 -9
  78. package/src/elements/base/dialog.ts +0 -4
  79. package/src/elements/base/gesture.ts +32 -35
  80. package/src/elements/base/link.ts +21 -41
  81. package/src/elements/base/reflect.ts +0 -3
  82. package/src/elements/base/route.ts +11 -21
  83. package/src/elements/base/title.ts +3 -7
  84. package/src/elements/base/unsafe.ts +9 -11
  85. package/src/elements/base/use.ts +8 -14
  86. package/src/helper/theme.ts +4 -4
  87. package/src/index.ts +0 -1
  88. package/src/lib/decorators.ts +53 -40
  89. package/src/lib/directive.ts +139 -0
  90. package/src/lib/element.ts +70 -79
  91. package/src/lib/lit-html.ts +1217 -0
  92. package/src/lib/repeat.ts +580 -0
  93. package/src/lib/store.ts +4 -4
  94. package/src/lib/utils.ts +6 -16
  95. package/src/test/elements/link.test.ts +1 -2
  96. package/src/test/elements/reflect.test.ts +13 -3
  97. package/src/test/elements/title.test.ts +1 -2
  98. package/src/test/gem-element/advance.test.ts +15 -8
  99. package/src/test/gem-element/basic.test.ts +22 -10
  100. package/src/test/gem-element/decorators.test.ts +6 -9
  101. package/src/test/gem-element/multi.test.ts +20 -11
  102. package/src/test/history.test.ts +2 -2
  103. package/src/test/store.test.ts +3 -3
  104. package/src/test/utils.test.ts +9 -10
  105. package/src/test/utils.ts +22 -0
  106. package/LICENSE +0 -21
  107. package/src/lib/directives.ts +0 -6
package/dist/gem.umd.js CHANGED
@@ -1,180 +1,30 @@
1
- (function(h,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(h=typeof globalThis<"u"?globalThis:h||self,M(h.Gem={}))})(this,function(h){"use strict";var Yl=Object.defineProperty;var Va=h=>{throw TypeError(h)};var Xl=(h,M,R)=>M in h?Yl(h,M,{enumerable:!0,configurable:!0,writable:!0,value:R}):h[M]=R;var A=(h,M,R)=>Xl(h,typeof M!="symbol"?M+"":M,R),bs=(h,M,R)=>M.has(h)||Va("Cannot "+R);var p=(h,M,R)=>(bs(h,M,"read from private field"),R?R.call(h):M.get(h)),C=(h,M,R)=>M.has(h)?Va("Cannot add the same private member more than once"):M instanceof WeakSet?M.add(h):M.set(h,R),O=(h,M,R,yt)=>(bs(h,M,"write to private field"),yt?yt.call(h,R):M.set(h,R),R),Cs=(h,M,R)=>(bs(h,M,"access private method"),R);var Rt,gt,It,cn,Ps,ue,Wn,ut,Dt,ln,de,fe,pe,_e,et,mt,Ft,vt,ge,wt,me,ve,hn,ct,$e,ks,Gn,xn,un,we,qt,zn,Vn,Dn,dn,ye,H,Fn,qa,Ua,pn,qn,fn;const M=Object.freeze(Object.defineProperty({__proto__:null,get adoptedStyle(){return En},get aria(){return Ie},get async(){return fr},get attribute(){return D},get boolattribute(){return Ne},get connectStore(){return Re},get customElement(){return pr},get effect(){return dt},get emitter(){return Jt},get fallback(){return cr},get globalemitter(){return ur},get light(){return hi},get memo(){return ai},get mounted(){return Kt},get numattribute(){return or},get part(){return li},get property(){return U},get shadow(){return Tt},get slot(){return hr},get state(){return Ae},get template(){return ci},get unmounted(){return ar},get willMount(){return $n}},Symbol.toStringTag,{value:"Module"}));/**
1
+ (function(d,O){typeof exports=="object"&&typeof module<"u"?O(exports):typeof define=="function"&&define.amd?define(["exports"],O):(d=typeof globalThis<"u"?globalThis:d||self,O(d.Gem={}))})(this,function(d){"use strict";var Cl=Object.defineProperty;var nc=d=>{throw TypeError(d)};var bl=(d,O,z)=>O in d?Cl(d,O,{enumerable:!0,configurable:!0,writable:!0,value:z}):d[O]=z;var $=(d,O,z)=>bl(d,typeof O!="symbol"?O+"":O,z),Ls=(d,O,z)=>O.has(d)||nc("Cannot "+z);var f=(d,O,z)=>(Ls(d,O,"read from private field"),z?z.call(d):O.get(d)),C=(d,O,z)=>O.has(d)?nc("Cannot add the same private member more than once"):O instanceof WeakSet?O.add(d):O.set(d,z),A=(d,O,z,$t)=>(Ls(d,O,"write to private field"),$t?$t.call(d,z):O.set(d,z),z),Ns=(d,O,z)=>(Ls(d,O,"access private method"),z);var At,gt,Lt,_n,Rs,$e,jn,ut,Bt,fn,ye,we,Se,Ee,it,_t,Kt,vt,Ce,ht,be,Te,jt,lt,Oe,Is,Qn,Jn,pn,Pe,Qt,mn,Yn,Zn,gn,ke,W,Xn,rc,oc,$n,ti,vn;const O=Object.freeze(Object.defineProperty({__proto__:null,get adoptedStyle(){return xe},get aria(){return qe},get async(){return kr},get attribute(){return U},get boolattribute(){return Ve},get connectStore(){return Ue},get customElement(){return Mr},get effect(){return pt},get emitter(){return ie},get fallback(){return Er},get globalemitter(){return Tr},get light(){return yi},get memo(){return vi},get mounted(){return ne},get numattribute(){return wr},get part(){return $i},get property(){return B},get shadow(){return bt},get slot(){return br},get state(){return De},get template(){return zt},get unmounted(){return Sr},get willMount(){return An}},Symbol.toStringTag,{value:"Module"}));/**
2
2
  * @license
3
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
4
- * This code may only be used under the BSD style license found at
5
- * http://polymer.github.io/LICENSE.txt
6
- * The complete set of authors may be found at
7
- * http://polymer.github.io/AUTHORS.txt
8
- * The complete set of contributors may be found at
9
- * http://polymer.github.io/CONTRIBUTORS.txt
10
- * Code distributed by Google as part of the polymer project is also
11
- * subject to an additional IP rights grant found at
12
- * http://polymer.github.io/PATENTS.txt
13
- */const R=new WeakMap,yt=e=>(...t)=>{const n=e(...t);return R.set(n,!0),n},Ee=e=>typeof e=="function"&&R.has(e);/**
3
+ * Copyright 2017 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const $t=globalThis.trustedTypes,Hs=$t==null?void 0:$t.createPolicy("lit-html",{createHTML:n=>n}),Ws="$lit$",yt=`lit$${Math.random().toFixed(9).slice(2)}$`,zs="?"+yt,ac=`<${zs}>`,Nt=document,Ae=()=>Nt.createComment(""),Le=n=>n===null||typeof n!="object"&&typeof n!="function",Jt=n=>n==null,cc=n=>Symbol.iterator in n,ei=`[
6
+ \f\r]`,hc=`[^
7
+ \f\r"'\`<>=]`,lc=`[^\\s"'>=/]`,Ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gs=1,ni=2,dc=3,Vs=/-->/g,Ds=/>/g,Rt=new RegExp(`>|${ei}(?:(${lc}+)(${ei}*=${ei}*(?:${hc}|("|')|))|$)`,"g"),uc=0,xs=1,_c=2,Us=3,qs=/'/g,Fs=/"/g,Bs=/^(?:script|style|textarea|title)$/i,ii=1,yn=2,fc=3,pc=4,mc=5,si=6,gc=7;class wn{constructor(t,e,i){$(this,"type");$(this,"strings");$(this,"values");this.type=t,this.strings=e,this.values=i}}const ri=n=>(t,...e)=>new wn(n,t,e),st=ri(0),Ks=ri(1),js=ri(2),oi=Symbol.for("lit-noChange"),Qs=new WeakMap,It=Nt.createTreeWalker(Nt,129);function vc(n,t){if(!Array.isArray(n))throw new Error("invalid template");return Hs!==void 0?Hs.createHTML(t):t}const $c=(n,t)=>{const e=n.length-1,i=[];let s=t===1?"<svg>":t===2?"<math>":"",r,a=Ne;for(let l=0;l<e;l++){const u=n[l];let m=-1,o,g=0,h;for(;g<u.length&&(a.lastIndex=g,h=a.exec(u),h!==null);)g=a.lastIndex,a===Ne?h[Gs]==="!--"?a=Vs:h[Gs]!==void 0?a=Ds:h[ni]!==void 0?(Bs.test(h[ni])&&(r=new RegExp(`</${h[ni]}`,"g")),a=Rt):h[dc]!==void 0&&(a=Rt):a===Rt?h[uc]===">"?(a=r??Ne,m=-1):h[xs]===void 0?m=-2:(m=a.lastIndex-h[_c].length,o=h[xs],a=h[Us]===void 0?Rt:h[Us]==='"'?Fs:qs):a===Fs||a===qs?a=Rt:a===Vs||a===Ds?a=Ne:(a=Rt,r=void 0);const v=a===Rt&&n[l+1].startsWith("/>")?" ":"";s+=a===Ne?u+ac:m>=0?(i.push(o),u.slice(0,m)+Ws+u.slice(m)+yt+v):u+yt+(m===-2?l:v)}const c=s+(n[e]||"<?>")+(t===1?"</svg>":t===2?"</math>":"");return[vc(n,c),i]};class ai{constructor({strings:t,type:e},i){$(this,"el");$(this,"parts",[]);let s,r=0,a=0;const c=t.length-1,l=this.parts,[u,m]=$c(t,e);if(this.el=ai.createElement(u,i),It.currentNode=this.el.content,e===1||e===2){const o=this.el.content.firstChild;o.replaceWith(...o.childNodes)}for(;(s=It.nextNode())!==null&&l.length<c;){if(s.nodeType===1){if(s.hasAttributes())for(const o of s.getAttributeNames())if(o.endsWith(Ws)){const g=m[a++],v=s.getAttribute(o).split(yt),y=/([.?@])?(.*)/.exec(g);l.push({type:ii,index:r,name:y[2],strings:v,ctor:y[1]==="."?wc:y[1]==="?"?Sc:y[1]==="@"?Ec:Sn}),s.removeAttribute(o)}else o.startsWith(yt)&&(l.push({type:si,index:r}),s.removeAttribute(o));if(Bs.test(s.tagName)){const o=s.textContent.split(yt),g=o.length-1;if(g>0){s.textContent=$t?$t.emptyScript:"";for(let h=0;h<g;h++)s.append(o[h],Ae()),It.nextNode(),l.push({type:yn,index:++r});s.append(o[g],Ae())}}}else if(s.nodeType===8)if(s.data===zs)l.push({type:yn,index:r});else{let g=-1;for(;(g=s.data.indexOf(yt,g+1))!==-1;)l.push({type:gc,index:r}),g+=yt.length-1}r++}}static createElement(t,e){const i=Nt.createElement("template");return i.innerHTML=t,i}}function Yt(n,t,e=n,i){var a,c;if(t===oi)return t;let s=i!==void 0?(a=e.__directives)==null?void 0:a[i]:e.__directive;const r=Le(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((c=s==null?void 0:s._$notifyDirectiveConnectionChanged)==null||c.call(s,!1),r===void 0?s=void 0:(s=new r(n),s._$initialize(n,e,i)),i!==void 0?(e.__directives??(e.__directives=[]))[i]=s:e.__directive=s),s!==void 0&&(t=Yt(n,s._$resolve(n,t.values),s,i)),t}class yc{constructor(t,e){$(this,"_$template");$(this,"_$parts",[]);$(this,"_$parent");$(this,"_$disconnectableChildren");this._$template=t,this._$parent=e}get parentNode(){return this._$parent.parentNode}get _$isConnected(){return this._$parent._$isConnected}_clone(t){const{el:{content:e},parts:i}=this._$template,s=((t==null?void 0:t.creationScope)??Nt).importNode(e,!0);It.currentNode=s;let r=It.nextNode(),a=0,c=0,l=i[0];for(;l!==void 0;){if(a===l.index){let u;l.type===yn?u=new Re(r,r.nextSibling,this,t):l.type===ii?u=new l.ctor(r,l.name,l.strings,this,t):l.type===si&&(u=new Cc(r,this,t)),this._$parts.push(u),l=i[++c]}a!==(l==null?void 0:l.index)&&(r=It.nextNode(),a++)}return It.currentNode=Nt,s}_update(t){let e=0;for(const i of this._$parts)i!==void 0&&(i.strings!==void 0?(i._$setValue(t,i,e),e+=i.strings.length-2):i._$setValue(t[e])),e++}}class Re{constructor(t,e,i,s){$(this,"type",yn);$(this,"options");$(this,"_$committedValue");$(this,"__directive");$(this,"_$startNode");$(this,"_$endNode");$(this,"_$parent");$(this,"__isConnected");$(this,"_$disconnectableChildren");this._$startNode=t,this._$endNode=e,this._$parent=i,this.options=s,this.__isConnected=(s==null?void 0:s.isConnected)??!0}get _$isConnected(){var t;return((t=this._$parent)==null?void 0:t._$isConnected)??this.__isConnected}get parentNode(){let t=this._$startNode.parentNode;const e=this._$parent;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$startNode}get endNode(){return this._$endNode}_$setValue(t,e=this){this.parentNode&&(t=Yt(this,t,e),Le(t)?Jt(t)||t===""?(Jt(this._$committedValue)||this._$clear(),this._$committedValue=void 0):t!==this._$committedValue&&t!==oi&&this._commitText(t):t instanceof wn?this._commitTemplateResult(t):t.nodeType!==void 0?this._commitNode(t):cc(t)?this._commitIterable(t):this._commitText(t))}_insert(t){return this._$startNode.parentNode.insertBefore(t,this._$endNode)}_commitNode(t){this._$committedValue!==t&&(this._$clear(),this._$committedValue=this._insert(t))}_commitText(t){if(!Jt(this._$committedValue)&&Le(this._$committedValue)){const e=this._$startNode.nextSibling;e.data=t}else this._commitNode(Nt.createTextNode(t));this._$committedValue=t}_commitTemplateResult(t){var s;const{values:e}=t,i=this._$getTemplate(t);if(((s=this._$committedValue)==null?void 0:s._$template)===i)this._$committedValue._update(e);else{const r=new yc(i,this),a=r._clone(this.options);r._update(e),this._commitNode(a),this._$committedValue=r}}_$getTemplate(t){let e=Qs.get(t.strings);return e===void 0&&Qs.set(t.strings,e=new ai(t)),e}_commitIterable(t){Array.isArray(this._$committedValue)||(this._$committedValue=[],this._$clear());const e=this._$committedValue;let i=0,s;for(const r of t)i===e.length?e.push(s=new Re(this._insert(Ae()),this._insert(Ae()),this,this.options)):s=e[i],s._$setValue(r),i++;i<e.length&&(this._$clear(s&&s._$endNode.nextSibling,i),e.length=i)}_$clear(t=this._$startNode.nextSibling,e){var i;for((i=this._$notifyConnectionChanged)==null||i.call(this,!1,!0,e);t&&t!==this._$endNode;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$parent===void 0&&(this.__isConnected=t,(e=this._$notifyConnectionChanged)==null||e.call(this,t))}}class Sn{constructor(t,e,i,s,r){$(this,"type",ii);$(this,"element");$(this,"name");$(this,"options");$(this,"strings");$(this,"_$committedValue");$(this,"__directives");$(this,"_$parent");$(this,"_$disconnectableChildren");this.element=t,this.name=e,this._$parent=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$committedValue=new Array(i.length-1).fill(new String),this.strings=i):this._$committedValue=void 0}get tagName(){return this.element.tagName}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t,e=this,i,s){const r=this.strings;let a=!1;if(r===void 0)t=Yt(this,t,e,0),a=!Le(t)||t!==this._$committedValue,a&&(this._$committedValue=t);else{const c=t;t=r[0];let l,u;for(l=0;l<r.length-1;l++)u=Yt(this,c[i+l],e,l),a||(a=!Le(u)||u!==this._$committedValue[l]),Jt(u)?t=void 0:Jt(t)||(t+=u+r[l+1]),this._$committedValue[l]=u}a&&!s&&this._commitValue(t)}_commitValue(t){Jt(t)?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t)}}class wc extends Sn{constructor(){super(...arguments);$(this,"type",fc)}_commitValue(e){this.element[this.name]=e}}class Sc extends Sn{constructor(){super(...arguments);$(this,"type",pc)}_commitValue(e){this.element.toggleAttribute(this.name,!!e)}}class Ec extends Sn{constructor(e,i,s,r,a){super(e,i,s,r,a);$(this,"type",mc)}_$setValue(e,i=this){e=Yt(this,e,i,0);const s=this._$committedValue,r=s&&(!e||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive),a=e&&(!s||r);r&&this.element.removeEventListener(this.name,this,s),a&&this.element.addEventListener(this.name,this,e),this._$committedValue=e}handleEvent(e){var i;typeof this._$committedValue=="function"?this._$committedValue.call(((i=this.options)==null?void 0:i.host)??this.element,e):this._$committedValue.handleEvent(e)}}class Cc{constructor(t,e,i){$(this,"type",si);$(this,"__directive");$(this,"_$committedValue");$(this,"_$parent");$(this,"_$disconnectableChildren");$(this,"_$props");$(this,"options");this.element=t,this._$parent=e,this.options=i}get _$isConnected(){return this._$parent._$isConnected}_$setValue(t){if(t)if(t instanceof Ys)t.value=this.element;else if(t._$litDirective$)Yt(this,t);else{if(this._$props)for(const e in this._$props)Reflect.set(this.element,e,void 0);Object.assign(this.element,t),this._$props=t}}}const Js=()=>new Ys;class Ys{constructor(){$(this,"value")}}const En=(n,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new Re(t.insertBefore(Ae(),r),r,void 0,e??{})}return s._$setValue(n),s},{assign:bc,fromEntries:Tc,entries:Pc,keys:kc}=Object,ci=new Set;function wt(n){ci.has(n)||(queueMicrotask(()=>{ci.delete(n),n()}),ci.add(n))}function Ie(n,t){const e=t;return delete e.name,delete e.length,bc(e,n),e}function hi(n="",t=""){const{pathname:e,search:i,hash:s}=new URL(t,location.origin+n);return e+i+decodeURIComponent(s)}function li(n,t,e,i){return n.addEventListener(t,e,i),()=>n.removeEventListener(t,e,i)}class Zs extends EventTarget{constructor(){super(...arguments);C(this,_n);C(this,At,new Map);C(this,gt);C(this,Lt)}get size(){return f(this,At).size}get first(){return f(this,gt)}get last(){return f(this,Lt)}isSuperLinkOf(e){let i=e.first;if(!i)return!0;let s=this.find(i.value);for(;s&&s.value===i.value;){if(i=i.next,!i)return!0;s=s.next}return!1}find(e){return f(this,At).get(e)}add(e){f(this,Lt)||this.dispatchEvent(new CustomEvent("start"));const i=Ns(this,_n,Rs).call(this,e)||{value:e};i.prev=f(this,Lt),i.prev&&(i.prev.next=i),i.next=void 0,A(this,Lt,i),f(this,gt)||A(this,gt,i),f(this,At).set(e,i)}delete(e){const i=Ns(this,_n,Rs).call(this,e);return f(this,gt)||this.dispatchEvent(new CustomEvent("end")),i}get(){const e=f(this,gt);if(e)return this.delete(e.value),e.value}}At=new WeakMap,gt=new WeakMap,Lt=new WeakMap,_n=new WeakSet,Rs=function(e){const i=f(this,At).get(e);return i&&(i.prev?i.prev.next=i.next:A(this,gt,i.next),i.next?i.next.prev=i.prev:A(this,Lt,i.prev),f(this,At).delete(e)),i};class Xs extends WeakMap{get(t){let e=super.get(t);return e||(e={},this.set(t,e)),e}}class Zt extends URLSearchParams{constructor(e){super(e);C(this,$e,e=>typeof e=="string"?e:JSON.stringify(e));C(this,jn,e=>{if(!e)return null;try{return JSON.parse(e)}catch{return null}})}concat(e){let i;typeof e=="string"?i=Tc(new URLSearchParams(e).entries()):i=e,Pc(i).forEach(([s,r])=>{this.append(s,f(this,$e).call(this,r))})}setAny(e,i){if(Array.isArray(i))this.delete(e),i.forEach(s=>this.append(e,f(this,$e).call(this,s)));else{const s=f(this,$e).call(this,i);s?this.set(e,s):this.delete(e)}}getAny(e){return this.getAnyAll(e)[0]}getAnyAll(e){return this.getAll(e).filter(i=>i!=="").map(i=>f(this,jn).call(this,i))}toString(){const e=super.toString();return e?`?${e}`:""}toJSON(){return this.toString()}}$e=new WeakMap,jn=new WeakMap;function di(n,...t){return n.reduce((e,i,s)=>e+(t[s-1]??"")+i)}const Mc=di;function Cn(n=5){const t=Math.random().toString(36).slice(2,2+n);return t.length<n?t+Cn(n-t.length):t}function Ht(n){return n.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Oc(n){return n.replace(/-(.)/g,(t,e)=>e.toUpperCase())}function bn(n){return kc(n).forEach(t=>{delete n[t]}),n}class ft extends Error{constructor(t){super(t),this.message=`gem: ${this.message}`}}function tr(n,t){const e=n.length;if(t.length!==e)return!0;for(let i=0;i<e;i++)if(n[i]!==t[i])return!0;return!1}function Tn(n,t,e){let i=t;for(const s in n){const r=e(s,n[s]);i+=r?r+t:""}return i}function Ac(n){return Tn(n,";",(t,e)=>e||e===0?`${Ht(t)}:${e}`:"")}function er(n){return Tn(n," ",(t,e)=>e?t:"")}const Lc=er;function Nc(n){return Tn(n,",",(t,e)=>e===!0||t===e?t:e?`${t}:${e}`:"")}const He=new WeakMap;function St(n){const t=Ie(n,e=>{var i;Object.assign(t,e),(i=He.get(t))==null||i.forEach(s=>wt(s))});return He.set(t,new Set),t}function dt(n,t){const e=He.get(n);return e==null||e.add(t),()=>e==null?void 0:e.delete(t)}const Rc=Object.freeze(Object.defineProperty({__proto__:null,_StoreListenerMap:He,connect:dt,createStore:St},Symbol.toStringTag,{value:"Module"}));/**
14
8
  * @license
15
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
16
- * This code may only be used under the BSD style license found at
17
- * http://polymer.github.io/LICENSE.txt
18
- * The complete set of authors may be found at
19
- * http://polymer.github.io/AUTHORS.txt
20
- * The complete set of contributors may be found at
21
- * http://polymer.github.io/CONTRIBUTORS.txt
22
- * Code distributed by Google as part of the polymer project is also
23
- * subject to an additional IP rights grant found at
24
- * http://polymer.github.io/PATENTS.txt
25
- */const Ts=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,Ms=(e,t,n=null,i=null)=>{for(;t!==n;){const s=t.nextSibling;e.insertBefore(t,i),t=s}},Un=(e,t,n=null)=>{for(;t!==n;){const i=t.nextSibling;e.removeChild(t),t=i}};/**
26
- * @license
27
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
28
- * This code may only be used under the BSD style license found at
29
- * http://polymer.github.io/LICENSE.txt
30
- * The complete set of authors may be found at
31
- * http://polymer.github.io/AUTHORS.txt
32
- * The complete set of contributors may be found at
33
- * http://polymer.github.io/CONTRIBUTORS.txt
34
- * Code distributed by Google as part of the polymer project is also
35
- * subject to an additional IP rights grant found at
36
- * http://polymer.github.io/PATENTS.txt
37
- */const nt={},Os={};/**
38
- * @license
39
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
40
- * This code may only be used under the BSD style license found at
41
- * http://polymer.github.io/LICENSE.txt
42
- * The complete set of authors may be found at
43
- * http://polymer.github.io/AUTHORS.txt
44
- * The complete set of contributors may be found at
45
- * http://polymer.github.io/CONTRIBUTORS.txt
46
- * Code distributed by Google as part of the polymer project is also
47
- * subject to an additional IP rights grant found at
48
- * http://polymer.github.io/PATENTS.txt
49
- */const St=`{{lit-${String(Math.random()).slice(2)}}}`,Ls=`<!--${St}-->`,Ns=new RegExp(`${St}|${Ls}`),be="$lit$";class Ba{constructor(t,n){this.parts=[],this.element=n;const i=[],s=[],r=document.createTreeWalker(n.content,133,null,!1);let c=0,a=-1,f=0;const{strings:_,values:{length:m}}=t;for(;f<m;){const o=r.nextNode();if(o===null){r.currentNode=s.pop();continue}if(a++,o.nodeType===1){if(o.hasAttributes()){const g=o.attributes,{length:l}=g;let v=0;for(let w=0;w<l;w++)As(g[w].name,be)&&v++;for(;v-- >0;){const w=_[f],S=Bn.exec(w)[2],b=S.toLowerCase()+be,d=o.getAttribute(b);o.removeAttribute(b);const $=d.split(Ns);this.parts.push({type:"attribute",index:a,name:S,strings:$}),f+=$.length-1}}o.tagName==="TEMPLATE"&&(s.push(o),r.currentNode=o.content)}else if(o.nodeType===3){const g=o.data;if(g.indexOf(St)>=0){const l=o.parentNode,v=g.split(Ns),w=v.length-1;for(let S=0;S<w;S++){let b,d=v[S];if(d==="")b=lt();else{const $=Bn.exec(d);$!==null&&As($[2],be)&&(d=d.slice(0,$.index)+$[1]+$[2].slice(0,-be.length)+$[3]),b=document.createTextNode(d)}l.insertBefore(b,o),this.parts.push({type:"node",index:++a})}v[w]===""?(l.insertBefore(lt(),o),i.push(o)):o.data=v[w],f+=w}}else if(o.nodeType===8)if(o.data===St){const g=o.parentNode;(o.previousSibling===null||a===c)&&(a++,g.insertBefore(lt(),o)),c=a,this.parts.push({type:"node",index:a}),o.nextSibling===null?o.data="":(i.push(o),a--),f++}else{let g=-1;for(;(g=o.data.indexOf(St,g+1))!==-1;)this.parts.push({type:"node",index:-1}),f++}}for(const o of i)o.parentNode.removeChild(o)}}const As=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},ja=e=>e.index!==-1,lt=()=>document.createComment(""),Bn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;/**
50
- * @license
51
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
52
- * This code may only be used under the BSD style license found at
53
- * http://polymer.github.io/LICENSE.txt
54
- * The complete set of authors may be found at
55
- * http://polymer.github.io/AUTHORS.txt
56
- * The complete set of contributors may be found at
57
- * http://polymer.github.io/CONTRIBUTORS.txt
58
- * Code distributed by Google as part of the polymer project is also
59
- * subject to an additional IP rights grant found at
60
- * http://polymer.github.io/PATENTS.txt
61
- */class Rs{constructor(t,n,i){this.__parts=[],this.template=t,this.processor=n,this.options=i}update(t){let n=0;for(const i of this.__parts)i!==void 0&&i.setValue(t[n]),n++;for(const i of this.__parts)i!==void 0&&i.commit()}_clone(){const t=Ts?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],i=this.template.parts,s=document.createTreeWalker(t,133,null,!1);let r=0,c=0,a,f=s.nextNode();for(;r<i.length;){if(a=i[r],!ja(a)){this.__parts.push(void 0),r++;continue}for(;c<a.index;)c++,f.nodeName==="TEMPLATE"&&(n.push(f),s.currentNode=f.content),(f=s.nextNode())===null&&(s.currentNode=n.pop(),f=s.nextNode());if(a.type==="node"){const _=this.processor.handleTextExpression(this.options);_.insertAfterNode(f.previousSibling),this.__parts.push(_)}else this.__parts.push(...this.processor.handleAttributeExpressions(f,a.name,a.strings,this.options));r++}return Ts&&(document.adoptNode(t),customElements.upgrade(t)),t}}/**
62
- * @license
63
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
64
- * This code may only be used under the BSD style license found at
65
- * http://polymer.github.io/LICENSE.txt
66
- * The complete set of authors may be found at
67
- * http://polymer.github.io/AUTHORS.txt
68
- * The complete set of contributors may be found at
69
- * http://polymer.github.io/CONTRIBUTORS.txt
70
- * Code distributed by Google as part of the polymer project is also
71
- * subject to an additional IP rights grant found at
72
- * http://polymer.github.io/PATENTS.txt
73
- */const Is=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),Ka=` ${St} `;class Ce{constructor(t,n,i,s){this.strings=t,this.values=n,this.type=i,this.processor=s}getHTML(){const t=this.strings.length-1;let n="",i=!1;for(let s=0;s<t;s++){const r=this.strings[s],c=r.lastIndexOf("<!--");i=(c>-1||i)&&r.indexOf("-->",c+1)===-1;const a=Bn.exec(r);a===null?n+=r+(i?Ka:Ls):n+=r.substr(0,a.index)+a[1]+a[2]+be+a[3]+St}return n+=this.strings[t],n}getTemplateElement(){const t=document.createElement("template");let n=this.getHTML();return Is!==void 0&&(n=Is.createHTML(n)),t.innerHTML=n,t}}class jn extends Ce{getHTML(){return`<svg>${super.getHTML()}</svg>`}getTemplateElement(){const t=super.getTemplateElement(),n=t.content,i=n.firstChild;return n.removeChild(i),Ms(n,i.firstChild),t}}/**
74
- * @license
75
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
76
- * This code may only be used under the BSD style license found at
77
- * http://polymer.github.io/LICENSE.txt
78
- * The complete set of authors may be found at
79
- * http://polymer.github.io/AUTHORS.txt
80
- * The complete set of contributors may be found at
81
- * http://polymer.github.io/CONTRIBUTORS.txt
82
- * Code distributed by Google as part of the polymer project is also
83
- * subject to an additional IP rights grant found at
84
- * http://polymer.github.io/PATENTS.txt
85
- */const Kn=e=>e===null||!(typeof e=="object"||typeof e=="function"),Jn=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]);class Hs{constructor(t,n,i){this.dirty=!0,this.element=t,this.name=n,this.strings=i,this.parts=[];for(let s=0;s<i.length-1;s++)this.parts[s]=this._createPart()}_createPart(){return new Qn(this)}_getValue(){const t=this.strings,n=t.length-1,i=this.parts;if(n===1&&t[0]===""&&t[1]===""){const r=i[0].value;if(typeof r=="symbol")return String(r);if(typeof r=="string"||!Jn(r))return r}let s="";for(let r=0;r<n;r++){s+=t[r];const c=i[r];if(c!==void 0){const a=c.value;if(Kn(a)||!Jn(a))s+=typeof a=="string"?a:String(a);else for(const f of a)s+=typeof f=="string"?f:String(f)}}return s+=t[n],s}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class Qn{constructor(t){this.value=void 0,this.committer=t}setValue(t){t!==nt&&(!Kn(t)||t!==this.value)&&(this.value=t,Ee(t)||(this.committer.dirty=!0))}commit(){for(;Ee(this.value);){const t=this.value;this.value=nt,t(this)}this.value!==nt&&this.committer.commit()}}class Ut{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(lt()),this.endNode=t.appendChild(lt())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=lt()),t.__insert(this.endNode=lt())}insertAfterPart(t){t.__insert(this.startNode=lt()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){if(this.startNode.parentNode===null)return;for(;Ee(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=nt,n(this)}const t=this.__pendingValue;t!==nt&&(Kn(t)?t!==this.value&&this.__commitText(t):t instanceof Ce?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):Jn(t)?this.__commitIterable(t):t===Os?(this.value=Os,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const n=this.startNode.nextSibling;t=t??"";const i=typeof t=="string"?t:String(t);n===this.endNode.previousSibling&&n.nodeType===3?n.data=i:this.__commitNode(document.createTextNode(i)),this.value=t}__commitTemplateResult(t){const n=this.options.templateFactory(t);if(this.value instanceof Rs&&this.value.template===n)this.value.update(t.values);else{const i=new Rs(n,t.processor,this.options),s=i._clone();i.update(t.values),this.__commitNode(s),this.value=i}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const n=this.value;let i=0,s;for(const r of t)s=n[i],s===void 0&&(s=new Ut(this.options),n.push(s),i===0?s.appendIntoPart(this):s.insertAfterPart(n[i-1])),s.setValue(r),s.commit(),i++;i<n.length&&(n.length=i,this.clear(s&&s.endNode))}clear(t=this.startNode){Un(this.startNode.parentNode,t.nextSibling,this.endNode)}}class Ja{constructor(t,n,i){if(this.value=void 0,this.__pendingValue=void 0,i.length!==2||i[0]!==""||i[1]!=="")throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=i}setValue(t){this.__pendingValue=t}commit(){for(;Ee(this.__pendingValue);){const n=this.__pendingValue;this.__pendingValue=nt,n(this)}if(this.__pendingValue===nt)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=nt}}class Qa extends Hs{constructor(t,n,i){super(t,n,i),this.single=i.length===2&&i[0]===""&&i[1]===""}_createPart(){return new Ya(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class Ya extends Qn{}let Ws=!1;(()=>{try{const e={get capture(){return Ws=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();class Xa{constructor(t,n,i){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=i,this.__boundHandleEvent=s=>this.handleEvent(s)}setValue(t){this.__pendingValue=t}commit(){for(;Ee(this.__pendingValue);){const r=this.__pendingValue;this.__pendingValue=nt,r(this)}if(this.__pendingValue===nt)return;const t=this.__pendingValue,n=this.value,i=t==null||n!=null&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),s=t!=null&&(n==null||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),s&&(this.__options=Za(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=nt}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const Za=e=>e&&(Ws?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);/**
86
- * @license
87
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
88
- * This code may only be used under the BSD style license found at
89
- * http://polymer.github.io/LICENSE.txt
90
- * The complete set of authors may be found at
91
- * http://polymer.github.io/AUTHORS.txt
92
- * The complete set of contributors may be found at
93
- * http://polymer.github.io/CONTRIBUTORS.txt
94
- * Code distributed by Google as part of the polymer project is also
95
- * subject to an additional IP rights grant found at
96
- * http://polymer.github.io/PATENTS.txt
97
- */class tc{handleAttributeExpressions(t,n,i,s){const r=n[0];return r==="."?new Qa(t,n.slice(1),i).parts:r==="@"?[new Xa(t,n.slice(1),s.eventContext)]:r==="?"?[new Ja(t,n.slice(1),i)]:new Hs(t,n,i).parts}handleTextExpression(t){return new Ut(t)}}const Gs=new tc;/**
98
- * @license
99
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
100
- * This code may only be used under the BSD style license found at
101
- * http://polymer.github.io/LICENSE.txt
102
- * The complete set of authors may be found at
103
- * http://polymer.github.io/AUTHORS.txt
104
- * The complete set of contributors may be found at
105
- * http://polymer.github.io/CONTRIBUTORS.txt
106
- * Code distributed by Google as part of the polymer project is also
107
- * subject to an additional IP rights grant found at
108
- * http://polymer.github.io/PATENTS.txt
109
- */function ec(e){let t=xs.get(e.type);t===void 0&&(t={stringsArray:new WeakMap,keyString:new Map},xs.set(e.type,t));let n=t.stringsArray.get(e.strings);if(n!==void 0)return n;const i=e.strings.join(St);return n=t.keyString.get(i),n===void 0&&(n=new Ba(e,e.getTemplateElement()),t.keyString.set(i,n)),t.stringsArray.set(e.strings,n),n}const xs=new Map;/**
110
- * @license
111
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
112
- * This code may only be used under the BSD style license found at
113
- * http://polymer.github.io/LICENSE.txt
114
- * The complete set of authors may be found at
115
- * http://polymer.github.io/AUTHORS.txt
116
- * The complete set of contributors may be found at
117
- * http://polymer.github.io/CONTRIBUTORS.txt
118
- * Code distributed by Google as part of the polymer project is also
119
- * subject to an additional IP rights grant found at
120
- * http://polymer.github.io/PATENTS.txt
121
- */const zs=new WeakMap,_n=(e,t,n)=>{let i=zs.get(t);i===void 0&&(Un(t,t.firstChild),zs.set(t,i=new Ut(Object.assign({templateFactory:ec},n))),i.appendInto(t)),i.setValue(e),i.commit()};/**
122
- * @license
123
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
124
- * This code may only be used under the BSD style license found at
125
- * http://polymer.github.io/LICENSE.txt
126
- * The complete set of authors may be found at
127
- * http://polymer.github.io/AUTHORS.txt
128
- * The complete set of contributors may be found at
129
- * http://polymer.github.io/CONTRIBUTORS.txt
130
- * Code distributed by Google as part of the polymer project is also
131
- * subject to an additional IP rights grant found at
132
- * http://polymer.github.io/PATENTS.txt
133
- */typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const it=(e,...t)=>new Ce(e,t,"html",Gs),Vs=(e,...t)=>new jn(e,t,"svg",Gs),{assign:nc,setPrototypeOf:ic,fromEntries:sc,entries:rc,keys:oc}=Object,Yn=new Set;function $t(e){Yn.has(e)||(queueMicrotask(()=>{Yn.delete(e),e()}),Yn.add(e))}function Pe(e,t){const n=t;return ic(n,null),delete n.name,delete n.length,nc(n,e),n}function Xn(e="",t=""){const{pathname:n,search:i,hash:s}=new URL(t,location.origin+e);return n+i+decodeURIComponent(s)}function Zn(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}class Ds extends EventTarget{constructor(){super(...arguments);C(this,cn);C(this,Rt,new Map);C(this,gt);C(this,It)}get size(){return p(this,Rt).size}get first(){return p(this,gt)}get last(){return p(this,It)}isSuperLinkOf(n){let i=n.first;if(!i)return!0;let s=this.find(i.value);for(;s&&s.value===i.value;){if(i=i.next,!i)return!0;s=s.next}return!1}find(n){return p(this,Rt).get(n)}add(n){p(this,It)||this.dispatchEvent(new CustomEvent("start"));const i=Cs(this,cn,Ps).call(this,n)||{value:n};i.prev=p(this,It),i.prev&&(i.prev.next=i),i.next=void 0,O(this,It,i),p(this,gt)||O(this,gt,i),p(this,Rt).set(n,i)}delete(n){const i=Cs(this,cn,Ps).call(this,n);return p(this,gt)||this.dispatchEvent(new CustomEvent("end")),i}get(){const n=p(this,gt);if(n)return this.delete(n.value),n.value}}Rt=new WeakMap,gt=new WeakMap,It=new WeakMap,cn=new WeakSet,Ps=function(n){const i=p(this,Rt).get(n);return i&&(i.prev?i.prev.next=i.next:O(this,gt,i.next),i.next?i.next.prev=i.prev:O(this,It,i.prev),p(this,Rt).delete(n)),i};class Fs extends WeakMap{get(t){let n=super.get(t);return n||(n={},this.set(t,n)),n}}class Bt extends URLSearchParams{constructor(n){super(n);C(this,ue,n=>typeof n=="string"?n:JSON.stringify(n));C(this,Wn,n=>{if(!n)return null;try{return JSON.parse(n)}catch{return null}})}concat(n){let i;typeof n=="string"?i=sc(new URLSearchParams(n).entries()):i=n,rc(i).forEach(([s,r])=>{this.append(s,p(this,ue).call(this,r))})}setAny(n,i){if(Array.isArray(i))this.delete(n),i.forEach(s=>this.append(n,p(this,ue).call(this,s)));else{const s=p(this,ue).call(this,i);s?this.set(n,s):this.delete(n)}}getAny(n){return this.getAnyAll(n)[0]}getAnyAll(n){return this.getAll(n).filter(i=>i!=="").map(i=>p(this,Wn).call(this,i))}toString(){const n=super.toString();return n?`?${n}`:""}toJSON(){return this.toString()}}ue=new WeakMap,Wn=new WeakMap;function gn(e,...t){return e.reduce((n,i,s)=>n+(t[s-1]??"")+i)}const ti=gn;function ke(e=5){const t=Math.random().toString(36).slice(2,2+e);return t.length<e?t+ke(e-t.length):t}const ac={class:gn};function Ht(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function cc(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function mn(e){return oc(e).forEach(t=>{delete e[t]}),e}class Et extends Error{constructor(t){super(t),this.message=`gem: ${this.message}`}}function qs(e,t){const n=e.length;if(t.length!==n)return!0;for(let i=0;i<n;i++)if(e[i]!==t[i])return!0;return!1}function vn(e,t,n){let i=t;for(const s in e){const r=n(s,e[s]);i+=r?r+t:""}return i}function lc(e){return vn(e,";",(t,n)=>n||n===0?`${Ht(t)}:${n}`:"")}function Us(e){return vn(e," ",(t,n)=>n?t:"")}const hc=Us;function uc(e){return vn(e,",",(t,n)=>n===!0||t===n?t:n?`${t}:${n}`:"")}const Te=new WeakMap;function bt(e){const t=Pe(e,n=>{var i;Object.assign(t,n),(i=Te.get(t))==null||i.forEach(s=>$t(s))});return Te.set(t,new Set),t}function ht(e,t){const n=Te.get(e);return n==null||n.add(t),()=>n==null?void 0:n.delete(t)}const dc=Object.freeze(Object.defineProperty({__proto__:null,StoreListenerMap:Te,connect:ht,createStore:bt},Symbol.toStringTag,{value:"Module"})),{assign:Bs,defineProperty:fc}=Object;fc(Symbol,"metadata",{value:Symbol.for("Symbol.metadata")});const ei=e=>typeof e=="function"&&e(),Ct=Symbol.for("gem@sheetToken"),Me=Symbol.for("gem@update"),js="gem-style-boundary",wn="gem@render-error",pc=Me,ni=new WeakMap,Ks=new WeakMap,Js=e=>[...e.querySelectorAll("[data-gem-reflect]")].map(t=>t.target);class _c{constructor(t){A(this,"refSelector");A(this,"ele");A(this,"ref");const n=`ref-${ke()}`;this.refSelector=`[ref=${n}]`,this.ele=t.internals.shadowRoot||t,this.ref=n}get element(){for(const t of[this.ele,...Js(this.ele)]){const n=t.querySelector(this.refSelector);if(n)return n}}get elements(){return[this.ele,...Js(this.ele)].map(t=>[...t.querySelectorAll(this.refSelector)]).flat()}toString(){return this.ref}}h.createRef=void 0;class gc extends CSSStyleSheet{constructor(){super(...arguments);C(this,ut);A(this,"cssText","")}get element(){return p(this,ut)||(O(this,ut,document.createElement("style")),p(this,ut).textContent=this.cssText,p(this,ut).dataset.gemStyle=""),p(this,ut)}replaceSync(n){this.cssText=n,p(this,ut)&&(p(this,ut).textContent=n),super.replaceSync(n)}}ut=new WeakMap;class mc{constructor(t=""){C(this,Dt,"");C(this,ln,"");C(this,de,new Map);C(this,fe,new Map);O(this,ln,t)}setContent(t){O(this,Dt,t)}getStyle(t){var r;const n=t&&!((r=t.internals)!=null&&r.shadowRoot),i=n?t.constructor:this;if(!p(this,de).has(i)){const c=new gc({media:p(this,ln)});p(this,de).set(i,c)}const s=p(this,de).get(i);if(!p(this,fe).has(s)){let c=p(this,Dt),a="";n&&(a=`@scope (${t.tagName}) to (:state(${js}) > *)`,c=`${a}{ ${c} }`),s.replaceSync(c),p(this,fe).set(s,a)}return s}updateStyle(){p(this,fe).forEach((t,n)=>{n.replaceSync(t?`${t}{${p(this,Dt)}}`:p(this,Dt))})}}Dt=new WeakMap,ln=new WeakMap,de=new WeakMap,fe=new WeakMap;function Oe(e,t){const n=t?e:"",i=t||e,s=new mc(n),r={[Ct]:s};let c="";return typeof i=="string"?c=i:Object.keys(i).forEach(a=>{const f=a==="$";r[a]=f||a.includes("-")?a:`${a}-${ke()}`,c+=`${f?":where(:scope:not([hidden])),:host(:where(:not([hidden])))":`.${r[a]}`} {${i[a]}}`}),s.setContent(c),r}const Qs=(e,t,n)=>{let i=!1;t.forEach(s=>{const r=e.get(s)||0;i||(i=n===1&&r===0||n===-1&&r===1),e.set(s,r+n)}),i&&$t(Ks.get(e))},vc=(e,t)=>{const n=e.getRootNode();if(!ni.has(n)){const s=new Map;ni.set(n,s),Ks.set(s,()=>{const r=n.adoptedStyleSheets.filter(c=>!s.has(c));s.forEach((c,a)=>c&&r.push(a)),n.adoptedStyleSheets=r.reverse()})}const i=ni.get(n);return Qs(i,t,1),()=>Qs(i,t,-1)};h.createState=void 0;function Ys(e){e==null||e.forEach(t=>{const{callback:n,getDep:i,values:s,preCallback:r}=t,c=i==null?void 0:i();(!i||!s||qs(s,c))&&(ei(r),t.preCallback=n(c,s),t.values=c,t.initialized=!0)})}function Xs(e){return e.filter(t=>(ei(t.preCallback),t.initialized=!1,t.values=void 0,t.fixed))}h.createTemplate=void 0;const jt=new Ds,ii=(e=performance.now())=>{if(performance.now()>e+16)return requestAnimationFrame(ii);const t=jt.get();t&&(t(),ii(e))};jt.addEventListener("start",()=>$t(ii));let si;const Se=class Se extends HTMLElement{constructor(){super();C(this,ct);C(this,_e);C(this,et);C(this,mt,[]);C(this,Ft,[]);C(this,vt,[]);C(this,ge);C(this,wt);C(this,me);C(this,ve);C(this,hn);C(this,Gn,()=>{Ys(p(this,mt))});C(this,xn,()=>{Ys(p(this,Ft))});C(this,un,n=>{try{O(this,ve,!0),p(this,xn).call(this);const i=p(this,_e)===this,s=n?n.render():i?void 0:it`<slot></slot>`;if(O(this,ve,!1),s===void 0)return;_n(s,p(this,_e))}catch(i){this.dispatchEvent(new CustomEvent(wn,{bubbles:!0,composed:!0,detail:i}))}});C(this,we,()=>{const n=p(this,ct,ks);p(this,wt)&&(n||!p(this,vt).length)&&(p(this,un).call(this,n),$t(p(this,Gn)))});C(this,qt,()=>{p(this,ct,$e).noBlocking?jt.add(p(this,we)):p(this,we).call(this)});C(this,zn,()=>{const{adoptedStyleSheets:n=[]}=p(this,ct,$e),{shadowRoot:i,sheets:s}=p(this,et),r=n.map(c=>c[Ct].getStyle(this));if(i)i.adoptedStyleSheets=r.concat(s);else return this.prepend(...s.map(c=>c.element)),vc(this,r)});C(this,Vn,()=>{var n;(n=p(this,mt))==null||n.forEach(i=>{const{callback:s,getDep:r,initialized:c}=i;c||(i.values=r==null?void 0:r(),i.preCallback=s(i.values),i.initialized=!0)})});C(this,Dn,()=>{var n;this.willMount&&this.memo(this.willMount.bind(this),()=>[]),this.mounted&&this.effect(this.mounted.bind(this),()=>[]),this.updated&&this.effect((i,s)=>s&&this.updated.apply(this)),this.unmounted&&this.effect(()=>this.unmounted.bind(this),()=>[]),!p(this,vt).length&&this.render&&p(this,vt).push({render:this.render.bind(this),condition:(n=this.shouldUpdate)==null?void 0:n.bind(this)})});C(this,dn);C(this,ye,async()=>{if(p(this,ge)){O(this,ge,!1);return}p(this,Dn).call(this);const{observedStores:n,mode:i,penetrable:s}=p(this,ct,$e);!i&&p(this,vt).length&&!s&&p(this,et).states.add(js),O(this,me,!0),O(this,dn,n==null?void 0:n.map(r=>ht(r,p(this,qt)))),p(this,un).call(this,p(this,ct,ks)),O(this,wt,!0),O(this,hn,p(this,zn).call(this)),await Promise.resolve(),p(this,Vn).call(this)});A(this,"effect",(n,i)=>{const s={callback:n,getDep:i,initialized:p(this,wt),fixed:!p(this,me)};p(this,wt)&&(s.values=i==null?void 0:i(),s.preCallback=n(s.values)),p(this,mt).push(s)});A(this,"memo",(n,i)=>{p(this,Ft).push({callback:n,getDep:i,fixed:!p(this,me)})});A(this,"update",()=>$t(p(this,qt)));si=this;const{mode:n,serializable:i,delegatesFocus:s,slotAssignment:r,aria:c}=p(this,ct,$e),{focusable:a,...f}=c||{};O(this,_e,n?this.attachShadow({mode:n,serializable:i,delegatesFocus:s,slotAssignment:r}):this),O(this,et,this.attachInternals()),p(this,et).stateList=[],p(this,et).sheets=[],Bs(p(this,et),f);let _;p(this,mt).push({fixed:!0,getDep:()=>[this.disabled],callback:([m=!1])=>{if(_===void 0&&(_=this.hasAttribute("tabindex")),p(this,et).ariaDisabled=String(m),a&&!_&&(this.tabIndex=-Number(m)),(a||s)&&m)return Zn(this,"click",o=>o.isTrusted&&o.stopImmediatePropagation(),{capture:!0})}})}[pc](){p(this,wt)&&$t(p(this,qt))}get internals(){return p(this,et)}connectedCallback(){return p(this,ct,$e).noBlocking?jt.add(p(this,ye)):p(this,ye).call(this),p(Se,pe)}adoptedCallback(){return p(Se,pe)}disconnectedCallback(){var n;if(this.isConnected){O(this,ge,!0);return}return jt.delete(p(this,ye)),jt.delete(p(this,we)),O(this,wt,!1),(n=p(this,dn))==null||n.forEach(i=>i()),O(this,mt,Xs(p(this,mt))),O(this,Ft,Xs(p(this,Ft))),ei(p(this,hn)),p(Se,pe)}};pe=new WeakMap,_e=new WeakMap,et=new WeakMap,mt=new WeakMap,Ft=new WeakMap,vt=new WeakMap,ge=new WeakMap,wt=new WeakMap,me=new WeakMap,ve=new WeakMap,hn=new WeakMap,ct=new WeakSet,$e=function(){return this.constructor[Symbol.metadata]},ks=function(){return p(this,vt).find(n=>!n.condition||n.condition())},Gn=new WeakMap,xn=new WeakMap,un=new WeakMap,we=new WeakMap,qt=new WeakMap,zn=new WeakMap,Vn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,ye=new WeakMap,C(Se,pe,Symbol()),h.createState=n=>{const i=si,s=Pe(n,r=>{Bs(s,r),p(i,ve)||$t(p(i,qt))});return p(i,et).stateList.push(s),s},h.createRef=()=>new _c(si),h.createTemplate=(n,i)=>p(n,vt).push(i);let q=Se;const wc=Object.freeze(Object.defineProperty({__proto__:null,GemElement:q,RenderErrorEvent:wn,SVGTemplateResult:jn,SheetToken:Ct,TemplateResult:Ce,UpdateToken:Me,createCSSSheet:Oe,get createRef(){return h.createRef},get createState(){return h.createState},get createTemplate(){return h.createTemplate},directive:yt,html:it,render:_n,svg:Vs},Symbol.toStringTag,{value:"Module"})),Zs="0.0.0",yc=Object.freeze(Object.defineProperty({__proto__:null,version:Zs},Symbol.toStringTag,{value:"Module"})),{deleteProperty:Sc,getOwnPropertyDescriptor:tr,defineProperty:yn}=Reflect,{getPrototypeOf:Pt,assign:er}=Object,nr=new Fs;function kt(e,t,n){const i=e.metadata;if(!tr(i,t)){const s=new Set(i[t]);s.delete(n),yn(i,t,{value:[...s]})}i[t].push(n)}function Sn(e,t){const{value:n}=tr(e,t);Sc(e,t),e[t]=n}const Le=new WeakMap,{setAttribute:ir,toggleAttribute:$c,removeAttribute:sr}=Element.prototype;q.prototype.setAttribute=function(e,t){var i;const n=(i=Le.get(Pt(this)))==null?void 0:i.get(e);if(!n)return ir.call(this,e,t);this[n]=t},q.prototype.removeAttribute=function(e){var n;const t=(n=Le.get(Pt(this)))==null?void 0:n.get(e);if(!t)return sr.call(this,e);this[t]=null},q.prototype.toggleAttribute=function(e,t){var i;const n=(i=Le.get(Pt(this)))==null?void 0:i.get(e);return n?this[n]=t??!this.hasAttribute(e):$c.call(this,e,t)};function Ec(){}const rr=Symbol("event handle");function ri(e,t,{attr:n,attrType:i,event:s,eventOptions:r}={}){yn(e,t,{configurable:!0,get(){const c=nr.get(this)[t];return s&&!c?(this[t]=Ec,this[t]):c},set(c){const a=this,f=nr.get(a);n&&(c=i===Boolean&&c===""?!0:i(c||""),c?ir.call(this,n,i===Boolean?"":c):sr.call(this,n)),c!==f[t]&&(s?(f[t]=c!=null&&c[rr]?c:(_,m)=>{const o=new CustomEvent(s,{...m,...r,detail:_});a.dispatchEvent(o),c(_,m)},f[t][rr]=!0):(f[t]=c,this[Me]()))}})}function oi(e,t){const n=e.name,i=Ht(n);return e.addInitializer(function(){const s=Pt(this);if(!s.hasOwnProperty(n)){kt(e,"observedAttributes",i),ri(s,n,{attr:i,attrType:t});const r=Le.get(s)||new Map;r.set(i,n),Le.set(s,r)}Sn(this,n)}),function(s){return this.getAttribute(i)??s}}function D(e,t){return oi(t,String)}function Ne(e,t){return oi(t,Boolean)}function or(e,t){return oi(t,Number)}function U(e,t){const n=t.name;return t.addInitializer(function(){const i=Pt(this);i.hasOwnProperty(n)||(kt(t,"observedProperties",n),ri(i,n)),Sn(this,n)}),function(i){return this[n]??i}}function ai(e){return function(t,n){const{addInitializer:i,name:s,access:r,kind:c}=n;i(function(){const a=e&&(()=>e(this));if(c==="getter"){if(n.private)throw new Et("not support");this.memo(()=>yn(this,s,{configurable:!0,value:r.get(this)}),a)}else this.memo(r.get(this).bind(this),a)})}}function dt(e){return function(t,{addInitializer:n,access:i}){n(function(){this.effect(i.get(this).bind(this),e&&(()=>e(this)))})}}function ar(){return function(e,{addInitializer:t,access:n}){t(function(){this.effect(()=>n.get(this).bind(this),()=>[])})}}function $n(){return ai(()=>[])}function Kt(){return dt(()=>[])}function ci(e){return function(t,{addInitializer:n,access:i}){n(function(){h.createTemplate(this,{render:i.get(this).bind(this),condition:e&&(()=>e(this))})})}}function cr(){return function(e,{addInitializer:t,access:n}){t(function(){this.addEventListener(wn,({detail:i})=>{_n(n.get(this).apply(this,[i]),this.internals.shadowRoot||this)})})}}function bc(e,t,n){yn(e,t,{configurable:!0,get(){const i=this,{states:s}=i.internals;return s==null?void 0:s.has(n)},set(i){const s=this,{states:r}=s.internals;i?r==null||r.add(n):r==null||r.delete(n)}})}function Ae(e,t){t.addInitializer(function(){const n=Pt(this),i=t.name;if(!n.hasOwnProperty(i)){const s=Ht(i);kt(t,"definedCSSStates",s),bc(n,i,s)}Sn(this,i)})}function lr(e,t,n,i){const s=e.name,r=Ht(s);if(e.static)kt(e,n,r);else{const c=Pt(t);c[s]||(c[s]=r,kt(e,n,r))}return i||r}function hr(e,t){return function(n){return lr(t,this,"definedSlots",n)}}function li(e,t){return function(n){return lr(t,this,"definedParts",n)}}function Jt(e,t){t.addInitializer(function(){dr(t,this,t.name)})}function ur(e,t){t.addInitializer(function(){dr(t,this,t.name,{bubbles:!0,composed:!0})})}function dr(e,t,n,i){const s=Pt(t);if(!s.hasOwnProperty(n)){const r=Ht(n);kt(e,"definedEvents",r),ri(s,n,{event:r,eventOptions:i})}Sn(t,n)}function En(e){return function(t,n){kt(n,"adoptedStyleSheets",e)}}function Re(e){return function(t,n){kt(n,"observedStores",e)}}function Tt({mode:e="open",serializable:t=!0,delegatesFocus:n,slotAssignment:i}={}){return function(s,r){const c=r.metadata;er(c,{mode:e,serializable:t,delegatesFocus:n,slotAssignment:i})}}function hi({penetrable:e}){return function(t,n){const i=n.metadata;i.penetrable=e}}function fr(){return function(e,t){const n=t.metadata;n.noBlocking=!0}}function Ie(e){return function(t,n){const i=n.metadata;i.aria={...i.aria,...e}}}function pr(e){return function(t,{addInitializer:n}){n(function(){customElements.define(e,t)})}}window.__GEM_DEVTOOLS__HOOK__&&!window.__GEM_DEVTOOLS__HOOK__.GemElement&&er(window.__GEM_DEVTOOLS__HOOK__,{...wc,...M,...dc,...yc});const Y=window.history,_r=Y.pushState.bind(Y),gr=Y.replaceState.bind(Y);let Cc=0;const ui=()=>`${performance.now()}-${++Cc}`,L=bt({$hasCloseHandle:!1,$hasOpenHandle:!1,$hasShouldCloseHandle:!1,$key:""}),j=new Map;function mr(e){const{$key:t,$hasCloseHandle:n,$hasOpenHandle:i,$hasShouldCloseHandle:s}=e||{};if(L.$key!==t){if(t)throw new Et("`$key` is not allowed");if(n)throw new Et("`$hasCloseHandle` is not allowed");if(i)throw new Et("`$hasOpenHandle` is not allowed");if(s)throw new Et("`$hasShouldCloseHandle` is not allowed")}}function vr(e){return X.basePath?X.basePath+e:e}function di(e){return e===X.basePath?"/":e.replace(new RegExp(`^${X.basePath}/`),"/")}function fi(){X.dispatchEvent(new CustomEvent("beforechange"))}function bn(e){const t=j.get(L.$key)||{path:di(location.pathname),query:new Bt},n=e.path?Xn(t.path,e.path):di(location.pathname),i=new Bt(e.query??(e.path?"":location.search)),s=String(i)!==String(t.query),r=s?i:t.query,c=n!==t.path||s,a=e.title||(c?"":document.title),f=e.close||e.data||e.open||e.shouldClose,_=decodeURIComponent(e.hash??(!c&&f?location.hash:""));return{...e,title:a,path:n,query:r,hash:_}}function wr(e,t){mr(e.data);const n=bn(e),{title:i,path:s,query:r,hash:c,close:a,open:f,shouldClose:_,data:m}=n,o={$hasCloseHandle:!!a,$hasOpenHandle:!!f,$hasShouldCloseHandle:!!_,$key:ui(),$title:i,...m};j.set(o.$key,n),fi(),mn(L),L(o);const g=vr(s)+new Bt(r)+c,l=decodeURIComponent(location.hash);t(o,i,g),l!==c&&window.dispatchEvent(new CustomEvent("hashchange"))}function yr(e,t,n,i){mr(e);const s={$key:ui(),$title:t,...e||{}},{pathname:r,search:c,hash:a}=new URL(n,location.origin+location.pathname),f=bn({path:r,query:new Bt(c),hash:a,title:t,data:e});j.set(s.$key,f),fi(),mn(L),L(s);const _=vr(r)+f.query+a,m=location.hash;i(s,t,_),m!==a&&window.dispatchEvent(new CustomEvent("hashchange"))}const pi=bt({basePath:""});class Pc extends EventTarget{get store(){return L}get currentKey(){return L.$key}get basePath(){return pi.basePath}set basePath(t){pi({basePath:t}),Object.assign(j.get(L.$key),{path:di(location.pathname)})}getParams(){return j.get(L.$key)}updateParams(t){Object.assign(j.get(L.$key),t),L()}push(t){wr(t,_r)}replace(t){wr(t,gr)}pushIgnoreCloseHandle(t){var n,i;L.$hasCloseHandle?((i=(n=j.get(L.$key))==null?void 0:n.close)==null||i.call(n),this.replace(t)):this.push(t)}forward(){Y.forward()}back(){Y.back()}}const X=new Pc,He=bt({defaultTitle:document.title,url:"",title:""}),kc={history:X,titleStore:He,basePathStore:pi};if(!window._GEMHISTORY){if(window._GEMHISTORY=kc,Y.pushState=function(t,n,i){yr(t,n,i,_r)},Y.replaceState=function(t,n,i){yr(t,n,i,gr)},window.addEventListener("hashchange",({isTrusted:t})=>{t&&X.replace({hash:location.hash})}),Y.state)if(Y.state.$hasCloseHandle){L(Y.state);const t=bn({title:document.title});j.set(L.$key,t),X.back()}else{const t=bn({title:document.title,hash:location.hash});L({$key:ui(),...Y.state||{}}),j.set(L.$key,t)}else{const{protocol:t,pathname:n,search:i,hash:s}=location;t.startsWith("http")&&X.replace({path:n,query:i,hash:s})}ht(He,()=>{const t=j.get(L.$key);t&&(t.title=He.title)}),ht(L,()=>{const{title:t}=X.getParams();t!==He.title&&He({title:t})});let e=!1;window.addEventListener("popstate",t=>{var r,c;const n=t.state;if(!(n!=null&&n.$key))return;if(e){e=!1;return}if(!j.has(n.$key)){const{pathname:a,search:f,hash:_}=location;j.set(n.$key,{path:a,query:new Bt(f),hash:decodeURIComponent(_),title:n.$title,data:n})}const i=L;if(parseFloat(n.$key)>parseFloat(i.$key)&&n.$hasOpenHandle)(c=(r=j.get(n.$key))==null?void 0:r.open)==null||c.call(r);else if(i.$hasCloseHandle){const a=j.get(i.$key),f=a==null?void 0:a.close,_=a==null?void 0:a.shouldClose;if(_&&!_()){e=!0,X.forward();return}else f?f():n.$hasCloseHandle&&(e=!0,X.back())}fi(),mn(L),L(n)})}const{history:N,titleStore:Mt,basePathStore:Sr}=window._GEMHISTORY;/**
134
- * @license
135
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
136
- * This code may only be used under the BSD style license found at
137
- * http://polymer.github.io/LICENSE.txt
138
- * The complete set of authors may be found at
139
- * http://polymer.github.io/AUTHORS.txt
140
- * The complete set of contributors may be found at
141
- * http://polymer.github.io/CONTRIBUTORS.txt
142
- * Code distributed by Google as part of the polymer project is also
143
- * subject to an additional IP rights grant found at
144
- * http://polymer.github.io/PATENTS.txt
145
- */const $r=(e,t)=>{const n=e.startNode.parentNode,i=t===void 0?e.endNode:t.startNode,s=n.insertBefore(lt(),i);n.insertBefore(lt(),i);const r=new Ut(e.options);return r.insertAfterNode(s),r},Wt=(e,t)=>(e.setValue(t),e.commit(),e),_i=(e,t,n)=>{const i=e.startNode.parentNode,s=n?n.startNode:e.endNode,r=t.endNode.nextSibling;r!==s&&Ms(i,t.startNode,r,s)},gi=e=>{Un(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},Er=(e,t,n)=>{const i=new Map;for(let s=t;s<=n;s++)i.set(e[s],s);return i},br=new WeakMap,Cr=new WeakMap,Tc=yt((e,t,n)=>{let i;return n===void 0?n=t:t!==void 0&&(i=t),s=>{if(!(s instanceof Ut))throw new Error("repeat can only be used in text bindings");const r=br.get(s)||[],c=Cr.get(s)||[],a=[],f=[],_=[];let m=0;for(const b of e)_[m]=i?i(b,m):m,f[m]=n(b,m),m++;let o,g,l=0,v=r.length-1,w=0,S=f.length-1;for(;l<=v&&w<=S;)if(r[l]===null)l++;else if(r[v]===null)v--;else if(c[l]===_[w])a[w]=Wt(r[l],f[w]),l++,w++;else if(c[v]===_[S])a[S]=Wt(r[v],f[S]),v--,S--;else if(c[l]===_[S])a[S]=Wt(r[l],f[S]),_i(s,r[l],a[S+1]),l++,S--;else if(c[v]===_[w])a[w]=Wt(r[v],f[w]),_i(s,r[v],r[l]),v--,w++;else if(o===void 0&&(o=Er(_,w,S),g=Er(c,l,v)),!o.has(c[l]))gi(r[l]),l++;else if(!o.has(c[v]))gi(r[v]),v--;else{const b=g.get(_[w]),d=b!==void 0?r[b]:null;if(d===null){const $=$r(s,r[l]);Wt($,f[w]),a[w]=$}else a[w]=Wt(d,f[w]),_i(s,d,r[l]),r[b]=null;w++}for(;w<=S;){const b=$r(s,a[S+1]);Wt(b,f[w]),a[w++]=b}for(;l<=v;){const b=r[l++];b!==null&&gi(b)}br.set(s,a),Cr.set(s,_)}});/**
146
- * @license
147
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
148
- * This code may only be used under the BSD style license found at
149
- * http://polymer.github.io/LICENSE.txt
150
- * The complete set of authors may be found at
151
- * http://polymer.github.io/AUTHORS.txt
152
- * The complete set of contributors may be found at
153
- * http://polymer.github.io/CONTRIBUTORS.txt
154
- * Code distributed by Google as part of the polymer project is also
155
- * subject to an additional IP rights grant found at
156
- * http://polymer.github.io/PATENTS.txt
157
- */const mi=new WeakMap,Mc=yt((e,t)=>n=>{const i=mi.get(n);if(Array.isArray(e)){if(Array.isArray(i)&&i.length===e.length&&e.every((s,r)=>s===i[r]))return}else if(i===e&&(e!==void 0||mi.has(n)))return;n.setValue(t()),mi.set(n,Array.isArray(e)?Array.from(e):e)});/**
158
- * @license
159
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
160
- * This code may only be used under the BSD style license found at
161
- * http://polymer.github.io/LICENSE.txt
162
- * The complete set of authors may be found at
163
- * http://polymer.github.io/AUTHORS.txt
164
- * The complete set of contributors may be found at
165
- * http://polymer.github.io/CONTRIBUTORS.txt
166
- * Code distributed by Google as part of the polymer project is also
167
- * subject to an additional IP rights grant found at
168
- * http://polymer.github.io/PATENTS.txt
169
- */const vi=new WeakMap,Pr=yt(e=>t=>{const n=vi.get(t);if(e===void 0&&t instanceof Qn){if(n!==void 0||!vi.has(t)){const i=t.committer.name;t.committer.element.removeAttribute(i)}}else e!==n&&t.setValue(e);vi.set(t,e)});var Oc=Object.create,wi=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,kr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Qt=e=>{throw TypeError(e)},Tr=(e,t,n)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mr=(e,t)=>wi(e,"name",{value:t,configurable:!0}),Or=e=>[,,,Oc((e==null?void 0:e[kr("metadata")])??null)],Lr=["class","method","getter","setter","accessor","field","value","get","set"],We=e=>e!==void 0&&typeof e!="function"?Qt("Function expected"):e,Nc=(e,t,n,i,s)=>({kind:Lr[e],name:t,metadata:i,addInitializer:r=>n._?Qt("Already initialized"):s.push(We(r||null))}),Ac=(e,t)=>Tr(t,kr("metadata"),e[3]),k=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},z=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Lr[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Lc(o<4?s:{get[n](){return V(this,r)},set[n](u){return Cn(this,r,u)}},n));o?l&&o<4&&Mr(r,(o>2?"set ":o>1?"get ":"")+n):Mr(s,n);for(var $=i.length-1;$>=0;$--)_=Nc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Rc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?V:Ic)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Cn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?We(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Qt("Object expected"):(We(c=a.get)&&(d.get=c),We(c=a.set)&&(d.set=c),We(c=a.init)&&S.unshift(c));return o||Ac(e,s),d&&wi(s,n,d),l?o^4?r:d:s},F=(e,t,n)=>Tr(e,typeof t!="symbol"?t+"":t,n),yi=(e,t,n)=>t.has(e)||Qt("Cannot "+n),Rc=(e,t)=>Object(t)!==t?Qt('Cannot use the "in" operator on this value'):e.has(t),V=(e,t,n)=>(yi(e,t,"read from private field"),n?n.call(e):t.get(e)),st=(e,t,n)=>t.has(e)?Qt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Cn=(e,t,n,i)=>(yi(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Ic=(e,t,n)=>(yi(e,t,"access private method"),n),Nr,Ar,Rr,Ir,Hr,Wr,Gr,xr,zr,Vr,Dr,Fr,qr,Ur,Br,Si,jr,y,Gt,Yt,Ge,Pn,$i,xe,kn,Ei,bi,Ci,Pi,ki,Kr,Ti,Jr;const Qr="_";class Hc extends RegExp{constructor(t){let n=0;super(`^${t.replace(/((:[^/$]+)|(\*))/g,(i,s)=>s==="*"?`(?<${Qr}${n++}>.*)`:`(?<${s.slice(1)}>[^/]+)`)}$`)}}function Mi(e,t){if(window.URLPattern){const r=new window.URLPattern({pathname:e}),c=r.exec({pathname:t})||r.exec({pathname:`${t}/`});return c?c.pathname.groups:null}const n=new Hc(e),i=t.match(n)||`${t}/`.match(n);if(!i)return null;const s={};return i.groups&&Object.entries(i.groups).forEach(([r,c])=>{s[r.startsWith(Qr)?r.slice(1):r]=c}),s}function Tn(e,t){let n=0,i=e.pattern.replaceAll("*",()=>`:${n++}`);const s=t==null?void 0:t.params;return s&&Object.keys(s).forEach(r=>{i=i.replace(new RegExp(`:${r}`,"g"),s[r])}),i}function Yr(e,t){return{path:Tn(e,t),...t}}const Oi=it``,Xr=new Map;jr=[hi({penetrable:!0})];class I extends(Si=q,Br=[Ne],Ur=[U],qr=[U],Fr=[U],Dr=[Jt],Vr=[Jt],zr=[Jt],xr=[Jt],Gr=[U],Wr=[U],Hr=[U],Ir=[dt(t=>[t.scrollContainer])],Rr=[dt(t=>[t.scrollContainer])],Ar=[dt(t=>{var n;return V(n=t,Ci).call(n)})],Nr=[ci(t=>!t.inert)],Si){constructor(){super(...arguments),st(this,Gt),F(this,"transition",k(y,8,this)),k(y,11,this),F(this,"routes",k(y,12,this)),k(y,15,this),F(this,"locationStore",k(y,16,this)),k(y,19,this),F(this,"key",k(y,20,this)),k(y,23,this),F(this,"loading",k(y,24,this)),k(y,27,this),F(this,"beforeroutechange",k(y,28,this)),k(y,31,this),F(this,"routechange",k(y,32,this)),k(y,35,this),F(this,"error",k(y,36,this)),k(y,39,this),F(this,"scrollContainer",k(y,40,this)),k(y,43,this),F(this,"scrollIgnoreHash",k(y,44,this)),k(y,47,this),F(this,"trigger",k(y,48,this,N)),k(y,51,this),F(this,"currentRoute"),F(this,"currentParams",{}),st(this,Ge,h.createState({content:Oi})),st(this,Pn,()=>{if(!this.locationStore)return;const{path:t,query:n,hash:i,data:s}=N.getParams();this.locationStore({path:t,params:this.currentParams,query:n,hash:i,data:s})}),st(this,$i,()=>{if(!V(this,Gt,Yt))return;const t=Xr.get(N.currentKey);t?V(this,Gt,Yt).scroll(0,t):(this.scrollIgnoreHash||!N.getParams().hash)&&V(this,Gt,Yt).scroll(0,0)}),st(this,xe),st(this,kn,(t,n,i)=>{this.beforeroutechange(t),Cn(this,xe,void 0),this.currentRoute=t,this.currentParams=n;const s=async()=>{V(this,Ge).call(this,{content:i}),V(this,Pn).call(this),await Promise.resolve(),V(this,$i).call(this),this.routechange(this.currentRoute)};this.transition&&"startViewTransition"in document?document.startViewTransition(()=>s()):s()}),st(this,Ei,k(y,52,this,()=>{if(V(this,Gt,Yt))return Zn(N,"beforechange",()=>Xr.set(N.currentKey,V(this,Gt,Yt).scrollTop))})),k(y,55,this),st(this,bi,k(y,56,this,()=>this.trigger.store&&ht(this.trigger.store,()=>V(this,Ge).call(this)))),k(y,59,this),st(this,Ci,()=>{const{path:t,query:n,hash:i}=this.trigger.getParams();return[this.key,t,n,i]}),st(this,Pi,k(y,60,this,([t,n],i)=>{if(i&&t===i[0]&&n===i[1]){V(this,Pn).call(this);return}this.update()})),k(y,63,this),st(this,ki,k(y,64,this,()=>{const{content:t}=V(this,Ge);if(t!==void 0)return this.shadowRoot?it`
170
- <style>
171
- :host(:where(:not([hidden]))),
172
- :not(:defined) {
173
- display: contents;
174
- }
175
- </style>
176
- ${t===Oi?it`<slot></slot>`:t}
177
- `:t===Oi?void 0:it`${t}`})),k(y,67,this),F(this,"update",()=>{const{path:t,hash:n,query:i}=this.trigger.getParams(),{route:s,params:r={}}=Xt.findRoute(this.routes,t),{redirect:c,content:a,getContent:f}=s||{};if(c){this.trigger.replace({path:Tn({pattern:c},{params:r}),query:i,hash:n});return}this.trigger===N&&(location.href!==Mt.url||s!=null&&s.title)&&Mt({url:location.href,title:s==null?void 0:s.title});const _=a||(f==null?void 0:f(r,this.shadowRoot||this));if(this.loading(s),_ instanceof Promise){Cn(this,xe,_);const m=()=>V(this,xe)===_;_.then(o=>{m()&&V(this,kn).call(this,s,r,o)}).catch(o=>{m()&&this.error(o)});return}V(this,kn).call(this,s,r,_)})}}y=Or(Si),Gt=new WeakSet,Yt=function(){return typeof this.scrollContainer=="function"?this.scrollContainer():this.scrollContainer},Ge=new WeakMap,Pn=new WeakMap,$i=new WeakMap,xe=new WeakMap,kn=new WeakMap,Ei=new WeakMap,bi=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,ki=new WeakMap,z(y,5,"transition",Br,I),z(y,5,"routes",Ur,I),z(y,5,"locationStore",qr,I),z(y,5,"key",Fr,I),z(y,5,"loading",Dr,I),z(y,5,"beforeroutechange",Vr,I),z(y,5,"routechange",zr,I),z(y,5,"error",xr,I),z(y,5,"scrollContainer",Gr,I),z(y,5,"scrollIgnoreHash",Wr,I),z(y,5,"trigger",Hr,I),z(y,21,"#rememberScrollPosition",Ir,Ei),z(y,21,"#connectTriggerStore",Rr,bi),z(y,21,"#updateContent",Ar,Pi),z(y,21,"#content",Nr,ki),I=z(y,0,"GemLightRouteElement",jr,I),F(I,"createLocationStore",()=>{const{path:e,query:t,hash:n,data:i}=N.getParams();return bt({path:e,query:t,hash:n,data:i,params:{}})}),F(I,"findRoute",(e=[],t)=>{let n=null,i;e instanceof Array?i=e:i=Object.values(e);for(const s of i)if(s.pattern==="*")n=s;else{const r=Mi(s.pattern,t);if(r)return{route:s,params:r}}return{route:n}}),k(y,1,I),Kr=[Tt()];class Xt extends(Jr=I){}Ti=Or(Jr),Xt=z(Ti,0,"GemRouteElement",Kr,Xt),k(Ti,1,Xt);var Wc=Object.create,Li=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,Zr=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Zt=e=>{throw TypeError(e)},to=(e,t,n)=>t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eo=(e,t)=>Li(e,"name",{value:t,configurable:!0}),no=e=>[,,,Wc((e==null?void 0:e[Zr("metadata")])??null)],io=["class","method","getter","setter","accessor","field","value","get","set"],ze=e=>e!==void 0&&typeof e!="function"?Zt("Function expected"):e,xc=(e,t,n,i,s)=>({kind:io[e],name:t,metadata:i,addInitializer:r=>n._?Zt("Already initialized"):s.push(ze(r||null))}),zc=(e,t)=>to(t,Zr("metadata"),e[3]),P=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},W=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=io[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Gc(o<4?s:{get[n](){return rt(this,r)},set[n](u){return so(this,r,u)}},n));o?l&&o<4&&eo(r,(o>2?"set ":o>1?"get ":"")+n):eo(s,n);for(var $=i.length-1;$>=0;$--)_=xc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Vc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?rt:Dc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>so(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?ze(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Zt("Object expected"):(ze(c=a.get)&&(d.get=c),ze(c=a.set)&&(d.set=c),ze(c=a.init)&&S.unshift(c));return o||zc(e,s),d&&Li(s,n,d),l?o^4?r:d:s},K=(e,t,n)=>to(e,typeof t!="symbol"?t+"":t,n),Ni=(e,t,n)=>t.has(e)||Zt("Cannot "+n),Vc=(e,t)=>Object(t)!==t?Zt('Cannot use the "in" operator on this value'):e.has(t),rt=(e,t,n)=>(Ni(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?Zt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),so=(e,t,n,i)=>(Ni(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Dc=(e,t,n)=>(Ni(e,t,"access private method"),n),ro,oo,ao,co,lo,ho,uo,fo,po,_o,go,mo,vo,Ai,wo,E,Ot,Ve,yo,Ri,Ii,Hi,Wi,Gi,So,$o,Eo,xi,bo,Z,zi;function Co(e){return!e.startsWith("/")}const Fc=Oe(ti`
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */const Ic={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ui=n=>(...t)=>({_$litDirective$:n,values:t});class Hc{constructor(t){$(this,"__part");$(this,"__attributeIndex");$(this,"__directive");$(this,"_$parent");$(this,"_$disconnectableChildren")}get _$isConnected(){return this._$parent._$isConnected}_$initialize(t,e,i){this.__part=t,this._$parent=e,this.__attributeIndex=i}_$resolve(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const nr=()=>document.createComment(""),We=(n,t,e)=>{var r;const i=n._$startNode.parentNode,s=t===void 0?n._$endNode:t._$startNode;if(e===void 0){const a=i.insertBefore(nr(),s),c=i.insertBefore(nr(),s);e=new Re(a,c,n,n.options)}else{const a=e._$endNode.nextSibling,c=e._$parent,l=c!==n;if(l){(r=e._$reparentDisconnectables)==null||r.call(e,n),e._$parent=n;let u;e._$notifyConnectionChanged!==void 0&&(u=n._$isConnected)!==c._$isConnected&&e._$notifyConnectionChanged(u)}if(a!==s||l){let u=e._$startNode;for(;u!==a;){const m=u.nextSibling;i.insertBefore(u,s),u=m}}}return e},Wt=(n,t,e=n)=>(n._$setValue(t,e),n),Wc={},zc=(n,t=Wc)=>n._$committedValue=t,Gc=n=>n._$committedValue,_i=n=>{var i;(i=n._$notifyConnectionChanged)==null||i.call(n,!1,!0);let t=n._$startNode;const e=n._$endNode.nextSibling;for(;t!==e;){const s=t.nextSibling;t.remove(),t=s}},ir=(n,t,e)=>{const i=new Map;for(let s=t;s<=e;s++)i.set(n[s],s);return i};class Vc extends Hc{constructor(e){super(e);$(this,"_itemKeys");if(e.type!==Ic.CHILD)throw new Error("repeat() can only be used in text expressions")}_getValuesAndKeys(e,i,s){let r;s===void 0?s=i:i!==void 0&&(r=i);const a=[],c=[];let l=0;for(const u of e)a[l]=r?r(u,l):l,c[l]=s(u,l),l++;return{values:c,keys:a}}render(e,i,s){return this._getValuesAndKeys(e,i,s).values}update(e,[i,s,r]){const a=Gc(e),{values:c,keys:l}=this._getValuesAndKeys(i,s,r);if(!Array.isArray(a))return this._itemKeys=l,c;const u=this._itemKeys??(this._itemKeys=[]),m=[];let o,g,h=0,v=a.length-1,y=0,E=c.length-1;for(;h<=v&&y<=E;)if(a[h]===null)h++;else if(a[v]===null)v--;else if(u[h]===l[y])m[y]=Wt(a[h],c[y]),h++,y++;else if(u[v]===l[E])m[E]=Wt(a[v],c[E]),v--,E--;else if(u[h]===l[E])m[E]=Wt(a[h],c[E]),We(e,m[E+1],a[h]),h++,E--;else if(u[v]===l[y])m[y]=Wt(a[v],c[y]),We(e,a[h],a[v]),v--,y++;else if(o===void 0&&(o=ir(l,y,E),g=ir(u,h,v)),!o.has(u[h]))_i(a[h]),h++;else if(!o.has(u[v]))_i(a[v]),v--;else{const k=g.get(l[y]),p=k!==void 0?a[k]:null;if(p===null){const T=We(e,a[h]);Wt(T,c[y]),m[y]=T}else m[y]=Wt(p,c[y]),We(e,a[h],p),a[k]=null;y++}for(;y<=E;){const k=We(e,m[E+1]);Wt(k,c[y]),m[y++]=k}for(;h<=v;){const k=a[h++];k!==null&&_i(k)}return this._itemKeys=l,zc(e,m),oi}}const sr=ui(Vc),{assign:rr,defineProperty:Dc}=Object;Dc(Symbol,"metadata",{value:Symbol.for("Symbol.metadata")});const or=n=>typeof n=="function"&&n(),Et=Symbol.for("gem@sheetToken"),ze=Symbol.for("gem@update"),ar="gem-style-boundary",Pn="gem@render-error",xc=ze,fi=new WeakMap,cr=new WeakMap;class Uc extends CSSStyleSheet{constructor(){super(...arguments);C(this,ut);$(this,"cssText","")}get element(){return f(this,ut)||(A(this,ut,document.createElement("style")),f(this,ut).textContent=this.cssText,f(this,ut).dataset.gemStyle=""),f(this,ut)}replaceSync(e){this.cssText=e,f(this,ut)&&(f(this,ut).textContent=e),super.replaceSync(e)}}ut=new WeakMap;class qc{constructor(t=""){C(this,Bt,"");C(this,fn,"");C(this,ye,new Map);C(this,we,new Map);A(this,fn,t)}setContent(t){A(this,Bt,t)}getStyle(t){var r;const e=t&&!((r=t.internals)!=null&&r.shadowRoot),i=e?t.constructor:this;if(!f(this,ye).has(i)){const a=new Uc({media:f(this,fn)});f(this,ye).set(i,a)}const s=f(this,ye).get(i);if(!f(this,we).has(s)){let a=f(this,Bt),c="";e&&(c=`@scope (${t.tagName}) to (:state(${ar}) > *)`,a=`${c}{ ${a} }`),s.replaceSync(a),f(this,we).set(s,c)}return s}updateStyle(){f(this,we).forEach((t,e)=>{e.replaceSync(t?`${t}{${f(this,Bt)}}`:f(this,Bt))})}}Bt=new WeakMap,fn=new WeakMap,ye=new WeakMap,we=new WeakMap;function Xt(n,...t){let e="",i="";const s=t.at(0);Array.isArray(n)?i=di(n,...t):s!==void 0?(e=n,i=s):i=n;const r=new qc(e),a={[Et]:r};let c="";return typeof i=="string"?c=i:Object.keys(i).forEach(l=>{const u=l==="$";a[l]=u||l.includes("-")?l:`${l}-${Cn()}`,c+=`${u?":where(:scope:not([hidden])),:host(:where(:not([hidden])))":`.${a[l]}`} {${i[l]}}`}),r.setContent(c),a}const hr=(n,t,e)=>{let i=!1;t.forEach(s=>{const r=n.get(s)||0;i||(i=e===1&&r===0||e===-1&&r===1),n.set(s,r+e)}),i&&wt(cr.get(n))},Fc=(n,t)=>{const e=n.getRootNode();if(!fi.has(e)){const s=new Map;fi.set(e,s),cr.set(s,()=>{const r=e.adoptedStyleSheets.filter(a=>!s.has(a));s.forEach((a,c)=>a&&r.push(c)),e.adoptedStyleSheets=r.reverse()})}const i=fi.get(e);return hr(i,t,1),()=>hr(i,t,-1)};d.createState=void 0;function lr(n){n==null||n.forEach(t=>{const{callback:e,getDep:i,values:s,preCallback:r}=t,a=i==null?void 0:i();(!i||!s||tr(s,a))&&(or(r),t.preCallback=e(a,s),t.values=a,t.initialized=!0)})}function dr(n){return n.filter(t=>(or(t.preCallback),t.initialized=!1,t.values=void 0,t.fixed))}const Bc=st`
12
+ <style>
13
+ :host {
14
+ display: none !important;
15
+ }
16
+ @scope {
17
+ :scope {
18
+ display: none !important;
19
+ }
20
+ }
21
+ </style>
22
+ `;d._createTemplate=void 0;const te=new Zs,pi=(n=performance.now())=>{if(performance.now()>n+16)return requestAnimationFrame(pi);const t=te.get();t&&(t(),pi(n))};te.addEventListener("start",()=>wt(pi));let ur;const Me=class Me extends HTMLElement{constructor(){super();C(this,lt);C(this,Ee);C(this,it);C(this,_t,[]);C(this,Kt,[]);C(this,vt,[]);C(this,Ce);C(this,ht);C(this,be);C(this,Te);C(this,jt);C(this,Qn,()=>{lr(f(this,_t))});C(this,Jn,()=>{lr(f(this,Kt))});C(this,pn,e=>{try{A(this,Te,!0),f(this,Jn).call(this);const i=f(this,Ee)===this,s=e?e.render():i?void 0:st`<slot></slot>`;if(A(this,Te,!1),s===void 0)return;En(s===null?Bc:s,f(this,Ee))}catch(i){throw this.dispatchEvent(new CustomEvent(Pn,{bubbles:!0,composed:!0,detail:i})),i}});C(this,Pe,()=>{const e=f(this,lt,Is);f(this,ht)&&(e||!f(this,vt).length)&&(f(this,pn).call(this,e),wt(f(this,Qn)))});C(this,Qt,()=>{f(this,lt,Oe).noBlocking?te.add(f(this,Pe)):f(this,Pe).call(this)});C(this,mn,()=>{const{adoptedStyleSheets:e=[]}=f(this,lt,Oe),{shadowRoot:i,sheets:s}=f(this,it),r=e.map(a=>a[Et].getStyle(this));if(i)i.adoptedStyleSheets=r.concat(s);else return this.prepend(...s.map(a=>a.element)),Fc(this,r)});C(this,Yn,()=>{var e;(e=f(this,_t))==null||e.forEach(i=>{const{callback:s,getDep:r,initialized:a}=i;a||(i.values=r==null?void 0:r(),i.preCallback=s(i.values),i.initialized=!0)})});C(this,Zn,()=>{var e;this.willMount&&this.memo(this.willMount.bind(this),()=>[]),this.mounted&&this.effect(this.mounted.bind(this),()=>[]),this.updated&&this.effect((i,s)=>s&&this.updated.apply(this)),this.unmounted&&this.effect(()=>this.unmounted.bind(this),()=>[]),!f(this,vt).length&&this.render&&f(this,vt).push({render:this.render.bind(this),condition:(e=this.shouldUpdate)==null?void 0:e.bind(this)})});C(this,gn);C(this,ke,async()=>{var r;if(f(this,Ce)){A(this,Ce,!1),(r=f(this,jt))==null||r.call(this),A(this,jt,f(this,mn).call(this));return}A(this,be,!0),f(this,Zn).call(this);const{observedStores:e,mode:i,penetrable:s}=f(this,lt,Oe);!i&&f(this,vt).length&&!s&&f(this,it).states.add(ar),A(this,gn,e==null?void 0:e.map(a=>dt(a,f(this,Qt)))),f(this,pn).call(this,f(this,lt,Is)),A(this,ht,!0),A(this,jt,f(this,mn).call(this)),await Promise.resolve(),f(this,Yn).call(this)});$(this,"effect",(e,i)=>{const s={callback:e,getDep:i,initialized:f(this,ht),fixed:!f(this,be)};f(this,ht)&&(s.values=i==null?void 0:i(),s.preCallback=e(s.values)),f(this,_t).push(s)});$(this,"memo",(e,i)=>{f(this,Kt).push({callback:e,getDep:i,fixed:!f(this,be)})});$(this,"update",()=>wt(f(this,Qt)));ur=this;const{mode:e,serializable:i,delegatesFocus:s,slotAssignment:r,aria:a}=f(this,lt,Oe),{focusable:c,...l}=a||{};A(this,Ee,e?this.attachShadow({mode:e,serializable:i,delegatesFocus:s,slotAssignment:r}):this),A(this,it,this.attachInternals()),f(this,it).stateList=[],f(this,it).sheets=[],rr(f(this,it),l);let u;f(this,_t).push({fixed:!0,getDep:()=>[this.disabled],callback:([m=!1])=>{if(u===void 0&&(u=this.hasAttribute("tabindex")),f(this,it).ariaDisabled=String(m),c&&!u&&(this.tabIndex=-Number(m)),(c||s)&&m)return li(this,"click",o=>o.isTrusted&&o.stopImmediatePropagation(),{capture:!0})}})}[xc](){f(this,ht)&&wt(f(this,Qt))}get internals(){return f(this,it)}connectedCallback(){return f(this,lt,Oe).noBlocking?te.add(f(this,ke)):f(this,ke).call(this),f(Me,Se)}adoptedCallback(){return f(Me,Se)}disconnectedCallback(){var e,i;if(this.isConnected){A(this,Ce,!0);return}return te.delete(f(this,ke)),te.delete(f(this,Pe)),A(this,ht,!1),(e=f(this,gn))==null||e.forEach(s=>s()),A(this,_t,dr(f(this,_t))),A(this,Kt,dr(f(this,Kt))),(i=f(this,jt))==null||i.call(this),f(Me,Se)}};Se=new WeakMap,Ee=new WeakMap,it=new WeakMap,_t=new WeakMap,Kt=new WeakMap,vt=new WeakMap,Ce=new WeakMap,ht=new WeakMap,be=new WeakMap,Te=new WeakMap,jt=new WeakMap,lt=new WeakSet,Oe=function(){return this.constructor[Symbol.metadata]},Is=function(){return f(this,vt).findLast(e=>!e.condition||e.condition())},Qn=new WeakMap,Jn=new WeakMap,pn=new WeakMap,Pe=new WeakMap,Qt=new WeakMap,mn=new WeakMap,Yn=new WeakMap,Zn=new WeakMap,gn=new WeakMap,ke=new WeakMap,C(Me,Se,Symbol()),d.createState=e=>{const i=ur,s=Ie(e,r=>{const a=f(i,_t).at(0);if(f(i,ht)&&a&&!a.initialized)throw new ft("Do't set state sync before insert the DOM");rr(s,r),!f(i,Te)&&f(i,ht)&&wt(f(i,Qt))});return f(i,it).stateList.push(s),s},d._createTemplate=(e,i)=>f(e,vt).push(i);let F=Me;const Kc=Object.freeze(Object.defineProperty({__proto__:null,GemElement:F,SheetToken:Et,TemplateResult:wn,UpdateToken:ze,_RenderErrorEvent:Pn,get _createTemplate(){return d._createTemplate},createRef:Js,get createState(){return d.createState},css:Xt,directive:ui,html:st,mathml:js,render:En,repeat:sr,svg:Ks},Symbol.toStringTag,{value:"Module"})),_r="0.0.0",jc=Object.freeze(Object.defineProperty({__proto__:null,version:_r},Symbol.toStringTag,{value:"Module"})),{deleteProperty:Qc,getOwnPropertyDescriptor:fr,defineProperty:kn}=Reflect,{getPrototypeOf:ee,assign:pr}=Object,mr=new Xs;function Ct(n,t,e){var s;const i=n.metadata;fr(i,t)||kn(i,t,{value:((s=i[t])==null?void 0:s.filter(r=>r!==e))||[]}),i[t].push(e)}function Mn(n,t){const{value:e}=fr(n,t);Qc(n,t),n[t]=e}const Ge=new WeakMap,{setAttribute:gr,toggleAttribute:Jc,removeAttribute:vr}=Element.prototype;F.prototype.setAttribute=function(n,t){var i;const e=(i=Ge.get(ee(this)))==null?void 0:i.get(n);if(!e)return gr.call(this,n,t);this[e]=t},F.prototype.removeAttribute=function(n){var e;const t=(e=Ge.get(ee(this)))==null?void 0:e.get(n);if(!t)return vr.call(this,n);this[t]=null},F.prototype.toggleAttribute=function(n,t){var i;const e=(i=Ge.get(ee(this)))==null?void 0:i.get(n);return e?this[e]=t??!this.hasAttribute(n):Jc.call(this,n,t)};function Yc(){}const $r=Symbol("event handle");function mi(n,t,{attr:e,attrType:i,event:s,eventOptions:r}={}){kn(n,t,{configurable:!0,get(){const a=mr.get(this)[t];return s&&!a?(this[t]=Yc,this[t]):a},set(a){const c=this,l=mr.get(c);e&&(a=i===Boolean&&a===""?!0:i(a||""),a?gr.call(this,e,i===Boolean?"":a):vr.call(this,e)),a!==l[t]&&(s?(l[t]=a!=null&&a[$r]?a:async(u,m)=>{await Promise.resolve();const o=new CustomEvent(s,{...m,...r,detail:u});c.dispatchEvent(o),await a(u,m)},l[t][$r]=!0):(l[t]=a,this[ze]()))}})}const yr=new WeakMap;function On(n,{metadata:t}){const e=yr.get(t);if(e)return e;let i=n;do i=ee(i);while(i.constructor[Symbol.metadata]!==t);return yr.set(t,i),i}function gi(n,t){const e=n.name,i=Ht(e);return n.addInitializer(function(){const s=On(this,n);s.hasOwnProperty(e)||(Ct(n,"observedAttributes",i),mi(s,e,{attr:i,attrType:t})),Mn(this,e);const r=ee(this),a=Ge.get(r)||new Map;a.set(i,e),Ge.set(r,a)}),function(s){return this.getAttribute(i)??s}}function U(n,t){return gi(t,String)}function Ve(n,t){return gi(t,Boolean)}function wr(n,t){return gi(t,Number)}function B(n,t){const e=t.name;return t.addInitializer(function(){const i=On(this,t);i.hasOwnProperty(e)||(Ct(t,"observedProperties",e),mi(i,e)),Mn(this,e)}),function(i){return this[e]??i}}function vi(n){return function(t,e){const{addInitializer:i,name:s,access:r,kind:a}=e;i(function(){const c=n&&(()=>n(this));if(a==="getter"){if(e.private)throw new ft("not support");this.memo(()=>kn(this,s,{configurable:!0,value:r.get(this)}),c)}else this.memo(r.get(this).bind(this),c)})}}function pt(n){return function(t,{addInitializer:e,access:i}){e(function(){this.effect(i.get(this).bind(this),n&&(()=>n(this)))})}}function Sr(){return function(n,{addInitializer:t,access:e}){t(function(){this.effect(()=>e.get(this).bind(this),()=>[])})}}function An(){return vi(()=>[])}function ne(){return pt(()=>[])}function zt(n){return function(t,{addInitializer:e,access:i}){e(function(){d._createTemplate(this,{render:i.get(this).bind(this),condition:n&&(()=>n(this))})})}}function Er(){return function(n,{addInitializer:t,access:e}){t(function(){this.addEventListener(Pn,({detail:i})=>{En(e.get(this).apply(this,[i]),this.internals.shadowRoot||this)})})}}function Zc(n,t,e){kn(n,t,{configurable:!0,get(){const i=this,{states:s}=i.internals;return s==null?void 0:s.has(e)},set(i){const s=this,{states:r}=s.internals;i?r==null||r.add(e):r==null||r.delete(e)}})}function De(n,t){const e=t.name,i=Ht(e);t.addInitializer(function(){const s=On(this,t);s.hasOwnProperty(e)||(Ct(t,"definedCSSStates",i),Zc(s,e,i)),Mn(this,e)})}function Cr(n,t,e,i){const s=n.name,r=Ht(s);if(n.static)Ct(n,e,r);else{const a=ee(t);a[s]||(a[s]=r,Ct(n,e,r))}return i||r}function br(n,t){return function(e){return Cr(t,this,"definedSlots",e)}}function $i(n,t){return function(e){return Cr(t,this,"definedParts",e)}}function ie(n,t){Pr(t)}function Tr(n,t){Pr(t,{bubbles:!0,composed:!0})}function Pr(n,t){const e=n.name,i=Ht(e);n.addInitializer(function(){const s=On(this,n);s.hasOwnProperty(e)||(Ct(n,"definedEvents",i),mi(s,e,{event:i,eventOptions:t})),Mn(this,e)})}function xe(n){return function(t,e){Ct(e,"adoptedStyleSheets",n)}}function Ue(n){return function(t,e){Ct(e,"observedStores",n)}}function bt({mode:n="open",serializable:t=!0,delegatesFocus:e,slotAssignment:i}={}){return function(s,r){const a=r.metadata;pr(a,{mode:n,serializable:t,delegatesFocus:e,slotAssignment:i})}}function yi({penetrable:n}){return function(t,e){const i=e.metadata;i.penetrable=n}}function kr(){return function(n,t){const e=t.metadata;e.noBlocking=!0}}function qe(n){return function(t,e){const i=e.metadata;i.aria={...i.aria,...n}}}function Mr(n){return function(t,{addInitializer:e}){e(function(){customElements.define(n,t)})}}window.__GEM_DEVTOOLS__HOOK__&&!window.__GEM_DEVTOOLS__HOOK__.GemElement&&pr(window.__GEM_DEVTOOLS__HOOK__,{...Kc,...O,...Rc,...jc});const Z=window.history,Or=Z.pushState.bind(Z),Ar=Z.replaceState.bind(Z);let Xc=0;const wi=()=>`${performance.now()}-${++Xc}`,L=St({$hasCloseHandle:!1,$hasOpenHandle:!1,$hasShouldCloseHandle:!1,$key:""}),K=new Map;function Lr(n){const{$key:t,$hasCloseHandle:e,$hasOpenHandle:i,$hasShouldCloseHandle:s}=n||{};if(L.$key!==t){if(t)throw new ft("`$key` is not allowed");if(e)throw new ft("`$hasCloseHandle` is not allowed");if(i)throw new ft("`$hasOpenHandle` is not allowed");if(s)throw new ft("`$hasShouldCloseHandle` is not allowed")}}function Nr(n){return X.basePath?X.basePath+n:n}function Si(n){return n===X.basePath?"/":n.replace(new RegExp(`^${X.basePath}/`),"/")}function Ei(){X.dispatchEvent(new CustomEvent("beforechange"))}function Ln(n){const t=K.get(L.$key)||{path:Si(location.pathname),query:new Zt},e=n.path?hi(t.path,n.path):Si(location.pathname),i=new Zt(n.query??(n.path?"":location.search)),s=String(i)!==String(t.query),r=s?i:t.query,a=e!==t.path||s,c=n.title||(a?"":document.title),l=n.close||n.data||n.open||n.shouldClose,u=decodeURIComponent(n.hash??(!a&&l?location.hash:""));return{...n,title:c,path:e,query:r,hash:u}}function Rr(n,t){Lr(n.data);const e=Ln(n),{title:i,path:s,query:r,hash:a,close:c,open:l,shouldClose:u,data:m}=e,o={$hasCloseHandle:!!c,$hasOpenHandle:!!l,$hasShouldCloseHandle:!!u,$key:wi(),$title:i,...m};K.set(o.$key,e),Ei(),bn(L),L(o);const g=Nr(s)+new Zt(r)+a,h=decodeURIComponent(location.hash);t(o,i,g),h!==a&&window.dispatchEvent(new CustomEvent("hashchange"))}function Ir(n,t,e,i){Lr(n);const s={$key:wi(),$title:t,...n||{}},{pathname:r,search:a,hash:c}=new URL(e,location.origin+location.pathname),l=Ln({path:r,query:new Zt(a),hash:c,title:t,data:n});K.set(s.$key,l),Ei(),bn(L),L(s);const u=Nr(r)+l.query+c,m=location.hash;i(s,t,u),m!==c&&window.dispatchEvent(new CustomEvent("hashchange"))}const Ci=St({basePath:""});class th extends EventTarget{get store(){return L}get currentKey(){return L.$key}get basePath(){return Ci.basePath}set basePath(t){Ci({basePath:t}),Object.assign(K.get(L.$key),{path:Si(location.pathname)})}getParams(){return K.get(L.$key)}updateParams(t){Object.assign(K.get(L.$key),t),L()}push(t){Rr(t,Or)}replace(t){Rr(t,Ar)}pushIgnoreCloseHandle(t){var e,i;L.$hasCloseHandle?((i=(e=K.get(L.$key))==null?void 0:e.close)==null||i.call(e),this.replace(t)):this.push(t)}forward(){Z.forward()}back(){Z.back()}}const X=new th,Fe=St({defaultTitle:document.title,url:"",title:""}),eh={history:X,titleStore:Fe,basePathStore:Ci};if(!window._GEMHISTORY){if(window._GEMHISTORY=eh,Z.pushState=function(t,e,i){Ir(t,e,i,Or)},Z.replaceState=function(t,e,i){Ir(t,e,i,Ar)},window.addEventListener("hashchange",({isTrusted:t})=>{t&&X.replace({hash:location.hash})}),Z.state)if(Z.state.$hasCloseHandle){L(Z.state);const t=Ln({title:document.title});K.set(L.$key,t),X.back()}else{const t=Ln({title:document.title,hash:location.hash});L({$key:wi(),...Z.state||{}}),K.set(L.$key,t)}else{const{protocol:t,pathname:e,search:i,hash:s}=location;t.startsWith("http")&&X.replace({path:e,query:i,hash:s})}dt(Fe,()=>{const t=K.get(L.$key);t&&(t.title=Fe.title)}),dt(L,()=>{const{title:t}=X.getParams();t!==Fe.title&&Fe({title:t})});let n=!1;window.addEventListener("popstate",t=>{var r,a;const e=t.state;if(!(e!=null&&e.$key))return;if(n){n=!1;return}if(!K.has(e.$key)){const{pathname:c,search:l,hash:u}=location;K.set(e.$key,{path:c,query:new Zt(l),hash:decodeURIComponent(u),title:e.$title,data:e})}const i=L;if(parseFloat(e.$key)>parseFloat(i.$key)&&e.$hasOpenHandle)(a=(r=K.get(e.$key))==null?void 0:r.open)==null||a.call(r);else if(i.$hasCloseHandle){const c=K.get(i.$key),l=c==null?void 0:c.close,u=c==null?void 0:c.shouldClose;if(u&&!u()){n=!0,X.forward();return}else l?l():e.$hasCloseHandle&&(n=!0,X.back())}Ei(),bn(L),L(e)})}const{history:N,titleStore:Tt,basePathStore:Hr}=window._GEMHISTORY;var nh=Object.create,bi=Object.defineProperty,ih=Object.getOwnPropertyDescriptor,Wr=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),se=n=>{throw TypeError(n)},zr=(n,t,e)=>t in n?bi(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Gr=(n,t)=>bi(n,"name",{value:t,configurable:!0}),Vr=n=>[,,,nh((n==null?void 0:n[Wr("metadata")])??null)],Dr=["class","method","getter","setter","accessor","field","value","get","set"],Be=n=>n!==void 0&&typeof n!="function"?se("Function expected"):n,sh=(n,t,e,i,s)=>({kind:Dr[n],name:t,metadata:i,addInitializer:r=>e._?se("Already initialized"):s.push(Be(r||null))}),rh=(n,t)=>zr(t,Wr("metadata"),n[3]),P=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},D=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=Dr[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&ih(o<4?s:{get[e](){return x(this,r)},set[e](_){return Nn(this,r,_)}},e));o?h&&o<4&&Gr(r,(o>2?"set ":o>1?"get ":"")+e):Gr(s,e);for(var T=i.length-1;T>=0;T--)u=sh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>oh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?x:ah)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>Nn(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?Be(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?se("Object expected"):(Be(a=c.get)&&(p.get=a),Be(a=c.set)&&(p.set=a),Be(a=c.init)&&E.unshift(a));return o||rh(n,s),p&&bi(s,e,p),h?o^4?r:p:s},q=(n,t,e)=>zr(n,typeof t!="symbol"?t+"":t,e),Ti=(n,t,e)=>t.has(n)||se("Cannot "+e),oh=(n,t)=>Object(t)!==t?se('Cannot use the "in" operator on this value'):n.has(t),x=(n,t,e)=>(Ti(n,t,"read from private field"),e?e.call(n):t.get(n)),rt=(n,t,e)=>t.has(n)?se("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),Nn=(n,t,e,i)=>(Ti(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),ah=(n,t,e)=>(Ti(n,t,"access private method"),e),xr,Ur,qr,Fr,Br,Kr,jr,Qr,Jr,Yr,Zr,Xr,to,eo,no,Pi,io,w,Gt,re,Ke,Rn,ki,je,In,Mi,Oi,Ai,Li,Ni,so,Ri,ro;const oo="_";class ch extends RegExp{constructor(t){let e=0;super(`^${t.replace(/((:[^/$]+)|(\*))/g,(i,s)=>s==="*"?`(?<${oo}${e++}>.*)`:`(?<${s.slice(1)}>[^/]+)`)}$`)}}function Ii(n,t){if(window.URLPattern){const r=new window.URLPattern({pathname:n}),a=r.exec({pathname:t})||r.exec({pathname:`${t}/`});return a?a.pathname.groups:null}const e=new ch(n),i=t.match(e)||`${t}/`.match(e);if(!i)return null;const s={};return i.groups&&Object.entries(i.groups).forEach(([r,a])=>{s[r.startsWith(oo)?r.slice(1):r]=a}),s}function Hn(n,t){let e=0,i=n.pattern.replaceAll("*",()=>`:${e++}`);const s=t==null?void 0:t.params;return s&&Object.keys(s).forEach(r=>{i=i.replace(new RegExp(`:${r}`,"g"),s[r])}),i}function ao(n,t){return{path:Hn(n,t),...t}}const Hi=st``,co=new Map;io=[yi({penetrable:!0})];class I extends(Pi=F,no=[Ve],eo=[B],to=[B],Xr=[B],Zr=[ie],Yr=[ie],Jr=[ie],Qr=[ie],jr=[B],Kr=[B],Br=[B],Fr=[pt(t=>[t.scrollContainer])],qr=[pt(t=>[t.scrollContainer])],Ur=[pt(t=>{var e;return x(e=t,Ai).call(e)})],xr=[zt(t=>!t.inert)],Pi){constructor(){super(...arguments),rt(this,Gt),q(this,"transition",P(w,8,this)),P(w,11,this),q(this,"routes",P(w,12,this)),P(w,15,this),q(this,"locationStore",P(w,16,this)),P(w,19,this),q(this,"key",P(w,20,this)),P(w,23,this),q(this,"loading",P(w,24,this)),P(w,27,this),q(this,"beforeroutechange",P(w,28,this)),P(w,31,this),q(this,"routechange",P(w,32,this)),P(w,35,this),q(this,"error",P(w,36,this)),P(w,39,this),q(this,"scrollContainer",P(w,40,this)),P(w,43,this),q(this,"scrollIgnoreHash",P(w,44,this)),P(w,47,this),q(this,"trigger",P(w,48,this,N)),P(w,51,this),q(this,"currentRoute"),q(this,"currentParams",{}),rt(this,Ke,d.createState({content:Hi})),rt(this,Rn,()=>{if(!this.locationStore)return;const{path:t,query:e,hash:i,data:s}=N.getParams();this.locationStore({path:t,params:this.currentParams,query:e,hash:i,data:s})}),rt(this,ki,()=>{if(!x(this,Gt,re))return;const t=co.get(N.currentKey);t?x(this,Gt,re).scroll(0,t):(this.scrollIgnoreHash||!N.getParams().hash)&&x(this,Gt,re).scroll(0,0)}),rt(this,je),rt(this,In,(t,e,i)=>{this.beforeroutechange(t),Nn(this,je,void 0),this.currentRoute=t,this.currentParams=e;const s=async()=>{x(this,Ke).call(this,{content:i}),x(this,Rn).call(this),await Promise.resolve(),x(this,ki).call(this),this.routechange(this.currentRoute)};this.transition&&"startViewTransition"in document?document.startViewTransition(()=>s()):s()}),rt(this,Mi,P(w,52,this,()=>{if(x(this,Gt,re))return li(N,"beforechange",()=>co.set(N.currentKey,x(this,Gt,re).scrollTop))})),P(w,55,this),rt(this,Oi,P(w,56,this,()=>this.trigger.store&&dt(this.trigger.store,()=>x(this,Ke).call(this)))),P(w,59,this),rt(this,Ai,()=>{const{path:t,query:e,hash:i}=this.trigger.getParams();return[this.key,t,e,i]}),rt(this,Li,P(w,60,this,([t,e],i)=>{if(i&&t===i[0]&&e===i[1]){x(this,Rn).call(this);return}this.update()})),P(w,63,this),rt(this,Ni,P(w,64,this,()=>{const{content:t}=x(this,Ke);if(t!==void 0)return this.shadowRoot?t===Hi?st`<slot></slot>`:t:t===Hi?void 0:st`${t}`})),P(w,67,this),q(this,"update",()=>{const{path:t,hash:e,query:i}=this.trigger.getParams(),{route:s,params:r={}}=oe.findRoute(this.routes,t),{redirect:a,content:c,getContent:l}=s||{};if(a){this.trigger.replace({path:Hn({pattern:a},{params:r}),query:i,hash:e});return}this.trigger===N&&(location.href!==Tt.url||s!=null&&s.title)&&Tt({url:location.href,title:s==null?void 0:s.title});const u=c||(l==null?void 0:l(r,this.shadowRoot||this));if(this.loading(s),u instanceof Promise){Nn(this,je,u);const m=()=>x(this,je)===u;u.then(o=>{m()&&x(this,In).call(this,s,r,o)}).catch(o=>{m()&&this.error(o)});return}x(this,In).call(this,s,r,u)})}}w=Vr(Pi),Gt=new WeakSet,re=function(){return typeof this.scrollContainer=="function"?this.scrollContainer():this.scrollContainer},Ke=new WeakMap,Rn=new WeakMap,ki=new WeakMap,je=new WeakMap,In=new WeakMap,Mi=new WeakMap,Oi=new WeakMap,Ai=new WeakMap,Li=new WeakMap,Ni=new WeakMap,D(w,5,"transition",no,I),D(w,5,"routes",eo,I),D(w,5,"locationStore",to,I),D(w,5,"key",Xr,I),D(w,5,"loading",Zr,I),D(w,5,"beforeroutechange",Yr,I),D(w,5,"routechange",Jr,I),D(w,5,"error",Qr,I),D(w,5,"scrollContainer",jr,I),D(w,5,"scrollIgnoreHash",Kr,I),D(w,5,"trigger",Br,I),D(w,21,"#rememberScrollPosition",Fr,Mi),D(w,21,"#connectTriggerStore",qr,Oi),D(w,21,"#updateContent",Ur,Li),D(w,21,"#content",xr,Ni),I=D(w,0,"GemLightRouteElement",io,I),q(I,"createLocationStore",()=>{const{path:n,query:t,hash:e,data:i}=N.getParams();return St({path:n,query:t,hash:e,data:i,params:{}})}),q(I,"findRoute",(n=[],t)=>{let e=null,i;n instanceof Array?i=n:i=Object.values(n);for(const s of i)if(s.pattern==="*")e=s;else{const r=Ii(s.pattern,t);if(r)return{route:s,params:r}}return{route:e}}),P(w,1,I);const hh=Xt`
23
+ :host(:where(:not([hidden]))),
24
+ :not(:defined) {
25
+ display: contents;
26
+ }
27
+ `;so=[bt(),xe(hh)];class oe extends(ro=I){}Ri=Vr(ro),oe=D(Ri,0,"GemRouteElement",so,oe),P(Ri,1,oe);var lh=Object.create,Wi=Object.defineProperty,dh=Object.getOwnPropertyDescriptor,ho=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),ae=n=>{throw TypeError(n)},lo=(n,t,e)=>t in n?Wi(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,uo=(n,t)=>Wi(n,"name",{value:t,configurable:!0}),_o=n=>[,,,lh((n==null?void 0:n[ho("metadata")])??null)],fo=["class","method","getter","setter","accessor","field","value","get","set"],Qe=n=>n!==void 0&&typeof n!="function"?ae("Function expected"):n,uh=(n,t,e,i,s)=>({kind:fo[n],name:t,metadata:i,addInitializer:r=>e._?ae("Already initialized"):s.push(Qe(r||null))}),_h=(n,t)=>lo(t,ho("metadata"),n[3]),b=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},H=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=fo[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&dh(o<4?s:{get[e](){return ot(this,r)},set[e](_){return po(this,r,_)}},e));o?h&&o<4&&uo(r,(o>2?"set ":o>1?"get ":"")+e):uo(s,e);for(var T=i.length-1;T>=0;T--)u=uh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>fh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?ot:ph)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>po(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?Qe(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?ae("Object expected"):(Qe(a=c.get)&&(p.get=a),Qe(a=c.set)&&(p.set=a),Qe(a=c.init)&&E.unshift(a));return o||_h(n,s),p&&Wi(s,e,p),h?o^4?r:p:s},j=(n,t,e)=>lo(n,typeof t!="symbol"?t+"":t,e),zi=(n,t,e)=>t.has(n)||ae("Cannot "+e),fh=(n,t)=>Object(t)!==t?ae('Cannot use the "in" operator on this value'):n.has(t),ot=(n,t,e)=>(zi(n,t,"read from private field"),e?e.call(n):t.get(n)),Vt=(n,t,e)=>t.has(n)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),po=(n,t,e,i)=>(zi(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),ph=(n,t,e)=>(zi(n,t,"access private method"),e),mo,go,vo,$o,yo,wo,So,Eo,Co,bo,To,Po,ko,Mo,Gi,Oo,S,Pt,Je,Ao,Vi,Di,xi,Ui,qi,Fi,Lo,No,Ro,Bi,Io,tt,Ki;function Ho(n){return!n.startsWith("/")}const mh=Xt`
178
28
  :host {
179
29
  /* link default style */
180
30
  cursor: pointer;
@@ -188,16 +38,13 @@
188
38
  a:visited {
189
39
  color: unset;
190
40
  }
191
- `);wo=[Re(Sr),En(Fc),Tt(),Ie({focusable:!0})];class G extends(Ai=q,vo=[D],mo=[D],go=[D],_o=[D],po=[D],fo=[D],uo=[Ne],ho=[U],lo=[U],co=[U],ao=[U],oo=[li],ro=[Kt()],Ai){constructor(){super(...arguments),P(E,5,this),te(this,Ot),K(this,"href",P(E,8,this)),P(E,11,this),K(this,"target",P(E,12,this)),P(E,15,this),K(this,"path",P(E,16,this)),P(E,19,this),K(this,"query",P(E,20,this)),P(E,23,this),K(this,"hash",P(E,24,this)),P(E,27,this),K(this,"hint",P(E,28,this)),P(E,31,this),K(this,"preload",P(E,32,this)),P(E,35,this),K(this,"route",P(E,36,this)),P(E,39,this),K(this,"options",P(E,40,this)),P(E,43,this),K(this,"routeOptions",P(E,44,this)),P(E,47,this),K(this,"prepare",P(E,48,this)),P(E,51,this),K(this,"link",P(E,52,this)),P(E,55,this),te(this,Ri,async()=>{var r;const t=this.getLocationString();if(!t)return;if(Co(t))switch(this.target){case"_self":window.location.href=t;return;case"_parent":window.parent.location.href=t;return;case"_top":window.top.location.href=t;return;default:window.open(t);return}const{path:n,query:i,hash:s}=N.getParams();if(n+i+s!==t)if(await((r=this.prepare)==null?void 0:r.call(this)),this.route)N.pushIgnoreCloseHandle(Yr(this.route,rt(this,Ot,Ve)));else if(this.href){const c=new URL(t,location.origin);N.pushIgnoreCloseHandle({path:c.pathname,query:c.search,hash:c.hash})}else N.pushIgnoreCloseHandle({path:this.path,query:this.query,hash:this.hash})}),te(this,Ii,t=>{t.preventDefault()}),te(this,Hi,()=>{const t=this.getLocationString();return Co(t)?t:new URL(N.basePath+t,location.origin).toString()}),te(this,Wi,()=>{var t,n,i;(t=this.route)==null||t.content,(i=(n=this.route)==null?void 0:n.getContent)==null||i.call(n,{},this.shadowRoot)})}render(){return it`
192
- <a
193
- part=${this.link}
194
- @click=${rt(this,Ii)}
195
- href=${Pr(rt(this,Ot,yo)==="off"?void 0:rt(this,Hi).call(this))}
196
- tabindex="-1"
197
- >
198
- <slot></slot>
199
- </a>
200
- `}getLocationString(){var t,n;if(this.route){const i=((t=rt(this,Ot,Ve))==null?void 0:t.query)||"",s=((n=rt(this,Ot,Ve))==null?void 0:n.hash)||"";return Tn(this.route,rt(this,Ot,Ve))+i+s}else{const i=this.href||this.path+this.query+this.hash,{path:s,query:r}=N.getParams();return i.startsWith("#")?`${s}${r}${i}`:i.startsWith("?")?`${s}${i}`:i.startsWith(".")?Xn(s,i):i}}}E=no(Ai),Ot=new WeakSet,Ve=function(){return this.routeOptions||this.options},yo=function(){return this.hint||"on"},Ri=new WeakMap,Ii=new WeakMap,Hi=new WeakMap,Wi=new WeakMap,Gi=function(){this.addEventListener("click",rt(this,Ri)),this.addEventListener("pointerenter",rt(this,Wi))},Gi=W(E,17,"#init",ro,Ot,Gi),W(E,5,"href",vo,G),W(E,5,"target",mo,G),W(E,5,"path",go,G),W(E,5,"query",_o,G),W(E,5,"hash",po,G),W(E,5,"hint",fo,G),W(E,5,"preload",uo,G),W(E,5,"route",ho,G),W(E,5,"options",lo,G),W(E,5,"routeOptions",co,G),W(E,5,"prepare",ao,G),W(E,5,"link",oo,G),G=W(E,0,"GemLinkElement",wo,G),P(E,1,G),bo=[Re(N.store)];class xt extends(xi=G,Eo=[D],$o=[Ae],So=[dt()],xi){constructor(){super(...arguments),K(this,"pattern",P(Z,8,this)),P(Z,11,this),K(this,"active",P(Z,12,this)),P(Z,15,this),te(this,zi,P(Z,16,this,()=>{const{path:t,query:n,hash:i}=N.getParams(),s=this.pattern&&Mi(this.pattern,t);this.active=!!s||t+n+i===this.getLocationString()})),P(Z,19,this)}}Z=no(xi),zi=new WeakMap,W(Z,5,"pattern",Eo,xt),W(Z,5,"active",$o,xt),W(Z,21,"#updateState",So,zi),xt=W(Z,0,"GemActiveLinkElement",bo,xt),P(Z,1,xt),customElements.define("gem-link",G),customElements.define("gem-active-link",xt),customElements.define("gem-route",Xt),customElements.define("gem-light-route",I);var qc=Object.create,Vi=Object.defineProperty,Uc=Object.getOwnPropertyDescriptor,Po=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ee=e=>{throw TypeError(e)},ko=(e,t,n)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,To=(e,t)=>Vi(e,"name",{value:t,configurable:!0}),Bc=e=>[,,,qc((e==null?void 0:e[Po("metadata")])??null)],Mo=["class","method","getter","setter","accessor","field","value","get","set"],De=e=>e!==void 0&&typeof e!="function"?ee("Function expected"):e,jc=(e,t,n,i,s)=>({kind:Mo[e],name:t,metadata:i,addInitializer:r=>n._?ee("Already initialized"):s.push(De(r||null))}),Kc=(e,t)=>ko(t,Po("metadata"),e[3]),ot=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},ne=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Mo[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Uc(o<4?s:{get[n](){return Fi(this,r)},set[n](u){return Oo(this,r,u)}},n));o?l&&o<4&&To(r,(o>2?"set ":o>1?"get ":"")+n):To(s,n);for(var $=i.length-1;$>=0;$--)_=jc(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Jc(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Fi:Qc)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Oo(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?De(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ee("Object expected"):(De(c=a.get)&&(d.get=c),De(c=a.set)&&(d.set=c),De(c=a.init)&&S.unshift(c));return o||Kc(e,s),d&&Vi(s,n,d),l?o^4?r:d:s},Fe=(e,t,n)=>ko(e,typeof t!="symbol"?t+"":t,n),Di=(e,t,n)=>t.has(e)||ee("Cannot "+n),Jc=(e,t)=>Object(t)!==t?ee('Cannot use the "in" operator on this value'):e.has(t),Fi=(e,t,n)=>(Di(e,t,"read from private field"),n?n.call(e):t.get(e)),qi=(e,t,n)=>t.has(e)?ee("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Oo=(e,t,n,i)=>(Di(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Qc=(e,t,n)=>(Di(e,t,"access private method"),n),Lo,No,Ao,Ro,Io,Ui,Ho,x,Bi,ji,Ki;let Wo=0;const Go=e=>{clearTimeout(Wo),Wo=window.setTimeout(()=>document.title=e)};function Yc(e,t="",n=""){const i=Mt.title||e;i&&i!==Mt.defaultTitle?(ie.title=i,Go(t+ie.title+n)):(ie.title=Mt.defaultTitle,Go(ie.title))}Ho=[Tt()];let Lt=class Da extends(Ui=q,Io=[D],Ro=[D],Ao=[Ne],No=[dt(t=>[t.inert])],Lo=[Kt()],Ui){constructor(){super(...arguments),Fe(this,"prefix",ot(x,8,this)),ot(x,11,this),Fe(this,"suffix",ot(x,12,this)),ot(x,15,this),Fe(this,"inert",ot(x,16,this)),ot(x,19,this),qi(this,Bi,ot(x,20,this,()=>!this.inert&&ht(Mt,this.update))),ot(x,23,this),qi(this,ji,new MutationObserver(()=>this.update())),qi(this,Ki,ot(x,24,this,()=>{Fi(this,ji).observe(this,{characterData:!0,childList:!0,subtree:!0})})),ot(x,27,this),Fe(this,"render",()=>{var t;return Yc((t=this.textContent)==null?void 0:t.trim(),this.prefix,this.suffix),it`${Da.title}`})}static setTitle(t){Mt({title:t})}};x=Bc(Ui),Bi=new WeakMap,ji=new WeakMap,Ki=new WeakMap,ne(x,5,"prefix",Io,Lt),ne(x,5,"suffix",Ro,Lt),ne(x,5,"inert",Ao,Lt),ne(x,21,"#connectStore",No,Bi),ne(x,21,"#obTextContent",Lo,Ki),Lt=ne(x,0,"GemTitleElement",Ho,Lt),Fe(Lt,"title",document.title),ot(x,1,Lt);let ie=Lt;customElements.define("gem-title",ie);var Xc=Object.create,Ji=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,xo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),se=e=>{throw TypeError(e)},zo=(e,t,n)=>t in e?Ji(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vo=(e,t)=>Ji(e,"name",{value:t,configurable:!0}),tl=e=>[,,,Xc((e==null?void 0:e[xo("metadata")])??null)],Do=["class","method","getter","setter","accessor","field","value","get","set"],qe=e=>e!==void 0&&typeof e!="function"?se("Function expected"):e,el=(e,t,n,i,s)=>({kind:Do[e],name:t,metadata:i,addInitializer:r=>n._?se("Already initialized"):s.push(qe(r||null))}),nl=(e,t)=>zo(t,xo("metadata"),e[3]),ft=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Ue=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Do[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Zc(o<4?s:{get[n](){return Yi(this,r)},set[n](u){return Fo(this,r,u)}},n));o?l&&o<4&&Vo(r,(o>2?"set ":o>1?"get ":"")+n):Vo(s,n);for(var $=i.length-1;$>=0;$--)_=el(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>il(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Yi:rl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Fo(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?qe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?se("Object expected"):(qe(c=a.get)&&(d.get=c),qe(c=a.set)&&(d.set=c),qe(c=a.init)&&S.unshift(c));return o||nl(e,s),d&&Ji(s,n,d),l?o^4?r:d:s},Mn=(e,t,n)=>zo(e,typeof t!="symbol"?t+"":t,n),Qi=(e,t,n)=>t.has(e)||se("Cannot "+n),il=(e,t)=>Object(t)!==t?se('Cannot use the "in" operator on this value'):e.has(t),Yi=(e,t,n)=>(Qi(e,t,"read from private field"),n?n.call(e):t.get(e)),sl=(e,t,n)=>t.has(e)?se("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Fo=(e,t,n,i)=>(Qi(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),rl=(e,t,n)=>(Qi(e,t,"access private method"),n),qo,Uo,Bo,jo,Xi,Ko,B,Zi;const ol=Oe(ti`
41
+ `;Oo=[Ue(Hr),xe(mh),bt(),qe({focusable:!0})];class G extends(Gi=F,Mo=[U],ko=[U],Po=[U],To=[U],bo=[U],Co=[U],Eo=[Ve],So=[B],wo=[B],yo=[B],$o=[B],vo=[$i],go=[ne()],mo=[zt()],Gi){constructor(){super(...arguments),b(S,5,this),Vt(this,Pt),j(this,"href",b(S,8,this)),b(S,11,this),j(this,"target",b(S,12,this)),b(S,15,this),j(this,"path",b(S,16,this)),b(S,19,this),j(this,"query",b(S,20,this)),b(S,23,this),j(this,"hash",b(S,24,this)),b(S,27,this),j(this,"hint",b(S,28,this)),b(S,31,this),j(this,"preload",b(S,32,this)),b(S,35,this),j(this,"route",b(S,36,this)),b(S,39,this),j(this,"options",b(S,40,this)),b(S,43,this),j(this,"routeOptions",b(S,44,this)),b(S,47,this),j(this,"prepare",b(S,48,this)),b(S,51,this),j(this,"link",b(S,52,this)),b(S,55,this),Vt(this,Vi,async()=>{var r;const t=this._getLocationString();if(!t)return;if(Ho(t))switch(this.target){case"_self":window.location.href=t;return;case"_parent":window.parent.location.href=t;return;case"_top":window.top.location.href=t;return;default:window.open(t);return}const{path:e,query:i,hash:s}=N.getParams();if(e+i+s!==t)if(await((r=this.prepare)==null?void 0:r.call(this)),this.route)N.pushIgnoreCloseHandle(ao(this.route,ot(this,Pt,Je)));else if(this.href){const a=new URL(t,location.origin);N.pushIgnoreCloseHandle({path:a.pathname,query:a.search,hash:a.hash})}else N.pushIgnoreCloseHandle({path:this.path,query:this.query,hash:this.hash})}),Vt(this,Di,t=>t.preventDefault()),Vt(this,xi,()=>{const t=this._getLocationString();return Ho(t)?t:new URL(N.basePath+t,location.origin).toString()}),Vt(this,Ui,()=>{var t,e,i;(t=this.route)==null||t.content,(i=(e=this.route)==null?void 0:e.getContent)==null||i.call(e,{},this.shadowRoot)}),Vt(this,Fi,b(S,56,this,()=>st`<a
42
+ part=${this.link}
43
+ @click=${ot(this,Di)}
44
+ href=${ot(this,Pt,Ao)==="off"?null:ot(this,xi).call(this)}
45
+ tabindex="-1"
46
+ ><slot></slot
47
+ ></a>`)),b(S,59,this)}_getLocationString(){var t,e;if(this.route){const i=((t=ot(this,Pt,Je))==null?void 0:t.query)||"",s=((e=ot(this,Pt,Je))==null?void 0:e.hash)||"";return Hn(this.route,ot(this,Pt,Je))+i+s}else{const i=this.href||this.path+this.query+this.hash,{path:s,query:r}=N.getParams();return i.startsWith("#")?`${s}${r}${i}`:i.startsWith("?")?`${s}${i}`:i.startsWith(".")?hi(s,i):i}}}S=_o(Gi),Pt=new WeakSet,Je=function(){return this.routeOptions||this.options},Ao=function(){return this.hint||"on"},Vi=new WeakMap,Di=new WeakMap,xi=new WeakMap,Ui=new WeakMap,qi=function(){this.addEventListener("click",ot(this,Vi)),this.addEventListener("pointerenter",ot(this,Ui))},Fi=new WeakMap,qi=H(S,17,"#init",go,Pt,qi),H(S,5,"href",Mo,G),H(S,5,"target",ko,G),H(S,5,"path",Po,G),H(S,5,"query",To,G),H(S,5,"hash",bo,G),H(S,5,"hint",Co,G),H(S,5,"preload",Eo,G),H(S,5,"route",So,G),H(S,5,"options",wo,G),H(S,5,"routeOptions",yo,G),H(S,5,"prepare",$o,G),H(S,5,"link",vo,G),H(S,21,"#content",mo,Fi),G=H(S,0,"GemLinkElement",Oo,G),b(S,1,G),Io=[Ue(N.store)];class Dt extends(Bi=G,Ro=[U],No=[De],Lo=[pt()],Bi){constructor(){super(...arguments),j(this,"pattern",b(tt,8,this)),b(tt,11,this),j(this,"active",b(tt,12,this)),b(tt,15,this),Vt(this,Ki,b(tt,16,this,()=>{const{path:t,query:e,hash:i}=N.getParams(),s=this.pattern&&Ii(this.pattern,t);this.active=!!s||t+e+i===this._getLocationString()})),b(tt,19,this)}}tt=_o(Bi),Ki=new WeakMap,H(tt,5,"pattern",Ro,Dt),H(tt,5,"active",No,Dt),H(tt,21,"#updateState",Lo,Ki),Dt=H(tt,0,"GemActiveLinkElement",Io,Dt),b(tt,1,Dt),customElements.define("gem-link",G),customElements.define("gem-active-link",Dt),customElements.define("gem-route",oe),customElements.define("gem-light-route",I);var gh=Object.create,ji=Object.defineProperty,vh=Object.getOwnPropertyDescriptor,Wo=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),ce=n=>{throw TypeError(n)},zo=(n,t,e)=>t in n?ji(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Go=(n,t)=>ji(n,"name",{value:t,configurable:!0}),$h=n=>[,,,gh((n==null?void 0:n[Wo("metadata")])??null)],Vo=["class","method","getter","setter","accessor","field","value","get","set"],Ye=n=>n!==void 0&&typeof n!="function"?ce("Function expected"):n,yh=(n,t,e,i,s)=>({kind:Vo[n],name:t,metadata:i,addInitializer:r=>e._?ce("Already initialized"):s.push(Ye(r||null))}),wh=(n,t)=>zo(t,Wo("metadata"),n[3]),J=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},xt=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=Vo[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&vh(o<4?s:{get[e](){return Ji(this,r)},set[e](_){return Do(this,r,_)}},e));o?h&&o<4&&Go(r,(o>2?"set ":o>1?"get ":"")+e):Go(s,e);for(var T=i.length-1;T>=0;T--)u=yh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>Sh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?Ji:Eh)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>Do(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?Ye(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?ce("Object expected"):(Ye(a=c.get)&&(p.get=a),Ye(a=c.set)&&(p.set=a),Ye(a=c.init)&&E.unshift(a));return o||wh(n,s),p&&ji(s,e,p),h?o^4?r:p:s},Wn=(n,t,e)=>zo(n,typeof t!="symbol"?t+"":t,e),Qi=(n,t,e)=>t.has(n)||ce("Cannot "+e),Sh=(n,t)=>Object(t)!==t?ce('Cannot use the "in" operator on this value'):n.has(t),Ji=(n,t,e)=>(Qi(n,t,"read from private field"),e?e.call(n):t.get(n)),zn=(n,t,e)=>t.has(n)?ce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),Do=(n,t,e,i)=>(Qi(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),Eh=(n,t,e)=>(Qi(n,t,"access private method"),e),xo,Uo,qo,Fo,Bo,Ko,Yi,jo,R,Zi,Xi,ts,es;let Qo=0;const Jo=n=>{clearTimeout(Qo),Qo=window.setTimeout(()=>document.title=n)};function Ch(n,t="",e=""){const i=Tt.title||n;i&&i!==Tt.defaultTitle?(he.title=i,Jo(t+he.title+e)):(he.title=Tt.defaultTitle,Jo(he.title))}jo=[bt()];let kt=class ic extends(Yi=F,Ko=[U],Bo=[U],Fo=[Ve],qo=[pt(t=>[t.inert])],Uo=[ne()],xo=[zt()],Yi){constructor(){super(...arguments),Wn(this,"prefix",J(R,8,this)),J(R,11,this),Wn(this,"suffix",J(R,12,this)),J(R,15,this),Wn(this,"inert",J(R,16,this)),J(R,19,this),zn(this,Zi,J(R,20,this,()=>!this.inert&&dt(Tt,this.update))),J(R,23,this),zn(this,Xi,new MutationObserver(()=>this.update())),zn(this,ts,J(R,24,this,()=>{Ji(this,Xi).observe(this,{characterData:!0,childList:!0,subtree:!0})})),J(R,27,this),zn(this,es,J(R,28,this,()=>{var t;return Ch((t=this.textContent)==null?void 0:t.trim(),this.prefix,this.suffix),st`${ic.title}`})),J(R,31,this)}static setTitle(t){Tt({title:t})}};R=$h(Yi),Zi=new WeakMap,Xi=new WeakMap,ts=new WeakMap,es=new WeakMap,xt(R,5,"prefix",Ko,kt),xt(R,5,"suffix",Bo,kt),xt(R,5,"inert",Fo,kt),xt(R,21,"#connectStore",qo,Zi),xt(R,21,"#obTextContent",Uo,ts),xt(R,21,"#content",xo,es),kt=xt(R,0,"GemTitleElement",jo,kt),Wn(kt,"title",document.title),J(R,1,kt);let he=kt;customElements.define("gem-title",he);var bh=Object.create,ns=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Yo=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),le=n=>{throw TypeError(n)},Zo=(n,t,e)=>t in n?ns(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Xo=(n,t)=>ns(n,"name",{value:t,configurable:!0}),Ph=n=>[,,,bh((n==null?void 0:n[Yo("metadata")])??null)],ta=["class","method","getter","setter","accessor","field","value","get","set"],Ze=n=>n!==void 0&&typeof n!="function"?le("Function expected"):n,kh=(n,t,e,i,s)=>({kind:ta[n],name:t,metadata:i,addInitializer:r=>e._?le("Already initialized"):s.push(Ze(r||null))}),Mh=(n,t)=>Zo(t,Yo("metadata"),n[3]),at=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},de=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=ta[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&Th(o<4?s:{get[e](){return ss(this,r)},set[e](_){return na(this,r,_)}},e));o?h&&o<4&&Xo(r,(o>2?"set ":o>1?"get ":"")+e):Xo(s,e);for(var T=i.length-1;T>=0;T--)u=kh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>Oh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?ss:Ah)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>na(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?Ze(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?le("Object expected"):(Ze(a=c.get)&&(p.get=a),Ze(a=c.set)&&(p.set=a),Ze(a=c.init)&&E.unshift(a));return o||Mh(n,s),p&&ns(s,e,p),h?o^4?r:p:s},Gn=(n,t,e)=>Zo(n,typeof t!="symbol"?t+"":t,e),is=(n,t,e)=>t.has(n)||le("Cannot "+e),Oh=(n,t)=>Object(t)!==t?le('Cannot use the "in" operator on this value'):n.has(t),ss=(n,t,e)=>(is(n,t,"read from private field"),e?e.call(n):t.get(n)),ea=(n,t,e)=>t.has(n)?le("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),na=(n,t,e,i)=>(is(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),Ah=(n,t,e)=>(is(n,t,"access private method"),e),ia,sa,ra,oa,aa,rs,ca,V,os,as;const Lh=Xt`
201
48
  :host(:where(:not([hidden]))) {
202
49
  position: relative;
203
50
  display: inline-flex;
@@ -207,15 +54,11 @@
207
54
  width: 100%;
208
55
  height: 100%;
209
56
  }
210
- `),Jo=new Map;Ko=[Tt(),En(ol)];class pt extends(Xi=q,jo=[D],Bo=[U],Uo=[U],qo=[Ae],Xi){constructor(){super(...arguments),Mn(this,"selector",ft(B,8,this)),ft(B,11,this),Mn(this,"root",ft(B,12,this)),ft(B,15,this),Mn(this,"element",ft(B,16,this)),ft(B,19,this),Mn(this,"active",ft(B,20,this)),ft(B,23,this),sl(this,Zi,()=>{const t=this.element||(this.selector?(this.root||document).querySelector(this.selector):null);if(typeof t=="string"){let n=Jo.get(t);return n||(n=document.createElement("template"),n.innerHTML=t,Jo.set(t,n)),n.content.cloneNode(!0)}else return t instanceof HTMLTemplateElement?t.content.cloneNode(!0):t==null?void 0:t.cloneNode(!0)})}render(){return it`
211
- ${Yi(this,Zi).call(this)}
212
- <slot></slot>
213
- `}}B=tl(Xi),Zi=new WeakMap,Ue(B,5,"selector",jo,pt),Ue(B,5,"root",Bo,pt),Ue(B,5,"element",Uo,pt),Ue(B,5,"active",qo,pt),pt=Ue(B,0,"GemUseElement",Ko,pt),ft(B,1,pt),customElements.define("gem-use",pt);var al=Object.create,ts=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,Qo=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Be=e=>{throw TypeError(e)},Yo=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xo=(e,t)=>ts(e,"name",{value:t,configurable:!0}),ll=e=>[,,,al((e==null?void 0:e[Qo("metadata")])??null)],Zo=["class","method","getter","setter","accessor","field","value","get","set"],je=e=>e!==void 0&&typeof e!="function"?Be("Function expected"):e,hl=(e,t,n,i,s)=>({kind:Zo[e],name:t,metadata:i,addInitializer:r=>n._?Be("Already initialized"):s.push(je(r||null))}),ul=(e,t)=>Yo(t,Qo("metadata"),e[3]),Ke=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},es=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Zo[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&cl(o<4?s:{get[n](){return ea(this,r)},set[n](u){return na(this,r,u)}},n));o?l&&o<4&&Xo(r,(o>2?"set ":o>1?"get ":"")+n):Xo(s,n);for(var $=i.length-1;$>=0;$--)_=hl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>dl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?ea:fl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>na(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?Be("Object expected"):(je(c=a.get)&&(d.get=c),je(c=a.set)&&(d.set=c),je(c=a.init)&&S.unshift(c));return o||ul(e,s),d&&ts(s,n,d),l?o^4?r:d:s},ta=(e,t,n)=>Yo(e,typeof t!="symbol"?t+"":t,n),ns=(e,t,n)=>t.has(e)||Be("Cannot "+n),dl=(e,t)=>Object(t)!==t?Be('Cannot use the "in" operator on this value'):e.has(t),ea=(e,t,n)=>(ns(e,t,"read from private field"),n?n.call(e):t.get(e)),na=(e,t,n,i)=>(ns(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),fl=(e,t,n)=>(ns(e,t,"access private method"),n),ia,sa,is,ra,_t;ra=[Tt()];class zt extends(is=q,sa=[D],ia=[D],is){constructor(){super(...arguments),ta(this,"content",Ke(_t,8,this)),Ke(_t,11,this),ta(this,"contentcss",Ke(_t,12,this)),Ke(_t,15,this)}render(){this.shadowRoot.innerHTML=gn`
57
+ `,ha=new Map;ca=[bt(),xe(Lh)];class mt extends(rs=F,aa=[U],oa=[B],ra=[B],sa=[De],ia=[zt()],rs){constructor(){super(...arguments),Gn(this,"selector",at(V,8,this)),at(V,11,this),Gn(this,"root",at(V,12,this)),at(V,15,this),Gn(this,"element",at(V,16,this)),at(V,19,this),Gn(this,"active",at(V,20,this)),at(V,23,this),ea(this,os,()=>{const t=this.element||(this.selector?(this.root||document).querySelector(this.selector):null);if(typeof t=="string"){let e=ha.get(t);return e||(e=document.createElement("template"),e.innerHTML=t,ha.set(t,e)),e.content.cloneNode(!0)}else return t instanceof HTMLTemplateElement?t.content.cloneNode(!0):t==null?void 0:t.cloneNode(!0)}),ea(this,as,at(V,24,this,()=>st`${ss(this,os).call(this)}<slot></slot>`)),at(V,27,this)}}V=Ph(rs),os=new WeakMap,as=new WeakMap,de(V,5,"selector",aa,mt),de(V,5,"root",oa,mt),de(V,5,"element",ra,mt),de(V,5,"active",sa,mt),de(V,21,"#content",ia,as),mt=de(V,0,"GemUseElement",ca,mt),at(V,1,mt),customElements.define("gem-use",mt);var Nh=Object.create,cs=Object.defineProperty,Rh=Object.getOwnPropertyDescriptor,la=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),ue=n=>{throw TypeError(n)},da=(n,t,e)=>t in n?cs(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,ua=(n,t)=>cs(n,"name",{value:t,configurable:!0}),Ih=n=>[,,,Nh((n==null?void 0:n[la("metadata")])??null)],_a=["class","method","getter","setter","accessor","field","value","get","set"],Xe=n=>n!==void 0&&typeof n!="function"?ue("Function expected"):n,Hh=(n,t,e,i,s)=>({kind:_a[n],name:t,metadata:i,addInitializer:r=>e._?ue("Already initialized"):s.push(Xe(r||null))}),Wh=(n,t)=>da(t,la("metadata"),n[3]),Ut=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},Vn=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=_a[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&Rh(o<4?s:{get[e](){return pa(this,r)},set[e](_){return ma(this,r,_)}},e));o?h&&o<4&&ua(r,(o>2?"set ":o>1?"get ":"")+e):ua(s,e);for(var T=i.length-1;T>=0;T--)u=Hh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>zh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?pa:Vh)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>ma(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?Xe(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?ue("Object expected"):(Xe(a=c.get)&&(p.get=a),Xe(a=c.set)&&(p.set=a),Xe(a=c.init)&&E.unshift(a));return o||Wh(n,s),p&&cs(s,e,p),h?o^4?r:p:s},fa=(n,t,e)=>da(n,typeof t!="symbol"?t+"":t,e),hs=(n,t,e)=>t.has(n)||ue("Cannot "+e),zh=(n,t)=>Object(t)!==t?ue('Cannot use the "in" operator on this value'):n.has(t),pa=(n,t,e)=>(hs(n,t,"read from private field"),e?e.call(n):t.get(n)),Gh=(n,t,e)=>t.has(n)?ue("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),ma=(n,t,e,i)=>(hs(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),Vh=(n,t,e)=>(hs(n,t,"access private method"),e),ga,va,$a,ls,ya,et,ds;ya=[bt()];class qt extends(ls=F,$a=[U],va=[U],ga=[zt()],ls){constructor(){super(...arguments),fa(this,"content",Ut(et,8,this)),Ut(et,11,this),fa(this,"contentcss",Ut(et,12,this)),Ut(et,15,this),Gh(this,ds,Ut(et,16,this,()=>{const t=`
214
58
  <style>
215
59
  :host(:where(:not([hidden]))) {
216
60
  display: contents;
217
61
  }
218
62
  ${this.contentcss}
219
63
  </style>
220
- ${this.content}
221
- `}}_t=ll(is),es(_t,5,"content",sa,zt),es(_t,5,"contentcss",ia,zt),zt=es(_t,0,"GemUnsafeElement",ra,zt),Ke(_t,1,zt),customElements.define("gem-unsafe",zt);var pl=Object.create,ss=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,oa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),re=e=>{throw TypeError(e)},aa=(e,t,n)=>t in e?ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ca=(e,t)=>ss(e,"name",{value:t,configurable:!0}),gl=e=>[,,,pl((e==null?void 0:e[oa("metadata")])??null)],la=["class","method","getter","setter","accessor","field","value","get","set"],Je=e=>e!==void 0&&typeof e!="function"?re("Function expected"):e,ml=(e,t,n,i,s)=>({kind:la[e],name:t,metadata:i,addInitializer:r=>n._?re("Already initialized"):s.push(Je(r||null))}),ha=(e,t)=>aa(t,oa("metadata"),e[3]),Nt=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},On=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=la[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&_l(o<4?s:{get[n](){return At(this,r)},set[n](u){return os(this,r,u)}},n));o?l&&o<4&&ca(r,(o>2?"set ":o>1?"get ":"")+n):ca(s,n);for(var $=i.length-1;$>=0;$--)_=ml(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>vl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?At:wl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>os(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Je(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?re("Object expected"):(Je(c=a.get)&&(d.get=c),Je(c=a.set)&&(d.set=c),Je(c=a.init)&&S.unshift(c));return o||ha(e,s),d&&ss(s,n,d),l?o^4?r:d:s},ua=(e,t,n)=>aa(e,typeof t!="symbol"?t+"":t,n),rs=(e,t,n)=>t.has(e)||re("Cannot "+n),vl=(e,t)=>Object(t)!==t?re('Cannot use the "in" operator on this value'):e.has(t),At=(e,t,n)=>(rs(e,t,"read from private field"),n?n.call(e):t.get(e)),oe=(e,t,n)=>t.has(e)?re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),os=(e,t,n,i)=>(rs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),wl=(e,t,n)=>(rs(e,t,"access private method"),n),da,fa,pa,_a,as,J,cs,ga,ls,Ln,hs,Qe,us;const yl="gem-reflect-start",ma="gem-reflect-end",va=e=>new Comment(e),Sl=e=>{const t=[];let n=e;for(;n&&(t.push(n),n.nodeValue!==ma);)n=n.nextSibling;return t};class Ye extends(as=q,_a=[D],pa=[U],fa=[$n()],da=[dt(t=>[t.target])],as){constructor(){super(...arguments),oe(this,cs),ua(this,"method",Nt(J,8,this)),Nt(J,11,this),ua(this,"target",Nt(J,12,this,document.head)),Nt(J,15,this),oe(this,ls,Nt(J,16,this,()=>{this.hidden=!0,this.dataset.gemReflect=""})),Nt(J,19,this),oe(this,Ln,va(yl)),oe(this,hs,va(ma)),oe(this,Qe),oe(this,us,Nt(J,20,this,()=>((At(this,Qe)||[At(this,Ln),...this.childNodes,At(this,hs)]).forEach((t,n,i)=>{const s=i[n-1];s?s.after(t):this.target[At(this,cs,ga)](t)}),()=>{os(this,Qe,Sl(At(this,Ln))),At(this,Qe).forEach(t=>t.remove())}))),Nt(J,23,this)}}J=gl(as),cs=new WeakSet,ga=function(){return this.method||"append"},ls=new WeakMap,Ln=new WeakMap,hs=new WeakMap,Qe=new WeakMap,us=new WeakMap,On(J,5,"method",_a,Ye),On(J,5,"target",pa,Ye),On(J,21,"#init",fa,ls),On(J,21,"#changeTarget",da,us),ha(J,Ye),customElements.define("gem-reflect",Ye);var $l=Object.create,ds=Object.defineProperty,El=Object.getOwnPropertyDescriptor,wa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ae=e=>{throw TypeError(e)},ya=(e,t,n)=>t in e?ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sa=(e,t)=>ds(e,"name",{value:t,configurable:!0}),bl=e=>[,,,$l((e==null?void 0:e[wa("metadata")])??null)],$a=["class","method","getter","setter","accessor","field","value","get","set"],Xe=e=>e!==void 0&&typeof e!="function"?ae("Function expected"):e,Cl=(e,t,n,i,s)=>({kind:$a[e],name:t,metadata:i,addInitializer:r=>n._?ae("Already initialized"):s.push(Xe(r||null))}),Pl=(e,t)=>ya(t,wa("metadata"),e[3]),Ze=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},fs=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=$a[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&El(o<4?s:{get[n](){return Ea(this,r)},set[n](u){return Ca(this,r,u)}},n));o?l&&o<4&&Sa(r,(o>2?"set ":o>1?"get ":"")+n):Sa(s,n);for(var $=i.length-1;$>=0;$--)_=Cl(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>kl(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?Ea:Tl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>Ca(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?Xe(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ae("Object expected"):(Xe(c=a.get)&&(d.get=c),Xe(c=a.set)&&(d.set=c),Xe(c=a.init)&&S.unshift(c));return o||Pl(e,s),d&&ds(s,n,d),l?o^4?r:d:s},Nn=(e,t,n)=>ya(e,typeof t!="symbol"?t+"":t,n),ps=(e,t,n)=>t.has(e)||ae("Cannot "+n),kl=(e,t)=>Object(t)!==t?ae('Cannot use the "in" operator on this value'):e.has(t),Ea=(e,t,n)=>(ps(e,t,"read from private field"),n?n.call(e):t.get(e)),ba=(e,t,n)=>t.has(e)?ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ca=(e,t,n,i)=>(ps(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Tl=(e,t,n)=>(ps(e,t,"access private method"),n);const An=Symbol("open mark");function Ml(e){var t,n,i,s,r,c,a;const f=Symbol();s=[Tt(),Ie({role:"alertdialog",ariaModal:"true"})];let _=class Fa extends(i=q,n=[Kt()],t=[Kt()],i){constructor(){super(...arguments),Nn(this,"label",""),ba(this,c,Ze(r,8,this,()=>ht(N.store,this.update))),Ze(r,11,this),ba(this,a,Ze(r,12,this,()=>ht(Fa.store,this.update))),Ze(r,15,this)}static get isOpen(){return this.store[An]}static open(g){const l=new this;this.instance=l,this.inertStore=[...document.body.children].filter(w=>!w.inert),this.inertStore.forEach(w=>w.inert=!0),document.body.append(l);const v=()=>this.store({[An]:!0,...g});return setTimeout(()=>{v(),N.push({title:l.label,open:v,close:this.closeHandle.bind(this),shouldClose:this.shouldClose.bind(this)})},100),f}static close(){return N.back(),f}static closeHandle(){var g;return this.inertStore.forEach(l=>l.inert=!1),(g=this.instance)==null||g.remove(),this.store({[An]:!1,...e}),f}static shouldClose(){return!0}};return r=bl(i),c=new WeakMap,a=new WeakMap,fs(r,21,"#connectHistory",n,c),fs(r,21,"#connectStore",t,a),_=fs(r,0,"ModalElement",s,_),Nn(_,"inertStore",[]),Nn(_,"instance",null),Nn(_,"store",bt({[An]:!1,...e})),Ze(r,1,_),_}var Ol=Object.create,_s=Object.defineProperty,Ll=Object.getOwnPropertyDescriptor,Pa=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ce=e=>{throw TypeError(e)},ka=(e,t,n)=>t in e?_s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t)=>_s(e,"name",{value:t,configurable:!0}),Nl=e=>[,,,Ol((e==null?void 0:e[Pa("metadata")])??null)],Ma=["class","method","getter","setter","accessor","field","value","get","set"],tn=e=>e!==void 0&&typeof e!="function"?ce("Function expected"):e,Al=(e,t,n,i,s)=>({kind:Ma[e],name:t,metadata:i,addInitializer:r=>n._?ce("Already initialized"):s.push(tn(r||null))}),Rl=(e,t)=>ka(t,Pa("metadata"),e[3]),Vt=(e,t,n,i)=>{for(var s=0,r=e[t>>1],c=r&&r.length;s<c;s++)t&1?r[s].call(n):i=r[s].call(n,i);return i},Rn=(e,t,n,i,s,r)=>{var c,a,f,_,m,o=t&7,g=!!(t&8),l=!!(t&16),v=o>3?e.length+1:o?g?1:2:0,w=Ma[o+5],S=o>3&&(e[v-1]=[]),b=e[v]||(e[v]=[]),d=o&&(!l&&!g&&(s=s.prototype),o<5&&(o>3||!l)&&Ll(o<4?s:{get[n](){return at(this,r)},set[n](u){return nn(this,r,u)}},n));o?l&&o<4&&Ta(r,(o>2?"set ":o>1?"get ":"")+n):Ta(s,n);for(var $=i.length-1;$>=0;$--)_=Al(o,n,f={},e[3],b),o&&(_.static=g,_.private=l,m=_.access={has:l?u=>Il(s,u):u=>n in u},o^3&&(m.get=l?u=>(o^1?at:Hl)(u,s,o^4?r:d.get):u=>u[n]),o>2&&(m.set=l?(u,T)=>nn(u,s,T,o^4?r:d.set):(u,T)=>u[n]=T)),a=(0,i[$])(o?o<4?l?r:d[w]:o>4?void 0:{get:d.get,set:d.set}:s,_),f._=1,o^4||a===void 0?tn(a)&&(o>4?S.unshift(a):o?l?r=a:d[w]=a:s=a):typeof a!="object"||a===null?ce("Object expected"):(tn(c=a.get)&&(d.get=c),tn(c=a.set)&&(d.set=c),tn(c=a.init)&&S.unshift(c));return o||Rl(e,s),d&&_s(s,n,d),l?o^4?r:d:s},en=(e,t,n)=>ka(e,typeof t!="symbol"?t+"":t,n),gs=(e,t,n)=>t.has(e)||ce("Cannot "+n),Il=(e,t)=>Object(t)!==t?ce('Cannot use the "in" operator on this value'):e.has(t),at=(e,t,n)=>(gs(e,t,"read from private field"),n?n.call(e):t.get(e)),le=(e,t,n)=>t.has(e)?ce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),nn=(e,t,n,i)=>(gs(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Hl=(e,t,n)=>(gs(e,t,"access private method"),n),Oa,La,Na,ms,Aa,tt,sn,rn,on,vs,In,ws;const ys=Symbol();Aa=[Re(N.store),Ie({role:"dialog",ariaModal:"true"})];class he extends(ms=q,Na=[D],La=[Ae],Oa=[$n()],ms){constructor(){super(...arguments),en(this,"label",Vt(tt,8,this)),Vt(tt,11,this),en(this,"opened",Vt(tt,12,this)),Vt(tt,15,this),le(this,sn),le(this,rn),le(this,on,[]),le(this,vs,()=>{var t;this.inert=!0,at(this,on).forEach(n=>n.inert=!1),at(this,sn)?at(this,sn).before(this):at(this,rn)&&((t=at(this,rn))==null||t.appendChild(this)),this.dispatchEvent(new CustomEvent("close")),this.opened=!1}),le(this,In,()=>{this.hidden=!1,this.inert=!1,nn(this,sn,this.nextSibling),nn(this,rn,this.parentElement||this.getRootNode()),nn(this,on,[...document.body.children].filter(t=>!t.inert)),at(this,on).forEach(t=>t.inert=!0),document.body.append(this),this.dispatchEvent(new CustomEvent("open")),this.opened=!0}),le(this,ws,Vt(tt,16,this,()=>this.inert=!0)),Vt(tt,19,this),en(this,"open",()=>{if(!this.opened)return at(this,In).call(this),N.push({title:this.label,open:at(this,In),close:at(this,vs),shouldClose:this.shouldClose}),ys}),en(this,"close",()=>(N.back(),ys)),en(this,"forceClose",()=>(this.opened=!1,setTimeout(this.close,100),ys))}shouldClose(){return!0}}tt=Nl(ms),sn=new WeakMap,rn=new WeakMap,on=new WeakMap,vs=new WeakMap,In=new WeakMap,ws=new WeakMap,Rn(tt,5,"label",Na,he),Rn(tt,5,"opened",La,he),Rn(tt,21,"#init",Oa,ws),he=Rn(tt,0,"GemDialogBaseElement",Aa,he),Vt(tt,1,he);class Ra{constructor(t){A(this,"_type");A(this,"info",(...t)=>{console.log(`[${this._type}]:`,...t)});A(this,"warn",(...t)=>{console.warn(`[${this._type}]:`,...t)});A(this,"error",(...t)=>{console.error(`[${this._type}]:`,...t)});this._type=t}}const Ia=new Ra("GEM"),Wl=/\$\d(?:<[^>]*>)?/,Gl=/\$(\d)(<([^>]*)>)?/g,xl=3;function Ha(e,...t){const n=e.split(Wl),i=[];let s;for(;s=Gl.exec(e);){const r=s[xl],c=Number(s[1])-1,a=t[c];i.push(typeof a=="function"?a(r):a)}return it(n,...i)}const an=new Set,Es=class Es{constructor(t){C(this,H);A(this,"resources");A(this,"fallbackLanguage");A(this,"currentLanguage");A(this,"cache");A(this,"cachePrefix","gem-i18n");A(this,"urlParamsType");A(this,"urlParamsName");A(this,"onChange");A(this,"replace",({path:t})=>this.setLanguage(t));A(this,"getParams",()=>({path:this.currentLanguage}));C(this,fn,!0);if(!t.resources[t.fallbackLanguage])throw new Et("i18n: fallbackLanguage invalid");Object.assign(this,t);let n=p(this,H,qa)||this.currentLanguage||p(this,H,Ua);const i=document.querySelector(`[type*=${this.cachePrefix}]`);if(i)try{const s=JSON.parse(i.textContent||"");n=s.currentLanguage,this.resources[s.currentLanguage]=s.currentLanguagePack}catch{}n?(O(this,H,n,qn),this.setLanguage(n)):this.resetLanguage(),O(this,fn,!1)}get(t,...n){const i=this.resources[this.currentLanguage],s=this.resources[this.fallbackLanguage],r=i[t]||s[t],c=(r==null?void 0:r.message)||r||`[${t}]`;return n.length?Ha(c,...n):c}detectLanguage(){const t=Object.keys(this.resources),n=navigator.languages.map(i=>i.replace(/-(.*)/,s=>s.toUpperCase()));for(const i of n){const s=t.find(r=>r===i||i.startsWith(`${r}-`));if(s)return s}return this.fallbackLanguage}async setLanguage(t){var s,r;p(this,H,pn)&&an.forEach(async c=>await c.setLanguage(t));let n;const i=this.resources[t];if(!i)return Ia.warn(`${this.cachePrefix}: not found \`${t}\``),this.resetLanguage();if(typeof i=="string"){const c=`${this.cachePrefix}:`,a=`${c}${i}`,f=localStorage.getItem(a),_=async()=>{const m=await(await fetch(i)).json();if(this.cache){for(let o=0;o<localStorage.length;o++){const g=localStorage.key(o);g.startsWith(c)&&localStorage.removeItem(g)}localStorage.setItem(a,JSON.stringify(m))}return m};if(f)try{n=JSON.parse(f)}catch{n=await _()}else n=await _()}else n=i;if(this.resources[t]=n,!p(this,fn)){const c=[document.documentElement];for(;c.length;){const a=c.pop();(s=a[Me])==null||s.call(a),c.push(...[...a.children,...((r=a.shadowRoot)==null?void 0:r.children)||[]].reverse())}}return t!==this.currentLanguage&&O(this,H,t,qn),this.cache===!0&&this.setCache(),t}resetLanguage(){return p(this,H,pn)&&an.forEach(t=>t.resetLanguage()),O(this,H,this.fallbackLanguage,qn),this.cache&&localStorage.removeItem(p(this,H,Fn)),this.setLanguage(this.detectLanguage())}setCache(){p(this,H,pn)&&an.forEach(t=>t.setCache()),localStorage.setItem(p(this,H,Fn),this.currentLanguage)}createSubModule(t,n){const i=new Es({resources:n,cachePrefix:`${this.cachePrefix}-${t}`,currentLanguage:this.currentLanguage,fallbackLanguage:this.fallbackLanguage,cache:this.cache});return an.add(i),i}toJSON(){return{currentLanguage:this.currentLanguage,currentLanguagePack:this.resources[this.currentLanguage]}}};H=new WeakSet,Fn=function(){return`${this.cachePrefix}:current`},qa=function(){const{hostname:t,pathname:n,search:i}=location,s=t.split(".");switch(this.urlParamsType){case"ccTLD":return s.pop();case"gTLD":return s.shift();case"path":return n.split("/")[1];default:const r=this.urlParamsName&&new URLSearchParams(i).get(this.urlParamsName)||"";return r in this.resources?r:""}},Ua=function(){return this.cache&&localStorage.getItem(p(this,H,Fn))||""},pn=function(){return!an.has(this)},qn=function(t){var n;p(this,H,pn)&&(document.documentElement.lang=t),this.currentLanguage=t,(n=this.onChange)==null||n.call(this,t)},fn=new WeakMap;let Ss=Es;const Q=e=>window.matchMedia(e).matches,zl={PRINT:"print",get isPrint(){return Q(this.PRINT)},HOVER:"(hover: hover)",get isHover(){return Q(this.HOVER)},PWA:"(display-mode: standalone)",get isPWA(){return Q(this.PWA)},MOTION_REDUCE:"(prefers-reduced-motion: reduce)",get isMotionReduce(){return Q(this.MOTION_REDUCE)},DATA_REDUCE:"(prefers-reduced-data: reduce)",get isDataReduce(){return Q(this.DATA_REDUCE)},WATCH:"(width < 320px)",get isWatch(){return Q(this.WATCH)},SMALL_PHONE:"(320px <= width <= 480px) and (height <= 640px)",get isSmallPhone(){return Q(this.SMALL_PHONE)},PHONE:"(320px <= width <= 480px)",get isPhone(){return Q(this.PHONE)},PHONE_LANDSCAPE:"(480px < width < 960px) and (orientation: landscape)",get isPhoneLandscape(){return Q(this.PHONE_LANDSCAPE)},SHORT:"(width >= 480px) and (height <= 320px)",get isShort(){return Q(this.SHORT)},TABLET:"(480px < width <= 1280px)",get isTablet(){return Q(this.TABLET)},DESKTOP:"(width > 1280px) and (orientation: landscape)",get isDesktop(){return Q(this.DESKTOP)},WIDTHSCREEN:"(width >= 1920px) and (orientation: landscape)",get isWidthScreen(){return Q(this.WIDTHSCREEN)}},Vl=Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)).constructor;function Wa(e={}){const{origin:t=location.origin,base:n="",appendHeaders:i=()=>({}),transformInput:s=o=>o,transformOutput:r=o=>o,...c}=e,a=o=>o instanceof FormData||o instanceof Blob||o instanceof Vl||o instanceof URLSearchParams||o instanceof ReadableStream||o instanceof ArrayBuffer?o:typeof o=="object"?JSON.stringify(o):o,f=(o,g)=>{if(new URL(o,location.origin).pathname!==o)throw new Et("`path` format is incorrect");const l=new URLSearchParams(g).toString();return`${t}${n}${o}${l?"?":""}${l}`},_=o=>{if(!o)return{};if(o instanceof Headers)return Object.fromEntries(o);const g=Array.isArray(o)?o:Object.entries(o);return Object.fromEntries(g.map(([l,v])=>[l.toLowerCase(),v]))},m=async(o,g={})=>{const l=new Request(o,{...c,...g,headers:new Headers({"content-type":"application/json",..._(c.headers),..._(g.headers)})}),v=await fetch(l);if(v.status===0)throw new Error("Request fail");if(v.status>=500)throw new Error(v.statusText);const w=l.headers.get("content-type"),S=v.status>=400;try{let b;if(w.includes("json")?b=await v.json():w.includes("octet-stream")?b=await v.arrayBuffer():b=await v.text(),S)throw new Error(v.statusText,{cause:b});return r(b,l)}catch{throw new Error("Parse error")}};return{request:m,get(o,g){const l=s(g);return m(f(o,l),{method:"GET",headers:i(l)})},del(o,g){const l=s(g);return m(f(o,l),{method:"DELETE",headers:i(l)})},put(o,g){const l=s(g);return m(f(o),{method:"PUT",headers:i(l),body:a(l)})},post(o,g){const l=s(g);return m(f(o),{method:"POST",headers:i(l),body:a(l)})}}}const{request:Dl,del:Fl,get:ql,post:Ul,put:Bl}=Wa(),Ga=new WeakMap,xa=new WeakMap;function jl(e){return Ga.get(e)}function $s(e){return xa.get(e)}function Hn(e,t={}){const n=ke(),i=Oe({})[Ct],s=bt(e),r=new Proxy(Pe({[Ct]:i},a=>s(a)),{get(a,f){if(!a[f]){const[_,m,o]=f.match(/^(\w*Color)(\d+)$/)||[];m&&(a[f]=`oklch(from ${a[m]} calc(l - ${(Number(o)-400)/1e3}) c h)`)}return a[f]}});xa.set(r,t),Ga.set(r,s);const c=()=>{let a="";Object.keys(s).forEach(f=>{t[f]||(t[f]=`--${Ht(f)}-${n}`,r[f]=`var(${t[f]})`),a+=`${t[f]}:${s[f]};`}),i.setContent(`:scope,:host{${a}}`)};return c(),ht(s,()=>{c(),i.updateStyle()}),r}function za(e){return Hn(e)}function Kl(e){const t=za(e);return document.adoptedStyleSheets.push(t[Ct].getStyle()),t}function Jl(e,t){return Hn(t,$s(e))}function Ql(e){const t=Hn(e),n=$s(t);return Pe(t,s=>(r,{addInitializer:c,access:a})=>{c(function(){const f=Hn({...e},n);this.internals.sheets.push(f[Ct].getStyle(this)),this.memo(()=>f(a.get(this).apply(this)),s&&(()=>s(this)))})})}h.GemActiveLinkElement=xt,h.GemDialogBaseElement=he,h.GemElement=q,h.GemError=Et,h.GemLightRouteElement=I,h.GemLinkElement=G,h.GemReflectElement=Ye,h.GemRouteElement=Xt,h.GemTitleElement=ie,h.GemUnsafeElement=zt,h.GemUseElement=pt,h.I18n=Ss,h.LinkedList=Ds,h.Logger=Ra,h.PropProxyMap=Fs,h.QueryString=Bt,h.RenderErrorEvent=wn,h.SVGTemplateResult=jn,h.SheetToken=Ct,h.StoreListenerMap=Te,h.TemplateResult=Ce,h.UpdateToken=Me,h.absoluteLocation=Xn,h.addListener=Zn,h.addMicrotask=$t,h.adoptedStyle=En,h.aria=Ie,h.async=fr,h.attribute=D,h.basePathStore=Sr,h.boolattribute=Ne,h.camelToKebabCase=Ht,h.classMap=Us,h.cleanObject=mn,h.connect=ht,h.connectStore=Re,h.createCSSSheet=Oe,h.createDecoratorTheme=Ql,h.createHistoryParams=Yr,h.createModalClass=Ml,h.createOverrideTheme=Jl,h.createPath=Tn,h.createScopedTheme=za,h.createStore=bt,h.createTheme=Kl,h.createUpdater=Pe,h.css=ti,h.customElement=pr,h.del=Fl,h.directive=yt,h.effect=dt,h.emitter=Jt,h.exportPartsMap=uc,h.fallback=cr,h.get=ql,h.getThemeProps=$s,h.getThemeStore=jl,h.globalemitter=ur,h.guard=Mc,h.history=N,h.html=it,h.ifDefined=Pr,h.initRequest=Wa,h.isArrayChange=qs,h.kebabToCamelCase=cc,h.light=hi,h.logger=Ia,h.matchPath=Mi,h.mediaQuery=zl,h.memo=ai,h.mounted=Kt,h.numattribute=or,h.objectMapToString=vn,h.part=li,h.partMap=hc,h.post=Ul,h.property=U,h.put=Bl,h.randomStr=ke,h.raw=gn,h.render=_n,h.repeat=Tc,h.request=Dl,h.shadow=Tt,h.slot=hr,h.splice=Ha,h.state=Ae,h.styleMap=lc,h.styled=ac,h.svg=Vs,h.template=ci,h.titleStore=Mt,h.unmounted=ar,h.version=Zs,h.willMount=$n,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
64
+ `;this.shadowRoot.innerHTML=this.content+t.trim()})),Ut(et,19,this)}}et=Ih(ls),ds=new WeakMap,Vn(et,5,"content",$a,qt),Vn(et,5,"contentcss",va,qt),Vn(et,21,"#content",ga,ds),qt=Vn(et,0,"GemUnsafeElement",ya,qt),Ut(et,1,qt),customElements.define("gem-unsafe",qt);var Dh=Object.create,us=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,wa=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),_e=n=>{throw TypeError(n)},Sa=(n,t,e)=>t in n?us(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ea=(n,t)=>us(n,"name",{value:t,configurable:!0}),Uh=n=>[,,,Dh((n==null?void 0:n[wa("metadata")])??null)],Ca=["class","method","getter","setter","accessor","field","value","get","set"],tn=n=>n!==void 0&&typeof n!="function"?_e("Function expected"):n,qh=(n,t,e,i,s)=>({kind:Ca[n],name:t,metadata:i,addInitializer:r=>e._?_e("Already initialized"):s.push(tn(r||null))}),ba=(n,t)=>Sa(t,wa("metadata"),n[3]),Mt=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},Dn=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=Ca[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&xh(o<4?s:{get[e](){return Ot(this,r)},set[e](_){return fs(this,r,_)}},e));o?h&&o<4&&Ea(r,(o>2?"set ":o>1?"get ":"")+e):Ea(s,e);for(var T=i.length-1;T>=0;T--)u=qh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>Fh(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?Ot:Bh)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>fs(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?tn(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?_e("Object expected"):(tn(a=c.get)&&(p.get=a),tn(a=c.set)&&(p.set=a),tn(a=c.init)&&E.unshift(a));return o||ba(n,s),p&&us(s,e,p),h?o^4?r:p:s},Ta=(n,t,e)=>Sa(n,typeof t!="symbol"?t+"":t,e),_s=(n,t,e)=>t.has(n)||_e("Cannot "+e),Fh=(n,t)=>Object(t)!==t?_e('Cannot use the "in" operator on this value'):n.has(t),Ot=(n,t,e)=>(_s(n,t,"read from private field"),e?e.call(n):t.get(n)),fe=(n,t,e)=>t.has(n)?_e("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),fs=(n,t,e,i)=>(_s(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),Bh=(n,t,e)=>(_s(n,t,"access private method"),e),Pa,ka,Ma,Oa,ps,Q,ms,Aa,gs,xn,vs,en,$s;const Kh="gem-reflect-start",La="gem-reflect-end",Na=n=>new Comment(n),jh=n=>{const t=[];let e=n;for(;e&&(t.push(e),e.nodeValue!==La);)e=e.nextSibling;return t};class nn extends(ps=F,Oa=[U],Ma=[B],ka=[An()],Pa=[pt(t=>[t.target])],ps){constructor(){super(...arguments),fe(this,ms),Ta(this,"method",Mt(Q,8,this)),Mt(Q,11,this),Ta(this,"target",Mt(Q,12,this,document.head)),Mt(Q,15,this),fe(this,gs,Mt(Q,16,this,()=>{this.hidden=!0,this.dataset.gemReflect=""})),Mt(Q,19,this),fe(this,xn,Na(Kh)),fe(this,vs,Na(La)),fe(this,en),fe(this,$s,Mt(Q,20,this,()=>((Ot(this,en)||[Ot(this,xn),...this.childNodes,Ot(this,vs)]).forEach((t,e,i)=>{const s=i[e-1];s?s.after(t):this.target[Ot(this,ms,Aa)](t)}),()=>{fs(this,en,jh(Ot(this,xn))),Ot(this,en).forEach(t=>t.remove())}))),Mt(Q,23,this)}}Q=Uh(ps),ms=new WeakSet,Aa=function(){return this.method||"append"},gs=new WeakMap,xn=new WeakMap,vs=new WeakMap,en=new WeakMap,$s=new WeakMap,Dn(Q,5,"method",Oa,nn),Dn(Q,5,"target",Ma,nn),Dn(Q,21,"#init",ka,gs),Dn(Q,21,"#changeTarget",Pa,$s),ba(Q,nn),customElements.define("gem-reflect",nn);var Qh=Object.create,ys=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,Ra=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),pe=n=>{throw TypeError(n)},Ia=(n,t,e)=>t in n?ys(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ha=(n,t)=>ys(n,"name",{value:t,configurable:!0}),Yh=n=>[,,,Qh((n==null?void 0:n[Ra("metadata")])??null)],Wa=["class","method","getter","setter","accessor","field","value","get","set"],sn=n=>n!==void 0&&typeof n!="function"?pe("Function expected"):n,Zh=(n,t,e,i,s)=>({kind:Wa[n],name:t,metadata:i,addInitializer:r=>e._?pe("Already initialized"):s.push(sn(r||null))}),Xh=(n,t)=>Ia(t,Ra("metadata"),n[3]),rn=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},ws=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=Wa[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&Jh(o<4?s:{get[e](){return za(this,r)},set[e](_){return Va(this,r,_)}},e));o?h&&o<4&&Ha(r,(o>2?"set ":o>1?"get ":"")+e):Ha(s,e);for(var T=i.length-1;T>=0;T--)u=Zh(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>tl(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?za:el)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>Va(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?sn(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?pe("Object expected"):(sn(a=c.get)&&(p.get=a),sn(a=c.set)&&(p.set=a),sn(a=c.init)&&E.unshift(a));return o||Xh(n,s),p&&ys(s,e,p),h?o^4?r:p:s},Un=(n,t,e)=>Ia(n,typeof t!="symbol"?t+"":t,e),Ss=(n,t,e)=>t.has(n)||pe("Cannot "+e),tl=(n,t)=>Object(t)!==t?pe('Cannot use the "in" operator on this value'):n.has(t),za=(n,t,e)=>(Ss(n,t,"read from private field"),e?e.call(n):t.get(n)),Ga=(n,t,e)=>t.has(n)?pe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),Va=(n,t,e,i)=>(Ss(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),el=(n,t,e)=>(Ss(n,t,"access private method"),e);const qn=Symbol("open mark");function nl(n){var t,e,i,s,r,a,c;const l=Symbol();s=[bt(),qe({role:"alertdialog",ariaModal:"true"})];let u=class sc extends(i=F,e=[ne()],t=[ne()],i){constructor(){super(...arguments),Un(this,"label",""),Ga(this,a,rn(r,8,this,()=>dt(N.store,this.update))),rn(r,11,this),Ga(this,c,rn(r,12,this,()=>dt(sc.store,this.update))),rn(r,15,this)}static get isOpen(){return this.store[qn]}static open(g){const h=new this;this.instance=h,this.inertStore=[...document.body.children].filter(y=>!y.inert),this.inertStore.forEach(y=>y.inert=!0),document.body.append(h);const v=()=>this.store({[qn]:!0,...g});return setTimeout(()=>{v(),N.push({title:h.label,open:v,close:this.closeHandle.bind(this),shouldClose:this.shouldClose.bind(this)})},100),l}static close(){return N.back(),l}static closeHandle(){var g;return this.inertStore.forEach(h=>h.inert=!1),(g=this.instance)==null||g.remove(),this.store({[qn]:!1,...n}),l}static shouldClose(){return!0}};return r=Yh(i),a=new WeakMap,c=new WeakMap,ws(r,21,"#connectHistory",e,a),ws(r,21,"#connectStore",t,c),u=ws(r,0,"ModalElement",s,u),Un(u,"inertStore",[]),Un(u,"instance",null),Un(u,"store",St({[qn]:!1,...n})),rn(r,1,u),u}var il=Object.create,Es=Object.defineProperty,sl=Object.getOwnPropertyDescriptor,Da=(n,t)=>(t=Symbol[n])?t:Symbol.for("Symbol."+n),me=n=>{throw TypeError(n)},xa=(n,t,e)=>t in n?Es(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,Ua=(n,t)=>Es(n,"name",{value:t,configurable:!0}),rl=n=>[,,,il((n==null?void 0:n[Da("metadata")])??null)],qa=["class","method","getter","setter","accessor","field","value","get","set"],on=n=>n!==void 0&&typeof n!="function"?me("Function expected"):n,ol=(n,t,e,i,s)=>({kind:qa[n],name:t,metadata:i,addInitializer:r=>e._?me("Already initialized"):s.push(on(r||null))}),al=(n,t)=>xa(t,Da("metadata"),n[3]),Ft=(n,t,e,i)=>{for(var s=0,r=n[t>>1],a=r&&r.length;s<a;s++)t&1?r[s].call(e):i=r[s].call(e,i);return i},Fn=(n,t,e,i,s,r)=>{var a,c,l,u,m,o=t&7,g=!!(t&8),h=!!(t&16),v=o>3?n.length+1:o?g?1:2:0,y=qa[o+5],E=o>3&&(n[v-1]=[]),k=n[v]||(n[v]=[]),p=o&&(!h&&!g&&(s=s.prototype),o<5&&(o>3||!h)&&sl(o<4?s:{get[e](){return ct(this,r)},set[e](_){return cn(this,r,_)}},e));o?h&&o<4&&Ua(r,(o>2?"set ":o>1?"get ":"")+e):Ua(s,e);for(var T=i.length-1;T>=0;T--)u=ol(o,e,l={},n[3],k),o&&(u.static=g,u.private=h,m=u.access={has:h?_=>cl(s,_):_=>e in _},o^3&&(m.get=h?_=>(o^1?ct:hl)(_,s,o^4?r:p.get):_=>_[e]),o>2&&(m.set=h?(_,M)=>cn(_,s,M,o^4?r:p.set):(_,M)=>_[e]=M)),c=(0,i[T])(o?o<4?h?r:p[y]:o>4?void 0:{get:p.get,set:p.set}:s,u),l._=1,o^4||c===void 0?on(c)&&(o>4?E.unshift(c):o?h?r=c:p[y]=c:s=c):typeof c!="object"||c===null?me("Object expected"):(on(a=c.get)&&(p.get=a),on(a=c.set)&&(p.set=a),on(a=c.init)&&E.unshift(a));return o||al(n,s),p&&Es(s,e,p),h?o^4?r:p:s},an=(n,t,e)=>xa(n,typeof t!="symbol"?t+"":t,e),Cs=(n,t,e)=>t.has(n)||me("Cannot "+e),cl=(n,t)=>Object(t)!==t?me('Cannot use the "in" operator on this value'):n.has(t),ct=(n,t,e)=>(Cs(n,t,"read from private field"),e?e.call(n):t.get(n)),ge=(n,t,e)=>t.has(n)?me("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),cn=(n,t,e,i)=>(Cs(n,t,"write to private field"),i?i.call(n,e):t.set(n,e),e),hl=(n,t,e)=>(Cs(n,t,"access private method"),e),Fa,Ba,Ka,bs,ja,nt,hn,ln,dn,Ts,Bn,Ps;const ks=Symbol();ja=[Ue(N.store),qe({role:"dialog",ariaModal:"true"})];class ve extends(bs=F,Ka=[U],Ba=[De],Fa=[An()],bs){constructor(){super(...arguments),an(this,"label",Ft(nt,8,this)),Ft(nt,11,this),an(this,"opened",Ft(nt,12,this)),Ft(nt,15,this),ge(this,hn),ge(this,ln),ge(this,dn,[]),ge(this,Ts,()=>{var t;this.inert=!0,ct(this,dn).forEach(e=>e.inert=!1),ct(this,hn)?ct(this,hn).before(this):ct(this,ln)&&((t=ct(this,ln))==null||t.appendChild(this)),this.dispatchEvent(new CustomEvent("close")),this.opened=!1}),ge(this,Bn,()=>{this.hidden=!1,this.inert=!1,cn(this,hn,this.nextSibling),cn(this,ln,this.parentElement||this.getRootNode()),cn(this,dn,[...document.body.children].filter(t=>!t.inert)),ct(this,dn).forEach(t=>t.inert=!0),document.body.append(this),this.dispatchEvent(new CustomEvent("open")),this.opened=!0}),ge(this,Ps,Ft(nt,16,this,()=>this.inert=!0)),Ft(nt,19,this),an(this,"open",()=>{if(!this.opened)return ct(this,Bn).call(this),N.push({title:this.label,open:ct(this,Bn),close:ct(this,Ts),shouldClose:this.shouldClose}),ks}),an(this,"close",()=>(N.back(),ks)),an(this,"forceClose",()=>(this.opened=!1,setTimeout(this.close,100),ks))}shouldClose(){return!0}}nt=rl(bs),hn=new WeakMap,ln=new WeakMap,dn=new WeakMap,Ts=new WeakMap,Bn=new WeakMap,Ps=new WeakMap,Fn(nt,5,"label",Ka,ve),Fn(nt,5,"opened",Ba,ve),Fn(nt,21,"#init",Fa,Ps),ve=Fn(nt,0,"GemDialogBaseElement",ja,ve),Ft(nt,1,ve);class Qa{constructor(t){$(this,"_type");$(this,"info",(...t)=>{console.log(`[${this._type}]:`,...t)});$(this,"warn",(...t)=>{console.warn(`[${this._type}]:`,...t)});$(this,"error",(...t)=>{console.error(`[${this._type}]:`,...t)});this._type=t}}const Ja=new Qa("GEM"),ll=/\$\d(?:<[^>]*>)?/,dl=/\$(\d)(<([^>]*)>)?/g,ul=3;function Ya(n,...t){const e=n.split(ll),i=[];let s;for(;s=dl.exec(n);){const r=s[ul],a=Number(s[1])-1,c=t[a];i.push(typeof c=="function"?c(r):c)}return st(e,...i)}const un=new Set,As=class As{constructor(t){C(this,W);$(this,"resources");$(this,"fallbackLanguage");$(this,"currentLanguage");$(this,"cache");$(this,"cachePrefix","gem-i18n");$(this,"urlParamsType");$(this,"urlParamsName");$(this,"onChange");$(this,"replace",({path:t})=>this.setLanguage(t));$(this,"getParams",()=>({path:this.currentLanguage}));C(this,vn,!0);if(!t.resources[t.fallbackLanguage])throw new ft("i18n: fallbackLanguage invalid");Object.assign(this,t);let e=f(this,W,rc)||this.currentLanguage||f(this,W,oc);const i=document.querySelector(`[type*=${this.cachePrefix}]`);if(i)try{const s=JSON.parse(i.textContent||"");e=s.currentLanguage,this.resources[s.currentLanguage]=s.currentLanguagePack}catch{}e?(A(this,W,e,ti),this.setLanguage(e)):this.resetLanguage(),A(this,vn,!1)}get(t,...e){const i=this.resources[this.currentLanguage],s=this.resources[this.fallbackLanguage],r=i[t]||s[t],a=(r==null?void 0:r.message)||r||`[${t}]`;return e.length?Ya(a,...e):a}detectLanguage(){const t=Object.keys(this.resources),e=navigator.languages.map(i=>i.replace(/-(.*)/,s=>s.toUpperCase()));for(const i of e){const s=t.find(r=>r===i||i.startsWith(`${r}-`));if(s)return s}return this.fallbackLanguage}async setLanguage(t){var s,r;f(this,W,$n)&&un.forEach(async a=>await a.setLanguage(t));let e;const i=this.resources[t];if(!i)return Ja.warn(`${this.cachePrefix}: not found \`${t}\``),this.resetLanguage();if(typeof i=="string"){const a=`${this.cachePrefix}:`,c=`${a}${i}`,l=localStorage.getItem(c),u=async()=>{const m=await(await fetch(i)).json();if(this.cache){for(let o=0;o<localStorage.length;o++){const g=localStorage.key(o);g.startsWith(a)&&localStorage.removeItem(g)}localStorage.setItem(c,JSON.stringify(m))}return m};if(l)try{e=JSON.parse(l)}catch{e=await u()}else e=await u()}else e=i;if(this.resources[t]=e,!f(this,vn)){const a=[document.documentElement];for(;a.length;){const c=a.pop();(s=c[ze])==null||s.call(c),a.push(...[...c.children,...((r=c.shadowRoot)==null?void 0:r.children)||[]].reverse())}}return t!==this.currentLanguage&&A(this,W,t,ti),this.cache===!0&&this.setCache(),t}resetLanguage(){return f(this,W,$n)&&un.forEach(t=>t.resetLanguage()),A(this,W,this.fallbackLanguage,ti),this.cache&&localStorage.removeItem(f(this,W,Xn)),this.setLanguage(this.detectLanguage())}setCache(){f(this,W,$n)&&un.forEach(t=>t.setCache()),localStorage.setItem(f(this,W,Xn),this.currentLanguage)}createSubModule(t,e){const i=new As({resources:e,cachePrefix:`${this.cachePrefix}-${t}`,currentLanguage:this.currentLanguage,fallbackLanguage:this.fallbackLanguage,cache:this.cache});return un.add(i),i}toJSON(){return{currentLanguage:this.currentLanguage,currentLanguagePack:this.resources[this.currentLanguage]}}};W=new WeakSet,Xn=function(){return`${this.cachePrefix}:current`},rc=function(){const{hostname:t,pathname:e,search:i}=location,s=t.split(".");switch(this.urlParamsType){case"ccTLD":return s.pop();case"gTLD":return s.shift();case"path":return e.split("/")[1];default:const r=this.urlParamsName&&new URLSearchParams(i).get(this.urlParamsName)||"";return r in this.resources?r:""}},oc=function(){return this.cache&&localStorage.getItem(f(this,W,Xn))||""},$n=function(){return!un.has(this)},ti=function(t){var e;f(this,W,$n)&&(document.documentElement.lang=t),this.currentLanguage=t,(e=this.onChange)==null||e.call(this,t)},vn=new WeakMap;let Ms=As;const Y=n=>window.matchMedia(n).matches,_l={PRINT:"print",get isPrint(){return Y(this.PRINT)},HOVER:"(hover: hover)",get isHover(){return Y(this.HOVER)},PWA:"(display-mode: standalone)",get isPWA(){return Y(this.PWA)},MOTION_REDUCE:"(prefers-reduced-motion: reduce)",get isMotionReduce(){return Y(this.MOTION_REDUCE)},DATA_REDUCE:"(prefers-reduced-data: reduce)",get isDataReduce(){return Y(this.DATA_REDUCE)},WATCH:"(width < 320px)",get isWatch(){return Y(this.WATCH)},SMALL_PHONE:"(320px <= width <= 480px) and (height <= 640px)",get isSmallPhone(){return Y(this.SMALL_PHONE)},PHONE:"(320px <= width <= 480px)",get isPhone(){return Y(this.PHONE)},PHONE_LANDSCAPE:"(480px < width < 960px) and (orientation: landscape)",get isPhoneLandscape(){return Y(this.PHONE_LANDSCAPE)},SHORT:"(width >= 480px) and (height <= 320px)",get isShort(){return Y(this.SHORT)},TABLET:"(480px < width <= 1280px)",get isTablet(){return Y(this.TABLET)},DESKTOP:"(width > 1280px) and (orientation: landscape)",get isDesktop(){return Y(this.DESKTOP)},WIDTHSCREEN:"(width >= 1920px) and (orientation: landscape)",get isWidthScreen(){return Y(this.WIDTHSCREEN)}},fl=Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)).constructor;function Za(n={}){const{origin:t=location.origin,base:e="",appendHeaders:i=()=>({}),transformInput:s=o=>o,transformOutput:r=o=>o,...a}=n,c=o=>o instanceof FormData||o instanceof Blob||o instanceof fl||o instanceof URLSearchParams||o instanceof ReadableStream||o instanceof ArrayBuffer?o:typeof o=="object"?JSON.stringify(o):o,l=(o,g)=>{if(new URL(o,location.origin).pathname!==o)throw new ft("`path` format is incorrect");const h=new URLSearchParams(g).toString();return`${t}${e}${o}${h?"?":""}${h}`},u=o=>{if(!o)return{};if(o instanceof Headers)return Object.fromEntries(o);const g=Array.isArray(o)?o:Object.entries(o);return Object.fromEntries(g.map(([h,v])=>[h.toLowerCase(),v]))},m=async(o,g={})=>{const h=new Request(o,{...a,...g,headers:new Headers({"content-type":"application/json",...u(a.headers),...u(g.headers)})}),v=await fetch(h);if(v.status===0)throw new Error("Request fail");if(v.status>=500)throw new Error(v.statusText);const y=h.headers.get("content-type"),E=v.status>=400;try{let k;if(y.includes("json")?k=await v.json():y.includes("octet-stream")?k=await v.arrayBuffer():k=await v.text(),E)throw new Error(v.statusText,{cause:k});return r(k,h)}catch{throw new Error("Parse error")}};return{request:m,get(o,g){const h=s(g);return m(l(o,h),{method:"GET",headers:i(h)})},del(o,g){const h=s(g);return m(l(o,h),{method:"DELETE",headers:i(h)})},put(o,g){const h=s(g);return m(l(o),{method:"PUT",headers:i(h),body:c(h)})},post(o,g){const h=s(g);return m(l(o),{method:"POST",headers:i(h),body:c(h)})}}}const{request:pl,del:ml,get:gl,post:vl,put:$l}=Za(),Xa=new WeakMap,tc=new WeakMap;function yl(n){return Xa.get(n)}function Os(n){return tc.get(n)}function Kn(n,t={}){const e=Cn(),i=Xt({})[Et],s=St(n),r=new Proxy(Ie({[Et]:i},c=>s(c)),{get(c,l){if(!c[l]){const[u,m,o]=l.match(/^(\w*Color)(\d+)$/)||[];m&&(c[l]=`oklch(from ${c[m]} calc(l - ${(Number(o)-400)/1e3}) c h)`)}return c[l]}});tc.set(r,t),Xa.set(r,s);const a=()=>{let c="";Object.keys(s).forEach(l=>{t[l]||(t[l]=`--${Ht(l)}-${e}`,r[l]=`var(${t[l]})`),c+=`${t[l]}:${s[l]};`}),i.setContent(`:scope,:host{${c}}`)};return a(),dt(s,()=>{a(),i.updateStyle()}),r}function ec(n){return Kn(n)}function wl(n){const t=ec(n);return document.adoptedStyleSheets.push(t[Et].getStyle()),t}function Sl(n,t){return Kn(t,Os(n))}function El(n){const t=Kn(n),e=Os(t);return Ie(t,s=>(r,{addInitializer:a,access:c})=>{a(function(){const l=Kn({...n},e);this.internals.sheets.push(l[Et].getStyle(this)),this.memo(()=>l(c.get(this).apply(this)),s&&(()=>s(this)))})})}d.GemActiveLinkElement=Dt,d.GemDialogBaseElement=ve,d.GemElement=F,d.GemError=ft,d.GemLightRouteElement=I,d.GemLinkElement=G,d.GemReflectElement=nn,d.GemRouteElement=oe,d.GemTitleElement=he,d.GemUnsafeElement=qt,d.GemUseElement=mt,d.I18n=Ms,d.LinkedList=Zs,d.Logger=Qa,d.PropProxyMap=Xs,d.QueryString=Zt,d.SheetToken=Et,d.TemplateResult=wn,d.UpdateToken=ze,d._RenderErrorEvent=Pn,d._StoreListenerMap=He,d.absoluteLocation=hi,d.addListener=li,d.addMicrotask=wt,d.adoptedStyle=xe,d.aria=qe,d.async=kr,d.attribute=U,d.basePathStore=Hr,d.boolattribute=Ve,d.camelToKebabCase=Ht,d.classMap=er,d.cleanObject=bn,d.connect=dt,d.connectStore=Ue,d.createDecoratorTheme=El,d.createHistoryParams=ao,d.createModalClass=nl,d.createOverrideTheme=Sl,d.createPath=Hn,d.createRef=Js,d.createScopedTheme=ec,d.createStore=St,d.createTheme=wl,d.createUpdater=Ie,d.css=Xt,d.customElement=Mr,d.del=ml,d.directive=ui,d.effect=pt,d.emitter=ie,d.exportPartsMap=Nc,d.fallback=Er,d.get=gl,d.getThemeProps=Os,d.getThemeStore=yl,d.globalemitter=Tr,d.history=N,d.html=st,d.initRequest=Za,d.isArrayChange=tr,d.kebabToCamelCase=Oc,d.light=yi,d.logger=Ja,d.matchPath=Ii,d.mathml=js,d.mediaQuery=_l,d.memo=vi,d.mounted=ne,d.numattribute=wr,d.objectMapToString=Tn,d.part=$i,d.partMap=Lc,d.post=vl,d.property=B,d.put=$l,d.randomStr=Cn,d.raw=di,d.render=En,d.repeat=sr,d.request=pl,d.shadow=bt,d.slot=br,d.splice=Ya,d.state=De,d.styleMap=Ac,d.styled=Mc,d.svg=Ks,d.template=zt,d.titleStore=Tt,d.unmounted=Sr,d.version=_r,d.willMount=An,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});