UNPKG

vis-graph3d

Version:

Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.

26 lines 211 kB
/** * vis-graph3d * https://visjs.github.io/vis-graph3d/ * * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box. * * @version 7.0.1 * @date 2025-07-13T08:06:23.387Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,function(t){"use strict";function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;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 r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var o,s=i,a=["","webkit","Moz","MS","ms","o"],u="undefined"==typeof document?{style:{}}:document.createElement("div"),c=Math.round,l=Math.abs,h=Date.now;function f(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<a.length;){if((r=(n=a[o])?n+i:e)in t)return r;o++}}o="undefined"==typeof window?{}:window;var d=f(u.style,"touchAction"),p=void 0!==d;var v="compute",m="auto",g="manipulation",y="none",b="pan-x",w="pan-y",_=function(){if(!p)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||o.CSS.supports("touch-action",n)}),t}(),x="ontouchstart"in o,C=void 0!==f(o,"PointerEvent"),S=x&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),E="touch",T="mouse",k=16,O=24,D=["x","y"],P=["clientX","clientY"];function A(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function L(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function R(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===v&&(t=this.compute()),p&&this.manager.element.style&&_[t]&&(this.manager.element.style[d]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return A(this.manager.recognizers,function(e){L(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(R(t,y))return y;var e=R(t,b),n=R(t,w);return e&&n?y:e||n?e?b:w:R(t,g)?g:m}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=R(r,y)&&!_[y],o=R(r,w)&&!_[w],s=R(r,b)&&!_[b];if(i){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}if(!s||!o)return i||o&&6&n||s&&n&O?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function M(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function I(t){var e=t.length;if(1===e)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:c(n/e),y:c(r/e)}}function z(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:c(t.pointers[n].clientX),clientY:c(t.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:e,center:I(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t,e,n){n||(n=D);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function B(t,e,n){n||(n=D);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function N(t,e){return t===e?1:l(t)>=l(e)?t<0?2:4:e<0?8:k}function W(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=z(e)),i>1&&!n.firstMultiple?n.firstMultiple=z(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=I(r);e.timeStamp=h(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=B(a,u),e.distance=j(a,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=N(e.deltaX,e.deltaY);var c,f,d=W(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=l(d.x)>l(d.y)?d.x:d.y,e.scale=s?(c=s.pointers,j((f=r)[0],f[1],P)/j(c[0],c[1],P)):1,e.rotation=s?function(t,e){return B(e[1],e[0],P)+B(t[1],t[0],P)}(s.pointers,r):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,r,i,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var u=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,h=W(a,u,c);r=h.x,i=h.y,n=l(h.x)>l(h.y)?h.x:h.y,o=N(u,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var p,v=t.element,m=e.srcEvent;M(p=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,v)&&(v=p),e.target=v}function G(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,s=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Y(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function V(t){return t.trim().split(/\s+/g)}function U(t,e,n){A(V(e),function(e){t.addEventListener(e,n,!1)})}function X(t,e,n){A(V(e),function(e){t.removeEventListener(e,n,!1)})}function H(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var q=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){L(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(H(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&X(this.element,this.evEl,this.domHandler),this.evTarget&&X(this.target,this.evTarget,this.domHandler),this.evWin&&X(H(this.element),this.evWin,this.domHandler)},t}();function Z(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:E,3:"pen",4:T,5:"kinect"},J="pointerdown",$="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(J="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel");var tt=function(t){function e(){var n,r=e.prototype;return r.evEl=J,r.evWin=$,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return n(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=K[r],o=Q[t.pointerType]||t.pointerType,s=o===E,a=Z(e,t.pointerId,"pointerId");1&i&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(q);function et(t){return Array.prototype.slice.call(t,0)}function nt(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Z(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},it=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return n(e,t),e.prototype.handler=function(t){var e=rt[t.type],n=ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:E,srcEvent:t})},e}(q);function ot(t,e){var n,r,i=et(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var s=et(t.changedTouches),a=[],u=this.target;if(r=i.filter(function(t){return M(t.target,u)}),1===e)for(n=0;n<r.length;)o[r[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?[nt(r.concat(a),"identifier",!0),a]:void 0}var st={mousedown:1,mousemove:2,mouseup:4},at=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return n(e,t),e.prototype.handler=function(t){var e=st[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:T,srcEvent:t}))},e}(q);function ut(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},2500)}}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ut.call(this,e)):12&t&&ut.call(this,e)}function lt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}var ht=function(){return function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var o=n.pointerType===E,s=n.pointerType===T;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)ct.call(r(r(i)),e,n);else if(s&&lt.call(r(r(i)),n))return;i.callback(t,e,n)}},i.touch=new it(i.manager,i.handler),i.mouse=new at(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return n(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(q)}();function ft(t,e,n){return!!Array.isArray(t)&&(A(t,n[e],n),!0)}var dt=32,pt=1;function vt(t,e){var n=e.manager;return n?n.get(t):t}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var gt=function(){function t(t){void 0===t&&(t={}),this.options=e({enable:!0},t),this.id=pt++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var n=t.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(ft(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=vt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return ft(t,"dropRecognizeWith",this)||(t=vt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(ft(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Z(e,t=vt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(ft(t,"dropRequireFailure",this))return this;t=vt(t,this);var e=Z(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+mt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+mt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=dt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!L(this.options.enable,[this,e]))return this.reset(),void(this.state=dt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},t}(),yt=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},n))||this).pTime=!1,r.pCenter=!1,r._timer=null,r._input=null,r.count=0,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[g]},i.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||j(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 dt},i.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=dt},this.options.interval),dt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(gt),bt=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({pointers:1},n))||this}n(r,t);var i=r.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:dt},r}(gt);function wt(t){return t===k?"down":8===t?"up":2===t?"left":4===t?"right":""}var _t=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"pan",threshold:10,pointers:1,direction:30},n))||this).pX=null,r.pY=null,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(w),t&O&&e.push(b),e},i.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===s?1:s<0?8:k,n=s!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},i.attrTest=function(t){return bt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=wt(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},r}(bt),xt=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return _t.prototype.getTouchAction.call(this)},i.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&O&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&l(n)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=wt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},r}(bt),Ct=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"pinch",threshold:0,pointers:2},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[y]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.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)},r}(bt),St=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"rotate",threshold:0,pointers:2},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[y]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},r}(bt),Et=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"press",pointers:1,time:251,threshold:9},n))||this)._timer=null,r._input=null,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[m]},i.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||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 dt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))},r}(gt),Tt={domEvents:!1,touchAction:v,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},kt=[[St,{enable:!1}],[Ct,{enable:!1},["rotate"]],[xt,{direction:6}],[_t,{direction:6},["swipe"]],[yt],[yt,{event:"doubletap",taps:2},["tap"]],[Et]];function Ot(t,e){var n,r=t.element;r.style&&(A(t.options.cssProps,function(i,o){n=f(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var Dt=function(){function t(t,e){var n,r=this;this.options=s({},Tt,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?tt:S?it:x?ht:at))(n,G),this.touchAction=new F(this,this.options.touchAction),Ot(this,!0),A(this.options.recognizers,function(t){var e=r.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 s(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 r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof gt)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(ft(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(ft(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=Z(n,e);-1!==r&&(n.splice(r,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 A(V(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 A(V(t),function(t){e?n[t]&&n[t].splice(Z(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 r=0;r<n.length;)n[r](e),r++}},e.destroy=function(){this.element&&Ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Pt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},At=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return n(e,t),e.prototype.handler=function(t){var e=Pt[t.type];if(1===e&&(this.started=!0),this.started){var n=Lt.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:E,srcEvent:t})}},e}(q);function Lt(t,e){var n=et(t.touches),r=et(t.changedTouches);return 12&e&&(n=nt(n.concat(r),"identifier",!0)),[n,r]}function Rt(t,e,n){var r="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",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Ft=Rt(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),Mt=Rt(function(t,e){return Ft(t,e,!0)},"merge","Use `assign`.");function It(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&s(r,n)}function zt(t,e){return function(){return t.apply(e,arguments)}}var jt=function(){var t=function(t,n){return void 0===n&&(n={}),new Dt(t,e({recognizers:kt.concat()},n))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=k,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=O,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=k,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=dt,t.Manager=Dt,t.Input=q,t.TouchAction=F,t.TouchInput=it,t.MouseInput=at,t.PointerEventInput=tt,t.TouchMouseInput=ht,t.SingleTouchInput=At,t.Recognizer=gt,t.AttrRecognizer=bt,t.Tap=yt,t.Pan=_t,t.Swipe=xt,t.Pinch=Ct,t.Rotate=St,t.Press=Et,t.on=U,t.off=X,t.each=A,t.merge=Mt,t.extend=Ft,t.bindFn=zt,t.assign=s,t.inherit=It,t.bindFn=zt,t.prefixed=f,t.toArray=et,t.inArray=Z,t.uniqueArray=nt,t.splitStr=V,t.boolOrFn=L,t.hasParent=M,t.addEventListeners=U,t.removeEventListeners=X,t.defaults=s({},Tt,{preset:kt}),t}();function Bt(t){var e,n=t&&t.preventDefault||!1,r=t&&t.container||window,i={},o={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var a=function(t){c(t,"keydown")},u=function(t){c(t,"keyup")},c=function(t,e){if(void 0!==o[e][t.keyCode]){for(var r=o[e][t.keyCode],i=0;i<r.length;i++)(void 0===r[i].shift||1==r[i].shift&&1==t.shiftKey||0==r[i].shift&&0==t.shiftKey)&&r[i].fn(t);1==n&&t.preventDefault()}};return i.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[n][s[t].code]&&(o[n][s[t].code]=[]),o[n][s[t].code].push({fn:e,shift:s[t].shift})},i.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),s)s.hasOwnProperty(n)&&i.bind(n,t,e)},i.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},i.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var r=[],i=o[n][s[t].code];if(void 0!==i)for(var a=0;a<i.length;a++)i[a].fn==e&&i[a].shift==s[t].shift||r.push(o[n][s[t].code][a]);o[n][s[t].code]=r}else o[n][s[t].code]=[]},i.reset=function(){o={keydown:{},keyup:{}}},i.destroy=function(){o={keydown:{},keyup:{}},r.removeEventListener("keydown",a,!0),r.removeEventListener("keyup",u,!0)},r.addEventListener("keydown",a,!0),r.addEventListener("keyup",u,!0),i}jt.defaults;var Nt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yt,Gt,Vt,Ut,Xt,Ht,qt,Zt,Kt,Qt,Jt,$t,te,ee,ne,re,ie={};function oe(){if(Gt)return Yt;Gt=1;var t=function(t){return t&&t.Math===Math&&t};return Yt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof Nt&&Nt)||t("object"==typeof Yt&&Yt)||function(){return this}()||Function("return this")()}function se(){return Ut?Vt:(Ut=1,Vt=function(t){try{return!!t()}catch(t){return!0}})}function ae(){return Ht?Xt:(Ht=1,Xt=!se()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function ue(){if(Zt)return qt;Zt=1;var t=ae(),e=Function.prototype,n=e.apply,r=e.call;return qt="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),qt}function ce(){if(Qt)return Kt;Qt=1;var t=ae(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Kt=t?r:function(t){return function(){return n.apply(t,arguments)}},Kt}function le(){if($t)return Jt;$t=1;var t=ce(),e=t({}.toString),n=t("".slice);return Jt=function(t){return n(e(t),8,-1)}}function he(){if(ee)return te;ee=1;var t=le(),e=ce();return te=function(n){if("Function"===t(n))return e(n)}}function fe(){if(re)return ne;re=1;var t="object"==typeof document&&document.all;return ne=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var de,pe,ve,me,ge={};function ye(){return pe?de:(pe=1,de=!se()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function be(){if(me)return ve;me=1;var t=ae(),e=Function.prototype.call;return ve=t?e.bind(e):function(){return e.apply(e,arguments)},ve}var we,_e,xe,Ce,Se,Ee,Te,ke,Oe,De,Pe,Ae,Le,Re,Fe,Me,Ie,ze,je,Be,Ne,We,Ye,Ge,Ve,Ue,Xe,He,qe,Ze,Ke,Qe,Je,$e,tn,en,nn,rn={};function on(){if(we)return rn;we=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return rn.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,rn}function sn(){return xe?_e:(xe=1,_e=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function an(){if(Se)return Ce;Se=1;var t=ce(),e=se(),n=le(),r=Object,i=t("".split);return Ce=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function un(){return Te?Ee:(Te=1,Ee=function(t){return null==t})}function cn(){if(Oe)return ke;Oe=1;var t=un(),e=TypeError;return ke=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function ln(){if(Pe)return De;Pe=1;var t=an(),e=cn();return De=function(n){return t(e(n))}}function hn(){if(Le)return Ae;Le=1;var t=fe();return Ae=function(e){return"object"==typeof e?null!==e:t(e)}}function fn(){return Fe?Re:(Fe=1,Re={})}function dn(){if(Ie)return Me;Ie=1;var t=fn(),e=oe(),n=fe(),r=function(t){return n(t)?t:void 0};return Me=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},Me}function pn(){return je?ze:(je=1,ze=ce()({}.isPrototypeOf))}function vn(){if(Ne)return Be;Ne=1;var t=oe().navigator,e=t&&t.userAgent;return Be=e?String(e):""}function mn(){if(Ye)return We;Ye=1;var t,e,n=oe(),r=vn(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,a=s&&s.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),We=e}function gn(){if(Ve)return Ge;Ve=1;var t=mn(),e=se(),n=oe().String;return Ge=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Ge}function yn(){return Xe?Ue:(Xe=1,Ue=gn()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function bn(){if(qe)return He;qe=1;var t=dn(),e=fe(),n=pn(),r=Object;return He=yn()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function wn(){if(Ke)return Ze;Ke=1;var t=String;return Ze=function(e){try{return t(e)}catch(t){return"Object"}}}function _n(){if(Je)return Qe;Je=1;var t=fe(),e=wn(),n=TypeError;return Qe=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function xn(){if(tn)return $e;tn=1;var t=_n(),e=un();return $e=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Cn(){if(nn)return en;nn=1;var t=be(),e=fe(),n=hn(),r=TypeError;return en=function(i,o){var s,a;if("string"===o&&e(s=i.toString)&&!n(a=t(s,i)))return a;if(e(s=i.valueOf)&&!n(a=t(s,i)))return a;if("string"!==o&&e(s=i.toString)&&!n(a=t(s,i)))return a;throw new r("Can't convert object to primitive value")}}var Sn,En,Tn,kn,On,Dn,Pn,An,Ln,Rn,Fn,Mn,In,zn,jn,Bn,Nn,Wn,Yn,Gn,Vn,Un,Xn,Hn,qn,Zn,Kn,Qn,Jn={exports:{}};function $n(){return En?Sn:(En=1,Sn=!0)}function tr(){if(kn)return Tn;kn=1;var t=oe(),e=Object.defineProperty;return Tn=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function er(){if(On)return Jn.exports;On=1;var t=$n(),e=oe(),n=tr(),r="__core-js_shared__",i=Jn.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.44.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Jn.exports}function nr(){if(Pn)return Dn;Pn=1;var t=er();return Dn=function(e,n){return t[e]||(t[e]=n||{})}}function rr(){if(Ln)return An;Ln=1;var t=cn(),e=Object;return An=function(n){return e(t(n))}}function ir(){if(Fn)return Rn;Fn=1;var t=ce(),e=rr(),n=t({}.hasOwnProperty);return Rn=Object.hasOwn||function(t,r){return n(e(t),r)}}function or(){if(In)return Mn;In=1;var t=ce(),e=0,n=Math.random(),r=t(1.1.toString);return Mn=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function sr(){if(jn)return zn;jn=1;var t=oe(),e=nr(),n=ir(),r=or(),i=gn(),o=yn(),s=t.Symbol,a=e("wks"),u=o?s.for||s:s&&s.withoutSetter||r;return zn=function(t){return n(a,t)||(a[t]=i&&n(s,t)?s[t]:u("Symbol."+t)),a[t]}}function ar(){if(Nn)return Bn;Nn=1;var t=be(),e=hn(),n=bn(),r=xn(),i=Cn(),o=TypeError,s=sr()("toPrimitive");return Bn=function(a,u){if(!e(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=t(l,a,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function ur(){if(Yn)return Wn;Yn=1;var t=ar(),e=bn();return Wn=function(n){var r=t(n,"string");return e(r)?r:r+""}}function cr(){if(Vn)return Gn;Vn=1;var t=oe(),e=hn(),n=t.document,r=e(n)&&e(n.createElement);return Gn=function(t){return r?n.createElement(t):{}}}function lr(){if(Xn)return Un;Xn=1;var t=ye(),e=se(),n=cr();return Un=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function hr(){if(Hn)return ge;Hn=1;var t=ye(),e=be(),n=on(),r=sn(),i=ln(),o=ur(),s=ir(),a=lr(),u=Object.getOwnPropertyDescriptor;return ge.f=t?u:function(t,c){if(t=i(t),c=o(c),a)try{return u(t,c)}catch(t){}if(s(t,c))return r(!e(n.f,t,c),t[c])},ge}function fr(){if(Zn)return qn;Zn=1;var t=se(),e=fe(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===a||u!==s&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return qn=r}function dr(){if(Qn)return Kn;Qn=1;var t=he(),e=_n(),n=ae(),r=t(t.bind);return Kn=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},Kn}var pr,vr,mr,gr,yr,br,wr,_r,xr,Cr,Sr,Er,Tr,kr,Or,Dr,Pr,Ar,Lr,Rr,Fr,Mr,Ir,zr,jr,Br,Nr,Wr,Yr,Gr,Vr,Ur,Xr,Hr,qr,Zr,Kr,Qr,Jr={};function $r(){return vr?pr:(vr=1,pr=ye()&&se()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function ti(){if(gr)return mr;gr=1;var t=hn(),e=String,n=TypeError;return mr=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function ei(){if(yr)return Jr;yr=1;var t=ye(),e=lr(),n=$r(),r=ti(),i=ur(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Jr.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=a(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return s(t,e,n)}:s:function(t,n,a){if(r(t),n=i(n),r(a),e)try{return s(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Jr}function ni(){if(wr)return br;wr=1;var t=ye(),e=ei(),n=sn();return br=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t},br}function ri(){if(xr)return _r;xr=1;var t=oe(),e=ue(),n=he(),r=fe(),i=hr().f,o=fr(),s=fn(),a=dr(),u=ni(),c=ir(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return _r=function(e,h){var f,d,p,v,m,g,y,b,w,_=e.target,x=e.global,C=e.stat,S=e.proto,E=x?t:C?t[_]:t[_]&&t[_].prototype,T=x?s:s[_]||u(s,_,{})[_],k=T.prototype;for(v in h)d=!(f=o(x?v:_+(C?".":"#")+v,e.forced))&&E&&c(E,v),g=T[v],d&&(y=e.dontCallGetSet?(w=i(E,v))&&w.value:E[v]),m=d&&y?y:h[v],(f||S||typeof g!=typeof m)&&(b=e.bind&&d?a(m,t):e.wrap&&d?l(m):S&&r(m)?n(m):m,(e.sham||m&&m.sham||g&&g.sham)&&u(b,"sham",!0),u(T,v,b),S&&(c(s,p=_+"Prototype")||u(s,p,{}),u(s[p],v,m),e.real&&k&&(f||!k[v])&&u(k,v,m)))}}function ii(){if(Sr)return Cr;Sr=1;var t=le();return Cr=Array.isArray||function(e){return"Array"===t(e)}}function oi(){if(Tr)return Er;Tr=1;var t=Math.ceil,e=Math.floor;return Er=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function si(){if(Or)return kr;Or=1;var t=oi();return kr=function(e){var n=+e;return n!=n||0===n?0:t(n)},kr}function ai(){if(Pr)return Dr;Pr=1;var t=si(),e=Math.min;return Dr=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function ui(){if(Lr)return Ar;Lr=1;var t=ai();return Ar=function(e){return t(e.length)}}function ci(){if(Fr)return Rr;Fr=1;var t=TypeError;return Rr=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}}function li(){if(Ir)return Mr;Ir=1;var t=ye(),e=ei(),n=sn();return Mr=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o},Mr}function hi(){if(jr)return zr;jr=1;var t={};return t[sr()("toStringTag")]="z",zr="[object z]"===String(t)}function fi(){if(Nr)return Br;Nr=1;var t=hi(),e=fe(),n=le(),r=sr()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Br=t?n:function(t){var s,a,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(s=i(t),r))?a:o?n(s):"Object"===(u=n(s))&&e(s.callee)?"Arguments":u}}function di(){if(Yr)return Wr;Yr=1;var t=ce(),e=fe(),n=er(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),Wr=n.inspectSource}function pi(){if(Vr)return Gr;Vr=1;var t=ce(),e=se(),n=fe(),r=fi(),i=dn(),o=di(),s=function(){},a=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(s),h=function(t){if(!n(t))return!1;try{return a(s,[],t),!0}catch(t){return!1}},f=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return f.sham=!0,Gr=!a||e(function(){var t;return h(h.call)||!h(Object)||!h(function(){t=!0})||t})?f:h}function vi(){if(Xr)return Ur;Xr=1;var t=ii(),e=pi(),n=hn(),r=sr()("species"),i=Array;return Ur=function(o){var s;return t(o)&&(s=o.constructor,(e(s)&&(s===i||t(s.prototype))||n(s)&&null===(s=s[r]))&&(s=void 0)),void 0===s?i:s}}function mi(){if(qr)return Hr;qr=1;var t=vi();return Hr=function(e,n){return new(t(e))(0===n?0:n)}}function gi(){if(Kr)return Zr;Kr=1;var t=se(),e=sr(),n=mn(),r=e("species");return Zr=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Zr}function yi(){if(Qr)return ie;Qr=1;var t=ri(),e=se(),n=ii(),r=hn(),i=rr(),o=ui(),s=ci(),a=li(),u=mi(),c=gi(),l=sr(),h=mn(),f=l("isConcatSpreadable"),d=h>=51||!e(function(){var t=[];return t[f]=!1,t.concat()[0]!==t}),p=function(t){if(!r(t))return!1;var e=t[f];return void 0!==e?!!e:n(t)};return t({target:"Array",proto:!0,arity:1,forced:!d||!c("concat")},{concat:function(t){var e,n,r,c,l,h=i(this),f=u(h,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(p(l=-1===e?h:arguments[e]))for(c=o(l),s(d+c),n=0;n<c;n++,d++)n in l&&a(f,d,l[n]);else s(d+1),a(f,d++,l);return f.length=d,f}}),ie}var bi,wi,_i={},xi={};function Ci(){if(wi)return bi;wi=1;var t=fi(),e=String;return bi=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Si,Ei,Ti,ki,Oi,Di,Pi,Ai,Li,Ri,Fi,Mi,Ii,zi,ji,Bi,Ni,Wi,Yi,Gi={};function Vi(){if(Ei)return Si;Ei=1;var t=si(),e=Math.max,n=Math.min;return Si=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)},Si}function Ui(){if(ki)return Ti;ki=1;var t=ln(),e=Vi(),n=ui(),r=function(r){return function(i,o,s){var a=t(i),u=n(a);if(0===u)return!r&&-1;var c,l=e(s,u);if(r&&o!=o){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((r||l in a)&&a[l]===o)return r||l||0;return!r&&-1}};return Ti={includes:r(!0),indexOf:r(!1)}}function Xi(){return Di?Oi:(Di=1,Oi={})}function Hi(){if(Ai)return Pi;Ai=1;var t=ce(),e=ir(),n=ln(),r=Ui().indexOf,i=Xi(),o=t([].push);return Pi=function(t,s){var a,u=n(t),c=0,l=[];for(a in u)!e(i,a)&&e(u,a)&&o(l,a);for(;s.length>c;)e(u,a=s[c++])&&(~r(l,a)||o(l,a));return l},Pi}function qi(){return Ri?Li:(Ri=1,Li=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Zi(){if(Mi)return Fi;Mi=1;var t=Hi(),e=qi();return Fi=Object.keys||function(n){return t(n,e)}}function Ki(){if(Ii)return Gi;Ii=1;var t=ye(),e=$r(),n=ei(),r=ti(),i=ln(),o=Zi();return Gi.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var s,a=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,s=u[l++],a[s]);return t},Gi}function Qi(){return ji?zi:(ji=1,zi=dn()("document","documentElement"))}function Ji(){if(Ni)return Bi;Ni=1;var t=nr(),e=or(),n=t("keys");return Bi=function(t){return n[t]||(n[t]=e(t))}}function $i(){if(Yi)return Wi;Yi=1;var t,e=ti(),n=Ki(),r=qi(),i=Xi(),o=Qi(),s=cr(),a="prototype",u="script",c=Ji()("IE_PROTO"),l=function(){},h=function(t){return"<"+u+">"+t+"</"+u+">"},f=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;d="undefined"!=typeof document?document.domain&&t?f(t):(n=s("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(t);for(var c=r.length;c--;)delete d[a][r[c]];return d()};return i[c]=!0,Wi=Object.create||function(t,r){var i;return null!==t?(l[a]=e(t),i=new l,l[a]=null,i[c]=t):i=d(),void 0===r?i:n.f(i,r)}}var to,eo={};function no(){if(to)return eo;to=1;var t=Hi(),e=qi().concat("length","prototype");return eo.f=Object.getOwnPropertyNames||function(n){return t(n,e)},eo}var ro,io,oo,so={};function ao(){return io?ro:(io=1,ro=ce()([].slice))}function uo(){if(oo)return so;oo=1;var t=le(),e=ln(),n=no().f,r=ao(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return so.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},so}var co,lo,ho,fo,po,vo={};function mo(){return co||(co=1,vo.f=Object.getOwnPropertySymbols),vo}function go(){if(ho)return lo;ho=1;var t=ni();return lo=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function yo(){if(po)return fo;po=1;var t=ei();return fo=function(e,n,r){return t.f(e,n,r)}}var bo,wo,_o,xo,Co,So,Eo,To,ko,Oo,Do,Po,Ao,Lo,Ro,Fo,Mo={};function Io(){if(bo)return Mo;bo=1;var t=sr();return Mo.f=t,Mo}function zo(){if(_o)return wo;_o=1;var t=fn(),e=ir(),n=Io(),r=ei().f;return wo=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function jo(){if(Co)return xo;Co=1;var t=be(),e=dn(),n=sr(),r=go();return xo=function(){var i=e("Symbol"),o=i&&i.prototype,s=o&&o.valueOf,a=n("toPrimitive");o&&!o[a]&&r(o,a,function(e){return t(s,this)},{arity:1})}}function Bo(){if(Eo)return So;Eo=1;var t=hi(),e=fi();return So=t?{}.toString:function(){return"[object "+e(this)+"]"}}function No(){if(ko)return To;ko=1;var t=hi(),e=ei().f,n=ni(),r=ir(),i=Bo(),o=sr()("toStringTag");return To=function(s,a,u,c){var l=u?s:s&&s.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:a}),c&&!t&&n(l,"toString",i))}}function Wo(){if(Do)return Oo;Do=1;var t=oe(),e=fe(),n=t.WeakMap;return Oo=e(n)&&/native code/.test(String(n))}function Yo(){if(Ao)return Po;Ao=1;var t,e,n,r=Wo(),i=oe(),o=hn(),s=ni(),a=ir(),u=er(),c=Ji(),l=Xi(),h="Object already initialized",f=i.TypeError,d=i.WeakMap;if(r||u.state){var p=u.state||(u.state=new d);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new f(h);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new f(h);return e.facade=t,s(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return Po={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new f("Incompatible receiver, "+t+" required");return r}}}}function Go(){if(Ro)return Lo;Ro=1;var t=dr(),e=ce(),n=an(),r=rr(),i=ui(),o=mi(),s=e([].push),a=function(e){var a=1===e,u=2===e,c=3===e,l=4===e,h=6===e,f=7===e,d=5===e||h;return function(p,v,m,g){for(var y,b,w=r(p),_=n(w),x=i(_),C=t(v,m),S=0,E=g||o,T=a?E(p,x):u||f?E(p,0):void 0;x>S;S++)if((d||S in _)&&(b=C(y=_[S],S,w),e))if(a)T[S]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:s(T,y)}else switch(e){case 4:return!1;case 7:s(T,y)}return h?-1:c||l?l:T}};return Lo={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}var Vo,Uo,Xo,Ho={};function qo(){return Uo?Vo:(Uo=1,Vo=gn()&&!!Symbol.for&&!!Symbol.keyFor)}var Zo,Ko={};var Qo,Jo,$o,ts={};function es(){if(Jo)return Qo;Jo=1;var t=ce(),e=ii(),n=fe(),r=le(),i=Ci(),o=t([].push);return Qo=function(t){if(n(t))return t;if(e(t)){for(var s=t.length,a=[],u=0;u<s;u++){var c=t[u];"string"==typeof c?o(a,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||o(a,i(c))}var l=a.length,h=!0;return function(t,n){if(h)return h=!1,n;if(e(this))return n;for(var r=0;r<l;r++)if(a[r]===t)return n}}},Qo}function ns(){if($o)return ts;$o=1;var t=ri(),e=dn(),n=ue(),r=be(),i=ce(),o=se(),s=fe(),a=bn(),u=ao(),c=es(),l=gn(),h=String,f=e("JSON","stringify"),d=i(/./.exec),p=i("".charAt),v=i("".charCodeAt),m=i("".replace),g=i(1.1.toString),y=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,_=!l||o(function(){var t=e("Symbol")("stringify detection");return"[null]"!==f([t])||"{}"!==f({a:t})||"{}"!==f(Object(t))}),x=o(function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")}),C=function(t,e){var i=u(arguments),o=c(e);if(s(o)||void 0!==t&&!a(t))return i[1]=function(t,e){if(s(o)&&(e=r(o,this,h(t),e)),!a(e))return e},n(f,null,i)},S=function(t,e,n){var r=p(n,e-1),i=p(n,e+1);return d(b,t)&&!d(w,i)||d(w,t)&&!d(b,r)?"\\u"+g(v(t,0),16):t};return f&&t({target:"JSON",stat:!0,arity:3,forced:_||x},{stringify:function(t,e,r){var i=u(arguments),o=n(_?C:f,null,i);return x&&"string"==typeof o?m(o,y,S):o}}),ts}var rs,is,os={};function ss(){return is||(is=1,function(){if(Fo)return xi;Fo=1;var t=ri(),e=oe(),n=be(),r=ce(),i=$n(),o=ye(),s=gn(),a=se(),u=ir(),c=pn(),l=ti(),h=ln(),f=ur(),d=Ci(),p=sn(),v=$i(),m=Zi(),g=no(),y=uo(),b=mo(),w=hr(),_=ei(),x=Ki(),C=on(),S=go(),E=yo(),T=nr(),k=Ji(),O=Xi(),D=or(),P=sr(),A=Io(),L=zo(),R=jo(),F=No(),M=Yo(),I=Go().forEach,z=k("hidden"),j="Symbol",B="prototype",N=M.set,W=M.getterFor(j),Y=Object[B],G=e.Symbol,V=G&&G[B],U=e.RangeError,X=e.TypeError,H=e.QObject,q=w.f,Z=_.f,K=y.f,Q=C.f,J=r([].push),$=T("symbols"),tt=T("op-symbols"),et=T("wks"),nt=!H||!H[B]||!H[B].findChild,rt=function(t,e,n){var r=q(Y,e);r&&delete Y[e],Z(t,e,n),r&&t!==Y&&Z(Y,e,r)},it=o&&a(function(){return 7!==v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?rt:Z,ot=function(t,e){var n=$[t]=v(V);return N(n,{type:j,tag:t,description:e}),o||(n.description=e),n},st=function(t,e,n){t===Y&&st(tt,e,n),l(t);var r=f(e);return l(n),u($,r)?(n.enumerable?(u(t,z)&&t[z][r]&&(t[z][r]=!1),n=v(n,{enumerable:p(0,!1)})):(u(t,z)||Z(t,z,p(1,v(null))),t[z][r]=!0),it(t,r,n)):Z(t,r,n)},at=function(t,e){l(t);var r=h(e),i=m(r).concat(ht(r));return I(i,function(e){o&&!n(ut,r,e)||st(t,e,r[e])}),t},ut=function(t){var e=f(t),r=n(Q,this,e);return!(this===Y&&u($,e)&&!u(tt,e))&&(!(r||!u(this,e)||!u($,e)||u(this,z)&&this[z][e])||r)},ct=function(t,e){var n=h(t),r=f(e);if(n!==Y||!u($,r)||u(tt,r)){var i=q(n,r);return!i||!u($,r)||u(n,z)&&n[z][r]||(i.enumerable=!0),i}},lt=function(t){var e=K(h(t)),n=[];return I(e,function(t){u($,t)||u(O,t)||J(n,t)}),n},ht=function(t){var e=t===Y,n=K(e?tt:h(t)),r=[];return I(n,function(t){!u($,t)||e&&!u(Y,t)||J(r,$[t])}),r};s||(G=function(){if(c(V,this))throw new X("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=D(t),i=function(t){var o=void 0===this?e:this;o===Y&&n(i,tt,t),u(o,z)&&u(o[z],r)&&(o[z][r]=!1);var s=p(1,t);try{it(o,r,s)}catch(t){if(!(t instanceof U))throw t;rt(o,r,s)}};return o&&nt&&it(Y,r,{configurable:!0,set:i}),ot(r,t)},S(V=G[B],"toString",function(){return W(this).tag}),S(G,"withoutSetter",function(t){return ot(D(t),t)}),C.f=ut,_.f=st,x.f=at,w.f=ct,g.f=y.f=lt,b.f=ht,A.f=function(t){return ot(P(t),t)},o&&(E(V,"description",{configurable:!0,get:function(){return W(this).description}}),i||S(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),I(m(et),function(t){L(t)}),t({target:j,stat:!0,forced:!s},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),t({target:"Object",stat:!0,forced:!s,sham:!o},{create:function(t,e){return void 0===e?v(t):at(v(t),e)},defineProperty:st,defineProperties:at,getOwnPropertyDescriptor:ct}),t({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt}),R(),F(G,j),O[z]=!0}(),function(){if(Xo)return Ho;Xo=1;var t=ri(),e=dn(),n=ir(),r=Ci(),i=nr(),o=qo(),s=i("string-to-symbol-registry"),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=r(t);if(n(s,i))return s[i];var o=e("Symbol")(i);return s[i]=o,a[o]=i,o}})}(),function(){if(Zo)return Ko;Zo=1;var t=ri(),e=ir(),n=bn(),r=wn(),i=nr(),o=qo(),s=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(s,t))return s[t]}})}(),ns(),function(){if(rs)return os;rs=1;var t=ri(),e=gn(),n=se(),r=mo(),i=rr();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(i(t)):[]}})}()),_i}var as,us={};function cs(){return as||(as=1,zo()("asyncDispose")),us}var ls;var hs,fs={};function ds(){return hs||(hs=1,zo()("dispose")),fs}var ps;var vs;var ms,gs={};function ys(){return ms||(ms=1,zo()("iterator")),gs}var bs;var ws;var _s;var xs;var Cs;var Ss;var Es,Ts={};function ks(){if(Es)return Ts;Es=1;var t=zo(),e=jo();return t("toPrimitive"),e(),Ts}var Os,Ds={};var Ps;var As,Ls,Rs,Fs={};function Ms(){return Rs?Ls:(Rs=1,yi(),ss(),cs(),ls||(ls=1,zo()("asyncIterator")),ds(),ps||(ps=1,zo()("hasInstance")),vs||(vs=1,zo()("isConcatSpreadable")),ys(),bs||(bs=1,zo()("match")),ws||(ws=1,zo()("matchAll")),_s||(_s=1,zo()("replace")),xs||(xs=1,zo()("search")),Cs||(Cs=1,zo()("species")),Ss||(Ss=1,zo()("split")),ks(),function(){if(Os)return Ds;Os=1;var t=dn(),e=zo(),n=No();e("toStringTag"),n(t("Symbol"),"Symbol")}(),Ps||(Ps=1,zo()("unscopables")),function(){if(As)return Fs;As=1;var t=oe();No()(t.JSON,"JSON",!0)}(),Ls=fn().Symbol)}var Is,zs,js,Bs,Ns,Ws,Ys,Gs,Vs,Us,Xs,Hs,qs,Zs,Ks,Qs,Js,$s,ta,ea,na,ra,ia,oa,sa,aa,ua,ca,la,ha,fa,da,pa,va,ma,ga={};function ya(){return zs?Is:(zs=1,Is=function(){})}function ba(){return Bs?js:(Bs=1,js={})}function wa(){if(Ws)return Ns;Ws=1;var t=ye(),e=ir(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!t||t&&r(n,"name").configurable);return Ns={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function _a(){return Gs?Ys:(Gs=1,Ys=!se()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function xa(){if(Us)return Vs;Us=1;var t=ir(),e=fe(),n=rr(),r=Ji(),i=_a(),o=r("IE_PROTO"),s=Object,a=s.prototype;return Vs=i?s.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof s?a:null}