@verdocs/web-sdk 1.0.18 → 1.0.19
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.
- package/dist/cjs/{Content-58669c78.js → Content-1d98b2f3.js} +225 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-88cc6900.js +6 -0
- package/dist/cjs/document-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dom-95afd968.js +75 -0
- package/dist/cjs/dropdown-menu.cjs.entry.js +191 -4
- package/dist/cjs/index-0b9c3c7d.js +3064 -0
- package/dist/cjs/loader.cjs.js +19 -3
- package/dist/cjs/org-popup.cjs.entry.js +1 -1
- package/dist/cjs/pdf-viewer.cjs.entry.js +87 -6
- package/dist/cjs/search-box.cjs.entry.js +19 -7
- package/dist/cjs/search-embed.cjs.entry.js +1 -1
- package/dist/cjs/search-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/search-recent.cjs.entry.js +2 -2
- package/dist/cjs/search-saved.cjs.entry.js +2 -2
- package/dist/cjs/search-starred.cjs.entry.js +1 -1
- package/dist/cjs/search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/shadow-css-71d0f821.js +391 -0
- package/dist/cjs/tags-indicator.cjs.entry.js +1 -1
- package/dist/cjs/template-card.cjs.entry.js +1 -1
- package/dist/cjs/toggle-icon-buttons.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +113 -5
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/elements/search-box/search-box.css +4 -0
- package/dist/collection/components/elements/search-box/search-box.js +73 -14
- package/dist/collection/components/elements/search-box/search-box.stories.js +3 -1
- package/dist/custom-elements/index.js +525 -17
- package/dist/docs.json +40 -5
- package/dist/esm/{Content-89af44fd.js → Content-0d614ff3.js} +225 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-c64026cd.js +4 -0
- package/dist/esm/document-status-indicator.entry.js +1 -1
- package/dist/esm/dom-a712b575.js +73 -0
- package/dist/esm/dropdown-menu.entry.js +191 -4
- package/dist/esm/index-81ec66c1.js +3027 -0
- package/dist/esm/loader.js +19 -3
- package/dist/esm/org-popup.entry.js +1 -1
- package/dist/esm/pdf-viewer.entry.js +87 -6
- package/dist/esm/search-box.entry.js +19 -7
- package/dist/esm/search-embed.entry.js +1 -1
- package/dist/esm/search-quick-functions.entry.js +1 -1
- package/dist/esm/search-recent.entry.js +2 -2
- package/dist/esm/search-saved.entry.js +2 -2
- package/dist/esm/search-starred.entry.js +1 -1
- package/dist/esm/search-tabs.entry.js +1 -1
- package/dist/esm/shadow-css-1e16431b.js +389 -0
- package/dist/esm/tags-indicator.entry.js +1 -1
- package/dist/esm/template-card.entry.js +1 -1
- package/dist/esm/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +113 -5
- package/dist/esm-es5/Content-0d614ff3.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/css-shim-c64026cd.js +1 -0
- package/dist/esm-es5/document-status-indicator.entry.js +1 -1
- package/dist/esm-es5/dom-a712b575.js +21 -0
- package/dist/esm-es5/dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/index-81ec66c1.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/org-popup.entry.js +1 -1
- package/dist/esm-es5/pdf-viewer.entry.js +2 -2
- package/dist/esm-es5/search-box.entry.js +1 -1
- package/dist/esm-es5/search-embed.entry.js +1 -1
- package/dist/esm-es5/search-quick-functions.entry.js +1 -1
- package/dist/esm-es5/search-recent.entry.js +1 -1
- package/dist/esm-es5/search-saved.entry.js +1 -1
- package/dist/esm-es5/search-starred.entry.js +1 -1
- package/dist/esm-es5/search-tabs.entry.js +1 -1
- package/dist/esm-es5/shadow-css-1e16431b.js +12 -0
- package/dist/esm-es5/tags-indicator.entry.js +1 -1
- package/dist/esm-es5/template-card.entry.js +1 -1
- package/dist/esm-es5/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/elements/search-box/search-box.d.ts +20 -5
- package/dist/types/components/elements/search-box/search-box.stories.d.ts +3 -1
- package/dist/types/components.d.ts +23 -1
- package/dist/verdocs-web-sdk/Content-0d614ff3.js +2175 -0
- package/dist/verdocs-web-sdk/Content-42ddf5ec.system.js +1 -0
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-0e9af51a.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-c64026cd.js +4 -0
- package/dist/verdocs-web-sdk/document-status-indicator.entry.js +55 -0
- package/dist/verdocs-web-sdk/document-status-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/dom-a712b575.js +73 -0
- package/dist/verdocs-web-sdk/dom-f6327147.system.js +21 -0
- package/dist/verdocs-web-sdk/dropdown-menu.entry.js +1990 -0
- package/dist/verdocs-web-sdk/dropdown-menu.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/index-46cb292b.system.js +1 -0
- package/dist/verdocs-web-sdk/index-81ec66c1.js +3027 -0
- package/dist/verdocs-web-sdk/index.esm.js +1 -0
- package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
- package/dist/verdocs-web-sdk/org-popup.entry.js +21 -0
- package/dist/verdocs-web-sdk/org-popup.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/pdf-viewer.entry.js +13754 -0
- package/dist/verdocs-web-sdk/pdf-viewer.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/search-box.entry.js +46 -0
- package/dist/verdocs-web-sdk/search-box.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-embed.entry.js +15 -0
- package/dist/verdocs-web-sdk/search-embed.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-quick-functions.entry.js +27 -0
- package/dist/verdocs-web-sdk/search-quick-functions.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-recent.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-recent.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-saved.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-saved.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-starred.entry.js +42 -0
- package/dist/verdocs-web-sdk/search-starred.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-tabs.entry.js +16 -0
- package/dist/verdocs-web-sdk/search-tabs.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/shadow-css-1e16431b.js +389 -0
- package/dist/verdocs-web-sdk/shadow-css-ef154fe4.system.js +13 -0
- package/dist/verdocs-web-sdk/tags-indicator.entry.js +16 -0
- package/dist/verdocs-web-sdk/tags-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/template-card.entry.js +24 -0
- package/dist/verdocs-web-sdk/template-card.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.entry.js +28 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.css +12 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +125 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
- package/package.json +4 -4
- package/dist/cjs/index-e2fb537e.js +0 -1631
- package/dist/esm/index-183a8995.js +0 -1602
- package/dist/esm-es5/Content-89af44fd.js +0 -1
- package/dist/esm-es5/index-183a8995.js +0 -1
- package/dist/verdocs-web-sdk/p-12d12411.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1d1bc463.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29cb7cbc.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2cec77cf.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-32a5788a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-33111d7b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-349248f0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-36082c90.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-365a4de4.js +0 -1
- package/dist/verdocs-web-sdk/p-3a032151.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3cc8281f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-440d8a73.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4d4e090f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-55660c24.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-66af7432.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6b569aa1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6e033b90.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6ee008ff.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-755c0154.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d10b067.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-89be87e5.js +0 -1
- package/dist/verdocs-web-sdk/p-92e7863c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-99ebfee7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9af63b8a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9da35744.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9e71faa0.system.js +0 -1
- package/dist/verdocs-web-sdk/p-b3d5601a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bb99a203.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cbc784a6.system.js +0 -1
- package/dist/verdocs-web-sdk/p-d73f486f.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-dea09611.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e34538bd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e59eda0c.system.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-
|
|
1
|
+
import{r as registerInstance,h}from"./index-81ec66c1.js";var CancelledIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>';var DeclinedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>';var FinishedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>';var PendingIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><g><rect fill="none" height="24" width="24"/></g><g><g><path d="M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10s10-4.48,10-10C22,6.48,17.52,2,12,2z M12,20c-4.42,0-8-3.58-8-8 c0-4.42,3.58-8,8-8s8,3.58,8,8C20,16.42,16.42,20,12,20z"/><circle cx="7" cy="12" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="17" cy="12" r="1.5"/></g></g></svg>';var documentStatusIndicatorCss="document-status-indicator{font-family:sans-serif;font-family:var(--verdocs-font)}document-status-indicator .container{width:195px;height:72px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#33364b;font-family:sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;font-size:16px;color:#ffffff}document-status-indicator .icon{margin-right:15px}document-status-indicator svg{height:24px;width:24px}";var DocumentStatusIndicator=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;var n;switch(this.status){case"finished":e=FinishedIcon;n="Complete";break;case"complete":e=FinishedIcon;n="Complete";break;case"in-progress":e=PendingIcon;n="In Progress";break;case"pending":e=PendingIcon;n="Pending";break;case"cancelled":e=CancelledIcon;n="Cancelled";break;case"declined":e=DeclinedIcon;n="Declined";break}return h("div",{class:"container"},h("span",{class:"icon",innerHTML:e}),h("span",{class:"content"},n))};return e}();DocumentStatusIndicator.style=documentStatusIndicatorCss;export{DocumentStatusIndicator as document_status_indicator};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e);return!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){r=a.import;if(r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}else if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,e,n){t.a.set(e,n);t.g.set(n.constructorFunction,n)}function l(t,e){t.b=!0;t.c.push(e)}function s(t,e){t.b=!0;t.f.push(e)}function u(t,e){t.b&&i(e,(function(e){return f(t,e)}))}function f(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function p(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):m(t,o)}}function h(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function d(t,e,n){n=void 0===n?{}:n;var o=n.u||new Set,r=n.i||function(e){return m(t,e)},a=[];i(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0);n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n);d(t,n,{u:i,i:r})}}))}else a.push(e)}),o);if(t.b)for(e=0;e<a.length;e++)f(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function m(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if(o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)if(o=t.a.get(e.localName)){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}e.__CE_state=1;e.__CE_definition=o;if(o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)};a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)};a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)};function y(t){var e=document;this.c=t;this.a=e;this.b=void 0;d(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}y.prototype.f=function(t){var e=this.a.readyState;"interactive"!==e&&"complete"!==e||b(this);for(e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.c,n[o])};function v(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(e){t.b=e;t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function w(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new y(t)}w.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback");var l=i("disconnectedCallback");var s=i("adoptedCallback");var u=i("attributeChangedCallback");var f=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:u,observedAttributes:f,constructionStack:[]};c(this.a,t,n);this.g.push(n);this.b||(this.b=!0,this.f((function(){return E(o)})))};w.prototype.i=function(t){d(this.a,t)};function E(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);d(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}});for(i=0;i<n.length;i++)m(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName;r=o.get(r.localName);for(var a=0;a<r.length;a++)m(t.a,r[a]);(i=t.j.get(i))&&g(i)}}}w.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};w.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);if(n)return n.c;n=new v;this.j.set(t,n);this.a.a.get(t)&&!this.g.some((function(e){return e.localName===t}))&&g(n);return n.c};w.prototype.s=function(t){b(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.l;w.prototype.upgrade=w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.m;w.prototype.polyfillWrapFlushCallback=w.prototype.s;var _=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,S=window.Document.prototype.prepend,T=window.Document.prototype.append,D=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,A=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,F=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,q=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,V=window.Element.prototype.append,X=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var et=new function(){};function nt(){var t=st;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=_.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,f(t,o),o;n=o.length-1;var i=o[n];if(i===et)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");o[n]=et;Object.setPrototypeOf(i,e.prototype);f(t,i);return i}e.prototype=Q.prototype;Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e});return e}()}function ot(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}void 0!==o.h&&(e.prepend=i(o.h));void 0!==o.append&&(e.append=i(o.append))}function it(){var t=st;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}e=_.call(this,e);f(t,e);return e}));r(Document.prototype,"importNode",(function(e,n){e=N.call(this,e,!!n);this.__CE_hasRegistry?d(t,e):u(t,e);return e}));r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}e=C.call(this,e,n);f(t,e);return e}));ot(t,Document.prototype,{h:S,append:T})}function rt(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}o.set.call(this,t);if(i)for(t=0;t<i.length;t++)h(e,i[t])}}})}var e=st;r(Node.prototype,"insertBefore",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=j.call(this,t,o);if(n(this))for(o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);o=j.call(this,t,o);i&&h(e,t);n(this)&&p(e,t);return o}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=O.call(this,t);if(n(this))for(var i=0;i<o.length;i++)p(e,o[i]);return t}o=n(t);i=O.call(this,t);o&&h(e,t);n(this)&&p(e,t);return i}));r(Node.prototype,"cloneNode",(function(t){t=A.call(this,!!t);this.ownerDocument.__CE_hasRegistry?d(e,t):u(e,t);return t}));r(Node.prototype,"removeChild",(function(t){var o=n(t),i=L.call(this,t);o&&h(e,t);return i}));r(Node.prototype,"replaceChild",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=M.call(this,t,o);if(n(this))for(h(e,o),o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);var r=M.call(this,t,o),a=n(this);a&&h(e,o);i&&h(e,t);a&&p(e,t);return r}));x&&x.get?t(Node.prototype,x):l(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&O.call(this,document.createTextNode(t))}})}))}function at(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}var o=Element.prototype;void 0!==X&&(o.before=e(X));void 0!==X&&(o.after=e(G));void 0!==J&&r(o,"replaceWith",(function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];c instanceof Element&&n(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}a=n(this);J.apply(this,o);for(o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)r=i[o],r instanceof Element&&p(t,r)}));void 0!==K&&r(o,"remove",(function(){var e=n(this);K.call(this);e&&h(t,this)}))}function ct(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;n(this)&&(r=[],i(this,(function(t){t!==o&&r.push(t)})));e.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var l=r[c];1===l.__CE_state&&a.disconnectedCallback(l)}this.ownerDocument.__CE_hasRegistry?d(a,this):u(a,this);return t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,o){var i=n(o);t=e.call(this,t,o);i&&h(a,o);n(t)&&p(a,o);return t}))}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)d(a,n[e])}r(t,"insertAdjacentHTML",(function(t,o){t=t.toLowerCase();if("beforebegin"===t){var i=this.previousSibling;e.call(this,t,o);n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else if("afterend"===t)i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var a=st;H&&r(Element.prototype,"attachShadow",(function(t){t=H.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}));R&&R.get?t(Element.prototype,R):Y&&Y.get?t(HTMLElement.prototype,Y):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return A.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=C.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)L.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)O.call(n,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return F.call(this,t,e);var n=P.call(this,t);F.call(this,t,e);e=P.call(this,t);a.attributeChangedCallback(this,t,n,e,null)}));r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return U.call(this,t,e,n);var o=z.call(this,t,e);U.call(this,t,e,n);n=z.call(this,t,e);a.attributeChangedCallback(this,e,o,n,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return I.call(this,t);var e=P.call(this,t);I.call(this,t);null!==e&&a.attributeChangedCallback(this,t,e,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=z.call(this,t,e);W.call(this,t,e);var o=z.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}));Z?e(HTMLElement.prototype,Z):q?e(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?o(HTMLElement.prototype,tt):B?o(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");ot(a,Element.prototype,{h:$,append:V});at(a)}var lt=window.customElements;if(!lt||lt.forcePolyfill||"function"!=typeof lt.define||"function"!=typeof lt.get){var st=new a;nt();it();ot(st,DocumentFragment.prototype,{h:D,append:k});rt();ct();document.__CE_hasRegistry=!0;var ut=new w(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ut})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail);return n},window.CustomEvent.prototype=window.Event.prototype);(function(t,e,n){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(e,n);return this.path})})(Event.prototype,document,window);
|
|
2
|
+
/*!
|
|
3
|
+
Element.closest and Element.matches
|
|
4
|
+
https://github.com/jonathantneal/closest
|
|
5
|
+
Creative Commons Zero v1.0 Universal
|
|
6
|
+
*/(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]});"function"!==typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})})(window.Element.prototype);
|
|
7
|
+
/*!
|
|
8
|
+
Element.getRootNode()
|
|
9
|
+
*/(function(t){function e(t){t=n(t);return t&&11===t.nodeType?e(t.host):t}function n(t){return t&&t.parentNode?n(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?e(this):n(this)})})(Element.prototype);
|
|
10
|
+
/*!
|
|
11
|
+
Element.isConnected()
|
|
12
|
+
*/(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
|
|
13
|
+
/*!
|
|
14
|
+
Element.remove()
|
|
15
|
+
*/(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
16
|
+
/*!
|
|
17
|
+
Element.classList
|
|
18
|
+
*/!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}})}(Element.prototype);
|
|
19
|
+
/*!
|
|
20
|
+
DOMTokenList
|
|
21
|
+
*/(function(t){try{document.body.classList.add()}catch(o){var e=t.add,n=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)e.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}}})(DOMTokenList.prototype);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};import{r as registerInstance,c as createEvent,h}from"./index-183a8995.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var o=t.elements[e];if(!isHTMLElement(o)||!getNodeName(o)){return}Object.assign(o.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){o.removeAttribute(e)}else{o.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=a.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e,t){var r=e.getBoundingClientRect();var n=1;var o=1;return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var o=getParentNode(e);while(isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0){var a=getComputedStyle(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none"){return o}else{o=o.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var max=Math.max;var min=Math.min;var round=Math.round;function within(e,t,r){return max(e,min(t,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,o=e.options;var a=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var p=l?"height":"width";if(!a||!i){return}var c=toPaddingObject(o.padding,r);var d=getLayoutRect(a);var u=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[p]+r.rects.reference[f]-i[f]-r.rects.popper[p];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(a);var w=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var y=c[u];var O=w-d[p]-c[v];var x=w/2-d[p]/2+b;var P=within(y,x,O);var S=f;r.modifiersData[n]=(t={},t[S]=P,t.centerOffset=P-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o==null){return}if(typeof o==="string"){o=t.elements.popper.querySelector(o);if(!o){return}}if(!contains(t.elements.popper,o)){return}t.elements.arrow=o}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var o=n.devicePixelRatio||1;return{x:round(round(t*o)/o)||0,y:round(round(r*o)/o)||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets;var c=p===true?roundOffsetsByDPR(i):typeof p==="function"?p(i):i,d=c.x,u=d===void 0?0:d,v=c.y,m=v===void 0?0:v;var g=i.hasOwnProperty("x");var h=i.hasOwnProperty("y");var w=left;var b=top;var y=window;if(l){var O=getOffsetParent(r);var x="clientHeight";var P="clientWidth";if(O===getWindow(r)){O=getDocumentElement(r);if(getComputedStyle(O).position!=="static"&&s==="absolute"){x="scrollHeight";P="scrollWidth"}}O=O;if(o===top||(o===left||o===right)&&a===end){b=bottom;m-=O[x]-n.height;m*=f?1:-1}if(o===left||(o===top||o===bottom)&&a===end){w=right;u-=O[P]-n.width;u*=f?1:-1}}var S=Object.assign({position:s},l&&unsetSides);if(f){var E;return Object.assign({},S,(E={},E[b]=h?"0":"",E[w]=g?"0":"",E.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",E))}return Object.assign({},S,(t={},t[b]=h?m+"px":"",t[w]=g?u+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,o=n===void 0?true:n,a=r.adaptive,i=a===void 0?true:a,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var o=n.scroll,a=o===void 0?true:o,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(a){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var i=0;var s=0;if(n){o=n.width;a=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:o,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var o=(t=e.ownerDocument)==null?void 0:t.body;var a=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-a}return{width:a,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var o=n===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(n);var i=o?[a].concat(a.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return o?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isHTMLElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var o=[].concat(n,[r]);var a=o[0];var i=o.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,a));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var o=n?getBasePlacement(n):null;var a=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(o){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=o?getMainAxisFromPlacement(o):null;if(l!=null){var p=l==="y"?"height":"width";switch(a){case start:f[l]=f[l]-(t[p]/2-r[p]/2);break;case end:f[l]=f[l]+(t[p]/2-r[p]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.boundary,i=a===void 0?clippingParents:a,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,p=l===void 0?popper:l,c=r.altBoundary,d=c===void 0?false:c,u=r.padding,v=u===void 0?0:u;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=p===popper?reference:popper;var h=e.rects.popper;var w=e.elements[d?g:p];var b=getClippingRect(isElement(w)?w:w.contextElement||getDocumentElement(e.elements.popper),i,f);var y=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:y,element:h,strategy:"absolute",placement:o});var x=rectToClientRect(Object.assign({},h,O));var P=p===popper?x:y;var S={top:b.top-P.top+m.top,bottom:P.bottom-b.bottom+m.bottom,left:b.left-P.left+m.left,right:P.right-b.right+m.right};var E=e.modifiersData.offset;if(p===popper&&E){var M=E[o];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var p=getVariation(n);var c=p?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===p})):basePlacements;var d=c.filter((function(e){return l.indexOf(e)>=0}));if(d.length===0){d=c}var u=d.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,l=r.padding,p=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.flipVariations,v=u===void 0?true:u,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var w=h===g;var b=f||(w||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var y=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:p,rootBoundary:c,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var P=new Map;var S=true;var E=y[0];for(var M=0;M<y.length;M++){var D=y[M];var T=getBasePlacement(D);var B=getVariation(D)===start;var C=[top,bottom].indexOf(T)>=0;var R=C?"width":"height";var L=detectOverflow(t,{placement:D,boundary:p,rootBoundary:c,altBoundary:d,padding:l});var j=C?B?right:left:B?bottom:top;if(O[R]>x[R]){j=getOppositePlacement(j)}var A=getOppositePlacement(j);var W=[];if(a){W.push(L[T]<=0)}if(s){W.push(L[j]<=0,L[A]<=0)}if(W.every((function(e){return e}))){E=D;S=false;break}P.set(D,W)}if(S){var k=v?3:1;var N=function e(t){var r=y.find((function(e){var r=P.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var H=k;H>0;H--){var _=N(H);if(_==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var o=t.rects.popper;var a=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var l=getSideOffsets(s,o,a);var p=isAnySideFullyClipped(f);var c=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:c};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":c})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var o=[left,top].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];i=i||0;s=(s||0)*o;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var o=r.offset,a=o===void 0?[0,0]:o;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,a);return e}),{});var s=i[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,l=r.rootBoundary,p=r.altBoundary,c=r.padding,d=r.tether,u=d===void 0?true:d,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:c,altBoundary:p});var h=getBasePlacement(t.placement);var w=getVariation(t.placement);var b=!w;var y=getMainAxisFromPlacement(h);var O=getAltAxis(y);var x=t.modifiersData.popperOffsets;var P=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M={x:0,y:0};if(!x){return}if(a||s){var D=y==="y"?top:left;var T=y==="y"?bottom:right;var B=y==="y"?"height":"width";var C=x[y];var R=x[y]+g[D];var L=x[y]-g[T];var j=u?-S[B]/2:0;var A=w===start?P[B]:S[B];var W=w===start?-S[B]:-P[B];var k=t.elements.arrow;var N=u&&k?getLayoutRect(k):{width:0,height:0};var H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var _=H[D];var V=H[T];var $=within(0,P[B],N[B]);var F=b?P[B]/2-j-$-_-E:A-$-_-E;var I=b?-P[B]/2+j+$+V+E:W+$+V+E;var q=t.elements.arrow&&getOffsetParent(t.elements.arrow);var X=q?y==="y"?q.clientTop||0:q.clientLeft||0:0;var U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0;var Y=x[y]+F-U-X;var z=x[y]+I-U;if(a){var G=within(u?min(R,Y):R,C,u?max(L,z):L);x[y]=G;M[y]=G-C}if(s){var J=y==="x"?top:left;var K=y==="x"?bottom:right;var Q=x[O];var Z=Q+g[J];var ee=Q-g[K];var te=within(u?min(Z,Y):Z,Q,u?max(ee,z):ee);x[O]=te;M[O]=te-Q}}t.modifiersData[n]=M}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=t.width/e.offsetWidth||1;var n=t.height/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);isHTMLElement(t)&&isElementScaled(t);var o=getDocumentElement(t);var a=getBoundingClientRect(e);var i={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(o)){i=getNodeScroll(t)}if(isHTMLElement(t)){s=getBoundingClientRect(t);s.x+=t.clientLeft;s.y+=t.clientTop}else if(o){s.x=getWindowScrollBarX(o)}}return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function o(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){o(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){o(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?DEFAULT_OPTIONS:o;return function e(t,r,o){if(o===void 0){o=a}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:i,setOptions:function e(o){var s=typeof o==="function"?o(i.options):o;c();i.options=Object.assign({},a,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));p();return l.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<i.orderedModifiers.length;o++){if(i.reset===true){i.reset=false;o=-1;continue}var a=i.orderedModifiers[o],s=a.fn,p=a.options,c=p===void 0?{}:p,d=a.name;if(typeof s==="function"){i=s({state:i,options:c,name:d,instance:l})||i}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(i)}))})),destroy:function e(){c();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(o).then((function(e){if(!f&&o.onFirstUpdate){o.onFirstUpdate(e)}}));function p(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,o=e.effect;if(typeof o==="function"){var a=o({state:i,name:t,instance:l,options:n});var f=function e(){};s.push(a||f)}}))}function c(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var SortDown='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>\n';var dropdownMenuCss="dropdown-menu{font-family:sans-serif;font-family:var(--verdocs-font)}dropdown-menu .arrow{width:32px;height:26px;background:#fff;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;-ms-flex-pack:center;justify-content:center}dropdown-menu .arrow svg{fill:#50be80;-webkit-transition:0.3s;transition:0.3s}dropdown-menu .items{width:200px;display:none;border-radius:5px;background:#33364b;border:1px solid #654dcb}dropdown-menu .items[data-show]{display:block}dropdown-menu .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}dropdown-menu .option:hover{cursor:pointer;background:#50be80}dropdown-menu .option[disabled]{color:#aaa}dropdown-menu .option[disabled]:hover{color:#aaa;cursor:inherit;background:transparent}dropdown-menu .open .items{display:block}dropdown-menu .open .arrow{background:#4c56cb;border:1px solid #707ae5}dropdown-menu .open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}";var DropdownMenu=function(){function e(e){registerInstance(this,e);this.optionSelected=createEvent(this,"optionSelected",7);this.options=[]}e.prototype.componentWillLoad=function(){this.isOpen=!!this.open};e.prototype.componentDidLoad=function(){this.popper=createPopper(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]})};e.prototype.handleSelectOption=function(e){this.isOpen=false;this.optionSelected.emit(e)};e.prototype.showDropdown=function(){var e,t;this.isOpen=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:true}])})}));(t=this.popper)===null||t===void 0?void 0:t.update()};e.prototype.hideDropdown=function(){var e;this.isOpen=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:false}])})}))};e.prototype.toggleDropdown=function(){if(this.isOpen){this.hideDropdown()}else{this.showDropdown()}};e.prototype.render=function(){var e=this;var t;return h("div",{class:{open:!!this.isOpen}},h("button",{class:"arrow",innerHTML:SortDown,"aria-label":"Open Menu",onClick:function(){return e.toggleDropdown()},onBlur:function(){return e.hideDropdown()},ref:function(t){return e.dropdownButton=t}}),h("div",{class:"items","aria-hidden":!this.open,ref:function(t){return e.dropdownMenu=t}},(t=this.options)===null||t===void 0?void 0:t.map((function(t){return h("button",{onClick:function(){return e.handleSelectOption(t)},class:"option",disabled:t.disabled},t.label)}))))};return e}();DropdownMenu.style=dropdownMenuCss;export{DropdownMenu as dropdown_menu};
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};import{r as registerInstance,e as createEvent,h}from"./index-81ec66c1.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var o=t.elements[e];if(!isHTMLElement(o)||!getNodeName(o)){return}Object.assign(o.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){o.removeAttribute(e)}else{o.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=a.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e,t){if(t===void 0){t=false}var r=e.getBoundingClientRect();var n=1;var o=1;return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var o=getParentNode(e);while(isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0){var a=getComputedStyle(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none"){return o}else{o=o.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var max=Math.max;var min=Math.min;var round=Math.round;function within(e,t,r){return max(e,min(t,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,o=e.options;var a=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var p=[left,right].indexOf(s)>=0;var l=p?"height":"width";if(!a||!i){return}var c=toPaddingObject(o.padding,r);var d=getLayoutRect(a);var u=f==="y"?top:left;var m=f==="y"?bottom:right;var v=r.rects.reference[l]+r.rects.reference[f]-i[f]-r.rects.popper[l];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(a);var b=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var w=v/2-g/2;var y=c[u];var O=b-d[l]-c[m];var x=b/2-d[l]/2+w;var E=within(y,x,O);var P=f;r.modifiersData[n]=(t={},t[P]=E,t.centerOffset=E-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o==null){return}if(typeof o==="string"){o=t.elements.popper.querySelector(o);if(!o){return}}if("development"!=="production"){if(!isHTMLElement(o)){console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))}}if(!contains(t.elements.popper,o)){if("development"!=="production"){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "))}return}t.elements.arrow=o}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var o=n.devicePixelRatio||1;return{x:round(round(t*o)/o)||0,y:round(round(r*o)/o)||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,p=e.adaptive,l=e.roundOffsets;var c=l===true?roundOffsetsByDPR(i):typeof l==="function"?l(i):i,d=c.x,u=d===void 0?0:d,m=c.y,v=m===void 0?0:m;var g=i.hasOwnProperty("x");var h=i.hasOwnProperty("y");var b=left;var w=top;var y=window;if(p){var O=getOffsetParent(r);var x="clientHeight";var E="clientWidth";if(O===getWindow(r)){O=getDocumentElement(r);if(getComputedStyle(O).position!=="static"&&s==="absolute"){x="scrollHeight";E="scrollWidth"}}O=O;if(o===top||(o===left||o===right)&&a===end){w=bottom;v-=O[x]-n.height;v*=f?1:-1}if(o===left||(o===top||o===bottom)&&a===end){b=right;u-=O[E]-n.width;u*=f?1:-1}}var P=Object.assign({position:s},p&&unsetSides);if(f){var S;return Object.assign({},P,(S={},S[w]=h?"0":"",S[b]=g?"0":"",S.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+v+"px)":"translate3d("+u+"px, "+v+"px, 0)",S))}return Object.assign({},P,(t={},t[w]=h?v+"px":"",t[b]=g?u+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,o=n===void 0?true:n,a=r.adaptive,i=a===void 0?true:a,s=r.roundOffsets,f=s===void 0?true:s;if("development"!=="production"){var p=getComputedStyle(t.elements.popper).transitionProperty||"";if(i&&["transform","top","right","bottom","left"].some((function(e){return p.indexOf(e)>=0}))){console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}}var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var o=n.scroll,a=o===void 0?true:o,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var p=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a){p.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(a){p.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var i=0;var s=0;if(n){o=n.width;a=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:o,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var o=(t=e.ownerDocument)==null?void 0:t.body;var a=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-a}return{width:a,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var o=n===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(n);var i=o?[a].concat(a.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return o?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isHTMLElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var o=[].concat(n,[r]);var a=o[0];var i=o.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,a));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var o=n?getBasePlacement(n):null;var a=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(o){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var p=o?getMainAxisFromPlacement(o):null;if(p!=null){var l=p==="y"?"height":"width";switch(a){case start:f[p]=f[p]-(t[l]/2-r[l]/2);break;case end:f[p]=f[p]+(t[l]/2-r[l]/2);break;default:}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.boundary,i=a===void 0?clippingParents:a,s=r.rootBoundary,f=s===void 0?viewport:s,p=r.elementContext,l=p===void 0?popper:p,c=r.altBoundary,d=c===void 0?false:c,u=r.padding,m=u===void 0?0:u;var v=mergePaddingObject(typeof m!=="number"?m:expandToHashMap(m,basePlacements));var g=l===popper?reference:popper;var h=e.rects.popper;var b=e.elements[d?g:l];var w=getClippingRect(isElement(b)?b:b.contextElement||getDocumentElement(e.elements.popper),i,f);var y=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:y,element:h,strategy:"absolute",placement:o});var x=rectToClientRect(Object.assign({},h,O));var E=l===popper?x:y;var P={top:w.top-E.top+v.top,bottom:E.bottom-w.bottom+v.bottom,left:w.left-E.left+v.left,right:E.right-w.right+v.right};var S=e.modifiersData.offset;if(l===popper&&S){var R=S[o];Object.keys(P).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";P[e]+=R[r]*t}))}return P}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,p=f===void 0?placements:f;var l=getVariation(n);var c=l?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===l})):basePlacements;var d=c.filter((function(e){return p.indexOf(e)>=0}));if(d.length===0){d=c;if("development"!=="production"){console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" "))}}var u=d.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,p=r.padding,l=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.flipVariations,m=u===void 0?true:u,v=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var b=h===g;var w=f||(b||!m?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var y=[g].concat(w).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:l,rootBoundary:c,padding:p,flipVariations:m,allowedAutoPlacements:v}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var E=new Map;var P=true;var S=y[0];for(var R=0;R<y.length;R++){var M=y[R];var D=getBasePlacement(M);var L=getVariation(M)===start;var T=[top,bottom].indexOf(D)>=0;var I=T?"width":"height";var _=detectOverflow(t,{placement:M,boundary:l,rootBoundary:c,altBoundary:d,padding:p});var A=T?L?right:left:L?bottom:top;if(O[I]>x[I]){A=getOppositePlacement(A)}var N=getOppositePlacement(A);var C=[];if(a){C.push(_[D]<=0)}if(s){C.push(_[A]<=0,_[N]<=0)}if(C.every((function(e){return e}))){S=M;P=false;break}E.set(M,C)}if(P){var B=m?3:1;var j=function e(t){var r=y.find((function(e){var r=E.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){S=r;return"break"}};for(var k=B;k>0;k--){var W=j(k);if(W==="break")break}}if(t.placement!==S){t.modifiersData[n]._skip=true;t.placement=S;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var o=t.rects.popper;var a=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var p=getSideOffsets(s,o,a);var l=isAnySideFullyClipped(f);var c=isAnySideFullyClipped(p);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:l,hasPopperEscaped:c};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":c})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var o=[left,top].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];i=i||0;s=(s||0)*o;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var o=r.offset,a=o===void 0?[0,0]:o;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,a);return e}),{});var s=i[t.placement],f=s.x,p=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=p}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,p=r.rootBoundary,l=r.altBoundary,c=r.padding,d=r.tether,u=d===void 0?true:d,m=r.tetherOffset,v=m===void 0?0:m;var g=detectOverflow(t,{boundary:f,rootBoundary:p,padding:c,altBoundary:l});var h=getBasePlacement(t.placement);var b=getVariation(t.placement);var w=!b;var y=getMainAxisFromPlacement(h);var O=getAltAxis(y);var x=t.modifiersData.popperOffsets;var E=t.rects.reference;var P=t.rects.popper;var S=typeof v==="function"?v(Object.assign({},t.rects,{placement:t.placement})):v;var R={x:0,y:0};if(!x){return}if(a||s){var M=y==="y"?top:left;var D=y==="y"?bottom:right;var L=y==="y"?"height":"width";var T=x[y];var I=x[y]+g[M];var _=x[y]-g[D];var A=u?-P[L]/2:0;var N=b===start?E[L]:P[L];var C=b===start?-P[L]:-E[L];var B=t.elements.arrow;var j=u&&B?getLayoutRect(B):{width:0,height:0};var k=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var W=k[M];var H=k[D];var V=within(0,E[L],j[L]);var F=w?E[L]/2-A-V-W-S:N-V-W-S;var $=w?-E[L]/2+A+V+H+S:C+V+H+S;var q=t.elements.arrow&&getOffsetParent(t.elements.arrow);var G=q?y==="y"?q.clientTop||0:q.clientLeft||0:0;var U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0;var X=x[y]+F-U-G;var Y=x[y]+$-U;if(a){var z=within(u?min(I,X):I,T,u?max(_,Y):_);x[y]=z;R[y]=z-T}if(s){var J=y==="x"?top:left;var K=y==="x"?bottom:right;var Q=x[O];var Z=Q+g[J];var ee=Q-g[K];var te=within(u?min(Z,X):Z,Q,u?max(ee,Y):ee);x[O]=te;R[O]=te-Q}}t.modifiersData[n]=R}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=t.width/e.offsetWidth||1;var n=t.height/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);var o=isHTMLElement(t)&&isElementScaled(t);var a=getDocumentElement(t);var i=getBoundingClientRect(e,o);var s={scrollLeft:0,scrollTop:0};var f={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(a)){s=getNodeScroll(t)}if(isHTMLElement(t)){f=getBoundingClientRect(t,true);f.x+=t.clientLeft;f.y+=t.clientTop}else if(a){f.x=getWindowScrollBarX(a)}}return{x:i.left+s.scrollLeft-f.x,y:i.top+s.scrollTop-f.y,width:i.width,height:i.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function o(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){o(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){o(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function format(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return[].concat(r).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var INVALID_MODIFIER_ERROR='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';var MISSING_DEPENDENCY_ERROR='Popper: modifier "%s" requires "%s", but "%s" modifier is not available';var VALID_PROPERTIES=["name","enabled","phase","fn","effect","requires","options"];function validateModifiers(e){e.forEach((function(t){[].concat(Object.keys(t),VALID_PROPERTIES).filter((function(e,t,r){return r.indexOf(e)===t})).forEach((function(r){switch(r){case"name":if(typeof t.name!=="string"){console.error(format(INVALID_MODIFIER_ERROR,String(t.name),'"name"','"string"','"'+String(t.name)+'"'))}break;case"enabled":if(typeof t.enabled!=="boolean"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'))}break;case"phase":if(modifierPhases.indexOf(t.phase)<0){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"phase"',"either "+modifierPhases.join(", "),'"'+String(t.phase)+'"'))}break;case"fn":if(typeof t.fn!=="function"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"fn"','"function"','"'+String(t.fn)+'"'))}break;case"effect":if(t.effect!=null&&typeof t.effect!=="function"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"effect"','"function"','"'+String(t.fn)+'"'))}break;case"requires":if(t.requires!=null&&!Array.isArray(t.requires)){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requires"','"array"','"'+String(t.requires)+'"'))}break;case"requiresIfExists":if(!Array.isArray(t.requiresIfExists)){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'))}break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+VALID_PROPERTIES.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach((function(r){if(e.find((function(e){return e.name===r}))==null){console.error(format(MISSING_DEPENDENCY_ERROR,String(t.name),r,r))}}))}))}))}function uniqueBy(e,t){var r=new Set;return e.filter((function(e){var n=t(e);if(!r.has(n)){r.add(n);return true}}))}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";var INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?DEFAULT_OPTIONS:o;return function e(t,r,o){if(o===void 0){o=a}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var p={state:i,setOptions:function e(o){var s=typeof o==="function"?o(i.options):o;c();i.options=Object.assign({},a,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));if("development"!=="production"){var d=uniqueBy([].concat(f,i.options.modifiers),(function(e){var t=e.name;return t}));validateModifiers(d);if(getBasePlacement(i.options.placement)===auto){var u=i.orderedModifiers.find((function(e){var t=e.name;return t==="flip"}));if(!u){console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}}var m=getComputedStyle(r),v=m.marginTop,g=m.marginRight,h=m.marginBottom,b=m.marginLeft;if([v,g,h,b].some((function(e){return parseFloat(e)}))){console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}}l();return p.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){if("development"!=="production"){console.error(INVALID_ELEMENT_ERROR)}return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));var o=0;for(var a=0;a<i.orderedModifiers.length;a++){if("development"!=="production"){o+=1;if(o>100){console.error(INFINITE_LOOP_ERROR);break}}if(i.reset===true){i.reset=false;a=-1;continue}var s=i.orderedModifiers[a],l=s.fn,c=s.options,d=c===void 0?{}:c,u=s.name;if(typeof l==="function"){i=l({state:i,options:d,name:u,instance:p})||i}}},update:debounce((function(){return new Promise((function(e){p.forceUpdate();e(i)}))})),destroy:function e(){c();f=true}};if(!areValidElements(t,r)){if("development"!=="production"){console.error(INVALID_ELEMENT_ERROR)}return p}p.setOptions(o).then((function(e){if(!f&&o.onFirstUpdate){o.onFirstUpdate(e)}}));function l(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,o=e.effect;if(typeof o==="function"){var a=o({state:i,name:t,instance:p,options:n});var f=function e(){};s.push(a||f)}}))}function c(){s.forEach((function(e){return e()}));s=[]}return p}}var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var SortDown='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>\n';var dropdownMenuCss="dropdown-menu{font-family:sans-serif;font-family:var(--verdocs-font)}dropdown-menu .arrow{width:32px;height:26px;background:#fff;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;-ms-flex-pack:center;justify-content:center}dropdown-menu .arrow svg{fill:#50be80;-webkit-transition:0.3s;transition:0.3s}dropdown-menu .items{width:200px;display:none;border-radius:5px;background:#33364b;border:1px solid #654dcb}dropdown-menu .items[data-show]{display:block}dropdown-menu .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}dropdown-menu .option:hover{cursor:pointer;background:#50be80}dropdown-menu .option[disabled]{color:#aaa}dropdown-menu .option[disabled]:hover{color:#aaa;cursor:inherit;background:transparent}dropdown-menu .open .items{display:block}dropdown-menu .open .arrow{background:#4c56cb;border:1px solid #707ae5}dropdown-menu .open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}";var DropdownMenu=function(){function e(e){registerInstance(this,e);this.optionSelected=createEvent(this,"optionSelected",7);this.options=[]}e.prototype.componentWillLoad=function(){this.isOpen=!!this.open};e.prototype.componentDidLoad=function(){this.popper=createPopper(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]})};e.prototype.handleSelectOption=function(e){this.isOpen=false;this.optionSelected.emit(e)};e.prototype.showDropdown=function(){var e,t;this.isOpen=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:true}])})}));(t=this.popper)===null||t===void 0?void 0:t.update()};e.prototype.hideDropdown=function(){var e;this.isOpen=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:false}])})}))};e.prototype.toggleDropdown=function(){if(this.isOpen){this.hideDropdown()}else{this.showDropdown()}};e.prototype.render=function(){var e=this;var t;return h("div",{class:{open:!!this.isOpen}},h("button",{class:"arrow",innerHTML:SortDown,"aria-label":"Open Menu",onClick:function(){return e.toggleDropdown()},onBlur:function(){return e.hideDropdown()},ref:function(t){return e.dropdownButton=t}}),h("div",{class:"items","aria-hidden":!this.open,ref:function(t){return e.dropdownMenu=t}},(t=this.options)===null||t===void 0?void 0:t.map((function(t){return h("button",{onClick:function(){return e.handleSelectOption(t)},class:"option",disabled:t.disabled},t.label)}))))};return e}();DropdownMenu.style=dropdownMenuCss;export{DropdownMenu as dropdown_menu};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function i(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):o(e.value).then(s,i)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,o,a,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(a=s[0]&2?o["return"]:s[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,s[1])).done)return a;if(o=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];o=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};var NAMESPACE="verdocs-web-sdk";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:false,cssAnnotations:true,cssVarShim:false,devTools:true,disconnectedCallback:false,dynamicImportShim:false,element:false,event:true,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:false,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:true,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:true,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:true,prop:true,propBoolean:true,propMutable:false,propNumber:true,propString:true,reflect:false,safari10:false,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,shadowDomShim:false,slot:true,slotChildNodesFix:false,slotRelocation:true,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:true};var Env={};var scopeId;var contentRef;var hostTagName;var customError;var i=0;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var renderingRef=null;var queueCongestion=0;var queuePending=false;var win=typeof window!=="undefined"?window:{};var CSS=BUILD.cssVarShim?win.CSS:null;var doc=win.document||{head:{}};var H=win.HTMLElement||function(){function e(){}return e}();var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}};var setPlatformHelpers=function(e){Object.assign(plt,e)};var supportsShadow=BUILD.shadowDomShim&&BUILD.shadowDom?function(){return(doc.head.attachShadow+"").indexOf("[native")>-1}():true;var supportsListenerOptions=function(){var e=false;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(e){}return e}();var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=BUILD.constructableCSS?function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}():false;var Context={};var addHostEventListeners=function(e,t,n,r){if(BUILD.hostListener&&n){if(BUILD.hostListenerTargetParent){if(r){n=n.filter((function(e){var t=e[0];return t&32}))}else{n=n.filter((function(e){var t=e[0];return!(t&32)}))}}n.map((function(n){var r=n[0],o=n[1],a=n[2];var s=BUILD.hostListenerTarget?getHostListenerTarget(e,r):e;var i=hostListenerProxy(t,a);var l=hostListenerOpts(r);plt.ael(s,o,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,o,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(n){try{if(BUILD.lazyLoad){if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}else{e.$hostElement$[t](n)}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(BUILD.hostListenerTargetDocument&&t&4)return doc;if(BUILD.hostListenerTargetWindow&&t&8)return win;if(BUILD.hostListenerTargetBody&&t&16)return doc.body;if(BUILD.hostListenerTargetParent&&t&32)return e.parentElement;return e};var hostListenerOpts=function(e){return supportsListenerOptions?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0};var CONTENT_REF_ID="r";var ORG_LOCATION_ID="o";var SLOT_NODE_ID="s";var TEXT_NODE_ID="t";var HYDRATE_ID="s-id";var HYDRATED_STYLE_ID="sty-id";var HYDRATE_CHILD_ID="c-id";var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var createTime=function(e,t){if(t===void 0){t=""}if(BUILD.profile&&performance.mark){var n="st:"+e+":"+t+":"+i++;performance.mark(n);return function(){return performance.measure("[Stencil] "+e+"() <"+t+">",n)}}else{return function(){return}}};var uniqueTime=function(e,t){if(BUILD.profile&&performance.mark){if(performance.getEntriesByName(e).length===0){performance.mark(e)}return function(){if(performance.getEntriesByName(t).length===0){performance.measure(t,e)}}}else{return function(){return}}};var inspect=function(e){var t;var n=getHostRef(e);if(!n){return undefined}var r=n.$flags$;var o=n.$hostElement$;return t={renderCount:n.$renderCount$,flags:{hasRendered:!!(r&2),hasConnected:!!(r&1),isWaitingForChildren:!!(r&4),isConstructingInstance:!!(r&8),isQueuedForUpdate:!!(r&16),hasInitializedComponent:!!(r&32),hasLoadedComponent:!!(r&64),isWatchReady:!!(r&128),isListenReady:!!(r&256),needsRerender:!!(r&512)},instanceValues:n.$instanceValues$,ancestorComponent:n.$ancestorComponent$,hostElement:o,lazyInstance:n.$lazyInstance$,vnode:n.$vnode$,modeName:n.$modeName$,onReadyPromise:n.$onReadyPromise$,onReadyResolve:n.$onReadyResolve$,onInstancePromise:n.$onInstancePromise$,onInstanceResolve:n.$onInstanceResolve$,onRenderResolve:n.$onRenderResolve$,queuedListeners:n.$queuedListeners$,rmListeners:n.$rmListeners$},t["s-id"]=o["s-id"],t["s-cr"]=o["s-cr"],t["s-lr"]=o["s-lr"],t["s-p"]=o["s-p"],t["s-rc"]=o["s-rc"],t["s-sc"]=o["s-sc"],t};var installDevTools=function(){if(BUILD.devTools){var e=win.stencil=win.stencil||{};var t=e.inspect;e.inspect=function(e){var n=inspect(e);if(!n&&typeof t==="function"){n=t(e)}return n}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,n){var r=styles.get(e);if(supportsConstructibleStylesheets&&n){r=r||new CSSStyleSheet;r.replace(t)}else{r=t}styles.set(e,r)};var addStyle=function(e,t,n,r){var o=getScopeId(t,n);var a=styles.get(o);if(!BUILD.attachStyles){return o}e=e.nodeType===11?e:doc;if(a){if(typeof a==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(o)){if(BUILD.hydrateClientSide&&e.host&&(i=e.querySelector("["+HYDRATED_STYLE_ID+'="'+o+'"]'))){i.innerHTML=a}else{if(BUILD.cssVarShim&&plt.$cssShim$){i=plt.$cssShim$.createHostStyle(r,o,a,!!(t.$flags$&10));var l=i["s-sc"];if(l){o=l;s=null}}else{i=doc.createElement("style");i.innerHTML=a}if(BUILD.hydrateServerSide||BUILD.hotModuleReplacement){i.setAttribute(HYDRATED_STYLE_ID,o)}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(o)}}}else if(BUILD.constructableCSS&&!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[a])}}return o};var attachStyles=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var o=createTime("attachStyles",t.$tagName$);var a=addStyle(BUILD.shadowDom&&supportsShadow&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);if((BUILD.shadowDom||BUILD.scoped)&&BUILD.cssAnnotations&&r&10){n["s-sc"]=a;n.classList.add(a+"-h");if(BUILD.scoped&&r&2){n.classList.add(a+"-s")}}o()};var getScopeId=function(e,t){return"sc-"+(BUILD.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$)};var convertScopedToShadow=function(e){return e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var computeMode=function(e){return modeResolutionChain.map((function(t){return t(e)})).find((function(e){return!!e}))};var setMode=function(e){return modeResolutionChain.push(e)};var getMode=function(e){return getHostRef(e).$modeName$};var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var o=null;var a=null;var s=null;var i=false;var l=false;var c=[];var d=function(t){for(var n=0;n<t.length;n++){o=t[n];if(Array.isArray(o)){d(o)}else if(o!=null&&typeof o!=="boolean"){if(i=typeof e!=="function"&&!isComplexType(o)){o=String(o)}else if(BUILD.isDev&&typeof e!=="function"&&o.$flags$===undefined){consoleDevError("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.")}if(i&&l){c[c.length-1].$text$+=o}else{c.push(i?newVNode(null,o):o)}l=i}}};d(n);if(t){if(BUILD.isDev&&e==="input"){validateInputProperties(t)}if(BUILD.vdomKey&&t.key){a=t.key}if(BUILD.slotRelocation&&t.name){s=t.name}if(BUILD.vdomClass){var f=t.className||t.class;if(f){t.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}if(BUILD.isDev&&c.some(isHost)){consoleDevError("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.")}if(BUILD.vdomFunctional&&typeof e==="function"){return e(t===null?{}:t,c,vdomFnUtils)}var u=newVNode(e,null);u.$attrs$=t;if(c.length>0){u.$children$=c}if(BUILD.vdomKey){u.$key$=a}if(BUILD.slotRelocation){u.$name$=s}return u};var newVNode=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};if(BUILD.vdomAttribute){n.$attrs$=null}if(BUILD.vdomKey){n.$key$=null}if(BUILD.slotRelocation){n.$name$=null}return n};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[]))}var n=newVNode(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var validateInputProperties=function(e){var t=Object.keys(e);var n=t.indexOf("type");var r=t.indexOf("min");var o=t.indexOf("max");var a=t.indexOf("min");var s=t.indexOf("value");if(s===-1){return}if(s<n||s<r||s<o||s<a){consoleDevWarn('The "value" prop of <input> should be set after "min", "max", "type" and "step"')}};var setAccessor=function(e,t,n,r,o,a){if(n!==r){var s=isMemberInElement(e,t);var i=t.toLowerCase();if(BUILD.vdomClass&&t==="class"){var l=e.classList;var c=parseClassList(n);var d=parseClassList(r);l.remove.apply(l,c.filter((function(e){return e&&!d.includes(e)})));l.add.apply(l,d.filter((function(e){return e&&!c.includes(e)})))}else if(BUILD.vdomStyle&&t==="style"){if(BUILD.updatable){for(var f in n){if(!r||r[f]==null){if(!BUILD.hydrateServerSide&&f.includes("-")){e.style.removeProperty(f)}else{e.style[f]=""}}}}for(var f in r){if(!n||r[f]!==n[f]){if(!BUILD.hydrateServerSide&&f.includes("-")){e.style.setProperty(f,r[f])}else{e.style[f]=r[f]}}}}else if(BUILD.vdomKey&&t==="key");else if(BUILD.vdomRef&&t==="ref"){if(r){r(e)}}else if(BUILD.vdomListener&&(BUILD.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(n){plt.rel(e,t,n,false)}if(r){plt.ael(e,t,r,false)}}else if(BUILD.vdomPropOrAttr){var u=isComplexType(r);if((s||u&&r!==null)&&!o){try{if(!e.tagName.includes("-")){var $=r==null?"":r;if(t==="list"){s=false}else if(n==null||e[t]!=$){e[t]=$}}else{e[t]=r}}catch(e){}}var v=false;if(BUILD.vdomXlink){if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;v=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(BUILD.vdomXlink&&v){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!s||a&4||o)&&!u){r=r===true?"":r;if(BUILD.vdomXlink&&v){e.setAttributeNS(XLINK_NS,t,r)}else{e.setAttribute(t,r)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,n,r){var o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var a=e&&e.$attrs$||EMPTY_OBJ;var s=t.$attrs$||EMPTY_OBJ;if(BUILD.updatable){for(r in a){if(!(r in s)){setAccessor(o,r,a[r],undefined,n,t.$flags$)}}}for(r in s){setAccessor(o,r,a[r],s[r],n,t.$flags$)}};var createElm=function(e,t,n,r){var o=t.$children$[n];var a=0;var s;var i;var l;if(BUILD.slotRelocation&&!useNativeShadowDom){checkSlotRelocate=true;if(o.$tag$==="slot"){if(scopeId){r.classList.add(scopeId+"-s")}o.$flags$|=o.$children$?2:1}}if(BUILD.isDev&&o.$elm$){consoleDevError("The JSX "+(o.$text$!==null?'"'+o.$text$+'" text':'"'+o.$tag$+'" element')+" node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes")}if(BUILD.vdomText&&o.$text$!==null){s=o.$elm$=doc.createTextNode(o.$text$)}else if(BUILD.slotRelocation&&o.$flags$&1){s=o.$elm$=BUILD.isDebug||BUILD.hydrateServerSide?slotReferenceDebugNode(o):doc.createTextNode("")}else{if(BUILD.svg&&!isSvgMode){isSvgMode=o.$tag$==="svg"}s=o.$elm$=BUILD.svg?doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,BUILD.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):doc.createElement(BUILD.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$);if(BUILD.svg&&isSvgMode&&o.$tag$==="foreignObject"){isSvgMode=false}if(BUILD.vdomAttribute){updateElement(null,o,isSvgMode)}if((BUILD.shadowDom||BUILD.scoped)&&isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(o.$children$){for(a=0;a<o.$children$.length;++a){i=createElm(e,o,a,s);if(i){s.appendChild(i)}}}if(BUILD.svg){if(o.$tag$==="svg"){isSvgMode=false}else if(s.tagName==="foreignObject"){isSvgMode=true}}}if(BUILD.slotRelocation){s["s-hn"]=hostTagName;if(o.$flags$&(2|1)){s["s-sr"]=true;s["s-cr"]=contentRef;s["s-sn"]=o.$name$||"";l=e&&e.$children$&&e.$children$[n];if(l&&l.$tag$===o.$tag$&&e.$elm$){putBackInOriginalLocation(e.$elm$,false)}}}return s};var putBackInOriginalLocation=function(e,t){plt.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var o=n[r];if(o["s-hn"]!==hostTagName&&o["s-ol"]){parentReferenceNode(o).insertBefore(o,referenceNode(o));o["s-ol"].remove();o["s-ol"]=undefined;checkSlotRelocate=true}if(t){putBackInOriginalLocation(o,t)}}plt.$flags$&=~1};var addVnodes=function(e,t,n,r,o,a){var s=BUILD.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;var i;if(BUILD.shadowDom&&s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;o<=a;++o){if(r[o]){i=createElm(null,n,o,e);if(i){r[o].$elm$=i;s.insertBefore(i,BUILD.slotRelocation?referenceNode(t):t)}}}};var removeVnodes=function(e,t,n,r,o){for(;t<=n;++t){if(r=e[t]){o=r.$elm$;callNodeRefs(r);if(BUILD.slotRelocation){checkSlotFallbackVisibility=true;if(o["s-ol"]){o["s-ol"].remove()}else{putBackInOriginalLocation(o,true)}}o.remove()}}};var updateChildren=function(e,t,n,r){var o=0;var a=0;var s=0;var i=0;var l=t.length-1;var c=t[0];var d=t[l];var f=r.length-1;var u=r[0];var $=r[f];var v;var p;while(o<=l&&a<=f){if(c==null){c=t[++o]}else if(d==null){d=t[--l]}else if(u==null){u=r[++a]}else if($==null){$=r[--f]}else if(isSameVnode(c,u)){patch(c,u);c=t[++o];u=r[++a]}else if(isSameVnode(d,$)){patch(d,$);d=t[--l];$=r[--f]}else if(isSameVnode(c,$)){if(BUILD.slotRelocation&&(c.$tag$==="slot"||$.$tag$==="slot")){putBackInOriginalLocation(c.$elm$.parentNode,false)}patch(c,$);e.insertBefore(c.$elm$,d.$elm$.nextSibling);c=t[++o];$=r[--f]}else if(isSameVnode(d,u)){if(BUILD.slotRelocation&&(c.$tag$==="slot"||$.$tag$==="slot")){putBackInOriginalLocation(d.$elm$.parentNode,false)}patch(d,u);e.insertBefore(d.$elm$,c.$elm$);d=t[--l];u=r[++a]}else{s=-1;if(BUILD.vdomKey){for(i=o;i<=l;++i){if(t[i]&&t[i].$key$!==null&&t[i].$key$===u.$key$){s=i;break}}}if(BUILD.vdomKey&&s>=0){p=t[s];if(p.$tag$!==u.$tag$){v=createElm(t&&t[a],n,s,e)}else{patch(p,u);t[s]=undefined;v=p.$elm$}u=r[++a]}else{v=createElm(t&&t[a],n,a,e);u=r[++a]}if(v){if(BUILD.slotRelocation){parentReferenceNode(c.$elm$).insertBefore(v,referenceNode(c.$elm$))}else{c.$elm$.parentNode.insertBefore(v,c.$elm$)}}}}if(o>l){addVnodes(e,r[f+1]==null?null:r[f+1].$elm$,n,r,a,f)}else if(BUILD.updatable&&a>f){removeVnodes(t,o,l)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){if(BUILD.slotRelocation&&e.$tag$==="slot"){return e.$name$===t.$name$}if(BUILD.vdomKey){return e.$key$===t.$key$}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var o=t.$children$;var a=t.$tag$;var s=t.$text$;var i;if(!BUILD.vdomText||s===null){if(BUILD.svg){isSvgMode=a==="svg"?true:a==="foreignObject"?false:isSvgMode}if(BUILD.vdomAttribute||BUILD.reflect){if(BUILD.slot&&a==="slot");else{updateElement(e,t,isSvgMode)}}if(BUILD.updatable&&r!==null&&o!==null){updateChildren(n,r,t,o)}else if(o!==null){if(BUILD.updatable&&BUILD.vdomText&&e.$text$!==null){n.textContent=""}addVnodes(n,null,t,o,0,o.length-1)}else if(BUILD.updatable&&r!==null){removeVnodes(r,0,r.length-1)}if(BUILD.svg&&isSvgMode&&a==="svg"){isSvgMode=false}}else if(BUILD.vdomText&&BUILD.slotRelocation&&(i=n["s-cr"])){i.parentNode.textContent=s}else if(BUILD.vdomText&&e.$text$!==s){n.data=s}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;var n;var r;var o;var a;var s;var i;for(r=0,o=t.length;r<o;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){s=n["s-sn"];n.hidden=false;for(a=0;a<o;a++){i=t[a].nodeType;if(t[a]["s-hn"]!==n["s-hn"]||s!==""){if(i===1&&s===t[a].getAttribute("slot")){n.hidden=true;break}}else{if(i===1||i===3&&t[a].textContent.trim()!==""){n.hidden=true;break}}}}updateFallbackSlotVisibility(n)}}};var relocateNodes=[];var relocateSlotContent=function(e){var t;var n;var r;var o;var a;var s;var i=0;var l=e.childNodes;var c=l.length;for(;i<c;i++){t=l[i];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;o=t["s-sn"];for(s=r.length-1;s>=0;s--){n=r[s];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(isNodeLocatedInSlot(n,o)){a=relocateNodes.find((function(e){return e.$nodeToRelocate$===n}));checkSlotFallbackVisibility=true;n["s-sn"]=n["s-sn"]||o;if(a){a.$slotRefNode$=t}else{relocateNodes.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){relocateNodes.map((function(e){if(isNodeLocatedInSlot(e.$nodeToRelocate$,n["s-sn"])){a=relocateNodes.find((function(e){return e.$nodeToRelocate$===n}));if(a&&!e.$slotRefNode$){e.$slotRefNode$=a.$slotRefNode$}}}))}}else if(!relocateNodes.some((function(e){return e.$nodeToRelocate$===n}))){relocateNodes.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){relocateSlotContent(t)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var callNodeRefs=function(e){if(BUILD.vdomRef){e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(callNodeRefs)}};var renderVdom=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var o=e.$vnode$||newVNode(null,null);var a=isHost(t)?t:h(null,null,t);hostTagName=n.tagName;if(BUILD.isDev&&Array.isArray(t)&&t.some(isHost)){throw new Error('The <Host> must be the single root component.\nLooks like the render() function of "'+hostTagName.toLowerCase()+'" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n ')}if(BUILD.reflect&&r.$attrsToReflect$){a.$attrs$=a.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return a.$attrs$[r]=n[t]}))}a.$tag$=null;a.$flags$|=4;e.$vnode$=a;a.$elm$=o.$elm$=BUILD.shadowDom?n.shadowRoot||n:n;if(BUILD.scoped||BUILD.shadowDom){scopeId=n["s-sc"]}if(BUILD.slotRelocation){contentRef=n["s-cr"];useNativeShadowDom=supportsShadow&&(r.$flags$&1)!==0;checkSlotFallbackVisibility=false}patch(o,a);if(BUILD.slotRelocation){plt.$flags$|=1;if(checkSlotRelocate){relocateSlotContent(a.$elm$);var s=void 0;var i=void 0;var l=void 0;var c=void 0;var d=void 0;var f=void 0;var u=0;for(;u<relocateNodes.length;u++){s=relocateNodes[u];i=s.$nodeToRelocate$;if(!i["s-ol"]){l=BUILD.isDebug||BUILD.hydrateServerSide?originalLocationDebugNode(i):doc.createTextNode("");l["s-nr"]=i;i.parentNode.insertBefore(i["s-ol"]=l,i)}}for(u=0;u<relocateNodes.length;u++){s=relocateNodes[u];i=s.$nodeToRelocate$;if(s.$slotRefNode$){c=s.$slotRefNode$.parentNode;d=s.$slotRefNode$.nextSibling;l=i["s-ol"];while(l=l.previousSibling){f=l["s-nr"];if(f&&f["s-sn"]===i["s-sn"]&&c===f.parentNode){f=f.nextSibling;if(!f||!f["s-nr"]){d=f;break}}}if(!d&&c!==i.parentNode||i.nextSibling!==d){if(i!==d){if(!i["s-hn"]&&i["s-ol"]){i["s-hn"]=i["s-ol"].parentNode.nodeName}c.insertBefore(i,d)}}}else{if(i.nodeType===1){i.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(a.$elm$)}plt.$flags$&=~1;relocateNodes.length=0}};var slotReferenceDebugNode=function(e){return doc.createComment("<slot"+(e.$name$?' name="'+e.$name$+'"':"")+"> (host="+hostTagName.toLowerCase()+")")};var originalLocationDebugNode=function(e){return doc.createComment("org-location for "+(e.localName?"<"+e.localName+"> (host="+e["s-hn"]+")":"["+e.textContent+"]"))};var getElement=function(e){return BUILD.lazyLoad?getHostRef(e).$hostElement$:e};var createEvent=function(e,t,n){var r=getElement(e);return{emit:function(e){if(BUILD.isDev&&!r.isConnected){consoleDevWarn('The "'+t+'" event was emitted, but the dispatcher node is no longer connected to the dom.')}return emitEvent(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}};var emitEvent=function(e,t,n){var r=plt.ce(t,n);e.dispatchEvent(r);return r};var attachToAncestor=function(e,t){if(BUILD.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){if(BUILD.taskQueue&&BUILD.updatable){e.$flags$|=16}if(BUILD.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var n=function(){return dispatchHooks(e,t)};return BUILD.taskQueue?writeTask(n):n()};var dispatchHooks=function(e,t){var n=e.$hostElement$;var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var o=BUILD.lazyLoad?e.$lazyInstance$:n;var a;if(t){if(BUILD.lazyLoad&&BUILD.hostListener){e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return safeCall(o,t,n)}));e.$queuedListeners$=null}}emitLifecycleEvent(n,"componentWillLoad");if(BUILD.cmpWillLoad){a=safeCall(o,"componentWillLoad")}}else{emitLifecycleEvent(n,"componentWillUpdate");if(BUILD.cmpWillUpdate){a=safeCall(o,"componentWillUpdate")}}emitLifecycleEvent(n,"componentWillRender");if(BUILD.cmpWillRender){a=then(a,(function(){return safeCall(o,"componentWillRender")}))}r();return then(a,(function(){return updateComponent(e,o,t)}))};var updateComponent=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){var r,o,a,s,i,l;return __generator(this,(function(c){switch(c.label){case 0:r=e.$hostElement$;o=createTime("update",e.$cmpMeta$.$tagName$);a=r["s-rc"];if(BUILD.style&&n){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);if(BUILD.isDev){e.$flags$|=1024}if(!BUILD.hydrateServerSide)return[3,2];return[4,callRender(e,t,r)];case 1:c.sent();return[3,3];case 2:callRender(e,t,r);c.label=3;case 3:if(BUILD.cssVarShim&&plt.$cssShim$){plt.$cssShim$.updateHost(r)}if(BUILD.isDev){e.$renderCount$++;e.$flags$&=~1024}if(BUILD.hydrateServerSide){try{serverSideConnected(r);if(n){if(e.$cmpMeta$.$flags$&1){r["s-en"]=""}else if(e.$cmpMeta$.$flags$&2){r["s-en"]="c"}}}catch(e){consoleError(e,r)}}if(BUILD.asyncLoading&&a){a.map((function(e){return e()}));r["s-rc"]=undefined}s();o();if(BUILD.asyncLoading){i=r["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}else{postUpdateComponent(e)}return[2]}}))}))};var callRender=function(e,t,n){var r=BUILD.allRenderFn?true:false;var o=BUILD.lazyLoad?true:false;var a=BUILD.taskQueue?true:false;var s=BUILD.updatable?true:false;try{renderingRef=t;t=r?t.render():t.render&&t.render();if(s&&a){e.$flags$&=~16}if(s||o){e.$flags$|=2}if(BUILD.hasRenderFn||BUILD.reflect){if(BUILD.vdomRender||BUILD.reflect){if(BUILD.hydrateServerSide){return Promise.resolve(t).then((function(t){return renderVdom(e,t)}))}else{renderVdom(e,t)}}else{n.textContent=t}}}catch(t){consoleError(t,e.$hostElement$)}renderingRef=null;return null};var getRenderingRef=function(){return renderingRef};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=createTime("postUpdate",t);var o=BUILD.lazyLoad?e.$lazyInstance$:n;var a=e.$ancestorComponent$;if(BUILD.cmpDidRender){if(BUILD.isDev){e.$flags$|=1024}safeCall(o,"componentDidRender");if(BUILD.isDev){e.$flags$&=~1024}}emitLifecycleEvent(n,"componentDidRender");if(!(e.$flags$&64)){e.$flags$|=64;if(BUILD.asyncLoading&&BUILD.cssAnnotations){addHydratedFlag(n)}if(BUILD.cmpDidLoad){if(BUILD.isDev){e.$flags$|=2048}safeCall(o,"componentDidLoad");if(BUILD.isDev){e.$flags$&=~2048}}emitLifecycleEvent(n,"componentDidLoad");r();if(BUILD.asyncLoading){e.$onReadyResolve$(n);if(!a){appDidLoad(t)}}}else{if(BUILD.cmpDidUpdate){if(BUILD.isDev){e.$flags$|=1024}safeCall(o,"componentDidUpdate");if(BUILD.isDev){e.$flags$&=~1024}}emitLifecycleEvent(n,"componentDidUpdate");r()}if(BUILD.hotModuleReplacement){n["s-hmr-load"]&&n["s-hmr-load"]()}if(BUILD.method&&BUILD.lazyLoad){e.$onInstanceResolve$(n)}if(BUILD.asyncLoading){if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var forceUpdate=function(e){if(BUILD.updatable){var t=getHostRef(e);var n=t.$hostElement$.isConnected;if(n&&(t.$flags$&(2|16))===2){scheduleUpdate(t,false)}return n}return false};var appDidLoad=function(e){if(BUILD.cssAnnotations){addHydratedFlag(doc.documentElement)}if(BUILD.asyncQueue){plt.$flags$|=2}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}));if(BUILD.profile&&performance.measure){performance.measure("[Stencil] "+NAMESPACE+" initial load (by "+e+")","st:app:start")}};var safeCall=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var emitLifecycleEvent=function(e,t){if(BUILD.lifecycleDOMEvents){emitEvent(e,"stencil_"+t,{bubbles:true,composed:true,detail:{namespace:NAMESPACE}})}};var addHydratedFlag=function(e){return BUILD.hydratedClass?e.classList.add("hydrated"):BUILD.hydratedAttribute?e.setAttribute("hydrated",""):undefined};var serverSideConnected=function(e){var t=e.children;if(t!=null){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(typeof o.connectedCallback==="function"){o.connectedCallback()}serverSideConnected(o)}}};var initializeClientHydrate=function(e,t,n,r){var o=createTime("hydrateClient",t);var a=e.shadowRoot;var s=[];var i=[];var l=BUILD.shadowDom&&a?[]:null;var c=r.$vnode$=newVNode(t,null);if(!plt.$orgLocNodes$){initializeDocumentHydrate(doc.body,plt.$orgLocNodes$=new Map)}e[HYDRATE_ID]=n;e.removeAttribute(HYDRATE_ID);clientHydrate(c,s,i,l,e,e,n);s.map((function(e){var n=e.$hostId$+"."+e.$nodeId$;var r=plt.$orgLocNodes$.get(n);var o=e.$elm$;if(r&&supportsShadow&&r["s-en"]===""){r.parentNode.insertBefore(o,r.nextSibling)}if(!a){o["s-hn"]=t;if(r){o["s-ol"]=r;o["s-ol"]["s-nr"]=o}}plt.$orgLocNodes$.delete(n)}));if(BUILD.shadowDom&&a){l.map((function(e){if(e){a.appendChild(e)}}))}o()};var clientHydrate=function(e,t,n,r,o,a,s){var i;var l;var c;var d;if(a.nodeType===1){i=a.getAttribute(HYDRATE_CHILD_ID);if(i){l=i.split(".");if(l[0]===s||l[0]==="0"){c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push(c);a.removeAttribute(HYDRATE_CHILD_ID);if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c;e=c;if(r&&c.$depth$==="0"){r[c.$index$]=c.$elm$}}}for(d=a.childNodes.length-1;d>=0;d--){clientHydrate(e,t,n,r,o,a.childNodes[d],s)}if(a.shadowRoot){for(d=a.shadowRoot.childNodes.length-1;d>=0;d--){clientHydrate(e,t,n,r,o,a.shadowRoot.childNodes[d],s)}}}else if(a.nodeType===8){l=a.nodeValue.split(".");if(l[1]===s||l[1]==="0"){i=l[0];c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(i===TEXT_NODE_ID){c.$elm$=a.nextSibling;if(c.$elm$&&c.$elm$.nodeType===3){c.$text$=c.$elm$.textContent;t.push(c);a.remove();if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c;if(r&&c.$depth$==="0"){r[c.$index$]=c.$elm$}}}else if(c.$hostId$===s){if(i===SLOT_NODE_ID){c.$tag$="slot";if(l[5]){a["s-sn"]=c.$name$=l[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(BUILD.shadowDom&&r){c.$elm$=doc.createElement(c.$tag$);if(c.$name$){c.$elm$.setAttribute("name",c.$name$)}a.parentNode.insertBefore(c.$elm$,a);a.remove();if(c.$depth$==="0"){r[c.$index$]=c.$elm$}}n.push(c);if(!e.$children$){e.$children$=[]}e.$children$[c.$index$]=c}else if(i===CONTENT_REF_ID){if(BUILD.shadowDom&&r){a.remove()}else if(BUILD.slotRelocation){o["s-cr"]=a;a["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var f=newVNode(null,a.textContent);f.$elm$=a;f.$index$="0";e.$children$=[f]}};var initializeDocumentHydrate=function(e,t){if(e.nodeType===1){var n=0;for(;n<e.childNodes.length;n++){initializeDocumentHydrate(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){initializeDocumentHydrate(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){var r=e.nodeValue.split(".");if(r[0]===ORG_LOCATION_ID){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(BUILD.propBoolean&&t&4){return e==="false"?false:e===""||!!e}if(BUILD.propNumber&&t&2){return parseFloat(e)}if(BUILD.propString&&t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,n,r){var o=getHostRef(e);var a=BUILD.lazyLoad?o.$hostElement$:e;var s=o.$instanceValues$.get(t);var i=o.$flags$;var l=BUILD.lazyLoad?o.$lazyInstance$:a;n=parsePropertyValue(n,r.$members$[t][0]);if((!BUILD.lazyLoad||!(i&8)||s===undefined)&&n!==s){o.$instanceValues$.set(t,n);if(BUILD.isDev){if(o.$flags$&1024){consoleDevWarn('The state/prop "'+t+'" changed during rendering. This can potentially lead to infinite-loops and other bugs.',"\nElement",a,"\nNew value",n,"\nOld value",s)}else if(o.$flags$&2048){consoleDevWarn('The state/prop "'+t+'" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"',"\nElement",a,"\nNew value",n,"\nOld value",s)}}if(!BUILD.lazyLoad||l){if(BUILD.watchCallback&&r.$watchers$&&i&128){var c=r.$watchers$[t];if(c){c.map((function(e){try{l[e](n,s,t)}catch(e){consoleError(e,a)}}))}}if(BUILD.updatable&&(i&(2|16))===2){if(BUILD.cmpShouldUpdate&&l.componentShouldUpdate){if(l.componentShouldUpdate(n,s,t)===false){return}}scheduleUpdate(o,false)}}}};var proxyComponent=function(e,t,n){if(BUILD.member&&t.$members$){if(BUILD.watchCallback&&e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var o=e.prototype;r.map((function(e){var r=e[0],a=e[1][0];if((BUILD.prop||BUILD.state)&&(a&31||(!BUILD.lazyLoad||n&2)&&a&32)){Object.defineProperty(o,r,{get:function(){return getValue(this,r)},set:function(e){if(BUILD.isDev){var o=getHostRef(this);if((n&1)===0&&(o.$flags$&8)===0&&(a&31)!==0&&(a&1024)===0){consoleDevWarn('@Prop() "'+r+'" on <'+t.$tagName$+"> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability")}}setValue(this,r,e,t)},configurable:true,enumerable:true})}else if(BUILD.lazyLoad&&BUILD.method&&n&1&&a&64){Object.defineProperty(o,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=getHostRef(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(BUILD.observeAttribute&&(!BUILD.lazyLoad||n&1)){var a=new Map;o.attributeChangedCallback=function(e,t,n){var r=this;plt.jmp((function(){var t=a.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(o.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var o=r[1]||n;a.set(o,n);if(BUILD.reflect&&r[0]&512){t.$attrsToReflect$.push([n,o])}return o}))}}return e};var initializeComponent=function(e,t,n,r,o){return __awaiter(void 0,void 0,void 0,(function(){var a,s,i,l,c,d,f;return __generator(this,(function(u){switch(u.label){case 0:if(!((BUILD.lazyLoad||BUILD.hydrateServerSide||BUILD.style)&&(t.$flags$&32)===0))return[3,7];if(!(BUILD.lazyLoad||BUILD.hydrateClientSide))return[3,3];t.$flags$|=32;o=loadModule(n,t,r);if(!o.then)return[3,2];a=uniqueTime("st:load:"+n.$tagName$+":"+t.$modeName$,"[Stencil] Load module for <"+n.$tagName$+">");return[4,o];case 1:o=u.sent();a();u.label=2;case 2:if((BUILD.isDev||BUILD.isDebug)&&!o){throw new Error('Constructor for "'+n.$tagName$+"#"+t.$modeName$+'" was not found')}if(BUILD.member&&!o.isProxied){if(BUILD.watchCallback){n.$watchers$=o.watchers}proxyComponent(o,n,2);o.isProxied=true}s=createTime("createInstance",n.$tagName$);if(BUILD.member){t.$flags$|=8}try{new o(t)}catch(e){consoleError(e)}if(BUILD.member){t.$flags$&=~8}if(BUILD.watchCallback){t.$flags$|=128}s();fireConnectedCallback(t.$lazyInstance$);return[3,4];case 3:o=e.constructor;t.$flags$|=32;customElements.whenDefined(n.$tagName$).then((function(){return t.$flags$|=128}));u.label=4;case 4:if(!(BUILD.style&&o.style))return[3,7];i=o.style;if(BUILD.mode&&typeof i!=="string"){i=i[t.$modeName$=computeMode(e)];if(BUILD.hydrateServerSide&&t.$modeName$){e.setAttribute("s-mode",t.$modeName$)}}l=getScopeId(n,t.$modeName$);if(!!styles.has(l))return[3,7];c=createTime("registerStyles",n.$tagName$);if(!(!BUILD.hydrateServerSide&&BUILD.shadowDom&&BUILD.shadowDomShim&&n.$flags$&8))return[3,6];return[4,import("./shadow-css-1e16431b.js").then((function(e){return e.scopeCss(i,l,false)}))];case 5:i=u.sent();u.label=6;case 6:registerStyle(l,i,!!(n.$flags$&1));c();u.label=7;case 7:d=t.$ancestorComponent$;f=function(){return scheduleUpdate(t,true)};if(BUILD.asyncLoading&&d&&d["s-rc"]){d["s-rc"].push(f)}else{f()}return[2]}}))}))};var fireConnectedCallback=function(e){if(BUILD.lazyLoad&&BUILD.connectedCallback){safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=t.$cmpMeta$;var r=createTime("connectedCallback",n.$tagName$);if(BUILD.hostListenerTargetParent){addHostEventListeners(e,t,n.$listeners$,true)}if(!(t.$flags$&1)){t.$flags$|=1;var o=void 0;if(BUILD.hydrateClientSide){o=e.getAttribute(HYDRATE_ID);if(o){if(BUILD.shadowDom&&supportsShadow&&n.$flags$&1){var a=BUILD.mode?addStyle(e.shadowRoot,n,e.getAttribute("s-mode")):addStyle(e.shadowRoot,n);e.classList.remove(a+"-h",a+"-s")}initializeClientHydrate(e,n.$tagName$,o,t)}}if(BUILD.slotRelocation&&!o){if(BUILD.hydrateServerSide||(BUILD.slot||BUILD.shadowDom)&&n.$flags$&(4|8)){setContentReference(e)}}if(BUILD.asyncLoading){var s=e;while(s=s.parentNode||s.host){if(BUILD.hydrateClientSide&&s.nodeType===1&&s.hasAttribute("s-id")&&s["s-p"]||s["s-p"]){attachToAncestor(t,t.$ancestorComponent$=s);break}}}if(BUILD.prop&&!BUILD.hydrateServerSide&&n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var o=e[n];delete e[n];e[n]=o}}))}if(BUILD.initializeNextTick){nextTick((function(){return initializeComponent(e,t,n)}))}else{initializeComponent(e,t,n)}}else{addHostEventListeners(e,t,n.$listeners$,false);fireConnectedCallback(t.$lazyInstance$)}r()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment(BUILD.isDebug?"content-ref (host="+e.localName+")":"");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var n=BUILD.lazyLoad?t.$lazyInstance$:e;if(BUILD.hostListener){if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}if(BUILD.cssVarShim&&plt.$cssShim$){plt.$cssShim$.removeHost(e)}if(BUILD.lazyLoad&&BUILD.disconnectedCallback){safeCall(n,"disconnectedCallback")}if(BUILD.cmpDidUnload){safeCall(n,"componentDidUnload")}}};var defineCustomElement=function(e,t){customElements.define(t[1],proxyCustomElement(e,t))};var proxyCustomElement=function(e,t){var n={$flags$:t[0],$tagName$:t[1]};if(BUILD.member){n.$members$=t[2]}if(BUILD.hostListener){n.$listeners$=t[3]}if(BUILD.watchCallback){n.$watchers$=e.$watchers$}if(BUILD.reflect){n.$attrsToReflect$=[]}if(BUILD.shadowDom&&!supportsShadow&&n.$flags$&1){n.$flags$|=8}var r=e.prototype.connectedCallback;var o=e.prototype.disconnectedCallback;Object.assign(e.prototype,{__registerHost:function(){registerHost(this,n)},connectedCallback:function(){connectedCallback(this);if(BUILD.connectedCallback&&r){r.call(this)}},disconnectedCallback:function(){disconnectedCallback(this);if(BUILD.disconnectedCallback&&o){o.call(this)}},__attachShadow:function(){if(supportsShadow){if(BUILD.shadowDelegatesFocus){this.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}else{this.attachShadow({mode:"open"})}}else{this.shadowRoot=this}}});e.is=n.$tagName$;return proxyComponent(e,n,1|2)};var forceModeUpdate=function(e){if(BUILD.style&&BUILD.mode&&!BUILD.lazyLoad){var t=computeMode(e);var n=getHostRef(e);if(n.$modeName$!==t){var r=n.$cmpMeta$;var o=e["s-sc"];var a=getScopeId(r,t);var s=e.constructor.style[t];var i=r.$flags$;if(s){if(!styles.has(a)){registerStyle(a,s,!!(i&1))}n.$modeName$=t;e.classList.remove(o+"-h",o+"-s");attachStyles(n);forceUpdate(e)}}}};var hmrStart=function(e,t,n){var r=getHostRef(e);r.$flags$=1;e["s-hmr-load"]=function(){delete e["s-hmr-load"]};initializeComponent(e,r,t,n)};var patchCloneNode=function(e){var t=e.cloneNode;e.cloneNode=function(e){var n=this;var r=BUILD.shadowDom?n.shadowRoot&&supportsShadow:false;var o=t.call(n,r?e:false);if(BUILD.slot&&!r&&e){var a=0;var s=void 0,i=void 0;var l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;a<n.childNodes.length;a++){s=n.childNodes[a]["s-nr"];i=l.every((function(e){return!n.childNodes[a][e]}));if(s){if(BUILD.appendChildSlotFix&&o.__appendChild){o.__appendChild(s.cloneNode(true))}else{o.appendChild(s.cloneNode(true))}}if(i){o.appendChild(n.childNodes[a].cloneNode(true))}}}return o}};var patchSlotAppendChild=function(e){e.__appendChild=e.appendChild;e.appendChild=function(e){var t=e["s-sn"]=getSlotName(e);var n=getHostSlotNode(this.childNodes,t);if(n){var r=getHostSlotChildNodes(n,t);var o=r[r.length-1];return o.parentNode.insertBefore(e,o.nextSibling)}return this.__appendChild(e)}};var patchTextContent=function(e,t){if(BUILD.scoped&&t.$flags$&2){var n=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",n);Object.defineProperty(e,"textContent",{get:function(){var e;var t=getHostSlotNode(this.childNodes,"");if(((e=t===null||t===void 0?void 0:t.nextSibling)===null||e===void 0?void 0:e.nodeType)===3){return t.nextSibling.textContent}else if(t){return t.textContent}else{return this.__textContent}},set:function(e){var t;var n=getHostSlotNode(this.childNodes,"");if(((t=n===null||n===void 0?void 0:n.nextSibling)===null||t===void 0?void 0:t.nodeType)===3){n.nextSibling.textContent=e}else if(n){n.textContent=e}else{this.__textContent=e;var r=this["s-cr"];if(r){this.insertBefore(r,this.firstChild)}}}})}};var patchChildSlotNodes=function(e,t){var n=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var r=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=r.call(this);if((plt.$flags$&1)===0&&getHostRef(this).$flags$&2){var t=new n;for(var o=0;o<e.length;o++){var a=e[o]["s-nr"];if(a){t.push(a)}}return t}return n.from(e)}})}};var getSlotName=function(e){return e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||""};var getHostSlotNode=function(e,t){var n=0;var r;for(;n<e.length;n++){r=e[n];if(r["s-sr"]&&r["s-sn"]===t){return r}r=getHostSlotNode(r.childNodes,t);if(r){return r}}return null};var getHostSlotChildNodes=function(e,t){var n=[e];while((e=e.nextSibling)&&e["s-sn"]===t){n.push(e)}return n};var bootstrapLazy=function(e,t){if(t===void 0){t={}}if(BUILD.profile&&performance.mark){performance.mark("st:app:start")}installDevTools();var n=createTime("bootstrapLazy");var r=[];var o=t.exclude||[];var a=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var c=[];var d=doc.querySelectorAll("["+HYDRATED_STYLE_ID+"]");var f;var u=true;var $=0;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;if(BUILD.asyncQueue){if(t.syncQueue){plt.$flags$|=4}}if(BUILD.hydrateClientSide){plt.$flags$|=2}if(BUILD.hydrateClientSide&&BUILD.shadowDom){for(;$<d.length;$++){registerStyle(d[$].getAttribute(HYDRATED_STYLE_ID),convertScopedToShadow(d[$].innerHTML),true)}}e.map((function(e){e[1].map((function(n){var s={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};if(BUILD.member){s.$members$=n[2]}if(BUILD.hostListener){s.$listeners$=n[3]}if(BUILD.reflect){s.$attrsToReflect$=[]}if(BUILD.watchCallback){s.$watchers$={}}if(BUILD.shadowDom&&!supportsShadow&&s.$flags$&1){s.$flags$|=8}var i=BUILD.transformTagName&&t.transformTagName?t.transformTagName(s.$tagName$):s.$tagName$;var l=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,s);if(BUILD.shadowDom&&s.$flags$&1){if(supportsShadow){if(BUILD.shadowDelegatesFocus){t.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)})}else{t.attachShadow({mode:"open"})}}else if(!BUILD.hydrateServerSide&&!("shadowRoot"in t)){t.shadowRoot=t}}if(BUILD.slotChildNodesFix){patchChildSlotNodes(t,s)}return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(u){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);if(BUILD.cloneNodeFix){patchCloneNode(l.prototype)}if(BUILD.appendChildSlotFix){patchSlotAppendChild(l.prototype)}if(BUILD.hotModuleReplacement){l.prototype["s-hmr"]=function(e){hmrStart(this,s,e)}}if(BUILD.scopedSlotTextContentFix){patchTextContent(l.prototype,s)}s.$lazyBundleId$=e[0];if(!o.includes(i)&&!a.get(i)){r.push(i);a.define(i,proxyComponent(l,s,1))}}))}));if(BUILD.invisiblePrehydration&&(BUILD.hydratedClass||BUILD.hydratedAttribute)){l.innerHTML=r+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}u=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{if(BUILD.profile){plt.jmp((function(){return f=setTimeout(appDidLoad,30,"timeout")}))}else{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}n()};var getAssetPath=function(e){var t=new URL(e,plt.$resourcesUrl$);return t.origin!==win.location.origin?t.href:t.pathname};var setAssetPath=function(e){return plt.$resourcesUrl$=e};var getConnect=function(e,t){var n=function(){var e=doc.querySelector(t);if(!e){e=doc.createElement(t);doc.body.appendChild(e)}return typeof e.componentOnReady==="function"?e.componentOnReady():Promise.resolve(e)};var r=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return n().then((function(t){return t.create.apply(t,e)}))};return{create:r,componentOnReady:n}};var getContext=function(e,t){if(t in Context){return Context[t]}else if(t==="window"){return win}else if(t==="document"){return doc}else if(t==="isServer"||t==="isPrerender"){return BUILD.hydrateServerSide?true:false}else if(t==="isClient"){return BUILD.hydrateServerSide?false:true}else if(t==="resourcesUrl"||t==="publicPath"){return getAssetPath(".")}else if(t==="queue"){return{write:writeTask,read:readTask,tick:{then:function(e){return nextTick(e)}}}}return undefined};var insertVdomAnnotations=function(e,t){if(e!=null){var n={hostIds:0,rootLevelIds:0,staticComponents:new Set(t)};var r=[];parseVNodeAnnotations(e,e.body,n,r);r.forEach((function(t){if(t!=null){var r=t["s-nr"];var o=r["s-host-id"];var a=r["s-node-id"];var s=o+"."+a;if(o==null){o=0;n.rootLevelIds++;a=n.rootLevelIds;s=o+"."+a;if(r.nodeType===1){r.setAttribute(HYDRATE_CHILD_ID,s)}else if(r.nodeType===3){if(o===0){var i=r.nodeValue.trim();if(i===""){t.remove();return}}var l=e.createComment(s);l.nodeValue=TEXT_NODE_ID+"."+s;r.parentNode.insertBefore(l,r)}}var c=ORG_LOCATION_ID+"."+s;var d=t.parentElement;if(d){if(d["s-en"]===""){c+="."}else if(d["s-en"]==="c"){c+=".c"}}t.nodeValue=c}}))}};var parseVNodeAnnotations=function(e,t,n,r){if(t==null){return}if(t["s-nr"]!=null){r.push(t)}if(t.nodeType===1){t.childNodes.forEach((function(t){var o=getHostRef(t);if(o!=null&&!n.staticComponents.has(t.nodeName.toLowerCase())){var a={nodeIds:0};insertVNodeAnnotations(e,t,o.$vnode$,n,a)}parseVNodeAnnotations(e,t,n,r)}))}};var insertVNodeAnnotations=function(e,t,n,r,o){if(n!=null){var a=++r.hostIds;t.setAttribute(HYDRATE_ID,a);if(t["s-cr"]!=null){t["s-cr"].nodeValue=CONTENT_REF_ID+"."+a}if(n.$children$!=null){var s=0;n.$children$.forEach((function(t,n){insertChildVNodeAnnotations(e,t,o,a,s,n)}))}if(t&&n&&n.$elm$&&!t.hasAttribute("c-id")){var i=t.parentElement;if(i&&i.childNodes){var l=Array.from(i.childNodes);var c=l.find((function(e){return e.nodeType===8&&e["s-sr"]}));if(c){var d=l.indexOf(t)-1;n.$elm$.setAttribute(HYDRATE_CHILD_ID,c["s-host-id"]+"."+c["s-node-id"]+".0."+d)}}}}};var insertChildVNodeAnnotations=function(e,t,n,r,o,a){var s=t.$elm$;if(s==null){return}var i=n.nodeIds++;var l=r+"."+i+"."+o+"."+a;s["s-host-id"]=r;s["s-node-id"]=i;if(s.nodeType===1){s.setAttribute(HYDRATE_CHILD_ID,l)}else if(s.nodeType===3){var c=s.parentNode;var d=c.nodeName;if(d!=="STYLE"&&d!=="SCRIPT"){var f=TEXT_NODE_ID+"."+l;var u=e.createComment(f);c.insertBefore(u,s)}}else if(s.nodeType===8){if(s["s-sr"]){var $=s["s-sn"]||"";var v=SLOT_NODE_ID+"."+l+"."+$;s.nodeValue=v}}if(t.$children$!=null){var p=o+1;t.$children$.forEach((function(t,o){insertChildVNodeAnnotations(e,t,n,r,p,o)}))}};var setPlatformOptions=function(e){return Object.assign(plt,e)};var Fragment=function(e,t){return t};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};if(BUILD.isDev){n.$renderCount$=0}if(BUILD.method&&BUILD.lazyLoad){n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}if(BUILD.asyncLoading){n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,n,t.$listeners$,false);return hostRefs.set(e,n)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(customError||console.error)(e,t)};var STENCIL_DEV_MODE=BUILD.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"];var consoleDevError=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.error.apply(console,__spreadArray(__spreadArray([],STENCIL_DEV_MODE),e))};var consoleDevWarn=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.warn.apply(console,__spreadArray(__spreadArray([],STENCIL_DEV_MODE),e))};var consoleDevInfo=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return console.info.apply(console,__spreadArray(__spreadArray([],STENCIL_DEV_MODE),e))};var setErrorHandler=function(e){return customError=e};var cmpModules=new Map;var loadModule=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_");var o=e.$lazyBundleId$;if(BUILD.isDev&&typeof o!=="string"){consoleDevError("Trying to lazily load component <"+e.$tagName$+'> with style mode "'+t.$modeName$+'", but it does not exist.');return undefined}var a=!BUILD.hotModuleReplacement?cmpModules.get(o):false;if(a){return a[r]}return import("./"+o+".entry.js"+(BUILD.hotModuleReplacement&&n?"?s-hmr="+n:"")).then((function(e){if(!BUILD.hotModuleReplacement){cmpModules.set(o,e)}return e[r]}),consoleError)};var styles=new Map;var modeResolutionChain=[];var queueDomReads=[];var queueDomWrites=[];var queueDomWritesLow=[];var queueTask=function(e,t){return function(n){e.push(n);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var consumeTimeout=function(e,t){var n=0;var r=0;while(n<e.length&&(r=performance.now())<t){try{e[n++](r)}catch(e){consoleError(e)}}if(n===e.length){e.length=0}else if(n!==0){e.splice(0,n)}};var flush=function(){if(BUILD.asyncQueue){queueCongestion++}consume(queueDomReads);if(BUILD.asyncQueue){var e=(plt.$flags$&6)===2?performance.now()+14*Math.ceil(queueCongestion*(1/10)):Infinity;consumeTimeout(queueDomWrites,e);consumeTimeout(queueDomWritesLow,e);if(queueDomWrites.length>0){queueDomWritesLow.push.apply(queueDomWritesLow,queueDomWrites);queueDomWrites.length=0}if(queuePending=queueDomReads.length+queueDomWrites.length+queueDomWritesLow.length>0){plt.raf(flush)}else{queueCongestion=0}}else{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var readTask=queueTask(queueDomReads,false);var writeTask=queueTask(queueDomWrites,true);var Build={isDev:BUILD.isDev?true:false,isBrowser:true,isServer:false,isTesting:BUILD.isTesting?true:false};export{BUILD as B,CSS as C,H,NAMESPACE as N,promiseResolve as a,bootstrapLazy as b,consoleDevInfo as c,doc as d,createEvent as e,Host as f,getElement as g,h,getAssetPath as i,plt as p,registerInstance as r,win as w};
|
package/dist/esm-es5/loader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{B as BUILD,C as CSS,p as plt,w as win,a as promiseResolve,b as bootstrapLazy}from"./index-81ec66c1.js";import{g as globalScripts}from"./app-globals-0f993ce5.js";var patchEsm=function(){if(BUILD.cssVarShim&&!(CSS&&CSS.supports&&CSS.supports("color","var(--c)"))){return import("./css-shim-c64026cd.js").then((function(){if(plt.$cssShim$=win.__cssshim){return plt.$cssShim$.i()}else{return 0}}))}return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["document-status-indicator",[[0,"document-status-indicator",{status:[1],theme:[1]}]]],["dropdown-menu",[[0,"dropdown-menu",{options:[16],open:[4],tall:[4],isOpen:[32]}]]],["org-popup",[[0,"org-popup",{organization:[8],theme:[1]}]]],["pdf-viewer",[[0,"pdf-viewer",{rotation:[2],src:[1]}]]],["search-box",[[0,"search-box",{type:[1],query:[1]}]]],["search-embed",[[1,"search-embed"]]],["search-quick-functions",[[0,"search-quick-functions"]]],["search-recent",[[0,"search-recent",{limit:[2],recent:[32]}]]],["search-saved",[[0,"search-saved",{limit:[2],saved:[32]}]]],["search-starred",[[0,"search-starred",{options:[8]}]]],["search-tabs",[[4,"search-tabs",{selected:[32]}]]],["tags-indicator",[[0,"tags-indicator",{tags:[16],theme:[1]}]]],["template-card",[[0,"template-card",{template:[8],theme:[1]}]]],["toggle-icon-buttons",[[0,"toggle-icon-buttons",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]]],t)}))};export{defineCustomElements};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-
|
|
1
|
+
import{r as registerInstance,h}from"./index-81ec66c1.js";var UserGroup='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var orgPopupCss="org-popup{font-family:sans-serif;font-family:var(--verdocs-font)}org-popup .container{width:242px;height:64px;background-color:#33364b;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}org-popup .container:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33364b}org-popup .icon{-ms-flex:1;flex:1;margin-left:15px;margin-right:0px}org-popup .icon svg{width:24px;margin-bottom:-5px}org-popup .content{color:#fff;-ms-flex:4;flex:4;font-family:sans-serif}org-popup .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid var(--verdocs-background-dark);border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}org-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}org-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}org-popup .popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}org-popup .popup-body span:last-child{margin-top:5px}org-popup .status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}";var OrgPopup=function(){function o(o){registerInstance(this,o)}o.prototype.render=function(){var o,e,p,s,i,n;return h("div",{class:"container"},h("span",{class:"icon",innerHTML:UserGroup}),h("span",{class:"content"},(o=this.organization)===null||o===void 0?void 0:o.name),h("div",{class:"popup"},h("div",{class:"popup-header"},h("span",{class:"status"}),h("span",{class:"title"},(e=this.organization)===null||e===void 0?void 0:e.name)),h("div",{class:"popup-body"},h("span",{class:"joined"},h("b",null,"Joined")," ",(p=this.organization)===null||p===void 0?void 0:p.created_at),h("span",{class:"followers"},h("b",null,"Followers")," ",(s=this.organization)===null||s===void 0?void 0:s.followers),h("span",{class:"website"},h("b",null,"Website")),h("span",{class:"templates"},h("b",null,"Templates")," ",(i=this.organization)===null||i===void 0?void 0:i.templates),h("span",null,(n=this.organization)===null||n===void 0?void 0:n.website))))};return o}();OrgPopup.style=orgPopupCss;export{OrgPopup as org_popup};
|