@pictogrammers/components 0.4.7 → 0.4.9

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 (72) hide show
  1. package/index.html +1 -1
  2. package/main.js +1 -1
  3. package/package.json +1 -1
  4. package/pg/app/app.css +1 -1
  5. package/pg/app/app.ts +8 -2
  6. package/pg/inputPixelEditor/inputPixelEditor.ts +3 -2
  7. package/pg/inputPixelEditor/utils/getEllipsePixels.ts +131 -19
  8. package/pg/modal/README.md +29 -0
  9. package/pg/modal/__examples__/basic/basic.html +4 -0
  10. package/pg/modal/__examples__/basic/basic.ts +42 -0
  11. package/pg/modal/index.ts +3 -0
  12. package/pg/modal/modal.css +40 -0
  13. package/pg/modal/modal.html +9 -0
  14. package/pg/modal/modal.ts +14 -0
  15. package/pg/tree/README.md +10 -1
  16. package/pg/tree/__examples__/basic/basic.html +1 -0
  17. package/pg/tree/__examples__/basic/basic.ts +6 -0
  18. package/pg/tree/tree.css +1 -0
  19. package/pgAnnoy.js +1 -1
  20. package/pgApp.js +1 -1
  21. package/pgAvatar.js +1 -1
  22. package/pgButton.js +1 -1
  23. package/pgButtonGroup.js +1 -1
  24. package/pgButtonLink.js +1 -1
  25. package/pgButtonMenu.js +1 -1
  26. package/pgButtonToggle.js +1 -1
  27. package/pgCard.js +1 -1
  28. package/pgCardUser.js +1 -1
  29. package/pgColor.js +1 -1
  30. package/pgDatabase.js +1 -1
  31. package/pgDropdown.js +1 -1
  32. package/pgGrid.js +1 -1
  33. package/pgHeader.js +1 -1
  34. package/pgIcon.js +1 -1
  35. package/pgInputCheck.js +1 -1
  36. package/pgInputCheckList.js +1 -1
  37. package/pgInputFileLocal.js +1 -1
  38. package/pgInputHexRgb.js +1 -1
  39. package/pgInputPixelEditor.js +1 -1
  40. package/pgInputRange.js +1 -1
  41. package/pgInputSelect.js +1 -1
  42. package/pgInputText.js +1 -1
  43. package/pgInputTextIcon.js +1 -1
  44. package/pgInputUserSelect.js +1 -1
  45. package/pgListTag.js +1 -1
  46. package/pgMarkdown.js +1 -1
  47. package/pgMenu.js +1 -1
  48. package/pgMenuDivider.js +1 -1
  49. package/pgMenuIcon.js +1 -1
  50. package/pgMenuItem.js +1 -1
  51. package/pgMenuItemIcon.js +1 -1
  52. package/pgModal.js +1 -0
  53. package/pgModalAlert.js +1 -1
  54. package/pgModification.js +1 -1
  55. package/pgNav.js +1 -1
  56. package/pgOverlay.js +1 -1
  57. package/pgOverlayContextMenu.js +1 -1
  58. package/pgOverlayMenu.js +1 -1
  59. package/pgOverlaySelectMenu.js +1 -1
  60. package/pgOverlaySubMenu.js +1 -1
  61. package/pgPicker.js +1 -1
  62. package/pgPreview.js +1 -1
  63. package/pgScroll.js +1 -1
  64. package/pgSearch.js +1 -1
  65. package/pgTab.js +1 -1
  66. package/pgTabs.js +1 -1
  67. package/pgToast.js +1 -1
  68. package/pgToasts.js +1 -1
  69. package/pgTooltip.js +1 -1
  70. package/pgTree.js +1 -1
  71. package/pgTreeButtonIcon.js +1 -1
  72. package/pgTreeItem.js +1 -1
