UNPKG

@jawg/taxonomy

Version:

Building a map taxonomy chart with style.json

23 lines 67 kB
!function(){"use strict"; /* Riot WIP, @license MIT */var t=new Map,e=Symbol("riot-component"),n=new Set,r="is",o="mount",i="update",a="unmount",s="shouldUpdate",l="onBeforeMount",u="onMounted",c="onBeforeUpdate",p="onUpdated",h="onBeforeUnmount",d="onUnmounted",f="props",m="state",y="slots",g="root",v=Symbol("pure"),x=Symbol("is_updating"),b=Symbol("parent"),w=Symbol("attributes"),T=Symbol("template");function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function j(t,e,n){return e&&N(t.prototype,e),n&&N(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function O(t,e,n){return(e=F(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function I(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function C(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||B(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t){return function(t){if(Array.isArray(t))return z(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||B(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){if(t){if("string"==typeof t)return z(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z(t,e):void 0}}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)} /* Riot WIP, @license MIT */var P=0,U=2,R=3,_={ATTRIBUTE:P,EVENT:1,TEXT:U,VALUE:R};function L(t){return t.replace(/-(\w)/g,(function(t,e){return e.toUpperCase()}))}function H(t,e){throw new Error(t,{cause:e})}function $(t){var e=this,n=new Map,r=function(r){return(n.has(r)||n.set(r,t.call(e,r)))&&n.get(r)};return r.cache=n,r}function W(t){return t.reduce((function(t,e){var n=e.value,r=e.type;switch(!0){case!e.name&&r===P:return E(E({},t),n);case r===R:t.value=e.value;break;default:t[L(e.name)]=e.value}return t}),{})} /* Riot WIP, @license MIT */function D(t,e){return k(t)===e}function V(t){var e=t.ownerSVGElement;return!!e||null===e}function X(t){return"template"===t.tagName.toLowerCase()}function G(t){return D(t,"function")}function K(t){return!Z(t)&&t.constructor===Object}function Z(t){return null==t} /* Riot WIP, @license MIT */function q(){return this}function J(t){return G(t)?t.prototype&&t.prototype.constructor?new t:t():t} /* Riot WIP, @license MIT */function Y(t){return Array.from(t.attributes).reduce((function(t,e){return t[L(e.name)]=e.value,t}),{})}function Q(t){for(;t.firstChild;)t.removeChild(t.firstChild)}var tt=function(t){return t.remove()},et=function(t,e){return e&&e.parentNode&&e.parentNode.insertBefore(t,e)},nt=O(O(O(O(O({},o,(function(t){this.el=t})),i,q),a,(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n?tt(this.el):n||Q(this.el)})),"clone",q),"createDOM",q),rt={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4}; /* Riot WIP, @license MIT */ function ot(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object.defineProperty(t,e,E({value:n,enumerable:!1,writable:!1,configurable:!0},r)),t}function it(t,e,n){return Object.entries(e).forEach((function(e){var r=C(e,2),o=r[0],i=r[1];ot(t,o,i,n)})),t}function at(t,e){return Object.entries(e).forEach((function(e){var n=C(e,2),r=n[0],o=n[1];t[r]||(t[r]=o)})),t}var st=Symbol(),lt=Symbol();function ut(t){var e=t.dom.cloneNode(!0),n=function(){var t=document.createTextNode(""),e=document.createTextNode("");return t[st]=!0,e[lt]=!0,{head:t,tail:e}}(),r=n.head,o=n.tail;return{avoidDOMInjection:!0,fragment:e,head:r,tail:o,children:[r].concat(M(Array.from(e.childNodes)),[o])}}var ct=Symbol("unmount"),pt={nodes:[],mount:function(t,e){return this.update(t,e)},update:function(t,e){var n=this.placeholder,r=this.nodes,o=this.childrenMap,i=t===ct?null:this.evaluate(t),a=function(t,e,n,r){var o=r.condition,i=r.template,a=r.childrenMap,s=r.itemName,l=r.getKey,u=r.indexName,c=r.root,p=r.isTemplateTag,h=new Map,d=[],f=[];return t.forEach((function(t,r){var m=function(t,e){var n=e.itemName,r=e.indexName,o=e.index,i=e.item;ot(t,n,i),r&&ot(t,r,o);return t}(Object.create(e),{itemName:s,indexName:u,index:r,item:t}),y=l?l(m):r,g=a.get(y),v=[];if(!function(t,e){return!!t&&!t(e)}(o,m)){var x=!g,b=g?g.template:i.clone(),w=b.el||c.cloneNode(),T=p&&x?ut(b):b.meta;x?d.push((function(){return b.mount(w,m,n,T)})):d.push((function(){return b.update(m,n)})),p?v.push.apply(v,M(T.children)):v.push(w),a.delete(y),f.push.apply(f,v),h.set(y,{nodes:v,template:b,context:m,index:r})}})),{newChildrenMap:h,batches:d,futureNodes:f}}(i?Array.from(i):[],t,e,this),s=a.newChildrenMap,l=a.batches,u=a.futureNodes;return function(t,e,n,r){for(var o,i,a=e.length,s=t.length,l=a,u=0,c=0,p=null;u<s||c<l;)if(s===u)for(var h=l<a?c?n(e[c-1],-0).nextSibling:n(e[l-c],0):r;c<l;)et(n(e[c++],1),h);else if(l===c)for(;u<s;)p&&p.has(t[u])||tt(n(t[u],-1)),u++;else if(t[u]===e[c])u++,c++;else if(t[s-1]===e[l-1])s--,l--;else if(t[u]===e[l-1]&&e[c]===t[s-1]){var d=n(t[--s],-1).nextSibling;et(n(e[c++],1),n(t[u++],-1).nextSibling),et(n(e[--l],1),d),t[s]=e[l]}else{if(!p){p=new Map;for(var f=c;f<l;)p.set(e[f],f++)}if(p.has(t[u])){var m=p.get(t[u]);if(c<m&&m<l){for(var y=u,g=1;++y<s&&y<l&&p.get(t[y])===m+g;)g++;if(g>m-c)for(var v=n(t[u],0);c<m;)et(n(e[c++],1),v);else o=n(e[c++],1),(i=n(t[u++],-1))&&i.parentNode&&i.parentNode.replaceChild(o,i)}else u++}else tt(n(t[u++],-1))}}(r,u,function(t,e){return function(n,r){if(r<0){var o=t[t.length-1];if(o){var i=o.template,a=o.nodes,s=o.context;a.pop(),a.length||(t.pop(),i.unmount(s,e,null))}}return n}}(Array.from(o.values()),e),n),l.forEach((function(t){return t()})),this.childrenMap=s,this.nodes=u,this},unmount:function(t,e){return this.update(ct,e),this}};var ht={mount:function(t,e){return this.update(t,e)},update:function(t,e){var n,r=this,o=!!this.evaluate(t),i=!this.value&&o,a=this.value&&!o;switch(!0){case i:n=r.node.cloneNode(),et(n,r.placeholder),r.template=r.template.clone(),r.template.mount(n,t,e);break;case a:this.unmount(t);break;default:o&&this.template.update(t,e)}return this.value=o,this},unmount:function(t,e){return this.template.unmount(t,e,!0),this}};var dt="undefined"==typeof Element?{}:Element.prototype,ft=$((function(t){return dt.hasOwnProperty(t)}));function mt(t,e,n,r){var o=e.name,i=e.isBoolean;if(!o)return r&&function(t,e,n){var r=e?Object.keys(e):[];Object.keys(n).filter((function(t){return!r.includes(t)})).forEach((function(e){return t.removeAttribute(e)}))}(t,n,r),void(n&&function(t,e){Object.entries(e).forEach((function(e){var n=C(e,2),r=n[0],o=n[1];return mt(t,{name:r},o)}))}(t,n));!ft(o)&&(function(t){return D(t,"boolean")}(n)||K(n)||G(n))&&(t[o]=n),!function(t,e){return e?!t&&0!==t:null==t}(n,i)?function(t){return["string","number","boolean"].includes(k(t))}(n)&&t.setAttribute(o,function(t,e,n){return!0===e&&n?t:e}(o,n,i)):t.removeAttribute(o)}var yt=/^on/,gt={handleEvent:function(t){this[t.type](t)}},vt=new WeakMap;function xt(t){return Z(t)?"":t}var bt=function(t,e){var n=t.childNodes[e];if(n.nodeType===Node.COMMENT_NODE){var r=document.createTextNode("");return t.replaceChild(r,n),r}return n};var wt=O(O(O(O({},P,mt),1,(function(t,e,n){var r=e.name.replace(yt,""),o=vt.get(t)||function(t){var e=Object.create(gt);return vt.set(t,e),e}(t),i=C(function(t){return Array.isArray(t)?t:[t,!1]}(n),2),a=i[0],s=i[1],l=o[r],u=a&&!l;l&&!a&&t.removeEventListener(r,o),u&&t.addEventListener(r,o,s),o[r]=a})),U,(function(t,e,n){t.data=xt(n)})),R,(function(t,e,n){t.value=xt(n)})),Tt={mount:function(t){return this.value=this.evaluate(t),At(this,this.value),this},update:function(t){var e=this.evaluate(t);return this.value!==e&&(At(this,e),this.value=e),this},unmount:function(){return 1===this.type&&At(this,null),this}};function At(t,e){return wt[t.type](t.node,t,e,t.value)}function Et(t,e){return E(E(E({},Tt),e),{},{node:e.type===U?bt(t,e.childNodeIndex):t})}var kt=function(t,e){return t[b]||e},St={attributes:[],getTemplateScope:function(t,e){return function(t,e,n){if(!t||!t.length)return n;var r=t.map((function(t){return E(E({},t),{},{value:t.evaluate(e)})}));return Object.assign(Object.create(n||null),W(r))}(this.attributes,t,e)},mount:function(t,e){var n=this,r=!!t.slots&&t.slots.find((function(t){return t.id===n.name})),o=this.node.parentNode,i=kt(t,e);return this.template=r&&Bt(r.html,r.bindings).createDOM(o),this.template&&(Q(this.node),this.template.mount(this.node,this.getTemplateScope(t,i),i),this.template.children=Array.from(this.node.childNodes)),Nt(this.node),tt(this.node),this},update:function(t,e){if(this.template){var n=kt(t,e);this.template.update(this.getTemplateScope(t,n),n)}return this},unmount:function(t,e,n){return this.template&&this.template.unmount(this.getTemplateScope(t,e),null,n),this}};function Nt(t){var e=t&&t.firstChild;e&&(et(e,t),Nt(t))}var jt={mount:function(t){return this.update(t)},update:function(t,e){var n=this.evaluate(t);return n&&n===this.name?this.tag.update(t):(this.unmount(t,e,!0),this.name=n,this.tag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t?t({slots:e,attributes:n}):Bt(function(t){return t.reduce((function(t,e){return t+e.html}),"")}(e),[].concat(M(function(t){return t.reduce((function(t,e){var n=e.bindings;return t.concat(n)}),[])}(e)),[{expressions:n.map((function(t){return E({type:P},t)}))}]))}(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,t)),this},unmount:function(t,e,n){return this.tag&&this.tag.unmount(n),this}};var Ot=O(O(O(O(O({},1,(function(t,e){var n=e.evaluate,r=e.template,o=document.createTextNode("");return et(o,t),tt(t),E(E({},ht),{},{node:t,evaluate:n,placeholder:o,template:r.createDOM(t)})})),2,(function(t,e){var n,r,o=e.expressions;return E({},(n=o.map((function(e){return Et(t,e)})),["mount","update","unmount"].reduce((function(t,e){return E(E({},t),{},O({},e,(function(t){return n.map((function(n){return n[e](t)}))&&r})))}),{})))})),0,(function(t,e){var n=e.evaluate,r=e.condition,o=e.itemName,i=e.indexName,a=e.getKey,s=e.template,l=document.createTextNode(""),u=t.cloneNode();return et(l,t),tt(t),E(E({},pt),{},{childrenMap:new Map,node:t,root:u,condition:r,evaluate:n,isTemplateTag:X(u),template:s.createDOM(t),getKey:a,indexName:i,itemName:o,placeholder:l})})),3,(function(t,e){var n=e.evaluate,r=e.getComponent,o=e.slots,i=e.attributes;return E(E({},jt),{},{node:t,evaluate:n,slots:o,attributes:i,getComponent:r})})),4,(function(t,e){var n=e.name,r=e.attributes;return E(E({},St),{},{attributes:r,node:t,name:n})}));function It(t,e){return t.map((function(t){return t.type===U?E(E({},t),{},{childNodeIndex:t.childNodeIndex+e}):t}))}function Ct(t,e){return V(t)?function(t,e){return e.ownerDocument.importNode((new window.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">'.concat(t,"</svg>"),"application/xml").documentElement,!0)}(e,t):function(t,e){var n=X(e)?e:document.createElement("template");return n.innerHTML=t,n.content}(e,t)}var Mt={createDOM:function(t){return this.dom=this.dom||function(t,e){return e&&("string"==typeof e?Ct(t,e):e)}(t,this.html)||document.createDocumentFragment(),this},mount:function(t,e,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t||H("Please provide DOM node to mount properly your template"),this.el&&this.unmount(e);var i=o.fragment,a=o.children,s=o.avoidDOMInjection,l=(a?a[0]:t).parentNode,u=X(t),c=u?function(t,e,n){var r=Array.from(t.childNodes);return Math.max(r.indexOf(e),r.indexOf(n.head)+1,0)}(l,t,o):null;this.createDOM(t);var p=i||this.dom.cloneNode(!0);return this.el=u?l:t,this.children=u?a||Array.from(p.childNodes):null,!s&&p&&function(t,e){switch(!0){case V(t):!function(t,e){for(;t.firstChild;)e.appendChild(t.firstChild)}(e,t);break;case X(t):t.parentNode.replaceChild(e,t);break;default:t.appendChild(e)}}(t,p),this.bindings=this.bindingsData.map((function(t){return function(t,e,n){var r=e.selector,o=e.type,i=e.redundantAttribute,a=e.expressions,s=r?t.querySelector(r):t;i&&s.removeAttribute(i);var l=a||[];return(Ot[o]||Ot[2])(s,E(E({},e),{},{expressions:n&&!r?It(l,n):l}))}(r.el,t,c)})),this.bindings.forEach((function(t){return t.mount(e,n)})),this.meta=o,this},update:function(t,e){return this.bindings.forEach((function(n){return n.update(t,e)})),this},unmount:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.el;if(!r)return this;switch(this.bindings.forEach((function(r){return r.unmount(t,e,n)})),!0){case r[v]||null===n:break;case Array.isArray(this.children):!function(t){for(var e=0;e<t.length;e++)tt(t[e])}(this.children);break;case!n:Q(r);break;case!!n:tt(r)}return this.el=null,this},clone:function(){return E(E({},this),{},{meta:{},el:null})}};function Bt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return E(E({},Mt),{},{html:t,bindingsData:e})} /* Riot v9.1.2, @license MIT */var zt=Object.freeze(O(O(O({},o,q),i,q),a,q)),Ft=function(t,n){return t[e]=n}; /* Riot v9.1.2, @license MIT */ /* Riot v9.1.2, @license MIT */ function Pt(t){return[o,i,a].reduce((function(e,n){return e[n]=t(n),e}),{})} /* Riot v9.1.2, @license MIT */ /* Riot WIP, @license MIT */ function Ut(t){return Array.isArray(t)?t:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(t))&&"number"==typeof t.length?Array.from(t):[t]} /* Riot WIP, @license MIT */function Rt(t,e){return Ut("string"==typeof t?(e||document).querySelectorAll(t):t)} /* Riot v9.1.2, @license MIT */var _t=Object.freeze({$:function(t){return Rt(t,this.root)[0]},$$:function(t){return Rt(t,this.root)}}),Lt=Object.freeze(O(O(O(O(O(O(O({},s,q),l,q),u,q),c,q),p,q),h,q),d,q)),Ht=function(t){return 1===t.length?t[0]:t};function $t(t,e,n){var r="object"===k(e)?e:O({},e,n),o=Object.keys(r);return Ut(t).forEach((function(t){o.forEach((function(e){return t.setAttribute(e,r[e])}))})),t}function Wt(t,e){return function(t,e,n){var r="string"==typeof e?[e]:e;return Ht(Ut(t).map((function(t){return Ht(r.map((function(e){return t[n](e)})))})))}(t,e,"getAttribute")}var Dt,Vt=new Map,Xt=function(){return Dt||($t(Dt=Rt("style[riot]")[0]||document.createElement("style"),"type","text/css"),Dt.parentNode||document.head.appendChild(Dt),Dt)},Gt={CSS_BY_NAME:Vt,add:function(t,e){return Vt.has(t)||(Vt.set(t,e),this.inject()),this},inject:function(){return Xt().innerHTML=M(Vt.values()).join("\n"),this},remove:function(t){return Vt.has(t)&&(Vt.delete(t),this.inject()),this}}; /* Riot WIP, @license MIT */ function Kt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(r=[].concat(n,M(r))).length<t.length?Kt.apply(void 0,[t].concat(M(r))):t.apply(void 0,M(r))}} /* Riot v9.1.2, @license MIT */ /* Riot v9.1.2, @license MIT */ function Zt(t,e){(function(t){return Wt(t,r)||t.tagName.toLowerCase()})(t)!==e&&$t(t,r,e)}function qt(t,e){return E(E({},t),J(e))}function Jt(t,e){var o,i=e.slots,a=e.attributes,A=e.props;return o=function(t){return M(n).reduce((function(t,e){return e(t)||t}),t)}(it(K(t)?Object.create(t):t,{mount:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return ot(e,v,!1),this[b]=r,this[w]=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(e){return Et(t,e)})),n={};return Object.assign(n,E({expressions:e},Pt((function(t){return function(r){return e.forEach((function(e){return e[t](r)})),n}}))))}(e,a).mount(r),ot(this,f,Object.freeze(E(E({},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E(E({},Y(t)),J(e))}(e,A)),W(this[w].expressions)))),this[m]=qt(this[m],n),this[T]=this.template.createDOM(e).clone(),Ft(e,this),t.name&&Zt(e,t.name),ot(this,g,e),ot(this,y,i),this[l](this[f],this[m]),this[T].mount(e,this,r),this[u](this[f],this[m]),this},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e&&(this[b]=e,this[w].update(e));var n=E(E({},Y(this[g])),W(this[w].expressions));n[r];var o=I(n,[r].map(F));if(!1!==this[s](o,this[f]))return ot(this,f,Object.freeze(E(E({},e?null:this[f]),o))),this[m]=qt(this[m],t),this[c](this[f],this[m]),this[x]||(this[x]=!0,this[T].update(this,this[b])),this[p](this[f],this[m]),this[x]=!1,this},unmount:function(t){return this[h](this[f],this[m]),this[w].unmount(),this[T].unmount(this,this[b],null===t?null:!t),this[d](this[f],this[m]),this}})),Object.keys(t).filter((function(e){return G(t[e])})).forEach((function(t){o[t]=o[t].bind(o)})),o}function Yt(t){var e=t.css,n=t.template,r=t.componentAPI,o=t.name;return e&&o&&Gt.add(o,e),Kt(Jt)(it(at(r,E(E({},Lt),{},O(O({},f,{}),m,{}))),E(E(O(O({},y,null),g,null),_t),{},{name:o,css:e,template:n})))}var Qt=function(e){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(J(t)).reduce((function(t,e){var n,r=C(e,2),o=r[0],i=r[1];return t[(n=o,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=ee(i),t}),{})}(e.exports?e.exports.components:{});return function(r){return r===e.name?te(e):n[r]||t.get(r)}},te=$(ee);function ee(t){var e=t.css,n=t.template,r=t.exports,i=t.name,a=n?function(t,e,n){return t(Bt,_,rt,n)}(n,0,Qt(t)):nt;return function(t){var s=t.slots,l=t.attributes,u=t.props;if(r&&r[v])return function(t,e){var n=e.slots,r=e.attributes,i=e.props,a=e.css;e.template&&H("Pure components can not have html"),a&&H("Pure components do not have css");var s=at(t({slots:n,attributes:r,props:i}),zt);return Pt((function(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(t===o){var i=n[0];ot(i,v,!0),Ft(i,s)}return s[t].apply(s,n),s}}))}(r,{slots:s,attributes:l,props:u,css:e,template:n});var c=J(r)||{},p=Yt({css:e,template:a,componentAPI:c,name:i})({slots:s,attributes:l,props:u});return{mount:function(t,e,n){return p.mount(t,n,e)},update:function(t,e){return p.update(e,t)},unmount:function(t){return p.unmount(t)}}}} /* Riot WIP, @license MIT */var ne={css:null,exports:{onMounted(){this.root.innerHTML=this.props.content,this.update()}},template:null,name:"annotation"};function re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oe={exports:{}};!function(t){var e={};e.hex={rgb:function(t){return t&&null!=t.match(/^0x([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/i)?[(t>>8)+16*(t>>8),((240&t)>>4)+16*((240&t)>>4),(15&t)+16*(15&t)]:t&&null!=t.match(/^0x([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/i)?[t>>16,(65280&t)>>8,255&t]:void 0},rgba:function(t){var e=this.rgb(t);return e?[e[0],e[1],e[2],1]:null},hsl:function(t){var n=this.rgb(t);return n?e.rgb.hsl(n):null},hsla:function(t){var e=this.hsl(t);return!e||[e[0],e[1],e[2],1]},fromString:function(t){if(t)return(t=t.replace(/^#*/,"0x"))<=16777215&&(5==t.length||8==t.length)?t:void 0},toString:function(t){if(t)return t.replace(/^(0x)?/i,"#")},isValid:function(t){return null!=this.fromString(t)}},e.rgb={hex:function(t){if(t){var e=Number(t[0]).toString(16),n=Number(t[1]).toString(16),r=Number(t[2]).toString(16);return(1===e.length?"0":"")+e+(1===n.length?"0":"")+n+(1===r.length?"0":"")+r}},rgba:function(t){return t?[t[0],t[1],t[2],1]:null},hsl:function(t){if(t&&Array.isArray(t)&&!(t.length<3)){var e=t[0]/255,n=t[1]/255,r=t[2]/255,o=Math.max(e,n,r),i=Math.min(e,n,r),a=o-i,s=0;switch(o){case i:s=0;break;case e:s=(n-r)/a+(n<r?6:0);break;case n:s=(r-e)/a+2;break;case r:s=(e-n)/a+4}var l=.5*(o+i);return[60*s,0==a?0:a/(1-Math.abs(2*l-1)),l]}},hsla:function(t){var e=this.hsl(t);return e?[e[0],e[1],e[2],1]:null},fromString:function(t){var e;if(t)return(null!=(e=(t=t.replace(/ /g,"")).match(/^rgb\(([0-9]+),([0-9]+),([0-9]+)\)$/i))||null!=(e=t.match(/^\[?([0-9]+),([0-9]+),([0-9]+)\]?$/)))&&e[1]<=255&&e[2]<=255&&e[3]<=255?[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]:void 0},toString:function(t){if(t&&Array.isArray(t)&&3==t.length)return"rgb("+t[0]+","+t[1]+","+t[2]+")"},convertFromString:function(t){return e.hex.rgb(e.hex.fromString(t))||e.hsl.rgb(e.hsl.fromString(t))||e.rgb.fromString(t)},isValid:function(t){return null!=this.fromString(t)}},e.rgba={hex:function(t){return t?e.rgb.hex(t):null},rgb:function(t){return t?[t[0],t[1],t[2]]:null},hsl:function(t){return e.rgb.hsl(t)},hsla:function(t){var n=e.rgb.hsl(t);return n?[n[0],n[1],n[2],t[3]]:null},fromString:function(t){var e;if(t)return null!=(e=(t=t.replace(/ /g,"")).match(/^rgba\(([0-9]+),([0-9]+),([0-9]+),([0-9.]+)\)$/i))||null!=(e=t.match(/^\[?([0-9]+),([0-9]+),([0-9]+),([0-9.]+)\]?$/))?[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseInt(e[4])]:void 0},toString:function(t){if(t&&Array.isArray(t)&&t.length>=4)return"rgba("+Math.round(t[0])+","+Math.round(t[1])+","+Math.round(t[2])+","+t[3]+")"},isValid:function(t){return null!=this.fromString(t)}},e.hsl={hex:function(t){var n=e.hsl.rgb(t);return n?e.rgb.hex(n):null},rgb:function(t){if(t){var e,n=t[0],r=t[1],o=t[2],i=(1-Math.abs(2*o-1))*r,a=i*(1-Math.abs(n/60%2-1)),s=o-i/2;return n<60?e=[i+s,a+s,s]:n<120?e=[a+s,i+s,s]:n<180?e=[s,i+s,a+s]:n<240?e=[s,a+s,i+s]:n<300?e=[a+s,s,i+s]:n<360&&(e=[i+s,s,a+s]),e?[Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])]:void 0}},rgba:function(t){var e=this.rgb(t);return e?[e[0],e[1],e[2],1]:null},hsla:function(t){return t?[t[0],t[1],t[2],1]:null},fromString:function(t){var e;if(t&&(null!=(e=(t=t.replace(/ /g,"")).match(/^hsl\(([0-9.]+),([0-9.]+)(%?),([0-9.]+)(%?)\)$/i))||null!=(e=t.match(/^\[?([0-9.]+),([0-9.]+)(%?),([0-9.]+)(%?)\]?$/)))){var n=[parseFloat(e[1]),"%"==e[3]?e[2]/100:parseFloat(e[2]),"%"==e[5]?e[4]/100:parseFloat(e[4])];if(n[0]<360&&n[1]<=1&&n[2]<=1)return n}},toString:function(t){if(t&&Array.isArray(t)&&3==t.length)return"hsl("+(1*t[0]).toFixed(2)+", "+(100*t[1]).toFixed(2)+"%, "+(100*t[2]).toFixed(2)+"%)"},isValid:function(t){return null!=this.fromString(t)}},e.hsla={hex:function(t){return e.hsl.hex(t)},rgb:function(t){return e.hsl.rgb(t)},rgba:function(t){var e=this.rgb(t);return e?[e[0],e[1],e[2],t[3]]:null},hsl:function(t){return t?[t[0],t[1],t[2]]:null},fromString:function(t){var e;if(t&&((null!=(e=(t=t.replace(/ /g,"")).match(/^hsla\(([0-9.]+),([0-9.]+)(%?),([0-9.]+)(%?),([0-9.]+)\)$/i))||null!=(e=t.match(/^\[?([0-9.]+),([0-9.]+)(%?),([0-9.]+)(%?),([0-9.]+)\]?$/)))&&(t=[parseFloat(e[1]),"%"==e[3]?e[2]/100:parseFloat(e[2]),"%"==e[5]?e[4]/100:parseFloat(e[4]),parseFloat(e[6])])[0]<360&&t[1]<=1&&t[2]<=1))return t},toString:function(t){if(t&&Array.isArray(t)&&4==t.length)return"hsla("+(1*t[0]).toFixed(2)+", "+(100*t[1]).toFixed(2)+"%, "+(100*t[2]).toFixed(2)+"%,"+t[3]+")"},isValid:function(t){return null!=this.fromString(t)}},e.isValid=function(t){return e.hex.isValid(t)||e.rgb.isValid(t)||e.rgba.isValid(t)||e.hsl.isValid(t)||e.hsla.isValid(t)},e.getStringTypeAndValue=function(t){var n=e.hex.fromString(t),r=e.rgb.fromString(t),o=e.rgba.fromString(t),i=e.hsl.fromString(t),a=e.hsla.fromString(t);return n?{value:n,type:"hex"}:r?{value:r,type:"rgb"}:o?{value:o,type:"rgba"}:i?{value:i,type:"hsl"}:a?{value:a,type:"hsla"}:void 0},t.exports=e,"undefined"!=typeof window&&(window.colorConverter=e)}(oe);var ie,ae=re(oe.exports),se=function(){function t(){S(this,t)}return j(t,[{key:"findStopLessThanOrEqualTo",value:function(t,e){for(var n,r,o=0,i=t.length-1,a=0;o<=i;){if(n=t[a=Math.floor((o+i)/2)][0],r=t[a+1][0],e===n||e>n&&e<r)return a;n<e?o=a+1:n>e&&(i=a-1)}return Math.max(a-1,0)}},{key:"interpolationFactor",value:function(t,e,n,r){var o=r-n,i=t-n;return 0===o?0:1===e||void 0===e?i/o:(Math.pow(e,i)-1)/(Math.pow(e,o)-1)}},{key:"number",value:function(t,e,n){return t*(1-n)+e*n}},{key:"array",value:function(t,e,n){return t.map((function(t,r){return this.number(t,e[r],n)}))}},{key:"asExpression",value:function(t){if(Array.isArray(t))return t;if(!t.stops)throw new Error("".concat(JSON.stringify(t)," is not a correct expression"));return 1===t.base||void 0===t.base?["interpolate",["linear"],["zoom"]].concat(t.stops.reduce((function(t,e){return t.concat(e)}),[])):["interpolate",["exponential",t.base],["zoom"]].concat(t.stops.reduce((function(t,e){return t.concat(e)}),[]))}},{key:"parseInterpolate",value:function(t,e){if(!t||"interpolate"!==t[0]||t.length<4)return null;var n="exponential"===t[1][0]?t[1][1]:1,r=t.slice(3).reduce((function(t,e,n){return n%2==0?t.push([e]):t[t.length-1].push(e),t}),[]);if(1===r.length||r[0][0]>=e)return{value:r[0][1]};if(r[r.length-1][0]<=e)return{value:r[r.length-1][1]};var o=this.findStopLessThanOrEqualTo(r,e);return{lower:r[o][1],upper:r[o+1][1],t:this.interpolationFactor(e,n,r[o][0],r[o+1][0])}}},{key:"renderMatch",value:function(t,e){var n=this;return Array.isArray(t)?this.decision(t.map((function(t){return n.renderMatch(t,e)})),e):t}},{key:"lookup",value:function(t,e){if(!Array.isArray(t))return t;switch(t[0]){case"at":return this.lookup(t[2],e)[t[1]];case"get":case"has":case"!has":return e["".concat(t[0],":").concat(t[1])];case"in":return this.lookup(t[2],e).indexOf(t[1])>=0;case"!in":return this.lookup(t[2],e).indexOf(t[1])<0;case"index-of":return this.lookup(t[2],e).indexOf(t[1]);case"length":return this.lookup(t[1],e).length;case"slice":return this.lookup(t[1],e).slice(t[2],t[3])}return t}},{key:"decision",value:function(t,e){var n=this;if(!Array.isArray(t))return t;switch(t[0]){case"!":return!this.lookup(t[1],e);case"==":return this.lookup(t[1],e)==t[2];case"!=":return this.lookup(t[1],e)!=t[2];case">":return this.lookup(t[1],e)>t[2];case"<":return this.lookup(t[1],e)<t[2];case">=":return this.lookup(t[1],e)>=t[2];case"<=":return this.lookup(t[1],e)<=t[2];case"all":return t.slice(1).every((function(t){return!0===n.lookup(t,e)}));case"some":return t.slice(1).any((function(t){return!0===n.lookup(t,e)}));case"match":for(var r=2;r<t.length-2;r+=2)if(t[1]==t[r]||Array.isArray(t[r])&&t[1]==t[r][0])return t[r+1];return t[t.length-1];case"case":for(var o=1;o<t.length-2;o+=2)if(!0===t[o])return t[o+1];return t[t.length-1];case"step":var i=t[1],a=t[2];if(i<t[3])return a;for(var s=3;s<t.length;s+=2)if(t[s]>=i)return t[s+1];return a;case"coalesce":return t.slice(1).find((function(t){return null!=t}))}return this.lookup(t,e)}}]),t}(),le={exports:{}};ie=le,function(){function t(t,e,n){return t.call.apply(t.bind,arguments)}function e(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function n(r,o,i){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:e).apply(null,arguments)}var r=Date.now||function(){return+new Date};function o(t,e){this.a=t,this.o=e||t,this.c=this.o.document}var i=!!window.FontFace;function a(t,e,n,r){if(e=t.c.createElement(e),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r&&e.appendChild(t.c.createTextNode(r)),e}function s(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function l(t){t.parentNode&&t.parentNode.removeChild(t)}function u(t,e,n){e=e||[],n=n||[];for(var r=t.className.split(/\s+/),o=0;o<e.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(e[o]===r[a]){i=!0;break}i||r.push(e[o])}for(e=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||e.push(r[o])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function c(t,e){for(var n=t.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==e)return!0;return!1}function p(t,e,n){function r(){c&&o&&l&&(c(u),c=null)}e=a(t,"link",{rel:"stylesheet",href:e,media:"all"});var o=!1,l=!0,u=null,c=n||null;i?(e.onload=function(){o=!0,r()},e.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(t,"head",e)}function h(t,e,n,r){var o=t.c.getElementsByTagName("head")[0];if(o){var i=a(t,"script",{src:e}),s=!1;return i.onload=i.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){s||(s=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function d(){this.a=0,this.c=null}function f(t){return t.a++,function(){t.a--,y(t)}}function m(t,e){t.c=e,y(t)}function y(t){0==t.a&&t.c&&(t.c(),t.c=null)}function g(t){this.a=t||"-"}function v(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function x(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var r=t[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?e.push("'"+r+"'"):e.push(r)}return e.join(",")}function b(t){return t.a+t.f}function w(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function T(t){var e=4,n="n",r=null;return t&&((r=t.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=t.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?e=7:/[1-9]00/.test(r[1])&&(e=parseInt(r[1].substr(0,1),10)))),n+e}function A(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new g("-"),this.j=!1!==e.events,this.g=!1!==e.classes}function E(t){if(t.g){var e=c(t.f,t.a.c("wf","active")),n=[],r=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),u(t.f,n,r)}k(t,"inactive")}function k(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,b(n)):t.h[e]())}function S(){this.c={}}function N(t,e){this.c=t,this.f=e,this.a=a(this.c,"span",{"aria-hidden":"true"},this.f)}function j(t){s(t.c,"body",t.a)}function O(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+x(t.c)+";font-style:"+w(t)+";font-weight:"+t.f+"00;"}function I(t,e,n,r,o,i){this.g=t,this.j=e,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function C(t,e,n,r,o,i,a){this.v=t,this.B=e,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new N(this.c,this.s),this.h=new N(this.c,this.s),this.j=new N(this.c,this.s),this.m=new N(this.c,this.s),t=O(t=new v(this.a.c+",serif",b(this.a))),this.g.a.style.cssText=t,t=O(t=new v(this.a.c+",sans-serif",b(this.a))),this.h.a.style.cssText=t,t=O(t=new v("serif",b(this.a))),this.j.a.style.cssText=t,t=O(t=new v("sans-serif",b(this.a))),this.m.a.style.cssText=t,j(this.g),j(this.h),j(this.j),j(this.m)}g.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},I.prototype.start=function(){var t=this.c.o.document,e=this,n=r(),o=new Promise((function(o,i){!function a(){r()-n>=e.f?i():t.fonts.load(function(t){return w(t)+" "+t.f+"00 300px "+x(t.c)}(e.a),e.h).then((function(t){1<=t.length?o():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(t,n){i=setTimeout(n,e.f)}));Promise.race([a,o]).then((function(){i&&(clearTimeout(i),i=null),e.g(e.a)}),(function(){e.j(e.a)}))};var M={D:"serif",C:"sans-serif"},B=null;function z(){if(null===B){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);B=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return B}function F(t,e,n){for(var r in M)if(M.hasOwnProperty(r)&&e===t.f[M[r]]&&n===t.f[M[r]])return!0;return!1}function P(t){var e,o=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(e=o===t.f.serif&&i===t.f["sans-serif"])||(e=z()&&F(t,o,i)),e?r()-t.A>=t.w?z()&&F(t,o,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?U(t,t.v):U(t,t.B):function(t){setTimeout(n((function(){P(this)}),t),50)}(t):U(t,t.v)}function U(t,e){setTimeout(n((function(){l(this.g.a),l(this.h.a),l(this.j.a),l(this.m.a),e(this.a)}),t),0)}function R(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}C.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=r(),P(this)};var _=null;function L(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&u(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),k(t,"active")):E(t.a))}function H(t){this.j=t,this.a=new S,this.h=0,this.f=this.g=!0}function $(t,e,r,o,i){var a=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=i||null,s=o||{};if(0===r.length&&a)E(e.a);else{e.f+=r.length,a&&(e.j=a);var l,c=[];for(l=0;l<r.length;l++){var p=r[l],h=s[p.c],d=e.a,f=p;if(d.g&&u(d.f,[d.a.c("wf",f.c,b(f).toString(),"loading")]),k(d,"fontloading",f),d=null,null===_)if(window.FontFace){f=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);_=f?42<parseInt(f[1],10):!m}else _=!1;d=_?new I(n(e.g,e),n(e.h,e),e.c,p,e.s,h):new C(n(e.g,e),n(e.h,e),e.c,p,e.s,t,h),c.push(d)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function W(t,e){this.c=t,this.a=e}function D(t,e){this.c=t,this.a=e}function V(t,e){this.c=t||X,this.a=[],this.f=[],this.g=e||""}R.prototype.g=function(t){var e=this.a;e.g&&u(e.f,[e.a.c("wf",t.c,b(t).toString(),"active")],[e.a.c("wf",t.c,b(t).toString(),"loading"),e.a.c("wf",t.c,b(t).toString(),"inactive")]),k(e,"fontactive",t),this.m=!0,L(this)},R.prototype.h=function(t){var e=this.a;if(e.g){var n=c(e.f,e.a.c("wf",t.c,b(t).toString(),"active")),r=[],o=[e.a.c("wf",t.c,b(t).toString(),"loading")];n||r.push(e.a.c("wf",t.c,b(t).toString(),"inactive")),u(e.f,r,o)}k(e,"fontinactive",t),L(this)},H.prototype.load=function(t){this.c=new o(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var r=[],o=n.timeout;!function(t){t.g&&u(t.f,[t.a.c("wf","loading")]),k(t,"loading")}(e),r=function(t,e,n){var r,o=[];for(r in e)if(e.hasOwnProperty(r)){var i=t.c[r];i&&o.push(i(e[r],n))}return o}(t.a,n,t.c);var i=new R(t.c,e,o);for(t.h=r.length,e=0,n=r.length;e<n;e++)r[e].load((function(e,n,r){$(t,i,e,n,r)}))}(this,new A(this.c,t),t)},W.prototype.load=function(t){function e(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var l=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new v(l,n))):a.push(new v(l))}t(a)}else setTimeout((function(){e()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;h(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?t([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},e())})).id="__MonotypeAPIScript__"+r}else t([])},D.prototype.load=function(t){var e,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new d;for(e=0,n=r.length;e<n;e++)p(this.c,r[e],f(a));var s=[];for(e=0,n=o.length;e<n;e++)if((r=o[e].split(":"))[1])for(var l=r[1].split(","),u=0;u<l.length;u+=1)s.push(new v(r[0],l[u]));else s.push(new v(r[0]));m(a,(function(){t(s,i)}))};var X="https://fonts.googleapis.com/css";function G(t){this.f=t,this.a=[],this.c={}}var K={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},q={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Y(t,e){this.c=t,this.a=e}var Q={Arimo:!0,Cousine:!0,Tinos:!0};function tt(t,e){this.c=t,this.a=e}function et(t,e){this.c=t,this.f=e,this.a=[]}Y.prototype.load=function(t){var e=new d,n=this.c,r=new V(this.a.api,this.a.text),o=this.a.families;!function(t,e){for(var n=e.length,r=0;r<n;r++){var o=e[r].split(":");3==o.length&&t.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),t.a.push(o.join(i))}}(r,o);var i=new G(o);!function(t){for(var e=t.f.length,n=0;n<e;n++){var r=t.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,l=(s=s.split(",")).length,u=0;u<l;u++){var c;if((c=s[u]).match(/^[\w-]+$/))if(null==(p=J.exec(c.toLowerCase())))c="";else{if(c=null==(c=p[2])||""==c?"n":q[c],null==(p=p[1])||""==p)p="4";else var p=Z[p]||(isNaN(p)?"4":p.substr(0,1));c=[c,p].join("")}else c="";c&&a.push(c)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=K[r[0]])&&(t.c[o]=r))}for(t.c[o]||(r=K[o])&&(t.c[o]=r),r=0;r<i.length;r+=1)t.a.push(new v(o,i[r]))}}(i),p(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],r=0;r<e;r++)n.push(t.a[r].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(r),f(e)),m(e,(function(){t(i.a,i.c,Q)}))},tt.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?h(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",(function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var r=[],o=0;o<e.length;o+=2)for(var i=e[o],a=e[o+1],s=0;s<a.length;s++)r.push(new v(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(r)}}),2e3):t([])},et.prototype.load=function(t){var e=this.f.id,n=this.c.o,r=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new v(a.name,T("font-weight:"+a.weight+";font-style:"+a.style)))}t(r.a)},h(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",(function(e){e&&t([])}))):t([])};var nt=new H(window);nt.a.c.custom=function(t,e){return new D(e,t)},nt.a.c.fontdeck=function(t,e){return new et(e,t)},nt.a.c.monotype=function(t,e){return new W(e,t)},nt.a.c.typekit=function(t,e){return new tt(e,t)},nt.a.c.google=function(t,e){return new Y(e,t)};var rt={load:n(nt.load,nt)};ie.exports?ie.exports=rt:(window.WebFont=rt,window.WebFontConfig&&nt.load(window.WebFontConfig))}();for(var ue,ce=re(le.exports),pe=function(){function t(){S(this,t),this._families={}}return j(t,[{key:"getWeight",value:function(t){return/extra(- )?light/i.test(t)?200:/light/i.test(t)?300:/semi(- )?bold/i.test(t)?600:/bold/i.test(t)?700:/black/i.test(t)?900:400}},{key:"getStyle",value:function(t){return/italic$/i.test(t)?"italic":"normal"}},{key:"getFamily",value:function(t){var e=t.split(/( black| bold| light| regular| semi[- ]?bold| extra[- ]?light| italic)/i);return e&&e[0]?e[0]:""}},{key:"getProps",value:function(t){return{family:this.getFamily(t),style:this.getStyle(t),weight:this.getWeight(t)}}},{key:"add",value:function(t){this._families[t.family]=this._families[t.family]||[];var e=t.weight+("italic"==t.style?"i":"");-1==this._families[t.family].indexOf(e)&&this._families[t.family].push(e)}},{key:"download",value:function(){var t=[];for(var e in this._families)t.push(e+":"+this._families[e].join(","));t.length>0&&ce.load({google:{families:t}})}}]),t}(),he=function(){function t(){S(this,t),this.zooms=this.generateArray(1,20),this.expressions=new se,this.fonts=new pe}return j(t,[{key:"generateArray",value:function(t,e){for(var n=[],r=t;r<e;r++)n.push(r);return n}},{key:"getZooms",value:function(t){return void 0===t?this.zooms:"number"==typeof t?[t]:"object"===k(t)&&"number"==typeof t.minzoom&&"number"==typeof t.maxzoom?this.generateArray(t.minzoom,t.maxzoom):t}},{key:"parseNumber",value:function(t,e,n){if(void 0!==t.minzoom&&n<t.minzoom||void 0!==t.maxzoom&&t.maxzoom<n)return 0;if(void 0===e)return 1;if("number"==typeof e)return e;var r=this.expressions.asExpression(e),o=this.expressions.parseInterpolate(r,n);return o?o.value?o.value:+this.expressions.number(o.lower,o.upper,o.t).toFixed(2):void 0}},{key:"parseColor",value:function(t,e,n){if(void 0!==t.minzoom&&n<t.minzoom||void 0!==t.maxzoom&&t.maxzoom<n)return"#000";if(void 0===e)return"#000";if("string"==typeof e)return e;var r=this.expressions.asExpression(e),o=this.expressions.parseInterpolate(r,n);if(o){if(o.value)return o.value;var i=ae.getStringTypeAndValue(o.lower),a=ae.getStringTypeAndValue(o.upper),s="rgb"===i.type?i.value:ae[i.type].rgb(i.value),l="rgb"===a.type?a.value:ae[a.type].rgb(a.value);return ae.rgba.toString([this.expressions.number(s[0],l[0],o.t),this.expressions.number(s[1],l[1],o.t),this.expressions.number(s[2],l[2],o.t),1])}}},{key:"renderLine",value:function(t,e){var n=this.widthAndColorByZooms(t,{"line-width":t.paint["line-width"],"line-color":t.paint["line-color"],zooms:e,"line-opacity":t.paint["line-opacity"]});if(t.paint["line-gap-width"]){var r=this.widthAndColorByZooms(t,{"line-width":t.paint["line-gap-width"],"line-color":t.paint["line-color"],zooms:e,"line-opacity":t.paint["line-opacity"]});for(var o in r)n[o]&&"number"==typeof n[o]["line-width"]&&(n[o]["line-width"]+=r[o]["line-width"])}return n}},{key:"renderMatches",value:function(t,e){var n=this;return e.map((function(e){var r={id:t.id,name:e.name,metadata:t.metadata,paint:{},layout:{}};return Object.keys(t.paint||{}).forEach((function(o){r.paint[o]=n.expressions.renderMatch(t.paint[o],e)})),Object.keys(t.layout||{}).forEach((function(o){r.layout[o]=n.expressions.renderMatch(t.layout[o],e)})),r}))}},{key:"widthAndColorByZooms",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"line",o=e["".concat(r,"-color")]||"#000",i=e["".concat(r,"-width")]||1,a=e["".concat(r,"-opacity")],s=e.zooms||this.zooms,l={maxWidth:0};return l.id=t.id,s.forEach((function(e){var s=n.parseNumber(t,i,e);s>l.maxWidth&&(l.maxWidth=s),l[e]=O(O(O({},"".concat(r,"-width"),isNaN(s)?0:s),"".concat(r,"-color"),n.parseColor(t,o,e)),"".concat(r,"-opacity"),n.parseNumber(t,a,e))})),l}},{key:"searchMatches",value:function(t,e,n){var r=this;if("match"===t[0]){for(var o=Array.isArray(t[1])?t[1].join(":"):t[1],i=function(){var n=Array.isArray(t[a+1])?t[a+1][0]:t[a+1];e.find((function(t){return t.name===n}))||e.push(O({name:n},o,n))},a=1;a<t.length-2;a+=2)i();var s="".concat(n.id,":default");e.find((function(t){return t.name===s}))||e.push(O({name:s},o,s))}else if("step"===t[0]){var l=Array.isArray(t[1])?t[1].join(":"):t[1];if("zoom"===l)return;e.find((function(t){return t.name==="".concat(n.id,":0")}))||e.push(O({name:"".concat(n.id,":0")},l,0));for(var u=function(){var r=Array.isArray(t[c+1])?t[c+1][0]:t[c+1];e.find((function(t){return t.name==="".concat(n.id,":").concat(r)}))||e.push(O({name:"".concat(n.id,":").concat(r)},l,r))},c=2;c<t.length-2;c+=2)u()}else t.filter(Array.isArray).forEach((function(t){return r.searchMatches(t,e,n)}))}},{key:"autoGenerateMatches",value:function(t){var e=this;if(!t.metadata["taxonomy:matches"]&&!Array.isArray(t.metadata["taxonomy:matches"])){var n=[];return Object.keys(t.paint||{}).forEach((function(r){Array.isArray(t.paint[r])&&e.searchMatches(t.paint[r],n,t)})),Object.keys(t.layout||{}).forEach((function(r){Array.isArray(t.layout[r])&&e.searchMatches(t.layout[r],n,t)})),n.length>0&&(t.metadata["taxonomy:matches"]=n),n}}},{key:"generateLayersWithMatches",value:function(){var t=this;return function(e,n){return t.autoGenerateMatches(n),!n.metadata["taxonomy:matches"]||n.metadata["taxonomy:matches"].length<1?(e.push(n),e):e.concat(t.renderMatches(n,n.metadata["taxonomy:matches"]))}}}]),t}(),de=new he,fe={css:'popover,[is="popover"]{ display: flex; flex-direction: column; align-items: center; } popover .popover-wrapper,[is="popover"] .popover-wrapper{ position: relative; } popover .popover-dialog,[is="popover"] .popover-dialog{ position: absolute; min-width: 10rem; bottom: 0; transform: translateX(-50%); } popover .popover-dialog::after,[is="popover"] .popover-dialog::after{ position: absolute; display: block; content: \'\'; border-color: transparent; border-style: solid; border-width: 0.5rem 0.5rem 0; left: calc(50% - 0.25rem); bottom: 0; border-top-color: #fff; } popover .popover-body,[is="popover"] .popover-body{ font-size: 0.75rem; margin-bottom: 0.5rem; background-color: #fff; padding: 0.5rem; border-radius: 0.5rem 0.75rem; box-shadow: 0 2px 4px rgb(0 0 0 / 20%), 0 -1px 0 rgb(0 0 0 / 2%); cursor: default; } popover .popover-close,[is="popover"] .popover-close{ position: absolute; top: 0; right: 0; margin: 0.25em 0.5em; padding: 0.5em; line-height: 0; border-radius: 0.375rem; cursor: pointer; } popover .popover-close:hover,[is="popover"] .popover-close:hover{ background-color: rgba(0, 0, 0, 0.1); } popover .popover-color,[is="popover"] .popover-color{ display: inline-block; border-radius: 50%; border: solid 1px rgba(0, 0, 0, 0.2); line-height: 0; margin: auto; margin-left: 0.5rem; width: 0.8rem; height: 0.8rem; background-color: #fff; } popover code,[is="popover"] code{ cursor: pointer; transition: background-color 0.5s ease-out; }',exports:{updateColors(t,e){let n=this.$$(".popover-color");for(let t in n)n[t].style["background-color"]=n[t].getAttribute("color")},onMounted(t,e){this.updateColors(t,e)},onUpdated(t,e){this.updateColors(t,e)},copyToClipboard(t){navigator.clipboard.writeText(t.target.innerHTML),t.target.style["background-color"]="#8bc34a",setTimeout((()=>{t.target.style["background-color"]=null}),4e3)}},template:(t,e,n,r)=>t('<div expr29="expr29" class="popover-wrapper"></div><slot expr36="expr36"></slot>',[{type:n.IF,evaluate:t=>t.props.opened&&t.props.styleProps,redundantAttribute:"expr29",selector:"[expr29]",template:t('<div class="popover-dialog"><div expr30="expr30" class="popover-body"><div expr31="expr31" class="popover-close"><svg height="10" width="10"><line x1="0" y1="0" x2="10" y2="10" stroke="#000" stroke-width="1"/><line x1="0" y1="10" x2="10" y2="0" stroke="#000" stroke-width="1"/></svg></div><div expr32="expr32"></div></div></div>',[{redundantAttribute:"expr30",selector:"[expr30]",expressions:[{type:e.EVENT,name:"onclick",evaluate:t=>t=>t.stopPropagation()}]},{redundantAttribute:"expr31",selector:"[expr31]",expressions:[{type:e.EVENT,name:"onclick",evaluate:t=>t.props.onClose}]},{type:n.EACH,getKey:null,condition:null,template:t('<template expr33="expr33"></template>',[{type:n.IF,evaluate:t=>t.props.styleProps[t.style],redundantAttribute:"expr33",selector:"[expr33]",template:t(' <code expr34="expr34"> </code><span expr35="expr35" class="popover-color"></span>',[{expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>[t.style,":"].join("")}]},{redundantAttribute:"expr34",selector:"[expr34]",expressions:[{type:e.TEXT,childNodeIndex:0,evaluate:t=>t.props.styleProps[t.style]},{type:e.EVENT,name:"onclick",evaluate:t=>t.copyToClipboard}]},{type:n.IF,evaluate:t=>t.style.indexOf("color")>-1,redundantAttribute:"expr35",selector:"[expr35]",template:t(null,[{expressions:[{type:e.ATTRIBUTE,isBoolean:!1,name:"color",evaluate:t=>t.props.styleProps[t.style]}]}])}])}]),redundantAttribute:"expr32",selector:"[expr32]",itemName:"style",indexName:null,evaluate:t=>Object.keys(t.props.styleProps)}])},{type:n.SLOT,attributes:[],name:"default",redundantAttribute:"expr36",selector:"[expr36]"}]),name:"popover"},me={css:'render-item,[is="render-item"]{ cursor: pointer; }',exports:{components:{popover:fe},onMounted(t){t.minHeight&&(this.root.style["min-height"]=`${t.minHeight}px`);const e="canvas"===t.type?this.$("canvas"):this.$("span");this.applyStyles(e,t.styleProps)},onClick(t){this.update({popover:!this.stat