iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 34.2 kB
JavaScript
/*! For license information please see 51273.c3b9d20f39592d0b.js.LICENSE.txt */
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["51273"],{54380:function(t,e,n){n.d(e,{Ce:()=>Ct,Et:()=>P,Uw:()=>Et,Xv:()=>S,dK:()=>kt,i:()=>xt,oF:()=>It,oM:()=>O,y2:()=>vt});var i;n(52247),n(92745),n(61893),n(9359),n(56475),n(31526),n(19423),n(40251),n(19134),n(5740),n(97003),n(32114),n(81804);function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}i="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var a,c=i,u=["","webkit","Moz","MS","ms","o"],h="undefined"==typeof document?{style:{}}:document.createElement("div"),l=Math.round,p=Math.abs,f=Date.now;function d(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if((i=(n=u[o])?n+r:e)in t)return i;o++}}a="undefined"==typeof window?{}:window;var v=d(h.style,"touchAction"),m=void 0!==v;var g="compute",y="auto",T="manipulation",b="none",_="pan-x",E="pan-y",w=function(){if(!m)return!1;var t={},e=a.CSS&&a.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return t[n]=!e||a.CSS.supports("touch-action",n)})),t}(),A="ontouchstart"in a,C=void 0!==d(a,"PointerEvent"),I=A&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D="touch",N="mouse",x=16,S=6,P=24,O=S|P,k=["x","y"],$=["clientX","clientY"];function R(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function M(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function z(t,e){return t.indexOf(e)>-1}var F=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===g&&(t=this.compute()),m&&this.manager.element.style&&w[t]&&(this.manager.element.style[v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return R(this.manager.recognizers,(function(e){M(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(z(t,b))return b;var e=z(t,_),n=z(t,E);return e&&n?b:e||n?e?_:E:z(t,T)?T:y}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=z(i,b)&&!w[b],o=z(i,E)&&!w[E],s=z(i,_)&&!w[_];if(r){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}if(!s||!o)return r||o&&n&S||s&&n&P?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Y(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function X(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:l(n/e),y:l(i/e)}}function U(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:l(t.pointers[n].clientX),clientY:l(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:X(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t,e,n){n||(n=k);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function W(t,e,n){n||(n=k);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function L(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:x}function H(t,e,n){return{x:e/t||0,y:n/t||0}}function V(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=U(e)),r>1&&!n.firstMultiple?n.firstMultiple=U(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,c=e.center=X(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=W(a,c),e.distance=q(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=L(e.deltaX,e.deltaY);var u,h,l=H(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=p(l.x)>p(l.y)?l.x:l.y,e.scale=s?(u=s.pointers,q((h=i)[0],h[1],$)/q(u[0],u[1],$)):1,e.rotation=s?function(t,e){return W(e[1],e[0],$)+W(t[1],t[0],$)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var c=e.deltaX-s.deltaX,u=e.deltaY-s.deltaY,h=H(a,c,u);i=h.x,r=h.y,n=p(h.x)>p(h.y)?h.x:h.y,o=L(c,u),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var d,v=t.element,m=e.srcEvent;Y(d=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,v)&&(v=d),e.target=v}function j(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&e&&i-r==0,s=12&e&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,V(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Z(t){return t.trim().split(/\s+/g)}function G(t,e,n){R(Z(e),(function(e){t.addEventListener(e,n,!1)}))}function B(t,e,n){R(Z(e),(function(e){t.removeEventListener(e,n,!1)}))}function Q(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var J=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){M(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&G(this.element,this.evEl,this.domHandler),this.evTarget&&G(this.target,this.evTarget,this.domHandler),this.evWin&&G(Q(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(Q(this.element),this.evWin,this.domHandler)},t}();function K(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:D,3:"pen",4:N,5:"kinect"},nt="pointerdown",it="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(nt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel");var rt=function(t){function e(){var n,i=e.prototype;return i.evEl=nt,i.evWin=it,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return o(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=tt[i],o=et[t.pointerType]||t.pointerType,s=o===D,a=K(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(J);function ot(t){return Array.prototype.slice.call(t,0)}function st(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];K(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}var at={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ct=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return o(e,t),e.prototype.handler=function(t){var e=at[t.type],n=ut.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})},e}(J);function ut(t,e){var n,i,r=ot(t.touches),o=this.targetIds;if(3&e&&1===r.length)return o[r[0].identifier]=!0,[r,r];var s=ot(t.changedTouches),a=[],c=this.target;if(i=r.filter((function(t){return Y(t.target,c)})),1===e)for(n=0;n<i.length;)o[i[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),12&e&&delete o[s[n].identifier],n++;return a.length?[st(i.concat(a),"identifier",!0),a]:void 0}var ht={mousedown:1,mousemove:2,mouseup:4},lt=function(t){function e(){var n,i=e.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return o(e,t),e.prototype.handler=function(t){var e=ht[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:N,srcEvent:t}))},e}(J);function pt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function ft(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,pt.call(this,e)):12&t&&pt.call(this,e)}function dt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}var vt=function(){return function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var r=n.pointerType===D,o=n.pointerType===N;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ft.call(s(s(i)),e,n);else if(o&&dt.call(s(s(i)),n))return;i.callback(t,e,n)}},i.touch=new ct(i.manager,i.handler),i.mouse=new lt(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return o(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(J)}();function mt(t,e,n){return!!Array.isArray(t)&&(R(t,n[e],n),!0)}var gt=32,yt=1;function Tt(t,e){var n=e.manager;return n?n.get(t):t}function bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var _t=function(){function t(t){void 0===t&&(t={}),this.options=r({enable:!0},t),this.id=yt++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(mt(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Tt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return mt(t,"dropRecognizeWith",this)||(t=Tt(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(mt(t,"requireFailure",this))return this;var e=this.requireFail;return-1===K(e,t=Tt(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(mt(t,"dropRequireFailure",this))return this;t=Tt(t,this);var e=K(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+bt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+bt(n))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=gt},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=c({},t);if(!M(this.options.enable,[this,e]))return this.reset(),void(this.state=gt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Et=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,r({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}o(e,t);var n=e.prototype;return n.getTouchAction=function(){return[T]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&o&&i){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||q(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.interval),2):8}return gt},n.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=gt}),this.options.interval),gt},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(_t),wt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({pointers:1},e))||this}o(e,t);var n=e.prototype;return n.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},n.process=function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:gt},e}(_t);function At(t){return t===x?"down":8===t?"up":2===t?"left":4===t?"right":""}var Ct=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,r({event:"pan",threshold:10,pointers:1,direction:O},e))||this).pX=null,n.pY=null,n}o(e,t);var n=e.prototype;return n.getTouchAction=function(){var t=this.options.direction,e=[];return t&S&&e.push(E),t&P&&e.push(_),e},n.directionTest=function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&S?(r=0===o?1:o<0?2:4,n=o!==this.pX,i=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:x,n=s!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return wt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},n.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=At(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(wt),It=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({event:"swipe",threshold:10,velocity:.3,direction:S|P,pointers:1},e))||this}o(e,t);var n=e.prototype;return n.getTouchAction=function(){return Ct.prototype.getTouchAction.call(this)},n.attrTest=function(e){var n,i=this.options.direction;return i&(S|P)?n=e.overallVelocity:i&S?n=e.overallVelocityX:i&P&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&i&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&p(n)>this.options.velocity&&4&e.eventType},n.emit=function(t){var e=At(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(wt),Dt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({event:"pinch",threshold:0,pointers:2},e))||this}o(e,t);var n=e.prototype;return n.getTouchAction=function(){return[b]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},n.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},e}(wt),Nt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({event:"rotate",threshold:0,pointers:2},e))||this}o(e,t);var n=e.prototype;return n.getTouchAction=function(){return[b]},n.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(wt),xt=function(t){function e(e){var n;return void 0===e&&(e={}),(n=t.call(this,r({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,n._input=null,n}o(e,t);var n=e.prototype;return n.getTouchAction=function(){return[y]},n.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,r=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!r||!i||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),n.time);else if(4&t.eventType)return 8;return gt},n.reset=function(){clearTimeout(this._timer)},n.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))},e}(_t),St={domEvents:!1,touchAction:g,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Pt=[[Nt,{enable:!1}],[Dt,{enable:!1},["rotate"]],[It,{direction:S}],[Ct,{direction:S},["swipe"]],[Et],[Et,{event:"doubletap",taps:2},["tap"]],[xt]];function Ot(t,e){var n,i=t.element;i.style&&(R(t.options.cssProps,(function(r,o){n=d(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var kt=function(){function t(t,e){var n,i=this;this.options=c({},St,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(C?rt:I?ct:A?vt:lt))(n,j),this.touchAction=new F(this,this.options.touchAction),Ot(this,!0),R(this.options.recognizers,(function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(e.curRecognizer=null,r=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(e.curRecognizer=n,r=n),o++}},e.get=function(t){if(t instanceof _t)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(mt(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(mt(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=K(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return R(Z(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return R(Z(t),(function(t){e?n[t]&&n[t].splice(K(n[t],e),1):delete n[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),$t={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Rt=function(t){function e(){var n,i=e.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return o(e,t),e.prototype.handler=function(t){var e=$t[t.type];if(1===e&&(this.started=!0),this.started){var n=Mt.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})}},e}(J);function Mt(t,e){var n=ot(t.touches),i=ot(t.changedTouches);return 12&e&&(n=st(n.concat(i),"identifier",!0)),[n,i]}function zt(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=window.console&&(window.console.warn||window.console.log);return r&&r.call(window.console,i,n),t.apply(this,arguments)}}var Ft=zt((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),Yt=zt((function(t,e){return Ft(t,e,!0)}),"merge","Use `assign`.");function Xt(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(i,n)}function Ut(t,e){return function(){return t.apply(e,arguments)}}var qt=function(){var t=function(t,e){return void 0===e&&(e={}),new kt(t,r({recognizers:Pt.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=O,t.DIRECTION_DOWN=x,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=S,t.DIRECTION_VERTICAL=P,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=x,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=gt,t.Manager=kt,t.Input=J,t.TouchAction=F,t.TouchInput=ct,t.MouseInput=lt,t.PointerEventInput=rt,t.TouchMouseInput=vt,t.SingleTouchInput=Rt,t.Recognizer=_t,t.AttrRecognizer=wt,t.Tap=Et,t.Pan=Ct,t.Swipe=It,t.Pinch=Dt,t.Rotate=Nt,t.Press=xt,t.on=G,t.off=B,t.each=R,t.merge=Yt,t.extend=Ft,t.bindFn=Ut,t.assign=c,t.inherit=Xt,t.bindFn=Ut,t.prefixed=d,t.toArray=ot,t.inArray=K,t.uniqueArray=st,t.splitStr=Z,t.boolOrFn=M,t.hasParent=Y,t.addEventListeners=G,t.removeEventListeners=B,t.defaults=c({},St,{preset:Pt}),t}();qt.defaults},93958:function(t,e,n){n.d(e,{F:()=>v});n(71695),n(40251),n(47021);var i=n(9065),r=n(50778),o=n(92444),s=n(76688);let a=class extends o.A{};a.styles=[s.W],a=(0,i.__decorate)([(0,r.Mo)("mwc-checkbox")],a);var c=n(57243),u=n(35359),h=n(65703);let l,p,f,d=t=>t;class v extends h.K{constructor(){super(...arguments),this.left=!1,this.graphic="control"}render(){const t={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},e=this.renderText(),n=this.graphic&&"control"!==this.graphic&&!this.left?this.renderGraphic():(0,c.dy)(l||(l=d``)),i=this.hasMeta&&this.left?this.renderMeta():(0,c.dy)(p||(p=d``)),r=this.renderRipple();return(0,c.dy)(f||(f=d` ${0} ${0} ${0} <span class="${0}"> <mwc-checkbox reducedTouchTarget tabindex="${0}" .checked="${0}" ?disabled="${0}" ="${0}"> </mwc-checkbox> </span> ${0} ${0}`),r,n,this.left?"":e,(0,u.$)(t),this.tabindex,this.selected,this.disabled,this.onChange,this.left?e:"",i)}async onChange(t){const e=t.target;this.selected===e.checked||(this._skipPropRequest=!0,this.selected=e.checked,await this.updateComplete,this._skipPropRequest=!1)}}(0,i.__decorate)([(0,r.IO)("slot")],v.prototype,"slotElement",void 0),(0,i.__decorate)([(0,r.IO)("mwc-checkbox")],v.prototype,"checkboxElement",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean})],v.prototype,"left",void 0),(0,i.__decorate)([(0,r.Cb)({type:String,reflect:!0})],v.prototype,"graphic",void 0)},97536:function(t,e,n){n.d(e,{W:()=>r});let i;const r=(0,n(57243).iv)(i||(i=(t=>t)`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`))},86256:function(t,e,n){var i=n(88045),r=n(72616),o=n(95011),s=RangeError;t.exports=function(t){var e=r(o(this)),n="",a=i(t);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},35638:function(t,e,n){var i=n(72878);t.exports=i(1..valueOf)},49278:function(t,e,n){var i=n(40810),r=n(72878),o=n(88045),s=n(35638),a=n(86256),c=n(29660),u=RangeError,h=String,l=Math.floor,p=r(a),f=r("".slice),d=r(1..toFixed),v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)},m=function(t,e,n){for(var i=-1,r=n;++i<6;)r+=e*t[i],t[i]=r%1e7,r=l(r/1e7)},g=function(t,e){for(var n=6,i=0;--n>=0;)i+=t[n],t[n]=l(i/e),i=i%e*1e7},y=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var i=h(t[e]);n=""===n?i:n+p("0",7-i.length)+i}return n};i({target:"Number",proto:!0,forced:c((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!c((function(){d({})}))},{toFixed:function(t){var e,n,i,r,a=s(this),c=o(t),l=[0,0,0,0,0,0],d="",T="0";if(c<0||c>20)throw new u("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return h(a);if(a<0&&(d="-",a=-a),a>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(a*v(2,69,1))-69)<0?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(m(l,0,n),i=c;i>=7;)m(l,1e7,0),i-=7;for(m(l,v(10,i,1),0),i=e-1;i>=23;)g(l,1<<23),i-=23;g(l,1<<i),m(l,1,1),g(l,2),T=y(l)}else m(l,0,n),m(l,1<<-e,0),T=y(l)+p("0",c);return T=c>0?d+((r=T.length)<=c?"0."+p("0",c-r)+T:f(T,0,r-c)+"."+f(T,r-c)):d+T}})},32517:function(t,e,n){var i=n(1569),r=n(85779),o=n(27803),s=n(31126),a=n(29660),c=i.RegExp,u=c.prototype;r&&a((function(){var t=!0;try{c(".","d")}catch(a){t=!1}var e={},n="",i=t?"dgimsy":"gimsy",r=function(t,i){Object.defineProperty(e,t,{get:function(){return n+=i,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)r(s,o[s]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(e)!==i||n!==i}))&&o(u,"flags",{configurable:!0,get:s})},18672:function(t,e,n){n.a(t,(async function(t,i){try{n.d(e,{Z:()=>a});var r=n(31948),o=(n(71695),n(40251),n(92519),n(42179),n(89256),n(24931),n(88463),n(57449),n(19814),n(47021),n(11133)),s=t([r]);r=(s.then?(await s)():s)[0];class a{constructor(t,{target:e,config:n,callback:i,skipInitial:r}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(null!=e?e:t),this.l=n,this.o=null!=r?r:this.o,this.callback=i,o.s||(window.ResizeObserver?(this.u=new ResizeObserver((t=>{this.handleChanges(t),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver."))}handleChanges(t){var e;this.value=null===(e=this.callback)||void 0===e?void 0:e.call(this,t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}i()}catch(a){i(a)}}))},79679:function(t,e,n){function i(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const n=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(n);return i||e.preventDefault(),i}n.d(e,{e:()=>i})},61073:function(t,e,n){n.d(e,{N:()=>o,b:()=>i});n(67351),n(63721);const i=Symbol("internals"),r=Symbol("privateInternals");function o(t){return class extends t{get[i](){return this[r]||(this[r]=this.attachInternals()),this[r]}}}},19484:function(t,e,n){n.d(e,{$u:()=>s,hz:()=>c});n(22152),n(63721),n(52247);var i=n(9065),r=n(50778),o=n(61073);const s=Symbol("getFormValue"),a=Symbol("getFormState");function c(t){class e extends t{get form(){return this[o.b].form}get labels(){return this[o.b].labels}get name(){var t;return null!==(t=this.getAttribute("name"))&&void 0!==t?t:""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,n){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,n);else{const n="disabled"===t?null!==e:e;this.requestUpdate(t,n)}}requestUpdate(t,e,n){super.requestUpdate(t,e,n),this[o.b].setFormValue(this[s](),this[a]())}[s](){throw new Error("Implement [getFormValue]")}[a](){return this[s]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,(0,i.__decorate)([(0,r.Cb)({noAccessor:!0})],e.prototype,"name",null),(0,i.__decorate)([(0,r.Cb)({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}},74760:function(t,e,n){n.d(e,{D:()=>s});n(95078),n(23669),n(69235),n(12385),n(19134),n(5740),n(11740),n(44495),n(97003),n(32114);var i=n(76808),r=n(53907),o=n(18112);function s(t,e){var n;const s=()=>(0,r.L)(null==e?void 0:e.in,NaN),v=null!==(n=null==e?void 0:e.additionalDigits)&&void 0!==n?n:2,m=function(t){const e={},n=t.split(a.dateTimeDelimiter);let i;if(n.length>2)return e;/:/.test(n[0])?i=n[0]:(e.date=n[0],i=n[1],a.timeZoneDelimiter.test(e.date)&&(e.date=t.split(a.timeZoneDelimiter)[0],i=t.substr(e.date.length,t.length)));if(i){const t=a.timezone.exec(i);t?(e.time=i.replace(t[1],""),e.timezone=t[1]):e.time=i}return e}(t);let g;if(m.date){const t=function(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),i=t.match(n);if(!i)return{year:NaN,restDateString:""};const r=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:null===o?r:100*o,restDateString:t.slice((i[1]||i[2]).length)}}(m.date,v);g=function(t,e){if(null===e)return new Date(NaN);const n=t.match(c);if(!n)return new Date(NaN);const i=!!n[4],r=l(n[1]),o=l(n[2])-1,s=l(n[3]),a=l(n[4]),u=l(n[5])-1;if(i)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,a,u)?function(t,e,n){const i=new Date(0);i.setUTCFullYear(t,0,4);const r=i.getUTCDay()||7,o=7*(e-1)+n+1-r;return i.setUTCDate(i.getUTCDate()+o),i}(e,a,u):new Date(NaN);{const t=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(f[e]||(d(t)?29:28))}(e,o,s)&&function(t,e){return e>=1&&e<=(d(t)?366:365)}(e,r)?(t.setUTCFullYear(e,o,Math.max(r,s)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!g||isNaN(+g))return s();const y=+g;let T,b=0;if(m.time&&(b=function(t){const e=t.match(u);if(!e)return NaN;const n=p(e[1]),r=p(e[2]),o=p(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,o))return NaN;return n*i.vh+r*i.yJ+1e3*o}(m.time),isNaN(b)))return s();if(!m.timezone){const t=new Date(y+b),n=(0,o.Q)(0,null==e?void 0:e.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return T=function(t){if("Z"===t)return 0;const e=t.match(h);if(!e)return 0;const n="+"===e[1]?-1:1,r=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,o))return NaN;return n*(r*i.vh+o*i.yJ)}(m.timezone),isNaN(T)?s():(0,o.Q)(y+b+T,null==e?void 0:e.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},c=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,h=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(t){return t?parseInt(t):1}function p(t){return t&&parseFloat(t.replace(",","."))||0}const f=[31,null,31,30,31,30,31,31,30,31,30,31];function d(t){return t%400==0||t%4==0&&t%100!=0}},1714:function(t,e,n){n.d(e,{sR:()=>l});n(71695),n(92519),n(42179),n(89256),n(24931),n(88463),n(57449),n(19814),n(47021);var i=n(53232),r=n(45779);const o=(t,e)=>{var n,i;const r=t._$AN;if(void 0===r)return!1;for(const s of r)null===(i=(n=s)._$AO)||void 0===i||i.call(n,e,!1),o(s,e);return!0},s=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===(null==n?void 0:n.size))},a=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),h(e)}};function c(t){void 0!==this._$AN?(s(this),this._$AM=t,a(this)):this._$AM=t}function u(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let a=n;a<i.length;a++)o(i[a],!1),s(i[a]);else null!=i&&(o(i,!1),s(i));else o(this,t)}const h=t=>{var e,n,i,o;t.type==r.pX.CHILD&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=u),null!==(n=(o=t)._$AQ)&&void 0!==n||(o._$AQ=c))};class l extends r.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),a(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,i;t!==this.isConnected&&(this.isConnected=t,t?null===(n=this.reconnected)||void 0===n||n.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(o(this,t),s(this))}setValue(t){if((0,i.OR)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}},91583:function(t,e,n){n.d(e,{r:()=>a});n(52247),n(71695),n(47021);var i=n(2841),r=n(45779),o=n(53232);const s=(t,e,n)=>{const i=new Map;for(let r=e;r<=n;r++)i.set(t[r],r);return i},a=(0,r.XM)(class extends r.Xe{constructor(t){if(super(t),t.type!==r.pX.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,n){let i;void 0===n?n=e:void 0!==e&&(i=e);const r=[],o=[];let s=0;for(const a of t)r[s]=i?i(a,s):s,o[s]=n(a,s),s++;return{values:o,keys:r}}render(t,e,n){return this.ct(t,e,n).values}update(t,[e,n,r]){var a;const c=(0,o.i9)(t),{values:u,keys:h}=this.ct(e,n,r);if(!Array.isArray(c))return this.ut=h,u;const l=null!==(a=this.ut)&&void 0!==a?a:this.ut=[],p=[];let f,d,v=0,m=c.length-1,g=0,y=u.length-1;for(;v<=m&&g<=y;)if(null===c[v])v++;else if(null===c[m])m--;else if(l[v]===h[g])p[g]=(0,o.fk)(c[v],u[g]),v++,g++;else if(l[m]===h[y])p[y]=(0,o.fk)(c[m],u[y]),m--,y--;else if(l[v]===h[y])p[y]=(0,o.fk)(c[v],u[y]),(0,o._Y)(t,p[y+1],c[v]),v++,y--;else if(l[m]===h[g])p[g]=(0,o.fk)(c[m],u[g]),(0,o._Y)(t,c[v],c[m]),m--,g++;else if(void 0===f&&(f=s(h,g,y),d=s(l,v,m)),f.has(l[v]))if(f.has(l[m])){const e=d.get(h[g]),n=void 0!==e?c[e]:null;if(null===n){const e=(0,o._Y)(t,c[v]);(0,o.fk)(e,u[g]),p[g]=e}else p[g]=(0,o.fk)(n,u[g]),(0,o._Y)(t,c[v],n),c[e]=null;g++}else(0,o.ws)(c[m]),m--;else(0,o.ws)(c[v]),v++;for(;g<=y;){const e=(0,o._Y)(t,p[y+1]);(0,o.fk)(e,u[g]),p[g++]=e}for(;v<=m;){const t=c[v++];null!==t&&(0,o.ws)(t)}return this.ut=h,(0,o.hl)(t,p),i.Jb}})}}]);
//# sourceMappingURL=51273.c3b9d20f39592d0b.js.map