package/pgSearch.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var u="",n=void 0!==t[5];return t[4]&&(u+="@supports (".concat(t[4],") {")),t[2]&&(u+="@media ".concat(t[2]," {")),n&&(u+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),u+=e(t),n&&(u+="}"),t[2]&&(u+="}"),t[4]&&(u+="}"),u})).join("")},t.i=function(e,u,n,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&i[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),u&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=u):c[2]=u),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},567:(e,t,u)=>{u.d(t,{A:()=>o});var n=u(601),r=u.n(n),s=u(314),i=u.n(s)()(r());i.push([e.id,":host {\n display: block;\n align-self: center;\n font-family: var(--pg-font-family);\n}\n\ndiv {\n display: grid;\n grid-template-columns: 1fr 0;\n grid-template-rows: 1fr 0;\n}\ninput {\n grid-row: 1;\n grid-column: 1;\n border-radius: 0.25rem;\n border: 0;\n padding: 0.25rem 0.5rem;\n font-size: 1rem;\n outline: none;\n width: calc(100% - 1rem);\n border: .0625rem solid var(--pg-search-border-color);\n}\ninput:active {\n box-shadow: 0 0 0 3px var(--pg-search-active-glow, rgba(79, 143, 249, 0.6));\n}\ninput:focus {\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgba(79, 143, 249, 0.5));\n}\n.active input + svg path {\n fill: #453C4F;\n}\nsvg {\n grid-row: 1;\n grid-column: 2;\n width: 1.5rem;\n height: 1.5rem;\n justify-self: right;\n margin-right: 0.25rem;\n pointer-events: none;\n align-self: center;\n}\nsvg > path {\n transition: fill 0.3s ease-in-out;\n}\n[part=menu] {\n display: none;\n background: #FFF;\n grid-row: 2;\n grid-column: 1 / span 2;\n z-index: 1;\n}\nul {\n list-style: none;\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n border-radius: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\nul > li {\n color: #222;\n}\nul > li > a {\n display: flex;\n padding: 0.25rem 0.5rem;\n background: #FFF;\n border-left: 1px solid #DDD;\n border-right: 1px solid #DDD;\n}\nul > li > a:hover,\nul > li > a:active,\nul > li > a:focus {\n background: #DAF4FB;\n}\nul > li.item:first-child > a {\n border-top: 1px solid #DDD;\n border-bottom: 1px solid #DDD;\n border-radius: 0.25rem 0.25rem 0 0;\n}\nul > li.item:not(:first-child) > a {\n border-bottom: 1px solid #DDD;\n}\nul > li.item:last-child > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\nul > li > a {\n text-decoration: none;\n color: #222;\n}\nul > li > a strong {\n color: #453C4F;\n}\n.section {\n color: #FFF;\n padding: 0.25rem 0.5rem;\n font-weight: bold;\n background: #453C4F;\n border-radius: 0.25rem 0.25rem 0 0;\n cursor: default;\n}\n.section + li a {\n border-radius: 0;\n}\n\nli + .section {\n border-radius: 0;\n}\n\n.type {\n background-color: #453C4F;\n border-radius: 0.25rem;\n font-size: 0.75rem;\n color: #fff;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n margin: 0.125rem 0 0.125rem 0.25rem;\n align-self: end;\n}\n\n.icon {\n background-color: #453C4F;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.icon.first > a {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n.icon.last {\n padding-bottom: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n border-bottom-right-radius: 0.25rem;\n}\n.icon.last > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\n.icon svg {\n color: #453C4F;\n margin-right: 0.345rem;\n margin-left: -0.25rem;\n}\n\n.all {\n background-color: #453C4F;\n padding: 0 0.25rem 0.25rem 0.25rem;\n border-radius: 0 0 0.25rem 0.25rem;\n}\n\n.all a {\n border-radius: 0.25rem;\n}\n\n[part~=empty] {\n background: #453C4F;\n border-radius: 0.25rem;\n padding: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\n[part~=empty] strong {\n color: #fff;\n padding: 0 0.25rem;\n}\n[part~=empty] a {\n display: block;\n background: #fff;\n color: #453C4F;\n text-decoration: none;\n padding: 0.25rem 0.5rem;\n border-radius: 0.25rem;\n margin-top: 0.25rem;\n}\n[part~=empty] a:hover,\n[part~=empty] a:active,\n[part~=empty] a:focus {\n background: #DAF4FB;\n}\n[part~=empty] a svg {\n vertical-align: middle;\n width: 1.5rem;\n height: 1.5rem;\n float: right;\n margin: -0.125rem -0.25rem 0 0;\n}\n\n.hide {\n display: none;\n}",""]);var a=new CSSStyleSheet;a.replaceSync(i.toString());const o=a},601:e=>{e.exports=function(e){return e[1]}}},t={};function u(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,u),s.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=Symbol("addObserver"),r=Symbol("removeObserver"),s=Symbol("getObservers"),i=Symbol("swapObserver"),a=Symbol("isProxy"),o=Symbol("getTarget"),l=["fill","pop","push","reverse","shift","sort","splice","unshift"],c=new Map;function d(e){return new Proxy(e,{get(t,u){if("symbol"==typeof u){switch(u){case a:return!0;case o:return t;case s:return c.has(e);case i:return(t,u)=>{const n=c.get(e);n.forEach(((r,s)=>{if(s.getRootNode().host===t){const t=n.get(s);c.has(u)?c.get(u).has(s)?c.get(u).get(s).push(n.get(s)):c.get(u).set(s,n.get(s)):c.set(u,new Map([[s,t]])),c.delete(e),t.forEach((e=>{e(null,E.swap,[u])}))}}))};case n:return(t,u)=>{c.has(e)?c.get(e).has(t)?c.get(e).get(t).push(u):c.get(e).set(t,[u]):c.set(e,new Map([[t,[u]]]))};case r:return t=>{c.has(e)&&(c.get(e).delete(t),0===c.get(e).size&&c.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,u)}throw new Error("Unsupported symbol")}if(u in t){if(!Number.isNaN(Number(u)))return"object"==typeof t[u]?d(t[u]):t[u];if("copyWithin"===u)throw new Error("Unsupported array method copyWithin");if(l.includes(u))return c.has(t)?function(){const e=Array.prototype[u].apply(t,arguments);return c.get(t).forEach(((e,n)=>{e.forEach((e=>{e(t,u,arguments)}))})),e}:Reflect.get(t,u);if(t[u]instanceof Array)return d(t[u])}return Reflect.get(t,u)},set(e,t,u){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,u);if(c.has(e)){c.get(e).forEach(((e,n)=>{e.forEach((e=>{e(t,u)}))}))}return Reflect.set(e,t,u)}})}window.observers=c;const E={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const h=Symbol("init"),p=Symbol("template"),g=Symbol("style"),m=Symbol("parent");function f(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function C(e={}){return function(t,u){if("class"!==u.kind)throw new Error("@Component() can only decorate a class");var n,r;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[m]||t.prototype[m][t.prototype[m].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[m]=[t.prototype],t.prototype[g]=e.style?[e.style]:[],t.prototype[p]=e.template||""):(t.prototype[m].push(t.prototype),t.prototype[g].push(e.style),t.prototype[p]=(n=t.prototype[p],(r=e.template||null)&&r.match(/<parent\/>/)?r.replace(/<parent\/>/,n):`${n}${r||""}`));const s=t.prototype.connectedCallback||(()=>{}),i=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[h]||void 0!==e.template||void 0!==e.style)if(this[h]){if(this[h]&&e.style);else if(this[h]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[p]||"";const u=document.importNode(e.content,!0),n=this.attachShadow({mode:"open"});n.adoptedStyleSheets=t.prototype[g].map((e=>{if(e instanceof CSSStyleSheet)return e;var t=new CSSStyleSheet;return t.replaceSync(e.toString()),t})),n.appendChild(u)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const u=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&u.add(e.localName);const n=Array.from(u.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),r=()=>{this[m].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[b(t)]=!0,e)),{}):{})}))};0===n.length?(this[h]=!0,s.call(this),r()):Promise.all(n).then((()=>{this[h]=!0,s.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));r()}))},t.prototype.disconnectedCallback=function(){i.call(this)},t.prototype.attributeChangedCallback=function(e,t,u){this[b(e)]=u},u.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${u.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function F(e){return!!e&&e.constructor===Array}function A(e,t){e[h]&&e[m].map((u=>{u.render&&u.render.call(e,{[t]:!0})}))}function y(e){return null===e?"null":F(e)?"array":typeof e}function v(e){return function(t,u){const n=u.name,r=Symbol(n),l=Symbol(`${n}:type`),c=Symbol(`${n}:meta`);return u.addInitializer((function(){Reflect.defineProperty(this,n,{get:()=>"object"===this[l]||"array"===this[l]?this[r][a]?this[r]:d(this[r]):this[r],set:t=>{const u=y(e?e(t):t);if("index"!==n&&this[l]!==u&&"null"!==this[l]&&"null"!==u)throw new Error(`@Prop() ${n} with type '${this[l]}' cannot be set to ${u}.`);if("array"===this[l]){if(!F(t))throw new PropError(`Array "${n}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,n)?.set);if(this[r]===t)throw new Error("Setting an array to itself is not allowed.");const e=d(this[r]);if(e[s]){const u=t[a]?t[o]:t;e[i](this,u),this[r]=t,console.log(">>> trigger render???",this,n)}else this[r]=t}else this[r]=e?e(t):t,A(this,n)}})})),function(t){if(void 0===t&&"index"!==n)throw new Error(`@Prop() ${n} must have an initial value defined.`);if(void 0!==t&&"index"===n)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${n} boolean must initialize to false.`);if(!u.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,u=f(n);t[n]||(e.observedAttributes.push(u),t[n]=r)}return this[l]=y(t),"array"===this[l]?(this[r]=t,new Proxy(t,{get:(e,t)=>t===w?this[c]:(console.log("errr???"),Reflect.get(this[r],t)),set:(e,t,u)=>{if(t===w)return this[c]=u,!0;const s=Reflect.set(e,t,u);return"length"===t&&this[r].length===u||A(this,n),this[r]=u,s}})):(this[r]=e?e(this.getAttribute(n)??t):this.getAttribute(n)??t,this[r])}}}function D(){return function(e,t){const u=t.name,n=u.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,u,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${n}]`))}})}))}}Symbol("hasProxy");const w=Symbol("meta");function*B(e,t,u){(!u||u>e.length)&&(u=e.length);let n=0,r=0;for(;n<u&&r<e.length;)t(e[r])&&(yield e[r],n++),r++}function $(e){return function(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],u=0;u<t.length;u++)e=e.replace(t[u].letters,t[u].base);return e}(e.trim().toLowerCase()).replace(/(\w) (\w)/g,"$1-$2")}var x=u(567),L=function(e,t,u,n,r,s){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,o=n.kind,l="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),E=!1,h=u.length-1;h>=0;h--){var p={};for(var g in n)p[g]="access"===g?{}:n[g];for(var g in n.access)p.access[g]=n.access[g];p.addInitializer=function(e){if(E)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(e||null))};var m=(0,u[h])("accessor"===o?{get:d.get,set:d.set}:d[l],p);if("accessor"===o){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=i(m.get))&&(d.get=a),(a=i(m.set))&&(d.set=a),(a=i(m.init))&&r.unshift(a)}else(a=i(m))&&("field"===o?r.unshift(a):d[l]=a)}c&&Object.defineProperty(c,n.name,d),E=!0},S=function(e,t,u){for(var n=arguments.length>2,r=0;r<t.length;r++)u=n?t[r].call(e,u):t[r].call(e);return n?u:void 0};const k="ArrowUp",O="ArrowDown";(()=>{let e,t,u,n,r,s,i,a,o,l,c,d=[C({selector:"pg-search",style:x.A,template:'<div part="grid"> <input part="input" type="text"/> <svg viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"/></svg> <div part="menu"> <ul part="list"></ul> <section part="empty"> <strong>No Results</strong> <a part="reqIcon" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Icon+Request&template=1_icon_request.md&title=" target="_blank"> Request an Icon <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> <a part="reqDoc" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Documentation&template=6_doc_guide_request.md&title=" target="_blank"> Request Documentation <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> </section> </div> </div>'})],E=[],h=HTMLElement,p=[],g=[],m=[],f=[],b=[],F=[],A=[],y=[],w=[],I=[],P=[],q=[],T=[],R=[],j=[],z=[],M=[],N=[];(class extends h{static{t=this}static{const C="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;u=[v()],n=[v()],r=[D()],s=[D()],i=[D()],a=[D()],o=[D()],l=[D()],c=[D()],L(null,null,u,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:C},p,g),L(null,null,n,{kind:"field",name:"icons",static:!1,private:!1,access:{has:e=>"icons"in e,get:e=>e.icons,set:(e,t)=>{e.icons=t}},metadata:C},m,f),L(null,null,r,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:C},b,F),L(null,null,s,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:C},A,y),L(null,null,i,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:C},w,I),L(null,null,a,{kind:"field",name:"$list",static:!1,private:!1,access:{has:e=>"$list"in e,get:e=>e.$list,set:(e,t)=>{e.$list=t}},metadata:C},P,q),L(null,null,o,{kind:"field",name:"$empty",static:!1,private:!1,access:{has:e=>"$empty"in e,get:e=>e.$empty,set:(e,t)=>{e.$empty=t}},metadata:C},T,R),L(null,null,l,{kind:"field",name:"$reqIcon",static:!1,private:!1,access:{has:e=>"$reqIcon"in e,get:e=>e.$reqIcon,set:(e,t)=>{e.$reqIcon=t}},metadata:C},j,z),L(null,null,c,{kind:"field",name:"$reqDoc",static:!1,private:!1,access:{has:e=>"$reqDoc"in e,get:e=>e.$reqDoc,set:(e,t)=>{e.$reqDoc=t}},metadata:C},M,N),L(null,e={value:t},d,{kind:"class",name:t.name,metadata:C},null,E),t=e.value,C&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:C}),S(t,E)}items=S(this,p,[]);icons=(S(this,g),S(this,m,[]));$grid=(S(this,f),S(this,b,void 0));$menu=(S(this,F),S(this,A,void 0));$input=(S(this,y),S(this,w,void 0));$list=(S(this,I),S(this,P,void 0));$empty=(S(this,q),S(this,T,void 0));$reqIcon=(S(this,R),S(this,j,void 0));$reqDoc=(S(this,z),S(this,M,void 0));isOpen=(S(this,N),!1);isOver=!1;term="";keyIndex=-1;anchors=[];connectedCallback(){this.$input.addEventListener("input",this.handleInput.bind(this)),this.$input.addEventListener("focus",this.handleFocus.bind(this)),this.$input.addEventListener("blur",this.handleBlur.bind(this)),this.addEventListener("keydown",this.keydown.bind(this)),this.$list.addEventListener("mouseenter",this.handleListEnter.bind(this)),this.$list.addEventListener("mouseleave",this.handleListLeave.bind(this))}handleInput(e){const t=e.target,{value:u}=t;this.term=u,this.updateList()}handleFocus(){this.keyIndex=-1,this.updateList(),this.isOpen=!0,this.$menu.style.display="block",this.$grid.classList.add("active")}handleBlur(){this.isOver||(this.isOpen=!1,this.$menu.style.display="none",this.$grid.classList.remove("active"),this.keyIndex-=1)}keydown(e){switch(e.key){case O:this.keyIndex+=1,this.setActive(),e.preventDefault(),e.stopPropagation();break;case k:this.keyIndex-=1,this.setActive(),e.preventDefault(),e.stopPropagation()}}setActive(){-2===this.keyIndex&&(this.keyIndex=this.anchors.length-1),this.keyIndex===this.anchors.length&&(this.keyIndex=-1),-1===this.keyIndex?(this.$input.focus(),this.isOver=!1):(this.isOver=!0,this.anchors[this.keyIndex].focus())}handleListEnter(){this.isOver=!0}handleListLeave(){this.isOver=!1}highlight(e){var t=e;const u=document.createElement("span"),n=$(this.term);if(""===this.term)return u.innerText=e,u;for(;t;){var r=t.toLowerCase().indexOf(n);if(-1===r){const e=document.createElement("span");e.innerText=t.substr(0,t.length),u.appendChild(e),t=""}else{if(r>0){const e=document.createElement("span");e.innerText=t.substr(0,r),u.appendChild(e)}const e=document.createElement("strong");e.innerText=t.substr(r,n.length),u.appendChild(e),t=t.substr(r+n.length,t.length)}}return u}clearList(){for(;this.$list.firstChild;)this.$list.removeChild(this.$list.firstChild);this.anchors=[]}updateList(){this.clearList();let e=!1;const t=new RegExp(this.term,"i"),u=Array.from(B(this.items,(e=>e.name.match(t)),5));if(u.forEach(((t,n)=>{var r=document.createElement("li");r.classList.add("item"),r.classList.toggle("first",0===n),r.classList.toggle("last",n===u.length-1);var s=document.createElement("a");s.href=t.url;var i=this.highlight(t.name);s.appendChild(i);var a=document.createElement("span");a.innerText=t.type,a.classList.add("type"),s.appendChild(a),r.appendChild(s),this.$list.appendChild(r),this.anchors.push(s),e=!0})),""!==this.term){const t=function(e,t,u=5){t=$(t);const n=B(e,(e=>0===e.name?.toLowerCase().indexOf(t)),u),r=Array.from(n);let s=r.map((e=>e.id));if(r.length<u){var i=B(e,(e=>!s.includes(e.id)&&-1!==e.name?.toLowerCase().indexOf(t)),u-r.length);Array.from(i).forEach((e=>r.push(e)))}if(s=r.map((e=>e.id)),r.length<u){var a=B(e,(e=>{if(s.includes(e.id))return!1;for(var u=0,n=e.aliases.length;u<n;u++){if(null==e.aliases[u].name)return console.error(`Invalid alias in ${e.name}`),!1;if(-1!==e.aliases[u].name.indexOf(t))return e.aliases[u].match=!0,!0}return!1}),u-r.length);Array.from(a).forEach((e=>r.push(e)))}return function(e,t){for(var u=0,n=e.length;u<n;u++)if(e[u].name?.toLowerCase()===t)return e.unshift(e.splice(u,1)[0]),e;return e}(r,t)}(this.icons,this.term,5);if(t.length)(n=document.createElement("li")).innerText="Icons",n.classList.add("section"),this.$list.appendChild(n);if(t.forEach(((e,u)=>{var n=document.createElement("li");n.classList.add("icon"),n.classList.toggle("first",0===u),n.classList.toggle("last",u===t.length-1);var r=document.createElement("a");r.href=`/icon/${e.name}`;var s=e.aliases.reduce(((e,t)=>(t.match&&e.push(t.name||""),e)),[]),i="";s.length&&(i=` (${s.join(", ")})`);const a=this.highlight(`${e.name}${i}`),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("fill","currentColor");const l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d",e.data),o.appendChild(l),r.appendChild(o),r.appendChild(a),n.appendChild(r),this.anchors.push(r),this.$list.appendChild(n)})),5===t.length){var n;(n=document.createElement("li")).classList.add("all");var r=document.createElement("a");r.href=`/icons?search=${this.term}`,r.appendChild(document.createTextNode('All results for "'));var s=document.createElement("strong");s.innerText=this.term,r.appendChild(s),r.appendChild(document.createTextNode('"')),n.appendChild(r),this.anchors.push(r),this.$list.appendChild(n)}t.length>0&&(e=!0)}e||(this.anchors.push(this.$reqIcon),this.anchors.push(this.$reqDoc)),this.$empty.classList.toggle("hide",e)}})})()})();
1
+ (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var u="",n=void 0!==t[5];return t[4]&&(u+="@supports (".concat(t[4],") {")),t[2]&&(u+="@media ".concat(t[2]," {")),n&&(u+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),u+=e(t),n&&(u+="}"),t[2]&&(u+="}"),t[4]&&(u+="}"),u})).join("")},t.i=function(e,u,n,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&i[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),u&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=u):c[2]=u),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},567:(e,t,u)=>{u.d(t,{A:()=>o});var n=u(601),r=u.n(n),s=u(314),i=u.n(s)()(r());i.push([e.id,":host {\n display: block;\n align-self: center;\n font-family: var(--pg-font-family);\n}\n\ndiv {\n display: grid;\n grid-template-columns: 1fr 0;\n grid-template-rows: 1fr 0;\n}\ninput {\n grid-row: 1;\n grid-column: 1;\n border-radius: 0.25rem;\n border: 0;\n padding: 0.25rem 0.5rem;\n font-size: 1rem;\n outline: none;\n width: calc(100% - 1rem);\n border: .0625rem solid var(--pg-search-border-color);\n}\ninput:active {\n box-shadow: 0 0 0 3px var(--pg-search-active-glow, rgba(79, 143, 249, 0.6));\n}\ninput:focus {\n box-shadow: 0 0 0 3px var(--pg-focus-color, rgba(79, 143, 249, 0.5));\n}\n.active input + svg path {\n fill: #453C4F;\n}\nsvg {\n grid-row: 1;\n grid-column: 2;\n width: 1.5rem;\n height: 1.5rem;\n justify-self: right;\n margin-right: 0.25rem;\n pointer-events: none;\n align-self: center;\n}\nsvg > path {\n transition: fill 0.3s ease-in-out;\n}\n[part=menu] {\n display: none;\n background: #FFF;\n grid-row: 2;\n grid-column: 1 / span 2;\n z-index: 1;\n}\nul {\n list-style: none;\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n border-radius: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\nul > li {\n color: #222;\n}\nul > li > a {\n display: flex;\n padding: 0.25rem 0.5rem;\n background: #FFF;\n border-left: 1px solid #DDD;\n border-right: 1px solid #DDD;\n}\nul > li > a:hover,\nul > li > a:active,\nul > li > a:focus {\n background: #DAF4FB;\n}\nul > li.item:first-child > a {\n border-top: 1px solid #DDD;\n border-bottom: 1px solid #DDD;\n border-radius: 0.25rem 0.25rem 0 0;\n}\nul > li.item:not(:first-child) > a {\n border-bottom: 1px solid #DDD;\n}\nul > li.item:last-child > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\nul > li > a {\n text-decoration: none;\n color: #222;\n}\nul > li > a strong {\n color: #453C4F;\n}\n.section {\n color: #FFF;\n padding: 0.25rem 0.5rem;\n font-weight: bold;\n background: #453C4F;\n border-radius: 0.25rem 0.25rem 0 0;\n cursor: default;\n}\n.section + li a {\n border-radius: 0;\n}\n\nli + .section {\n border-radius: 0;\n}\n\n.type {\n background-color: #453C4F;\n border-radius: 0.25rem;\n font-size: 0.75rem;\n color: #fff;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n margin: 0.125rem 0 0.125rem 0.25rem;\n align-self: end;\n}\n\n.icon {\n background-color: #453C4F;\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.icon.first > a {\n border-top-left-radius: 0.25rem;\n border-top-right-radius: 0.25rem;\n}\n.icon.last {\n padding-bottom: 0.25rem;\n border-bottom-left-radius: 0.25rem;\n border-bottom-right-radius: 0.25rem;\n}\n.icon.last > a {\n border-radius: 0 0 0.25rem 0.25rem;\n}\n.icon svg {\n color: #453C4F;\n margin-right: 0.345rem;\n margin-left: -0.25rem;\n}\n\n.all {\n background-color: #453C4F;\n padding: 0 0.25rem 0.25rem 0.25rem;\n border-radius: 0 0 0.25rem 0.25rem;\n}\n\n.all a {\n border-radius: 0.25rem;\n}\n\n[part~=empty] {\n background: #453C4F;\n border-radius: 0.25rem;\n padding: 0.25rem;\n box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);\n}\n[part~=empty] strong {\n color: #fff;\n padding: 0 0.25rem;\n}\n[part~=empty] a {\n display: block;\n background: #fff;\n color: #453C4F;\n text-decoration: none;\n padding: 0.25rem 0.5rem;\n border-radius: 0.25rem;\n margin-top: 0.25rem;\n}\n[part~=empty] a:hover,\n[part~=empty] a:active,\n[part~=empty] a:focus {\n background: #DAF4FB;\n}\n[part~=empty] a svg {\n vertical-align: middle;\n width: 1.5rem;\n height: 1.5rem;\n float: right;\n margin: -0.125rem -0.25rem 0 0;\n}\n\n.hide {\n display: none;\n}",""]);var a=new CSSStyleSheet;a.replaceSync(i.toString());const o=a},601:e=>{e.exports=function(e){return e[1]}}},t={};function u(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,exports:{}};return e[n](s,s.exports,u),s.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=Symbol("addObserver"),r=Symbol("removeObserver"),s=Symbol("getObservers"),i=Symbol("swapObserver"),a=Symbol("isProxy"),o=Symbol("getTarget"),l=["fill","pop","push","reverse","shift","sort","splice","unshift"],c=new Map;function d(e){return new Proxy(e,{get(t,u){if("symbol"==typeof u){switch(u){case a:return!0;case o:return t;case s:return t=>{const u=c.get(e);return u?.has(t)};case i:return(t,u)=>{const n=c.get(e);if(n){const e=n.get(t);e&&e.forEach(((n,r)=>{if(!n)throw new Error("Unreachable");{const e=c.get(u);if(e){const u=e.get(t);u?u.set(r,n):e.set(t,new Map([[r,n]]))}else c.set(u,new Map([[t,new Map([[r,n]])]]))}e.delete(r),n.forEach((e=>{e(null,E.swap,[u])}))}))}};case n:return(t,u)=>{const n=t.getRootNode().host,r=c.get(e);if(r){const e=r.get(n);if(e){const n=e.get(t);n?n.push(u):e.set(t,[u])}else r.set(n,new Map([[t,[u]]]))}else c.set(e,new Map([[n,new Map([[t,[u]]])]]))};case r:return t=>{const u=t.getRootNode().host,n=c.get(e);n&&(n.delete(u),0===n.size&&c.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,u)}throw new Error("Unsupported symbol")}if(u in t){if(!Number.isNaN(Number(u)))return"object"==typeof t[u]?d(t[u]):t[u];if("copyWithin"===u)throw new Error("Unsupported array method copyWithin");if(l.includes(u))return c.has(t)?function(){const e=Array.prototype[u].apply(t,arguments),n=c.get(t);return n?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,u,arguments)}))}))})),e}:Reflect.get(t,u);if(t[u]instanceof Array)return d(t[u])}return Reflect.get(t,u)},set(e,t,u){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,u);if(c.has(e)){const n=c.get(e);n?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,u)}))}))}))}return Reflect.set(e,t,u)}})}window.observers=c;const E={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const h=Symbol("init"),p=Symbol("template"),m=Symbol("style"),g=Symbol("parent");function f(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function C(e={}){return function(t,u){if("class"!==u.kind)throw new Error("@Component() can only decorate a class");var n,r;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[g]||t.prototype[g][t.prototype[g].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[g]=[t.prototype],t.prototype[m]=e.style?[e.style]:[],t.prototype[p]=e.template||""):(t.prototype[g].push(t.prototype),t.prototype[m].push(e.style),t.prototype[p]=(n=t.prototype[p],(r=e.template||null)&&r.match(/<parent\/>/)?r.replace(/<parent\/>/,n):n.match(/<child\/>/)?n.replace(/<child\/>/,r||""):`${n}${r||""}`));const s=t.prototype.connectedCallback||(()=>{}),i=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[h]||void 0!==e.template||void 0!==e.style)if(this[h]){if(this[h]&&e.style);else if(this[h]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[p]||"";const u=document.importNode(e.content,!0),n=this.attachShadow({mode:"open"});n.adoptedStyleSheets=t.prototype[m].reduce(((e,t)=>{if(!t)return e;if(t instanceof CSSStyleSheet)return e.push(t),e;var u=new CSSStyleSheet;return u.replaceSync(t.toString()),e.push(u),e}),[]),n.appendChild(u)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const u=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&u.add(e.localName);const n=Array.from(u.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),r=()=>{this[g].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[b(t)]=!0,e)),{}):{})}))};0===n.length?(this[h]=!0,s.call(this),r()):Promise.all(n).then((()=>{this[h]=!0,s.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));r()}))},t.prototype.disconnectedCallback=function(){i.call(this)},t.prototype.attributeChangedCallback=function(e,t,u){this[b(e)]=u},u.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${u.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function F(e){return!!e&&e.constructor===Array}function A(e,t){e[h]&&e[g].map((u=>{u.render&&u.render.call(e,{[t]:!0})}))}function y(e){return null===e?"null":F(e)?"array":typeof e}function v(e){return function(t,u){const n=u.name,r=Symbol(n),l=Symbol(`${n}:type`),c=Symbol(`${n}:meta`);return u.addInitializer((function(){Reflect.defineProperty(this,n,{get:()=>"object"===this[l]||"array"===this[l]?this[r][a]?this[r]:d(this[r]):this[r],set:t=>{const u=y(e?e(t):t);if("index"!==n&&this[l]!==u&&"null"!==this[l]&&"null"!==u)throw new Error(`@Prop() ${n} with type '${this[l]}' cannot be set to ${u}.`);if("array"===this[l]){if(!F(t))throw new PropError(`Array "${n}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,n)?.set);if(this[r]===t)throw new Error("Setting an array to itself is not allowed.");const e=d(this[r]);if(e[s](this)){const u=t[a]?t[o]:t;e[i](this,u),this[r]=t}else this[r]=t}else this[r]=e?e(t):t,A(this,n)}})})),function(t){if(void 0===t&&"index"!==n)throw new Error(`@Prop() ${n} must have an initial value defined.`);if(void 0!==t&&"index"===n)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${n} boolean must initialize to false.`);if(!u.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,u=f(n);t[n]||(e.observedAttributes.push(u),t[n]=r)}return this[l]=y(t),"array"===this[l]?(this[r]=t,new Proxy(t,{get:(e,t)=>t===w?this[c]:(console.log("errr???"),Reflect.get(this[r],t)),set:(e,t,u)=>{if(t===w)return this[c]=u,!0;const s=Reflect.set(e,t,u);return"length"===t&&this[r].length===u||A(this,n),this[r]=u,s}})):(this[r]=e?e(this.getAttribute(n)??t):this.getAttribute(n)??t,this[r])}}}function D(){return function(e,t){const u=t.name,n=u.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,u,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${n}]`))}})}))}}Symbol("hasProxy");const w=Symbol("meta");function*B(e,t,u){(!u||u>e.length)&&(u=e.length);let n=0,r=0;for(;n<u&&r<e.length;)t(e[r])&&(yield e[r],n++),r++}function $(e){return function(e){for(var t=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],u=0;u<t.length;u++)e=e.replace(t[u].letters,t[u].base);return e}(e.trim().toLowerCase()).replace(/(\w) (\w)/g,"$1-$2")}var x=u(567),L=function(e,t,u,n,r,s){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,o=n.kind,l="getter"===o?"get":"setter"===o?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),E=!1,h=u.length-1;h>=0;h--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(E)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(e||null))};var g=(0,u[h])("accessor"===o?{get:d.get,set:d.set}:d[l],p);if("accessor"===o){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=i(g.get))&&(d.get=a),(a=i(g.set))&&(d.set=a),(a=i(g.init))&&r.unshift(a)}else(a=i(g))&&("field"===o?r.unshift(a):d[l]=a)}c&&Object.defineProperty(c,n.name,d),E=!0},S=function(e,t,u){for(var n=arguments.length>2,r=0;r<t.length;r++)u=n?t[r].call(e,u):t[r].call(e);return n?u:void 0};const k="ArrowUp",O="ArrowDown";(()=>{let e,t,u,n,r,s,i,a,o,l,c,d=[C({selector:"pg-search",style:x.A,template:'<div part="grid"> <input part="input" type="text"/> <svg viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"/></svg> <div part="menu"> <ul part="list"></ul> <section part="empty"> <strong>No Results</strong> <a part="reqIcon" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Icon+Request&template=1_icon_request.md&title=" target="_blank"> Request an Icon <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> <a part="reqDoc" href="https://github.com/Templarian/MaterialDesign/issues/new?labels=Documentation&template=6_doc_guide_request.md&title=" target="_blank"> Request Documentation <svg viewBox="0 0 24 24"><path fill="currentColor" d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/></svg> </a> </section> </div> </div>'})],E=[],h=HTMLElement,p=[],m=[],g=[],f=[],b=[],F=[],A=[],y=[],w=[],I=[],P=[],q=[],T=[],R=[],j=[],M=[],z=[],N=[];(class extends h{static{t=this}static{const C="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;u=[v()],n=[v()],r=[D()],s=[D()],i=[D()],a=[D()],o=[D()],l=[D()],c=[D()],L(null,null,u,{kind:"field",name:"items",static:!1,private:!1,access:{has:e=>"items"in e,get:e=>e.items,set:(e,t)=>{e.items=t}},metadata:C},p,m),L(null,null,n,{kind:"field",name:"icons",static:!1,private:!1,access:{has:e=>"icons"in e,get:e=>e.icons,set:(e,t)=>{e.icons=t}},metadata:C},g,f),L(null,null,r,{kind:"field",name:"$grid",static:!1,private:!1,access:{has:e=>"$grid"in e,get:e=>e.$grid,set:(e,t)=>{e.$grid=t}},metadata:C},b,F),L(null,null,s,{kind:"field",name:"$menu",static:!1,private:!1,access:{has:e=>"$menu"in e,get:e=>e.$menu,set:(e,t)=>{e.$menu=t}},metadata:C},A,y),L(null,null,i,{kind:"field",name:"$input",static:!1,private:!1,access:{has:e=>"$input"in e,get:e=>e.$input,set:(e,t)=>{e.$input=t}},metadata:C},w,I),L(null,null,a,{kind:"field",name:"$list",static:!1,private:!1,access:{has:e=>"$list"in e,get:e=>e.$list,set:(e,t)=>{e.$list=t}},metadata:C},P,q),L(null,null,o,{kind:"field",name:"$empty",static:!1,private:!1,access:{has:e=>"$empty"in e,get:e=>e.$empty,set:(e,t)=>{e.$empty=t}},metadata:C},T,R),L(null,null,l,{kind:"field",name:"$reqIcon",static:!1,private:!1,access:{has:e=>"$reqIcon"in e,get:e=>e.$reqIcon,set:(e,t)=>{e.$reqIcon=t}},metadata:C},j,M),L(null,null,c,{kind:"field",name:"$reqDoc",static:!1,private:!1,access:{has:e=>"$reqDoc"in e,get:e=>e.$reqDoc,set:(e,t)=>{e.$reqDoc=t}},metadata:C},z,N),L(null,e={value:t},d,{kind:"class",name:t.name,metadata:C},null,E),t=e.value,C&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:C}),S(t,E)}items=S(this,p,[]);icons=(S(this,m),S(this,g,[]));$grid=(S(this,f),S(this,b,void 0));$menu=(S(this,F),S(this,A,void 0));$input=(S(this,y),S(this,w,void 0));$list=(S(this,I),S(this,P,void 0));$empty=(S(this,q),S(this,T,void 0));$reqIcon=(S(this,R),S(this,j,void 0));$reqDoc=(S(this,M),S(this,z,void 0));isOpen=(S(this,N),!1);isOver=!1;term="";keyIndex=-1;anchors=[];connectedCallback(){this.$input.addEventListener("input",this.handleInput.bind(this)),this.$input.addEventListener("focus",this.handleFocus.bind(this)),this.$input.addEventListener("blur",this.handleBlur.bind(this)),this.addEventListener("keydown",this.keydown.bind(this)),this.$list.addEventListener("mouseenter",this.handleListEnter.bind(this)),this.$list.addEventListener("mouseleave",this.handleListLeave.bind(this))}handleInput(e){const t=e.target,{value:u}=t;this.term=u,this.updateList()}handleFocus(){this.keyIndex=-1,this.updateList(),this.isOpen=!0,this.$menu.style.display="block",this.$grid.classList.add("active")}handleBlur(){this.isOver||(this.isOpen=!1,this.$menu.style.display="none",this.$grid.classList.remove("active"),this.keyIndex-=1)}keydown(e){switch(e.key){case O:this.keyIndex+=1,this.setActive(),e.preventDefault(),e.stopPropagation();break;case k:this.keyIndex-=1,this.setActive(),e.preventDefault(),e.stopPropagation()}}setActive(){-2===this.keyIndex&&(this.keyIndex=this.anchors.length-1),this.keyIndex===this.anchors.length&&(this.keyIndex=-1),-1===this.keyIndex?(this.$input.focus(),this.isOver=!1):(this.isOver=!0,this.anchors[this.keyIndex].focus())}handleListEnter(){this.isOver=!0}handleListLeave(){this.isOver=!1}highlight(e){var t=e;const u=document.createElement("span"),n=$(this.term);if(""===this.term)return u.innerText=e,u;for(;t;){var r=t.toLowerCase().indexOf(n);if(-1===r){const e=document.createElement("span");e.innerText=t.substr(0,t.length),u.appendChild(e),t=""}else{if(r>0){const e=document.createElement("span");e.innerText=t.substr(0,r),u.appendChild(e)}const e=document.createElement("strong");e.innerText=t.substr(r,n.length),u.appendChild(e),t=t.substr(r+n.length,t.length)}}return u}clearList(){for(;this.$list.firstChild;)this.$list.removeChild(this.$list.firstChild);this.anchors=[]}updateList(){this.clearList();let e=!1;const t=new RegExp(this.term,"i"),u=Array.from(B(this.items,(e=>e.name.match(t)),5));if(u.forEach(((t,n)=>{var r=document.createElement("li");r.classList.add("item"),r.classList.toggle("first",0===n),r.classList.toggle("last",n===u.length-1);var s=document.createElement("a");s.href=t.url;var i=this.highlight(t.name);s.appendChild(i);var a=document.createElement("span");a.innerText=t.type,a.classList.add("type"),s.appendChild(a),r.appendChild(s),this.$list.appendChild(r),this.anchors.push(s),e=!0})),""!==this.term){const t=function(e,t,u=5){t=$(t);const n=B(e,(e=>0===e.name?.toLowerCase().indexOf(t)),u),r=Array.from(n);let s=r.map((e=>e.id));if(r.length<u){var i=B(e,(e=>!s.includes(e.id)&&-1!==e.name?.toLowerCase().indexOf(t)),u-r.length);Array.from(i).forEach((e=>r.push(e)))}if(s=r.map((e=>e.id)),r.length<u){var a=B(e,(e=>{if(s.includes(e.id))return!1;for(var u=0,n=e.aliases.length;u<n;u++){if(null==e.aliases[u].name)return console.error(`Invalid alias in ${e.name}`),!1;if(-1!==e.aliases[u].name.indexOf(t))return e.aliases[u].match=!0,!0}return!1}),u-r.length);Array.from(a).forEach((e=>r.push(e)))}return function(e,t){for(var u=0,n=e.length;u<n;u++)if(e[u].name?.toLowerCase()===t)return e.unshift(e.splice(u,1)[0]),e;return e}(r,t)}(this.icons,this.term,5);if(t.length)(n=document.createElement("li")).innerText="Icons",n.classList.add("section"),this.$list.appendChild(n);if(t.forEach(((e,u)=>{var n=document.createElement("li");n.classList.add("icon"),n.classList.toggle("first",0===u),n.classList.toggle("last",u===t.length-1);var r=document.createElement("a");r.href=`/icon/${e.name}`;var s=e.aliases.reduce(((e,t)=>(t.match&&e.push(t.name||""),e)),[]),i="";s.length&&(i=` (${s.join(", ")})`);const a=this.highlight(`${e.name}${i}`),o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("viewBox","0 0 24 24"),o.setAttribute("fill","currentColor");const l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d",e.data),o.appendChild(l),r.appendChild(o),r.appendChild(a),n.appendChild(r),this.anchors.push(r),this.$list.appendChild(n)})),5===t.length){var n;(n=document.createElement("li")).classList.add("all");var r=document.createElement("a");r.href=`/icons?search=${this.term}`,r.appendChild(document.createTextNode('All results for "'));var s=document.createElement("strong");s.innerText=this.term,r.appendChild(s),r.appendChild(document.createTextNode('"')),n.appendChild(r),this.anchors.push(r),this.$list.appendChild(n)}t.length>0&&(e=!0)}e||(this.anchors.push(this.$reqIcon),this.anchors.push(this.$reqDoc)),this.$empty.classList.toggle("hide",e)}})})()})();
package/pgTab.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",o=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),o&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),o&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,o,n,s){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(o)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);o&&a[p[0]]||(void 0!==s&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=s),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),e.push(p))}},e}},601:t=>{t.exports=function(t){return t[1]}},937:(t,e,r)=>{r.d(e,{A:()=>l});var o=r(601),n=r.n(o),s=r(314),a=r.n(s)()(n());a.push([t.id,':host {\n display: block;\n}\n\n[part="tab"] {\n display: none;\n}\n\n[part="tab"].active {\n display: block;\n border-top: 1px solid var(--pg-tab-border, #453C4F);\n margin-top: -1px;\n}',""]);var i=new CSSStyleSheet;i.replaceSync(a.toString());const l=i}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,r),s.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const o=Symbol("addObserver"),n=Symbol("removeObserver"),s=Symbol("getObservers"),a=Symbol("swapObserver"),i=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],p=new Map;function u(t){return new Proxy(t,{get(e,r){if("symbol"==typeof r){switch(r){case i:return!0;case l:return e;case s:return p.has(t);case a:return(e,r)=>{const o=p.get(t);o.forEach(((n,s)=>{if(s.getRootNode().host===e){const e=o.get(s);p.has(r)?p.get(r).has(s)?p.get(r).get(s).push(o.get(s)):p.get(r).set(s,o.get(s)):p.set(r,new Map([[s,e]])),p.delete(t),e.forEach((t=>{t(null,h.swap,[r])}))}}))};case o:return(e,r)=>{p.has(t)?p.get(t).has(e)?p.get(t).get(e).push(r):p.get(t).set(e,[r]):p.set(t,new Map([[e,[r]]]))};case n:return e=>{p.has(t)&&(p.get(t).delete(e),0===p.get(t).size&&p.delete(t))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(e,r)}throw new Error("Unsupported symbol")}if(r in e){if(!Number.isNaN(Number(r)))return"object"==typeof e[r]?u(e[r]):e[r];if("copyWithin"===r)throw new Error("Unsupported array method copyWithin");if(c.includes(r))return p.has(e)?function(){const t=Array.prototype[r].apply(e,arguments);return p.get(e).forEach(((t,o)=>{t.forEach((t=>{t(e,r,arguments)}))})),t}:Reflect.get(e,r);if(e[r]instanceof Array)return u(e[r])}return Reflect.get(e,r)},set(t,e,r){if("symbol"==typeof e)throw new Error("Setting symbols not allowed.");if(Array.isArray(t))return Reflect.set(t,e,r);if(p.has(t)){p.get(t).forEach(((t,o)=>{t.forEach((t=>{t(e,r)}))}))}return Reflect.set(t,e,r)}})}window.observers=p;const h={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(t,e){super(t),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}Symbol("index");const d=Symbol("init"),f=Symbol("template"),y=Symbol("style"),m=Symbol("parent");function b(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function g(t){return t.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))}function v(t={}){return function(e,r){if("class"!==r.kind)throw new Error("@Component() can only decorate a class");var o,n;Reflect.defineProperty(e,"name",{value:t.selector,writable:!1,configurable:!1}),!e.prototype[m]||e.prototype[m][e.prototype[m].length-1]instanceof Object.getPrototypeOf(e)?e.prototype instanceof HTMLElement&&(e.prototype[m]=[e.prototype],e.prototype[y]=t.style?[t.style]:[],e.prototype[f]=t.template||""):(e.prototype[m].push(e.prototype),e.prototype[y].push(t.style),e.prototype[f]=(o=e.prototype[f],(n=t.template||null)&&n.match(/<parent\/>/)?n.replace(/<parent\/>/,o):`${o}${n||""}`));const s=e.prototype.connectedCallback||(()=>{}),a=e.prototype.disconnectedCallback||(()=>{});e.prototype.connectedCallback=function(){if(this[d]||void 0!==t.template||void 0!==t.style)if(this[d]){if(this[d]&&t.style);else if(this[d]&&t.selector&&!t.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===t.useShadow)throw new Error("unsupported");{const t=document.createElement("template");t.innerHTML=e.prototype[f]||"";const r=document.importNode(t.content,!0),o=this.attachShadow({mode:"open"});o.adoptedStyleSheets=e.prototype[y].map((t=>{if(t instanceof CSSStyleSheet)return t;var e=new CSSStyleSheet;return e.replaceSync(t.toString()),e})),o.appendChild(r)}}else!1===t.useShadow||this.attachShadow({mode:"open"});const r=new Set;for(const t of this.shadowRoot.querySelectorAll("*"))-1!==t.localName.indexOf("-")&&r.add(t.localName);const o=Array.from(r.values()).map((t=>customElements.get(t)?Promise.resolve():customElements.whenDefined(t))),n=()=>{this[m].map((t=>{t.render&&t.render.call(this,e.observedAttributes?e.observedAttributes.reduce(((t,e)=>(t[g(e)]=!0,t)),{}):{})}))};0===o.length?(this[d]=!0,s.call(this),n()):Promise.all(o).then((()=>{this[d]=!0,s.call(this);for(const t of this.shadowRoot.querySelectorAll("slot"))t.dispatchEvent(new CustomEvent("slotchange"));n()}))},e.prototype.disconnectedCallback=function(){a.call(this)},e.prototype.attributeChangedCallback=function(t,e,r){this[g(t)]=r},r.addInitializer((function(){if(t.selector){if(window.customElements.get(t.selector))throw new Error(`@Component() ${r.name} duplicate selector '${t.selector}'`);window.customElements.define(t.selector,e)}}))}}Symbol("transmute");function w(t){return!!t&&t.constructor===Array}function S(t,e){t[d]&&t[m].map((r=>{r.render&&r.render.call(t,{[e]:!0})}))}function E(t){return null===t?"null":w(t)?"array":typeof t}Symbol("hasProxy");const P=Symbol("meta");var x=r(937),$=function(t,e,r,o,n,s){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var i,l=o.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!e&&t?o.static?t:t.prototype:null,u=e||(p?Object.getOwnPropertyDescriptor(p,o.name):{}),h=!1,d=r.length-1;d>=0;d--){var f={};for(var y in o)f[y]="access"===y?{}:o[y];for(var y in o.access)f.access[y]=o.access[y];f.addInitializer=function(t){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(t||null))};var m=(0,r[d])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(i=a(m.get))&&(u.get=i),(i=a(m.set))&&(u.set=i),(i=a(m.init))&&n.unshift(i)}else(i=a(m))&&("field"===l?n.unshift(i):u[c]=i)}p&&Object.defineProperty(p,o.name,u),h=!0},A=function(t,e,r){for(var o=arguments.length>2,n=0;n<e.length;n++)r=o?e[n].call(t,r):e[n].call(t);return o?r:void 0};(()=>{let t,e,r,o,n=[v({selector:"pg-tab",style:x.A,template:'<div part="tab"> <slot></slot> </div>'})],c=[],p=HTMLElement,h=[],d=[],f=[],y=[];(class extends p{static{e=this}static{const m="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;var g;r=[function(t,e){const r=e.name,o=Symbol(r),n=Symbol(`${r}:type`),c=Symbol(`${r}:meta`);return e.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[n]||"array"===this[n]?this[o][i]?this[o]:u(this[o]):this[o],set:t=>{const e=E(g?g(t):t);if("index"!==r&&this[n]!==e&&"null"!==this[n]&&"null"!==e)throw new Error(`@Prop() ${r} with type '${this[n]}' cannot be set to ${e}.`);if("array"===this[n]){if(!w(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=u(this[o]);if(e[s]){const n=t[i]?t[l]:t;e[a](this,n),this[o]=t,console.log(">>> trigger render???",this,r)}else this[o]=t}else this[o]=g?g(t):t,S(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!e.private){const{constructor:t}=this;t.observedAttributes??=[],t.symbols||(t.symbols={});const{symbols:e}=t,n=b(r);e[r]||(t.observedAttributes.push(n),e[r]=o)}return this[n]=E(t),"array"===this[n]?(this[o]=t,new Proxy(t,{get:(t,e)=>e===P?this[c]:(console.log("errr???"),Reflect.get(this[o],e)),set:(t,e,n)=>{if(e===P)return this[c]=n,!0;const s=Reflect.set(t,e,n);return"length"===e&&this[o].length===n||S(this,r),this[o]=n,s}})):(this[o]=g?g(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}],o=[function(t,e){const r=e.name,o=r.replace(/^\$/,"");e.addInitializer((function(){let t=null;Reflect.defineProperty(this,r,{get(){return t??(t=this.shadowRoot?.querySelector(`[part~=${o}]`))}})}))}],$(null,null,r,{kind:"field",name:"label",static:!1,private:!1,access:{has:t=>"label"in t,get:t=>t.label,set:(t,e)=>{t.label=e}},metadata:m},h,d),$(null,null,o,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:t=>"$tab"in t,get:t=>t.$tab,set:(t,e)=>{t.$tab=e}},metadata:m},f,y),$(null,t={value:e},n,{kind:"class",name:e.name,metadata:m},null,c),e=t.value,m&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:m}),A(e,c)}label=A(this,h,"");$tab=(A(this,d),A(this,f,void 0));connectedCallback(){}show(){this.$tab.classList.add("active")}hide(){this.$tab.classList.remove("active")}render(t){t.label&&this.dispatchEvent(new CustomEvent("tab",{detail:{label:this.label},bubbles:!0}))}constructor(){super(...arguments),A(this,y)}})})()})();
1
+ (()=>{"use strict";var t={314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r="",o=void 0!==e[5];return e[4]&&(r+="@supports (".concat(e[4],") {")),e[2]&&(r+="@media ".concat(e[2]," {")),o&&(r+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),r+=t(e),o&&(r+="}"),e[2]&&(r+="}"),e[4]&&(r+="}"),r})).join("")},e.i=function(t,r,o,n,s){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(o)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);o&&a[p[0]]||(void 0!==s&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=s),r&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=r):p[2]=r),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),e.push(p))}},e}},601:t=>{t.exports=function(t){return t[1]}},937:(t,e,r)=>{r.d(e,{A:()=>l});var o=r(601),n=r.n(o),s=r(314),a=r.n(s)()(n());a.push([t.id,':host {\n display: block;\n}\n\n[part="tab"] {\n display: none;\n}\n\n[part="tab"].active {\n display: block;\n border-top: 1px solid var(--pg-tab-border, #453C4F);\n margin-top: -1px;\n}',""]);var i=new CSSStyleSheet;i.replaceSync(a.toString());const l=i}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,r),s.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const o=Symbol("addObserver"),n=Symbol("removeObserver"),s=Symbol("getObservers"),a=Symbol("swapObserver"),i=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],p=new Map;function u(t){return new Proxy(t,{get(e,r){if("symbol"==typeof r){switch(r){case i:return!0;case l:return e;case s:return e=>{const r=p.get(t);return r?.has(e)};case a:return(e,r)=>{const o=p.get(t);if(o){const t=o.get(e);t&&t.forEach(((o,n)=>{if(!o)throw new Error("Unreachable");{const t=p.get(r);if(t){const r=t.get(e);r?r.set(n,o):t.set(e,new Map([[n,o]]))}else p.set(r,new Map([[e,new Map([[n,o]])]]))}t.delete(n),o.forEach((t=>{t(null,h.swap,[r])}))}))}};case o:return(e,r)=>{const o=e.getRootNode().host,n=p.get(t);if(n){const t=n.get(o);if(t){const o=t.get(e);o?o.push(r):t.set(e,[r])}else n.set(o,new Map([[e,[r]]]))}else p.set(t,new Map([[o,new Map([[e,[r]]])]]))};case n:return e=>{const r=e.getRootNode().host,o=p.get(t);o&&(o.delete(r),0===o.size&&p.delete(t))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(e,r)}throw new Error("Unsupported symbol")}if(r in e){if(!Number.isNaN(Number(r)))return"object"==typeof e[r]?u(e[r]):e[r];if("copyWithin"===r)throw new Error("Unsupported array method copyWithin");if(c.includes(r))return p.has(e)?function(){const t=Array.prototype[r].apply(e,arguments),o=p.get(e);return o?.forEach((t=>{t.forEach((t=>{t.forEach((t=>{t(e,r,arguments)}))}))})),t}:Reflect.get(e,r);if(e[r]instanceof Array)return u(e[r])}return Reflect.get(e,r)},set(t,e,r){if("symbol"==typeof e)throw new Error("Setting symbols not allowed.");if(Array.isArray(t))return Reflect.set(t,e,r);if(p.has(t)){const o=p.get(t);o?.forEach((t=>{t.forEach((t=>{t.forEach((t=>{t(e,r)}))}))}))}return Reflect.set(t,e,r)}})}window.observers=p;const h={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(t,e){super(t),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}Symbol("index");const d=Symbol("init"),f=Symbol("template"),y=Symbol("style"),m=Symbol("parent");function b(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function v(t){return t.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))}function w(t={}){return function(e,r){if("class"!==r.kind)throw new Error("@Component() can only decorate a class");var o,n;Reflect.defineProperty(e,"name",{value:t.selector,writable:!1,configurable:!1}),!e.prototype[m]||e.prototype[m][e.prototype[m].length-1]instanceof Object.getPrototypeOf(e)?e.prototype instanceof HTMLElement&&(e.prototype[m]=[e.prototype],e.prototype[y]=t.style?[t.style]:[],e.prototype[f]=t.template||""):(e.prototype[m].push(e.prototype),e.prototype[y].push(t.style),e.prototype[f]=(o=e.prototype[f],(n=t.template||null)&&n.match(/<parent\/>/)?n.replace(/<parent\/>/,o):o.match(/<child\/>/)?o.replace(/<child\/>/,n||""):`${o}${n||""}`));const s=e.prototype.connectedCallback||(()=>{}),a=e.prototype.disconnectedCallback||(()=>{});e.prototype.connectedCallback=function(){if(this[d]||void 0!==t.template||void 0!==t.style)if(this[d]){if(this[d]&&t.style);else if(this[d]&&t.selector&&!t.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===t.useShadow)throw new Error("unsupported");{const t=document.createElement("template");t.innerHTML=e.prototype[f]||"";const r=document.importNode(t.content,!0),o=this.attachShadow({mode:"open"});o.adoptedStyleSheets=e.prototype[y].reduce(((t,e)=>{if(!e)return t;if(e instanceof CSSStyleSheet)return t.push(e),t;var r=new CSSStyleSheet;return r.replaceSync(e.toString()),t.push(r),t}),[]),o.appendChild(r)}}else!1===t.useShadow||this.attachShadow({mode:"open"});const r=new Set;for(const t of this.shadowRoot.querySelectorAll("*"))-1!==t.localName.indexOf("-")&&r.add(t.localName);const o=Array.from(r.values()).map((t=>customElements.get(t)?Promise.resolve():customElements.whenDefined(t))),n=()=>{this[m].map((t=>{t.render&&t.render.call(this,e.observedAttributes?e.observedAttributes.reduce(((t,e)=>(t[v(e)]=!0,t)),{}):{})}))};0===o.length?(this[d]=!0,s.call(this),n()):Promise.all(o).then((()=>{this[d]=!0,s.call(this);for(const t of this.shadowRoot.querySelectorAll("slot"))t.dispatchEvent(new CustomEvent("slotchange"));n()}))},e.prototype.disconnectedCallback=function(){a.call(this)},e.prototype.attributeChangedCallback=function(t,e,r){this[v(t)]=r},r.addInitializer((function(){if(t.selector){if(window.customElements.get(t.selector))throw new Error(`@Component() ${r.name} duplicate selector '${t.selector}'`);window.customElements.define(t.selector,e)}}))}}Symbol("transmute");function g(t){return!!t&&t.constructor===Array}function S(t,e){t[d]&&t[m].map((r=>{r.render&&r.render.call(t,{[e]:!0})}))}function E(t){return null===t?"null":g(t)?"array":typeof t}Symbol("hasProxy");const P=Symbol("meta");var x=r(937),$=function(t,e,r,o,n,s){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var i,l=o.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!e&&t?o.static?t:t.prototype:null,u=e||(p?Object.getOwnPropertyDescriptor(p,o.name):{}),h=!1,d=r.length-1;d>=0;d--){var f={};for(var y in o)f[y]="access"===y?{}:o[y];for(var y in o.access)f.access[y]=o.access[y];f.addInitializer=function(t){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(t||null))};var m=(0,r[d])("accessor"===l?{get:u.get,set:u.set}:u[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(i=a(m.get))&&(u.get=i),(i=a(m.set))&&(u.set=i),(i=a(m.init))&&n.unshift(i)}else(i=a(m))&&("field"===l?n.unshift(i):u[c]=i)}p&&Object.defineProperty(p,o.name,u),h=!0},A=function(t,e,r){for(var o=arguments.length>2,n=0;n<e.length;n++)r=o?e[n].call(t,r):e[n].call(t);return o?r:void 0};(()=>{let t,e,r,o,n=[w({selector:"pg-tab",style:x.A,template:'<div part="tab"> <slot></slot> </div>'})],c=[],p=HTMLElement,h=[],d=[],f=[],y=[];(class extends p{static{e=this}static{const m="function"==typeof Symbol&&Symbol.metadata?Object.create(p[Symbol.metadata]??null):void 0;var v;r=[function(t,e){const r=e.name,o=Symbol(r),n=Symbol(`${r}:type`),c=Symbol(`${r}:meta`);return e.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[n]||"array"===this[n]?this[o][i]?this[o]:u(this[o]):this[o],set:t=>{const e=E(v?v(t):t);if("index"!==r&&this[n]!==e&&"null"!==this[n]&&"null"!==e)throw new Error(`@Prop() ${r} with type '${this[n]}' cannot be set to ${e}.`);if("array"===this[n]){if(!g(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=u(this[o]);if(e[s](this)){const r=t[i]?t[l]:t;e[a](this,r),this[o]=t}else this[o]=t}else this[o]=v?v(t):t,S(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!e.private){const{constructor:t}=this;t.observedAttributes??=[],t.symbols||(t.symbols={});const{symbols:e}=t,n=b(r);e[r]||(t.observedAttributes.push(n),e[r]=o)}return this[n]=E(t),"array"===this[n]?(this[o]=t,new Proxy(t,{get:(t,e)=>e===P?this[c]:(console.log("errr???"),Reflect.get(this[o],e)),set:(t,e,n)=>{if(e===P)return this[c]=n,!0;const s=Reflect.set(t,e,n);return"length"===e&&this[o].length===n||S(this,r),this[o]=n,s}})):(this[o]=v?v(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}],o=[function(t,e){const r=e.name,o=r.replace(/^\$/,"");e.addInitializer((function(){let t=null;Reflect.defineProperty(this,r,{get(){return t??(t=this.shadowRoot?.querySelector(`[part~=${o}]`))}})}))}],$(null,null,r,{kind:"field",name:"label",static:!1,private:!1,access:{has:t=>"label"in t,get:t=>t.label,set:(t,e)=>{t.label=e}},metadata:m},h,d),$(null,null,o,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:t=>"$tab"in t,get:t=>t.$tab,set:(t,e)=>{t.$tab=e}},metadata:m},f,y),$(null,t={value:e},n,{kind:"class",name:e.name,metadata:m},null,c),e=t.value,m&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:m}),A(e,c)}label=A(this,h,"");$tab=(A(this,d),A(this,f,void 0));connectedCallback(){}show(){this.$tab.classList.add("active")}hide(){this.$tab.classList.remove("active")}render(t){t.label&&this.dispatchEvent(new CustomEvent("tab",{detail:{label:this.label},bubbles:!0}))}constructor(){super(...arguments),A(this,y)}})})()})();
package/pgTabs.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={223:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),s=n(314),a=n.n(s)()(o());a.push([e.id,':host {\n display: block;\n font-family: var(--pg-font-family);\n}\n\n[part="tabset"] {\n display: flex;\n flex-direction: row;\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n[part="tab"] {\n margin-right: 0.25rem;\n}\n',""]);var i=new CSSStyleSheet;i.replaceSync(a.toString());const l=i},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&a[d[0]]||(void 0!==s&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},457:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),s=n(314),a=n.n(s)()(o());a.push([e.id,'\n[part="button"] {\n position: relative;\n display: flex;\n line-height: calc(2.5rem - 0.5px);\n border-top: 1px solid transparent;\n border-right: 1px solid transparent;\n border-bottom: 0;\n border-left: 1px solid transparent;\n border-radius: 0.25rem 0.25rem 0 0;\n padding: 0 0.75rem;\n text-decoration: none;\n color: var(--pg-tab-border, #453C4F);\n align-items: center;\n align-content: center;\n box-sizing: border-box;\n outline: none;\n background: transparent;\n}\n\n[part="button"].selected {\n border-color: var(--pg-tab-border, #453C4F);\n font-weight: bold;\n background: #fff;\n cursor: default;\n height: calc(2.5rem + 0.5px);\n}\n\n[part="button"]:not(.selected):hover {\n border-color: var(--pg-tab-border, #453C4F);\n}\n\n[part="button"].selected:focus-visible {\n color: #197BE0;\n border-color: rgb(79, 143, 249);\n}\n\n[part="button"]:not(.selected):focus-visible {\n background: var(--pg-focus-color, rgb(79, 143, 249, 0.15));\n border-color: rgb(79, 143, 249);\n color: #197BE0;\n}',""]);var i=new CSSStyleSheet;i.replaceSync(a.toString());const l=i},601:e=>{e.exports=function(e){return e[1]}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=Symbol("addObserver"),o=Symbol("removeObserver"),s=Symbol("getObservers"),a=Symbol("swapObserver"),i=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],d=new Map;function h(e){return new Proxy(e,{get(t,n){if("symbol"==typeof n){switch(n){case i:return!0;case l:return t;case s:return d.has(e);case a:return(t,n)=>{const r=d.get(e);r.forEach(((o,s)=>{if(s.getRootNode().host===t){const t=r.get(s);d.has(n)?d.get(n).has(s)?d.get(n).get(s).push(r.get(s)):d.get(n).set(s,r.get(s)):d.set(n,new Map([[s,t]])),d.delete(e),t.forEach((e=>{e(null,u.swap,[n])}))}}))};case r:return(t,n)=>{d.has(e)?d.get(e).has(t)?d.get(e).get(t).push(n):d.get(e).set(t,[n]):d.set(e,new Map([[t,[n]]]))};case o:return t=>{d.has(e)&&(d.get(e).delete(t),0===d.get(e).size&&d.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,n)}throw new Error("Unsupported symbol")}if(n in t){if(!Number.isNaN(Number(n)))return"object"==typeof t[n]?h(t[n]):t[n];if("copyWithin"===n)throw new Error("Unsupported array method copyWithin");if(c.includes(n))return d.has(t)?function(){const e=Array.prototype[n].apply(t,arguments);return d.get(t).forEach(((e,r)=>{e.forEach((e=>{e(t,n,arguments)}))})),e}:Reflect.get(t,n);if(t[n]instanceof Array)return h(t[n])}return Reflect.get(t,n)},set(e,t,n){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,n);if(d.has(e)){d.get(e).forEach(((e,r)=>{e.forEach((e=>{e(t,n)}))}))}return Reflect.set(e,t,n)}})}window.observers=d;const u={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const p=Symbol("init"),f=Symbol("template"),b=Symbol("style"),m=Symbol("parent");function y(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function g(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function v(e={}){return function(t,n){if("class"!==n.kind)throw new Error("@Component() can only decorate a class");var r,o;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[m]||t.prototype[m][t.prototype[m].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[m]=[t.prototype],t.prototype[b]=e.style?[e.style]:[],t.prototype[f]=e.template||""):(t.prototype[m].push(t.prototype),t.prototype[b].push(e.style),t.prototype[f]=(r=t.prototype[f],(o=e.template||null)&&o.match(/<parent\/>/)?o.replace(/<parent\/>/,r):`${r}${o||""}`));const s=t.prototype.connectedCallback||(()=>{}),a=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[p]||void 0!==e.template||void 0!==e.style)if(this[p]){if(this[p]&&e.style);else if(this[p]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[f]||"";const n=document.importNode(e.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=t.prototype[b].map((e=>{if(e instanceof CSSStyleSheet)return e;var t=new CSSStyleSheet;return t.replaceSync(e.toString()),t})),r.appendChild(n)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const n=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&n.add(e.localName);const r=Array.from(n.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),o=()=>{this[m].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[g(t)]=!0,e)),{}):{})}))};0===r.length?(this[p]=!0,s.call(this),o()):Promise.all(r).then((()=>{this[p]=!0,s.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));o()}))},t.prototype.disconnectedCallback=function(){a.call(this)},t.prototype.attributeChangedCallback=function(e,t,n){this[g(e)]=n},n.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${n.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function w(e){return!!e&&e.constructor===Array}function S(e,t){e[p]&&e[m].map((n=>{n.render&&n.render.call(e,{[t]:!0})}))}function E(e){return null===e?"null":w(e)?"array":typeof e}function x(e){return function(t,n){const r=n.name,o=Symbol(r),c=Symbol(`${r}:type`),d=Symbol(`${r}:meta`);return n.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[c]||"array"===this[c]?this[o][i]?this[o]:h(this[o]):this[o],set:t=>{const n=E(e?e(t):t);if("index"!==r&&this[c]!==n&&"null"!==this[c]&&"null"!==n)throw new Error(`@Prop() ${r} with type '${this[c]}' cannot be set to ${n}.`);if("array"===this[c]){if(!w(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=h(this[o]);if(e[s]){const n=t[i]?t[l]:t;e[a](this,n),this[o]=t,console.log(">>> trigger render???",this,r)}else this[o]=t}else this[o]=e?e(t):t,S(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!n.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,n=y(r);t[r]||(e.observedAttributes.push(n),t[r]=o)}return this[c]=E(t),"array"===this[c]?(this[o]=t,new Proxy(t,{get:(e,t)=>t===k?this[d]:(console.log("errr???"),Reflect.get(this[o],t)),set:(e,t,n)=>{if(t===k)return this[d]=n,!0;const s=Reflect.set(e,t,n);return"length"===t&&this[o].length===n||S(this,r),this[o]=n,s}})):(this[o]=e?e(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}}function $(){return function(e,t){const n=t.name,r=n.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,n,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const k=Symbol("meta");function C({container:e,items:t,type:n,create:o,connect:s,disconnect:a,update:i}){function l(e,s){const a=n(e),i=document.createElement(y(a.name),a),l=a.observedAttributes??[],c=function(e,t){const n=new Set(e);return t.filter((e=>n.has(e)))}(Object.keys(e),l);return l.includes("index")&&(i.index=s),-1!==c.indexOf("index")&&c.splice(c.indexOf("index"),1),c.forEach((t=>{i[t]=e[t]})),o&&o(i,h(e)),t[s][r](i,((e,t)=>{i[e]=t})),i}t.forEach(((t,n)=>{const r=l(t,n);e.appendChild(r),s&&s(r,h(t))})),t[r](e,((n,r,o)=>{if(r===u.swap){const e=t.length;t=h(o[0]),r=u.splice,o=[0,e,...o[0]]}switch(r){case u.fill:const[n,r,i]=o;for(let o=r||0;o<(i||t.length);o++)Object.keys(n).forEach((t=>{e.children[o][t]=n[t]}));break;case u.pop:const c=e.children.length;c>0&&e.children[c-1].remove();break;case u.push:const d=e.children.length;[...o].forEach(((t,n)=>{const r=l(t,d+n);e.appendChild(r),s&&s(r,h(t))}));break;case u.reverse:for(var a=1;a<e.children.length;a++)e.insertBefore(e.children[a],e.children[0]);break;case u.shift:e.children.length&&e.children[0].remove();for(let t=0;t<e.children.length;t++)e.children[t].index=t;break;case u.sort:throw new Error("ToDo... write sort.");case u.splice:const[p,f,...b]=o;if(f>0)for(let t=p;t<f+p;t++)e.children[t].remove();let m=b.length||0;if(m>0){const t=b.map(((e,t)=>l(e,p+t)));0===p?e.prepend(...t):e.children[p-1].after(...t);for(let t=p-f+m;t<e.children.length;t++)e.children[t].index=t;t.forEach((e=>{s&&s(e,b[a])}))}else for(let t=p;t<e.children.length;t++)e.children[t].index=t;break;case u.unshift:const y=e.children.length&&e.children[0],g=[...o].length;[...o].forEach(((t,n)=>{y?y.before(l(t,n)):e.appendChild(l(t,n))}));for(let t=g;t<e.children.length;t++)e.children[t].index=t}}))}var P=n(223);var A=n(457),O=function(e,t,n,r,o,s){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?r.static?e:e.prototype:null,h=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),u=!1,p=n.length-1;p>=0;p--){var f={};for(var b in r)f[b]="access"===b?{}:r[b];for(var b in r.access)f.access[b]=r.access[b];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(e||null))};var m=(0,n[p])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(i=a(m.get))&&(h.get=i),(i=a(m.set))&&(h.set=i),(i=a(m.init))&&o.unshift(i)}else(i=a(m))&&("field"===l?o.unshift(i):h[c]=i)}d&&Object.defineProperty(d,r.name,h),u=!0},T=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};const j=(()=>{let e,t,n,r,o,s,a,i=[v({selector:"pg-partial-tab",template:'<li part="tab"> <button part="button"></button> </li>',style:A.A})],l=[],c=HTMLElement,d=[],h=[],u=[],p=[],f=[],b=[],m=[],y=[],g=[],w=[];(class extends c{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[x()],r=[x()],o=[x()],s=[$()],a=[$()],O(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:v},d,h),O(null,null,r,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:v},u,p),O(null,null,o,{kind:"field",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:v},f,b),O(null,null,s,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:e=>"$tab"in e,get:e=>e.$tab,set:(e,t)=>{e.$tab=t}},metadata:v},m,y),O(null,null,a,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:v},g,w),O(null,e={value:t},i,{kind:"class",name:t.name,metadata:v},null,l),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),T(t,l)}index=T(this,d,void 0);label=(T(this,h),T(this,u,""));selected=(T(this,p),T(this,f,!1));$tab=(T(this,b),T(this,m,void 0));$button=(T(this,y),T(this,g,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this)),this.$button.addEventListener("keydown",this.#t.bind(this))}render(e){e.label&&(this.$button.textContent=this.label),e.selected&&this.$button.classList.toggle("selected",this.selected)}#e(){const e=new CustomEvent("select",{detail:{index:this.index}});this.dispatchEvent(e)}#t(e){switch(e.key){case"ArrowLeft":const t=new CustomEvent("arrowleft",{detail:{index:this.index}});this.dispatchEvent(t),e.preventDefault();break;case"ArrowRight":const n=new CustomEvent("arrowright",{detail:{index:this.index}});this.dispatchEvent(n),e.preventDefault()}}focus(){this.$button.focus()}constructor(){super(...arguments),T(this,w)}});return t})();var R=function(e,t,n,r,o,s){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?r.static?e:e.prototype:null,h=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),u=!1,p=n.length-1;p>=0;p--){var f={};for(var b in r)f[b]="access"===b?{}:r[b];for(var b in r.access)f.access[b]=r.access[b];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(e||null))};var m=(0,n[p])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(i=a(m.get))&&(h.get=i),(i=a(m.set))&&(h.set=i),(i=a(m.init))&&o.unshift(i)}else(i=a(m))&&("field"===l?o.unshift(i):h[c]=i)}d&&Object.defineProperty(d,r.name,h),u=!0},L=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};(()=>{let e,t,n,r,o,s=[v({selector:"pg-tabs",style:P.A,template:'<ul part="tabset"></ul> <div part="tabs"> <slot part="slot"></slot> </div>'})],a=[],i=HTMLElement,l=[],c=[],d=[],h=[],u=[],p=[];(class extends i{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(i[Symbol.metadata]??null):void 0;n=[$()],r=[$()],o=[x()],R(null,null,n,{kind:"field",name:"$tabset",static:!1,private:!1,access:{has:e=>"$tabset"in e,get:e=>e.$tabset,set:(e,t)=>{e.$tabset=t}},metadata:f},l,c),R(null,null,r,{kind:"field",name:"$slot",static:!1,private:!1,access:{has:e=>"$slot"in e,get:e=>e.$slot,set:(e,t)=>{e.$slot=t}},metadata:f},d,h),R(null,null,o,{kind:"field",name:"tabs",static:!1,private:!1,access:{has:e=>"tabs"in e,get:e=>e.tabs,set:(e,t)=>{e.tabs=t}},metadata:f},u,p),R(null,e={value:t},s,{kind:"class",name:t.name,metadata:f},null,a),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),L(t,a)}$tabset=L(this,l,void 0);$slot=(L(this,c),L(this,d,void 0));tabs=(L(this,h),L(this,u,[]));#n=(L(this,p),0);#r=0;connectedCallback(){this.addEventListener("tab",this.#o.bind(this)),this.$slot.addEventListener("slotchange",this.handleSlotChange.bind(this)),C({container:this.$tabset,items:this.tabs,type:e=>j,connect:(e,t)=>{e.addEventListener("select",(t=>{const n=Array.from(this.$tabset.children),{index:r}=t.detail,o=this.$slot.assignedElements();o[this.#n].hide(),n[this.#n].selected=!1,o[r].show(),e.selected=!0,this.#n=r})),e.addEventListener("arrowleft",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(this.#r=0===n?this.tabs.length-1:n-1,t[this.#r].focus())})),e.addEventListener("arrowright",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(n===this.tabs.length-1?this.#r=0:this.#r++,t[this.#r].focus())}))}})}#o(e){const{detail:t}=e;this.tabs.push(t),e.stopPropagation()}handleSlotChange(e){const t=Array.from(this.$tabset.children),n=this.$slot.assignedElements();0!==n.length&&(n[0].show(),t[0].selected=!0)}})})()})();
1
+ (()=>{"use strict";var e={223:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,':host {\n display: block;\n font-family: var(--pg-font-family);\n}\n\n[part="tabset"] {\n display: flex;\n flex-direction: row;\n list-style: none;\n padding: 0;\n margin: 0;\n}\n\n[part="tab"] {\n margin-right: 0.25rem;\n}\n',""]);var a=new CSSStyleSheet;a.replaceSync(i.toString());const l=a},314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(i[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);r&&i[d[0]]||(void 0!==s&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=s),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},457:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),s=n(314),i=n.n(s)()(o());i.push([e.id,'\n[part="button"] {\n position: relative;\n display: flex;\n line-height: calc(2.5rem - 0.5px);\n border-top: 1px solid transparent;\n border-right: 1px solid transparent;\n border-bottom: 0;\n border-left: 1px solid transparent;\n border-radius: 0.25rem 0.25rem 0 0;\n padding: 0 0.75rem;\n text-decoration: none;\n color: var(--pg-tab-border, #453C4F);\n align-items: center;\n align-content: center;\n box-sizing: border-box;\n outline: none;\n background: transparent;\n}\n\n[part="button"].selected {\n border-color: var(--pg-tab-border, #453C4F);\n font-weight: bold;\n background: #fff;\n cursor: default;\n height: calc(2.5rem + 0.5px);\n}\n\n[part="button"]:not(.selected):hover {\n border-color: var(--pg-tab-border, #453C4F);\n}\n\n[part="button"].selected:focus-visible {\n color: #197BE0;\n border-color: rgb(79, 143, 249);\n}\n\n[part="button"]:not(.selected):focus-visible {\n background: var(--pg-focus-color, rgb(79, 143, 249, 0.15));\n border-color: rgb(79, 143, 249);\n color: #197BE0;\n}',""]);var a=new CSSStyleSheet;a.replaceSync(i.toString());const l=a},601:e=>{e.exports=function(e){return e[1]}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={id:r,exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=Symbol("addObserver"),o=Symbol("removeObserver"),s=Symbol("getObservers"),i=Symbol("swapObserver"),a=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],d=new Map;function h(e){return new Proxy(e,{get(t,n){if("symbol"==typeof n){switch(n){case a:return!0;case l:return t;case s:return t=>{const n=d.get(e);return n?.has(t)};case i:return(t,n)=>{const r=d.get(e);if(r){const e=r.get(t);e&&e.forEach(((r,o)=>{if(!r)throw new Error("Unreachable");{const e=d.get(n);if(e){const n=e.get(t);n?n.set(o,r):e.set(t,new Map([[o,r]]))}else d.set(n,new Map([[t,new Map([[o,r]])]]))}e.delete(o),r.forEach((e=>{e(null,p.swap,[n])}))}))}};case r:return(t,n)=>{const r=t.getRootNode().host,o=d.get(e);if(o){const e=o.get(r);if(e){const r=e.get(t);r?r.push(n):e.set(t,[n])}else o.set(r,new Map([[t,[n]]]))}else d.set(e,new Map([[r,new Map([[t,[n]]])]]))};case o:return t=>{const n=t.getRootNode().host,r=d.get(e);r&&(r.delete(n),0===r.size&&d.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,n)}throw new Error("Unsupported symbol")}if(n in t){if(!Number.isNaN(Number(n)))return"object"==typeof t[n]?h(t[n]):t[n];if("copyWithin"===n)throw new Error("Unsupported array method copyWithin");if(c.includes(n))return d.has(t)?function(){const e=Array.prototype[n].apply(t,arguments),r=d.get(t);return r?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,n,arguments)}))}))})),e}:Reflect.get(t,n);if(t[n]instanceof Array)return h(t[n])}return Reflect.get(t,n)},set(e,t,n){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,n);if(d.has(e)){const r=d.get(e);r?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,n)}))}))}))}return Reflect.set(e,t,n)}})}window.observers=d;const p={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const u=Symbol("init"),f=Symbol("template"),b=Symbol("style"),m=Symbol("parent");function y(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function g(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function v(e={}){return function(t,n){if("class"!==n.kind)throw new Error("@Component() can only decorate a class");var r,o;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[m]||t.prototype[m][t.prototype[m].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[m]=[t.prototype],t.prototype[b]=e.style?[e.style]:[],t.prototype[f]=e.template||""):(t.prototype[m].push(t.prototype),t.prototype[b].push(e.style),t.prototype[f]=(r=t.prototype[f],(o=e.template||null)&&o.match(/<parent\/>/)?o.replace(/<parent\/>/,r):r.match(/<child\/>/)?r.replace(/<child\/>/,o||""):`${r}${o||""}`));const s=t.prototype.connectedCallback||(()=>{}),i=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[u]||void 0!==e.template||void 0!==e.style)if(this[u]){if(this[u]&&e.style);else if(this[u]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[f]||"";const n=document.importNode(e.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=t.prototype[b].reduce(((e,t)=>{if(!t)return e;if(t instanceof CSSStyleSheet)return e.push(t),e;var n=new CSSStyleSheet;return n.replaceSync(t.toString()),e.push(n),e}),[]),r.appendChild(n)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const n=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&n.add(e.localName);const r=Array.from(n.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),o=()=>{this[m].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[g(t)]=!0,e)),{}):{})}))};0===r.length?(this[u]=!0,s.call(this),o()):Promise.all(r).then((()=>{this[u]=!0,s.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));o()}))},t.prototype.disconnectedCallback=function(){i.call(this)},t.prototype.attributeChangedCallback=function(e,t,n){this[g(e)]=n},n.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${n.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function w(e){return!!e&&e.constructor===Array}function E(e,t){e[u]&&e[m].map((n=>{n.render&&n.render.call(e,{[t]:!0})}))}function S(e){return null===e?"null":w(e)?"array":typeof e}function x(e){return function(t,n){const r=n.name,o=Symbol(r),c=Symbol(`${r}:type`),d=Symbol(`${r}:meta`);return n.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[c]||"array"===this[c]?this[o][a]?this[o]:h(this[o]):this[o],set:t=>{const n=S(e?e(t):t);if("index"!==r&&this[c]!==n&&"null"!==this[c]&&"null"!==n)throw new Error(`@Prop() ${r} with type '${this[c]}' cannot be set to ${n}.`);if("array"===this[c]){if(!w(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=h(this[o]);if(e[s](this)){const n=t[a]?t[l]:t;e[i](this,n),this[o]=t}else this[o]=t}else this[o]=e?e(t):t,E(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!n.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,n=y(r);t[r]||(e.observedAttributes.push(n),t[r]=o)}return this[c]=S(t),"array"===this[c]?(this[o]=t,new Proxy(t,{get:(e,t)=>t===k?this[d]:(console.log("errr???"),Reflect.get(this[o],t)),set:(e,t,n)=>{if(t===k)return this[d]=n,!0;const s=Reflect.set(e,t,n);return"length"===t&&this[o].length===n||E(this,r),this[o]=n,s}})):(this[o]=e?e(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}}function $(){return function(e,t){const n=t.name,r=n.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,n,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const k=Symbol("meta");function C({container:e,items:t,type:n,create:o,connect:s,disconnect:i,update:a}){function l(e,s){const i=n(e),a=document.createElement(y(i.name),i),l=i.observedAttributes??[],c=function(e,t){const n=new Set(e);return t.filter((e=>n.has(e)))}(Object.keys(e),l);return l.includes("index")&&(a.index=s),-1!==c.indexOf("index")&&c.splice(c.indexOf("index"),1),c.forEach((t=>{a[t]=e[t]})),o&&o(a,h(e)),t[s][r](a,((e,t)=>{a[e]=t})),a}t.forEach(((t,n)=>{const r=l(t,n);e.appendChild(r),s&&s(r,h(t))})),t[r](e,((n,r,o)=>{if(r===p.swap){const e=t.length;t=h(o[0]),r=p.splice,o=[0,e,...o[0]]}switch(r){case p.fill:const[n,r,a]=o;for(let o=r||0;o<(a||t.length);o++)Object.keys(n).forEach((t=>{e.children[o][t]=n[t]}));break;case p.pop:const c=e.children.length;c>0&&e.children[c-1].remove();break;case p.push:const d=e.children.length;[...o].forEach(((t,n)=>{const r=l(t,d+n);e.appendChild(r),s&&s(r,h(t))}));break;case p.reverse:for(var i=1;i<e.children.length;i++)e.insertBefore(e.children[i],e.children[0]);break;case p.shift:e.children.length&&e.children[0].remove();for(let t=0;t<e.children.length;t++)e.children[t].index=t;break;case p.sort:throw new Error("ToDo... write sort.");case p.splice:const[u,f,...b]=o;if(f>0)for(let t=u;t<f+u;t++)e.children[t].remove();let m=b.length||0;if(m>0){const t=b.map(((e,t)=>l(e,u+t)));0===u?e.prepend(...t):e.children[u-1].after(...t);for(let t=u-f+m;t<e.children.length;t++)e.children[t].index=t;t.forEach((e=>{s&&s(e,b[i])}))}else for(let t=u;t<e.children.length;t++)e.children[t].index=t;break;case p.unshift:const y=e.children.length&&e.children[0],g=[...o].length;[...o].forEach(((t,n)=>{y?y.before(l(t,n)):e.appendChild(l(t,n))}));for(let t=g;t<e.children.length;t++)e.children[t].index=t}}))}var P=n(223);var A=n(457),O=function(e,t,n,r,o,s){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?r.static?e:e.prototype:null,h=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),p=!1,u=n.length-1;u>=0;u--){var f={};for(var b in r)f[b]="access"===b?{}:r[b];for(var b in r.access)f.access[b]=r.access[b];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(e||null))};var m=(0,n[u])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=i(m.get))&&(h.get=a),(a=i(m.set))&&(h.set=a),(a=i(m.init))&&o.unshift(a)}else(a=i(m))&&("field"===l?o.unshift(a):h[c]=a)}d&&Object.defineProperty(d,r.name,h),p=!0},T=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};const j=(()=>{let e,t,n,r,o,s,i,a=[v({selector:"pg-partial-tab",template:'<li part="tab"> <button part="button"></button> </li>',style:A.A})],l=[],c=HTMLElement,d=[],h=[],p=[],u=[],f=[],b=[],m=[],y=[],g=[],w=[];(class extends c{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(c[Symbol.metadata]??null):void 0;n=[x()],r=[x()],o=[x()],s=[$()],i=[$()],O(null,null,n,{kind:"field",name:"index",static:!1,private:!1,access:{has:e=>"index"in e,get:e=>e.index,set:(e,t)=>{e.index=t}},metadata:v},d,h),O(null,null,r,{kind:"field",name:"label",static:!1,private:!1,access:{has:e=>"label"in e,get:e=>e.label,set:(e,t)=>{e.label=t}},metadata:v},p,u),O(null,null,o,{kind:"field",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected,set:(e,t)=>{e.selected=t}},metadata:v},f,b),O(null,null,s,{kind:"field",name:"$tab",static:!1,private:!1,access:{has:e=>"$tab"in e,get:e=>e.$tab,set:(e,t)=>{e.$tab=t}},metadata:v},m,y),O(null,null,i,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:v},g,w),O(null,e={value:t},a,{kind:"class",name:t.name,metadata:v},null,l),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),T(t,l)}index=T(this,d,void 0);label=(T(this,h),T(this,p,""));selected=(T(this,u),T(this,f,!1));$tab=(T(this,b),T(this,m,void 0));$button=(T(this,y),T(this,g,void 0));connectedCallback(){this.$button.addEventListener("click",this.#e.bind(this)),this.$button.addEventListener("keydown",this.#t.bind(this))}render(e){e.label&&(this.$button.textContent=this.label),e.selected&&this.$button.classList.toggle("selected",this.selected)}#e(){const e=new CustomEvent("select",{detail:{index:this.index}});this.dispatchEvent(e)}#t(e){switch(e.key){case"ArrowLeft":const t=new CustomEvent("arrowleft",{detail:{index:this.index}});this.dispatchEvent(t),e.preventDefault();break;case"ArrowRight":const n=new CustomEvent("arrowright",{detail:{index:this.index}});this.dispatchEvent(n),e.preventDefault()}}focus(){this.$button.focus()}constructor(){super(...arguments),T(this,w)}});return t})();var R=function(e,t,n,r,o,s){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?r.static?e:e.prototype:null,h=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),p=!1,u=n.length-1;u>=0;u--){var f={};for(var b in r)f[b]="access"===b?{}:r[b];for(var b in r.access)f.access[b]=r.access[b];f.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");s.push(i(e||null))};var m=(0,n[u])("accessor"===l?{get:h.get,set:h.set}:h[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(a=i(m.get))&&(h.get=a),(a=i(m.set))&&(h.set=a),(a=i(m.init))&&o.unshift(a)}else(a=i(m))&&("field"===l?o.unshift(a):h[c]=a)}d&&Object.defineProperty(d,r.name,h),p=!0},L=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};(()=>{let e,t,n,r,o,s=[v({selector:"pg-tabs",style:P.A,template:'<ul part="tabset"></ul> <div part="tabs"> <slot part="slot"></slot> </div>'})],i=[],a=HTMLElement,l=[],c=[],d=[],h=[],p=[],u=[];(class extends a{static{t=this}static{const f="function"==typeof Symbol&&Symbol.metadata?Object.create(a[Symbol.metadata]??null):void 0;n=[$()],r=[$()],o=[x()],R(null,null,n,{kind:"field",name:"$tabset",static:!1,private:!1,access:{has:e=>"$tabset"in e,get:e=>e.$tabset,set:(e,t)=>{e.$tabset=t}},metadata:f},l,c),R(null,null,r,{kind:"field",name:"$slot",static:!1,private:!1,access:{has:e=>"$slot"in e,get:e=>e.$slot,set:(e,t)=>{e.$slot=t}},metadata:f},d,h),R(null,null,o,{kind:"field",name:"tabs",static:!1,private:!1,access:{has:e=>"tabs"in e,get:e=>e.tabs,set:(e,t)=>{e.tabs=t}},metadata:f},p,u),R(null,e={value:t},s,{kind:"class",name:t.name,metadata:f},null,i),t=e.value,f&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:f}),L(t,i)}$tabset=L(this,l,void 0);$slot=(L(this,c),L(this,d,void 0));tabs=(L(this,h),L(this,p,[]));#n=(L(this,u),0);#r=0;connectedCallback(){this.addEventListener("tab",this.#o.bind(this)),this.$slot.addEventListener("slotchange",this.handleSlotChange.bind(this)),C({container:this.$tabset,items:this.tabs,type:e=>j,connect:(e,t)=>{e.addEventListener("select",(t=>{const n=Array.from(this.$tabset.children),{index:r}=t.detail,o=this.$slot.assignedElements();o[this.#n].hide(),n[this.#n].selected=!1,o[r].show(),e.selected=!0,this.#n=r})),e.addEventListener("arrowleft",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(this.#r=0===n?this.tabs.length-1:n-1,t[this.#r].focus())})),e.addEventListener("arrowright",(e=>{const t=Array.from(this.$tabset.children),{index:n}=e.detail;this.tabs.length>1&&(n===this.tabs.length-1?this.#r=0:this.#r++,t[this.#r].focus())}))}})}#o(e){const{detail:t}=e;this.tabs.push(t),e.stopPropagation()}handleSlotChange(e){const t=Array.from(this.$tabset.children),n=this.$slot.assignedElements();0!==n.length&&(n[0].show(),t[0].selected=!0)}})})()})();
package/pgToast.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);r&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},537:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,"[part~=button] {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n background: #737E9E;\n box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);\n border-radius: 0.25rem;\n border: 1px solid #737E9E;\n padding: 0.5rem 0.5rem 0.5rem 0.75rem;\n color: #FFF;\n align-items: center;\n outline: 0;\n transition: border-color 0.1s ease-in;\n margin-bottom: 0.5rem;\n max-width: 18rem;\n font-size: 1rem;\n align-items: center;\n}\n\n[part~=loading] {\n height: 1.5rem;\n margin: -0.25rem 0.5rem -0.25rem -0.25rem;\n}\n\n[part~=button]:hover {\n border: 1px solid rgba(255, 255, 255, 0.75);\n}\n\n[part~=close] {\n height: 1rem;\n}\n\n[part~=closeIcon] {\n width: 1rem;\n height: 1rem;\n}\n\n[part~=loadingIcon] {\n animation: spin 2s infinite linear;\n width: 1.5rem;\n height: 1.5rem;\n}\n\n@keyframes progress {\n from {\n width: 0;\n }\n to {\n width: 20rem;\n }\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n[part~=closeIcon] {\n margin-left: 0.5rem;\n color: rgba(255, 255, 255, 0.5);\n transition: color 0.1s ease-in;\n}\n\n[part~=button]:hover [part~=closeIcon] {\n color: #fff;\n}\n\n.hide {\n display: none;\n}\n\n/* Error */\n\n[part~=button].error {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\n[part~=button].error [part~=closeIcon] {\n color: rgba(114, 28, 36, 0.6);\n}\n\n[part~=button].error:hover {\n border-color: #721c24;\n}\n\n[part~=button].error:hover [part~=closeIcon] {\n color: #721c24;\n}\n\n/* Warning */\n\n[part~=button].warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n\n[part~=button].warning [part~=closeIcon] {\n color: rgba(133, 101, 4, 0.6);\n}\n\n[part~=button].warning:hover {\n border-color: #856404;\n}\n\n[part~=button].warning:hover [part~=closeIcon] {\n color: #856404;\n}",""]);var i=new CSSStyleSheet;i.replaceSync(s.toString());const l=i},601:e=>{e.exports=function(e){return e[1]}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=Symbol("addObserver"),o=Symbol("removeObserver"),a=Symbol("getObservers"),s=Symbol("swapObserver"),i=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],p=new Map;function d(e){return new Proxy(e,{get(t,n){if("symbol"==typeof n){switch(n){case i:return!0;case l:return t;case a:return p.has(e);case s:return(t,n)=>{const r=p.get(e);r.forEach(((o,a)=>{if(a.getRootNode().host===t){const t=r.get(a);p.has(n)?p.get(n).has(a)?p.get(n).get(a).push(r.get(a)):p.get(n).set(a,r.get(a)):p.set(n,new Map([[a,t]])),p.delete(e),t.forEach((e=>{e(null,u.swap,[n])}))}}))};case r:return(t,n)=>{p.has(e)?p.get(e).has(t)?p.get(e).get(t).push(n):p.get(e).set(t,[n]):p.set(e,new Map([[t,[n]]]))};case o:return t=>{p.has(e)&&(p.get(e).delete(t),0===p.get(e).size&&p.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,n)}throw new Error("Unsupported symbol")}if(n in t){if(!Number.isNaN(Number(n)))return"object"==typeof t[n]?d(t[n]):t[n];if("copyWithin"===n)throw new Error("Unsupported array method copyWithin");if(c.includes(n))return p.has(t)?function(){const e=Array.prototype[n].apply(t,arguments);return p.get(t).forEach(((e,r)=>{e.forEach((e=>{e(t,n,arguments)}))})),e}:Reflect.get(t,n);if(t[n]instanceof Array)return d(t[n])}return Reflect.get(t,n)},set(e,t,n){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,n);if(p.has(e)){p.get(e).forEach(((e,r)=>{e.forEach((e=>{e(t,n)}))}))}return Reflect.set(e,t,n)}})}window.observers=p;const u={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const h=Symbol("init"),f=Symbol("template"),m=Symbol("style"),g=Symbol("parent");function y(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function v(e={}){return function(t,n){if("class"!==n.kind)throw new Error("@Component() can only decorate a class");var r,o;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[g]||t.prototype[g][t.prototype[g].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[g]=[t.prototype],t.prototype[m]=e.style?[e.style]:[],t.prototype[f]=e.template||""):(t.prototype[g].push(t.prototype),t.prototype[m].push(e.style),t.prototype[f]=(r=t.prototype[f],(o=e.template||null)&&o.match(/<parent\/>/)?o.replace(/<parent\/>/,r):`${r}${o||""}`));const a=t.prototype.connectedCallback||(()=>{}),s=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[h]||void 0!==e.template||void 0!==e.style)if(this[h]){if(this[h]&&e.style);else if(this[h]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[f]||"";const n=document.importNode(e.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=t.prototype[m].map((e=>{if(e instanceof CSSStyleSheet)return e;var t=new CSSStyleSheet;return t.replaceSync(e.toString()),t})),r.appendChild(n)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const n=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&n.add(e.localName);const r=Array.from(n.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),o=()=>{this[g].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[b(t)]=!0,e)),{}):{})}))};0===r.length?(this[h]=!0,a.call(this),o()):Promise.all(r).then((()=>{this[h]=!0,a.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));o()}))},t.prototype.disconnectedCallback=function(){s.call(this)},t.prototype.attributeChangedCallback=function(e,t,n){this[b(e)]=n},n.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${n.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function w(e){return!!e&&e.constructor===Array}function x(e,t){e[h]&&e[g].map((n=>{n.render&&n.render.call(e,{[t]:!0})}))}function S(e){return null===e?"null":w(e)?"array":typeof e}function E(e){return function(t,n){const r=n.name,o=Symbol(r),c=Symbol(`${r}:type`),p=Symbol(`${r}:meta`);return n.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[c]||"array"===this[c]?this[o][i]?this[o]:d(this[o]):this[o],set:t=>{const n=S(e?e(t):t);if("index"!==r&&this[c]!==n&&"null"!==this[c]&&"null"!==n)throw new Error(`@Prop() ${r} with type '${this[c]}' cannot be set to ${n}.`);if("array"===this[c]){if(!w(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=d(this[o]);if(e[a]){const n=t[i]?t[l]:t;e[s](this,n),this[o]=t,console.log(">>> trigger render???",this,r)}else this[o]=t}else this[o]=e?e(t):t,x(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!n.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,n=y(r);t[r]||(e.observedAttributes.push(n),t[r]=o)}return this[c]=S(t),"array"===this[c]?(this[o]=t,new Proxy(t,{get:(e,t)=>t===k?this[p]:(console.log("errr???"),Reflect.get(this[o],t)),set:(e,t,n)=>{if(t===k)return this[p]=n,!0;const a=Reflect.set(e,t,n);return"length"===t&&this[o].length===n||x(this,r),this[o]=n,a}})):(this[o]=e?e(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}}function $(){return function(e,t){const n=t.name,r=n.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,n,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const k=Symbol("meta");function P(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}var I=n(537),O=function(e,t,n,r,o,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!t&&e?r.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(d.get=i),(i=s(g.set))&&(d.set=i),(i=s(g.init))&&o.unshift(i)}else(i=s(g))&&("field"===l?o.unshift(i):d[c]=i)}p&&Object.defineProperty(p,r.name,d),u=!0},C=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};const A=new Set,j=new Map;const L=(()=>{let e,t,n=[v()],r=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;O(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,r),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),C(t,r)}static open(e={}){var t=document.createElement(this.name);return Object.assign(t,e),document.body.appendChild(t),A.add(t),new Promise((e=>{j.set(t,e)}))}close(e){this.remove(),A.delete(this);const t=j.get(this);t&&t(e),j.delete(this)}});return t})();var R=function(e,t,n,r,o,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!t&&e?r.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(d.get=i),(i=s(g.set))&&(d.set=i),(i=s(g.init))&&o.unshift(i)}else(i=s(g))&&("field"===l?o.unshift(i):d[c]=i)}p&&Object.defineProperty(p,r.name,d),u=!0},z=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};(()=>{let e,t,n,r,o,a,s,i,l,c,p,d=[v({selector:"pg-toast",style:I.A,template:'<button part="button"> <span part="loading"> <svg part="loadingIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"/> </svg> </span> <span part="message"></span> <span part="close"> <svg part="closeIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </span> </button>'})],u=[],h=L,f=[],m=[],g=[],y=[],b=[],w=[],x=[],S=[],k=[],O=[],C=[],A=[],j=[],T=[],M=[],N=[],F=[],D=[];(class extends h{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[E()],r=[E()],o=[E()],a=[E()],s=[$()],i=[$()],l=[$()],c=[$()],p=[$()],R(null,null,n,{kind:"field",name:"loading",static:!1,private:!1,access:{has:e=>"loading"in e,get:e=>e.loading,set:(e,t)=>{e.loading=t}},metadata:v},f,m),R(null,null,r,{kind:"field",name:"message",static:!1,private:!1,access:{has:e=>"message"in e,get:e=>e.message,set:(e,t)=>{e.message=t}},metadata:v},g,y),R(null,null,o,{kind:"field",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:v},b,w),R(null,null,a,{kind:"field",name:"key",static:!1,private:!1,access:{has:e=>"key"in e,get:e=>e.key,set:(e,t)=>{e.key=t}},metadata:v},x,S),R(null,null,s,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:v},k,O),R(null,null,i,{kind:"field",name:"$loadingIcon",static:!1,private:!1,access:{has:e=>"$loadingIcon"in e,get:e=>e.$loadingIcon,set:(e,t)=>{e.$loadingIcon=t}},metadata:v},C,A),R(null,null,l,{kind:"field",name:"$closeIcon",static:!1,private:!1,access:{has:e=>"$closeIcon"in e,get:e=>e.$closeIcon,set:(e,t)=>{e.$closeIcon=t}},metadata:v},j,T),R(null,null,c,{kind:"field",name:"$message",static:!1,private:!1,access:{has:e=>"$message"in e,get:e=>e.$message,set:(e,t)=>{e.$message=t}},metadata:v},M,N),R(null,null,p,{kind:"field",name:"$loading",static:!1,private:!1,access:{has:e=>"$loading"in e,get:e=>e.$loading,set:(e,t)=>{e.$loading=t}},metadata:v},F,D),R(null,e={value:t},d,{kind:"class",name:t.name,metadata:v},null,u),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),z(t,u)}loading=z(this,f,!1);message=(z(this,m),z(this,g,""));type=(z(this,y),z(this,b,"default"));key=(z(this,w),z(this,x,P()));$button=(z(this,S),z(this,k,void 0));$loadingIcon=(z(this,O),z(this,C,void 0));$closeIcon=(z(this,A),z(this,j,void 0));$message=(z(this,T),z(this,M,void 0));$loading=(z(this,N),z(this,F,void 0));static open(e={}){super.open(e);const t=P();return Promise.resolve((function(e){const n=t;void 0===e&&this.toasts.find((e=>e.key===n)).remove()}))}toasts=(z(this,D),[]);connectedCallback(){this.$button.addEventListener("click",(()=>{this.remove()}))}render(){this.$message.textContent=this.message,this.$loading.classList.toggle("hide",!this.loading),this.$button.classList.toggle("error","error"===this.type),this.$button.classList.toggle("warning","warning"===this.type)}})})()})();
1
+ (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var p=[].concat(e[c]);r&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),n&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=n):p[2]=n),o&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=o):p[4]="".concat(o)),t.push(p))}},t}},537:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(601),o=n.n(r),a=n(314),s=n.n(a)()(o());s.push([e.id,"[part~=button] {\n position: fixed;\n top: 1rem;\n right: 1rem;\n display: flex;\n background: #737E9E;\n box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);\n border-radius: 0.25rem;\n border: 1px solid #737E9E;\n padding: 0.5rem 0.5rem 0.5rem 0.75rem;\n color: #FFF;\n align-items: center;\n outline: 0;\n transition: border-color 0.1s ease-in;\n margin-bottom: 0.5rem;\n max-width: 18rem;\n font-size: 1rem;\n align-items: center;\n}\n\n[part~=loading] {\n height: 1.5rem;\n margin: -0.25rem 0.5rem -0.25rem -0.25rem;\n}\n\n[part~=button]:hover {\n border: 1px solid rgba(255, 255, 255, 0.75);\n}\n\n[part~=close] {\n height: 1rem;\n}\n\n[part~=closeIcon] {\n width: 1rem;\n height: 1rem;\n}\n\n[part~=loadingIcon] {\n animation: spin 2s infinite linear;\n width: 1.5rem;\n height: 1.5rem;\n}\n\n@keyframes progress {\n from {\n width: 0;\n }\n to {\n width: 20rem;\n }\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n[part~=closeIcon] {\n margin-left: 0.5rem;\n color: rgba(255, 255, 255, 0.5);\n transition: color 0.1s ease-in;\n}\n\n[part~=button]:hover [part~=closeIcon] {\n color: #fff;\n}\n\n.hide {\n display: none;\n}\n\n/* Error */\n\n[part~=button].error {\n color: #721c24;\n background-color: #f8d7da;\n border-color: #f5c6cb;\n}\n\n[part~=button].error [part~=closeIcon] {\n color: rgba(114, 28, 36, 0.6);\n}\n\n[part~=button].error:hover {\n border-color: #721c24;\n}\n\n[part~=button].error:hover [part~=closeIcon] {\n color: #721c24;\n}\n\n/* Warning */\n\n[part~=button].warning {\n color: #856404;\n background-color: #fff3cd;\n border-color: #ffeeba;\n}\n\n[part~=button].warning [part~=closeIcon] {\n color: rgba(133, 101, 4, 0.6);\n}\n\n[part~=button].warning:hover {\n border-color: #856404;\n}\n\n[part~=button].warning:hover [part~=closeIcon] {\n color: #856404;\n}",""]);var i=new CSSStyleSheet;i.replaceSync(s.toString());const l=i},601:e=>{e.exports=function(e){return e[1]}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=Symbol("addObserver"),o=Symbol("removeObserver"),a=Symbol("getObservers"),s=Symbol("swapObserver"),i=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],p=new Map;function d(e){return new Proxy(e,{get(t,n){if("symbol"==typeof n){switch(n){case i:return!0;case l:return t;case a:return t=>{const n=p.get(e);return n?.has(t)};case s:return(t,n)=>{const r=p.get(e);if(r){const e=r.get(t);e&&e.forEach(((r,o)=>{if(!r)throw new Error("Unreachable");{const e=p.get(n);if(e){const n=e.get(t);n?n.set(o,r):e.set(t,new Map([[o,r]]))}else p.set(n,new Map([[t,new Map([[o,r]])]]))}e.delete(o),r.forEach((e=>{e(null,u.swap,[n])}))}))}};case r:return(t,n)=>{const r=t.getRootNode().host,o=p.get(e);if(o){const e=o.get(r);if(e){const r=e.get(t);r?r.push(n):e.set(t,[n])}else o.set(r,new Map([[t,[n]]]))}else p.set(e,new Map([[r,new Map([[t,[n]]])]]))};case o:return t=>{const n=t.getRootNode().host,r=p.get(e);r&&(r.delete(n),0===r.size&&p.delete(e))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(t,n)}throw new Error("Unsupported symbol")}if(n in t){if(!Number.isNaN(Number(n)))return"object"==typeof t[n]?d(t[n]):t[n];if("copyWithin"===n)throw new Error("Unsupported array method copyWithin");if(c.includes(n))return p.has(t)?function(){const e=Array.prototype[n].apply(t,arguments),r=p.get(t);return r?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,n,arguments)}))}))})),e}:Reflect.get(t,n);if(t[n]instanceof Array)return d(t[n])}return Reflect.get(t,n)},set(e,t,n){if("symbol"==typeof t)throw new Error("Setting symbols not allowed.");if(Array.isArray(e))return Reflect.set(e,t,n);if(p.has(e)){const r=p.get(e);r?.forEach((e=>{e.forEach((e=>{e.forEach((e=>{e(t,n)}))}))}))}return Reflect.set(e,t,n)}})}window.observers=p;const u={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(e,t){super(e),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}Symbol("index");const h=Symbol("init"),f=Symbol("template"),m=Symbol("style"),g=Symbol("parent");function y(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function v(e={}){return function(t,n){if("class"!==n.kind)throw new Error("@Component() can only decorate a class");var r,o;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[g]||t.prototype[g][t.prototype[g].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[g]=[t.prototype],t.prototype[m]=e.style?[e.style]:[],t.prototype[f]=e.template||""):(t.prototype[g].push(t.prototype),t.prototype[m].push(e.style),t.prototype[f]=(r=t.prototype[f],(o=e.template||null)&&o.match(/<parent\/>/)?o.replace(/<parent\/>/,r):r.match(/<child\/>/)?r.replace(/<child\/>/,o||""):`${r}${o||""}`));const a=t.prototype.connectedCallback||(()=>{}),s=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[h]||void 0!==e.template||void 0!==e.style)if(this[h]){if(this[h]&&e.style);else if(this[h]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[f]||"";const n=document.importNode(e.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=t.prototype[m].reduce(((e,t)=>{if(!t)return e;if(t instanceof CSSStyleSheet)return e.push(t),e;var n=new CSSStyleSheet;return n.replaceSync(t.toString()),e.push(n),e}),[]),r.appendChild(n)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const n=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&n.add(e.localName);const r=Array.from(n.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),o=()=>{this[g].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[b(t)]=!0,e)),{}):{})}))};0===r.length?(this[h]=!0,a.call(this),o()):Promise.all(r).then((()=>{this[h]=!0,a.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));o()}))},t.prototype.disconnectedCallback=function(){s.call(this)},t.prototype.attributeChangedCallback=function(e,t,n){this[b(e)]=n},n.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${n.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");function w(e){return!!e&&e.constructor===Array}function x(e,t){e[h]&&e[g].map((n=>{n.render&&n.render.call(e,{[t]:!0})}))}function S(e){return null===e?"null":w(e)?"array":typeof e}function E(e){return function(t,n){const r=n.name,o=Symbol(r),c=Symbol(`${r}:type`),p=Symbol(`${r}:meta`);return n.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[c]||"array"===this[c]?this[o][i]?this[o]:d(this[o]):this[o],set:t=>{const n=S(e?e(t):t);if("index"!==r&&this[c]!==n&&"null"!==this[c]&&"null"!==n)throw new Error(`@Prop() ${r} with type '${this[c]}' cannot be set to ${n}.`);if("array"===this[c]){if(!w(t))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[o]===t)throw new Error("Setting an array to itself is not allowed.");const e=d(this[o]);if(e[a](this)){const n=t[i]?t[l]:t;e[s](this,n),this[o]=t}else this[o]=t}else this[o]=e?e(t):t,x(this,r)}})})),function(t){if(void 0===t&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==t&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===t)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!n.private){const{constructor:e}=this;e.observedAttributes??=[],e.symbols||(e.symbols={});const{symbols:t}=e,n=y(r);t[r]||(e.observedAttributes.push(n),t[r]=o)}return this[c]=S(t),"array"===this[c]?(this[o]=t,new Proxy(t,{get:(e,t)=>t===k?this[p]:(console.log("errr???"),Reflect.get(this[o],t)),set:(e,t,n)=>{if(t===k)return this[p]=n,!0;const a=Reflect.set(e,t,n);return"length"===t&&this[o].length===n||x(this,r),this[o]=n,a}})):(this[o]=e?e(this.getAttribute(r)??t):this.getAttribute(r)??t,this[o])}}}function $(){return function(e,t){const n=t.name,r=n.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,n,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const k=Symbol("meta");function P(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}var I=n(537),O=function(e,t,n,r,o,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!t&&e?r.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(d.get=i),(i=s(g.set))&&(d.set=i),(i=s(g.init))&&o.unshift(i)}else(i=s(g))&&("field"===l?o.unshift(i):d[c]=i)}p&&Object.defineProperty(p,r.name,d),u=!0},C=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};const A=new Set,j=new Map;const L=(()=>{let e,t,n=[v()],r=[],o=HTMLElement;(class extends o{static{t=this}static{const a="function"==typeof Symbol&&Symbol.metadata?Object.create(o[Symbol.metadata]??null):void 0;O(null,e={value:t},n,{kind:"class",name:t.name,metadata:a},null,r),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),C(t,r)}static open(e={}){var t=document.createElement(this.name);return Object.assign(t,e),document.body.appendChild(t),A.add(t),new Promise((e=>{j.set(t,e)}))}close(e){this.remove(),A.delete(this);const t=j.get(this);t&&t(e),j.delete(this)}});return t})();var R=function(e,t,n,r,o,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!t&&e?r.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),u=!1,h=n.length-1;h>=0;h--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,n[h])("accessor"===l?{get:d.get,set:d.set}:d[c],f);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(i=s(g.get))&&(d.get=i),(i=s(g.set))&&(d.set=i),(i=s(g.init))&&o.unshift(i)}else(i=s(g))&&("field"===l?o.unshift(i):d[c]=i)}p&&Object.defineProperty(p,r.name,d),u=!0},M=function(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0};(()=>{let e,t,n,r,o,a,s,i,l,c,p,d=[v({selector:"pg-toast",style:I.A,template:'<button part="button"> <span part="loading"> <svg part="loadingIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"/> </svg> </span> <span part="message"></span> <span part="close"> <svg part="closeIcon" viewBox="0 0 24 24"> <path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"/> </svg> </span> </button>'})],u=[],h=L,f=[],m=[],g=[],y=[],b=[],w=[],x=[],S=[],k=[],O=[],C=[],A=[],j=[],z=[],T=[],N=[],F=[],D=[];(class extends h{static{t=this}static{const v="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;n=[E()],r=[E()],o=[E()],a=[E()],s=[$()],i=[$()],l=[$()],c=[$()],p=[$()],R(null,null,n,{kind:"field",name:"loading",static:!1,private:!1,access:{has:e=>"loading"in e,get:e=>e.loading,set:(e,t)=>{e.loading=t}},metadata:v},f,m),R(null,null,r,{kind:"field",name:"message",static:!1,private:!1,access:{has:e=>"message"in e,get:e=>e.message,set:(e,t)=>{e.message=t}},metadata:v},g,y),R(null,null,o,{kind:"field",name:"type",static:!1,private:!1,access:{has:e=>"type"in e,get:e=>e.type,set:(e,t)=>{e.type=t}},metadata:v},b,w),R(null,null,a,{kind:"field",name:"key",static:!1,private:!1,access:{has:e=>"key"in e,get:e=>e.key,set:(e,t)=>{e.key=t}},metadata:v},x,S),R(null,null,s,{kind:"field",name:"$button",static:!1,private:!1,access:{has:e=>"$button"in e,get:e=>e.$button,set:(e,t)=>{e.$button=t}},metadata:v},k,O),R(null,null,i,{kind:"field",name:"$loadingIcon",static:!1,private:!1,access:{has:e=>"$loadingIcon"in e,get:e=>e.$loadingIcon,set:(e,t)=>{e.$loadingIcon=t}},metadata:v},C,A),R(null,null,l,{kind:"field",name:"$closeIcon",static:!1,private:!1,access:{has:e=>"$closeIcon"in e,get:e=>e.$closeIcon,set:(e,t)=>{e.$closeIcon=t}},metadata:v},j,z),R(null,null,c,{kind:"field",name:"$message",static:!1,private:!1,access:{has:e=>"$message"in e,get:e=>e.$message,set:(e,t)=>{e.$message=t}},metadata:v},T,N),R(null,null,p,{kind:"field",name:"$loading",static:!1,private:!1,access:{has:e=>"$loading"in e,get:e=>e.$loading,set:(e,t)=>{e.$loading=t}},metadata:v},F,D),R(null,e={value:t},d,{kind:"class",name:t.name,metadata:v},null,u),t=e.value,v&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:v}),M(t,u)}loading=M(this,f,!1);message=(M(this,m),M(this,g,""));type=(M(this,y),M(this,b,"default"));key=(M(this,w),M(this,x,P()));$button=(M(this,S),M(this,k,void 0));$loadingIcon=(M(this,O),M(this,C,void 0));$closeIcon=(M(this,A),M(this,j,void 0));$message=(M(this,z),M(this,T,void 0));$loading=(M(this,N),M(this,F,void 0));static open(e={}){super.open(e);const t=P();return Promise.resolve((function(e){const n=t;void 0===e&&this.toasts.find((e=>e.key===n)).remove()}))}toasts=(M(this,D),[]);connectedCallback(){this.$button.addEventListener("click",(()=>{this.remove()}))}render(){this.$message.textContent=this.message,this.$loading.classList.toggle("hide",!this.loading),this.$button.classList.toggle("error","error"===this.type),this.$button.classList.toggle("warning","warning"===this.type)}})})()})();
package/pgToasts.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var p=[].concat(e[l]);n&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),o&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=o):p[2]=o),r&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=r):p[4]="".concat(r)),t.push(p))}},t}},601:e=>{e.exports=function(e){return e[1]}},791:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(601),r=o.n(n),a=o(314),s=o.n(a)()(r());s.push([e.id,"[part~=container] {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n position: fixed;\n top: 1rem;\n right: 1rem;\n}",""]);var i=new CSSStyleSheet;i.replaceSync(s.toString());const c=i}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);Symbol("addObserver"),Symbol("removeObserver"),Symbol("getObservers"),Symbol("swapObserver"),Symbol("isProxy"),Symbol("getTarget");const n=new Map;window.observers=n;Error;Symbol("index");const r=Symbol("init"),a=Symbol("template"),s=Symbol("style"),i=Symbol("parent");function c(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function l(e={}){return function(t,o){if("class"!==o.kind)throw new Error("@Component() can only decorate a class");var n,l;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[i]||t.prototype[i][t.prototype[i].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[i]=[t.prototype],t.prototype[s]=e.style?[e.style]:[],t.prototype[a]=e.template||""):(t.prototype[i].push(t.prototype),t.prototype[s].push(e.style),t.prototype[a]=(n=t.prototype[a],(l=e.template||null)&&l.match(/<parent\/>/)?l.replace(/<parent\/>/,n):`${n}${l||""}`));const p=t.prototype.connectedCallback||(()=>{}),d=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[r]||void 0!==e.template||void 0!==e.style)if(this[r]){if(this[r]&&e.style);else if(this[r]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[a]||"";const o=document.importNode(e.content,!0),n=this.attachShadow({mode:"open"});n.adoptedStyleSheets=t.prototype[s].map((e=>{if(e instanceof CSSStyleSheet)return e;var t=new CSSStyleSheet;return t.replaceSync(e.toString()),t})),n.appendChild(o)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const o=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&o.add(e.localName);const n=Array.from(o.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),l=()=>{this[i].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[c(t)]=!0,e)),{}):{})}))};0===n.length?(this[r]=!0,p.call(this),l()):Promise.all(n).then((()=>{this[r]=!0,p.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));l()}))},t.prototype.disconnectedCallback=function(){d.call(this)},t.prototype.attributeChangedCallback=function(e,t,o){this[c(e)]=o},o.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${o.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");Symbol("hasProxy");Symbol("meta");const p="pgtoastadd",d="pgtoastremove";var u=o(791),y=function(e,t,o,n,r,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",p=!t&&e?n.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,n.name):{}),u=!1,y=o.length-1;y>=0;y--){var m={};for(var f in n)m[f]="access"===f?{}:n[f];for(var f in n.access)m.access[f]=n.access[f];m.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var h=(0,o[y])("accessor"===c?{get:d.get,set:d.set}:d[l],m);if("accessor"===c){if(void 0===h)continue;if(null===h||"object"!=typeof h)throw new TypeError("Object expected");(i=s(h.get))&&(d.get=i),(i=s(h.set))&&(d.set=i),(i=s(h.init))&&r.unshift(i)}else(i=s(h))&&("field"===c?r.unshift(i):d[l]=i)}p&&Object.defineProperty(p,n.name,d),u=!0},m=function(e,t,o){for(var n=arguments.length>2,r=0;r<t.length;r++)o=n?t[r].call(e,o):t[r].call(e);return n?o:void 0};(()=>{let e,t,o,n=[l({selector:"pg-toasts",style:u.A,template:'<div part="container"></div>'})],r=[],a=HTMLElement,s=[],i=[];(class extends a{static{t=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(a[Symbol.metadata]??null):void 0;o=[function(e,t){const o=t.name,n=o.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,o,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${n}]`))}})}))}],y(null,null,o,{kind:"field",name:"$container",static:!1,private:!1,access:{has:e=>"$container"in e,get:e=>e.$container,set:(e,t)=>{e.$container=t}},metadata:c},s,i),y(null,e={value:t},n,{kind:"class",name:t.name,metadata:c},null,r),t=e.value,c&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),m(t,r)}toasts=[];$container=m(this,s,void 0);connectedCallback(){!function({add:e,remove:t}){document.body.addEventListener(p,(t=>{e(t.detail)})),document.body.addEventListener(d,(e=>{t(e.detail.key)}))}({add:e=>{this.toasts.push(e),this.render()},remove:e=>{const t=this.toasts.findIndex((t=>t.key===e));if(-1!==t){var[o]=this.toasts.splice(t,1);this.$container.querySelector(`[key="${o.key}"]`)?.remove()}}})}render(){this.toasts.forEach((e=>{const t=this.$container.querySelector(`[key="${e.key}"]`);if(t)t.message=e.message,t.loading=e.loading,t.type=e.type;else{const t=document.createElement("pg-toast");t.setAttribute("key",e.key),t.message=e.message,t.loading=e.loading,t.type=e.type,this.$container.appendChild(t)}}))}constructor(){super(...arguments),m(this,i)}})})()})();
1
+ (()=>{"use strict";var e={314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(n)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(s[c]=!0)}for(var l=0;l<e.length;l++){var p=[].concat(e[l]);n&&s[p[0]]||(void 0!==a&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=a),o&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=o):p[2]=o),r&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=r):p[4]="".concat(r)),t.push(p))}},t}},601:e=>{e.exports=function(e){return e[1]}},791:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(601),r=o.n(n),a=o(314),s=o.n(a)()(r());s.push([e.id,"[part~=container] {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n position: fixed;\n top: 1rem;\n right: 1rem;\n}",""]);var i=new CSSStyleSheet;i.replaceSync(s.toString());const c=i}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);Symbol("addObserver"),Symbol("removeObserver"),Symbol("getObservers"),Symbol("swapObserver"),Symbol("isProxy"),Symbol("getTarget");const n=new Map;window.observers=n;Error;Symbol("index");const r=Symbol("init"),a=Symbol("template"),s=Symbol("style"),i=Symbol("parent");function c(e){return e.replace(/-([a-z])/g,(e=>e[1].toUpperCase()))}function l(e={}){return function(t,o){if("class"!==o.kind)throw new Error("@Component() can only decorate a class");var n,l;Reflect.defineProperty(t,"name",{value:e.selector,writable:!1,configurable:!1}),!t.prototype[i]||t.prototype[i][t.prototype[i].length-1]instanceof Object.getPrototypeOf(t)?t.prototype instanceof HTMLElement&&(t.prototype[i]=[t.prototype],t.prototype[s]=e.style?[e.style]:[],t.prototype[a]=e.template||""):(t.prototype[i].push(t.prototype),t.prototype[s].push(e.style),t.prototype[a]=(n=t.prototype[a],(l=e.template||null)&&l.match(/<parent\/>/)?l.replace(/<parent\/>/,n):n.match(/<child\/>/)?n.replace(/<child\/>/,l||""):`${n}${l||""}`));const p=t.prototype.connectedCallback||(()=>{}),d=t.prototype.disconnectedCallback||(()=>{});t.prototype.connectedCallback=function(){if(this[r]||void 0!==e.template||void 0!==e.style)if(this[r]){if(this[r]&&e.style);else if(this[r]&&e.selector&&!e.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===e.useShadow)throw new Error("unsupported");{const e=document.createElement("template");e.innerHTML=t.prototype[a]||"";const o=document.importNode(e.content,!0),n=this.attachShadow({mode:"open"});n.adoptedStyleSheets=t.prototype[s].reduce(((e,t)=>{if(!t)return e;if(t instanceof CSSStyleSheet)return e.push(t),e;var o=new CSSStyleSheet;return o.replaceSync(t.toString()),e.push(o),e}),[]),n.appendChild(o)}}else!1===e.useShadow||this.attachShadow({mode:"open"});const o=new Set;for(const e of this.shadowRoot.querySelectorAll("*"))-1!==e.localName.indexOf("-")&&o.add(e.localName);const n=Array.from(o.values()).map((e=>customElements.get(e)?Promise.resolve():customElements.whenDefined(e))),l=()=>{this[i].map((e=>{e.render&&e.render.call(this,t.observedAttributes?t.observedAttributes.reduce(((e,t)=>(e[c(t)]=!0,e)),{}):{})}))};0===n.length?(this[r]=!0,p.call(this),l()):Promise.all(n).then((()=>{this[r]=!0,p.call(this);for(const e of this.shadowRoot.querySelectorAll("slot"))e.dispatchEvent(new CustomEvent("slotchange"));l()}))},t.prototype.disconnectedCallback=function(){d.call(this)},t.prototype.attributeChangedCallback=function(e,t,o){this[c(e)]=o},o.addInitializer((function(){if(e.selector){if(window.customElements.get(e.selector))throw new Error(`@Component() ${o.name} duplicate selector '${e.selector}'`);window.customElements.define(e.selector,t)}}))}}Symbol("transmute");Symbol("hasProxy");Symbol("meta");const p="pgtoastadd",d="pgtoastremove";var u=o(791),y=function(e,t,o,n,r,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var i,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",p=!t&&e?n.static?e:e.prototype:null,d=t||(p?Object.getOwnPropertyDescriptor(p,n.name):{}),u=!1,y=o.length-1;y>=0;y--){var m={};for(var h in n)m[h]="access"===h?{}:n[h];for(var h in n.access)m.access[h]=n.access[h];m.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var f=(0,o[y])("accessor"===c?{get:d.get,set:d.set}:d[l],m);if("accessor"===c){if(void 0===f)continue;if(null===f||"object"!=typeof f)throw new TypeError("Object expected");(i=s(f.get))&&(d.get=i),(i=s(f.set))&&(d.set=i),(i=s(f.init))&&r.unshift(i)}else(i=s(f))&&("field"===c?r.unshift(i):d[l]=i)}p&&Object.defineProperty(p,n.name,d),u=!0},m=function(e,t,o){for(var n=arguments.length>2,r=0;r<t.length;r++)o=n?t[r].call(e,o):t[r].call(e);return n?o:void 0};(()=>{let e,t,o,n=[l({selector:"pg-toasts",style:u.A,template:'<div part="container"></div>'})],r=[],a=HTMLElement,s=[],i=[];(class extends a{static{t=this}static{const c="function"==typeof Symbol&&Symbol.metadata?Object.create(a[Symbol.metadata]??null):void 0;o=[function(e,t){const o=t.name,n=o.replace(/^\$/,"");t.addInitializer((function(){let e=null;Reflect.defineProperty(this,o,{get(){return e??(e=this.shadowRoot?.querySelector(`[part~=${n}]`))}})}))}],y(null,null,o,{kind:"field",name:"$container",static:!1,private:!1,access:{has:e=>"$container"in e,get:e=>e.$container,set:(e,t)=>{e.$container=t}},metadata:c},s,i),y(null,e={value:t},n,{kind:"class",name:t.name,metadata:c},null,r),t=e.value,c&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),m(t,r)}toasts=[];$container=m(this,s,void 0);connectedCallback(){!function({add:e,remove:t}){document.body.addEventListener(p,(t=>{e(t.detail)})),document.body.addEventListener(d,(e=>{t(e.detail.key)}))}({add:e=>{this.toasts.push(e),this.render()},remove:e=>{const t=this.toasts.findIndex((t=>t.key===e));if(-1!==t){var[o]=this.toasts.splice(t,1);this.$container.querySelector(`[key="${o.key}"]`)?.remove()}}})}render(){this.toasts.forEach((e=>{const t=this.$container.querySelector(`[key="${e.key}"]`);if(t)t.message=e.message,t.loading=e.loading,t.type=e.type;else{const t=document.createElement("pg-toast");t.setAttribute("key",e.key),t.message=e.message,t.loading=e.loading,t.type=e.type,this.$container.appendChild(t)}}))}constructor(){super(...arguments),m(this,i)}})})()})();
package/pgTooltip.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var t={314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o="",r=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),r&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),r&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o})).join("")},e.i=function(t,o,r,n,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var p=0;p<t.length;p++){var c=[].concat(t[p]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),o&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=o):c[2]=o),n&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=n):c[4]="".concat(n)),e.push(c))}},e}},601:t=>{t.exports=function(t){return t[1]}},857:(t,e,o)=>{o.d(e,{A:()=>l});var r=o(601),n=o.n(r),i=o(314),s=o.n(i)()(n());s.push([t.id,":host {\n pointer-events: none;\n}\n\n[part~=tooltip] {\n position: relative;\n}\n\n[part~=tooltipText] {\n position: absolute;\n background: #737E9E;\n border-radius: 0.25rem;\n color: #FFF;\n padding: 0.15rem 0.5rem 0.3rem 0.5rem;\n white-space: nowrap;\n left: 0;\n top: 0;\n}\n\n[part~=tooltipArrow] {\n left: 16px;\n top: -7px;\n}\n\n[part~=tooltipArrow],\n[part~=tooltipArrow]::before {\n position: absolute;\n width: 10px;\n height: 10px;\n}\n\n[part~=tooltipArrow]::before {\n content: '';\n transform: rotate(45deg);\n background: #737E9E;\n}",""]);var a=new CSSStyleSheet;a.replaceSync(s.toString());const l=a}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const r=Symbol("addObserver"),n=Symbol("removeObserver"),i=Symbol("getObservers"),s=Symbol("swapObserver"),a=Symbol("isProxy"),l=Symbol("getTarget"),p=["fill","pop","push","reverse","shift","sort","splice","unshift"],c=new Map;function h(t){return new Proxy(t,{get(e,o){if("symbol"==typeof o){switch(o){case a:return!0;case l:return e;case i:return c.has(t);case s:return(e,o)=>{const r=c.get(t);r.forEach(((n,i)=>{if(i.getRootNode().host===e){const e=r.get(i);c.has(o)?c.get(o).has(i)?c.get(o).get(i).push(r.get(i)):c.get(o).set(i,r.get(i)):c.set(o,new Map([[i,e]])),c.delete(t),e.forEach((t=>{t(null,f.swap,[o])}))}}))};case r:return(e,o)=>{c.has(t)?c.get(t).has(e)?c.get(t).get(e).push(o):c.get(t).set(e,[o]):c.set(t,new Map([[e,[o]]]))};case n:return e=>{c.has(t)&&(c.get(t).delete(e),0===c.get(t).size&&c.delete(t))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(e,o)}throw new Error("Unsupported symbol")}if(o in e){if(!Number.isNaN(Number(o)))return"object"==typeof e[o]?h(e[o]):e[o];if("copyWithin"===o)throw new Error("Unsupported array method copyWithin");if(p.includes(o))return c.has(e)?function(){const t=Array.prototype[o].apply(e,arguments);return c.get(e).forEach(((t,r)=>{t.forEach((t=>{t(e,o,arguments)}))})),t}:Reflect.get(e,o);if(e[o]instanceof Array)return h(e[o])}return Reflect.get(e,o)},set(t,e,o){if("symbol"==typeof e)throw new Error("Setting symbols not allowed.");if(Array.isArray(t))return Reflect.set(t,e,o);if(c.has(t)){c.get(t).forEach(((t,r)=>{t.forEach((t=>{t(e,o)}))}))}return Reflect.set(t,e,o)}})}window.observers=c;const f={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(t,e){super(t),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}Symbol("index");const d=Symbol("init"),u=Symbol("template"),w=Symbol("style"),y=Symbol("parent");function m(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function g(t){return t.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))}function b(t={}){return function(e,o){if("class"!==o.kind)throw new Error("@Component() can only decorate a class");var r,n;Reflect.defineProperty(e,"name",{value:t.selector,writable:!1,configurable:!1}),!e.prototype[y]||e.prototype[y][e.prototype[y].length-1]instanceof Object.getPrototypeOf(e)?e.prototype instanceof HTMLElement&&(e.prototype[y]=[e.prototype],e.prototype[w]=t.style?[t.style]:[],e.prototype[u]=t.template||""):(e.prototype[y].push(e.prototype),e.prototype[w].push(t.style),e.prototype[u]=(r=e.prototype[u],(n=t.template||null)&&n.match(/<parent\/>/)?n.replace(/<parent\/>/,r):`${r}${n||""}`));const i=e.prototype.connectedCallback||(()=>{}),s=e.prototype.disconnectedCallback||(()=>{});e.prototype.connectedCallback=function(){if(this[d]||void 0!==t.template||void 0!==t.style)if(this[d]){if(this[d]&&t.style);else if(this[d]&&t.selector&&!t.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===t.useShadow)throw new Error("unsupported");{const t=document.createElement("template");t.innerHTML=e.prototype[u]||"";const o=document.importNode(t.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=e.prototype[w].map((t=>{if(t instanceof CSSStyleSheet)return t;var e=new CSSStyleSheet;return e.replaceSync(t.toString()),e})),r.appendChild(o)}}else!1===t.useShadow||this.attachShadow({mode:"open"});const o=new Set;for(const t of this.shadowRoot.querySelectorAll("*"))-1!==t.localName.indexOf("-")&&o.add(t.localName);const r=Array.from(o.values()).map((t=>customElements.get(t)?Promise.resolve():customElements.whenDefined(t))),n=()=>{this[y].map((t=>{t.render&&t.render.call(this,e.observedAttributes?e.observedAttributes.reduce(((t,e)=>(t[g(e)]=!0,t)),{}):{})}))};0===r.length?(this[d]=!0,i.call(this),n()):Promise.all(r).then((()=>{this[d]=!0,i.call(this);for(const t of this.shadowRoot.querySelectorAll("slot"))t.dispatchEvent(new CustomEvent("slotchange"));n()}))},e.prototype.disconnectedCallback=function(){s.call(this)},e.prototype.attributeChangedCallback=function(t,e,o){this[g(t)]=o},o.addInitializer((function(){if(t.selector){if(window.customElements.get(t.selector))throw new Error(`@Component() ${o.name} duplicate selector '${t.selector}'`);window.customElements.define(t.selector,e)}}))}}Symbol("transmute");function v(t){return!!t&&t.constructor===Array}function S(t,e){t[d]&&t[y].map((o=>{o.render&&o.render.call(t,{[e]:!0})}))}function x(t){return null===t?"null":v(t)?"array":typeof t}function E(t){return function(e,o){const r=o.name,n=Symbol(r),p=Symbol(`${r}:type`),c=Symbol(`${r}:meta`);return o.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[p]||"array"===this[p]?this[n][a]?this[n]:h(this[n]):this[n],set:e=>{const o=x(t?t(e):e);if("index"!==r&&this[p]!==o&&"null"!==this[p]&&"null"!==o)throw new Error(`@Prop() ${r} with type '${this[p]}' cannot be set to ${o}.`);if("array"===this[p]){if(!v(e))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[n]===e)throw new Error("Setting an array to itself is not allowed.");const t=h(this[n]);if(t[i]){const o=e[a]?e[l]:e;t[s](this,o),this[n]=e,console.log(">>> trigger render???",this,r)}else this[n]=e}else this[n]=t?t(e):e,S(this,r)}})})),function(e){if(void 0===e&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==e&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===e)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!o.private){const{constructor:t}=this;t.observedAttributes??=[],t.symbols||(t.symbols={});const{symbols:e}=t,o=m(r);e[r]||(t.observedAttributes.push(o),e[r]=n)}return this[p]=x(e),"array"===this[p]?(this[n]=e,new Proxy(e,{get:(t,e)=>e===T?this[c]:(console.log("errr???"),Reflect.get(this[n],e)),set:(t,e,o)=>{if(e===T)return this[c]=o,!0;const i=Reflect.set(t,e,o);return"length"===e&&this[n].length===o||S(this,r),this[n]=o,i}})):(this[n]=t?t(this.getAttribute(r)??e):this.getAttribute(r)??e,this[n])}}}function $(){return function(t,e){const o=e.name,r=o.replace(/^\$/,"");e.addInitializer((function(){let t=null;Reflect.defineProperty(this,o,{get(){return t??(t=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const T=Symbol("meta");var A=o(857);const M="top",P="top-start",k="top-end",C="right",O="right-start",L="right-end",R="bottom",j="bottom-start",z="bottom-end",N="left",F="left-start",I="left-end";var q=function(t,e,o,r,n,i){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,p="getter"===l?"get":"setter"===l?"set":"value",c=!e&&t?r.static?t:t.prototype:null,h=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,d=o.length-1;d>=0;d--){var u={};for(var w in r)u[w]="access"===w?{}:r[w];for(var w in r.access)u.access[w]=r.access[w];u.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(t||null))};var y=(0,o[d])("accessor"===l?{get:h.get,set:h.set}:h[p],u);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(a=s(y.get))&&(h.get=a),(a=s(y.set))&&(h.set=a),(a=s(y.init))&&n.unshift(a)}else(a=s(y))&&("field"===l?n.unshift(a):h[p]=a)}c&&Object.defineProperty(c,r.name,h),f=!0},D=function(t,e,o){for(var r=arguments.length>2,n=0;n<e.length;n++)o=r?e[n].call(t,o):e[n].call(t);return r?o:void 0};const H={[P]:(t,e,o)=>({arrowTop:e-5,arrowLeft:o.width>t?Math.floor(t/2)-5:Math.floor(o.width/2)-5,left:o.left,top:o.top-e-10}),[M]:(t,e,o)=>({arrowTop:e-5,arrowLeft:Math.floor(t/2)-5,left:o.left-Math.floor((t-o.width)/2),top:o.top-e-10}),[k]:(t,e,o)=>({arrowTop:e-5,arrowLeft:o.width>t?t-Math.floor(t/2)-5:t-Math.floor(o.width/2)-5,left:o.left-t+o.width,top:o.top-e-10}),[O]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top}),[C]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top+Math.floor(o.height/2)-Math.floor(e/2)}),[L]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top+o.height-e}),[j]:(t,e,o)=>({arrowTop:-5,arrowLeft:o.width>t?Math.floor(t/2)-5:Math.floor(o.width/2)-5,left:o.left,top:o.top+o.height+e-20}),[R]:(t,e,o)=>({arrowTop:-5,arrowLeft:Math.floor(t/2)-5,left:o.left-Math.floor((t-o.width)/2),top:o.top+o.height+e-20}),[z]:(t,e,o)=>({arrowTop:-5,arrowLeft:o.width>t?t-Math.floor(t/2)-5:t-Math.floor(o.width/2)-5,left:o.left-t+o.width,top:o.top+o.height+e-20}),[F]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top}),[N]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top+Math.floor(o.height/2)-Math.floor(e/2)}),[I]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top+o.height-e})};(()=>{let t,e,o,r,n,i,s,a,l,p=[b({selector:"pg-tooltip",style:A.A,template:'<div part="tooltip"> <span part="tooltipText"></span> <div part="tooltipArrow"></div> </div>'})],c=[],h=HTMLElement,f=[],d=[],u=[],w=[],y=[],m=[],g=[],v=[],S=[],x=[],T=[],M=[],P=[],k=[];(class extends h{static{e=this}static{const b="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;o=[E()],r=[E()],n=[E()],i=[E()],s=[$()],a=[$()],l=[$()],q(null,null,o,{kind:"field",name:"visible",static:!1,private:!1,access:{has:t=>"visible"in t,get:t=>t.visible,set:(t,e)=>{t.visible=e}},metadata:b},f,d),q(null,null,r,{kind:"field",name:"rect",static:!1,private:!1,access:{has:t=>"rect"in t,get:t=>t.rect,set:(t,e)=>{t.rect=e}},metadata:b},u,w),q(null,null,n,{kind:"field",name:"text",static:!1,private:!1,access:{has:t=>"text"in t,get:t=>t.text,set:(t,e)=>{t.text=e}},metadata:b},y,m),q(null,null,i,{kind:"field",name:"position",static:!1,private:!1,access:{has:t=>"position"in t,get:t=>t.position,set:(t,e)=>{t.position=e}},metadata:b},g,v),q(null,null,s,{kind:"field",name:"$tooltip",static:!1,private:!1,access:{has:t=>"$tooltip"in t,get:t=>t.$tooltip,set:(t,e)=>{t.$tooltip=e}},metadata:b},S,x),q(null,null,a,{kind:"field",name:"$tooltipText",static:!1,private:!1,access:{has:t=>"$tooltipText"in t,get:t=>t.$tooltipText,set:(t,e)=>{t.$tooltipText=e}},metadata:b},T,M),q(null,null,l,{kind:"field",name:"$tooltipArrow",static:!1,private:!1,access:{has:t=>"$tooltipArrow"in t,get:t=>t.$tooltipArrow,set:(t,e)=>{t.$tooltipArrow=e}},metadata:b},P,k),q(null,t={value:e},p,{kind:"class",name:e.name,metadata:b},null,c),e=t.value,b&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:b}),D(e,c)}visible=D(this,f,!1);rect=(D(this,d),D(this,u,null));text=(D(this,w),D(this,y,""));position=(D(this,m),D(this,g,R));$tooltip=(D(this,v),D(this,S,void 0));$tooltipText=(D(this,x),D(this,T,void 0));$tooltipArrow=(D(this,M),D(this,P,void 0));render(t){this.$tooltipText.textContent=this.text,this.style.position="absolute",t.visible&&(this.style.display=this.visible?"block":"none");const{width:e,height:o}=this.$tooltipText.getBoundingClientRect();let r=this.position;if(r in H||(r=R),this.rect){const{arrowLeft:t,arrowTop:n,left:i,top:s}=H[r](e,o,this.rect);this.style.left=`${i+window.scrollX}px`,this.style.top=`${s+window.scrollY}px`,this.$tooltipArrow.style.left=`${t}px`,this.$tooltipArrow.style.top=`${n}px`}}constructor(){super(...arguments),D(this,k)}})})()})();
1
+ (()=>{"use strict";var t={314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var o="",r=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),r&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),r&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o})).join("")},e.i=function(t,o,r,n,i){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var p=[].concat(t[c]);r&&s[p[0]]||(void 0!==i&&(void 0===p[5]||(p[1]="@layer".concat(p[5].length>0?" ".concat(p[5]):""," {").concat(p[1],"}")),p[5]=i),o&&(p[2]?(p[1]="@media ".concat(p[2]," {").concat(p[1],"}"),p[2]=o):p[2]=o),n&&(p[4]?(p[1]="@supports (".concat(p[4],") {").concat(p[1],"}"),p[4]=n):p[4]="".concat(n)),e.push(p))}},e}},601:t=>{t.exports=function(t){return t[1]}},857:(t,e,o)=>{o.d(e,{A:()=>l});var r=o(601),n=o.n(r),i=o(314),s=o.n(i)()(n());s.push([t.id,":host {\n pointer-events: none;\n}\n\n[part~=tooltip] {\n position: relative;\n}\n\n[part~=tooltipText] {\n position: absolute;\n background: #737E9E;\n border-radius: 0.25rem;\n color: #FFF;\n padding: 0.15rem 0.5rem 0.3rem 0.5rem;\n white-space: nowrap;\n left: 0;\n top: 0;\n}\n\n[part~=tooltipArrow] {\n left: 16px;\n top: -7px;\n}\n\n[part~=tooltipArrow],\n[part~=tooltipArrow]::before {\n position: absolute;\n width: 10px;\n height: 10px;\n}\n\n[part~=tooltipArrow]::before {\n content: '';\n transform: rotate(45deg);\n background: #737E9E;\n}",""]);var a=new CSSStyleSheet;a.replaceSync(s.toString());const l=a}},e={};function o(r){var n=e[r];if(void 0!==n)return n.exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const r=Symbol("addObserver"),n=Symbol("removeObserver"),i=Symbol("getObservers"),s=Symbol("swapObserver"),a=Symbol("isProxy"),l=Symbol("getTarget"),c=["fill","pop","push","reverse","shift","sort","splice","unshift"],p=new Map;function h(t){return new Proxy(t,{get(e,o){if("symbol"==typeof o){switch(o){case a:return!0;case l:return e;case i:return e=>{const o=p.get(t);return o?.has(e)};case s:return(e,o)=>{const r=p.get(t);if(r){const t=r.get(e);t&&t.forEach(((r,n)=>{if(!r)throw new Error("Unreachable");{const t=p.get(o);if(t){const o=t.get(e);o?o.set(n,r):t.set(e,new Map([[n,r]]))}else p.set(o,new Map([[e,new Map([[n,r]])]]))}t.delete(n),r.forEach((t=>{t(null,f.swap,[o])}))}))}};case r:return(e,o)=>{const r=e.getRootNode().host,n=p.get(t);if(n){const t=n.get(r);if(t){const r=t.get(e);r?r.push(o):t.set(e,[o])}else n.set(r,new Map([[e,[o]]]))}else p.set(t,new Map([[r,new Map([[e,[o]]])]]))};case n:return e=>{const o=e.getRootNode().host,r=p.get(t);r&&(r.delete(o),0===r.size&&p.delete(t))};case Symbol.toPrimitive:case Symbol.toStringTag:return Reflect.get(e,o)}throw new Error("Unsupported symbol")}if(o in e){if(!Number.isNaN(Number(o)))return"object"==typeof e[o]?h(e[o]):e[o];if("copyWithin"===o)throw new Error("Unsupported array method copyWithin");if(c.includes(o))return p.has(e)?function(){const t=Array.prototype[o].apply(e,arguments),r=p.get(e);return r?.forEach((t=>{t.forEach((t=>{t.forEach((t=>{t(e,o,arguments)}))}))})),t}:Reflect.get(e,o);if(e[o]instanceof Array)return h(e[o])}return Reflect.get(e,o)},set(t,e,o){if("symbol"==typeof e)throw new Error("Setting symbols not allowed.");if(Array.isArray(t))return Reflect.set(t,e,o);if(p.has(t)){const r=p.get(t);r?.forEach((t=>{t.forEach((t=>{t.forEach((t=>{t(e,o)}))}))}))}return Reflect.set(t,e,o)}})}window.observers=p;const f={fill:"fill",pop:"pop",push:"push",reverse:"reverse",shift:"shift",sort:"sort",splice:"splice",unshift:"unshift",swap:"swap"};class PropError extends Error{constructor(t,e){super(t),this.name="PropError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}Symbol("index");const u=Symbol("init"),d=Symbol("template"),w=Symbol("style"),y=Symbol("parent");function m(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function b(t){return t.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))}function g(t={}){return function(e,o){if("class"!==o.kind)throw new Error("@Component() can only decorate a class");var r,n;Reflect.defineProperty(e,"name",{value:t.selector,writable:!1,configurable:!1}),!e.prototype[y]||e.prototype[y][e.prototype[y].length-1]instanceof Object.getPrototypeOf(e)?e.prototype instanceof HTMLElement&&(e.prototype[y]=[e.prototype],e.prototype[w]=t.style?[t.style]:[],e.prototype[d]=t.template||""):(e.prototype[y].push(e.prototype),e.prototype[w].push(t.style),e.prototype[d]=(r=e.prototype[d],(n=t.template||null)&&n.match(/<parent\/>/)?n.replace(/<parent\/>/,r):r.match(/<child\/>/)?r.replace(/<child\/>/,n||""):`${r}${n||""}`));const i=e.prototype.connectedCallback||(()=>{}),s=e.prototype.disconnectedCallback||(()=>{});e.prototype.connectedCallback=function(){if(this[u]||void 0!==t.template||void 0!==t.style)if(this[u]){if(this[u]&&t.style);else if(this[u]&&t.selector&&!t.template)throw new Error("You need to pass a template for an extended element.")}else{if(!1===t.useShadow)throw new Error("unsupported");{const t=document.createElement("template");t.innerHTML=e.prototype[d]||"";const o=document.importNode(t.content,!0),r=this.attachShadow({mode:"open"});r.adoptedStyleSheets=e.prototype[w].reduce(((t,e)=>{if(!e)return t;if(e instanceof CSSStyleSheet)return t.push(e),t;var o=new CSSStyleSheet;return o.replaceSync(e.toString()),t.push(o),t}),[]),r.appendChild(o)}}else!1===t.useShadow||this.attachShadow({mode:"open"});const o=new Set;for(const t of this.shadowRoot.querySelectorAll("*"))-1!==t.localName.indexOf("-")&&o.add(t.localName);const r=Array.from(o.values()).map((t=>customElements.get(t)?Promise.resolve():customElements.whenDefined(t))),n=()=>{this[y].map((t=>{t.render&&t.render.call(this,e.observedAttributes?e.observedAttributes.reduce(((t,e)=>(t[b(e)]=!0,t)),{}):{})}))};0===r.length?(this[u]=!0,i.call(this),n()):Promise.all(r).then((()=>{this[u]=!0,i.call(this);for(const t of this.shadowRoot.querySelectorAll("slot"))t.dispatchEvent(new CustomEvent("slotchange"));n()}))},e.prototype.disconnectedCallback=function(){s.call(this)},e.prototype.attributeChangedCallback=function(t,e,o){this[b(t)]=o},o.addInitializer((function(){if(t.selector){if(window.customElements.get(t.selector))throw new Error(`@Component() ${o.name} duplicate selector '${t.selector}'`);window.customElements.define(t.selector,e)}}))}}Symbol("transmute");function v(t){return!!t&&t.constructor===Array}function S(t,e){t[u]&&t[y].map((o=>{o.render&&o.render.call(t,{[e]:!0})}))}function x(t){return null===t?"null":v(t)?"array":typeof t}function E(t){return function(e,o){const r=o.name,n=Symbol(r),c=Symbol(`${r}:type`),p=Symbol(`${r}:meta`);return o.addInitializer((function(){Reflect.defineProperty(this,r,{get:()=>"object"===this[c]||"array"===this[c]?this[n][a]?this[n]:h(this[n]):this[n],set:e=>{const o=x(t?t(e):e);if("index"!==r&&this[c]!==o&&"null"!==this[c]&&"null"!==o)throw new Error(`@Prop() ${r} with type '${this[c]}' cannot be set to ${o}.`);if("array"===this[c]){if(!v(e))throw new PropError(`Array "${r}" (Prop) initialized already. Reassignments must be array type.`,Object.getOwnPropertyDescriptor(this,r)?.set);if(this[n]===e)throw new Error("Setting an array to itself is not allowed.");const t=h(this[n]);if(t[i](this)){const o=e[a]?e[l]:e;t[s](this,o),this[n]=e}else this[n]=e}else this[n]=t?t(e):e,S(this,r)}})})),function(e){if(void 0===e&&"index"!==r)throw new Error(`@Prop() ${r} must have an initial value defined.`);if(void 0!==e&&"index"===r)throw new Error("@Prop() index must not have an initial value defined.");if(!0===e)throw new Error(`@Prop() ${r} boolean must initialize to false.`);if(!o.private){const{constructor:t}=this;t.observedAttributes??=[],t.symbols||(t.symbols={});const{symbols:e}=t,o=m(r);e[r]||(t.observedAttributes.push(o),e[r]=n)}return this[c]=x(e),"array"===this[c]?(this[n]=e,new Proxy(e,{get:(t,e)=>e===M?this[p]:(console.log("errr???"),Reflect.get(this[n],e)),set:(t,e,o)=>{if(e===M)return this[p]=o,!0;const i=Reflect.set(t,e,o);return"length"===e&&this[n].length===o||S(this,r),this[n]=o,i}})):(this[n]=t?t(this.getAttribute(r)??e):this.getAttribute(r)??e,this[n])}}}function $(){return function(t,e){const o=e.name,r=o.replace(/^\$/,"");e.addInitializer((function(){let t=null;Reflect.defineProperty(this,o,{get(){return t??(t=this.shadowRoot?.querySelector(`[part~=${r}]`))}})}))}}Symbol("hasProxy");const M=Symbol("meta");var T=o(857);const A="top",P="top-start",k="top-end",C="right",O="right-start",L="right-end",R="bottom",j="bottom-start",z="bottom-end",N="left",F="left-start",I="left-end";var U=function(t,e,o,r,n,i){function s(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var a,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",p=!e&&t?r.static?t:t.prototype:null,h=e||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),f=!1,u=o.length-1;u>=0;u--){var d={};for(var w in r)d[w]="access"===w?{}:r[w];for(var w in r.access)d.access[w]=r.access[w];d.addInitializer=function(t){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(t||null))};var y=(0,o[u])("accessor"===l?{get:h.get,set:h.set}:h[c],d);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(a=s(y.get))&&(h.get=a),(a=s(y.set))&&(h.set=a),(a=s(y.init))&&n.unshift(a)}else(a=s(y))&&("field"===l?n.unshift(a):h[c]=a)}p&&Object.defineProperty(p,r.name,h),f=!0},q=function(t,e,o){for(var r=arguments.length>2,n=0;n<e.length;n++)o=r?e[n].call(t,o):e[n].call(t);return r?o:void 0};const D={[P]:(t,e,o)=>({arrowTop:e-5,arrowLeft:o.width>t?Math.floor(t/2)-5:Math.floor(o.width/2)-5,left:o.left,top:o.top-e-10}),[A]:(t,e,o)=>({arrowTop:e-5,arrowLeft:Math.floor(t/2)-5,left:o.left-Math.floor((t-o.width)/2),top:o.top-e-10}),[k]:(t,e,o)=>({arrowTop:e-5,arrowLeft:o.width>t?t-Math.floor(t/2)-5:t-Math.floor(o.width/2)-5,left:o.left-t+o.width,top:o.top-e-10}),[O]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top}),[C]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top+Math.floor(o.height/2)-Math.floor(e/2)}),[L]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:-5,left:o.left+o.width+10,top:o.top+o.height-e}),[j]:(t,e,o)=>({arrowTop:-5,arrowLeft:o.width>t?Math.floor(t/2)-5:Math.floor(o.width/2)-5,left:o.left,top:o.top+o.height+e-20}),[R]:(t,e,o)=>({arrowTop:-5,arrowLeft:Math.floor(t/2)-5,left:o.left-Math.floor((t-o.width)/2),top:o.top+o.height+e-20}),[z]:(t,e,o)=>({arrowTop:-5,arrowLeft:o.width>t?t-Math.floor(t/2)-5:t-Math.floor(o.width/2)-5,left:o.left-t+o.width,top:o.top+o.height+e-20}),[F]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top}),[N]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top+Math.floor(o.height/2)-Math.floor(e/2)}),[I]:(t,e,o)=>({arrowTop:Math.floor(e/2)-5,arrowLeft:t-5,left:o.left-t-10,top:o.top+o.height-e})};(()=>{let t,e,o,r,n,i,s,a,l,c=[g({selector:"pg-tooltip",style:T.A,template:'<div part="tooltip"> <span part="tooltipText"></span> <div part="tooltipArrow"></div> </div>'})],p=[],h=HTMLElement,f=[],u=[],d=[],w=[],y=[],m=[],b=[],v=[],S=[],x=[],M=[],A=[],P=[],k=[];(class extends h{static{e=this}static{const g="function"==typeof Symbol&&Symbol.metadata?Object.create(h[Symbol.metadata]??null):void 0;o=[E()],r=[E()],n=[E()],i=[E()],s=[$()],a=[$()],l=[$()],U(null,null,o,{kind:"field",name:"visible",static:!1,private:!1,access:{has:t=>"visible"in t,get:t=>t.visible,set:(t,e)=>{t.visible=e}},metadata:g},f,u),U(null,null,r,{kind:"field",name:"rect",static:!1,private:!1,access:{has:t=>"rect"in t,get:t=>t.rect,set:(t,e)=>{t.rect=e}},metadata:g},d,w),U(null,null,n,{kind:"field",name:"text",static:!1,private:!1,access:{has:t=>"text"in t,get:t=>t.text,set:(t,e)=>{t.text=e}},metadata:g},y,m),U(null,null,i,{kind:"field",name:"position",static:!1,private:!1,access:{has:t=>"position"in t,get:t=>t.position,set:(t,e)=>{t.position=e}},metadata:g},b,v),U(null,null,s,{kind:"field",name:"$tooltip",static:!1,private:!1,access:{has:t=>"$tooltip"in t,get:t=>t.$tooltip,set:(t,e)=>{t.$tooltip=e}},metadata:g},S,x),U(null,null,a,{kind:"field",name:"$tooltipText",static:!1,private:!1,access:{has:t=>"$tooltipText"in t,get:t=>t.$tooltipText,set:(t,e)=>{t.$tooltipText=e}},metadata:g},M,A),U(null,null,l,{kind:"field",name:"$tooltipArrow",static:!1,private:!1,access:{has:t=>"$tooltipArrow"in t,get:t=>t.$tooltipArrow,set:(t,e)=>{t.$tooltipArrow=e}},metadata:g},P,k),U(null,t={value:e},c,{kind:"class",name:e.name,metadata:g},null,p),e=t.value,g&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:g}),q(e,p)}visible=q(this,f,!1);rect=(q(this,u),q(this,d,null));text=(q(this,w),q(this,y,""));position=(q(this,m),q(this,b,R));$tooltip=(q(this,v),q(this,S,void 0));$tooltipText=(q(this,x),q(this,M,void 0));$tooltipArrow=(q(this,A),q(this,P,void 0));render(t){this.$tooltipText.textContent=this.text,this.style.position="absolute",t.visible&&(this.style.display=this.visible?"block":"none");const{width:e,height:o}=this.$tooltipText.getBoundingClientRect();let r=this.position;if(r in D||(r=R),this.rect){const{arrowLeft:t,arrowTop:n,left:i,top:s}=D[r](e,o,this.rect);this.style.left=`${i+window.scrollX}px`,this.style.top=`${s+window.scrollY}px`,this.$tooltipArrow.style.left=`${t}px`,this.$tooltipArrow.style.top=`${n}px`}}constructor(){super(...arguments),q(this,k)}})})()})();