iobroker.lovelace
Version:
With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI
3 lines • 32.1 kB
JavaScript
/*! For license information please see 89522.634f472f04bc7525.js.LICENSE.txt */
export const __webpack_ids__=["89522"];export const __webpack_modules__={54380:function(t,e,n){n.d(e,{Ce:()=>wt,Et:()=>P,Uw:()=>Et,Xv:()=>S,dK:()=>$t,i:()=>xt,oF:()=>It,oM:()=>O,y2:()=>vt});var i;n(92745),n(9359),n(56475),n(31526);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 s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(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,d=Date.now;function f(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((i=(n=u[s])?n+r:e)in t)return i;s++}}a="undefined"==typeof window?{}:window;var v=f(h.style,"touchAction"),m=void 0!==v;var g="compute",y="auto",T="manipulation",b="none",_="pan-x",E="pan-y",A=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}(),C="ontouchstart"in a,w=void 0!==f(a,"PointerEvent"),I=C&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D="touch",N="mouse",x=16,S=6,P=24,O=S|P,$=["x","y"],k=["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 Y=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&&A[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)&&!A[b],s=z(i,E)&&!A[E],o=z(i,_)&&!A[_];if(r){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}if(!o||!s)return r||s&&n&S||o&&n&P?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function F(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:d(),pointers:e,center:X(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t,e,n){n||(n=$);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=$);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 s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,c=e.center=X(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=W(a,c),e.distance=q(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.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=o?(u=o.pointers,q((h=i)[0],h[1],k)/q(u[0],u[1],k)):1,e.rotation=o?function(t,e){return W(e[1],e[0],k)+W(t[1],t[0],k)}(o.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,s,o=t.lastInterval||e,a=e.timeStamp-o.timeStamp;if(8!==e.eventType&&(a>25||void 0===o.velocity)){var c=e.deltaX-o.deltaX,u=e.deltaY-o.deltaY,h=H(a,c,u);i=h.x,r=h.y,n=p(h.x)>p(h.y)?h.x:h.y,s=L(c,u),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var f,v=t.element,m=e.srcEvent;F(f=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,v)&&(v=f),e.target=v}function j(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(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 s(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=tt[i],s=et[t.pointerType]||t.pointerType,o=s===D,a=K(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?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:s,srcEvent:t}),n&&e.splice(a,1))},e}(J);function st(t){return Array.prototype.slice.call(t,0)}function ot(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];K(r,o)<0&&i.push(t[s]),r[s]=o,s++}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 s(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=st(t.touches),s=this.targetIds;if(3&e&&1===r.length)return s[r[0].identifier]=!0,[r,r];var o=st(t.changedTouches),a=[],c=this.target;if(i=r.filter((function(t){return F(t.target,c)})),1===e)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<o.length;)s[o[n].identifier]&&a.push(o[n]),12&e&&delete s[o[n].identifier],n++;return a.length?[ot(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 s(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 dt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,pt.call(this,e)):12&t&&pt.call(this,e)}function ft(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=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,s=n.pointerType===N;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)dt.call(o(o(i)),e,n);else if(s&&ft.call(o(o(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 s(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}s(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,s=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&s&&i){if(4!==t.eventType)return this.failTimeout();var o=!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&&o?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),At=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({pointers:1},e))||this}s(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 Ct(t){return t===x?"down":8===t?"up":2===t?"left":4===t?"right":""}var wt=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}s(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,s=t.deltaX,o=t.deltaY;return r&e.direction||(e.direction&S?(r=0===s?1:s<0?2:4,n=s!==this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:x,n=o!==this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},n.attrTest=function(t){return At.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=Ct(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},e}(At),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}s(e,t);var n=e.prototype;return n.getTouchAction=function(){return wt.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=Ct(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(At),Dt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({event:"pinch",threshold:0,pointers:2},e))||this}s(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}(At),Nt=function(t){function e(e){return void 0===e&&(e={}),t.call(this,r({event:"rotate",threshold:0,pointers:2},e))||this}s(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}(At),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}s(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,s=t.deltaTime>n.time;if(this._input=t,!r||!i||12&t.eventType&&!s)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=d(),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}],[wt,{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,s){n=f(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}var $t=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||(w?rt:I?ct:C?vt:lt))(n,j),this.touchAction=new Y(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 s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!==r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(e.curRecognizer=n,r=n),s++}},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}(),kt={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 s(e,t),e.prototype.handler=function(t){var e=kt[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=st(t.touches),i=st(t.changedTouches);return 12&e&&(n=ot(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 Yt=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`."),Ft=zt((function(t,e){return Yt(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 $t(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=$t,t.Input=J,t.TouchAction=Y,t.TouchInput=ct,t.MouseInput=lt,t.PointerEventInput=rt,t.TouchMouseInput=vt,t.SingleTouchInput=Rt,t.Recognizer=_t,t.AttrRecognizer=At,t.Tap=Et,t.Pan=wt,t.Swipe=It,t.Pinch=Dt,t.Rotate=Nt,t.Press=xt,t.on=G,t.off=B,t.each=R,t.merge=Ft,t.extend=Yt,t.bindFn=Ut,t.assign=c,t.inherit=Xt,t.bindFn=Ut,t.prefixed=f,t.toArray=st,t.inArray=K,t.uniqueArray=ot,t.splitStr=Z,t.boolOrFn=M,t.hasParent=F,t.addEventListeners=G,t.removeEventListeners=B,t.defaults=c({},St,{preset:Pt}),t}();qt.defaults},93958:function(t,e,n){n.d(e,{F:()=>l});var i=n(9065),r=n(15093),s=n(92444),o=n(76688);let a=class extends s.A{};a.styles=[o.W],a=(0,i.__decorate)([(0,r.Mo)("mwc-checkbox")],a);var c=n(57243),u=n(35359),h=n(65703);class l 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():c.dy``,i=this.hasMeta&&this.left?this.renderMeta():c.dy``,r=this.renderRipple();return c.dy` ${r} ${n} ${this.left?"":e} <span class="${(0,u.$)(t)}"> <mwc-checkbox reducedTouchTarget tabindex="${this.tabindex}" .checked="${this.selected}" ?disabled="${this.disabled}" ="${this.onChange}"> </mwc-checkbox> </span> ${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")],l.prototype,"slotElement",void 0),(0,i.__decorate)([(0,r.IO)("mwc-checkbox")],l.prototype,"checkboxElement",void 0),(0,i.__decorate)([(0,r.Cb)({type:Boolean})],l.prototype,"left",void 0),(0,i.__decorate)([(0,r.Cb)({type:String,reflect:!0})],l.prototype,"graphic",void 0)},97536:function(t,e,n){n.d(e,{W:()=>i});const i=n(57243).iv`:host(:not([twoline])){height:56px}:host(:not([left])) .mdc-deprecated-list-item__meta{height:40px;width:40px}`},31126:function(t,e,n){var i=n(71998);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},32517:function(t,e,n){var i=n(1569),r=n(85779),s=n(27803),o=n(31126),a=n(29660),c=i.RegExp,u=c.prototype;r&&a((function(){var t=!0;try{c(".","d")}catch(e){t=!1}var e={},n="",i=t?"dgimsy":"gimsy",r=function(t,i){Object.defineProperty(e,t,{get:function(){return n+=i,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(s.hasIndices="d"),s)r(o,s[o]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(e)!==i||n!==i}))&&s(u,"flags",{configurable:!0,get:o})},18672:function(t,e,n){n.d(e,{Z:()=>r});n(92519),n(42179),n(89256),n(24931),n(88463),n(57449),n(19814);var i=n(11133);class r{constructor(t,{target:e,config:n,callback:r,skipInitial:s}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,null!==e&&this.t.add(e??t),this.l=n,this.o=s??this.o,this.callback=r,i.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){this.value=this.callback?.(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()}}},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:()=>s,b:()=>i});n(67351);const i=Symbol("internals"),r=Symbol("privateInternals");function s(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:()=>o,hz:()=>c});var i=n(9065),r=n(15093),s=n(61073);const o=Symbol("getFormValue"),a=Symbol("getFormState");function c(t){class e extends t{get form(){return this[s.b].form}get labels(){return this[s.b].labels}get name(){return this.getAttribute("name")??""}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[s.b].setFormValue(this[o](),this[a]())}[o](){throw new Error("Implement [getFormValue]")}[a](){return this[o]()}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:()=>o});var i=n(76808),r=n(53907),s=n(18112);function o(t,e){const n=()=>(0,r.L)(e?.in,NaN),o=e?.additionalDigits??2,v=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 m;if(v.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,s=i[2]?parseInt(i[2]):null;return{year:null===s?r:100*s,restDateString:t.slice((i[1]||i[2]).length)}}(v.date,o);m=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]),s=l(n[2])-1,o=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,s=7*(e-1)+n+1-r;return i.setUTCDate(i.getUTCDate()+s),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<=(d[e]||(f(t)?29:28))}(e,s,o)&&function(t,e){return e>=1&&e<=(f(t)?366:365)}(e,r)?(t.setUTCFullYear(e,s,Math.max(r,o)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!m||isNaN(+m))return n();const g=+m;let y,T=0;if(v.time&&(T=function(t){const e=t.match(u);if(!e)return NaN;const n=p(e[1]),r=p(e[2]),s=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,s))return NaN;return n*i.vh+r*i.yJ+1e3*s}(v.time),isNaN(T)))return n();if(!v.timezone){const t=new Date(g+T),n=(0,s.Q)(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return y=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]),s=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}(0,s))return NaN;return n*(r*i.vh+s*i.yJ)}(v.timezone),isNaN(y)?n():(0,s.Q)(g+T+y,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 d=[31,null,31,30,31,30,31,31,30,31,30,31];function f(t){return t%400==0||t%4==0&&t%100!=0}},1714:function(t,e,n){n.d(e,{sR:()=>l});n(92519),n(42179),n(89256),n(24931),n(88463),n(57449),n(19814);var i=n(53232),r=n(45779);const s=(t,e)=>{var n,i;const r=t._$AN;if(void 0===r)return!1;for(const t of r)null===(i=(n=t)._$AO)||void 0===i||i.call(n,e,!1),s(t,e);return!0},o=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?(o(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 t=n;t<i.length;t++)s(i[t],!1),o(i[t]);else null!=i&&(s(i,!1),o(i));else s(this,t)}const h=t=>{var e,n,i,s;t.type==r.pX.CHILD&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=u),null!==(n=(s=t)._$AQ)&&void 0!==n||(s._$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&&(s(this,t),o(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});var i=n(2841),r=n(45779),s=n(53232);const o=(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=[],s=[];let o=0;for(const e of t)r[o]=i?i(e,o):o,s[o]=n(e,o),o++;return{values:s,keys:r}}render(t,e,n){return this.ct(t,e,n).values}update(t,[e,n,r]){var a;const c=(0,s.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 d,f,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,s.fk)(c[v],u[g]),v++,g++;else if(l[m]===h[y])p[y]=(0,s.fk)(c[m],u[y]),m--,y--;else if(l[v]===h[y])p[y]=(0,s.fk)(c[v],u[y]),(0,s._Y)(t,p[y+1],c[v]),v++,y--;else if(l[m]===h[g])p[g]=(0,s.fk)(c[m],u[g]),(0,s._Y)(t,c[v],c[m]),m--,g++;else if(void 0===d&&(d=o(h,g,y),f=o(l,v,m)),d.has(l[v]))if(d.has(l[m])){const e=f.get(h[g]),n=void 0!==e?c[e]:null;if(null===n){const e=(0,s._Y)(t,c[v]);(0,s.fk)(e,u[g]),p[g]=e}else p[g]=(0,s.fk)(n,u[g]),(0,s._Y)(t,c[v],n),c[e]=null;g++}else(0,s.ws)(c[m]),m--;else(0,s.ws)(c[v]),v++;for(;g<=y;){const e=(0,s._Y)(t,p[y+1]);(0,s.fk)(e,u[g]),p[g++]=e}for(;v<=m;){const t=c[v++];null!==t&&(0,s.ws)(t)}return this.ut=h,(0,s.hl)(t,p),i.Jb}})}};
//# sourceMappingURL=89522.634f472f04bc7525.js.map