@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
2 lines • 457 kB
JavaScript
/* @license */
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`kendo.data.min.js`),require(`kendo.draganddrop.min.js`),require(`kendo.userevents.min.js`),require(`kendo.mobile.scroller.min.js`),require(`kendo.drawing.min.js`),require(`kendo.toolbar.min.js`),require(`kendo.tooltip.min.js`),require(`kendo.editable.min.js`),require(`kendo.window.min.js`),require(`kendo.dropdownlist.min.js`),require(`kendo.dataviz.core.min.js`),require(`kendo.dataviz.themes.min.js`),require(`kendo.html.button.min.js`)):typeof define==`function`&&define.amd?define([`exports`,`kendo.data.min`,`kendo.draganddrop.min`,`kendo.userevents.min`,`kendo.mobile.scroller.min`,`kendo.drawing.min`,`kendo.toolbar.min`,`kendo.tooltip.min`,`kendo.editable.min`,`kendo.window.min`,`kendo.dropdownlist.min`,`kendo.dataviz.core.min`,`kendo.dataviz.themes.min`,`kendo.html.button.min`],t):(e=typeof globalThis<`u`?globalThis:e||self,t((e.kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.DatavizDiagram={}),e.kendo._globals.Data,e.kendo._globals.Draganddrop,e.kendo._globals.Userevents,e.kendo._globals.MobileScroller,e.kendo._globals.Drawing,e.kendo._globals.Toolbar,e.kendo._globals.Tooltip,e.kendo._globals.Editable,e.kendo._globals.Window,e.kendo._globals.Dropdownlist,e.kendo._globals.DatavizCore,e.kendo._globals.DatavizThemes,e.kendo._globals.HtmlButton))})(this,function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var m=Object.defineProperty,h=(e,t)=>{let n={};for(var r in e)m(n,r,{get:e[r],enumerable:!0});return t||m(n,Symbol.toStringTag,{value:`Module`}),n};let g=`width`,_=`height`,v=`transparent`,y=`start`,b=`center`,x=`wrap`,S={none:`none`,arrowStart:`ArrowStart`,filledCircle:`FilledCircle`,arrowEnd:`ArrowEnd`};var C;(function(e){e.None=`none`,e.ArrowStart=`ArrowStart`,e.FilledCircle=`FilledCircle`,e.ArrowEnd=`ArrowEnd`})(C||={});let ee=Math.PI/180,te=1e-6,w=`change`,T={arrow:`default`,grip:`pointer`,cross:`pointer`,add:`pointer`,move:`move`,select:`pointer`,south:`s-resize`,east:`e-resize`,west:`w-resize`,north:`n-resize`,rowresize:`row-resize`,colresize:`col-resize`},E=`Auto`,ne=`Right`,re=`Left`,ie=`Bottom`,ae=`dragStart`,oe=`drag`,se=`dragEnd`,ce=`itemRotate`,le=`itemBoundsChange`,ue=`mouseEnter`,de=`mouseLeave`,fe=`zoomStart`,pe=`zoomEnd`,me=`tooltipShow`,he=`tooltipHide`,ge=`rotated`,_e=`source`,ve=`target`,ye={"-1":_e,1:ve},be=`Connection Editing`,xe=`inline`,Se={left:4,right:4,top:2,bottom:2},Ce=`cascading`,we=9007199254740992,Te=`select`,Ee=`none`,De=Number.MAX_VALUE,Oe=-Number.MAX_VALUE,ke=`transformed`,Ae=`k-focus`,je=`aria-activedescendant`,Me=`tabindex`,Ne=`keydown`,Pe=`mousedown`,Fe=`touchstart`,Ie=`pointerdown`,Le=`focus`,Re=`blur`,ze=`ArrowRight`,Be=`ArrowLeft`,Ve=`Shape`,He=`Connection`,Ue=`className`,We=e=>Math.abs(e)<te,D=e=>e!==void 0,O=D,Ge=e=>typeof e==`function`,k=e=>e==null,Ke=e=>e===Object(e),qe=(e,t)=>Object.hasOwnProperty.call(e,t),A=e=>Object.prototype.toString.call(e)===`[object String]`,Je=e=>Object.prototype.toString.call(e)===`[object Boolean]`,Ye=(e,t)=>Object.prototype.toString.call(e)===`[object `+t+`]`,Xe=e=>!isNaN(parseFloat(e))&&isFinite(e),Ze=e=>{if(e===null)return!0;if(Array.isArray(e)||A(e))return e.length===0;for(let t in e)if(qe(e,t))return!1;return!0},Qe=(e,t)=>{if(Ke(t))for(let n in t)n&&(e[n]=t[n])},$e=(e,t)=>{let n=[];for(let r=0;r<e;++r)n[r]=t;return n},et=e=>{let t=[];for(let n=0;n<e.length;n++){let r=e[n];t.push(r.x+`;`+r.y)}return t.join(`;`)},tt=e=>{let t=e.split(`;`),n=[];if(t.length%2!=0)throw Error(`Not an array of points.`);for(let e=0;e<t.length;e+=2)n.push({x:parseInt(t[e],10),y:parseInt(t[e+1],10)});return n},nt=(e,t)=>{let n=Math.floor(Math.random()*t)+e;return parseInt(n.toString(),10)},rt=(e,t)=>{if(t(e),e.childNodes)for(let n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];rt(r,t)}},it=e=>e===null||e.d===0?0:Math.atan2(e.b,e.d)*180/Math.PI,at=e=>[Math.sqrt(e.a*e.a+e.c*e.c),Math.sqrt(e.b*e.b+e.d*e.d)],ot=(e,t)=>{if(e===t)return 0;let n=t.x-e.x,r=e.y-t.y,i=Math.atan(n/r);return r>=0?n<0?i+2*Math.PI:i:i+Math.PI},st=e=>e?e<0?-1:1:0,ct=(e,t)=>ot(e,t)*180/Math.PI,j=(e,t,n)=>{for(let r=0;r<e.length;r++)t.call(n,e[r],r,e)},lt=(e,t)=>{for(let n=0;n<e.length;++n)if(t(e[n]))return e[n];return null},M=(e,t)=>{let n=e.indexOf(t);for(;n!==-1;)e.splice(n,1),n=e.indexOf(t);return e},N=(e,t)=>(e||[]).includes(t),ut=(e,t)=>e.indexOf(t),dt=(e,t)=>t.indexOf(e),ft=(e,t)=>e.filter(t),pt=(e,t,n,r)=>{let i=n!==void 0;for(let a=0;a<e.length;a++){let o=e[a];i?n=t.call(r,n,o,a,e):(n=o,i=!0)}if(!i)throw Error(`Reduce of empty array with no initial value`);return n},mt=(e,t,n)=>e.find(t.bind(n))||void 0,ht=(e,t,n)=>e.length===0?null:k(t)?e[0]:mt(e,t,n),gt=(e,t,n)=>(e.splice(n,0,t),e),_t=(e,t,n)=>{let r=!0,i;for(let a=0;a<e.length&&(i=e[a],r&&=t.call(n,i,a,e),r);a++);return r},vt=e=>{e.splice(0,e.length)},yt=(e,t,n)=>{if(k(e))throw Error(`First array is not specified.`);if(k(t))throw Error(`Second array is not specified.`);if(e.length!==t.length)throw Error(`The two arrays should have equal length`);let r=[];for(let n=0;n<e.length;n++)r.push({x:e[n],y:t[n]});k(n)?r.sort((e,t)=>e.x-t.x):r.sort((e,t)=>n(e.x,t.x)),vt(e),vt(t);for(let n=0;n<r.length;n++)e.push(r[n].x),t.push(r[n].y)},bt=(e,t)=>{e.push(...t)},xt=()=>{},St=`string`,Ct=`function`,wt=function(){this._defaultPrevented=!0},Tt=function(){return this._defaultPrevented===!0};var Et=class{constructor(){this.options={},this.events=[],this._events={}}destroy(){this.unbind()}bind(e,t,n){if(!t&&Ke(e)&&!Array.isArray(e)){for(let t in e)e[t]&&this.bind(t,e[t]);return this}let r=typeof e===St?[e]:e,i=typeof t===Ct,a,o;for(let e=0,s=r.length;e<s;e++){let s=r[e];o=i?t:t[s],o&&(n&&(a=o,o=(...e)=>{this.unbind(s,o),a.apply(this,e)},o.original=a),this._events[s]=this._events[s]||[],this._events[s].push(o))}return this}one(e,t){return this.bind(e,t,!0)}first(e,t){let n=typeof e===St?[String(e)]:Array.from(e),r=typeof t===Ct,i;for(let e=0,a=n.length;e<a;e++){let a=n[e];i=r?t:t[a],i&&(this._events[a]=this._events[a]||[],this._events[a].unshift(i))}return this}trigger(e,t){let n=this._events[e];if(n){let e=t||{};e.sender=this,e._defaultPrevented=!1,e.preventDefault=wt,e.isDefaultPrevented=Tt,n=n.slice();for(let t=0,r=n.length;t<r;t++)n[t].call(this,e);return e._defaultPrevented===!0}return!1}unbind(e,t){let n=this._events[e];if(e===void 0)this._events={};else if(n)if(t)for(let e=n.length-1;e>=0;e--)(n[e]===t||n[e].original===t)&&n.splice(e,1);else this._events[e]=[];return this}_setEvents(e){let t=(this.events||[]).length;for(let n=0;n<t;n++){let t=this.events[n];this.options[t]&&e[t]&&(this.unbind(t,this.options[t]),this._events&&this._events[t]&&delete this._events[t])}this.bind(this.events,e)}},Dt=h({DFT:()=>rt,Observable:()=>Et,addRange:()=>bt,all:()=>_t,bisort:()=>yt,clear:()=>vt,contains:()=>N,defined:()=>O,deserializePoints:()=>tt,find:()=>mt,findAngle:()=>ct,findRadian:()=>ot,first:()=>ht,fold:()=>pt,forEach:()=>j,getAny:()=>lt,getMatrixAngle:()=>it,getMatrixScaling:()=>at,grep:()=>ft,has:()=>qe,inArray:()=>dt,indexOf:()=>ut,initArray:()=>$e,insert:()=>gt,isBoolean:()=>Je,isDefined:()=>D,isEmpty:()=>Ze,isFunction:()=>Ge,isNearZero:()=>We,isNumber:()=>Xe,isObject:()=>Ke,isString:()=>A,isType:()=>Ye,isUndefined:()=>k,noop:()=>xt,randomInteger:()=>nt,remove:()=>M,serializePoints:()=>et,sign:()=>st,simpleExtend:()=>Qe});function Ot(e,t,n){if(e===void 0||t===void 0)return[];if(n&&st(t-e)!==st(n))throw Error(`The sign of the increment should allow to reach the stop-value.`);if(n||=1,e||=0,t||=e,(t-e)/n===1/0)throw Error(`Infinite range defined.`);let r=[],i=-1,a;function o(e){let t=1;for(;e*t%1;)t*=10;return t}let s=o(Math.abs(n));if(e*=s,t*=s,n*=s,e>t&&n>0&&(n=-n),n<0)for(;(a=e+n*++i)>=t;)r.push(a/s);else for(;(a=e+n*++i)<=t;)r.push(a/s);return r}let kt={easeInOut(e){return-Math.cos(e*Math.PI)/2+.5}};var At=class{constructor(){this.adapters=[],this.target=0,this.tick=0,this.interval=20,this.duration=800,this.lastTime=null,this.handlers=[],this.timerDelegate=()=>{},this.intervalId=null,this.caller=null,this.timerDelegate=()=>{this.onTimerEvent()}}addAdapter(e){this.adapters.push(e)}onComplete(e){this.handlers.push(e)}removeHandler(e){this.handlers=this.handlers.filter(t=>t!==e)}trigger(){this.handlers&&j(this.handlers,e=>e.call(this.caller===null?this:this.caller))}onStep(){}seekTo(e){this.seekFromTo(this.tick,e)}seekFromTo(e,t){this.target=Math.max(0,Math.min(1,t)),this.tick=Math.max(0,Math.min(1,e)),this.lastTime=new Date().getTime(),this.intervalId||=window.setInterval(this.timerDelegate,this.interval)}stop(){this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null,this.trigger())}play(e){this.adapters.length!==0&&(e!==null&&(this.caller=e),this.initState(),this.seekFromTo(0,1))}reverse(){this.seekFromTo(1,0)}initState(){if(this.adapters.length!==0)for(let e=0;e<this.adapters.length;e++)this.adapters[e].initState()}propagate(){let e=kt.easeInOut(this.tick);for(let t=0;t<this.adapters.length;t++)this.adapters[t].update(e)}onTimerEvent(){let e=new Date().getTime(),t=e-this.lastTime;this.lastTime=e;let n=t/this.duration*(this.tick<this.target?1:-1);Math.abs(n)>=Math.abs(this.tick-this.target)?this.tick=this.target:this.tick+=n;try{this.propagate()}finally{this.onStep.call(this),this.target===this.tick&&this.stop()}}};function jt(e){k(e)&&(e=10);let t=``;for(let n=e;n>0;--n)t+=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.charAt(Math.round(Math.random()*61));return t}var Mt=class e{constructor(){this._buckets={},this.length=0,this._stringsMap=new Map,this._stringsCounter=0}add(e,t){let n=this._createGetBucket(e);return D(t)&&(n.value=t),n}get(e){return this._bucketExists(e)?this._createGetBucket(e):null}set(e,t){this.add(e,t)}containsKey(e){return this._bucketExists(e)}remove(e){if(this._bucketExists(e)){let t=this._hash(e);return delete this._buckets[t],this.length--,e}}forEach(e){let t=this._hashes();for(let n=0,r=t.length;n<r;n++){let r=t[n],i=this._buckets[r];k(i)||e(i)}}clone(){let t=new e,n=this._hashes();for(let e=0,r=n.length;e<r;e++){let r=n[e],i=this._buckets[r];k(i)||t.add(i.key,i.value)}return t}_hashes(){let e=[];for(let t in this._buckets)Object.prototype.hasOwnProperty.call(this._buckets,t)&&e.push(t);return e}_bucketExists(e){let t=this._hash(e);return D(this._buckets[t])}_createGetBucket(e){let t=this._hash(e),n=this._buckets[t];return k(n)&&(n={key:e},this._buckets[t]=n,this.length++),n}_hash(e){if(A(e)||Xe(e))return this._hashString(String(e));if(Ke(e))return this._objectHashId(e);throw Error(`Unsupported key type.`)}_hashString(e){let t=0;return e.length===0?t:this._stringsMap.has(e)?this._stringsMap.get(e):(this._stringsCounter++,this._stringsMap.set(e,this._stringsCounter),t=this._stringsCounter,t)}_objectHashId(e){let t=e._hashId;return k(t)&&(t=jt(),e._hashId=t),t}},P=class extends Et{constructor(e){if(super(),this._hashTable=new Mt,this.length=0,D(e))if(Array.isArray(e))for(let t=0;t<e.length;t++)this.add(e[t]);else e.forEach(function(e,t){this.add(e,t)},this)}add(e,t){let n=this._hashTable.get(e);n||(n=this._hashTable.add(e),this.length++,this.trigger(`changed`)),n.value=t}set(e,t){this.add(e,t)}get(e){let t=this._hashTable.get(e);if(t)return t.value;throw Error(`Cannot find key `+e)}containsKey(e){return this._hashTable.containsKey(e)}remove(e){if(this.containsKey(e))return this.trigger(`changed`),this.length--,this._hashTable.remove(e)}forEach(e,t){this._hashTable.forEach(function(n){e.call(t,n.key,n.value)})}forEachValue(e,t){this._hashTable.forEach(function(n){e.call(t,n.value)})}forEachKey(e,t){this._hashTable.forEach(function(n){e.call(t,n.key)})}keys(){let e=[];return this.forEachKey(function(t){e.push(t)}),e}};let Nt={_distanceToLineSquared:function(e,t,n){function r(e,t){return(e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)}if(t===n)return r(e,t);let i=n.x-t.x,a=n.y-t.y,o=(e.x-t.x)*i+(e.y-t.y)*a;return o<0?r(t,e):(o=(n.x-e.x)*i+(n.y-e.y)*a,o<0?r(n,e):(o=(n.x-e.x)*a-(n.y-e.y)*i,o*o/(i*i+a*a)))},distanceToLine:function(e,t,n){return Math.sqrt(this._distanceToLineSquared(e,t,n))},distanceToPolyline:function(e,t){let n=Number.MAX_VALUE;if(k(t)||t.length===0)return Number.MAX_VALUE;for(let r=0;r<t.length-1;r++){let i=t[r],a=t[r+1],o=this._distanceToLineSquared(e,i,a);o<n&&(n=o)}return Math.sqrt(n)}};var Pt=class{},Ft=class extends Pt{constructor(){super(),this._events={}}bind(e,t,n){let r=Lt(e),i=It(t),a=r.length;if(t===void 0){for(let t in e)this.bind(t,e[t]);return this}for(let e=0;e<a;e++){let a=r[e],o=i?t:t[a];if(o){if(n){let e=o;o=()=>{this.unbind(a,o),e.apply(this,arguments)},o.original=e}(this._events[a]=this._events[a]||[]).push(o)}}return this}one(e,t){return this.bind(e,t,!0)}first(e,t){let n=Lt(e),r=It(t);for(let e=0,i=n.length;e<i;e++){let i=n[e],a=r?t:t[i];a&&(this._events[i]=this._events[i]||[]).unshift(a)}return this}trigger(e,t={}){let n=this._events[e];if(n){let e=n.length;t.sender=this,t._defaultPrevented=!1,t.preventDefault=Rt,t.isDefaultPrevented=zt,n=n.slice();for(let r=0;r<e;r++)n[r].call(this,t);return t._defaultPrevented===!0}return!1}unbind(e,t){let n=this._events[e];if(e===void 0)this._events={};else if(n)if(t)for(let e=n.length-1;e>=0;e--)(n[e]===t||n[e].original===t)&&n.splice(e,1);else this._events[e]=[];return this}};function It(e){return typeof e==`function`}function Lt(e){return typeof e==`string`?[e]:e}function Rt(){this._defaultPrevented=!0}function zt(){return this._defaultPrevented===!0}var Bt=Ft;let Vt=e=>{let t=typeof window<`u`?window:{},n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};Vt=e=>n.call(t,e),Vt(e)};var Ht=Vt;let Ut=/&/g,Wt=/</g,Gt=/"/g,Kt=/'/g,qt=/>/g;function Jt(e){return String(e).replace(Ut,`&`).replace(Wt,`<`).replace(qt,`>`).replace(Gt,`"`).replace(Kt,`'`)}function Yt(e){let t=window.console;t!==void 0&&t.log&&t.log(e)}function Xt(e){let t={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+))/i},n={};for(let r in t)if(t.hasOwnProperty(r)){let i=e.match(t[r]);if(i){n[r]=!0,n[i[1].toLowerCase().split(` `)[0].split(`/`)[0]]=!0,n.version=parseInt(document.documentMode||i[2],10);break}}return n}let Zt=null;var Qt={get browser(){return typeof window>`u`||Zt||(Zt=Xt(window.navigator.userAgent)),Zt}},$t=Date.now||function(){return new Date().getTime()};function en(e,t){let n=0,r;if(!t||t<=0)return e;let i=function(){let i=$t()-n,a=arguments,o=function(){e.apply(null,a),n=$t()};if(!n)return o();r&&clearTimeout(r),i>t?o():r=setTimeout(o,t-i)};return i.cancel=function(){clearTimeout(r)},i}var tn={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`00ffff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000000`,blanchedalmond:`ffebcd`,blue:`0000ff`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`00ffff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgrey:`a9a9a9`,darkgreen:`006400`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`ff00ff`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,grey:`808080`,green:`008000`,greenyellow:`adff2f`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgrey:`d3d3d3`,lightgreen:`90ee90`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`778899`,lightslategrey:`778899`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`00ff00`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`ff00ff`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370d8`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`d87093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,red:`ff0000`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`ffffff`,whitesmoke:`f5f5f5`,yellow:`ffff00`,yellowgreen:`9acd32`};let nn=Qt.browser,rn=e=>{let t=Object.keys(tn);t.push(`transparent`);let n=RegExp(`^(`+t.join(`|`)+`)(\\W|$)`,`i`);return rn=e=>n.exec(e),n.exec(e)};var an=class extends Pt{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(e){return this.toBytes().toHex(e)}toBytes(){return this}toCss(e){return`#`+this.toHex(e)}toCssRgba(){let e=this.toBytes();return`rgba(${e.r}, ${e.g}, ${e.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return nn.msie&&nn.version<9?this.toCss():this.toCssRgba()}equals(e){return e===this||e!=null&&this.toCssRgba()===pn(e).toCssRgba()}diff(e){if(e===null)return NaN;let t=this.toBytes(),n=e.toBytes();return Math.sqrt(((t.r-n.r)*.3)**2+((t.g-n.g)*.59)**2+((t.b-n.b)*.11)**2)}clone(){let e=this.toBytes();return e===this&&(e=new sn(e.r,e.g,e.b,e.a)),e}},on=class extends an{constructor(e,t,n,r){super(),this.r=e,this.g=t,this.b=n,this.a=r}toHSV(){let{r:e,g:t,b:n}=this,r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r,o=i,s,c;return a===0?new ln(0,0,o,this.a):(i===0?(c=0,s=-1):(c=a/i,s=e===i?(t-n)/a:t===i?2+(n-e)/a:4+(e-t)/a,s*=60,s<0&&(s+=360)),new ln(s,c,o,this.a))}toHSL(){let{r:e,g:t,b:n}=this,r=Math.max(e,t,n),i=Math.min(e,t,n),a,o,s=(r+i)/2;if(r===i)a=o=0;else{let c=r-i;switch(o=s>.5?c/(2-r-i):c/(r+i),r){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break;default:break}}return new un(a*60,o*100,s*100,this.a)}toBytes(){return new sn(this.r*255,this.g*255,this.b*255,this.a)}},sn=class extends on{constructor(e,t,n,r){super(Math.round(e),Math.round(t),Math.round(n),r)}toRGB(){return new on(this.r/255,this.g/255,this.b/255,this.a)}toHSV(){return this.toRGB().toHSV()}toHSL(){return this.toRGB().toHSL()}toHex(e){let t=cn(this.r,2)+cn(this.g,2)+cn(this.b,2);return e&&e.alpha&&(t+=cn(Math.round(this.a*255),2)),t}toBytes(){return this}};function cn(e,t,n=`0`){let r=e.toString(16);for(;t>r.length;)r=n+r;return r}var ln=class extends an{constructor(e,t,n,r){super(),this.h=e,this.s=t,this.v=n,this.a=r}toRGB(){let{h:e,s:t,v:n}=this,r,i,a;if(t===0)r=i=a=n;else{e/=60;let o=Math.floor(e),s=e-o,c=n*(1-t),l=n*(1-t*s),u=n*(1-t*(1-s));switch(o){case 0:r=n,i=u,a=c;break;case 1:r=l,i=n,a=c;break;case 2:r=c,i=n,a=u;break;case 3:r=c,i=l,a=n;break;case 4:r=u,i=c,a=n;break;default:r=n,i=c,a=l;break}}return new on(r,i,a,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}},un=class extends an{constructor(e,t,n,r){super(),this.h=e,this.s=t,this.l=n,this.a=r}toRGB(){let e=this.h/360,t=this.s/100,n=this.l/100,r,i,a;if(t===0)r=i=a=n;else{let o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=dn(s,o,e+1/3),i=dn(s,o,e),a=dn(s,o,e-1/3)}return new on(r,i,a,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}};function dn(e,t,n){let r=n;return r<0&&(r+=1),r>1&&--r,r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function fn(e){return parseFloat(parseFloat(parseInt(e,16)/255).toFixed(3))}function pn(e,t){let n,r;if(!e||e===`none`)return null;if(e instanceof an)return e;let i=e.toLowerCase();if(n=rn(i))return i=n[1]===`transparent`?new on(1,1,1,0):pn(tn[n[1]],t),i.match=[n[1]],i;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?r=new sn(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?r=new sn(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?r=new sn(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),fn(n[4]+n[4])):(n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?r=new sn(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),fn(n[4])):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(i))?r=new sn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(i))?r=new sn(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(i))?r=new on(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(i))?r=new on(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4])):(n=/^color\(\s*srgb\s*([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s+([0-9]*\.?[0-9]+)\s*(\/\s+([0-9]*\.?[0-9]+))?\)/.exec(i))&&(r=new on(parseFloat(n[1]),parseFloat(n[2]),parseFloat(n[3]),parseFloat(n[5]||`1`))),r)r.match=n;else if(!t)throw Error(`Cannot parse color: `+i);return r}var mn=class e extends Pt{constructor(t){if(super(),arguments.length===1){let n=e.formats,r=this.resolveColor(t);for(let e=0;e<n.length;e++){let t=n[e].re,i=n[e].process,a=t.exec(r);if(a){let e=i(a);this.r=e[0],this.g=e[1],this.b=e[2]}}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}toHex(){let e=this.padDigit,t=this.r.toString(16),n=this.g.toString(16),r=this.b.toString(16);return`#`+e(t)+e(n)+e(r)}resolveColor(t){let n=t||`black`;return n.charAt(0)===`#`&&(n=n.substr(1,6)),n=n.replace(/ /g,``),n=n.toLowerCase(),n=e.namedColors[n]||n,n}normalizeByte(e){return e<0||isNaN(e)?0:e>255?255:e}padDigit(e){return e.length===1?`0`+e:e}brightness(e){let t=Math.round;return this.r=t(this.normalizeByte(this.r*e)),this.g=t(this.normalizeByte(this.g*e)),this.b=t(this.normalizeByte(this.b*e)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(e,t,n,r){return new sn(e,t,n,r??1)}static fromRGB(e,t,n,r){return new on(e,t,n,r??1)}static fromHSV(e,t,n,r){return new ln(e,t,n,r??1)}static fromHSL(e,t,n,r){return new un(e,t,n,r??1)}};mn.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(e){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],mn.namedColors=tn;var hn=mn,gn=class extends Pt{observers(){return this._observers=this._observers||[],this._observers}addObserver(e){return this._observers?this._observers.push(e):this._observers=[e],this}removeObserver(e){let t=this.observers(),n=t.indexOf(e);return n!==-1&&t.splice(n,1),this}trigger(e,t){let n=this._observers;if(n&&!this._suspended)for(let r=0;r<n.length;r++){let i=n[r];i[e]&&i[e](t)}return this}optionsChange(e={}){e.element=this,this.trigger(`optionsChange`,e)}geometryChange(){this.trigger(`geometryChange`,{element:this})}suspend(){return this._suspended=(this._suspended||0)+1,this}resume(){return this._suspended=Math.max((this._suspended||0)-1,0),this}_observerField(e,t){this[e]&&this[e].removeObserver(this),this[e]=t,t.addObserver(this)}};let _n={}.toString;var vn=class e extends gn{constructor(e,t=``){for(let n in super(),this.prefix=t,e){let t=e[n];t=this._wrap(t,n),this[n]=t}}get(e){let t=e.split(`.`),n=this;for(;t.length&&n;){let e=t.shift();n=n[e]}return n}set(e,t){this.get(e)!==t&&(this._set(e,this._wrap(t,e)),this.optionsChange({field:this.prefix+e,value:t}))}_set(t,n){let r=t.indexOf(`.`)>=0,i=this,a=t;if(r){let t=a.split(`.`),n=this.prefix;for(;t.length>1;){a=t.shift(),n+=a+`.`;let r=i[a];r||(r=new e({},n),r.addObserver(this),i[a]=r),i=r}a=t[0]}i._clear(a),i[a]=n}_clear(e){let t=this[e];t&&t.removeObserver&&t.removeObserver(this)}_wrap(t,n){let r=_n.call(t),i=t;return i!=null&&r===`[object Object]`&&(!(t instanceof e)&&!(t instanceof Pt)&&(i=new e(i,this.prefix+n+`.`)),i.addObserver(this)),i}};function yn(e){return function(t){return this[e]!==t&&(this[e]=t,this.geometryChange()),this}}function bn(e){return function(){return this[e]}}function xn(e,t){for(let n=0;n<t.length;n++){let r=t[n],i=r.charAt(0).toUpperCase()+r.substring(1,r.length);e[`set`+i]=yn(r),e[`get`+i]=bn(r)}}var Sn=(e,t)=>{let n=class extends e{};return xn(n.prototype,t),n};function Cn(e,t){return e.push.apply(e,t),e}let wn={1:`i`,10:`x`,100:`c`,2:`ii`,20:`xx`,200:`cc`,3:`iii`,30:`xxx`,300:`ccc`,4:`iv`,40:`xl`,400:`cd`,5:`v`,50:`l`,500:`d`,6:`vi`,60:`lx`,600:`dc`,7:`vii`,70:`lxx`,700:`dcc`,8:`viii`,80:`lxxx`,800:`dccc`,9:`ix`,90:`xc`,900:`cm`,1e3:`m`};function Tn(e){let t=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n=``;for(;e>0;)e<t[0]?t.shift():(n+=wn[t[0]],e-=t[0]);return n}function En(){let e,t,n=new Promise((r,i)=>{e=e=>(n._state=`resolved`,r(e),n),t=e=>(n._state=`rejected`,i(e),n)});return n._state=`pending`,n.resolve=e,n.reject=t,n.state=()=>n._state,n}let Dn=1;function On(){return`kdef`+ Dn++}let kn=Math.PI/180,An=Number.MAX_VALUE,jn=-Number.MAX_VALUE;function Mn(e){return e/kn}let Nn=String.fromCharCode;function Pn(e){let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(55296<=r&&r<=56319){let t=r,i=e.charCodeAt(++n);isNaN(i)||(r=(t-55296)*1024+(i-56320)+65536)}r<128?t+=Nn(r):r<2048?(t+=Nn(192|r>>>6),t+=Nn(128|r&63)):r<65536?(t+=Nn(224|r>>>12),t+=Nn(128|r>>>6&63),t+=Nn(128|r&63)):r<1114111&&(t+=Nn(240|r>>>18),t+=Nn(128|r>>>12&63),t+=Nn(128|r>>>6&63),t+=Nn(128|r&63))}return t}let Fn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;function In(e){let t=``,n=0,r=Pn(e);for(;n<r.length;){let e=r.charCodeAt(n++),i=r.charCodeAt(n++),a=r.charCodeAt(n++),o=e>>2,s=(e&3)<<4|i>>4,c=(i&15)<<2|a>>6,l=a&63;isNaN(i)?c=l=64:isNaN(a)&&(l=64),t=t+Fn.charAt(o)+Fn.charAt(s)+Fn.charAt(c)+Fn.charAt(l)}return t}function Ln(e){return(e.x||{}).location===void 0?{x:e.pageX||e.clientX||0,y:e.pageY||e.clientY||0}:{x:e.x.location,y:e.y.location}}function Rn(e={}){return e.touch?e.touch.initialTouch:e.target}function zn(e){return e===``||e===null||e===`none`||e===`transparent`||e===void 0}function Bn(e){if(e)return e[e.length-1]}function Vn(e,t,n){return Math.max(Math.min(e,n),t)}function Hn(e,t){if(e.length<2)return e.slice();function n(e,n){for(var r=[],i=0,a=0,o=0;i<e.length&&a<n.length;)t(e[i],n[a])<=0?r[o++]=e[i++]:r[o++]=n[a++];return i<e.length&&r.push.apply(r,e.slice(i)),a<n.length&&r.push.apply(r,n.slice(a)),r}return(function e(t){if(t.length<=1)return t;var r=Math.floor(t.length/2),i=t.slice(0,r),a=t.slice(r);return i=e(i),a=e(a),n(i,a)})(e)}function Un(e){return Promise.all(e)}function Wn(e){return e*kn}function Gn(e){return e?10**e:1}function F(e,t){let n=Gn(t);return Math.round(e*n)/n}function Kn(e,t){return e===void 0?t:e}function qn(e,t){for(let n in t){let r=n.trim().split(` `);for(let i=0;i<r.length;i++)e.addEventListener(r[i],t[n],!1)}}function Jn(e){let t=e.getBoundingClientRect(),n=document.documentElement;return{top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}function Yn(e,t){let n={},r=window.getComputedStyle(e)||{},i=Array.isArray(t)?t:[t];for(let e=0;e<i.length;e++){let t=i[e];n[t]=r[t]}return n}function Xn(e){return isNaN(e)?e:e+`px`}function Zn(e,t){if(t){let{width:n,height:r}=t;n!==void 0&&(e.style.width=Xn(n)),r!==void 0&&(e.style.height=Xn(r))}else{let t=Yn(e,[`width`,`height`]);return{width:parseInt(t.width,10),height:parseInt(t.height,10)}}}function Qn(e,t={}){for(let n in t){let r=n.trim().split(` `);for(let i=0;i<r.length;i++)e.removeEventListener(r[i],t[n],!1)}}function $n(e){let{paddingLeft:t,paddingTop:n}=Yn(e,[`paddingLeft`,`paddingTop`]);return{top:parseFloat(n),left:parseFloat(t)}}var er=class e extends Pt{constructor(e=0,t=0,n=0,r=0,i=0,a=0){super(),this.a=e,this.b=t,this.c=n,this.d=r,this.e=i,this.f=a}multiplyCopy(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}invert(){let{a:t,b:n,c:r,d:i,e:a,f:o}=this,s=t*i-n*r;return s===0?null:new e(i/s,-n/s,-r/s,t/s,(r*o-i*a)/s,(n*a-t*o)/s)}clone(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)}equals(e){return e?this.a===e.a&&this.b===e.b&&this.c===e.c&&this.d===e.d&&this.e===e.e&&this.f===e.f:!1}round(e){return this.a=F(this.a,e),this.b=F(this.b,e),this.c=F(this.c,e),this.d=F(this.d,e),this.e=F(this.e,e),this.f=F(this.f,e),this}toArray(e){let t=[this.a,this.b,this.c,this.d,this.e,this.f];if(e!==void 0)for(let n=0;n<t.length;n++)t[n]=F(t[n],e);return t}toString(e,t=`,`){return this.toArray(e).join(t)}static translate(t,n){return new e(1,0,0,1,t,n)}static unit(){return new e(1,0,0,1,0,0)}static rotate(t,n,r){let i=new e;return i.a=Math.cos(Wn(t)),i.b=Math.sin(Wn(t)),i.c=-i.b,i.d=i.a,i.e=n-n*i.a+r*i.b||0,i.f=r-r*i.a-n*i.b||0,i}static scale(t,n){return new e(t,0,0,n,0,0)}};er.IDENTITY=er.unit();var tr=er;let nr=/matrix\((.*)\)/;function rr(e){let t=e.match(nr);return t===null||t.length!==2?tr.unit():new tr(...t[1].split(`,`).map(e=>parseFloat(e)))}function ir(e){let t=getComputedStyle(e).transform;return t===`none`?tr.unit():rr(t)}function ar(e){if(!e)return tr.unit();let t=ir(e),n=e.parentElement;for(;n;){let e=ir(n);t=t.multiplyCopy(e),n=n.parentElement}return t.b=t.c=t.e=t.f=0,t}var or=class extends Pt{constructor(e){super(),this._size=e,this._length=0,this._map={}}put(e,t){let n=this._map,r={key:e,value:t};n[e]=r,this._head?(this._tail.newer=r,r.older=this._tail,this._tail=r):this._head=this._tail=r,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(e){let t=this._map[e];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}};let sr=/\r?\n|\r|\t/g;function cr(e){return String(e).replace(sr,` `)}function lr(e){let t=[];for(let n in e)t.push(n+e[n]);return t.sort().join(``)}function ur(e){let t=2166136261;for(let n=0;n<e.length;++n)t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24),t^=e.charCodeAt(n);return t>>>0}function dr(){return{width:0,height:0,baseline:0}}let fr={baselineMarkerSize:1},pr;typeof document<`u`&&(pr=document.createElement(`div`),pr.style.setProperty(`position`,`absolute`,`important`),pr.style.setProperty(`top`,`-4000px`,`important`),pr.style.setProperty(`width`,`auto`,`important`),pr.style.setProperty(`height`,`auto`,`important`),pr.style.setProperty(`padding`,`0`,`important`),pr.style.setProperty(`margin`,`0`,`important`),pr.style.setProperty(`border`,`0`,`important`),pr.style.setProperty(`line-height`,`normal`,`important`),pr.style.setProperty(`visibility`,`hidden`,`important`),pr.style.setProperty(`white-space`,`pre`,`important`));var mr=class extends Pt{constructor(e){super(),this._cache=new or(1e3),this.options=Object.assign({},fr,e)}measure(e,t,n={}){if(e==null)return dr();let r=ur(e+lr(t)),i=this._cache.get(r);if(i)return i;let a=dr(),o=n.box||pr,s=this._baselineMarker().cloneNode(!1);for(let e in t){let n=t[e];n!==void 0&&(o.style[e]=n)}let c=n.normalizeText===!1?String(e):cr(e);return o.textContent=c,o.appendChild(s),document.body.appendChild(o),c.length&&(a.width=o.offsetWidth-this.options.baselineMarkerSize,a.height=o.offsetHeight,a.baseline=s.offsetTop+this.options.baselineMarkerSize),a.width>0&&a.height>0&&this._cache.put(r,a),o.parentNode.removeChild(o),a}_baselineMarker(){let e=document.createElement(`div`);return e.style.display=`inline-block`,e.style.verticalAlign=`baseline`,e.style.width=this.options.baselineMarkerSize+`px`,e.style.height=this.options.baselineMarkerSize+`px`,e.style.overflow=`hidden`,e}};mr.current=new mr;var hr=mr;function gr(e,t,n){return hr.current.measure(e,t,n)}let _r=()=>typeof window<`u`,vr={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},yr={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},br={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},xr={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},Sr=(e,t,n)=>{for(let n in t)if(t.hasOwnProperty(n)&&t[n].test(e))return n;return n===void 0?e:n},Cr=e=>{let t,n=[];for(let r in vr)if(vr.hasOwnProperty(r)){if(n=e.match(vr[r]),!n)continue;if(r===`windows`&&`plugins`in window.navigator)return null;let i={};return i.device=r,i.browser=Sr(e,xr,`default`),i.name=Sr(r,yr),i[i.name]=!0,i.majorVersion=n[2],i.minorVersion=n[3]?n[3].replace(`_`,`.`):`.0`,t=i.minorVersion.replace(`.`,``).substr(0,2),i.flatVersion=i.majorVersion+t+Array(3-(t.length<3?t.length:2)).join(`0`),i.cordova=!0,i.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||i.cordova,i}return null},wr=e=>{let t=null,n=[];for(let r in br)if(br.hasOwnProperty(r)&&(n=e.match(br[r]),n)){t={},t[r]=!0,t[n[1].toLowerCase().split(` `)[0].split(`/`)[0]]=!0,t.version=parseInt(document.documentMode||n[2],10);break}return t},Tr=_r()&&window.navigator?window.navigator.userAgent:null,Er=Tr?wr(Tr):null,Dr=Tr?Cr(Tr):null;_r()&&`ontouchstart`in window,Er&&!Er.chrome&&window.MSPointerEvent,Er&&!Er.chrome&&window.PointerEvent;let Or={};Or.undefined=e=>e;let kr={};kr.undefined=e=>e;let Ar=/\/\*[\s\S]*?\*\//g,jr=/([^\s:;]+?)\s*:\s*((?:(?:url\(\s*(?:(?:[^"')\\]|\\.)*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')\s*\)|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^;"'])*?)\s*)(?=;|$)/gi,Mr=/"|"|"/gi,Nr=/'|'|'/gi;function Pr(e){return e.replace(Mr,`"`).replace(Nr,`'`)}function Fr(e){let t={},n=Pr((e||``).replace(Ar,``)),r=jr.exec(n),i,a;for(;r!==null;)i=r[1].trim(),a=r[2].trim(),t[i]=a,r=jr.exec(n);return t}let Ir=(e,t)=>{let n=Fr(t);Object.keys(n).forEach(t=>{e.style[t]=n[t]})},Lr=`data-style`,Rr=e=>(e||``).replace(/\sstyle=/g,` `+Lr+`=`),zr=e=>{Array.from(e.querySelectorAll(`[`+Lr+`]`)).forEach(e=>{let t=e.getAttribute(Lr);e.removeAttribute(Lr),Ir(e,t)})},Br=(e,t)=>{e.innerHTML=Rr(t),zr(e)},Vr=(e,t)=>{let n=document.createElement(`div`);Br(n,t),n.firstElementChild&&e.insertBefore(n.firstElementChild,e.firstChild)};function Hr(e){return e&&typeof e.matrix==`function`?e.matrix():e}var I=class e extends Sn(gn,[`x`,`y`]){constructor(e,t){super(),this.x=e||0,this.y=t||0}equals(e){return e&&e.x===this.x&&e.y===this.y}clone(){return new e(this.x,this.y)}rotate(t,n){let r=e.create(n)||e.ZERO;return this.transform(tr.rotate(t,r.x,r.y))}translate(e,t){return this.x+=e,this.y+=t,this.geometryChange(),this}translateWith(e){return this.translate(e.x,e.y)}move(e,t){return this.x=this.y=0,this.translate(e,t)}scale(e,t=e){return this.x*=e,this.y*=t,this.geometryChange(),this}scaleCopy(e,t){return this.clone().scale(e,t)}transform(e){let t=Hr(e),{x:n,y:r}=this;return this.x=t.a*n+t.c*r+t.e,this.y=t.b*n+t.d*r+t.f,this.geometryChange(),this}transformCopy(e){let t=this.clone();return e&&t.transform(e),t}distanceTo(e){let t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)}round(e){return this.x=F(this.x,e),this.y=F(this.y,e),this.geometryChange(),this}toArray(e){let t=e!==void 0;return[t?F(this.x,e):this.x,t?F(this.y,e):this.y]}toString(e,t=` `){let{x:n,y:r}=this;return e!==void 0&&(n=F(n,e),r=F(r,e)),n+t+r}static create(t,n){if(t!==void 0)return t instanceof e?t:arguments.length===1&&t.length===2?new e(t[0],t[1]):new e(t,n)}static min(){let t=An,n=An;for(let e=0;e<arguments.length;e++){let r=arguments[e];t=Math.min(r.x,t),n=Math.min(r.y,n)}return new e(t,n)}static max(){let t=jn,n=jn;for(let e=0;e<arguments.length;e++){let r=arguments[e];t=Math.max(r.x,t),n=Math.max(r.y,n)}return new e(t,n)}static minPoint(){return new e(jn,jn)}static maxPoint(){return new e(An,An)}static get ZERO(){return new e(0,0)}},Ur=class e extends Sn(gn,[`width`,`height`]){constructor(e,t){super(),this.width=e||0,this.height=t||0}equals(e){return e&&e.width===this.width&&e.height===this.height}clone(){return new e(this.width,this.height)}toArray(e){let t=e!==void 0;return[t?F(this.width,e):this.width,t?F(this.height,e):this.height]}static create(t,n){if(t!==void 0)return t instanceof e?t:arguments.length===1&&t.length===2?new e(t[0],t[1]):new e(t,n)}static get ZERO(){return new e(0,0)}},L=class e extends gn{constructor(e=new I,t=new Ur,n=0){super(),this.setOrigin(e),this.setSize(t),this.setCornerRadius(n)}clone(){return new e(this.origin.clone(),this.size.clone())}equals(e){return e&&e.origin.equals(this.origin)&&e.size.equals(this.size)}setOrigin(e){return this._observerField(`origin`,I.create(e)),this.geometryChange(),this}getOrigin(){return this.origin}setCornerRadius(e){return this.cornerRadius=Array.isArray(e)?e:[e,e],this.geometryChange(),this}getCornerRadius(){return this.cornerRadius}setSize(e){return this._observerField(`size`,Ur.create(e)),this.geometryChange(),this}getSize(){return this.size}width(){return this.size.width}height(){return this.size.height}topLeft(){return this.origin.clone()}bottomRight(){return this.origin.clone().translate(this.width(),this.height())}topRight(){return this.origin.clone().translate(this.width(),0)}bottomLeft(){return this.origin.clone().translate(0,this.height())}center(){return this.origin.clone().translate(this.width()/2,this.height()/2)}bbox(t){let n=this.topLeft().transformCopy(t),r=this.topRight().transformCopy(t),i=this.bottomRight().transformCopy(t),a=this.bottomLeft().transformCopy(t);return e.fromPoints(n,r,i,a)}transformCopy(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))}expand(e,t=e){return this.size.width+=2*e,this.size.height+=2*t,this.origin.translate(-e,-t),this}expandCopy(e,t){return this.clone().expand(e,t)}containsPoint(e){let t=this.origin,n=this.bottomRight();return!(e.x<t.x||e.y<t.y||n.x<e.x||n.y<e.y)}_isOnPath(e,t){let n=this.expandCopy(t,t),r=this.expandCopy(-t,-t);return n.containsPoint(e)&&!r.containsPoint(e)}static fromPoints(){let t=I.min.apply(null,arguments),n=I.max.apply(null,arguments);return new e(t,new Ur(n.x-t.x,n.y-t.y))}static union(t,n){return e.fromPoints(I.min(t.topLeft(),n.topLeft()),I.max(t.bottomRight(),n.bottomRight()))}static intersect(t,n){let r={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},i={left:n.topLeft().x,top:n.topLeft().y,right:n.bottomRight().x,bottom:n.bottomRight().y};if(r.left<=i.right&&i.left<=r.right&&r.top<=i.bottom&&i.top<=r.bottom)return e.fromPoints(new I(Math.max(r.left,i.left),Math.max(r.top,i.top)),new I(Math.min(r.right,i.right),Math.min(r.bottom,i.bottom)))}},Wr=class e extends gn{constructor(e=tr.unit()){super(),this._matrix=e}clone(){return new e(this._matrix.clone())}equals(e){return e&&e._matrix.equals(this._matrix)}translate(e,t){return this._matrix=this._matrix.multiplyCopy(tr.translate(e,t)),this._optionsChange(),this}scale(e,t=e,n=null){let r=n;return r&&(r=I.create(r),this._matrix=this._matrix.multiplyCopy(tr.translate(r.x,r.y))),this._matrix=this._matrix.multiplyCopy(tr.scale(e,t)),r&&(this._matrix=this._matrix.multiplyCopy(tr.translate(-r.x,-r.y))),this._optionsChange(),this}rotate(e,t){let n=I.create(t)||I.ZERO;return this._matrix=this._matrix.multiplyCopy(tr.rotate(e,n.x,n.y)),this._optionsChange(),this}multiply(e){let t=Hr(e);return this._matrix=this._matrix.multiplyCopy(t),this._optionsChange(),this}matrix(e){return e?(this._matrix=e,this._optionsChange(),this):this._matrix}_optionsChange(){this.optionsChange({field:`transform`,value:this})}};function Gr(e){return e===null?null:e instanceof Wr?e:new Wr(e)}let Kr={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},qr=`solid`,Jr=`butt`,Yr=`Pattern`;var Xr=class extends gn{get nodeType(){return`Rect`}constructor(e){super(),this._initOptions(e)}_initOptions(e={}){let{clip:t,transform:n}=e;n&&(e.transform=Gr(n)),t&&!t.id&&(t.id=On()),this.options=new vn(e),this.options.addObserver(this)}transform(e){if(e!==void 0)this.options.set(`transform`,Gr(e));else return this.options.get(`transform`)}parentTransform(){let e=this,t;for(;e.parent;){e=e.parent;let n=e.transform();n&&(t=n.matrix().multiplyCopy(t||tr.unit()))}if(t)return Gr(t)}currentTransform(e=this.parentTransform()){let t=Hr(this.transform()),n=Hr(e),r;if(r=t&&n?n.multiplyCopy(t):t||n,r)return Gr(r)}visible(e){return e===void 0?this.options.get(`visible`)!==!1:(this.options.set(`visible`,e),this)}clip(e){let t=this.options;return e===void 0?t.get(`clip`):(e&&!e.id&&(e.id=On()),t.set(`clip`,e),this)}opacity(e){return e===void 0?Kn(this.options.get(`opacity`),1):(this.options.set(`opacity`,e),this)}className(e){return e===void 0?this.options.get(`className`):(this.options.set(`className`,e),this)}clippedBBox(e){let t=this._clippedBBox(e);if(t){let n=this.clip();return n?L.intersect(t,n.bbox(e)):t}}containsPoint(e,t){if(this.visible()){let n=this.currentTransform(t),r=e;return n&&(r=e.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(r)||this._isOnPath&&this._hasStroke()&&this._isOnPath(r)}return!1}_hasFill(){let e=this.options.fill;return e&&(e.nodeType===Yr||!zn(e.color))}_hasStroke(){let e=this.options.stroke;return e&&e.width>0&&!zn(e.color)}_clippedBBox(e){return this.bbox(e)}};function Zr(e,t,n,r){let i=0,a=0;return r&&(i=Math.atan2(r.c*n,r.a*t),r.b!==0&&(a=Math.atan2(r.d*n,r.b*t))),{x:i,y:a}}let Qr=Math.PI/2;var $r=class e extends Sn(gn,[`radius`]){constructor(e=new I,t=0){super(),this.setCenter(e),this.setRadius(t)}setCenter(e){return this._observerField(`center`,I.create(e)),this.geometryChange(),this}getCenter(){return this.center}equals(e){return e&&e.center.equals(this.center)&&e.radius===this.radius}clone(){return new e(this.center.clone(),this.radius)}pointAt(e){return this._pointAt(Wn(e))}bbox(e){let t=Zr(this.center,this.radius,this.radius,e),n=I.maxPoint(),r=I.minPoint();for(let i=0;i<4;i++){let a=this._pointAt(t.x+i*Qr).transformCopy(e),o=this._pointAt(t.y+i*Qr).transformCopy(e),s=new I(a.x,o.y);n=I.min(n,s),r=I.max(r,s)}return L.fromPoints(n,r)}_pointAt(e){let{center:t,radius:n}=this;return new I(t.x+n*Math.cos(e),t.y+n*Math.sin(e))}containsPoint(e){let{center:t,radius:n}=this;return(e.x-t.x)**2+(e.y-t.y)**2<=n**2}_isOnPath(e,t){let{center:n,radius:r}=this,i=n.distanceTo(e);return r-t<=i&&i<=r+t}},ei=e=>class extends e{fill(e,t){let n=this.options;if(e!==void 0){if(e&&e.nodeType!==`Gradient`){let r={color:e};t!==void 0&&(r.opacity=t),n.set(`fill`,r)}else n.set(`fill`,e);return this}return n.get(`fill`)}stroke(e,t,n){return e===void 0?this.options.get(`stroke`):(this.options.set(`stroke.color`,e),t!==void 0&&this.options.set(`stroke.width`,t),n!==void 0&&this.options.set(`stroke.opacity`,n),this)}};let ti=tr.IDENTITY.toString();var ni=e=>class extends e{bbox(e){let t=Hr(this.currentTransform(e)),n=t?t.toString():ti,r;this._bboxCache&&this._matrixHash===n?r=this._bboxCache.clone():(r=this._bbox(t),this._bboxCache=r?r.clone():null,this._matrixHash=n);let i=this.options.get(`stroke.width`);return i&&r&&r.expand(i/2),r}geometryChange(){delete this._bboxCache,this.trigger(`geometryChange`,{element:this})}};function ri(e){let t=`_`+e;return function(e){return e===void 0?this[t]:(this._observerField(t,e),this.geometryChange(),this)}}function ii(e,t){for(let n=0;n<t.length;n++)e[t[n]]=ri(t[n])}var ai=(e,t=[`geometry`])=>{let n=class extends e{};return ii(n.prototype,t),n},oi=class extends ei(ni(ai(Xr))){get nodeType(){return`Circle`}constructor(e=new $r,t={}){super(t),this.geometry(e),this.options.stroke===void 0&&this.stroke(`#000`)}rawBBox(){return this._geometry.bbox()}_bbox(e){return this._geometry.bbox(e)}_containsPoint(e){return this.geometry().containsPoint(e)}_isOnPath(e){return this.geometry()._isOnPath(e,this.options.stroke.width/2)}};function si(e,t,n=10){return F(Math.abs(e-t),n)===0}function ci(e,t,n){return e<t||si(e,t,n)}function li(e,t,n,r){let i=t.x-e.x,a=r.x-n.x,o=t.y-e.y,s=r.y-n.y,c=e.x-n.x,l=e.y-n.y,u=i*s-a*o,d=(i*l-o*c)/u,f=(a*l-s*c)/u;if(d>=0&&d<=1&&f>=0&&f<=1)return new I(e.x+f*i,e.y+f*o)}let ui=Math.pow,di=[`radiusX`,`radiusY`,`startAngle`,`endAngle`,`anticlockwise`];var fi=class e extends Sn(gn,di){constructor(e=new I,t={}){super(),this.setCenter(e),this.radiusX=t.radiusX,this.radiusY=t.radiusY||t.radiusX,this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.anticlockwise=t.anticlockwise||!1,this.xRotation=t.xRotation}clone(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}setCenter(e){return this._observerField(`center`,I.create(e)),this.geometryChange(),this}getCenter(){return this.center}pointAt(e){let t=this.center,n=Wn(e);return new I(t.x+this.radiusX*Math.cos(n),t.y+this.radiusY*Math.sin(n))}curvePoints(){let e=this.startAngle,t=this.anticlockwise?-1:1,n=[this.pointAt(e)],r=this._arcInterval(),i=r.endAngle-r.startAngle,a=Math.ceil(i/45),o=i/a,s=e,c;this.xRotation&&(c=Gr().rotate(this.xRotation,this.center));for(let e=1;e<=a;e++){let e=s+t*o,r=this._intervalCurvePoints(s,e,c);n.push(r.cp1,r.cp2,r.p2),s=e}return n}bbox(e){let t=this._arcInterval(),n=t.startAngle,r=t.endAngle,i=Zr(this.center,this.radiusX,this.radiusY,e),a=Mn(i.x),o=Mn(i.y),s=this.pointAt(r).transformCopy(e),c=hi(a,n),l=hi(o,n),u=this.pointAt(n).transformCopy(e),d=I.min(u,s),f=I.max(u,s);for(;c<r||l<r;){let t;c<r&&(t=this.pointAt(c).transformCopy(e),c+=90);let n;l<r&&(n=this.pointAt(l).transformCopy(e),l+=90),u=new I(t.x,n.y),d=I.min(d,u),f=I.max(f,u)}return L.fromPoints(d,f)}_arcInterval(){let{startAngle:e,endAngle:t,anticlockwise:n}=this;if(n){let n=e;e=t,t=n}return(e>t||n&&e===t)&&(t+=360),{startAngle:e,endAngle:t}}_intervalCurvePoints(e,t,n){let r=this.pointAt(e),i=this.pointAt(t),a=this._derivativeAt(e),o=this._derivativeAt(t),s=(Wn(t)-Wn(e))/3,c=new I(r.x+s*a.x,r.y+s*a.y),l=new I(i.x-s*o.x,i.y-s*o.y);return n&&(r.transform(n),i.transform(n),c.transform(n),l.transform(n)),{p1:r,cp1:c,cp2:l,p2:i}}_derivativeAt(e){let t=Wn(e);return new I(-this.radiusX*Math.sin(t),this.radiusY*Math.cos(t))}containsPoint(e){let t=this._arcInterval(),n=t.endAngle-t.startAngle,{center:r,radiusX:i,radiusY:a}=this,o=r.distanceTo(e),s=Math.atan2(e.y-r.y,e.x-r.x),c=i*a/Math.sqrt(ui(i,2)*ui(Math.sin(s),2)+ui(a,2)*ui(Math.cos(s),2)),l=this.pointAt(this.startAngle).round(10),u=this.pointAt(this.endAngle).round(10),d=li(r,e.round(10),l,u),f;if(n<180)f=d&&ci(r.distanceTo(d),o)&&ci(o,c);else{let n=pi(r.x,r.y,i,a,e.x,e.y);n!==360&&(n=(360+n)%360);let s=t.startAngle<=n&&n<=t.endAngle;f=s&&ci(o,c)||!s&&(!d||d.equals(e))}return f}_isOnPath(e,t){let n=this._arcInterval(),r=this.center,i=pi(r.x,r.y,this.radiusX,this.radiusY,e.x,e.y);return i!==360&&(i=(360+i)%360),n.startAngle<=i&&i<=n.endAngle&&this.pointAt(i).distanceTo(e)<=t}static fromPoints(t,n,r,i,a,o,s){let c=mi({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:r,ry:i,largeArc:a,swipe:o,rotation:s});return new e(c.center,{startAngle:c.startAngle,endAngle:c.endAngle,radiusX:c.radiusX,radiusY:c.radiusY,xRotation:c.xRotation,anticlockwise:o===0})}};function pi(e,t,n,r,i,a){let o=F((i-e)/n,3),s=F((a-t)/r,3);return F(Mn(Math.atan2(s,o)))}function mi(e){let{x1:t,y1:n,x2:r,y2:i,rx:a,ry:o,largeArc:s,swipe:c,rotation:l=0}=e,u=Wn(l),d=Math.cos(u),f=Math.sin(u),p=d*(t-r)/2+f*(n-i)/2,m=-f*(t-r)/2+d*(n-i)/2,h=s===c?-1:1,g=p**2,_=m**2,v=a**2,y=o**2,b=g/v+_/y;b>1&&(b=Math.sqrt(g/v+_/y),a=b*a,v=a**2,o=b*o,y=o**2);let x=h*Math.sqrt((v*y-v*_-y*g)/(v*_+y*g));isNaN(x)&&(x=0);let S=a*m*x/o,C=-x*(o*p)/a,ee=d*S-f*C+(t+r)/2,te=f*S+d*C+(n+i)/2,w=(p-S)/a,T=(m-C)/o,E=-(p+S)/a,ne=-(m+C)/o,re=(T>=0?1:-1)*Mn(Math.acos(w/Math.sqrt(w*w+T*T