vendor: 12,365 bytes, lines 1-17
1!function(){"use strict"; 2/** 3 * @license 4 * Copyright 2019 Google LLC 5 * SPDX-License-Identifier: BSD-3-Clause 6 */const t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new WeakMap;class s{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=o.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o.set(i,t))}return t}toString(){return this.cssText}}const n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(e)})(t):t 7/** 8 * @license 9 * Copyright 2017 Google LLC 10 * SPDX-License-Identifier: BSD-3-Clause 11 */;var r;const a=window,l=a.trustedTypes,d=l?l.emptyScript:"",h=a.reactiveElementPolyfillSupport,c={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},p=(t,e)=>e!==t&&(e==e||t==t),u={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:p};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=u){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||u}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var i;const o=null!==(i=this.shadowRoot)&&void 0!==i?i:this.attachShadow(this.constructor.shadowRootOptions);return((i,o)=>{e?i.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((e=>{const o=document.createElement("style"),s=t.litNonce;void 0!==s&&o.setAttribute("nonce",s),o.textContent=e.cssText,i.appendChild(o)}))})(o,this.constructor.elementStyles),o}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=u){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:c).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:c;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||p)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}} 12/** 13 * @license 14 * Copyright 2017 Google LLC 15 * SPDX-License-Identifier: BSD-3-Clause 16 */ 17var g;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:m}),(null!==(r=a.reactiveElementVersions)&&void 0!==r?r:a.reactiveElementVersions=[]).push("1.6.1");const v=window,f=v.trustedTypes,y=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,_=`lit$${(Math.random()+"").slice(9)}$`,b="?"+_,w=`<${b}>`,$=document,x=(t="")=>$.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,C=/>/g,z=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,P=/"/g,H=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),N=new WeakMap,R=$.createTreeWalker($,129,null,!1),L=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=E;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===E?"!--"===l[1]?r=S:void 0!==l[1]?r=C:void 0!==l[2]?(H.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=z):void 0!==l[3]&&(r=z):r===z?">"===l[0]?(r=null!=s?s:E,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?z:'"'===l[3]?P:M):r===P||r===M?r=z:r===S||r===C?r=E:(r=z,s=void 0);const c=r===z&&t[e+1].startsWith("/>")?" ":"";n+=r===E?i+w:d>=0?(o.push(a),i.slice(0,d)+"$lit$"+i.slice(d)+_+c):i+_+(-2===d?(o.push(void 0),e):c)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(a):a,o]};class O{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,d]=L(t,e);if(this.el=O.createElement(l,i),R.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=R.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(_)){const i=d[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(_),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?W:"?"===e[1]?q:"@"===e[1]?X:V})}else a.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(_),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),R.nextNode(),a.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===b)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(_,t+1));)a.push({type:7,index:s}),t+=_.length-1}s++}}static createElement(t,e){const i=$.createElement("template");return i.innerHTML=t,i}}function T(t,e,i=t,o){var s,n,r,a;if(e===D)return e;let l=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const d=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==d&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===d?l=void 0:(l=new d(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=T(t,l._$AS(t,e.values),l,o)),e}class j{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$).importNode(i,!0);R.currentNode=s;let n=R.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new I(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new Y(n,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=R.nextNode(),r++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class I{constructor(t,e,i,o){var s;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),k(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==U&&k(this._$AH)?this._$AA.nextSibling.data=t:this.T($.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=O.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new j(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new O(t)),e}k(t){A(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new I(this.O(x()),this.O(x()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;
vendor: 4,424 bytes, lines 17-39
17for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,o,s){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=T(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=T(this,o[i+r],e,r),a===D&&(a=this._$AH[r]),n||(n=!k(a)||a!==this._$AH[r]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class W extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const F=f?f.emptyScript:"";class q extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class X extends V{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=T(this,t,e,0))&&void 0!==i?i:U)===D)return;const o=this._$AH,s=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==U&&(o===U||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const K=v.litHtmlPolyfillSupport;null==K||K(O,I),(null!==(g=v.litHtmlVersions)&&void 0!==g?g:v.litHtmlVersions=[]).push("2.6.1"); 18/** 19 * @license 20 * Copyright 2017 Google LLC 21 * SPDX-License-Identifier: BSD-3-Clause 22 */ 23var J,Z;class G extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new I(e.insertBefore(x(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return D}}G.finalized=!0,G._$litElement$=!0,null===(J=globalThis.litElementHydrateSupport)||void 0===J||J.call(globalThis,{LitElement:G});const Q=globalThis.litElementPolyfillSupport;null==Q||Q({LitElement:G}),(null!==(Z=globalThis.litElementVersions)&&void 0!==Z?Z:globalThis.litElementVersions=[]).push("3.2.2"); 24/** 25 * @license 26 * Copyright 2017 Google LLC 27 * SPDX-License-Identifier: BSD-3-Clause 28 */ 29const tt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}}; 30/** 31 * @license 32 * Copyright 2017 Google LLC 33 * SPDX-License-Identifier: BSD-3-Clause 34 */function et(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):tt(t,e) 35/** 36 * @license 37 * Copyright 2017 Google LLC 38 * SPDX-License-Identifier: BSD-3-Clause 39 */}const it=({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o){const o=null!==(s=i.originalKey)&&void 0!==s?s:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}
39{const s=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(s,o)}} 40/** 41 * @license 42 * Copyright 2017 Google LLC 43 * SPDX-License-Identifier: BSD-3-Clause 44 */; 45/** 46 * @license 47 * Copyright 2021 Google LLC 48 * SPDX-License-Identifier: BSD-3-Clause 49 */ 50var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements; 51/** 52 * @license 53 * Copyright 2019 Google LLC 54 * SPDX-License-Identifier: BSD-3-Clause 55 */ 56var st,nt,rt,at=window&&window.__decorate||function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.Idle="idle",t.Move="move",t.Resize="resize"}(st||(st={})),function(t){t.None="none",t.Top="top",t.Right="right",t.Bottom="bottom",t.Left="left"}(nt||(nt={})),function(t){t.None="none",t.N="n",t.NE="ne",t.E="e",t.SE="se",t.S="s",t.SW="sw",t.W="w",t.NW="nw"}(rt||(rt={}));let lt=class extends G{constructor(){super(...arguments),this.open=!1,this.modal=!1,this.moveable=!1,this.moveBtn=!1,this.dock="none",this.push=!1,this.dockable=!1,this.hideCloseButton=!1,this.backdropOpacity=1,this.returnValue="",this.height=400,this.width=400,this.resizable=!1,this._dialogInteraction=st.Idle,this.title="",this._dragStartX=0,this._dragStartY=0,this._dragStartHeight=0,this._dragStartWidth=0,this._offsetTop=0,this._offsetLeft=0,this._resizeDirection=rt.None,this.styles=document.createElement("style"),this._onDock=(t="right")=>async()=>{const e=await this._dialog;e.style.removeProperty("inset"),e.style.removeProperty("height"),e.style.removeProperty("width"),this.dock=t,document.documentElement.style.setProperty("--me-dialog-dock-height",`${this.height}px`),document.documentElement.style.setProperty("--me-dialog-dock-width",`${this.width}px`),this._pushBody()},this._onUnDock=async()=>{this.dock="none"},this._onDragMouseUp=()=>{this._dialogInteraction=st.Idle,document.removeEventListener("mouseup",this._onDragMouseUp),document.removeEventListener("mousemove",this._onDragMouseMove)},this._onDragMouseMove=async t=>{const e=await this._dialog,i=t.clientX-this._dragStartX,o=t.clientY-this._dragStartY;switch(this._dialogInteraction){case st.Move:e.style.left=`${Math.min(Math.max(0,this._offsetLeft+i),window.innerWidth-e.offsetWidth)}px`,e.style.top=`${this._offsetTop+o}px`,e.style.right="auto",e.style.bottom="auto";break;case st.Resize:switch(this._resizeDirection){case rt.N:this.height=Math.min(this._dragStartHeight-o,window.innerHeight),document.documentElement.style.setProperty("--me-dialog-dock-height",`${this.height}px`);break;case rt.E:this.width=Math.min(this._dragStartWidth+i,window.innerWidth),document.documentElement.style.setProperty("--me-dialog-dock-width",`${this.width}px`);break;case rt.S:this.height=Math.min(this._dragStartHeight+o,window.innerHeight),document.documentElement.style.setProperty("--me-dialog-dock-height",`${this.height}px`);break;case rt.W:this.width=Math.max(0,Math.min(this._dragStartWidth-i,window.innerWidth)),document.documentElement.style.setProperty("--me-dialog-dock-width",`${this.width}px`)}}},this._pushBody=()=>{const t={top:"",right:"",bottom:"",left:""};if(this.open&&this.push)switch(this.dock){case"top":t.top="padding-top: var(--me-dialog-offset-top, var(--me-dialog-dock-height)) !important;";break;case"right":t.right="padding-right: var(--me-dialog-offset-right, var(--me-dialog-dock-width)) !important;";break;case"bottom":t.bottom="padding-bottom: var(--me-dialog-offset-bottom, var(--me-dialog-dock-height)) !important;";break;case"left":t.left="padding-left: var(--me-dialog-offset-left, var(--me-dialog-dock-width)) !important;"}this.styles.innerHTML=`body {\n transition: padding var(--me-dialog-duration, 200) var(--me-dialog-timing, ease-out);\n ${Object.values(t).filter((t=>t)).join("\n")}\n }`}}connectedCallback(){super.connectedCallback(),this.styles.setAttribute("class","mercury-dialog-styles"),document.head.appendChild(this.styles)}disconnectedCallback(){super.disconnectedCallback(),this.styles.remove()}_getResizeDirection(){switch(this.dock){case"top":return rt.S;case"right":return rt.W;case"bottom":return rt.N;case"left":return rt.E;default:return rt.None}}async _handleClose(){const t=await this._dialog;this.returnValue=t.returnValue,this.open=!1,this._pushBody(),this.dispatchEvent(new Event("close"))}async _handleCancel(){const t=await this._dialog;this.returnValue=t.returnValue,this.dispatchEvent(new Event("cancel"))}async _keydownHandler(t){if("Escape"===t.code){const t=this.getRootNode(),e=t.querySelector(`#${this.id}`);e&&!this.hideCloseButton&&e.contains(t.activeElement)&&this._handleClose()}}render(){return B` 57 <dialog 58 id="dialog" 59 part="dialog" 60 data-dock=${this.dock} 61 @close=${this._handleClose} 62 @cancel=${this._handleCancel} 63 class=${[this.moveable&&"is-moveable",!this.resizable||"none"!==this.dock&&this.dock?"not-resizable":"is-resizable",`is-${this._dialogInteraction}`].join(" ")} 64 > 65 ${this.title||!this.hideCloseButton?B`<header @mousedown=${this._onMoveMouseDown}> 66 ${this.title?B`<h2>${this.title}</h2>`:B``} 67 <div class="buttons"> 68 ${this.moveable&&this.moveBtn?B`<button 69 @mousedown=${this._onMoveMouseDown} 70 part="drag-button" 71 id="dragButton" 72 > 73 <i></i>
74 <span>Drag</span> 75 </button>`:B``} 76 ${this.dockable?"none"===this.dock?B`<button 77 @click=${this._onDock()} 78 part="dock-button" 79 id="dockButton" 80 > 81 <i></i> 82 <span>Dock</span> 83 </button>`:B`<button 84 @click=${this._onUnDock} 85 part="undock-button" 86 id="undockButton" 87 > 88 <i></i> 89 <span>Undock</span> 90 </button>`:""} 91 <form method="dialog"> 92 ${this.hideCloseButton?B``:B`<button 93 @click=${this._onCloseClick} 94 part="close-button" 95 id="closeButton" 96 > 97 <i></i> 98 <span>Close</span> 99 </button>`} 100 </form> 101 </div> 102 </header>`:B``} 103 ${this.resizable&&"none"!==this.dock?B`<button 104 @mousedown=${this._onResizeMouseDown} 105 id="resizeButton" 106 data-resize-dir=${this._getResizeDirection()} 107 > 108 <span>Resize</span> 109 </button>`:B``} 110 <main> 111 <slot></slot> 112 </main> 113 <footer @mousedown=${this._onMoveMouseDown}> 114 <slot name="footer"></slot> 115 </footer> 116 </dialog> 117 `}updated(t){(t.has("dock")||t.has("push")||t.has("modal"))&&this._pushBody(),this.open?this.getRootNode().addEventListener("keydown",(t=>this._keydownHandler(t))):this.getRootNode().removeEventListener("keydown",(t=>this._keydownHandler(t)))}async showModal(){this.modal=!0,this.open=!0,this.isDocked()&&this._onDock(),(await this._dialog).showModal(),this.dispatchEvent(new Event("open"))}async show(){this.modal=!1,this.open=!0,this.isDocked()&&await this._onDock(this.dock)(),(await this._dialog).show(),this.dispatchEvent(new Event("open"))}async close(){this.isDocked()&&await this._onDock(this.dock)(),(await this._dialog).close()}isDocked(){return this.dock&&"none"!==this.dock}_onCloseClick(){this.open=!1}async _onResizeMouseDown(t){if(this._dialogInteraction=st.Resize,t.target instanceof HTMLButtonElement){const e=t.target.getAttribute("data-resize-dir");this._resizeDirection=e}this._onDragMouseDown(t)}async _onMoveMouseDown(t){this.moveable&&(this._dialogInteraction=st.Move,this.dock="none",this._onDragMouseDown(t))}async _onDragMouseDown(t){const e=await this._dialog;this._dragStartX=t.clientX,this._dragStartY=t.clientY,this._dragStartHeight=this.height,this._dragStartWidth=this.width,this._offsetLeft=e.offsetLeft,this._offsetTop=e.offsetTop,document.addEventListener("mouseup",this._onDragMouseUp),document.addEventListener("mousemove",this._onDragMouseMove)}};lt.styles=((t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new s(o,t,i)})` 118 :host { 119 --me-resize-button-size: 8px; 120 display: block; 121 font-family: var(--me-font-family, sans-serif); 122 z-index: var(--me-dialog-z-index, 1255); 123 position: relative; 124 } 125 126 dialog { 127 border-style: var(--me-border-style, solid); 128 border-width: var(--me-border-width, 1px); 129 border-color: var(--me-border-color, #e5e5e5); 130 box-shadow: 0 1px 2px rgb(20 45 82 / 2%), 0 3px 4px rgb(20 45 82 / 3%), 0 5px 8px rgb(20 45 82 / 4%); 131 padding: 0; 132 position: fixed; 133 margin: auto; 134 inset: var(--me-dialog-position-top, 0px) var(--me-dialog-position-right, 0px) var(--me-dialog-position-bottom, 0px) var(--me-dialog-position-left, 0px); 135 overflow: auto; 136 width: var(--me-dialog-width, var(--me-dialog-width-default, fit-content)); 137 height: var(--me-dialog-height, var(--me-dialog-height-default, fit-content)); 138 min-width: var(--me-dialog-min-width, min-content); 139 max-width: calc(100vw - var(--me-dialog-viewport-offset, 80px)); 140 max-height: calc(100vh - var(--me-dialog-viewport-offset, 80px)); 141 z-index: 1000; 142 } 143 144 dialog.is-resizable { 145 resize: both; 146 } 147 148 dialog.is-resize ::slotted(*) { 149 pointer-events: none; 150 } 151 152 dialog[open] { 153 display: flex; 154 flex-direction: column; 155 justify-content: stretch; 156 } 157 158 dialog[data-dock='left'] { 159 height: auto; 160 inset: var(--me-dialog-position-top, 0px) var(--me-dialog-position-right, auto) var(--me-dialog-position-bottom, 0px) var(--me-dialog-position-left, 0px); 161 margin: 0 auto 0 0; 162 max-height: 100dvh; 163 max-width: 100dvw; 164 width: var(--me-dialog-dock-width, var(--me-dialog-width-default, 400px)); 165 } 166 167 dialog[data-dock='right'] { 168 height: auto; 169 inset: var(--me-dialog-position-top, 0px) var(--me-dialog-position-right, 0px) var(--me-dialog-position-bottom, 0px) var(--me-dialog-position-left, auto); 170 margin: 0 0 0 auto; 171 max-height: 100dvh; 172 max-width: 100dvw; 173 width: var(--me-dialog-dock-width, var(--me-dialog-width-default, 400px)); 174 } 175 176 dialog[data-dock='bottom'] { 177 inset: var(--me-dialog-position-top, auto) var(--me-dialog-position-right, 0px) var(--me-dialog-position-bottom, 0px) var(--me-dialog-position-left, 0px); 178 margin: auto 0 0 0; 179 width: auto; 180 max-width: 100dvw; 181 height: var(--me-dialog-dock-height, var(--me-dialog-height-default, 400px)); 182 } 183 184 dialog[data-dock='top'] { 185 inset: var(--me-dialog-position-top, 0px) var(--me-dialog-position-right, 0px) var(--me-dialog-position-bottom, auto) var(--me-dialog-position-left, 0px); 186 margin: 0 0 auto 0; 187 width: auto; 188 max-width: 100dvw; 189 height: var(--me-dialog-dock-height, var(--me-dialog-height-default, 400px)); 190 } 191 192 dialog::backdrop { 193 background-color: black; 194 opacity: 0.4; 195 } 196 197 #dragButton { 198 cursor: move; 199 } 200 201 header { 202 background-color: var(--me-dialog-header-background-color, #fff); 203 display: flex; 204 justify-content: space-between; 205 padding: var(--me-dialog-header-space-inset-y, var(--me-space-inset-y, 5px
205)) var(--me-dialog-header-space-inset-x, var(--me-space-inset-x, 20px)); 206 border-bottom-style: var(--me-border-style, solid); 207 border-bottom-width: var(--me-border-width, 1px); 208 border-bottom-color: var(--me-border-color, #e5e5e5); 209 position: sticky; 210 top: 0; 211 } 212 213 dialog.is-moveable header { 214 cursor: grab; 215 } 216 217 h2 { 218 font-size: var(--me-label-font-size, 16px); 219 line-height: var(--me-label-line-height, 1.1); 220 margin-inline-end: var(--me-space-inset, .5em); 221 } 222 223 main { 224 position: relative; 225 background-color: var(--me-dialog-main-background-color, #fff); 226 padding: var(--me-dialog-main-space-inset-y, var(--me-space-inset-y, 20px)) var(--me-dialog-main-space-inset-y, var(--me-space-inset-y, 20px)); 227 overflow-y: auto; 228 flex-grow: 1; 229 flex-shrink: 1; 230 flex-basis: fit-content; 231 } 232 233 .buttons { 234 display: flex; 235 justify-content: flex-end; 236 margin-inline-end: -10px; 237 } 238 239 form[method='dialog'] { 240 align-items: stretch; 241 display: flex; 242 } 243 244 button { 245 height: var(--me-dialog-icon-button-height, 40px); 246 width: var(--me-dialog-icon-button-width, 40px); 247 border: none; 248 display: flex; 249 align-items: center; 250 justify-content: center; 251 position: relative; 252 border-radius: var(--me-dialog-icon-button-radius, 3px); 253 background-color: var(--me-dialog-icon-button-background-color, #fff); 254 transition: all .2s ease-out; 255 } 256 257 button:hover { 258 background-color: var(--me-dialog-icon-button-background-color-hover, #efefef); 259 } 260 261 button[data-resize-dir] { 262 position: absolute; 263 opacity: .5; 264 border-radius: 0; 265 display: flex; 266 align-items: center; 267 justify-content: center; 268 padding: 0; 269 z-index: 10; 270 } 271 272 button[data-resize-dir]:after { 273 content: ""; 274 display: block; 275 border: 0 #888 solid; 276 } 277 278 button[data-resize-dir="e"], 279 button[data-resize-dir="w"] { 280 cursor: ew-resize; 281 height: auto; 282 width: var(--me-resize-button-size); 283 } 284 285 button[data-resize-dir="e"]:after, 286 button[data-resize-dir="w"]:after { 287 height: 2em; 288 width: 3px; 289 border-left-width: 1px; 290 border-right-width: 1px; 291 } 292 293 button[data-resize-dir="e"] { 294 inset: 0 0 0 auto; 295 justify-content: flex-start; 296 } 297 298 button[data-resize-dir="w"] { 299 inset: 0 auto 0 0; 300 justify-content: flex-end; 301 } 302 303 button[data-resize-dir="n"], 304 button[data-resize-dir="s"] { 305 cursor: ns-resize; 306 height: var(--me-resize-button-size); 307 width: auto; 308 } 309 310 button[data-resize-dir="n"]:after, 311 button[data-resize-dir="s"]:after { 312 width: 2em; 313 height: 3px; 314 border-top-width: 1px; 315 border-bottom-width: 1px; 316 } 317 318 button[data-resize-dir="n"] { 319 inset: 0 0 auto 0; 320 align-items: flex-end; 321 } 322 323 button[data-resize-dir="s"] { 324 inset: auto 0 0 0; 325 align-items: flex-start; 326 } 327 328 ::slotted([slot="footer"]) { 329 background-color: var(--me-dialog-footer-background-color, #fff); 330 padding: var(--me-dialog-footer-space-inset-y, var(--me-space-inset-y, 5px)) var(--me-dialog-footer-space-inset-x, var(--me-space-inset-x, 20px)); 331 border-top-style: var(--me-border-style, solid); 332 border-top-width: var(--me-border-width, 1px); 333 border-top-color: var(--me-border-color, #e5e5e5); 334 position: sticky; 335 bottom: 0; 336 } 337 338 footer ::slotted(button) { 339 } 340 dialog.is-moveable footer { 341 cursor: grab; 342 } 343 344 button i { 345 background-position: center; 346 background-repeat: no-repeat; 347 display: block; 348 height: 50%; 349 width: 50%; 350 } 351 352 button span { 353 position: absolute !important; 354 overflow: hidden; 355 clip: rect(1px,1px,1px,1px); 356 width: 1px; 357 height: 1px; 358 word-wrap: normal; 359 } 360 361 #closeButton i { 362 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z"/></svg>'); 363 } 364 365 #dragButton i { 366 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--><path d="M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l9.4-9.4V224H109.3l9.4-9.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4H224v114.8l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-9.4 9.4V288h114.8l-9.4 9.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l9.4 9.4H288V109.3l9.4 9.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-64-64z"/></svg>'); 367 } 368 369 #dockButton i { 370 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.--><path d="M7.724 65.49A64.308 64.308 0 0 1 32 40.56a63.55 63.55 0 0 1 25.46-8.23c2.15-.22 4.33-.33 6.54-.33h384c35.3 0 64 28.65 64 64v320c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V96c0-2.21.112-4.39.33-6.54a63.634 63.634 0 0 1 7.394-23.97zM48 416c0 8.8 7.16 16 16 16h384c8.8 0 16-7.2 16-16V224H48v192z"/></svg>'); 371 } 372 373 #undockButton i { 374 background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc.-->
374<path d="M432 48H208c-17.7 0-32 14.33-32 32v16h-48V80c0-44.18 35.8-80 80-80h224c44.2 0 80 35.82 80 80v224c0 44.2-35.8 80-80 80h-16v-48h16c17.7 0 32-14.3 32-32V80c0-17.67-14.3-32-32-32zm-112 80c35.3 0 64 28.7 64 64v256c0 35.3-28.7 64-64 64H64c-35.35 0-64-28.7-64-64V192c0-35.3 28.65-64 64-64h256zM64 464h256c8.8 0 16-7.2 16-16V256H48v192c0 8.8 7.16 16 16 16z"/></svg>'); 375 } 376 `,at([et({type:Boolean,reflect:!0})],lt.prototype,"open",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"modal",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"moveable",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"moveBtn",void 0),at([et({type:nt,reflect:!0})],lt.prototype,"dock",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"push",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"dockable",void 0),at([et({type:Boolean,reflect:!0,attribute:"hide-close-button"})],lt.prototype,"hideCloseButton",void 0),at([et({type:Number,reflect:!0})],lt.prototype,"backdropOpacity",void 0),at([et({type:String,attribute:!1})],lt.prototype,"returnValue",void 0),at([et({type:Number,reflect:!0})],lt.prototype,"height",void 0),at([et({type:Number,reflect:!0})],lt.prototype,"width",void 0),at([et({type:Boolean,reflect:!0})],lt.prototype,"resizable",void 0),at([et({type:st,attribute:!1})],lt.prototype,"_dialogInteraction",void 0),at([et({type:String,reflect:!0})],lt.prototype,"title",void 0),at([function(t){return it({descriptor:e=>({async get(){var e;return await this.updateComplete,null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t)},enumerable:!0,configurable:!0})})}("#dialog")],lt.prototype,"_dialog",void 0),lt=at([(t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){customElements.define(t,e)}}})(t,e))("mercury-dialog")],lt)}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.