New apps Added
This commit is contained in:
1 parent
3b1f4bbd75
commit
fefc2c8b5c
1114 files changed
+406637
-154
No files matched your search
@@ -0,0 +1,49 @@
|
||||
function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,s,o,r=[],l=!0,d=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=s.call(n)).done)&&(r.push(a.value),r.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw i}}return r}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function a(e,t,n,a){var i,s=arguments.length,o=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,a);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var s,o={exports:{}};function r(){return s||(s=1,o.exports=function(){var e=1e3,t=6e4,n=36e5,a="millisecond",i="second",s="minute",o="hour",r="day",l="week",d="month",u="quarter",c="year",h="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},_=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},g={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+_(a,2,"0")+":"+_(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(a,d),s=n-i<0,o=t.clone().add(a+(s?-1:1),d);return+(-(a+(n-i)/(s?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:c,w:l,d:r,D:h,h:o,m:s,s:i,ms:a,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",M={};M[y]=f;var k="$isDayjsObject",w=function(e){return e instanceof L||!(!e||!e[k])},b=function e(t,n,a){var i;if(!t)return y;if("string"==typeof t){var s=t.toLowerCase();M[s]&&(i=s),n&&(M[s]=n,i=s);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var r=t.name;M[r]=t,i=r}return!a&&i&&(y=i),i||!a&&y},D=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new L(n)},x=g;x.l=b,x.i=w,x.w=function(e,t){return D(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var L=function(){function f(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[k]=!0}var _=f.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(v);if(a){var i=a[2]-1||0,s=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,s)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return x},_.isValid=function(){return!(this.$d.toString()===m)},_.isSame=function(e,t){var n=D(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return D(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<D(e)},_.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,a=!!x.u(t)||t,u=x.p(e),m=function(e,t){var i=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?i:i.endOf(r)},v=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},p=this.$W,f=this.$M,_=this.$D,g="set"+(this.$u?"UTC":"");switch(u){case c:returLine truncated
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const Z=globalThis,K=Z.ShadowRoot&&(void 0===Z.ShadyCSS||Z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,G=Symbol(),Q=new WeakMap;let X=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==G)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(K&&void 0===e){const n=void 0!==t&&1===t.length;n&&(e=Q.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Q.set(t,e))}return e}toString(){return this.cssText}};const ee=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const i=1===e.length?e[0]:n.reduce((t,n,a)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+e[a+1],e[0]);return new X(i,e,G)},te=K?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return(e=>new X("string"==typeof e?e:e+"",void 0,G))(t)})(e):e;var ne,ae,ie;
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/const se=Object.is,oe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,le=Object.getOwnPropertyNames,de=Object.getOwnPropertySymbols,ue=Object.getPrototypeOf,ce=globalThis,he=ce.trustedTypes,me=he?he.emptyScript:"",ve=ce.reactiveElementPolyfillSupport,pe=(e,t)=>e,fe={toAttribute(e,t){switch(t){case Boolean:e=e?me:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=null!==e;break;case Number:n=null===e?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch(e){n=null}}return n}},_e=(e,t)=>!se(e,t),ge={attribute:!0,type:String,converter:fe,reflect:!1,useDefault:!1,hasChanged:_e};null!==(ne=Symbol.metadata)&&void 0!==ne||(Symbol.metadata=Symbol("metadata")),null!==(ae=ce.litPropertyMetadata)&&void 0!==ae||(ce.litPropertyMetadata=new WeakMap);let ye=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),(null!==(t=this.l)&&void 0!==t?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),a=this.getPropertyDescriptor(e,n,t);void 0!==a&&oe(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){var a;const i=null!==(a=re(this.prototype,e))&&void 0!==a?a:{get(){return this[t]},set(e){this[t]=e}},s=i.get,o=i.set;return{get:s,set(t){const a=null==s?void 0:s.call(this);null!=o&&o.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return null!==(t=this.elementProperties.get(e))&&void 0!==t?t:ge}static _$Ei(){if(this.hasOwnProperty(pe("elementProperties")))return;const e=ue(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pe("properties"))){const e=this.properties,t=[...le(e),...de(e)];for(const n of t)this.createProperty(n,e[n])}const e=this[Symbol.metadata];if(null!==e){const a=litPropertyMetadata.get(e);if(void 0!==a)for(const e of a){var n=t(e,2);const a=n[0],i=n[1];this.elementProperties.set(a,i)}}this._$Eh=new Map;for(const e of this.elementProperties){var a=t(e,2);const n=a[0],i=a[1];{const e=this._$Eu(n,i);void 0!==e&&this._$Eh.set(e,n)}}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const e of n)t.unshift(te(e))}else void 0!==e&&t.push(te(e));return t}static _$Eu(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(e){var t,n;(null!==(t=this._$EO)&&void 0!==t?t:this._$EO=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&(null===(n=e.hostConnected)||void 0===n||n.call(e))}removeController(e){var t;null===(t=this._$EO)||void 0===t||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{if(K)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const n of t){const t=document.createElement("style"),a=Z.litNonce;void 0!==a&&t.setAttribute("nonce",a),t.textContent=n.cssText,e.appendChild(t)}})(t,this.constructor.elementStyles),t}connectedCallback(){var e,t;null!==(e=this.renderRoot)&&void 0!==e||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$EO)||void 0===t||t.forEach(e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$EO)||void 0===e||e.forEach(e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(void 0!==a&&!0===n.reflect){var i;const s=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:fe).toAttribute(t,n.type);this._$Em=e,null==s?this.removeAttribute(a):this.setAttribute(a,s),this._$Em=null}}_$AK(e,t){const n=this.constructor,a=n._$Eh.get(e);if(void 0!==a&&this._$Em!==a){var i,s,o;const e=n.getPropertyOptions(a),r="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==(null===(i=e.converter)||vLine truncated
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/ye.elementStyles=[],ye.shadowRootOptions={mode:"open"},ye[pe("elementProperties")]=new Map,ye[pe("finalized")]=new Map,null!=ve&&ve({ReactiveElement:ye}),(null!==(ie=ce.reactiveElementVersions)&&void 0!==ie?ie:ce.reactiveElementVersions=[]).push("2.1.2");const ke=globalThis,we=e=>e,be=ke.trustedTypes,De=be?be.createPolicy("lit-html",{createHTML:e=>e}):void 0,xe="$lit$",Le="lit$".concat(Math.random().toFixed(9).slice(2),"$"),Te="?"+Le,Ye="<".concat(Te,">"),Ee=document,Se=()=>Ee.createComment(""),He=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Ae=Array.isArray,je="[ \t\n\f\r]",ze=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ce=/-->/g,$e=/>/g,Oe=RegExp(">|".concat(je,"(?:([^\\s\"'>=/]+)(").concat(je,"*=").concat(je,"*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)"),"g"),Ne=/'/g,Fe=/"/g,Pe=/^(?:script|style|textarea|title)$/i,We=(e=>function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return{_$litType$:e,strings:t,values:a}})(1),Ve=Symbol.for("lit-noChange"),Be=Symbol.for("lit-nothing"),Ie=new WeakMap,Re=Ee.createTreeWalker(Ee,129);function Je(e,t){if(!Ae(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==De?De.createHTML(t):t}const Ue=(e,t)=>{const n=e.length-1,a=[];let i,s=2===t?"<svg>":3===t?"<math>":"",o=ze;for(let t=0;t<n;t++){const n=e[t];let r,l,d=-1,u=0;for(;u<n.length&&(o.lastIndex=u,l=o.exec(n),null!==l);)u=o.lastIndex,o===ze?"!--"===l[1]?o=Ce:void 0!==l[1]?o=$e:void 0!==l[2]?(Pe.test(l[2])&&(i=RegExp("</"+l[2],"g")),o=Oe):void 0!==l[3]&&(o=Oe):o===Oe?">"===l[0]?(o=null!=i?i:ze,d=-1):void 0===l[1]?d=-2:(d=o.lastIndex-l[2].length,r=l[1],o=void 0===l[3]?Oe:'"'===l[3]?Fe:Ne):o===Fe||o===Ne?o=Oe:o===Ce||o===$e?o=ze:(o=Oe,i=void 0);const c=o===Oe&&e[t+1].startsWith("/>")?" ":"";s+=o===ze?n+Ye:d>=0?(a.push(r),n.slice(0,d)+xe+n.slice(d)+Le+c):n+Le+(-2===d?t:c)}return[Je(e,s+(e[n]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),a]};class qe{constructor(e,n){let a,i=e.strings,s=e._$litType$;this.parts=[];let o=0,r=0;const l=i.length-1,d=this.parts,u=t(Ue(i,s),2),c=u[0],h=u[1];if(this.el=qe.createElement(c,n),Re.currentNode=this.el.content,2===s||3===s){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(a=Re.nextNode())&&d.length<l;){if(1===a.nodeType){if(a.hasAttributes())for(const e of a.getAttributeNames())if(e.endsWith(xe)){const t=h[r++],n=a.getAttribute(e).split(Le),i=/([.?@])?(.*)/.exec(t);d.push({type:1,index:o,name:i[2],strings:n,ctor:"."===i[1]?Xe:"?"===i[1]?et:"@"===i[1]?tt:Qe}),a.removeAttribute(e)}else e.startsWith(Le)&&(d.push({type:6,index:o}),a.removeAttribute(e));if(Pe.test(a.tagName)){const e=a.textContent.split(Le),t=e.length-1;if(t>0){a.textContent=be?be.emptyScript:"";for(let n=0;n<t;n++)a.append(e[n],Se()),Re.nextNode(),d.push({type:2,index:++o});a.append(e[t],Se())}}}else if(8===a.nodeType)if(a.data===Te)d.push({type:2,index:o});else{let e=-1;for(;-1!==(e=a.data.indexOf(Le,e+1));)d.push({type:7,index:o}),e+=Le.length-1}o++}}static createElement(e,t){const n=Ee.createElement("template");return n.innerHTML=e,n}}function Ze(e,t){var n,a,i,s,o;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,l=arguments.length>3?arguments[3]:void 0;if(t===Ve)return t;let d=void 0!==l?null===(n=r._$Co)||void 0===n?void 0:n[l]:r._$Cl;const u=He(t)?void 0:t._$litDirective$;return(null===(a=d)||void 0===a?void 0:a.constructor)!==u&&(null!==(i=d)&&void 0!==i&&null!==(s=i._$AO)&&void 0!==s&&s.call(i,!1),void 0===u?d=void 0:(d=new u(e),d._$AT(e,r,l)),void 0!==l?(null!==(o=r._$Co)&&void 0!==o?o:r._$Co=[])[l]=d:r._$Cl=d),void 0!==d&&(t=Ze(e,d._$AS(e,t.values),d,l)),t}class Ke{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const n=this._$AD,a=n.el.content,i=n.parts,s=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:Ee).importNode(a,!0);Re.currentNode=s;let o=Re.nextNode(),r=0,l=0,d=i[0];for(;void 0!==d;){var u;if(r===d.index){let t;2===d.type?t=new Ge(o,o.nextSibling,this,e):1===d.type?t=new d.ctor(o,d.name,d.strings,this,e):6===d.type&&(t=new nt(o,this,e)),this._$AV.push(t),d=i[++l]}r!==(null===(u=d)||void 0===u?void 0:u.index)&&(o=Re.nextNode(),r++)}return Re.currentNode=Ee,s}p(e){let t=0;for(const n of this._$AV)void 0!==n&&(void 0!==n.strings?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Ge{get _$AU(){var e,t;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cv}constructor(e,t,n,a){var i;this.type=2,this._$AH=Be,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=a,this._$Cv=null===(i=null==a?void 0:a.isConnected)||void 0===i||i}get parentNode(){var e;let t=this._$AA.parentNode;const n=this._$AM;return void 0!==n&&11===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e){e=Ze(this,e,arguments.length>1&&void 0!==argumentLine truncated
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/const ot=globalThis;let rt=class extends ye{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,n)=>{var a;const i=null!==(a=null==n?void 0:n.renderBefore)&&void 0!==a?a:t;let s=i._$litPart$;if(void 0===s){var o;const e=null!==(o=null==n?void 0:n.renderBefore)&&void 0!==o?o:null;i._$litPart$=s=new Ge(t.insertBefore(Se(),e),e,void 0,null!=n?n:{})}return s._$AI(e),s})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}render(){return Ve}};rt._$litElement$=!0,rt.finalized=!0,null===(it=ot.litElementHydrateSupport)||void 0===it||it.call(ot,{LitElement:rt});const lt=ot.litElementPolyfillSupport;null==lt||lt({LitElement:rt}),(null!==(st=ot.litElementVersions)&&void 0!==st?st:ot.litElementVersions=[]).push("4.2.2");
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const dt=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ut={attribute:!0,type:String,converter:fe,reflect:!1,hasChanged:_e};
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/function ct(e){return(t,n)=>"object"==typeof n?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const a=n.kind,i=n.metadata;let s=globalThis.litPropertyMetadata.get(i);if(void 0===s&&globalThis.litPropertyMetadata.set(i,s=new Map),"setter"===a&&((e=Object.create(e)).wrapped=!0),s.set(n.name,e),"accessor"===a){const a=n.name;return{set(n){const i=t.get.call(this);t.set.call(this,n),this.requestUpdate(a,i,e,!0,n)},init(t){return void 0!==t&&this.C(a,void 0,e,t),t}}}if("setter"===a){const a=n.name;return function(n){const i=this[a];t.call(this,n),this.requestUpdate(a,i,e,!0,n)}}throw Error("Unsupported decorator location: "+a)}(e,t,n):((e,t,n)=>{const a=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),a?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/function ht(e){return ct({...e,state:!0,attribute:!1})}var mt,vt={exports:{}};mt||(mt=1,vt.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return e+(1===e||3===e?"r":2===e?"n":4===e?"t":"è")}};return n.default.locale(a,null,!0),a}(r()));var pt,ft={exports:{}};pt||(pt=1,ft.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function a(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,i){var s=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?s+(a(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?s+(a(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?s+(a(e)?"dny":"dní"):s+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?s+(a(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?s+(a(e)?"roky":"let"):s+"lety"}}var s={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(s,null,!0),s}(r()));var _t,gt={exports:{}};_t||(_t=1,gt.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return n.default.locale(a,null,!0),a}(r()));var yt,Mt={exports:{}};yt||(yt=1,Mt.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function i(e,t,n){var i=a[n];return Array.isArray(i)&&(i=i[t?0:1]),i.replace("%d",e)}var s={name:"de-at",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(s,null,!0),s}(r()));var kt,wt={exports:{}};kt||(kt=1,wt.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a={s:"ein paar Sekunden",m:["eine Minute","einer MinuteLine truncated
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const xo=2;class Lo{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/class To extends Lo{constructor(e){if(super(e),this.it=Be,e.type!==xo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Be||null==e)return this._t=void 0,this.it=e;if(e===Ve)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}To.directiveName="unsafeHTML",To.resultType=1;const Yo=(e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return{_$litDirective$:e,values:n}})(To);class Eo{constructor(e,t){this._eventClass=e,this._globalConfig=t,this.isEmpty=!1}get rawEvent(){return this._eventClass}get id(){return(this.rawEvent.id||this.rawEvent.uid)+this.title}get originCalendar(){return this.rawEvent.originCalendar}get entity(){return this._eventClass.hassEntity||{}}get entityConfig(){return this._eventClass.entity||{}}get showMultiDay(){var e,t;return null!==(e=null!==(t=this.entityConfig.showMultiDay)&&void 0!==t?t:this._globalConfig.showMultiDay)&&void 0!==e&&e}set originName(e){this._customOriginName=e}get originName(){if(void 0!==this._customOriginName)return this._customOriginName;const e=this.originCalendar;if(e&&e.name)return e.name;const t=this.entity;return t&&t.attributes&&t.attributes.friendly_name?t.attributes.friendly_name:e&&e.entity?e.entity:t&&t.entity||t||"Unknown"}get startDateTime(){return void 0===this._startDateTime&&(this.rawEvent.start.date?this._startDateTime=this._processDate(d(this.rawEvent.start.date,"YYYY-MM-DD").startOf("day")):this._startDateTime=this._processDate(d(this.rawEvent.start.dateTime))),this._startDateTime.clone()}get endDateTime(){return void 0===this._endDateTime&&(this.rawEvent.end.date?this._endDateTime=this._processDate(d(this.rawEvent.end.date,"YYYY-MM-DD").subtract(1,"day").endOf("day"),!0):this._endDateTime=this._processDate(d(this.rawEvent.end.dateTime),!0)),this._endDateTime.clone()}get addDays(){return void 0!==this.rawEvent.addDays&&this.rawEvent.addDays}get daysLong(){if(this.showMultiDay)return this.rawEvent.daysLong;{const e=Math.round(this.endDateTime.subtract(1,"minutes").endOf("day").diff(this.startDateTime.startOf("day"),"hours")/24);return e>1?e:void 0}}get isFirstDay(){return this.rawEvent._isFirstDay}get isLastDay(){return this.rawEvent._isLastDay}_processDate(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!1!==this.addDays&&(!t&&this.addDays&&(e=e.add(this.addDays,"days")),!this.isLastDay&&t?e=this.startDateTime.endOf("day"):this.isFirstDay||t||(e=e.startOf("day"))),e}get isRecurring(){return!!this.rawEvent.recurringEventId}get isDeclined(){return 0!==(this.rawEvent.attendees||[]).filter(e=>e.self&&"declined"===e.responseStatus).length}get isRunning(){return this.startDateTime.isBefore(d())&&this.endDateTime.isAfter(d())}get isFinished(){return this.endDateTime.isBefore(d())}get htmlLink(){return this.rawEvent.htmlLink||void 0}get sourceUrl(){return this.rawEvent.source&&this.rawEvent.source.url||""}get isMultiDay(){if(this.endDateTime.diff(this.startDateTime,"hours")>24)return!0;const e=Math.abs(this.startDateTime.date()-this.endDateTime.subtract(1,"minute").date());return(1!==e||0!==this.endDateTime.hour()||0!==this.endDateTime.minute())&&!!e}get isAllDayEvent(){return!(!this.rawEvent.start.date||!this.rawEvent.end.date)||(!(this.isFirstDay||this.isLastDay||!this.daysLong||!this.showMultiDay)||(!this.rawEvent.start.dateTime||!this.rawEvent.end.dateTime)&&void 0)}split(){const e=[];let t=2;const n=Math.round(this.endDateTime.subtract(1,"minutes").endOf("day").diff(this.startDateTime.startOf("day"),"hours")/24);n&&(t=n);for(let n=0;n<t;n++){const a=JSON.parse(JSON.stringify(this.rawEvent));a.addDays=n,a.daysLong=t,a._isFirstDay=0===n,a._isLastDay=n===t-1&&n>0,e.push(new Eo(a,this._globalConfig))}return e}get titleColor(){return this.entityConfig.eventTitleColor?this.entityConfig.eventTitleColor:"var(--primary-text-color)"}get rawTitle(){var e,t;return this.rawEvent.summary?this.rawEvent.summary:null!==(e=null!==(t=this.entityConfig.eventTitle)&&void 0!==t?t:this._globalConfig.eventTitle)&&void 0!==e?e:""}get title(){return function(e,t){if(!t||0===t.length)return e;let n=e;for(const e of t)if(e&&"string"==typeof e.from&&""!==e.from)try{var a;const t=new RegExp(e.from,"gi");n=n.replace(t,null!==(a=e.to)&&void 0!==a?a:"")}catch{}return n.trim()}(this.rawTitle,this.entityConfig.titleReplace)}get description(){return new RegExp("^Observance","i").test(this.rawEvent.description)?"":this.rawEvent.description}get startTimeToShow(){const e=this.startDateTime;return this._globalConfig._showPastEvents||!d(e).isBefore(d().startOf("day"))||this._globalConfig.startDaysAhead<0?e:d().startOf("day")}get daysToSort(){return this.startTimeToShow.format("YYYYMMDD")}get location(){return this.rawEvent.location?this.rawEvent.location.split(" ").join("+"):""}get addreLine truncated
|
||||
Binary file not shown.
Reference in new issue
Block a user