constt=t=>"object"==typeoft&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),i=(...e)=>{lets=!1;"boolean"==typeofe[0]&&(s=e.shift());letn=e[0];if(!n||"object"!=typeofn)thrownewError("extendee must be an object");consto=e.slice(1),h=o.length;for(lete=0;e<h;e++){consth=o[e];for(leteinh)if(h.hasOwnProperty(e)){consto=h[e];if(s&&(Array.isArray(o)||t(o))){constt=Array.isArray(o)?[]:{};n[e]=i(!0,n.hasOwnProperty(e)?n[e]:t,o)}elsen[e]=o}}returnn},e=(t,i=1e4)=>(t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*i)/i),s="undefined"!=typeofwindow&&window.ResizeObserver||class{constructor(t){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}observe(t){if(this.observables.some((i=>i.el===t)))return;consti={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(i)}unobserve(t){this.observables=this.observables.filter((i=>i.el!==t))}disconnect(){this.observables=[]}check(){constt=this.observables.filter((t=>{consti=t.el.clientHeight,e=t.el.clientWidth;if(t.size.height!==i||t.size.width!==e)returnt.size.height=i,t.size.width=e,!0})).map((t=>t.el));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}};classn{constructor(t){this.id=-1,this.id=t.pointerId||t.identifier||-1,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.nativePointer=t}}functiono(t,i){returni?Math.sqrt((i.clientX-t.clientX)**2+(i.clientY-t.clientY)**2):0}functionh(t,i){returni?{clientX:(t.clientX+i.clientX)/2,clientY:(t.clientY+i.clientY)/2}:t}classa{constructor(t,{start:i=(()=>!0),move:e=(()=>{}),end:s=(()=>{})}={}){this.element=t,this.startPointers=[],this.currentPointers=[],this.startCallback=i,this.moveCallback=e,this.endCallback=s,this.onStart=t=>{if(t.button&&0!==t.button)return;consti=newn(t);if(!1===this.startCallback(i,t))return!1;t.preventDefault(),(()=>{constt=window.getSelection?window.getSelection():document.selection;t&&t.rangeCount&&t.getRangeAt(0).getClientRects().length&&(t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty())})(),this.currentPointers.push(i),this.startPointers.push(i);(t.target&&"setPointerCapture"int.target?t.target:this.element).setPointerCapture(t.pointerId),this.element.addEventListener("pointermove",this.onMove),this.element.addEventListener("pointerup",this.onEnd),this.element.addEventListener("pointercancel",this.onEnd)},this.onMove=t=>{consti=this.currentPointers.slice(),e=[];for(constiof[newn(t)]){constt=this.currentPointers.findIndex((t=>t.id===i.id));t<0||(e.push(i),this.currentPointers[t]=i)}e.length&&this.moveCallback(i,this.currentPointers,t)},this.onEnd=t=>{consti=newn(t),e=this.currentPointers.findIndex((t=>t.id===i.id));if(-1===e)return!1;this.currentPointers.splice(e,1),this.startPointers.splice(e,1),this.endCallback(i,t),this.currentPointers.length||(this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd))},this.element.addEventListener("pointerdown",this.onStart)}stop(){this.element.removeEventListener("pointerdown",this.onStart),this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd)}}constr=function(t){return!(!t||t===document.body)&&(function(t){consti=window.getComputedStyle(t)["overflow-y"],e=window.getComputedStyle(t)["overflow-x"],s=("scroll"===i||"auto"===i)&&Math.abs(t.scrollHeight-t.clientHeight)>1,n=("scroll"===e||"auto"===e)&&Math.abs(t.scrollWidth-t.clientWidth)>1;returns||n}(t)?t:r(t.parentNode))};classl{constructor(t={}){this.options=i(!0,{},t),this.plugins=[],this.events={};for(consttof["on","once"])for(constiofObject.entries(this.options[t]||{}))this[t](...i)}option(t,i){t=String(t);lete=(s=t,n=this.options,s.split(".").reduce((function(t,i){returnt&&t[i]}),n));vars,n;return"function"==typeofe&&(e=e.call(this,t)),void0===e?i:e}localize(t,i=[])