@rnacanvas/forms.edit 9.0.1 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>h,y:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const h=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},659:t=>{var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var i={};n.r(i),n.d(i,{DragTranslater:()=>v});var r=n(72),s=n.n(r),o=n(825),a=n.n(o),h=n(659),l=n.n(h),u=n(56),c=n.n(u),d=n(540),f=n.n(d),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(g.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(g.y)}))}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,i=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let r=this.targetForm.getBoundingClientRect(),s=r.x,o=r.y;return this.targetForm.style.translate=i,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return i})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function i(t){return n(t)/t.length}function r(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>i,isBetweenExclusive:()=>c,isBetweenInclusive:()=>u,max:()=>l,mean:()=>i,median:()=>a,min:()=>h,sortNumbers:()=>r,sortNumbersAscending:()=>r,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return r(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,r=n-1;return i([e[n],e[r]])}function h(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function l(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function u(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return Math.abs(t-e)<=n}function f(t){r(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(i),n.d(i,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class r{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],i=n.map((e=>r.of(e).in(t).length)),s=(0,e.max)(i),o=n.findIndex((e=>r.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),i})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,_:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const h=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,P:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const h=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,KQ:()=>a,UJ:()=>l,wx:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 268px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: rgba(227, 229, 255, 0.37);\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 34px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",h="Y7tezdMOsnQfs2CQtMUR",l="blLx0TnwxHwlX8qvUigb";const u=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>l,Qq:()=>h,Z7:()=>u,kY:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.PxTHOvfPECESZe6OxVvg:hover .hcTi6yK4eMJ8Mc61rqGY {\n text-decoration: underline;\n}\n\n.lVFnQ83G0WswDpb_v1xo {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.MwdzfSTS8dcFWG_qqlI9 {\n transform: rotate(90deg);\n}\n',""]);var a="PxTHOvfPECESZe6OxVvg",h="hcTi6yK4eMJ8Mc61rqGY",l="lVFnQ83G0WswDpb_v1xo",u="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,IU:()=>f,QB:()=>y,Qs:()=>d,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>u,lf:()=>a,m9:()=>l,vw:()=>p,wx:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.sE2YASqaiPZdV9dz58A7 {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.BYZcOJiOX5zLxIrbc3gR {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.mOH6VML7hViujtEoNaOA .BYZcOJiOX5zLxIrbc3gR {\n transform: rotate(90deg);\n}\n\n.u5w42CVwU4PQ7GiSuy4G {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 10px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.mOH6VML7hViujtEoNaOA .TCp4dzyF9qmbX3ejDOkL {\n display: flex;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 19px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",l="BYZcOJiOX5zLxIrbc3gR",u="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,ZZ:()=>a,o3:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",h="P5PJGaHxnhsEaezm8Nhg";const l=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,h=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},l=s.push,u=s.indexOf,c={},d=c.toString,f=c.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=i.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,s=(n=n||w).createElement("script");if(s.text=t,e)for(i in b)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function N(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var k="3.7.1",S=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=N(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===h&&(o=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(l&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],s=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,o[e]=T.extend(l,s,i)):void 0!==i&&(o[e]=i));return o},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=o(t))&&("function"!=typeof(n=f.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=T.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?T.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!S.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,s=t.length,o=!n;r<s;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,o=[];if(C(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&o.push(r);return h(o)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var M=s.pop,E=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=l;!function(){var t,e,n,r,o,h,l,c,d,p,m=P,y=T.expando,v=0,w=0,b=tt(),x=tt(),N=tt(),k=tt(),S=function(t,e){return t===e&&(o=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+L+"*\\]",I=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"*,"+L+"*"),F=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),B=new RegExp(L+"|>"),z=new RegExp(I),H=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),$=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ht()},J=dt((function(t){return!0===t.disabled&&_(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(W.childNodes),W.childNodes),s[W.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,i){var r,s,o,a,l,u,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(ht(e),e=e||h,c)){if(11!==v&&(l=G.exec(t)))if(r=l[1]){if(9===v){if(!(o=e.getElementById(r)))return n;if(o.id===r)return m.call(n,o),n}else if(p&&(o=p.getElementById(r))&&K.contains(e,o)&&o.id===r)return m.call(n,o),n}else{if(l[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(k[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(B.test(t)||F.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=y)),s=(u=ut(t)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+ct(u[s]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){k(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(O,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return _(e,"input")&&e.type===t}}function rt(t){return function(e){return(_(e,"input")||_(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ht(t){var n,i=t?t.ownerDocument||t:W;return i!=h&&9===i.nodeType&&i.documentElement?(l=(h=i).documentElement,c=!T.isXMLDoc(h),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&W!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return l.appendChild(t).id=T.expando,!h.getElementsByName||!h.getElementsByName(T.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return h.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return h.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(Q,$);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Q,$);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n,i,r,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&c)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;l.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+C+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=h.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),S=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===h||t.ownerDocument==W&&K.contains(W,t)?-1:e===h||e.ownerDocument==W&&K.contains(W,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},h):h}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ht(t),c&&!k[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){k(e,!0)}return K(e,h,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=h&&ht(t),T.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=h&&ht(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!c):void 0;return void 0!==r?r:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],i=0,s=0;if(o=!g.sortStable,r=!g.sortStable&&a.call(t,0),E.call(t,S),o){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)A.call(t,n[i],1)}return r=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,$),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,$),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,$).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&b(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=K.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,h){var l,u,c,d,f,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!h&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?_(c,g):1===c.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&w){for(b=(d=(l=(u=m[y]||(m[y]={}))[t]||[])[0]===v&&l[1])&&l[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){u[t]=[v,d,b];break}}else if(w&&(b=d=(l=(u=e[y]||(e[y]={}))[t]||[])[0]===v&&l[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?_(c,g):1===c.nodeType)||!++b||(w&&((u=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=r)===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,s=r(t,n),o=s.length;o--;)t[i=u.call(t,s[o])]=!(e[i]=s[o])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=yt(t.replace(O,"$1"));return i[y]?et((function(t,e,n,r){for(var s,o=i(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,r,s){return e[0]=t,i(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(Q,$),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return H.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(Q,$).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return h.activeElement}catch(t){}}()&&h.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){var e;return _(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:ot((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function lt(){}function ut(t,n){var i,r,s,o,a,h,l,u=x[t+" "];if(u)return n?0:u.slice(0);for(a=t,h=[],l=e.preFilter;a;){for(o in i&&!(r=R.exec(a))||(r&&(a=a.slice(r[0].length)||a),h.push(s=[])),i=!1,(r=F.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(O," ")}),a=a.slice(i.length)),e.filter)!(r=V[o].exec(a))||l[o]&&!(r=l[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?K.error(t):x(t,h).slice(0)}function ct(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function dt(t,e,n){var i=e.dir,r=e.next,s=r||i,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,h){var l,u,c=[v,a];if(h){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(u=e[y]||(e[y]={}),r&&_(e,r))e=e[i]||e;else{if((l=u[s])&&l[0]===v&&l[1]===a)return c[2]=l[2];if(u[s]=c,c[2]=t(e,n,h))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var s,o=[],a=0,h=t.length,l=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),l&&e.push(a)));return o}function mt(t,e,n,i,r,s){return i&&!i[y]&&(i=mt(i)),r&&!r[y]&&(r=mt(r,s)),et((function(s,o,a,h){var l,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var i=0,r=e.length;i<r;i++)K(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,h);if(n?n(w,f=r||(s?t:y||i)?[]:o,a,h):f=w,i)for(l=pt(f,g),i(l,[],a,h),c=l.length;c--;)(d=l[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(r||t){if(r){for(l=[],c=f.length;c--;)(d=f[c])&&l.push(w[c]=d);r(null,f=[],l,h)}for(c=f.length;c--;)(d=f[c])&&(l=r?u.call(s,d):p[c])>-1&&(s[l]=!(o[l]=d))}}else f=pt(f===o?f.splice(y,f.length):f),r?r(null,o,f,h):m.apply(o,f)}))}function gt(t){for(var i,r,s,o=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],l=a?1:0,c=dt((function(t){return t===i}),h,!0),d=dt((function(t){return u.call(i,t)>-1}),h,!0),f=[function(t,e,r){var s=!a&&(r||e!=n)||((i=e).nodeType?c(t,e,r):d(t,e,r));return i=null,s}];l<o;l++)if(r=e.relative[t[l].type])f=[dt(ft(f),r)];else{if((r=e.filter[t[l].type].apply(null,t[l].matches))[y]){for(s=++l;s<o&&!e.relative[t[s].type];s++);return mt(l>1&&ft(f),l>1&&ct(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),r,l<s&&gt(t.slice(l,s)),s<o&&gt(t=t.slice(s)),s<o&&ct(t))}f.push(r)}return ft(f)}function yt(t,i){var r,s=[],o=[],a=N[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=gt(i[r]))[y]?s.push(a):o.push(a);a=N(t,function(t,i){var r=i.length>0,s=t.length>0,o=function(o,a,l,u,d){var f,p,g,y=0,w="0",b=o&&[],x=[],N=n,k=o||s&&e.find.TAG("*",d),S=v+=null==N?1:Math.random()||.1,C=k.length;for(d&&(n=a==h||a||d);w!==C&&null!=(f=k[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==h||(ht(f),l=!c);g=t[p++];)if(g(f,a||h,l)){m.call(u,f);break}d&&(v=S)}r&&((f=!g&&f)&&y--,o&&b.push(f))}if(y+=w,r&&w!==y){for(p=0;g=i[p++];)g(b,x,a,l);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=M.call(u));x=pt(x)}m.apply(u,x),d&&!o&&x.length>0&&y+i.length>1&&T.uniqueSort(u)}return d&&(v=S,n=N),b};return r?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,i,r){var s,o,a,h,l,u="function"==typeof t&&t,d=!r&&ut(t=u.selector||t);if(i=i||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&c&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Q,$),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=V.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[h=a.type]);)if((l=e.find[h])&&(r=l(a.matches[0].replace(Q,$),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=r.length&&ct(o)))return m.apply(i,r),i;break}}return(u||yt(t,d))(r,n,!c,i,!n||Y.test(t)&&at(n.parentNode)||n),i}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,g.sortStable=y.split("").sort(S).join("")===y,ht(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ht,K.tokenize=ut,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var I=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(n))break;i.push(t)}return i},q=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=T.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return y(e)?T.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return u.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<i;e++)if(T.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,r[e],n);return i>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&R.test(t)?T(t):t||[],!1).length}});var z,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||z,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:H.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),F.test(i[1])&&T.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=w.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,z=T(w);var V=/^(?:parents|prev(?:Until|All))/,X={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&T(t);if(!R.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?u.call(T(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return I(t,"parentNode")},parentsUntil:function(t,e,n){return I(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,n){return I(t,"nextSibling",n)},prevUntil:function(t,e,n){return I(t,"previousSibling",n)},siblings:function(t){return q((t.parentNode||{}).firstChild,t)},children:function(t){return q(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,i){var r=T.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=T.filter(i,r)),this.length>1&&(X[t]||T.uniqueSort(r),V.test(t)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function Q(t){throw t}function $(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,i,r,s=[],o=[],a=-1,h=function(){for(r=r||t.once,i=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},l={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){T.each(n,(function(n,i){y(i)?t.unique&&l.has(i)||s.push(i):i&&i.length&&"string"!==N(i)&&e(i)}))}(arguments),n&&!e&&h()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?T.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||e||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||h()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];s[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var s=0;function o(t,e,n,r){return function(){var a=this,h=arguments,l=function(){var i,l;if(!(t<s)){if((i=n.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");l=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(l)?r?l.call(i,o(s,e,Y,r),o(s,e,Q,r)):(s++,l.call(i,o(s,e,Y,r),o(s,e,Q,r),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,h=[i]),(r||e.resolveWith)(a,h))}},u=r?l:function(){try{l()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,u.error),t+1>=s&&(n!==Q&&(a=void 0,h=[i]),e.rejectWith(a,h))}};t?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),i.setTimeout(u))}}return T.Deferred((function(i){e[0][3].add(o(0,i,y(r)?r:Y,i.notifyWith)),e[1][3].add(o(0,i,y(t)?t:Y)),e[2][3].add(o(0,i,y(n)?n:Q))})).promise()},promise:function(t){return null!=t?T.extend(t,r):r}},s={};return T.each(e,(function(t,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),s=T.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&($(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(r[n]&&r[n].then)))return s.then();for(;n--;)$(r[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Z.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout((function(){throw t}))};var J=T.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),T.ready()}T.fn.ready=function(t){return J.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||J.resolveWith(w,[T]))}}),T.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?i.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var tt=function(t,e,n,i,r,s,o){var a=0,h=t.length,l=null==n;if("object"===N(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,y(i)||(o=!0),l&&(o?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(T(t),n)})),e))for(;a<h;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:l?e.call(t):h?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=T.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||T.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new ot,ht=new ot,lt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function ct(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:lt.test(t)?JSON.parse(t):t)}(n)}catch(t){}ht.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return ht.hasData(t)||at.hasData(t)},data:function(t,e,n){return ht.access(t,e,n)},removeData:function(t,e){ht.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=ht.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ct(s,i,r[i]));at.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){ht.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ht.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ht.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ht.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,r=n.shift(),s=T._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,(function(){T.dequeue(t,e)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=T.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===T.css(t,"display")};function wt(t,e,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return T.css(t,e,"")},h=a(),l=n&&n[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==l&&+h)&&ft.exec(T.css(t,e));if(u&&u[3]!==l){for(h/=2,l=l||u[3],u=+h||1;o--;)T.style(t,e,u+l),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),u/=s;u*=2,T.style(t,e,u+l),n=n||[]}return n&&(u=+u||+h||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var bt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=bt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=T.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),bt[i]=r,r)}function Nt(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)(i=t[s]).style&&(n=i.style.display,e?("none"===n&&(r[s]=at.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&vt(i)&&(r[s]=xt(i))):"none"!==n&&(r[s]="none",at.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}T.fn.extend({show:function(){return Nt(this,!0)},hide:function(){return Nt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?T(this).show():T(this).hide()}))}});var kt,St,Tt=/^(?:checkbox|radio)$/i,Ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;kt=w.createDocumentFragment().appendChild(w.createElement("div")),(St=w.createElement("input")).setAttribute("type","radio"),St.setAttribute("checked","checked"),St.setAttribute("name","t"),kt.appendChild(St),g.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",g.option=!!kt.lastChild;var Mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Et(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?T.merge([t],n):n}function At(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,g.option||(Mt.optgroup=Mt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,i,r){for(var s,o,a,h,l,u,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===N(s))T.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Ct.exec(s)||["",""])[1].toLowerCase(),h=Mt[a]||Mt._default,o.innerHTML=h[1]+T.htmlPrefilter(s)+h[2],u=h[0];u--;)o=o.lastChild;T.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(i&&T.inArray(s,i)>-1)r&&r.push(s);else if(l=gt(s),o=Et(c.appendChild(s),"script"),l&&At(o),n)for(u=0;s=o[u++];)_t.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,i,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Pt(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Wt;else if(!r)return t;return 1===s&&(o=r,r=function(t){return T().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=T.guid++)),t.each((function(){T.event.add(this,e,r,i,n)}))}function It(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,T.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,i,r){var s,o,a,h,l,u,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&T.find.matchesSelector(mt,r),n.guid||(n.guid=T.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(G)||[""]).length;l--;)f=m=(a=jt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=T.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=T.event.special[f]||{},u=T.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:p.join(".")},s),(d=h[f])||((d=h[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[f]=!0)},remove:function(t,e,n,i,r){var s,o,a,h,l,u,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(l=(e=(e||"").match(G)||[""]).length;l--;)if(f=m=(a=jt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=T.event.special[f]||{},d=h[f=(i?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)u=d[s],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(s,1),u.selector&&d.delegateCount--,c.remove&&c.remove.call(t,u));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||T.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)T.event.remove(t,f+e[l],n,i,!0);T.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=new Array(arguments.length),h=T.event.fix(t),l=(at.get(this,"events")||Object.create(null))[h.type]||[],u=T.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,h)){for(o=T.event.handlers.call(this,h,l),e=0;(r=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(i=((T.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(h.result=i)&&(h.preventDefault(),h.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,i,r,s,o,a=[],h=e.delegateCount,l=t.target;if(h&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[r=(i=e[n]).selector+" "]&&(o[r]=i.needsContext?T(r,this).index(l)>-1:T.find(r,this,null,[l]).length),o[r]&&s.push(i);s.length&&a.push({elem:l,handlers:s})}return l=this,h<e.length&&a.push({elem:l,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&_(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&_(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&_(e,"input")&&at.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Wt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Wt,isPropagationStopped:Wt,isImmediatePropagationStopped:Wt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),i=T.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var i;if(It(this,t,!0),!w.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return It(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=w.documentMode?this:i,s=at.get(r,e);s||(w.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=w.documentMode?this:i,s=at.get(r,e)-1;s?at.set(r,e,s):(w.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,i){return Pt(this,t,e,n,i)},one:function(t,e,n,i){return Pt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){T.event.remove(this,t,n,e)}))}});var qt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function zt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,i,r,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)T.event.add(e,r,a[r][n]);ht.hasData(t)&&(s=ht.access(t),o=T.extend({},s),ht.set(e,o))}}function Xt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,i){e=h(e);var r,s,o,a,l,u,c=0,d=t.length,f=d-1,p=e[0],m=y(p);if(m||d>1&&"string"==typeof p&&!g.checkClone&&Rt.test(p))return t.each((function(r){var s=t.eq(r);m&&(e[0]=p.call(this,r,s.html())),Ut(s,e,n,i)}));if(d&&(s=(r=Ot(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=T.map(Et(r,"script"),zt)).length;c<d;c++)l=r,c!==f&&(l=T.clone(l,!0,!0),a&&T.merge(o,Et(l,"script"))),n.call(t[c],l,c);if(a)for(u=o[o.length-1].ownerDocument,T.map(o,Ht),c=0;c<a;c++)l=o[c],_t.test(l.type||"")&&!at.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):x(l.textContent.replace(Ft,""),l,u))}return t}function Gt(t,e,n){for(var i,r=e?T.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||T.cleanData(Et(i)),i.parentNode&&(n&&gt(i)&&At(Et(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(o=Et(a),i=0,r=(s=Et(t)).length;i<r;i++)Xt(s[i],o[i]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),i=0,r=s.length;i<r;i++)Vt(s[i],o[i]);else Vt(t,a);return(o=Et(a,"script")).length>0&&At(o,!h&&Et(t,"script")),a},cleanData:function(t){for(var e,n,i,r=T.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!Mt[(Ct.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,i=[],r=T(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),T(r[o])[e](n),l.apply(i,n.get());return this.pushStack(i)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Qt=/^--/,$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Zt=function(t,e,n){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=s[r];return i},Jt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var i,r,s,o,a=Qt.test(e),h=t.style;return(n=n||$t(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(O,"$1")||void 0),""!==o||gt(t)||(o=T.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(i=h.width,r=h.minWidth,s=h.maxWidth,h.minWidth=h.maxWidth=h.width=o,o=n.width,h.width=i,h.minWidth=r,h.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(l).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,h=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),r=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),mt.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,s,o,a,h,l=w.createElement("div"),u=w.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),h},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,ie={};function re(t){return T.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function he(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function le(t,e,n,i,r,s){var o="width"===e?1:0,a=0,h=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=T.css(t,n+pt[o],!0,r)),i?("content"===n&&(h-=T.css(t,"padding"+pt[o],!0,r)),"margin"!==n&&(h-=T.css(t,"border"+pt[o]+"Width",!0,r))):(h+=T.css(t,"padding"+pt[o],!0,r),"padding"!==n?h+=T.css(t,"border"+pt[o]+"Width",!0,r):a+=T.css(t,"border"+pt[o]+"Width",!0,r));return!i&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+l}function ue(t,e,n){var i=$t(t),r=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),s=r,o=Kt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&_(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,i),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+le(t,e,n||(r?"border":"content"),s,i,o)+"px"}function ce(t,e,n,i,r){return new ce.prototype.init(t,e,n,i,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=rt(e),h=Qt.test(e),l=t.style;if(h||(e=re(a)),o=T.cssHooks[e]||T.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:l[e];"string"==(s=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=wt(t,e,r),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=r&&r[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(h?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,s,o,a=rt(e);return Qt.test(e)||(e=re(a)),(o=T.cssHooks[e]||T.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=Kt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,i){if(n)return!se.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):Zt(t,oe,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,s=$t(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===T.css(t,"boxSizing",!1,s),h=i?le(t,e,i,a,s):0;return a&&o&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-le(t,e,"border",!1,s)-.5)),h&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),he(0,n,h)}}})),T.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=s[i]||s[i-2]||s[0];return r}},"margin"!==t&&(T.cssHooks[t+e].set=he)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=$t(t),r=e.length;o<r;o++)s[e[o]]=T.css(t,e[o],!1,i);return s}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(T.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ce.prototype.init,T.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,T.fx.interval),T.fx.tick())}function ye(){return i.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function we(t,e,n){for(var i,r=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function be(t,e,n){var i,r,s=0,o=be.prefilters.length,a=T.Deferred().always((function(){delete h.elem})),h=function(){if(r)return!1;for(var e=de||ye(),n=Math.max(0,l.startTime+l.duration-e),i=1-(n/l.duration||0),s=0,o=l.tweens.length;s<o;s++)l.tweens[s].run(i);return a.notifyWith(t,[l,i,n]),i<1&&o?n:(o||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=T.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),u=l.props;for(function(t,e){var n,i,r,s,o;for(n in t)if(r=e[i=rt(n)],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),(o=T.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete t[i],s)n in t||(t[n]=s[n],e[n]=r);else e[i]=r}(u,l.opts.specialEasing);s<o;s++)if(i=be.prefilters[s].call(l,t,u,l.opts))return y(i.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return T.map(u,we,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(h,{elem:t,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,s,o,a,h,l,u,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(i in n.queue||(null==(o=T._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[i],pe.test(r)){if(delete e[i],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||T.style(t,i)}if((h=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(i in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=at.get(t,"display")),"none"===(u=T.css(t,"display"))&&(l?u=l:(Nt([t],!0),l=t.style.display||l,u=T.css(t,"display"),Nt([t]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===T.css(t,"float")&&(h||(d.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),h=!1,f)h||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:l}),s&&(g.hidden=!m),m&&Nt([t],!0),d.done((function(){for(i in m||Nt([t]),at.remove(t,"fxshow"),f)T.style(t,i,f[i])}))),h=we(m?g[i]:0,i,d),i in g||(g[i]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=T.isEmptyObject(t),s=T.speed(e,n,i),o=function(){var e=be(this,T.extend({},t),s);(r||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",s=T.timers,o=at.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&me.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=T.timers,o=i?i.length:0;for(n.finish=!0,T.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var n=T.fn[e];T.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,r)}})),T.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),de=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,ge())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,Ne=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,n):(1===s&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ne[e]||T.find.attr;Ne[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=Ne[o],Ne[o]=r,r=null!=n(t,e,i)?o:null,Ne[o]=s),r}}));var ke=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function Te(t){return(t.match(G)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,i,r,s,o;return y(t)?this.each((function(e){T(this).addClass(t.call(this,e,Ce(this)))})):(e=_e(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(s=0;s<e.length;s++)r=e[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Te(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,i,r,s,o;return y(t)?this.each((function(e){T(this).removeClass(t.call(this,e,Ce(this)))})):arguments.length?(e=_e(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(s=0;s<e.length;s++)for(r=e[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Te(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,Ce(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=_e(t),this.each((function(){if(a)for(s=T(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==t&&"boolean"!==o||((i=Ce(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Te(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;T.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,T(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Me,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,i,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:r.length;for(i=s<0?h:o?s:0;i<h;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(e=T(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,s=T.makeArray(e),o=r.length;o--;)((i=r[o]).selected=T.inArray(T.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=i.location,Ae={guid:Date.now()},Le=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,r){var s,o,a,h,l,u,c,d,p=[n||w],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[m]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!v(n)){for(h=c.delegateType||m,Oe.test(h+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?h:c.bindType||m,(u=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&u.apply(o,e),(u=l&&o[l])&&u.apply&&st(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||l&&y(n[m])&&!v(n)&&((a=n[l])&&(n[l]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),T.event.triggered=void 0,a&&(n[l]=a)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var De=/\[\]$/,We=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function qe(t,e,n,i){var r;if(Array.isArray(e))T.each(e,(function(e,r){n||De.test(t)?i(t,r):qe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==N(e))i(t,e);else for(r in e)qe(t+"["+r+"]",e[r],n,i)}T.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){r(this.name,this.value)}));else for(n in t)qe(n,t[n],e,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ie.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}});var Re=/%20/g,Fe=/#.*$/,Be=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Ve=/^\/\//,Xe={},Ue={},Ge="*/".concat("*"),Ye=w.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(G)||[];if(y(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function $e(t,e,n,i){var r={},s=t===Ue;function o(a){var h;return r[a]=!0,T.each(t[a]||[],(function(t,a){var l=a(e,n,i);return"string"!=typeof l||s||r[l]?s?!(h=l):void 0:(e.dataTypes.unshift(l),o(l),!1)})),h}return o(e.dataTypes[0])||!r["*"]&&o("*")}function Ze(t,e){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&T.extend(!0,t,i),t}Ye.href=Ee.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,T.ajaxSettings),e):Ze(T.ajaxSettings,t)},ajaxPrefilter:Qe(Xe),ajaxTransport:Qe(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,o,a,h,l,u,c,d,f=T.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),y=T.Callbacks("once memory"),v=f.statusCode||{},b={},x={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(l){if(!o)for(o={};e=ze.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)k.always(t[k.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||N;return n&&n.abort(e),S(0,e),this}};if(g.promise(k),f.url=((t||f.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){h=w.createElement("a");try{h.href=f.url,h.href=h.href,f.crossDomain=Ye.protocol+"//"+Ye.host!=h.protocol+"//"+h.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),$e(Xe,f,e,k),l)return k;for(c in(u=T.event&&f.global)&&0===T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!He.test(f.type),r=f.url.replace(Fe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Re,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Le.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Be,"$1"),d=(Le.test(r)?"&":"?")+"_="+Ae.guid+++d),f.url=r+d),f.ifModified&&(T.lastModified[r]&&k.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&k.setRequestHeader("If-None-Match",T.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ge+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||l))return k.abort();if(N="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=$e(Ue,f,e,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),l)return k;f.async&&f.timeout>0&&(a=i.setTimeout((function(){k.abort("timeout")}),f.timeout));try{l=!1,n.send(b,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,o,h){var c,d,w,b,x,N=e;l||(l=!0,a&&i.clearTimeout(a),n=void 0,s=h||"",k.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var i,r,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){h.unshift(r);break}if(h[0]in n)s=h[0];else{for(r in n){if(!h[0]||t.converters[r+" "+h[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(f,k,o)),!c&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,i){var r,s,o,a,h,l={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)l[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=u.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=l[h+" "+s]||l["* "+s]))for(r in l)if((a=r.split(" "))[1]===s&&(o=l[h+" "+a[0]]||l["* "+a[0]])){!0===o?o=l[r]:!0!==l[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+h+" to "+s}}}return{state:"success",data:e}}(f,b,k,c),c?(f.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(T.etag[r]=x)),204===t||"HEAD"===f.type?N="nocontent":304===t?N="notmodified":(N=b.state,d=b.data,c=!(w=b.error))):(w=N,!t&&N||(N="error",t<0&&(t=0))),k.status=t,k.statusText=(e||N)+"",c?g.resolveWith(p,[d,N,k]):g.rejectWith(p,[k,N,w]),k.statusCode(v),v=void 0,u&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?d:w]),y.fireWith(p,[k,N]),u&&(m.trigger("ajaxComplete",[k,f]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:r,data:n,success:i},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=T.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,T.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Ae.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,n){var r,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===s?T(i).removeProp(r):i[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),o&&y(s)&&s(o[0]),o=s=void 0})),"script"})),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(i)):e=w),s=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Ot([t],e,s),s&&s.length&&T(s).remove(),T.merge([],r.childNodes)));var i,r,s},T.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=Te(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,n){var i,r,s,o,a,h,l=T.css(t,"position"),u=T(t),c={};"static"===l&&(t.style.position="relative"),a=u.offset(),s=T.css(t,"top"),h=T.css(t,"left"),("absolute"===l||"fixed"===l)&&(s+h).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(h)||0),y(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+r),"using"in e?e.using.call(t,c):u.css(c)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(i,"marginTop",!0),left:e.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(i){return tt(this,(function(t,i,r){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r}),t,i,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){T.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return tt(this,(function(e,n,r){var s;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?T.css(e,n,a):T.style(e,n,r,a)}),e,o?r:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||T.guid++,r},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=_,T.isFunction=y,T.isWindow=v,T.camelCase=rt,T.type=N,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var sn=i.jQuery,on=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=on),t&&i.jQuery===T&&(i.jQuery=sn),T},void 0===r&&(i.jQuery=i.$=T),T}))},704:function(t){var e;e=()=>(()=>{var t={56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function i(t){return n(t)/t.length}function r(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>f,average:()=>i,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>u,isBetweenExclusive:()=>c,isBetweenInclusive:()=>u,max:()=>l,mean:()=>i,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>r,sortNumbersAscending:()=>r,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return r(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,r=n-1;return i([e[n],e[r]])}function h(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function l(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function u(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){r(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{Box:()=>e});var t=n(986);class e{static bounding(n){let i=n.map((t=>e.matching(t))),r=(0,t.min)(i.map((t=>t.left))),s=(0,t.min)(i.map((t=>t.top))),o=(0,t.max)(i.map((t=>t.right)))-r,a=(0,t.max)(i.map((t=>t.bottom)))-s;return new e(r,s,o,a)}static matching(t){let{x:n,y:i,width:r,height:s}=t;return new e(n,i,r,s)}constructor(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,i=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),r=this.centerX+i*Math.cos(t),s=this.centerY+i*Math.sin(t),o=i;return Math.abs(this.centerX-r)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),i})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Qq:()=>h,YL:()=>a,zX:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.DKvRm2Iz8xnCJ3FyFRDv {\n position: fixed;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n\n animation: zVywckd26nkyhEbH637w 1.5s;\n\n pointer-events: none;\n}\n\n@keyframes zVywckd26nkyhEbH637w {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.p5_D557pe0GpEcfAZAWo {\n margin: 0px;\n padding: 10px 19px;\n\n border-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 600;\n font-style: normal;\n color: white;\n\n text-wrap: nowrap;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.Z0ghuBmvyXYH9uep6VTd {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",h="p5_D557pe0GpEcfAZAWo",l="Z0ghuBmvyXYH9uep6VTd";const u=o}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{Tooltip:()=>E});var t=n(72),e=n.n(t),r=n(825),s=n.n(r),o=n(659),a=n.n(o),h=n(56),l=n.n(h),u=n(540),c=n.n(u),d=n(113),f=n.n(d),p=n(865),m={};m.styleTagTransform=f(),m.setAttributes=l(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,N,k,S,T,C,_=n(645),M=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class E{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,5),x.set(this,void 0),N.set(this,(()=>{})),k.set(this,(()=>{})),M(this,y,"f").classList.add(p.YL),M(this,v,"f").classList.add(p.Qq),M(this,v,"f").textContent=t,M(this,y,"f").append(M(this,v,"f")),M(this,w,"f").classList.add(p.zX),M(this,y,"f").append(M(this,w,"f"))}get textContent(){return M(this,v,"f").textContent}set textContent(t){let e=!M(this,g,"m",C).call(this);M(this,g,"m",T).call(this),M(this,v,"f").textContent=t,e&&M(this,g,"m",S).call(this)}get owner(){return M(this,x,"f")}set owner(t){M(this,x,"f")&&(M(this,x,"f").removeEventListener("mouseover",M(this,N,"f")),M(this,x,"f").removeEventListener("mouseout",M(this,k,"f"))),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,x,t),t&&(t.addEventListener("mouseover",(()=>M(this,g,"m",S).call(this))),t.addEventListener("mouseout",(()=>M(this,g,"m",T).call(this))))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,N=new WeakMap,k=new WeakMap,g=new WeakSet,S=function(){if(M(this,y,"f").style.left="0px",M(this,y,"f").style.top="0px",document.body.append(M(this,y,"f")),!M(this,x,"f"))return;let t=M(this,y,"f").getBoundingClientRect().width,e=M(this,v,"f").getBoundingClientRect().height+M(this,w,"f").getBoundingClientRect().height/2,n=_.Box.matching(M(this,x,"f").getBoundingClientRect()).padded(M(this,b,"f"));M(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",M(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},T=function(){M(this,y,"f").remove()},C=function(){return!document.body.contains(M(this,y,"f"))}})(),i})(),t.exports=e()},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,V:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const h=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Wu:()=>h,kL:()=>a,r9:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 14px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",h="vDAwbQmWCc39SmNMFRtv",l="BAlKKbk1BfHF_fPz1gpc";const u=o},726:function(t){var e;e=()=>(()=>{var t={854:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){return"number"==typeof t}function i(t){return n(t)&&Number.isFinite(t)}function r(t){return n(t)&&!Number.isFinite(t)}function s(t){return i(t)&&t>0}function o(t){return i(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function l(t){return"object"==typeof t&&null!==t}function u(t){return Array.isArray(t)}function c(t){return u(t)&&0==t.length}function d(t){return u(t)&&t.length>0}function f(t){return u(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return u(t)&&t.every(i)}function g(t){return u(t)&&t.every(r)}function y(t){return u(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>u,isEmptyArray:()=>c,isFiniteNumber:()=>i,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>r,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>l,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";function t(t,e){for(let[n,i]of Object.entries(e))t.setAttribute(n,i)}n.r(i),n.d(i,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>N,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>u,bringToFront:()=>m,isSVGGraphicsElement:()=>k,isSVGGraphicsElementsArray:()=>T,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var r,s=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const l=function(t,n,i){if(e.randomUUID&&!n&&!t)return e.randomUUID();var r=(t=t||{}).random||(t.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){i=i||0;for(var s=0;s<16;++s)n[i+s]=r[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(r)};function u(t){t.id="uuid-"+l()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class d{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class f{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class N{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach((t=>x(this,b,"f").removeAttribute(t.name))),[...e.firstElementChild.attributes].forEach((t=>x(this,b,"f").setAttribute(t.name,t.value))),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function k(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var S=n(854);function T(t){return(0,S.isArray)(t)&&t.every(k)}})(),i})(),t.exports=e()},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},881:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,kv:()=>d});var i=n(601),r=n.n(i),s=n(314),o=n.n(s),a=n(417),h=n.n(a),l=new URL(n(51),n.b),u=o()(r()),c=h()(l);u.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var d="pMUxgRC_f4NzkoelkDpX";const f=u},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Qq:()=>h,lI:()=>a,r9:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.XCtUcg96Mkd2YGqGvTjm {\n position: relative;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: blue;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.XCtUcg96Mkd2YGqGvTjm:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: underline;\n}\n\n.IgtWfVpmdN_e04k18xHb {\n cursor: default;\n}\n\n.IgtWfVpmdN_e04k18xHb .qTVXpnB_go4Q_8V0QAhx {\n pointer-events: none;\n\n color: #a9a9ff;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",h="qTVXpnB_go4Q_8V0QAhx",l="IgtWfVpmdN_e04k18xHb";const u=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>c,eB:()=>f,ho:()=>l,iE:()=>d,qM:()=>a,vM:()=>u});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 10px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.dJmYzq3wi8hxLecdDaOF .VFDUY2z_WgJp1fVc8TCw {\n display: flex;\n}\n\n.Z3lHB1W2K4m8JuZOnWs9 {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 18px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n._YkLdMiLPhNIvuLLypQE {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",h="VFDUY2z_WgJp1fVc8TCw",l="dJmYzq3wi8hxLecdDaOF",u="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",d="f1LDX7M42DUD9AT6Mh5p",f="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{EditingForm:()=>bh});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>qe,height:()=>Fe,rx:()=>je,ry:()=>De,width:()=>Re,x:()=>We,y:()=>Pe});var e={};n.r(e),n.d(e,{from:()=>Ve,to:()=>Xe});var r={};n.r(r),n.d(r,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>An,clear:()=>Ln,move:()=>On,plot:()=>jn,size:()=>Dn});var o={};n.r(o),n.d(o,{amove:()=>hi,ax:()=>oi,ay:()=>ai,build:()=>li,center:()=>si,cx:()=>ii,cy:()=>ri,length:()=>Kn,move:()=>ni,plain:()=>Jn,x:()=>ti,y:()=>ei});var a={};n.r(a),n.d(a,{dmove:()=>mi,dx:()=>gi,dy:()=>yi,height:()=>vi,move:()=>wi,size:()=>bi,width:()=>xi,x:()=>Ni,y:()=>ki});var h=n(72),l=n.n(h),u=n(825),c=n.n(u),d=n(659),f=n.n(d),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=f().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),l()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var N=n(633),k={};k.styleTagTransform=w(),k.setAttributes=m(),k.insert=f().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=y(),l()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var S=n(584),T={};T.styleTagTransform=w(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=y(),l()(S.Ay,T),S.Ay&&S.Ay.locals&&S.Ay.locals;var C,_=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class M{constructor(){this.domNode=document.createElement("div"),this.caret=new E,C.set(this,document.createElement("p")),this.domNode.classList.add(S.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),_(this,C,"f").classList.add(S.Qq),this.domNode.append(_(this,C,"f"))}get textContent(){return _(this,C,"f").textContent}set textContent(t){_(this,C,"f").textContent=t}}C=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(S.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(S.Z7)}pointDown(){this.domNode.classList.add(S.Z7)}}var A=n(887),L={};L.styleTagTransform=w(),L.setAttributes=m(),L.insert=f().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=y(),l()(A.Ay,L),A.Ay&&A.Ay.locals&&A.Ay.locals;var O,j=n(704),D=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class W{constructor(t,e){this.domNode=document.createElement("div"),O.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(A.lI),D(this,O,"f").classList.add(A.Qq),D(this,O,"f").textContent=null!=t?t:"",this.domNode.append(D(this,O,"f")),this.tooltip.owner=this.domNode}get textContent(){return D(this,O,"f").textContent}set textContent(t){D(this,O,"f").textContent=t}disable(){this.domNode.classList.add(A.r9)}enable(){this.domNode.classList.remove(A.r9)}}O=new WeakMap;var P=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=f().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=y(),l()(P.A,I),P.A&&P.A.locals&&P.A.locals;var q,R;class F{constructor(t){q.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(P.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}(this,q,"m",R).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}q=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var B=n(678),z={};z.styleTagTransform=w(),z.setAttributes=m(),z.insert=f().bind(null,"head"),z.domAPI=c(),z.insertStyleElement=y(),l()(B.Ay,z),B.Ay&&B.Ay.locals&&B.Ay.locals;var H,V,X=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},U=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class G{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),H.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(B.ZZ),X(this,H,e,"f"),X(this,V,document.createElement("a"),"f"),U(this,V,"f").textContent=t,U(this,V,"f").target="_blank",U(this,V,"f").rel="noopener noreferrer",U(this,V,"f").style.marginLeft="8px",this.domNode.append(e,U(this,V,"f"))}get infoLink(){return U(this,V,"f").href}set infoLink(t){U(this,V,"f").href=t,t?U(this,V,"f").classList.add(B.o3):U(this,V,"f").classList.remove(B.o3)}}H=new WeakMap,V=new WeakMap;var Y,Q=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class ${constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,Y,new G(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return Q(this,Y,"f").domNode}get infoLink(){return Q(this,Y,"f").infoLink}set infoLink(t){Q(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=f().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),l()(Z.Ay,J),Z.Ay&&Z.Ay.locals&&Z.Ay.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.kv)}}var tt,et=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class nt{constructor(t,e){this.name=t,tt.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,tt,new G(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var it=n(709),rt={};rt.styleTagTransform=w(),rt.setAttributes=m(),rt.insert=f().bind(null,"head"),rt.domAPI=c(),rt.insertStyleElement=y(),l()(it.A,rt),it.A&&it.A.locals&&it.A.locals;class st{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(it.V)}}var ot,at=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class ht{constructor(t,e){this.name=t,ot.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,ot,new G(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return at(this,ot,"f").domNode}get infoLink(){return at(this,ot,"f").infoLink}set infoLink(t){at(this,ot,"f").infoLink=t}}ot=new WeakMap;const lt={},ut=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)ft(Object.getOwnPropertyNames(e)),lt[t]=Object.assign(lt[t]||{},e);else for(const e in t)ct(e,t[e])}function dt(t){return lt[t]||{}}function ft(t){ut.push(...t)}function pt(t,e){let n;const i=t.length,r=[];for(n=0;n<i;n++)r.push(e(t[n]));return r}function mt(t){return t%360*Math.PI/180}function gt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yt(t,e,n,i){return null!=e&&null!=n||(i=i||t.bbox(),null==e?e=i.width/i.height*n:null==n&&(n=i.height/i.width*e)),{width:e,height:n}}function vt(t,e){const n=t.origin;let i=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([i,r]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof i,o="string"==typeof r;if(s||o){const{height:t,width:n,x:a,y:h}=e.bbox();s&&(i=i.includes("left")?a:i.includes("right")?a+n:a+n/2),o&&(r=r.includes("top")?h:r.includes("bottom")?h+t:h+t/2)}return[i,r]}const wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(t,e,n={})=>{const i={...e};for(const t in i)i[t].valueOf()===n[t]&&delete i[t];Object.keys(i).length?t.node.setAttribute("data-svgjs",JSON.stringify(i)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},Nt="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Tt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Ct{}const _t={},Mt="___SYMBOL___ROOT___";function Et(t,e=Nt){return Tt.document.createElementNS(e,t)}function At(t,e=!1){if(t instanceof Ct)return t;if("object"==typeof t)return jt(t);if(null==t)return new _t[Mt];if("string"==typeof t&&"<"!==t.charAt(0))return jt(Tt.document.querySelector(t));const n=e?Tt.document.createElement("div"):Et("svg");return n.innerHTML=t,t=jt(n.firstChild),n.removeChild(n.firstChild),t}function Lt(t,e){return e&&(e instanceof Tt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Et(t)}function Ot(t){if(!t)return null;if(t.instance instanceof Ct)return t.instance;if("#document-fragment"===t.nodeName)return new _t.Fragment(t);let e=gt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":_t[e]||(e="Dom"),new _t[e](t)}let jt=Ot;function Dt(t,e=t.name,n=!1){return _t[e]=t,n&&(_t[Mt]=t),ft(Object.getOwnPropertyNames(t.prototype)),t}let Wt=1e3;function Pt(t){return"Svgjs"+gt(t)+Wt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Pt(t.nodeName),t):t}function qt(t,e){let n,i;for(i=(t=Array.isArray(t)?t:[t]).length-1;i>=0;i--)for(n in e)t[i].prototype[n]=e[n]}function Rt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=At(t)).before(this),this},insertAfter:function(t){return(t=At(t)).after(this),this}});const Ft=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Bt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,zt=/rgb\((\d+),(\d+),(\d+)\)/,Ht=/(#[a-z_][a-z0-9\-_]*)/i,Vt=/\)\s*,?\s*/,Xt=/\s/g,Ut=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Gt=/^rgb\(/,Yt=/^(\s+)?$/,Qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$t=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Zt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t){let e;const n=t.length,i=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&i.push(t[e]);return i}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:i,sin:r,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,i=360*n();return new ne(t,e,i,"lch")}if("sine"===t){const t=i(80*r(2*s*(e=null==e?n():e)/.5+.01)+150),o=i(50*r(2*s*e/.5+4.6)+200),a=i(100*r(2*s*e/.5+2.3)+150);return new ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,i=360*n();return new ne(t,e,i,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,i=360*n();return new ne(t,e,i,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),i=255*n();return new ne(t,e,i)}if("lab"===t){const t=100*n(),e=256*n()-128,i=256*n()-128;return new ne(t,e,i,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ut.test(t)||Gt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-i,1-r,1-s);return 1===o?new ne(0,0,0,1,"cmyk"):new ne((1-i-o)/(1-o),(1-r-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.max(i,r,s),a=Math.min(i,r,s),h=(o+a)/2,l=o===a,u=o-a;return new ne(360*(l?0:o===i?((r-s)/u+(r<s?6:0))/6:o===r?((s-i)/u+2)/6:o===s?((i-r)/u+4)/6:0),100*(l?0:h>.5?u/(2-o-a):u/(o+a)),100*h,"hsl")}init(t=0,e=0,n=0,i=0,r="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)r="string"==typeof i?i:r,i="string"==typeof i?0:i,Object.assign(this,{_a:t,_b:e,_c:n,_d:i,space:r});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Gt.test(t)){const e=t.replace(Xt,""),[n,i,r]=zt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}else{if(!Ut.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,i,r]=Bt.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:h}=this,l="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:h}:{};Object.assign(this,l)}lab(){const{x:t,y:e,z:n}=this.xyz();return new ne(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),i=Math.sqrt(e**2+n**2);let r=180*Math.atan2(n,e)/Math.PI;return r<0&&(r*=-1,r=360-r),new ne(t,i,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:i,a:r,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;r=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(i+16)/116,a=r/500+o,h=o-s/200,l=16/116,u=.008856,c=7.787;t=.95047*(a**3>u?a**3:(a-l)/c),e=1*(o**3>u?o**3:(o-l)/c),n=1.08883*(h**3>u?h**3:(h-l)/c)}const i=3.2406*t+-1.5372*e+-.4986*n,r=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new ne(255*h,255*l,255*u)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new ne(n,n,n);const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=255*ee(r,i,t+1/3),o=255*ee(r,i,t),a=255*ee(r,i,t-1/3);return new ne(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:i}=this,r=255*(1-Math.min(1,t*(1-i)+i)),s=255*(1-Math.min(1,e*(1-i)+i)),o=255*(1-Math.min(1,n*(1-i)+i));return new ne(r,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:i,space:r}=this;return[t,e,n,i,r]}toHex(){const[t,e,n]=this._clamped().map(Kt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,l=(.4124*o+.3576*a+.1805*h)/.95047,u=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=l>.008856?Math.pow(l,1/3):7.787*l+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new ne(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:i,min:r,round:s}=Math;return[t,e,n].map((t=>i(0,r(s(t),255))))}}class ie{constructor(...t){this.init(...t)}clone(){return new ie(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function re(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,i=t.flip&&(e||"y"===t.flip)?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,a=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i,h=t.shear||0,l=t.rotate||t.theta||0,u=new ie(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=u.x,d=u.y,f=new ie(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new ie(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new ie(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:r,skewY:s,shear:h,theta:l,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:d,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const i=t.a*e.a+t.c*e.b,r=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,h=t.f+t.b*e.e+t.d*e.f;return n.a=i,n.b=r,n.c=s,n.d=o,n.e=a,n.f=h,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const i=t||0,r=e||0;return this.translateO(-i,-r).lmultiplyO(n).translateO(i,r)}clone(){return new se(this)}decompose(t=0,e=0){const n=this.a,i=this.b,r=this.c,s=this.d,o=this.e,a=this.f,h=n*s-i*r,l=h>0?1:-1,u=l*Math.sqrt(n*n+i*i),c=Math.atan2(l*i,l*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*r+i*s)/h,g=r*u/(m*n-i)||s*u/(m*i+n);return{scaleX:u,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*u+e*(m*f*u-p*g),translateY:a-e+t*p*u+e*(m*p*u+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new se(t);return re(this.a,e.a)&&re(this.b,e.b)&&re(this.c,e.c)&&re(this.d,e.d)&&re(this.e,e.e)&&re(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Me?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,s=this.f,o=t*i-e*n;if(!o)throw new Error("Cannot invert "+this);const a=i/o,h=-e/o,l=-n/o,u=t/o,c=-(a*r+l*s),d=-(h*r+u*s);return this.a=a,this.b=h,this.c=l,this.d=u,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=mt(t);const i=Math.cos(t),r=Math.sin(t),{a:s,b:o,c:a,d:h,e:l,f:u}=this;return this.a=s*i-o*r,this.b=o*i+s*r,this.c=a*i-h*r,this.d=h*i+a*r,this.e=l*i-u*r+n*r-e*i+e,this.f=u*i+l*r-e*r-n*i+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,i=0){3===arguments.length&&(i=n,n=e,e=t);const{a:r,b:s,c:o,d:a,e:h,f:l}=this;return this.a=r*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=l*e-i*e+i,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:i,b:r,c:s,d:o,e:a,f:h}=this;return this.a=i+r*t,this.c=s+o*t,this.e=a+h*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,i=0){3===arguments.length&&(i=n,n=e,e=t),t=mt(t),e=mt(e);const r=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:l,e:u,f:c}=this;return this.a=o+a*r,this.b=a+o*s,this.c=h+l*r,this.d=l+h*s,this.e=u+c*r-i*r,this.f=c+u*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:i}=new ie(e.ox,e.oy).transform(this),r=(new se).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-i).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,i);if(isFinite(e.px)||isFinite(e.py)){const t=new ie(n,i).transform(r),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;r.translateO(s,o)}return r.translateO(e.tx,e.ty),r}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function oe(){if(!oe.nodes){const t=At().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=Tt.document.body||Tt.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}Dt(se,"Matrix");class he{constructor(...t){this.init(...t)}addOffset(){return this.x+=Tt.window.pageXOffset,this.y+=Tt.window.pageYOffset,new he(this)}init(t){return t="string"==typeof t?t.split(Zt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x+t.width)-e,r=Math.max(this.y+this.height,t.y+t.height)-n;return new he(e,n,i,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof se||(t=new se(t));let e=1/0,n=-1/0,i=1/0,r=-1/0;return[new ie(this.x,this.y),new ie(this.x2,this.y),new ie(this.x,this.y2),new ie(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),r=Math.max(r,s.y)})),new he(e,i,n-e,r-i)}}function le(t,e,n){let i;try{if(i=e(t.node),ae(i)&&(r=t.node)!==Tt.document&&!(Tt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Tt.document}).call(Tt.document.documentElement,r))throw new Error("Element not in the dom")}catch(e){i=n(t)}var r;return i}ct({viewbox:{viewbox(t,e,n,i){return null==t?new he(this.attr("viewBox")):this.attr("viewBox",new he(t,e,n,i))},zoom(t,e){let{width:n,height:i}=this.attr(["width","height"]);if((n||i)&&"string"!=typeof n&&"string"!=typeof i||(n=this.node.clientWidth,i=this.node.clientHeight),!n||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),s=n/r.width,o=i/r.height,a=Math.min(s,o);if(null==t)return a;let h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new ie(n/2/s+r.x,i/2/o+r.y);const l=new he(r).transform(new se({scale:h,origin:e}));return this.viewbox(l)}}}),Dt(he,"Box");class ue extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=ue;qt([ue],{each(t,...e){return"function"==typeof t?this.map(((e,n,i)=>t.call(e,e,n,i))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const de=["toArray","constructor","each"];function fe(t,e){return new ce(pt((e||Tt.document).querySelectorAll(t),(function(t){return Ot(t)})))}ue.extend=function(t){t=t.reduce(((t,e)=>(de.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),qt([ue],t)};let pe=0;const me={};function ge(t){let e=t.getEventHolder();return e===Tt.window&&(e=me),e.events||(e.events={}),e.events}function ye(t){return t.getEventTarget()}function ve(t,e,n,i,r){const s=n.bind(i||t),o=At(t),a=ge(o),h=ye(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),e.forEach((function(t){const e=t.split(".")[0],i=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][i]=a[e][i]||{},a[e][i][n._svgjsListenerId]=s,h.addEventListener(e,s,r||!1)}))}function we(t,e,n,i){const r=At(t),s=ge(r),o=ye(r);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,l;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],i||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(l in s[e][a])we(o,[e,a].join("."),l);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&we(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])we(o,[e,h].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===Tt.window&&(e=me),e.events&&(e.events={})}(r)}}))}class be extends Ct{addEventListener(){}dispatch(t,e,n){return function(t,e,n,i){const r=ye(t);return e instanceof Tt.window.Event||(e=new Tt.window.CustomEvent(e,{detail:n,cancelable:!0,...i})),r.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const i in n[e])n[e][i](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return we(this,t,e,n),this}on(t,e,n,i){return ve(this,t,e,n,i),this}removeEventListener(){}}function xe(){}Dt(be,"EventTarget");const Ne={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ke extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Zt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Se{constructor(...t){this.init(...t)}convert(t){return new Se(this.value,t)}divide(t){return t=new Se(t),new Se(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Ft))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Se&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Se(t),new Se(this-t,this.unit||t.unit)}plus(t){return t=new Se(t),new Se(this+t,this.unit||t.unit)}times(t){return t=new Se(t),new Se(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Te=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ce=[];class _e extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=At(t)).removeNamespace&&this.node instanceof Tt.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return At(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Ot(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let i,r;for(i=0,r=n.length;i<r;i++)t.apply(n[i],[i,n]),e&&n[i].each(t,e);return this}element(t,e){return this.put(new _e(Et(t),e))}first(){return Ot(this.node.firstChild)}get(t){return Ot(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=Pt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Ot(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Ot(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Ot(e.node.parentNode));return e}put(t,e){return t=At(t),this.add(t,e),t}putIn(t,e){return At(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=At(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,i=this.attr(e);for(const t in i)"number"==typeof i[t]&&(i[t]=Math.round(i[t]*n)/n);return this.attr(i),this}svg(t,e){return this.xml(t,e,Nt)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=Ot(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const i=Et("wrapper",n),r=Tt.document.createDocumentFragment();i.innerHTML=t;for(let t=i.children.length;t--;)r.appendChild(i.firstElementChild);const s=this.parent();return e?this.replace(r)&&s:this.add(r)}}qt(_e,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Qt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Ne[t]:Qt.test(e)?parseFloat(e):e;"number"==typeof(e=Ce.reduce(((e,n)=>n(t,e,this)),e))?e=new Se(e):Te.has(t)&&ne.isColor(e)?e=new ne(e):e.constructor===Array&&(e=new ke(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return fe(t,this.node)},findOne:function(t){return Ot(this.node.querySelector(t))}}),Dt(_e,"Dom");class Me extends _e{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Se(t).plus(this.x()))}dy(t=0){return this.y(new Se(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=At(t));const n=new ce;let i=this;for(;(i=i.parent())&&i.node!==Tt.document&&"#document-fragment"!==i.nodeName&&(n.push(i),e||i.node!==t.node)&&(!e||!i.matches(t));)if(i.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Ht);return e?At(e[1]):null}root(){const t=this.parent(_t[Mt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=yt(this,t,e);return this.width(new Se(n.width)).height(new Se(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}qt(Me,{bbox:function(){const t=le(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new he(t)},rbox:function(t){const e=le(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new he(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new ie(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),Dt(Me,"Element");const Ee={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof ne||ne.isRgb(e)||e instanceof Me)this.attr(t,e);else for(n=Ee[t].length-1;n>=0;n--)null!=e[Ee[t][n]]&&this.attr(Ee.prefix(t,Ee[t][n]),e[Ee[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,i,r,s){return null==t?new se(this):this.attr("transform",new se(t,e,n,i,r,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:i},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:i},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Se(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ie(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Vt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(this.node))return this.addTo(t,e);const n=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(i.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:vt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ae extends Me{flatten(){return this.each((function(){if(this instanceof Ae)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(n,i){return i[i.length-n-1].toParent(t,e)})),this.remove()}}Dt(Ae,"Container");class Le extends Ae{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Dt(Le,"Defs");class Oe extends Me{}function je(t){return this.attr("rx",t)}function De(t){return this.attr("ry",t)}function We(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pe(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function qe(t){return this.attr("cy",t)}function Re(t){return null==t?2*this.rx():this.rx(new Se(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Dt(Oe,"Shape");class Be extends Oe{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=yt(this,t,e);return this.rx(new Se(n.width).divide(2)).ry(new Se(n.height).divide(2))}}qt(Be,t),ct("Container",{ellipse:Rt((function(t=0,e=t){return this.put(new Be).size(t,e).move(0,0)}))}),Dt(Be,"Ellipse");class ze extends _e{constructor(t=Tt.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new _e(Et("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Dt(ze,"Fragment");const He=ze;function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function Xe(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Se(t),cy:new Se(e)}):this.attr({x2:new Se(t),y2:new Se(e)})}class Ue extends Ae{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return fe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}qt(Ue,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Rt((function(t,e){return this.put(new Ue(t)).update(e)}))}}),Dt(Ue,"Gradient");class Ge extends Ae{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return fe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Rt((function(t,e,n){return this.put(new Ge).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Dt(Ge,"Pattern");class Ye extends Oe{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new Tt.window.Image;return ve(n,"load",(function(t){const i=this.parent(Ge);0===this.width()&&0===this.height()&&this.size(n.width,n.height),i instanceof Ge&&0===i.width()&&0===i.height()&&i.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ve(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,St)}}var Qe;Qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||$t.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ce.push(Qe),ct({Container:{image:Rt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),Dt(Ye,"Image");class $e extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,i=1/0;return this.forEach((function(r){t=Math.max(r[0],t),e=Math.max(r[1],e),n=Math.min(r[0],n),i=Math.min(r[1],i)})),new he(n,i,t-n,e-i)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Zt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,i=t.length;n<i;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const i=this.bbox();for(n=this.length-1;n>=0;n--)i.width&&(this[n][0]=(this[n][0]-i.x)*t/i.width+i.x),i.height&&(this[n][1]=(this[n][1]-i.y)*e/i.height+i.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));for(let e=this.length;e--;){const[n,i]=this[e];this[e][0]=t.a*n+t.c*i+t.e,this[e][1]=t.b*n+t.d*i+t.f}return this}}const Ze=$e;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends Oe{constructor(t,e=t){super(Lt("line",t),e)}array(){return new $e([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,i){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:i}:new $e(t).toLine(),this.attr(t))}size(t,e){const n=yt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}qt(nn,r),ct({Container:{line:Rt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),Dt(nn,"Line");class rn extends Ae{constructor(t,e=t){super(Lt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function sn(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Rt((function(t,e,n){return this.put(new rn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,i){let r=["marker"];return"all"!==t&&r.push(t),r=r.join("-"),t=arguments[1]instanceof rn?arguments[1]:this.defs().marker(e,n,i),this.attr(r,t)}}}),Dt(rn,"Marker");const on={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,i){return function(r){return r<0?t>0?e/t*r:n>0?i/n*r:0:r>1?n<1?(1-i)/(1-n)*r+(i-n)/(1-n):t<1?(1-e)/(1-t)*r+(e-t)/(1-t):1:3*r*(1-r)**2*e+3*r**2*(1-r)*i+r**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(i,r=!1)=>{let s=Math.floor(i*t);const o=i*s%1==0;return"start"!==e&&"both"!==e||++s,r&&o&&--s,i>=0&&s<0&&(s=0),i<=1&&s>n&&(s=n),s/n}}};class an{done(){return!1}}class hn extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ln extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,i){return this.stepper(t,e,n,i)}}function un(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,i=Math.log(e/100+1e-10),r=-i/Math.sqrt(n*n+i*i),s=3.9/(r*t);this.d=2*r*s,this.k=s*s}qt(class extends ln{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const r=i.velocity||0,s=-this.d*r-this.k*(t-e),o=t+r*n+s*n*n/2;return i.velocity=r+s*n,i.done=Math.abs(e-o)+Math.abs(r)<.002,i.done?e:o}},{duration:sn("_duration",un),overshoot:sn("_overshoot",un)}),qt(class extends ln{constructor(t=.1,e=.01,n=0,i=1e3){super(),this.p(t).i(e).d(n).windup(i)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;const r=e-t;let s=(i.integral||0)+r*n;const o=(r-(i.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),i.error=r,i.integral=s,i.done=Math.abs(r)<.001,i.done?e:t+(this.P*r+this.I*s+this.D*o)}},{windup:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},dn={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},fn="mlhvqtcsaz".split("");for(let t=0,e=fn.length;t<e;++t)dn[fn[t]]=function(t){return function(e,n,i){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,i=e.length;t<i;++t)e[t]=e[t]+(t%2?n.y:n.x);return dn[t](e,n,i)}}(fn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&gn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),i=e===n;t.segment=["m"===n?i?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function gn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&yn(t)}function yn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return dn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function vn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends ke{bbox(){return oe().path.setAttribute("d",this.toString()),new he(oe.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,i=this.length-1;i>=0;i--)n=this[i][0],"M"===n||"L"===n||"T"===n?(this[i][1]+=t,this[i][2]+=e):"H"===n?this[i][1]+=t:"V"===n?this[i][1]+=e:"C"===n||"S"===n||"Q"===n?(this[i][1]+=t,this[i][2]+=e,this[i][3]+=t,this[i][4]+=e,"C"===n&&(this[i][5]+=t,this[i][6]+=e)):"A"===n&&(this[i][6]+=t,this[i][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,i="";const r={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new ie,p:new ie};for(;r.lastToken=i,i=t.charAt(n++);)if(r.inSegment||!mn(r,i))if("."!==i)if(isNaN(parseInt(i)))if(bn.has(i))r.inNumber&&gn(r,!1);else if("-"!==i&&"+"!==i)if("E"!==i.toUpperCase()){if(Jt.test(i)){if(r.inNumber)gn(r,!1);else{if(!pn(r))throw new Error("parser Error");yn(r)}--n}}else r.number+=i,r.hasExponent=!0;else{if(r.inNumber&&!wn(r)){gn(r,!1),--n;continue}r.number+=i,r.inNumber=!0}else{if("0"===r.number||vn(r)){r.inNumber=!0,r.number=i,gn(r,!0);continue}r.inNumber=!0,r.number+=i}else{if(r.pointSeen||r.hasExponent){gn(r,!1),--n;continue}r.inNumber=!0,r.pointSeen=!0,r.number+=i}return r.inNumber&&gn(r,!1),r.inSegment&&pn(r)&&yn(r),r.segments}(t)}size(t,e){const n=this.bbox();let i,r;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y):"H"===r?this[i][1]=(this[i][1]-n.x)*t/n.width+n.x:"V"===r?this[i][1]=(this[i][1]-n.y)*e/n.height+n.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y,this[i][3]=(this[i][3]-n.x)*t/n.width+n.x,this[i][4]=(this[i][4]-n.y)*e/n.height+n.y,"C"===r&&(this[i][5]=(this[i][5]-n.x)*t/n.width+n.x,this[i][6]=(this[i][6]-n.y)*e/n.height+n.y)):"A"===r&&(this[i][1]=this[i][1]*t/n.width,this[i][2]=this[i][2]*e/n.height,this[i][6]=(this[i][6]-n.x)*t/n.width+n.x,this[i][7]=(this[i][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,i=t.length;n<i;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const Nn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:ke:Ft.test(t)?Se:Sn:Mn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?_n:Sn};class kn{constructor(t){this._stepper=t||new hn("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(Nn(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===_n&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Sn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Tn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Tn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Tn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Cn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class _n{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,i=e.length;n<i;++n){if(e[n+1]===t[n+1]){if(e[n+1]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],i=new ne(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...i)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const i=(new t[n+1]).toArray(),r=e[n+2]+3;e.splice(n,r,t[n],t[n+1],t[n+2],...i),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const i=Nn(t[n]),r=new i(t[n]).toArray();e.push([n,i,r.length,...r])}return e.sort(Cn),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),i=e.shift(),r=e.shift(),s=e.splice(0,r);t[n]=new i(s)}return t}}const Mn=[Sn,Tn,_n];class En extends Oe{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new xn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new xn(t))}size(t,e){const n=yt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function An(){return this._array||(this._array=new $e(this.attr("points")))}function Ln(){return delete this._array,this}function On(t,e){return this.attr("points",this.array().move(t,e))}function jn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $e(t))}function Dn(t,e){const n=yt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}En.prototype.MorphArray=xn,ct({Container:{path:Rt((function(t){return this.put(new En).plot(t||new xn)}))}}),Dt(En,"Path");class Wn extends Oe{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:Rt((function(t){return this.put(new Wn).plot(t||new $e)}))}}),qt(Wn,r),qt(Wn,s),Dt(Wn,"Polygon");class Pn extends Oe{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:Rt((function(t){return this.put(new Pn).plot(t||new $e)}))}}),qt(Pn,r),qt(Pn,s),Dt(Pn,"Polyline");class In extends Oe{constructor(t,e=t){super(Lt("rect",t),e)}}qt(In,{rx:je,ry:De}),ct({Container:{rect:Rt((function(t,e){return this.put(new In).size(t,e)}))}}),Dt(In,"Rect");class qn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Rn={nextDraw:null,frames:new qn,timeouts:new qn,immediates:new qn,timer:()=>Tt.window.performance||Tt.window.Date,transforms:[],frame(t){const e=Rn.frames.push({run:t});return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),e},timeout(t,e){e=e||0;const n=Rn.timer().now()+e,i=Rn.timeouts.push({run:t,time:n});return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),i},immediate(t){const e=Rn.immediates.push(t);return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),e},cancelFrame(t){null!=t&&Rn.frames.remove(t)},clearTimeout(t){null!=t&&Rn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Rn.immediates.remove(t)},_draw(t){let e=null;const n=Rn.timeouts.last();for(;(e=Rn.timeouts.shift())&&(t>=e.time?e.run():Rn.timeouts.push(e),e!==n););let i=null;const r=Rn.frames.last();for(;i!==r&&(i=Rn.frames.shift());)i.run(t);let s=null;for(;s=Rn.immediates.shift();)s();Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?Tt.window.requestAnimationFrame(Rn._draw):null}},Fn=Rn,Bn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},zn=function(){const t=Tt.window;return(t.performance||t.Date).now()};class Hn extends be{constructor(t=zn){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Bn);let i=0;const r=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)i=r;else if("absolute"===n||"start"===n)i=e,e=0;else if("now"===n)i=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(i=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();i=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:i+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Fn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Fn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const i=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=i,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let r=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=i;const a=this._time-n.start;a<=0?r=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):r=!0))}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Hn,this._timeline):(this._timeline=t,this)}}});class Vn extends be{constructor(t){super(),this.id=Vn.id++,t="function"==typeof(t=null==t?400:t)?new ln(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ln,this._stepper=this._isDeclarative?t:new hn,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let i=1,r=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof an||(e=t.delay??e,n=t.when??n,r=t.swing||r,i=t.times??i,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:r,times:i,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const i=Vn.sanitise(t,e,n),r=new Vn(i.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(i).schedule(i.delay,i.when)}clearTransform(){return this.transforms=new se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new hn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,i=e*Math.floor(t)+this._duration*n;return this.time(i)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,i=this._wait,r=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(i+n))/(i+n)),r=e&&!o||!e&&o,a=Math.pow(-1,r)*(t%(i+n))/n+r;return Math.max(Math.min(a,1),0)},h=r*(i+n)-i;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),l=s&&h%2==0;return a=h+(l&&!o||o&&l?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,i){return this._queue.push({initialiser:t||xe,runner:e||xe,retarget:n,isTransform:i,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Hn||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const i=this.duration(),r=this._lastTime<=0&&this._time>0,s=this._lastTime<i&&this._time>=i;this._lastTime=this._time,r&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=i,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],i=this._isDeclarative||!n.initialised&&t;t=!n.finished,i&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,i=this._queue.length;n<i;++n){const i=this._queue[n],r=i.runner.call(this,t);i.finished=i.finished||!0===r,e=e&&i.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const i=this.timeline();return i&&i.play(),!0}return!1}}Vn.id=0;class Xn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}qt([Vn,Xn],{mergeWith(t){return new Xn(t.transforms.lmultiply(this.transforms),t.id)}});const Un=(t,e)=>t.lmultiplyO(e),Gn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Gn).reduce(Un,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Qn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Xn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const i=n.mergeWith(t);this.edit(t.id,i),t=i,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}ct({Element:{animate(t,e,n){const i=Vn.sanitise(t,e,n),r=this.timeline();return new Vn(i.duration).loop(i).element(this).timeline(r.play()).schedule(i.delay,i.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Gn).reduce(Un,new se)},_addRunner(t){this._transformationRunners.add(t),Fn.cancelImmediate(this._frameId),this._frameId=Fn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Qn).add(new Xn(new se(this))))}}}),qt(Vn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let i=e;if(this._tryRetarget(t,i))return this;let r=new kn(this._stepper).to(i),s=Object.keys(i);return this.queue((function(){r=r.from(this.element()[t](s))}),(function(e){return this.element()[t](r.at(e).valueOf()),r.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new _n(r.from()).valueOf();Object.assign(n,e),r.from(n)}const h=new _n(r.to()).valueOf();Object.assign(h,e),r.to(h),s=n,i=e})),this._rememberMorpher(t,r),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Se(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,i){e=i,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const i=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!i;const r=new kn(this._stepper).type(n?Tn:se);let s,o,a,h,l;return this.queue((function(){o=o||this.element(),s=s||vt(t,o),l=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(u){e||this.clearTransform();const{x:c,y:d}=new ie(s).transform(o._currentTransform(this));let f=new se({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:l;if(n){f=f.decompose(c,d),p=p.decompose(c,d);const t=f.rotate,e=p.rotate,n=[t-360,t,t+360],i=n.map((t=>Math.abs(t-e))),r=Math.min(...i),s=i.indexOf(r);f.rotate=n[s]}e&&(i||(f.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),r.from(p),r.to(f);const m=r.at(u);return h=m.rotate,a=new se(m),this.addTransform(a),o._addRunner(this),r.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=vt(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Se(e),this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);let i=null;return this.queue((function(){i=this.element()[t](),n.from(i),n.to(i+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(i+new Se(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Se(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,i){if(4===arguments.length)return this.plot([t,e,n,i]);if(this._tryRetarget("plot",t))return this;const r=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){r.from(this._element.array())}),(function(t){return this._element.plot(r.at(t)),r.done()})),this._rememberMorpher("plot",r),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,i){return this._queueObject("viewbox",new he(t,e,n,i))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),qt(Vn,{rx:je,ry:De,from:Ve,to:Xe}),Dt(Vn,"Runner");class $n extends Ae{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Ot(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Tt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",St,kt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,kt).attr("xmlns:svgjs",null,kt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:Rt((function(){return this.put(new $n)}))}}),Dt($n,"Svg",!0);class Zn extends Ae{constructor(t,e=t){super(Lt("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(Tt.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function ti(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function ei(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function ni(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function ii(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ri(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function si(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function oi(t){return this.attr("x",t)}function ai(t){return this.attr("y",t)}function hi(t,e){return this.ax(t).ay(e)}function li(t){return this._build=!!t,this}ct({Container:{symbol:Rt((function(){return this.put(new Zn)}))}}),Dt(Zn,"Symbol");class ui extends Oe{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Se(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Se(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(i){if(bt(this.node))return;const r=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Se(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",i?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Se(t.leading||1.3),this}writeDataToDom(){return xt(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let i=0,r=e.length;i<r;++i)"textPath"===e[i].nodeName||bt(e[i])?0===i&&(n=i+1):(i!==n&&3!==e[i].nodeType&&!0===Ot(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}qt(ui,o),ct({Container:{text:Rt((function(t=""){return this.put(new ui).text(t)})),plain:Rt((function(t=""){return this.put(new ui).plain(t)}))}}),Dt(ui,"Text");class ci extends Oe{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof ui))return this;const e=t.index(this),n=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),i=t.dom.leading*new Se(n);return this.dy(e?i:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}qt(ci,o),ct({Tspan:{tspan:Rt((function(t=""){const e=new ci;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Dt(ci,"Tspan");class di extends Oe{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Se(t).divide(2))}}qt(di,{x:We,y:Pe,cx:Ie,cy:qe,width:Re,height:Fe}),ct({Container:{circle:Rt((function(t=0){return this.put(new di).size(t).move(0,0)}))}}),Dt(di,"Circle");class fi extends Ae{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return fe("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Rt((function(){return this.defs().put(new fi)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fi?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Dt(fi,"ClipPath");class pi extends Me{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function mi(t,e){return this.children().forEach((n=>{let i;try{i=n.node instanceof Tt.window.SVGSVGElement?new he(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const r=new se(n),s=r.translate(t,e).transform(r.inverse()),o=new ie(i.x,i.y).transform(s);n.move(o.x,o.y)})),this}function gi(t){return this.dmove(t,0)}function yi(t){return this.dmove(0,t)}function vi(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wi(t=0,e=0,n=this.bbox()){const i=t-n.x,r=e-n.y;return this.dmove(i,r)}function bi(t,e,n=this.bbox()){const i=yt(this,t,e,n),r=i.width/n.width,s=i.height/n.height;return this.children().forEach((t=>{const e=new ie(n).transform(new se(t).inverse());t.scale(r,s,e.x,e.y)})),this}function xi(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Ni(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function ki(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:Rt((function(t,e){return this.put(new pi).size(t,e)}))}}),Dt(pi,"ForeignObject");class Si extends Ae{constructor(t,e=t){super(Lt("g",t),e)}}qt(Si,a),ct({Container:{group:Rt((function(){return this.put(new Si)}))}}),Dt(Si,"G");class Ti extends Ae{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}qt(Ti,a),ct({Container:{link:Rt((function(t){return this.put(new Ti).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Ti,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),Dt(Ti,"A");class Ci extends Ae{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return fe("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Rt((function(){return this.defs().put(new Ci)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Ci?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Dt(Ci,"Mask");class _i extends Me{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Se)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Se(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new _i).update(t,e,n)}}}),Dt(_i,"Stop");class Mi extends Me{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Mi).rule(t,e)},fontface(t,e,n){return this.put(new Mi).font(t,e,n)}}),Dt(Mi,"Style");class Ei extends ui{constructor(t,e=t){super(Lt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:Rt((function(t,e){return t instanceof ui||(t=this.text(t)),t.path(e)}))},Text:{path:Rt((function(t,e=!0){const n=new Ei;let i;if(t instanceof En||(t=this.defs().path(t)),n.attr("href","#"+t,St),e)for(;i=this.node.firstChild;)n.node.appendChild(i);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Rt((function(t){return t instanceof ui||(t=(new ui).addTo(this.parent()).text(t)),t.path(this)})),targets(){return fe("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Ei.prototype.MorphArray=xn,Dt(Ei,"TextPath");class Ai extends Oe{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}ct({Container:{use:Rt((function(t,e){return this.put(new Ai).use(t,e)}))}}),Dt(Ai,"Use"),qt([$n,Zn,Ye,Ge,rn],dt("viewbox")),qt([nn,Pn,Wn,En],dt("marker")),qt(ui,dt("Text")),qt(En,dt("Path")),qt(Le,dt("Defs")),qt([ui,ci],dt("Tspan")),qt([In,Be,Ue,Vn],dt("radius")),qt(be,dt("EventTarget")),qt(_e,dt("Dom")),qt(Me,dt("Element")),qt(Oe,dt("Shape")),qt([Ae,He],dt("Container")),qt(Ue,dt("Gradient")),qt(Vn,dt("Runner")),ce.extend([...new Set(ut)]),function(t=[]){Mn.push(...[].concat(t))}([Se,ne,he,se,ke,$e,xn,ie]),qt(Mn,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,i,r){return this.fromArray(t.map((function(t,s){return i.step(t,e[s],n,r[s],r)})))}});var Li,Oi,ji,Di,Wi,Pi,Ii,qi,Ri,Fi,Bi,zi,Hi,Vi,Xi,Ui,Gi,Yi,Qi,$i,Zi,Ji,Ki,tr,er,nr,ir,rr,sr,or,ar,hr,lr,ur,cr,dr,fr,pr,mr,gr,yr,vr,wr,br,xr,Nr,kr,Sr,Tr,Cr,_r,Mr,Er,Ar,Lr,Or,jr,Dr,Wr,Pr,Ir,qr,Rr,Fr,Br,zr,Hr,Vr,Xr,Ur,Gr,Yr,Qr,$r,Zr,Jr,Kr,ts,es,ns,is,rs,ss,os,as,hs,ls,us,cs,ds,fs,ps,ms,gs,ys,vs,ws,bs=n(169),xs=n(726),Ns=n(692),ks=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},Ss=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Ts{constructor(t){Li.add(this),Oi.set(this,void 0),this.domNode=document.createElement("div"),ji.set(this,new Cs),Di.set(this,document.createElement("div")),Wi.set(this,void 0),Pi.set(this,void 0),Ii.set(this,document.createElement("div")),qi.set(this,void 0),Ri.set(this,void 0),Fi.set(this,void 0),Bi.set(this,void 0),zi.set(this,void 0),Hi.set(this,void 0),Vi.set(this,void 0),Xi.set(this,void 0),Ui.set(this,void 0),Gi.set(this,void 0),Yi.set(this,void 0),Qi.set(this,void 0),ks(this,Oi,t,"f"),this.domNode.classList.add(N.lf),Ss(this,ji,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(N.ho))),this.domNode.append(Ss(this,ji,"f").domNode),Ss(this,Di,"f").classList.add(N.Qs),this.domNode.append(Ss(this,Di,"f")),ks(this,Wi,new _s(t),"f"),Ss(this,Di,"f").append(Ss(this,Wi,"f").domNode),ks(this,Pi,new Ms(t),"f"),Ss(this,Di,"f").append(Ss(this,Pi,"f").domNode),Ss(this,Ii,"f").classList.add(N.eB),Ss(this,Di,"f").append(Ss(this,Ii,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ss(this,Li,"m",Zi).call(this):Ss(this,Li,"m",Ji).call(this))})),ks(this,qi,new Es(t),"f"),Ss(this,Ii,"f").append(Ss(this,qi,"f").domNode),ks(this,Ri,new As(t),"f"),Ss(this,Ii,"f").append(Ss(this,Ri,"f").domNode),ks(this,Fi,new Ls(t),"f"),Ss(this,Ii,"f").append(Ss(this,Fi,"f").domNode),ks(this,Bi,new Os(t),"f"),Ss(this,Ii,"f").append(Ss(this,Bi,"f").domNode),ks(this,zi,new js(t),"f"),Ss(this,Ii,"f").append(Ss(this,zi,"f").domNode),ks(this,Hi,new Ds(t),"f"),Ss(this,Ii,"f").append(Ss(this,Hi,"f").domNode),ks(this,Vi,new Ws(t),"f"),Ss(this,Ii,"f").append(Ss(this,Vi,"f").domNode),ks(this,Xi,new Ps(t),"f"),Ss(this,Ii,"f").append(Ss(this,Xi,"f").domNode),ks(this,Ui,new Is(t),"f"),Ss(this,Ii,"f").append(Ss(this,Ui,"f").domNode),ks(this,Gi,new Fs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Gi,"f").domNode),ks(this,Yi,new Bs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Yi,"f").domNode),ks(this,Qi,new zs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Qi,"f").domNode)}refresh(){Ss(this,Li,"a",$i).forEach((t=>t.refresh())),[...Ss(this,Oi,"f").selectedBases].length>0?Ss(this,Li,"m",Zi).call(this):Ss(this,Li,"m",Ji).call(this)}}Oi=new WeakMap,ji=new WeakMap,Di=new WeakMap,Wi=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,qi=new WeakMap,Ri=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,zi=new WeakMap,Hi=new WeakMap,Vi=new WeakMap,Xi=new WeakMap,Ui=new WeakMap,Gi=new WeakMap,Yi=new WeakMap,Qi=new WeakMap,Li=new WeakSet,$i=function(){return[Ss(this,Wi,"f"),Ss(this,Pi,"f"),Ss(this,qi,"f"),Ss(this,Ri,"f"),Ss(this,Fi,"f"),Ss(this,Bi,"f"),Ss(this,zi,"f"),Ss(this,Hi,"f"),Ss(this,Vi,"f"),Ss(this,Xi,"f"),Ss(this,Ui,"f"),Ss(this,Gi,"f"),Ss(this,Yi,"f"),Ss(this,Qi,"f")]},Zi=function(){Ss(this,Ii,"f").style.display="block"},Ji=function(){Ss(this,Ii,"f").style.display="none"};class Cs{constructor(){this.domNode=document.createElement("div"),Ki.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),tr.set(this,document.createElement("p")),this.domNode.classList.add(N.wx),Ss(this,Ki,"f").classList.add(N.m9),Ss(this,Ki,"f").setAttribute("viewBox","0 0 6 10"),Ss(this,Ki,"f").setAttribute("width","6"),Ss(this,Ki,"f").setAttribute("height","10"),Ss(this,Ki,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ss(this,Ki,"f")),Ss(this,tr,"f").classList.add(N.aW),Ss(this,tr,"f").textContent="Bases",this.domNode.append(Ss(this,tr,"f"))}}Ki=new WeakMap,tr=new WeakMap;class _s{constructor(t){er.set(this,void 0),this.domNode=document.createElement("p"),nr.set(this,document.createElement("span")),ir.set(this,document.createElement("span")),ks(this,er,t,"f"),this.domNode.classList.add(N.IU),Ss(this,nr,"f").style.fontWeight="700",this.domNode.append(Ss(this,nr,"f"),Ss(this,ir,"f")),Ss(this,er,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ss(this,er,"f").selectedBases].length;Ss(this,nr,"f").textContent=`${t}`,Ss(this,ir,"f").textContent=1==t?" base is selected.":" bases are selected."}}er=new WeakMap,nr=new WeakMap,ir=new WeakMap;class Ms{constructor(t){rr.add(this),sr.set(this,void 0),this.domNode=document.createElement("div"),or.set(this,new M),ar.set(this,document.createElement("div")),hr.set(this,{All:new W("All",(()=>Ss(this,rr,"m",cr).call(this))),None:new W("None",(()=>Ss(this,rr,"m",dr).call(this))),A:new W("A",(()=>Ss(this,rr,"m",fr).call(this,"A"))),U:new W("U",(()=>Ss(this,rr,"m",fr).call(this,"U"))),G:new W("G",(()=>Ss(this,rr,"m",fr).call(this,"G"))),C:new W("C",(()=>Ss(this,rr,"m",fr).call(this,"C"))),T:new W("T",(()=>Ss(this,rr,"m",fr).call(this,"T"))),a:new W("a",(()=>Ss(this,rr,"m",fr).call(this,"a"))),u:new W("u",(()=>Ss(this,rr,"m",fr).call(this,"u"))),g:new W("g",(()=>Ss(this,rr,"m",fr).call(this,"g"))),c:new W("c",(()=>Ss(this,rr,"m",fr).call(this,"c"))),t:new W("t",(()=>Ss(this,rr,"m",fr).call(this,"t"))),Outlined:new W("Outlined",(()=>Ss(this,rr,"m",pr).call(this))),Paired:new W("Paired",(()=>Ss(this,rr,"m",mr).call(this))),Unpaired:new W("Unpaired",(()=>Ss(this,rr,"m",gr).call(this)))}),lr.set(this,void 0),ks(this,sr,t,"f"),this.domNode.classList.add(N.vw),Ss(this,or,"f").textContent="Select:",Ss(this,or,"f").domNode.addEventListener("click",(()=>Ss(this,rr,"m",ur).call(this))),this.domNode.append(Ss(this,or,"f").domNode);let e=document.createElement("div");Ns(e).css({display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"15px"}),n.append(...["All","None"].map((t=>Ss(this,hr,"f")[t].domNode))),e.append(n);let i=document.createElement("div");Ns(i).css({display:"flex",flexDirection:"row",gap:"12px"}),i.append(...["A","U","G","C","T"].map((t=>Ss(this,hr,"f")[t].domNode))),e.append(i);let r=document.createElement("div");Ns(r).css({display:"flex",flexDirection:"row",gap:"12px"}),r.append(...["a","u","g","c","t"].map((t=>Ss(this,hr,"f")[t].domNode))),e.append(r),e.append(Ss(this,hr,"f").Outlined.domNode);let s=document.createElement("div");Ns(s).css({display:"flex",flexDirection:"row",gap:"12px"}),s.append(...["Paired","Unpaired"].map((t=>Ss(this,hr,"f")[t].domNode))),e.append(s),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),ks(this,lr,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ss(this,lr,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ss(this,sr,"f").drawing.bases],e=new Set([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),i=new Set(Ss(this,sr,"f").selectedBases),r=[...Ss(this,sr,"f").selectedOutlines];0==t.length?(Ss(this,hr,"f").All.disable(),Ss(this,hr,"f").All.tooltip.textContent="There are no bases in the drawing."):i.size==t.length?(Ss(this,hr,"f").All.disable(),Ss(this,hr,"f").All.tooltip.textContent="All bases are already selected."):(Ss(this,hr,"f").All.enable(),Ss(this,hr,"f").All.tooltip.textContent="Select all bases."),0==i.size?(Ss(this,hr,"f").None.disable(),Ss(this,hr,"f").None.tooltip.textContent="No bases are selected."):(Ss(this,hr,"f").None.enable(),Ss(this,hr,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),r=Ss(this,hr,"f")[e];0==n.length?(r.disable(),r.tooltip.textContent=`No bases have letter "${e}".`):n.every((t=>i.has(t)))?(r.disable(),r.tooltip.textContent=`All bases with letter "${e}" are already selected.`):(r.enable(),r.tooltip.textContent=`Select all bases with letter "${e}".`)})),0==r.length?(Ss(this,hr,"f").Outlined.disable(),Ss(this,hr,"f").Outlined.tooltip.textContent="No outlines are selected."):r.map((t=>t.owner)).every((t=>i.has(t)))?(Ss(this,hr,"f").Outlined.disable(),Ss(this,hr,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ss(this,hr,"f").Outlined.enable(),Ss(this,hr,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ss(this,hr,"f").Paired.disable(),Ss(this,hr,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>i.has(t)))?(Ss(this,hr,"f").Paired.disable(),Ss(this,hr,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ss(this,hr,"f").Paired.enable(),Ss(this,hr,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ss(this,hr,"f").Unpaired.disable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>i.has(t)))?(Ss(this,hr,"f").Unpaired.disable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ss(this,hr,"f").Unpaired.enable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}sr=new WeakMap,or=new WeakMap,ar=new WeakMap,hr=new WeakMap,lr=new WeakMap,rr=new WeakSet,ur=function(){let t="none"!=Ss(this,ar,"f").style.display;Ss(this,ar,"f").style.display=t?"none":"block"},cr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases])},dr=function(){Ss(this,sr,"f").removeFromSelected([...Ss(this,sr,"f").drawing.bases])},fr=function(t){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").selectedOutlines].map((t=>t.owner)))},mr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},gr=function(){let t=new Set([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases].filter((e=>!t.has(e))))};class Es{constructor(t){yr.add(this),vr.set(this,void 0),this.domNode=document.createElement("div"),wr.set(this,document.createElement("p")),br.set(this,new W),xr.set(this,new W),ks(this,vr,t,"f"),this.domNode.classList.add(N.Te),Ss(this,wr,"f").classList.add(N.QB),Ss(this,wr,"f").textContent="Send to:",this.domNode.append(Ss(this,wr,"f")),Ss(this,br,"f").domNode.addEventListener("click",(()=>Ss(this,yr,"m",Nr).call(this))),Ss(this,br,"f").textContent="Front",Ss(this,br,"f").domNode.style.marginLeft="26px",this.domNode.append(Ss(this,br,"f").domNode),Ss(this,xr,"f").domNode.addEventListener("click",(()=>Ss(this,yr,"m",kr).call(this))),Ss(this,xr,"f").textContent="Back",Ss(this,xr,"f").domNode.style.marginLeft="28px",this.domNode.append(Ss(this,xr,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ss(this,yr,"m",Sr).call(this),Ss(this,yr,"m",Tr).call(this)}}vr=new WeakMap,wr=new WeakMap,br=new WeakMap,xr=new WeakMap,yr=new WeakSet,Nr=function(){let t=[...Ss(this,vr,"f").selectedBases];0!=t.length?(Ss(this,vr,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},kr=function(){let t=[...Ss(this,vr,"f").selectedBases];0!=t.length?(Ss(this,vr,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},Sr=function(){0==[...Ss(this,vr,"f").selectedBases].length?(Ss(this,br,"f").disable(),Ss(this,br,"f").tooltip.textContent="No bases are selected."):(Ss(this,br,"f").enable(),Ss(this,br,"f").tooltip.textContent="Bring the selected bases to the front.")},Tr=function(){0==[...Ss(this,vr,"f").selectedBases].length?(Ss(this,xr,"f").disable(),Ss(this,xr,"f").tooltip.textContent="No bases are selected."):(Ss(this,xr,"f").enable(),Ss(this,xr,"f").tooltip.textContent="Send the selected bases to the back.")};class As{constructor(t){Cr.add(this),_r.set(this,void 0),Mr.set(this,new F({onSubmit:()=>Ss(this,Cr,"m",Ar).call(this)})),Er.set(this,void 0),ks(this,_r,t,"f"),ks(this,Er,new $("Text Content",Ss(this,Mr,"f").domNode),"f"),Ss(this,Er,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",Ss(this,_r,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,_r,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,Er,"f").domNode}refresh(){let t=[...Ss(this,_r,"f").selectedBases];try{Ss(this,Mr,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ss(this,Mr,"f").domNode.value=""}}}_r=new WeakMap,Mr=new WeakMap,Er=new WeakMap,Cr=new WeakSet,Ar=function(){var t;let e=null!==(t=Ss(this,Mr,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ss(this,_r,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ss(this,_r,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Ls{constructor(t){Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),ks(this,Lr,t,"f"),ks(this,Or,new Xs(t,"fill"),"f"),ks(this,jr,new $("Fill",Ss(this,Or,"f").domNode),"f"),Ss(this,jr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,jr,"f").domNode}refresh(){Ss(this,Or,"f").refresh()}}Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap;class Os{constructor(t){Dr.add(this),Wr.set(this,void 0),Pr.set(this,new st),Ir.set(this,void 0),qr.set(this,void 0),Rr.set(this,void 0),ks(this,Wr,t,"f"),Ss(this,Pr,"f").domNode.addEventListener("input",(()=>Ss(this,Dr,"m",Fr).call(this))),ks(this,Ir,new ht("Fill Color",Ss(this,Pr,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,Wr,"f").selectedBases.addEventListener("change",(()=>ks(this,qr,void 0,"f"))),Ss(this,Pr,"f").domNode.addEventListener("focus",(()=>ks(this,Rr,Ss(this,Pr,"f").domNode.value,"f"))),Ss(this,Wr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,Wr,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ir,"f").domNode}refresh(){let t=[...Ss(this,Wr,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ss(this,Pr,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ss(this,Pr,"f").domNode.value="#000000"}else Ss(this,Pr,"f").domNode.value="#000000"}}Wr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,qr=new WeakMap,Rr=new WeakMap,Dr=new WeakSet,Fr=function(){if(Ss(this,Pr,"f").domNode.value===Ss(this,Rr,"f"))return;let t=[...Ss(this,Wr,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ss(this,Pr,"f").domNode.value.toLowerCase()}))||((Ss(this,Wr,"f").undoStack.isEmpty()||Ss(this,Wr,"f").undoStack.peek()!==Ss(this,qr,"f"))&&(Ss(this,Wr,"f").pushUndoStack(),ks(this,qr,Ss(this,Wr,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ss(this,Pr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class js{constructor(t){Br.set(this,void 0),zr.set(this,void 0),Hr.set(this,void 0),ks(this,Br,t,"f"),ks(this,zr,new Xs(t,"fill-opacity"),"f"),ks(this,Hr,new $("Fill Opacity",Ss(this,zr,"f").domNode),"f"),Ss(this,Hr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Hr,"f").domNode}refresh(){Ss(this,zr,"f").refresh()}}Br=new WeakMap,zr=new WeakMap,Hr=new WeakMap;class Ds{constructor(t){Vr.set(this,void 0),Xr.set(this,void 0),Ur.set(this,void 0),ks(this,Vr,t,"f"),ks(this,Xr,new Xs(t,"font-family"),"f"),ks(this,Ur,new $("Font Family",Ss(this,Xr,"f").domNode),"f"),Ss(this,Ur,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Ur,"f").domNode}refresh(){Ss(this,Xr,"f").refresh()}}Vr=new WeakMap,Xr=new WeakMap,Ur=new WeakMap;class Ws{constructor(t){Gr.set(this,void 0),Yr.set(this,void 0),Qr.set(this,void 0),ks(this,Gr,t,"f"),ks(this,Yr,new Xs(t,"font-size"),"f"),ks(this,Qr,new $("Font Size",Ss(this,Yr,"f").domNode),"f"),Ss(this,Qr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Qr,"f").domNode}refresh(){Ss(this,Yr,"f").refresh()}}Gr=new WeakMap,Yr=new WeakMap,Qr=new WeakMap;class Ps{constructor(t){$r.set(this,void 0),Zr.set(this,void 0),Jr.set(this,void 0),ks(this,$r,t,"f"),ks(this,Zr,new Xs(t,"font-weight"),"f"),ks(this,Jr,new $("Font Weight",Ss(this,Zr,"f").domNode),"f"),Ss(this,Jr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Jr,"f").domNode}refresh(){Ss(this,Zr,"f").refresh()}}$r=new WeakMap,Zr=new WeakMap,Jr=new WeakMap;class Is{constructor(t){Kr.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),ks(this,ts,t,"f"),Ss(this,es,"f").domNode.addEventListener("change",(()=>Ss(this,Kr,"m",is).call(this))),ks(this,ns,new nt("Bold",Ss(this,es,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,ns,"f").domNode}refresh(){let t=[...Ss(this,ts,"f").selectedBases];0==t.length?Ss(this,es,"f").domNode.checked=!1:Ss(this,es,"f").domNode.checked=t.every(qs)}}function qs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Rs(t){return!qs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Kr=new WeakSet,is=function(){let t=[...Ss(this,ts,"f").selectedBases];0!=t.length?Ss(this,es,"f").domNode.checked&&t.every(qs)?this.refresh():Ss(this,es,"f").domNode.checked||!t.every(Rs)?(Ss(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ss(this,es,"f").domNode.checked&&Rs(t)?t.setAttribute("font-weight","700"):!Ss(this,es,"f").domNode.checked&&qs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ss(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class Fs{constructor(t){rs.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),ks(this,rs,t,"f"),ks(this,ss,new Xs(t,"font-style"),"f"),ks(this,os,new $("Font Style",Ss(this,ss,"f").domNode),"f"),Ss(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,os,"f").domNode}refresh(){Ss(this,ss,"f").refresh()}}rs=new WeakMap,ss=new WeakMap,os=new WeakMap;class Bs{constructor(t){as.set(this,void 0),hs.set(this,void 0),ls.set(this,void 0),ks(this,as,t,"f"),ks(this,hs,new Xs(t,"text-decoration"),"f"),ks(this,ls,new $("Text Decoration",Ss(this,hs,"f").domNode),"f"),Ss(this,ls,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ls,"f").domNode}refresh(){Ss(this,hs,"f").refresh()}}as=new WeakMap,hs=new WeakMap,ls=new WeakMap;class zs{constructor(t){us.add(this),cs.set(this,void 0),ds.set(this,new K),fs.set(this,void 0),ks(this,cs,t,"f"),Ss(this,ds,"f").domNode.addEventListener("change",(()=>Ss(this,us,"m",ps).call(this))),ks(this,fs,new nt("Underlined",Ss(this,ds,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,fs,"f").domNode}refresh(){let t=[...Ss(this,cs,"f").selectedBases];0==t.length?Ss(this,ds,"f").domNode.checked=!1:Ss(this,ds,"f").domNode.checked=t.every(Hs)}}function Hs(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Vs(t){return!Hs(t)}cs=new WeakMap,ds=new WeakMap,fs=new WeakMap,us=new WeakSet,ps=function(){let t=[...Ss(this,cs,"f").selectedBases];0!=t.length?Ss(this,ds,"f").domNode.checked&&t.every(Hs)?this.refresh():Ss(this,ds,"f").domNode.checked||!t.every(Vs)?(Ss(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ss(this,ds,"f").domNode.checked&&Vs(t)?t.setAttribute("text-decoration","underline"):!Ss(this,ds,"f").domNode.checked&&Hs(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ss(this,ds,"f").domNode.blur()):this.refresh():this.refresh()};class Xs{constructor(t,e){ms.add(this),gs.set(this,void 0),ys.set(this,void 0),vs.set(this,new F({onSubmit:()=>Ss(this,ms,"m",ws).call(this)})),ks(this,gs,t,"f"),ks(this,ys,e,"f"),Ss(this,gs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,gs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,vs,"f").domNode}refresh(){let t=[...Ss(this,gs,"f").selectedBases];try{Ss(this,vs,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ss(this,ys,"f")))&&void 0!==e?e:""})))}catch(t){Ss(this,vs,"f").domNode.value=""}}}gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ms=new WeakSet,ws=function(){let t=Ss(this,vs,"f").domNode.value,e=[...Ss(this,gs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ss(this,ys,"f"))===t))||(Ss(this,gs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ss(this,ys,"f"),t)))))),this.refresh()};var Us=n(924),Gs={};Gs.styleTagTransform=w(),Gs.setAttributes=m(),Gs.insert=f().bind(null,"head"),Gs.domAPI=c(),Gs.insertStyleElement=y(),l()(Us.Ay,Gs),Us.Ay&&Us.Ay.locals&&Us.Ay.locals;var Ys=n(723),Qs={};Qs.styleTagTransform=w(),Qs.setAttributes=m(),Qs.insert=f().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=y(),l()(Ys.Ay,Qs),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var $s,Zs=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Js{constructor(t,e){this.domNode=document.createElement("div"),$s.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,$s,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,$s,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,$s,"f").textContent}set textContent(t){Zs(this,$s,"f").textContent=t}get onClick(){return Zs(this,$s,"f").onclick}set onClick(t){Zs(this,$s,"f").onclick=t}click(){Zs(this,$s,"f").click()}disable(){Zs(this,$s,"f").classList.add(Ys.r9)}enable(){Zs(this,$s,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,$s,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}$s=new WeakMap;var Ks,to,eo,no,io,ro,so,oo,ao,ho,lo,uo,co,fo,po,mo,go,yo,vo,wo,bo,xo,No,ko,So,To,Co,_o,Mo,Eo,Ao,Lo,Oo,jo,Do,Wo,Po,Io,qo,Ro,Fo,Bo,zo,Ho,Vo,Xo,Uo,Go,Yo,Qo,$o,Zo,Jo,Ko,ta,ea,na,ia,ra,sa,oa,aa,ha,la,ua,ca,da,fa,pa,ma,ga,ya,va,wa,ba,xa,Na,ka,Sa,Ta,Ca,_a,Ma,Ea,Aa,La,Oa,ja,Da,Wa,Pa,Ia,qa,Ra,Fa,Ba,za,Ha,Va,Xa=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},Ua=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Ga{constructor(t){Ks.add(this),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new M),no.set(this,document.createElement("div")),io.set(this,void 0),ro.set(this,document.createElement("div")),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),uo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),Xa(this,to,t,"f"),this.domNode.classList.add(Us.qM),Ua(this,eo,"f").textContent="Outlines",Ua(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Ua(this,eo,"f").domNode),Ua(this,no,"f").classList.add(Us.Qs),this.domNode.append(Ua(this,no,"f")),Xa(this,io,new Ya(t),"f"),Ua(this,no,"f").append(Ua(this,io,"f").domNode),Xa(this,so,new Qa(t),"f"),Ua(this,no,"f").append(Ua(this,so,"f").domNode),Xa(this,oo,new $a(t),"f"),Ua(this,no,"f").append(Ua(this,oo,"f").domNode),Ua(this,ro,"f").classList.add(Us.eB),Ua(this,no,"f").append(Ua(this,ro,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Ua(this,Ks,"m",wo).call(this):Ua(this,Ks,"m",bo).call(this))})),Xa(this,ao,new Ja(t),"f"),Ua(this,ro,"f").append(Ua(this,ao,"f").domNode),Xa(this,ho,new Ka(t),"f"),Ua(this,ro,"f").append(Ua(this,ho,"f").domNode),Xa(this,lo,new th(t),"f"),Ua(this,ro,"f").append(Ua(this,lo,"f").domNode),Xa(this,uo,new eh(t),"f"),Ua(this,ro,"f").append(Ua(this,uo,"f").domNode),Xa(this,co,new nh(t),"f"),Ua(this,ro,"f").append(Ua(this,co,"f").domNode),Xa(this,fo,new ih(t),"f"),Ua(this,ro,"f").append(Ua(this,fo,"f").domNode),Xa(this,po,new rh(t),"f"),Ua(this,ro,"f").append(Ua(this,po,"f").domNode),Xa(this,mo,new sh(t),"f"),Ua(this,ro,"f").append(Ua(this,mo,"f").domNode),Xa(this,go,new oh(t),"f"),Ua(this,ro,"f").append(Ua(this,go,"f").domNode),Xa(this,yo,new ah(t),"f"),Ua(this,ro,"f").append(Ua(this,yo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Us.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Us.ho),Ua(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Us.ho),Ua(this,eo,"f").caret.pointDown())}refresh(){Ua(this,Ks,"a",vo).forEach((t=>t.refresh())),[...Ua(this,to,"f").selectedOutlines].length>0?Ua(this,Ks,"m",wo).call(this):Ua(this,Ks,"m",bo).call(this)}}to=new WeakMap,eo=new WeakMap,no=new WeakMap,io=new WeakMap,ro=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,lo=new WeakMap,uo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,Ks=new WeakSet,vo=function(){return[Ua(this,io,"f"),Ua(this,so,"f"),Ua(this,oo,"f"),Ua(this,ao,"f"),Ua(this,ho,"f"),Ua(this,lo,"f"),Ua(this,uo,"f"),Ua(this,co,"f"),Ua(this,fo,"f"),Ua(this,po,"f"),Ua(this,mo,"f"),Ua(this,go,"f"),Ua(this,yo,"f")]},wo=function(){Ua(this,ro,"f").style.display="flex"},bo=function(){Ua(this,ro,"f").style.display="none"};class Ya{constructor(t){xo.set(this,void 0),this.domNode=document.createElement("p"),No.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Xa(this,xo,t,"f"),this.domNode.classList.add(Us.vM),Ua(this,No,"f").style.fontWeight="700",this.domNode.append(Ua(this,No,"f"),Ua(this,ko,"f")),Ua(this,xo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ua(this,xo,"f").selectedOutlines].length;Ua(this,No,"f").textContent=`${t}`,Ua(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}xo=new WeakMap,No=new WeakMap,ko=new WeakMap;class Qa{constructor(t){So.add(this),To.set(this,void 0),this.domNode=document.createElement("div"),Co.set(this,document.createElement("p")),_o.set(this,new W),Mo.set(this,new W),Eo.set(this,new W),Ao.set(this,void 0),Xa(this,To,t,"f"),this.domNode.classList.add(Us.VX),Ua(this,Co,"f").classList.add(Us.iE),Ua(this,Co,"f").textContent="Select:",this.domNode.append(Ua(this,Co,"f")),Ua(this,_o,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",Lo).call(this))),Ua(this,_o,"f").textContent="All",Ua(this,_o,"f").domNode.style.marginLeft="20px",this.domNode.append(Ua(this,_o,"f").domNode),Ua(this,Mo,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",Oo).call(this))),Ua(this,Mo,"f").textContent="Outlining",Ua(this,Mo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ua(this,Mo,"f").domNode),Ua(this,Eo,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",jo).call(this))),Ua(this,Eo,"f").textContent="None",Ua(this,Eo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ua(this,Eo,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Xa(this,Ao,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ua(this,Ao,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ua(this,So,"m",Do).call(this),Ua(this,So,"m",Wo).call(this),Ua(this,So,"m",Po).call(this)}}To=new WeakMap,Co=new WeakMap,_o=new WeakMap,Mo=new WeakMap,Eo=new WeakMap,Ao=new WeakMap,So=new WeakSet,Lo=function(){let t=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").addToSelected(t)},Oo=function(){let t=new Set(Ua(this,To,"f").selectedBases),e=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").addToSelected(e.filter((e=>t.has(e.owner))))},jo=function(){let t=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").removeFromSelected(t)},Do=function(){let t=[...Ua(this,To,"f").drawing.outlines],e=[...Ua(this,To,"f").selectedOutlines];0==t.length?(Ua(this,_o,"f").disable(),Ua(this,_o,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ua(this,_o,"f").disable(),Ua(this,_o,"f").tooltip.textContent="All outlines are already selected."):(Ua(this,_o,"f").enable(),Ua(this,_o,"f").tooltip.textContent="Select all outlines.")},Wo=function(){let t=[...Ua(this,To,"f").drawing.outlines],e=new Set(Ua(this,To,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),i=new Set(Ua(this,To,"f").selectedOutlines);0==e.size?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>i.has(t)))?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ua(this,Mo,"f").enable(),Ua(this,Mo,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Po=function(){0==[...Ua(this,To,"f").selectedOutlines].length?(Ua(this,Eo,"f").disable(),Ua(this,Eo,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Eo,"f").enable(),Ua(this,Eo,"f").tooltip.textContent="Deselect all outlines.")};class $a{constructor(t){Io.add(this),qo.set(this,void 0),this.domNode=document.createElement("div"),Ro.set(this,document.createElement("div")),Fo.set(this,new Js("Add",(()=>Ua(this,Io,"m",Go).call(this)))),Bo.set(this,new K),zo.set(this,new nt("Only add missing outlines",Ua(this,Bo,"f").domNode)),Ho.set(this,void 0),Vo.set(this,void 0),Xa(this,qo,t,"f"),this.domNode.style.marginTop="25px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Ua(this,Ro,"f").style.display="flex",Ua(this,Ro,"f").style.flexDirection="row",Ua(this,Ro,"f").style.gap="15px",this.domNode.append(Ua(this,Ro,"f")),Xa(this,Ho,new Za(t),"f"),Ua(this,Ro,"f").append(Ua(this,Fo,"f").domNode,Ua(this,Ho,"f").domNode),Ua(this,Bo,"f").domNode.checked=!0,Ua(this,zo,"f").domNode.style.marginTop="11px",Ua(this,zo,"f").domNode.style.alignSelf="start",this.domNode.append(Ua(this,zo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Xa(this,Vo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ua(this,Vo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ua(this,Bo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){Ua(this,Io,"m",Uo).call(this),Ua(this,Ho,"f").refresh()}}qo=new WeakMap,Ro=new WeakMap,Fo=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Ho=new WeakMap,Vo=new WeakMap,Io=new WeakSet,Xo=function(){return Ua(this,Bo,"f").domNode.checked},Uo=function(){let t=[...Ua(this,qo,"f").selectedBases],e=[...Ua(this,qo,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),i=t.filter((t=>!n.has(t)));0==t.length?(Ua(this,Fo,"f").disable(),Ua(this,Fo,"f").tooltip.textContent="No bases are selected."):Ua(this,Io,"a",Xo)&&0==i.length?(Ua(this,Fo,"f").disable(),Ua(this,Fo,"f").tooltip.textContent="The selected bases are already outlined."):(Ua(this,Fo,"f").enable(),Ua(this,Fo,"f").tooltip.textContent="Outline the selected bases.")},Go=function(){let t=[...Ua(this,qo,"f").selectedBases];if(0==t.length)return;let e=[...Ua(this,qo,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),i=t.filter((t=>!n.has(t))),r=Ua(this,Io,"a",Xo)?i:t;if(0==r.length)return;Ua(this,qo,"f").pushUndoStack();let s=r.map((t=>Ua(this,qo,"f").drawing.outline(t)));Ua(this,qo,"f").addToSelected(s),this.refresh()};class Za{constructor(t){Yo.set(this,void 0),Qo.set(this,new Js("Remove",(()=>this.press()))),Xa(this,Yo,t,"f"),Ua(this,Yo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Ua(this,Qo,"f").domNode}press(){let t=[...Ua(this,Yo,"f").selectedOutlines];0!=t.length?(Ua(this,Yo,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Ua(this,Yo,"f").selectedOutlines].length?(Ua(this,Qo,"f").disable(),Ua(this,Qo,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Qo,"f").enable(),Ua(this,Qo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Yo=new WeakMap,Qo=new WeakMap;class Ja{constructor(t){$o.add(this),Zo.set(this,void 0),this.domNode=document.createElement("div"),Jo.set(this,document.createElement("p")),Ko.set(this,new W),ta.set(this,new W),Xa(this,Zo,t,"f"),this.domNode.classList.add(Us.Te),Ua(this,Jo,"f").classList.add(Us.QB),Ua(this,Jo,"f").textContent="Send to:",this.domNode.append(Ua(this,Jo,"f")),Ua(this,Ko,"f").domNode.addEventListener("click",(()=>Ua(this,$o,"m",ea).call(this))),Ua(this,Ko,"f").textContent="Front",Ua(this,Ko,"f").domNode.style.marginLeft="24px",this.domNode.append(Ua(this,Ko,"f").domNode),Ua(this,ta,"f").domNode.addEventListener("click",(()=>Ua(this,$o,"m",na).call(this))),Ua(this,ta,"f").textContent="Back",Ua(this,ta,"f").domNode.style.marginLeft="28px",this.domNode.append(Ua(this,ta,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ua(this,$o,"m",ia).call(this),Ua(this,$o,"m",ra).call(this)}}Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,ta=new WeakMap,$o=new WeakSet,ea=function(){let t=[...Ua(this,Zo,"f").selectedOutlines];0!=t.length?(Ua(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},na=function(){let t=[...Ua(this,Zo,"f").selectedOutlines];0!=t.length?(Ua(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ia=function(){0==[...Ua(this,Zo,"f").selectedOutlines].length?(Ua(this,Ko,"f").disable(),Ua(this,Ko,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Ko,"f").enable(),Ua(this,Ko,"f").tooltip.textContent="Bring the selected outlines to the front.")},ra=function(){0==[...Ua(this,Zo,"f").selectedOutlines].length?(Ua(this,ta,"f").disable(),Ua(this,ta,"f").tooltip.textContent="No outlines are selected."):(Ua(this,ta,"f").enable(),Ua(this,ta,"f").tooltip.textContent="Send selected outlines to the back.")};class Ka{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),Xa(this,sa,t,"f"),Xa(this,oa,new hh(t,"r"),"f"),Xa(this,aa,new $("Radius",Ua(this,oa,"f").domNode),"f"),Ua(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Ns(this.domNode).css({marginTop:"22px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,aa,"f").domNode}refresh(){Ua(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class th{constructor(t){ha.set(this,void 0),la.set(this,void 0),ua.set(this,void 0),Xa(this,ha,t,"f"),Xa(this,la,new hh(t,"fill"),"f"),Xa(this,ua,new $("Fill",Ua(this,la,"f").domNode),"f"),Ua(this,ua,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ua,"f").domNode}refresh(){Ua(this,la,"f").refresh()}}ha=new WeakMap,la=new WeakMap,ua=new WeakMap;class eh{constructor(t){ca.add(this),da.set(this,void 0),fa.set(this,new st),pa.set(this,void 0),ma.set(this,void 0),ga.set(this,void 0),Xa(this,da,t,"f"),Ua(this,fa,"f").domNode.addEventListener("input",(()=>Ua(this,ca,"m",ya).call(this))),Xa(this,pa,new ht("Fill Color",Ua(this,fa,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ua(this,da,"f").selectedOutlines.addEventListener("change",(()=>Xa(this,ma,void 0,"f"))),Ua(this,fa,"f").domNode.addEventListener("focus",(()=>Xa(this,ga,Ua(this,fa,"f").domNode.value,"f"))),Ua(this,da,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,da,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ua(this,pa,"f").domNode}refresh(){let t=[...Ua(this,da,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ua(this,fa,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ua(this,fa,"f").domNode.value="#000000"}else Ua(this,fa,"f").domNode.value="#000000"}}da=new WeakMap,fa=new WeakMap,pa=new WeakMap,ma=new WeakMap,ga=new WeakMap,ca=new WeakSet,ya=function(){if(Ua(this,fa,"f").domNode.value===Ua(this,ga,"f"))return;let t=[...Ua(this,da,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ua(this,fa,"f").domNode.value.toLowerCase()}))||((Ua(this,da,"f").undoStack.isEmpty()||Ua(this,da,"f").undoStack.peek()!==Ua(this,ma,"f"))&&(Ua(this,da,"f").pushUndoStack(),Xa(this,ma,Ua(this,da,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Ua(this,fa,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class nh{constructor(t){va.set(this,void 0),wa.set(this,void 0),ba.set(this,void 0),Xa(this,va,t,"f"),Xa(this,wa,new hh(t,"fill-opacity"),"f"),Xa(this,ba,new $("Fill Opacity",Ua(this,wa,"f").domNode),"f"),Ua(this,ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ba,"f").domNode}refresh(){Ua(this,wa,"f").refresh()}}va=new WeakMap,wa=new WeakMap,ba=new WeakMap;class ih{constructor(t){xa.set(this,void 0),Na.set(this,void 0),ka.set(this,void 0),Xa(this,xa,t,"f"),Xa(this,Na,new hh(t,"stroke"),"f"),Xa(this,ka,new $("Stroke",Ua(this,Na,"f").domNode),"f"),Ua(this,ka,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ka,"f").domNode}refresh(){Ua(this,Na,"f").refresh()}}xa=new WeakMap,Na=new WeakMap,ka=new WeakMap;class rh{constructor(t){Sa.add(this),Ta.set(this,void 0),Ca.set(this,new st),_a.set(this,void 0),Ma.set(this,void 0),Ea.set(this,void 0),Xa(this,Ta,t,"f"),Ua(this,Ca,"f").domNode.addEventListener("input",(()=>Ua(this,Sa,"m",Aa).call(this))),Xa(this,_a,new ht("Stroke Color",Ua(this,Ca,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ua(this,Ta,"f").selectedOutlines.addEventListener("change",(()=>Xa(this,Ma,void 0,"f"))),Ua(this,Ca,"f").domNode.addEventListener("focus",(()=>Xa(this,Ea,Ua(this,Ca,"f").domNode.value,"f"))),Ua(this,Ta,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,Ta,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ua(this,_a,"f").domNode}refresh(){let t=[...Ua(this,Ta,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Ua(this,Ca,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ua(this,Ca,"f").domNode.value="#000000"}else Ua(this,Ca,"f").domNode.value="#000000"}}Ta=new WeakMap,Ca=new WeakMap,_a=new WeakMap,Ma=new WeakMap,Ea=new WeakMap,Sa=new WeakSet,Aa=function(){if(Ua(this,Ca,"f").domNode.value===Ua(this,Ea,"f"))return;let t=[...Ua(this,Ta,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ua(this,Ca,"f").domNode.value.toLowerCase()}))||((Ua(this,Ta,"f").undoStack.isEmpty()||Ua(this,Ta,"f").undoStack.peek()!==Ua(this,Ma,"f"))&&(Ua(this,Ta,"f").pushUndoStack(),Xa(this,Ma,Ua(this,Ta,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Ua(this,Ca,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class sh{constructor(t){La.set(this,void 0),Oa.set(this,void 0),ja.set(this,void 0),Xa(this,La,t,"f"),Xa(this,Oa,new hh(t,"stroke-opacity"),"f"),Xa(this,ja,new $("Stroke Opacity",Ua(this,Oa,"f").domNode),"f"),Ua(this,ja,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ja,"f").domNode}refresh(){Ua(this,Oa,"f").refresh()}}La=new WeakMap,Oa=new WeakMap,ja=new WeakMap;class oh{constructor(t){Da.set(this,void 0),Wa.set(this,void 0),Pa.set(this,void 0),Xa(this,Da,t,"f"),Xa(this,Wa,new hh(t,"stroke-width"),"f"),Xa(this,Pa,new $("Stroke Width",Ua(this,Wa,"f").domNode),"f"),Ua(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,Pa,"f").domNode}refresh(){Ua(this,Wa,"f").refresh()}}Da=new WeakMap,Wa=new WeakMap,Pa=new WeakMap;class ah{constructor(t){Ia.set(this,void 0),qa.set(this,void 0),Ra.set(this,void 0),Xa(this,Ia,t,"f"),Xa(this,qa,new hh(t,"stroke-dasharray"),"f"),Xa(this,Ra,new $("Stroke Dash-Array",Ua(this,qa,"f").domNode),"f"),Ua(this,Ra,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,Ra,"f").domNode}refresh(){Ua(this,qa,"f").refresh()}}Ia=new WeakMap,qa=new WeakMap,Ra=new WeakMap;class hh{constructor(t,e){Fa.add(this),Ba.set(this,void 0),za.set(this,void 0),Ha.set(this,new F({onSubmit:()=>Ua(this,Fa,"m",Va).call(this)})),Xa(this,Ba,t,"f"),Xa(this,za,e,"f"),Ua(this,Ba,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,Ba,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ua(this,Ha,"f").domNode}refresh(){let t=[...Ua(this,Ba,"f").selectedOutlines];try{Ua(this,Ha,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Ua(this,za,"f")))&&void 0!==e?e:""})))}catch(t){Ua(this,Ha,"f").domNode.value=""}}}Ba=new WeakMap,za=new WeakMap,Ha=new WeakMap,Fa=new WeakSet,Va=function(){let t=Ua(this,Ha,"f").domNode.value,e=[...Ua(this,Ba,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Ua(this,za,"f"))===t))||(Ua(this,Ba,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Ua(this,za,"f"),t)))),this.refresh()};var lh=n(290),uh={};uh.styleTagTransform=w(),uh.setAttributes=m(),uh.insert=f().bind(null,"head"),uh.domAPI=c(),uh.insertStyleElement=y(),l()(lh.A,uh),lh.A&&lh.A.locals&&lh.A.locals;var ch,dh,fh,ph,mh,gh,yh=n(139),vh=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},wh=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class bh{constructor(t){ch.add(this),dh.set(this,void 0),this.domNode=document.createElement("div"),fh.set(this,void 0),ph.set(this,void 0),mh.set(this,void 0),vh(this,dh,t,"f"),this.domNode.classList.add(b.KQ);let e=document.createElement("p");e.classList.add(b.wx),e.textContent="Edit",this.domNode.append(e);let n=document.createElement("div");n.classList.add(b.UJ),this.domNode.append(n),vh(this,fh,new Ts(t),"f"),n.append(wh(this,fh,"f").domNode),vh(this,ph,new Ga(t),"f"),n.append(wh(this,ph,"f").domNode);let i=function(){let t=document.createElement("p");return t.classList.add(lh._),t.textContent="Close",t}();i.addEventListener("click",(()=>this.close())),this.domNode.append(i),vh(this,mh,new yh.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){wh(this,ch,"a",gh).forEach((t=>t.refresh()))}reposition(){wh(this,mh,"f").untranslate()}}dh=new WeakMap,fh=new WeakMap,ph=new WeakMap,mh=new WeakMap,ch=new WeakSet,gh=function(){return[wh(this,fh,"f"),wh(this,ph,"f")]}})(),i})()));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>h,y:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,"._xow9qroX8E0n35EgMyS {\n cursor: grab;\n}\n\n._xow9qroX8E0n35EgMyS:active {\n cursor: grabbing;\n}\n",""]);var a="_xow9qroX8E0n35EgMyS";const h=o},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},659:t=>{var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var i={};n.r(i),n.d(i,{DragTranslater:()=>v});var r=n(72),s=n.n(r),o=n(825),a=n.n(o),h=n(659),l=n.n(h),u=n(56),c=n.n(u),d=n(540),f=n.n(d),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=l().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=f(),s()(g.A,y),g.A&&g.A.locals&&g.A.locals;class v{constructor(t){this.targetForm=t,this.mouseIsDown=!1,this.interactionDepth="shallow",window.addEventListener("mousedown",(t=>this.handleMouseDown(t))),window.addEventListener("mousemove",(t=>this.handleMouseMove(t))),window.addEventListener("mouseup",(t=>this.handleMouseUp(t))),t.addEventListener("mouseover",(e=>{e.target!==t||t.classList.add(g.y)})),t.addEventListener("mouseout",(e=>{e.target!==t||t.classList.remove(g.y)}))}get currentTranslation(){let t=this.targetForm.getBoundingClientRect(),e=t.x,n=t.y,i=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let r=this.targetForm.getBoundingClientRect(),s=r.x,o=r.y;return this.targetForm.style.translate=i,{x:e-s,y:n-o}}set currentTranslation(t){this.targetForm.style.translate=`${t.x}px ${t.y}px`}untranslate(){this.targetForm.style.translate="0px 0px"}handleMouseDown(t){this.lastMouseDown=t,this.mouseIsDown=!0}handleMouseMove(t){if(!this.mouseIsDown)return;if(!this.lastMouseDown)return;if(!(this.lastMouseDown.target instanceof Node))return;if("shallow"==this.interactionDepth){if(this.lastMouseDown.target!==this.targetForm)return}else if(!this.targetForm.contains(this.lastMouseDown.target))return;let e=this.currentTranslation;this.currentTranslation={x:e.x+t.movementX,y:e.y+t.movementY}}handleMouseUp(t){this.mouseIsDown=!1}}return i})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function i(t){return n(t)/t.length}function r(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>i,isBetweenExclusive:()=>c,isBetweenInclusive:()=>u,max:()=>l,mean:()=>i,median:()=>a,min:()=>h,sortNumbers:()=>r,sortNumbersAscending:()=>r,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return r(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,r=n-1;return i([e[n],e[r]])}function h(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function l(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function u(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return Math.abs(t-e)<=n}function f(t){r(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";function t(t){if(0==t.length)throw new Error("The array of values is empty.");if(1==new Set(t).size)return t[0];throw new Error("Not all values are the same.")}n.r(i),n.d(i,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class r{static of(t){return{in:e=>{let n=new Set([t]);return e.filter((t=>n.has(t)))}}}}function s(t){if(0==t.length)throw new Error("The array of values is empty.");let n=[...new Set(t)],i=n.map((e=>r.of(e).in(t).length)),s=(0,e.max)(i),o=n.findIndex((e=>r.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),i})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,_:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.kcto2iumhdvv3MluNmLw {\n position: absolute;\n top: 13px;\n right: 17px;\n\n margin: 0px;\n\n border: none;\n outline: none;\n\n padding: 3px 12px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 16px;\n font-weight: 600;\n font-style: normal;\n color: #871414;\n\n pointer-events: auto;\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n background-color: transparent;\n}\n\n.kcto2iumhdvv3MluNmLw:hover {\n background-color: #cab8d99c;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #aa8eba9e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const h=o},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},419:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,P:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.cstoj4QoATbKp66WQrBA {\n border: 1px solid #75758c;\n border-radius: 2px;\n\n outline: none;\n\n width: 90px;\n\n padding: 3px 6px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:hover {\n border-color: #0a0a0b;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const h=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,KQ:()=>a,UJ:()=>l,wx:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 268px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 16px;\n\n border: 1px solid #220536;\n\n padding: 23px 32px 50px 36px;\n\n background-color: rgba(227, 229, 255, 0.37);\n\n backdrop-filter: blur(20px);\n -webkit-backdrop-filter: blur(20px);\n\n box-shadow: 0 0 14px rgba(219, 219, 238, 0.09);\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 34px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.blLx0TnwxHwlX8qvUigb {\n margin: 27px 0px 0px 24px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",h="Y7tezdMOsnQfs2CQtMUR",l="blLx0TnwxHwlX8qvUigb";const u=o},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>l,Qq:()=>h,Z7:()=>u,kY:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.PxTHOvfPECESZe6OxVvg {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.hcTi6yK4eMJ8Mc61rqGY {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.PxTHOvfPECESZe6OxVvg:hover .hcTi6yK4eMJ8Mc61rqGY {\n text-decoration: underline;\n}\n\n.lVFnQ83G0WswDpb_v1xo {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.MwdzfSTS8dcFWG_qqlI9 {\n transform: rotate(90deg);\n}\n',""]);var a="PxTHOvfPECESZe6OxVvg",h="hcTi6yK4eMJ8Mc61rqGY",l="lVFnQ83G0WswDpb_v1xo",u="MwdzfSTS8dcFWG_qqlI9";const c=o},601:t=>{"use strict";t.exports=function(t){return t[1]}},633:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>v,IU:()=>f,QB:()=>y,Qs:()=>d,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>u,lf:()=>a,m9:()=>l,vw:()=>p,wx:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.dimGBV0h2P1QB3V_Zhmc {\n display: flex;\n flex-direction: column;\n}\n\n.sE2YASqaiPZdV9dz58A7 {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n align-self: start;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.BYZcOJiOX5zLxIrbc3gR {\n margin-right: 6px;\n\n pointer-events: auto;\n}\n\n.mOH6VML7hViujtEoNaOA .BYZcOJiOX5zLxIrbc3gR {\n transform: rotate(90deg);\n}\n\n.u5w42CVwU4PQ7GiSuy4G {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n pointer-events: auto;\n\n user-select: none;\n -webkit-user-select: none;\n\n cursor: pointer;\n\n outline: none;\n}\n\n.sE2YASqaiPZdV9dz58A7:hover .u5w42CVwU4PQ7GiSuy4G {\n text-decoration: underline;\n}\n\n.TCp4dzyF9qmbX3ejDOkL {\n margin: 10px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.mOH6VML7hViujtEoNaOA .TCp4dzyF9qmbX3ejDOkL {\n display: flex;\n}\n\n.WOjw8GKoS54KQAOlumMa {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 21px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 22px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",l="BYZcOJiOX5zLxIrbc3gR",u="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,ZZ:()=>a,o3:()=>h});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.rIHrsark1WbeRGC9M1ZY {\n display: flex;\n flex-direction: row;\n align-items: center;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: black;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",h="P5PJGaHxnhsEaezm8Nhg";const l=o},692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,h=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},l=s.push,u=s.indexOf,c={},d=c.toString,f=c.hasOwnProperty,p=f.toString,m=p.call(Object),g={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},v=function(t){return null!=t&&t===t.window},w=i.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,s=(n=n||w).createElement("script");if(s.text=t,e)for(i in b)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function N(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[d.call(t)]||"object":typeof t}var k="3.7.1",S=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=N(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:k,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var t,e,n,i,r,s,o=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===h&&(o=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(l&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[e],s=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,o[e]=T.extend(l,s,i)):void 0!==i&&(o[e]=i));return o},T.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t)||(e=o(t))&&("function"!=typeof(n=f.call(e,"constructor")&&e.constructor)||p.call(n)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=T.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?T.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!S.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,s=t.length,o=!n;r<s;r++)!e(t[r],r)!==o&&i.push(t[r]);return i},map:function(t,e,n){var i,r,s=0,o=[];if(C(t))for(i=t.length;s<i;s++)null!=(r=e(t[s],s,n))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,n))&&o.push(r);return h(o)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var M=s.pop,E=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var j=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=l;!function(){var t,e,n,r,o,h,l,c,d,p,m=P,y=T.expando,v=0,w=0,b=tt(),x=tt(),N=tt(),k=tt(),S=function(t,e){return t===e&&(o=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+L+"*\\]",I=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"*,"+L+"*"),F=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),B=new RegExp(L+"|>"),z=new RegExp(I),H=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,U=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),$=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Z=function(){ht()},J=dt((function(t){return!0===t.disabled&&_(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(W.childNodes),W.childNodes),s[W.childNodes.length].nodeType}catch(t){m={apply:function(t,e){P.apply(t,a.call(e))},call:function(t){P.apply(t,a.call(arguments,1))}}}function K(t,e,n,i){var r,s,o,a,l,u,f,p=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!i&&(ht(e),e=e||h,c)){if(11!==v&&(l=G.exec(t)))if(r=l[1]){if(9===v){if(!(o=e.getElementById(r)))return n;if(o.id===r)return m.call(n,o),n}else if(p&&(o=p.getElementById(r))&&K.contains(e,o)&&o.id===r)return m.call(n,o),n}else{if(l[2])return m.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(r)),n}if(!(k[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(B.test(t)||F.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=y)),s=(u=ut(t)).length;s--;)u[s]=(a?"#"+a:":scope")+" "+ct(u[s]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(e){k(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(O,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[y]=!0,t}function nt(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return _(e,"input")&&e.type===t}}function rt(t){return function(e){return(_(e,"input")||_(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(n,i){for(var r,s=t([],n.length,e),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ht(t){var n,i=t?t.ownerDocument||t:W;return i!=h&&9===i.nodeType&&i.documentElement?(l=(h=i).documentElement,c=!T.isXMLDoc(h),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&W!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return l.appendChild(t).id=T.expando,!h.getElementsByName||!h.getElementsByName(T.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return h.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return h.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),g.getById?(e.filter.ID=function(t){var e=t.replace(Q,$);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(Q,$);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&c){var n,i,r,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(r=e.getElementsByName(t),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&c)return e.getElementsByClassName(t)},d=[],nt((function(t){var e;l.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+C+")"),t.querySelectorAll("[id~="+y+"-]").length||d.push("~="),t.querySelectorAll("a#"+y+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=h.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),S=function(t,e){if(t===e)return o=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===n?t===h||t.ownerDocument==W&&K.contains(W,t)?-1:e===h||e.ownerDocument==W&&K.contains(W,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},h):h}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ht(t),c&&!k[e+" "]&&(!d||!d.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){k(e,!0)}return K(e,h,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=h&&ht(t),T.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=h&&ht(t);var i=e.attrHandle[n.toLowerCase()],r=i&&f.call(e.attrHandle,n.toLowerCase())?i(t,n,!c):void 0;return void 0!==r?r:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],i=0,s=0;if(o=!g.sortStable,r=!g.sortStable&&a.call(t,0),E.call(t,S),o){for(;e=t[s++];)e===t[s]&&(i=n.push(s));for(;i--;)A.call(t,n[i],1)}return r=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Q,$),t[3]=(t[3]||t[4]||t[5]||"").replace(Q,$),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||K.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&K.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Q,$).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&b(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=K.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,h){var l,u,c,d,f,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!h&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?_(c,g):1===c.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&w){for(b=(d=(l=(u=m[y]||(m[y]={}))[t]||[])[0]===v&&l[1])&&l[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){u[t]=[v,d,b];break}}else if(w&&(b=d=(l=(u=e[y]||(e[y]={}))[t]||[])[0]===v&&l[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?_(c,g):1===c.nodeType)||!++b||(w&&((u=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=r)===i||b%i===0&&b/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return r[y]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var i,s=r(t,n),o=s.length;o--;)t[i=u.call(t,s[o])]=!(e[i]=s[o])})):function(t){return r(t,0,i)}):r}},pseudos:{not:et((function(t){var e=[],n=[],i=yt(t.replace(O,"$1"));return i[y]?et((function(t,e,n,r){for(var s,o=i(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,r,s){return e[0]=t,i(e,null,s,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return K(t,e).length>0}})),contains:et((function(t){return t=t.replace(Q,$),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}})),lang:et((function(t){return H.test(t||"")||K.error("unsupported lang: "+t),t=t.replace(Q,$).toLowerCase(),function(e){var n;do{if(n=c?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return h.activeElement}catch(t){}}()&&h.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return U.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){var e;return _(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,n){return[n<0?n+e:n]})),even:ot((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ot((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ot((function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:ot((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function lt(){}function ut(t,n){var i,r,s,o,a,h,l,u=x[t+" "];if(u)return n?0:u.slice(0);for(a=t,h=[],l=e.preFilter;a;){for(o in i&&!(r=R.exec(a))||(r&&(a=a.slice(r[0].length)||a),h.push(s=[])),i=!1,(r=F.exec(a))&&(i=r.shift(),s.push({value:i,type:r[0].replace(O," ")}),a=a.slice(i.length)),e.filter)!(r=V[o].exec(a))||l[o]&&!(r=l[o](r))||(i=r.shift(),s.push({value:i,type:o,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?K.error(t):x(t,h).slice(0)}function ct(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function dt(t,e,n){var i=e.dir,r=e.next,s=r||i,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,r);return!1}:function(e,n,h){var l,u,c=[v,a];if(h){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[i];)if(1===e.nodeType||o)if(u=e[y]||(e[y]={}),r&&_(e,r))e=e[i]||e;else{if((l=u[s])&&l[0]===v&&l[1]===a)return c[2]=l[2];if(u[s]=c,c[2]=t(e,n,h))return!0}return!1}}function ft(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function pt(t,e,n,i,r){for(var s,o=[],a=0,h=t.length,l=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,i,r)||(o.push(s),l&&e.push(a)));return o}function mt(t,e,n,i,r,s){return i&&!i[y]&&(i=mt(i)),r&&!r[y]&&(r=mt(r,s)),et((function(s,o,a,h){var l,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var i=0,r=e.length;i<r;i++)K(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,h);if(n?n(w,f=r||(s?t:y||i)?[]:o,a,h):f=w,i)for(l=pt(f,g),i(l,[],a,h),c=l.length;c--;)(d=l[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(r||t){if(r){for(l=[],c=f.length;c--;)(d=f[c])&&l.push(w[c]=d);r(null,f=[],l,h)}for(c=f.length;c--;)(d=f[c])&&(l=r?u.call(s,d):p[c])>-1&&(s[l]=!(o[l]=d))}}else f=pt(f===o?f.splice(y,f.length):f),r?r(null,o,f,h):m.apply(o,f)}))}function gt(t){for(var i,r,s,o=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],l=a?1:0,c=dt((function(t){return t===i}),h,!0),d=dt((function(t){return u.call(i,t)>-1}),h,!0),f=[function(t,e,r){var s=!a&&(r||e!=n)||((i=e).nodeType?c(t,e,r):d(t,e,r));return i=null,s}];l<o;l++)if(r=e.relative[t[l].type])f=[dt(ft(f),r)];else{if((r=e.filter[t[l].type].apply(null,t[l].matches))[y]){for(s=++l;s<o&&!e.relative[t[s].type];s++);return mt(l>1&&ft(f),l>1&&ct(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),r,l<s&&gt(t.slice(l,s)),s<o&&gt(t=t.slice(s)),s<o&&ct(t))}f.push(r)}return ft(f)}function yt(t,i){var r,s=[],o=[],a=N[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=gt(i[r]))[y]?s.push(a):o.push(a);a=N(t,function(t,i){var r=i.length>0,s=t.length>0,o=function(o,a,l,u,d){var f,p,g,y=0,w="0",b=o&&[],x=[],N=n,k=o||s&&e.find.TAG("*",d),S=v+=null==N?1:Math.random()||.1,C=k.length;for(d&&(n=a==h||a||d);w!==C&&null!=(f=k[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==h||(ht(f),l=!c);g=t[p++];)if(g(f,a||h,l)){m.call(u,f);break}d&&(v=S)}r&&((f=!g&&f)&&y--,o&&b.push(f))}if(y+=w,r&&w!==y){for(p=0;g=i[p++];)g(b,x,a,l);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=M.call(u));x=pt(x)}m.apply(u,x),d&&!o&&x.length>0&&y+i.length>1&&T.uniqueSort(u)}return d&&(v=S,n=N),b};return r?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,i,r){var s,o,a,h,l,u="function"==typeof t&&t,d=!r&&ut(t=u.selector||t);if(i=i||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===n.nodeType&&c&&e.relative[o[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(Q,$),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(o.shift().value.length)}for(s=V.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[h=a.type]);)if((l=e.find[h])&&(r=l(a.matches[0].replace(Q,$),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=r.length&&ct(o)))return m.apply(i,r),i;break}}return(u||yt(t,d))(r,n,!c,i,!n||Y.test(t)&&at(n.parentNode)||n),i}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,g.sortStable=y.split("").sort(S).join("")===y,ht(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),T.find=K,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ht,K.tokenize=ut,K.escape=T.escapeSelector,K.getText=T.text,K.isXML=T.isXMLDoc,K.selectors=T.expr,K.support=T.support,K.uniqueSort=T.uniqueSort}();var I=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(n))break;i.push(t)}return i},q=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=T.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return y(e)?T.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?T.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?T.grep(t,(function(t){return u.call(e,t)>-1!==n})):T.filter(e,t,n)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<i;e++)if(T.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,r[e],n);return i>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&R.test(t)?T(t):t||[],!1).length}});var z,H=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||z,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:H.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),F.test(i[1])&&T.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=w.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,z=T(w);var V=/^(?:parents|prev(?:Until|All))/,X={children:!0,contents:!0,next:!0,prev:!0};function U(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,s=[],o="string"!=typeof t&&T(t);if(!R.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?u.call(T(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return I(t,"parentNode")},parentsUntil:function(t,e,n){return I(t,"parentNode",n)},next:function(t){return U(t,"nextSibling")},prev:function(t){return U(t,"previousSibling")},nextAll:function(t){return I(t,"nextSibling")},prevAll:function(t){return I(t,"previousSibling")},nextUntil:function(t,e,n){return I(t,"nextSibling",n)},prevUntil:function(t,e,n){return I(t,"previousSibling",n)},siblings:function(t){return q((t.parentNode||{}).firstChild,t)},children:function(t){return q(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(n,i){var r=T.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=T.filter(i,r)),this.length>1&&(X[t]||T.uniqueSort(r),V.test(t)&&r.reverse()),this.pushStack(r)}}));var G=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function Q(t){throw t}function $(t,e,n,i){var r;try{t&&y(r=t.promise)?r.call(t).done(e).fail(n):t&&y(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(G)||[],(function(t,n){e[n]=!0})),e}(t):T.extend({},t);var e,n,i,r,s=[],o=[],a=-1,h=function(){for(r=r||t.once,i=e=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=s.length,n=!1);t.memory||(n=!1),e=!1,r&&(s=n?[]:"")},l={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){T.each(n,(function(n,i){y(i)?t.unique&&l.has(i)||s.push(i):i&&i.length&&"string"!==N(i)&&e(i)}))}(arguments),n&&!e&&h()),this},remove:function(){return T.each(arguments,(function(t,e){for(var n;(n=T.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?T.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||e||(s=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||h()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(n){T.each(e,(function(e,i){var r=y(t[i[4]])&&t[i[4]];s[i[1]]((function(){var t=r&&r.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,r){var s=0;function o(t,e,n,r){return function(){var a=this,h=arguments,l=function(){var i,l;if(!(t<s)){if((i=n.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");l=i&&("object"==typeof i||"function"==typeof i)&&i.then,y(l)?r?l.call(i,o(s,e,Y,r),o(s,e,Q,r)):(s++,l.call(i,o(s,e,Y,r),o(s,e,Q,r),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,h=[i]),(r||e.resolveWith)(a,h))}},u=r?l:function(){try{l()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,u.error),t+1>=s&&(n!==Q&&(a=void 0,h=[i]),e.rejectWith(a,h))}};t?u():(T.Deferred.getErrorHook?u.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(u.error=T.Deferred.getStackHook()),i.setTimeout(u))}}return T.Deferred((function(i){e[0][3].add(o(0,i,y(r)?r:Y,i.notifyWith)),e[1][3].add(o(0,i,y(t)?t:Y)),e[2][3].add(o(0,i,y(n)?n:Q))})).promise()},promise:function(t){return null!=t?T.extend(t,r):r}},s={};return T.each(e,(function(t,i){var o=i[2],a=i[5];r[i[1]]=o.add,a&&o.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(i[3].fire),s[i[0]]=function(){return s[i[0]+"With"](this===s?void 0:this,arguments),this},s[i[0]+"With"]=o.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),s=T.Deferred(),o=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(i,r)}};if(e<=1&&($(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(r[n]&&r[n].then)))return s.then();for(;n--;)$(r[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&Z.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout((function(){throw t}))};var J=T.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),i.removeEventListener("load",K),T.ready()}T.fn.ready=function(t){return J.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||J.resolveWith(w,[T]))}}),T.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?i.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",K),i.addEventListener("load",K));var tt=function(t,e,n,i,r,s,o){var a=0,h=t.length,l=null==n;if("object"===N(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,y(i)||(o=!0),l&&(o?(e.call(t,i),e=null):(l=e,e=function(t,e,n){return l.call(T(t),n)})),e))for(;a<h;a++)e(t[a],n,o?i:i.call(t[a],a,e(t[a],n)));return r?t:l?e.call(t):h?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=T.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||T.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new ot,ht=new ot,lt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function ct(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:lt.test(t)?JSON.parse(t):t)}(n)}catch(t){}ht.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return ht.hasData(t)||at.hasData(t)},data:function(t,e,n){return ht.access(t,e,n)},removeData:function(t,e){ht.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=ht.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ct(s,i,r[i]));at.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){ht.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ht.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ht.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ht.remove(this,t)}))}}),T.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,r=n.shift(),s=T._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete s.stop,r.call(t,(function(){T.dequeue(t,e)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each((function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=T.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(n=at.get(s[o],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return T.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===T.css(t,"display")};function wt(t,e,n,i){var r,s,o=20,a=i?function(){return i.cur()}:function(){return T.css(t,e,"")},h=a(),l=n&&n[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==l&&+h)&&ft.exec(T.css(t,e));if(u&&u[3]!==l){for(h/=2,l=l||u[3],u=+h||1;o--;)T.style(t,e,u+l),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),u/=s;u*=2,T.style(t,e,u+l),n=n||[]}return n&&(u=+u||+h||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var bt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=bt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=T.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),bt[i]=r,r)}function Nt(t,e){for(var n,i,r=[],s=0,o=t.length;s<o;s++)(i=t[s]).style&&(n=i.style.display,e?("none"===n&&(r[s]=at.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&vt(i)&&(r[s]=xt(i))):"none"!==n&&(r[s]="none",at.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}T.fn.extend({show:function(){return Nt(this,!0)},hide:function(){return Nt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?T(this).show():T(this).hide()}))}});var kt,St,Tt=/^(?:checkbox|radio)$/i,Ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;kt=w.createDocumentFragment().appendChild(w.createElement("div")),(St=w.createElement("input")).setAttribute("type","radio"),St.setAttribute("checked","checked"),St.setAttribute("name","t"),kt.appendChild(St),g.checkClone=kt.cloneNode(!0).cloneNode(!0).lastChild.checked,kt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!kt.cloneNode(!0).lastChild.defaultValue,kt.innerHTML="<option></option>",g.option=!!kt.lastChild;var Mt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Et(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?T.merge([t],n):n}function At(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Mt.tbody=Mt.tfoot=Mt.colgroup=Mt.caption=Mt.thead,Mt.th=Mt.td,g.option||(Mt.optgroup=Mt.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,i,r){for(var s,o,a,h,l,u,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===N(s))T.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Ct.exec(s)||["",""])[1].toLowerCase(),h=Mt[a]||Mt._default,o.innerHTML=h[1]+T.htmlPrefilter(s)+h[2],u=h[0];u--;)o=o.lastChild;T.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(i&&T.inArray(s,i)>-1)r&&r.push(s);else if(l=gt(s),o=Et(c.appendChild(s),"script"),l&&At(o),n)for(u=0;s=o[u++];)_t.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,i,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Pt(t,a,n,i,e[a],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Wt;else if(!r)return t;return 1===s&&(o=r,r=function(t){return T().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=T.guid++)),t.each((function(){T.event.add(this,e,r,i,n)}))}function It(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,T.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Dt)}T.event={global:{},add:function(t,e,n,i,r){var s,o,a,h,l,u,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&T.find.matchesSelector(mt,r),n.guid||(n.guid=T.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(G)||[""]).length;l--;)f=m=(a=jt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=T.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=T.event.special[f]||{},u=T.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:p.join(".")},s),(d=h[f])||((d=h[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[f]=!0)},remove:function(t,e,n,i,r){var s,o,a,h,l,u,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(l=(e=(e||"").match(G)||[""]).length;l--;)if(f=m=(a=jt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=T.event.special[f]||{},d=h[f=(i?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)u=d[s],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(s,1),u.selector&&d.delegateCount--,c.remove&&c.remove.call(t,u));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||T.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)T.event.remove(t,f+e[l],n,i,!0);T.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,s,o,a=new Array(arguments.length),h=T.event.fix(t),l=(at.get(this,"events")||Object.create(null))[h.type]||[],u=T.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,h)){for(o=T.event.handlers.call(this,h,l),e=0;(r=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(i=((T.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(h.result=i)&&(h.preventDefault(),h.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,i,r,s,o,a=[],h=e.delegateCount,l=t.target;if(h&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[r=(i=e[n]).selector+" "]&&(o[r]=i.needsContext?T(r,this).index(l)>-1:T.find(r,this,null,[l]).length),o[r]&&s.push(i);s.length&&a.push({elem:l,handlers:s})}return l=this,h<e.length&&a.push({elem:l,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&_(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&_(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&_(e,"input")&&at.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Wt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Wt,isPropagationStopped:Wt,isImmediatePropagationStopped:Wt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),i=T.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var i;if(It(this,t,!0),!w.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return It(this,t),!0},teardown:function(){var t;if(!w.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=w.documentMode?this:i,s=at.get(r,e);s||(w.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=w.documentMode?this:i,s=at.get(r,e)-1;s?at.set(r,e,s):(w.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),T.fn.extend({on:function(t,e,n,i){return Pt(this,t,e,n,i)},one:function(t,e,n,i){return Pt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){T.event.remove(this,t,n,e)}))}});var qt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function zt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,i,r,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)T.event.add(e,r,a[r][n]);ht.hasData(t)&&(s=ht.access(t),o=T.extend({},s),ht.set(e,o))}}function Xt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ut(t,e,n,i){e=h(e);var r,s,o,a,l,u,c=0,d=t.length,f=d-1,p=e[0],m=y(p);if(m||d>1&&"string"==typeof p&&!g.checkClone&&Rt.test(p))return t.each((function(r){var s=t.eq(r);m&&(e[0]=p.call(this,r,s.html())),Ut(s,e,n,i)}));if(d&&(s=(r=Ot(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=T.map(Et(r,"script"),zt)).length;c<d;c++)l=r,c!==f&&(l=T.clone(l,!0,!0),a&&T.merge(o,Et(l,"script"))),n.call(t[c],l,c);if(a)for(u=o[o.length-1].ownerDocument,T.map(o,Ht),c=0;c<a;c++)l=o[c],_t.test(l.type||"")&&!at.access(l,"globalEval")&&T.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?T._evalUrl&&!l.noModule&&T._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):x(l.textContent.replace(Ft,""),l,u))}return t}function Gt(t,e,n){for(var i,r=e?T.filter(e,t):t,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||T.cleanData(Et(i)),i.parentNode&&(n&&gt(i)&&At(Et(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,s,o,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(o=Et(a),i=0,r=(s=Et(t)).length;i<r;i++)Xt(s[i],o[i]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),i=0,r=s.length;i<r;i++)Vt(s[i],o[i]);else Vt(t,a);return(o=Et(a,"script")).length>0&&At(o,!h&&Et(t,"script")),a},cleanData:function(t){for(var e,n,i,r=T.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ut(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)}))},prepend:function(){return Ut(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ut(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!Mt[(Ct.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ut(this,arguments,(function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var n,i=[],r=T(t),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),T(r[o])[e](n),l.apply(i,n.get());return this.pushStack(i)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Qt=/^--/,$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Zt=function(t,e,n){var i,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=s[r];return i},Jt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var i,r,s,o,a=Qt.test(e),h=t.style;return(n=n||$t(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(O,"$1")||void 0),""!==o||gt(t)||(o=T.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(i=h.width,r=h.minWidth,s=h.maxWidth,h.minWidth=h.maxWidth=h.width=o,o=n.width,h.width=i,h.minWidth=r,h.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(l).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,h=12===e(t.marginLeft),u.style.right="60%",o=36===e(t.right),r=36===e(t.width),u.style.position="absolute",s=12===e(u.offsetWidth/3),mt.removeChild(l),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,s,o,a,h,l=w.createElement("div"),u=w.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),h},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=w.createElement("table"),e=w.createElement("tr"),n=w.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",mt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,ie={};function re(t){return T.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function he(t,e,n){var i=ft.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function le(t,e,n,i,r,s){var o="width"===e?1:0,a=0,h=0,l=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=T.css(t,n+pt[o],!0,r)),i?("content"===n&&(h-=T.css(t,"padding"+pt[o],!0,r)),"margin"!==n&&(h-=T.css(t,"border"+pt[o]+"Width",!0,r))):(h+=T.css(t,"padding"+pt[o],!0,r),"padding"!==n?h+=T.css(t,"border"+pt[o]+"Width",!0,r):a+=T.css(t,"border"+pt[o]+"Width",!0,r));return!i&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+l}function ue(t,e,n){var i=$t(t),r=(!g.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),s=r,o=Kt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&_(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,i),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+le(t,e,n||(r?"border":"content"),s,i,o)+"px"}function ce(t,e,n,i,r){return new ce.prototype.init(t,e,n,i,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Kt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=rt(e),h=Qt.test(e),l=t.style;if(h||(e=re(a)),o=T.cssHooks[e]||T.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(t,!1,i))?r:l[e];"string"==(s=typeof n)&&(r=ft.exec(n))&&r[1]&&(n=wt(t,e,r),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=r&&r[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,i))||(h?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,i){var r,s,o,a=rt(e);return Qt.test(e)||(e=re(a)),(o=T.cssHooks[e]||T.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,n)),void 0===r&&(r=Kt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,n,i){if(n)return!se.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):Zt(t,oe,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,s=$t(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===T.css(t,"boxSizing",!1,s),h=i?le(t,e,i,a,s):0;return a&&o&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-le(t,e,"border",!1,s)-.5)),h&&(r=ft.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),he(0,n,h)}}})),T.cssHooks.marginLeft=te(g.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Kt(t,"marginLeft"))||t.getBoundingClientRect().left-Zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+pt[i]+e]=s[i]||s[i-2]||s[0];return r}},"margin"!==t&&(T.cssHooks[t+e].set=he)})),T.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var i,r,s={},o=0;if(Array.isArray(e)){for(i=$t(t),r=e.length;o<r;o++)s[e[o]]=T.css(t,e[o],!1,i);return s}return void 0!==n?T.style(t,e,n):T.css(t,e)}),t,e,arguments.length>1)}}),T.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,i,r,s){this.elem=t,this.prop=n,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(T.cssNumber[n]?"":"px")},cur:function(){var t=ce.propHooks[this.prop];return t&&t.get?t.get(this):ce.propHooks._default.get(this)},run:function(t){var e,n=ce.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ce.propHooks._default.set(this),this}},ce.prototype.init.prototype=ce.prototype,ce.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ce.propHooks.scrollTop=ce.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ce.prototype.init,T.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ge):i.setTimeout(ge,T.fx.interval),T.fx.tick())}function ye(){return i.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=pt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function we(t,e,n){for(var i,r=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,e,t))return i}function be(t,e,n){var i,r,s=0,o=be.prefilters.length,a=T.Deferred().always((function(){delete h.elem})),h=function(){if(r)return!1;for(var e=de||ye(),n=Math.max(0,l.startTime+l.duration-e),i=1-(n/l.duration||0),s=0,o=l.tweens.length;s<o;s++)l.tweens[s].run(i);return a.notifyWith(t,[l,i,n]),i<1&&o?n:(o||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var i=T.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(i),i},stop:function(e){var n=0,i=e?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),u=l.props;for(function(t,e){var n,i,r,s,o;for(n in t)if(r=e[i=rt(n)],s=t[n],Array.isArray(s)&&(r=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),(o=T.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete t[i],s)n in t||(t[n]=s[n],e[n]=r);else e[i]=r}(u,l.opts.specialEasing);s<o;s++)if(i=be.prefilters[s].call(l,t,u,l.opts))return y(i.stop)&&(T._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return T.map(u,we,l),y(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),T.fx.timer(T.extend(h,{elem:t,anim:l,queue:l.opts.queue})),l}T.Animation=T.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,ft.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,s,o,a,h,l,u,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(i in n.queue||(null==(o=T._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,T.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[i],pe.test(r)){if(delete e[i],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||T.style(t,i)}if((h=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(i in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=g&&g.display)&&(l=at.get(t,"display")),"none"===(u=T.css(t,"display"))&&(l?u=l:(Nt([t],!0),l=t.style.display||l,u=T.css(t,"display"),Nt([t]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===T.css(t,"float")&&(h||(d.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),h=!1,f)h||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:l}),s&&(g.hidden=!m),m&&Nt([t],!0),d.done((function(){for(i in m||Nt([t]),at.remove(t,"fxshow"),f)T.style(t,i,f[i])}))),h=we(m?g[i]:0,i,d),i in g||(g[i]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=T.isEmptyObject(t),s=T.speed(e,n,i),o=function(){var e=be(this,T.extend({},t),s);(r||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",s=T.timers,o=at.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&me.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(n),e=!1,s.splice(r,1));!e&&n||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],s=T.timers,o=i?i.length:0;for(n.finish=!0,T.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var n=T.fn[e];T.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,i,r)}})),T.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),de=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){fe||(fe=!0,ge())},T.fx.stop=function(){fe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}}))},function(){var t=w.createElement("input"),e=w.createElement("select").appendChild(w.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=w.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,Ne=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}),T.extend({attr:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?T.prop(t,e,n):(1===s&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ne[e]||T.find.attr;Ne[e]=function(t,e,i){var r,s,o=e.toLowerCase();return i||(s=Ne[o],Ne[o]=r,r=null!=n(t,e,i)?o:null,Ne[o]=s),r}}));var ke=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function Te(t){return(t.match(G)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,n){var i,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ke.test(t.nodeName)||Se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,n,i,r,s,o;return y(t)?this.each((function(e){T(this).addClass(t.call(this,e,Ce(this)))})):(e=_e(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(s=0;s<e.length;s++)r=e[s],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=Te(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,i,r,s,o;return y(t)?this.each((function(e){T(this).removeClass(t.call(this,e,Ce(this)))})):arguments.length?(e=_e(t)).length?this.each((function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(s=0;s<e.length;s++)for(r=e[s];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=Te(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){T(this).toggleClass(t.call(this,n,Ce(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=_e(t),this.each((function(){if(a)for(s=T(this),r=0;r<n.length;r++)i=n[r],s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==t&&"boolean"!==o||((i=Ce(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Te(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Me=/\r/g;T.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=y(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,T(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Me,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,i,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:r.length;for(i=s<0?h:o?s:0;i<h;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(e=T(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,s=T.makeArray(e),o=r.length;o--;)((i=r[o]).selected=T.inArray(T.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},g.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=i.location,Ae={guid:Date.now()},Le=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,r){var s,o,a,h,l,u,c,d,p=[n||w],m=f.call(t,"type")?t.type:t,g=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Oe.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[T.expando]?t:new T.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[m]||{},r||!c.trigger||!1!==c.trigger.apply(n,e))){if(!r&&!c.noBubble&&!v(n)){for(h=c.delegateType||m,Oe.test(h+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||w)&&p.push(a.defaultView||a.parentWindow||i)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?h:c.bindType||m,(u=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&u.apply(o,e),(u=l&&o[l])&&u.apply&&st(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,r||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||l&&y(n[m])&&!v(n)&&((a=n[l])&&(n[l]=null),T.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),T.event.triggered=void 0,a&&(n[l]=a)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var De=/\[\]$/,We=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function qe(t,e,n,i){var r;if(Array.isArray(e))T.each(e,(function(e,r){n||De.test(t)?i(t,r):qe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==N(e))i(t,e);else for(r in e)qe(t+"["+r+"]",e[r],n,i)}T.param=function(t,e){var n,i=[],r=function(t,e){var n=y(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){r(this.name,this.value)}));else for(n in t)qe(n,t[n],e,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ie.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!Tt.test(t))})).map((function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(t){return{name:e.name,value:t.replace(We,"\r\n")}})):{name:e.name,value:n.replace(We,"\r\n")}})).get()}});var Re=/%20/g,Fe=/#.*$/,Be=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Ve=/^\/\//,Xe={},Ue={},Ge="*/".concat("*"),Ye=w.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,s=e.toLowerCase().match(G)||[];if(y(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function $e(t,e,n,i){var r={},s=t===Ue;function o(a){var h;return r[a]=!0,T.each(t[a]||[],(function(t,a){var l=a(e,n,i);return"string"!=typeof l||s||r[l]?s?!(h=l):void 0:(e.dataTypes.unshift(l),o(l),!1)})),h}return o(e.dataTypes[0])||!r["*"]&&o("*")}function Ze(t,e){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&T.extend(!0,t,i),t}Ye.href=Ee.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,T.ajaxSettings),e):Ze(T.ajaxSettings,t)},ajaxPrefilter:Qe(Xe),ajaxTransport:Qe(Ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,s,o,a,h,l,u,c,d,f=T.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?T(p):T.event,g=T.Deferred(),y=T.Callbacks("once memory"),v=f.statusCode||{},b={},x={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(l){if(!o)for(o={};e=ze.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)k.always(t[k.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||N;return n&&n.abort(e),S(0,e),this}};if(g.promise(k),f.url=((t||f.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(G)||[""],null==f.crossDomain){h=w.createElement("a");try{h.href=f.url,h.href=h.href,f.crossDomain=Ye.protocol+"//"+Ye.host!=h.protocol+"//"+h.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),$e(Xe,f,e,k),l)return k;for(c in(u=T.event&&f.global)&&0===T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!He.test(f.type),r=f.url.replace(Fe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Re,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Le.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Be,"$1"),d=(Le.test(r)?"&":"?")+"_="+Ae.guid+++d),f.url=r+d),f.ifModified&&(T.lastModified[r]&&k.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&k.setRequestHeader("If-None-Match",T.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ge+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||l))return k.abort();if(N="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=$e(Ue,f,e,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),l)return k;f.async&&f.timeout>0&&(a=i.setTimeout((function(){k.abort("timeout")}),f.timeout));try{l=!1,n.send(b,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,o,h){var c,d,w,b,x,N=e;l||(l=!0,a&&i.clearTimeout(a),n=void 0,s=h||"",k.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var i,r,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){h.unshift(r);break}if(h[0]in n)s=h[0];else{for(r in n){if(!h[0]||t.converters[r+" "+h[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(f,k,o)),!c&&T.inArray("script",f.dataTypes)>-1&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,i){var r,s,o,a,h,l={},u=t.dataTypes.slice();if(u[1])for(o in t.converters)l[o.toLowerCase()]=t.converters[o];for(s=u.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=u.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=l[h+" "+s]||l["* "+s]))for(r in l)if((a=r.split(" "))[1]===s&&(o=l[h+" "+a[0]]||l["* "+a[0]])){!0===o?o=l[r]:!0!==l[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+h+" to "+s}}}return{state:"success",data:e}}(f,b,k,c),c?(f.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(T.etag[r]=x)),204===t||"HEAD"===f.type?N="nocontent":304===t?N="notmodified":(N=b.state,d=b.data,c=!(w=b.error))):(w=N,!t&&N||(N="error",t<0&&(t=0))),k.status=t,k.statusText=(e||N)+"",c?g.resolveWith(p,[d,N,k]):g.rejectWith(p,[k,N,w]),k.statusCode(v),v=void 0,u&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?d:w]),y.fireWith(p,[k,N]),u&&(m.trigger("ajaxComplete",[k,f]),--T.active||T.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,n,i,r){return y(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:r,data:n,success:i},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return y(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){T(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=T.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,T.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Ae.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(t,e,n){var r,s,o,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||T.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=i[r],i[r]=function(){o=arguments},n.always((function(){void 0===s?T(i).removeProp(r):i[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),o&&y(s)&&s(o[0]),o=s=void 0})),"script"})),g.createHTMLDocument=((tn=w.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((i=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(i)):e=w),s=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Ot([t],e,s),s&&s.length&&T(s).remove(),T.merge([],r.childNodes)));var i,r,s},T.fn.load=function(t,e,n){var i,r,s,o=this,a=t.indexOf(" ");return a>-1&&(i=Te(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,n){var i,r,s,o,a,h,l=T.css(t,"position"),u=T(t),c={};"static"===l&&(t.style.position="relative"),a=u.offset(),s=T.css(t,"top"),h=T.css(t,"left"),("absolute"===l||"fixed"===l)&&(s+h).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(h)||0),y(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+r),"using"in e?e.using.call(t,c):u.css(c)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(i,"marginTop",!0),left:e.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||mt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;T.fn[t]=function(i){return tt(this,(function(t,i,r){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):t[i]=r}),t,i,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?T(t).position()[e]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){T.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return tt(this,(function(e,n,r){var s;return v(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?T.css(e,n,a):T.style(e,n,r,a)}),e,o?r:void 0,o)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||T.guid++,r},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=_,T.isFunction=y,T.isWindow=v,T.camelCase=rt,T.type=N,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var sn=i.jQuery,on=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=on),t&&i.jQuery===T&&(i.jQuery=sn),T},void 0===r&&(i.jQuery=i.$=T),T}))},704:function(t){var e;e=()=>(()=>{var t={56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],l=i.base?h[0]+i.base:h[0],u=s[l]||0,c="".concat(l," ").concat(u);s[l]=u+1;var d=n(c),f={css:h[1],media:h[2],sourceMap:h[3],supports:h[4],layer:h[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var s=i(t=t||[],r=r||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=i(t,r),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=h}}},113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&o[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},601:t=>{"use strict";t.exports=function(t){return t[1]}},645:function(t){var e;e=()=>(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){var e=0;return t.forEach((function(t){return e+=t})),e}function i(t){return n(t)/t.length}function r(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>f,average:()=>i,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>u,isBetweenExclusive:()=>c,isBetweenInclusive:()=>u,max:()=>l,mean:()=>i,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>r,sortNumbersAscending:()=>r,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,s=e.length;r<s;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return r(e),e}function a(t){if(0==t.length)return NaN;var e=o(t);if(e.length%2!=0)return e[Math.floor(e.length/2)];var n=e.length/2,r=n-1;return i([e[n],e[r]])}function h(t){if(0==t.length)return 1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.min(e,t)})),e}function l(t){if(0==t.length)return-1/0;var e=t[0];return t.slice(1).forEach((function(t){e=Math.max(e,t)})),e}function u(t,e,n){return t>=e&&t<=n}function c(t,e,n){return t>e&&t<n}function d(t,e,n){return t<e?e:t>n?n:t}function f(t,e,n){return Math.abs(t-e)<=n}function p(t){r(t),t.reverse()}function m(t){var e=o(t);return e.reverse(),e}function g(t){return t*(180/Math.PI)}function y(t){return t*(Math.PI/180)}function v(t,e){void 0===e&&(e=-Math.PI);var n=t-e;return e+((n%=2*Math.PI)>=0?n:n+2*Math.PI)}function w(t,e){var n=(e=v(e,t))-t;return(n<Math.PI/2||n>3*Math.PI/2)&&(t+=Math.PI),t}return e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{Box:()=>e});var t=n(986);class e{static bounding(n){let i=n.map((t=>e.matching(t))),r=(0,t.min)(i.map((t=>t.left))),s=(0,t.min)(i.map((t=>t.top))),o=(0,t.max)(i.map((t=>t.right)))-r,a=(0,t.max)(i.map((t=>t.bottom)))-s;return new e(r,s,o,a)}static matching(t){let{x:n,y:i,width:r,height:s}=t;return new e(n,i,r,s)}constructor(t,e,n,i){this.x=t,this.y=e,this.width=n,this.height=i}get centerX(){return this.minX+this.width/2}get centerY(){return this.minY+this.height/2}get minX(){return this.x}get minY(){return this.y}get maxX(){return this.minX+this.width}get maxY(){return this.minY+this.height}get top(){return this.minY}get right(){return this.maxX}get bottom(){return this.maxY}get left(){return this.minX}isBoundedBy(t){let n=e.matching(t);return this.minX>=n.minX&&this.minY>=n.minY&&this.maxX<=n.maxX&&this.maxY<=n.maxY}padded(t,n){return"number"!=typeof n&&(n=t),new e(this.x-t,this.y-n,this.width+2*t,this.height+2*n)}peripheralPoint(t){let e=this.width/2,n=this.height/2,i=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),r=this.centerX+i*Math.cos(t),s=this.centerY+i*Math.sin(t),o=i;return Math.abs(this.centerX-r)>e&&(o=Math.abs(e/Math.cos(t)),o=Number.isFinite(o)?o:n),Math.abs(this.centerY-s)>n&&(o=Math.abs(n/Math.sin(t)),o=Number.isFinite(o)?o:e),{x:this.centerX+o*Math.cos(t),y:this.centerY+o*Math.sin(t)}}}})(),i})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},865:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Qq:()=>h,YL:()=>a,zX:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.DKvRm2Iz8xnCJ3FyFRDv {\n position: fixed;\n\n display: flex;\n flex-direction: column;\n align-items: center;\n\n animation: zVywckd26nkyhEbH637w 1.5s;\n\n pointer-events: none;\n}\n\n@keyframes zVywckd26nkyhEbH637w {\n 0% {\n opacity: 0;\n }\n 66.6% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n.p5_D557pe0GpEcfAZAWo {\n margin: 0px;\n padding: 10px 19px;\n\n border-radius: 5px;\n\n background-color: black;\n box-shadow: 0px 0px 6px #d9d9e724;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 600;\n font-style: normal;\n color: white;\n\n text-wrap: nowrap;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.Z0ghuBmvyXYH9uep6VTd {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 18px 9px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",h="p5_D557pe0GpEcfAZAWo",l="Z0ghuBmvyXYH9uep6VTd";const u=o}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{Tooltip:()=>E});var t=n(72),e=n.n(t),r=n(825),s=n.n(r),o=n(659),a=n.n(o),h=n(56),l=n.n(h),u=n(540),c=n.n(u),d=n(113),f=n.n(d),p=n(865),m={};m.styleTagTransform=f(),m.setAttributes=l(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=c(),e()(p.Ay,m),p.Ay&&p.Ay.locals&&p.Ay.locals;var g,y,v,w,b,x,N,k,S,T,C,_=n(645),M=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class E{constructor(t){g.add(this),y.set(this,document.createElement("div")),v.set(this,document.createElement("p")),w.set(this,document.createElement("div")),b.set(this,5),x.set(this,void 0),N.set(this,(()=>{})),k.set(this,(()=>{})),M(this,y,"f").classList.add(p.YL),M(this,v,"f").classList.add(p.Qq),M(this,v,"f").textContent=t,M(this,y,"f").append(M(this,v,"f")),M(this,w,"f").classList.add(p.zX),M(this,y,"f").append(M(this,w,"f"))}get textContent(){return M(this,v,"f").textContent}set textContent(t){let e=!M(this,g,"m",C).call(this);M(this,g,"m",T).call(this),M(this,v,"f").textContent=t,e&&M(this,g,"m",S).call(this)}get owner(){return M(this,x,"f")}set owner(t){M(this,x,"f")&&(M(this,x,"f").removeEventListener("mouseover",M(this,N,"f")),M(this,x,"f").removeEventListener("mouseout",M(this,k,"f"))),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,x,t),t&&(t.addEventListener("mouseover",(()=>M(this,g,"m",S).call(this))),t.addEventListener("mouseout",(()=>M(this,g,"m",T).call(this))))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,N=new WeakMap,k=new WeakMap,g=new WeakSet,S=function(){if(M(this,y,"f").style.left="0px",M(this,y,"f").style.top="0px",document.body.append(M(this,y,"f")),!M(this,x,"f"))return;let t=M(this,y,"f").getBoundingClientRect().width,e=M(this,v,"f").getBoundingClientRect().height+M(this,w,"f").getBoundingClientRect().height/2,n=_.Box.matching(M(this,x,"f").getBoundingClientRect()).padded(M(this,b,"f"));M(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",M(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},T=function(){M(this,y,"f").remove()},C=function(){return!document.body.contains(M(this,y,"f"))}})(),i})(),t.exports=e()},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,V:()=>a});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,".yIqz0290EZWCxr9FN3XJ {\n border-radius: 50%;\n\n width: 26px;\n height: 26px;\n\n padding: 3.5px;\n\n background-color: white;\n\n border: solid 1px #767676;\n\n cursor: pointer;\n}\n\n.yIqz0290EZWCxr9FN3XJ:hover {\n border-color: black;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch {\n border-radius: 50%;\n\n border-width: 0px;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-moz-color-swatch {\n border-radius: 50%;\n\n border: solid 1px white;\n}\n\n.yIqz0290EZWCxr9FN3XJ::-webkit-color-swatch-wrapper {\n padding: 1px;\n}\n",""]);var a="yIqz0290EZWCxr9FN3XJ";const h=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Wu:()=>h,kL:()=>a,r9:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.X7DPHJCVbRpHEB9gcm0Z {\n position: relative;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 4px 14px;\n border-radius: 3px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #06064a;\n\n background-color: rgba(219, 219, 255, 0.9);\n\n cursor: pointer;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.BAlKKbk1BfHF_fPz1gpc {\n color: #9797cb;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: rgba(175, 175, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: rgba(147, 147, 255, 0.92);\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",h="vDAwbQmWCc39SmNMFRtv",l="BAlKKbk1BfHF_fPz1gpc";const u=o},726:function(t){var e;e=()=>(()=>{var t={854:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t){return"number"==typeof t}function i(t){return n(t)&&Number.isFinite(t)}function r(t){return n(t)&&!Number.isFinite(t)}function s(t){return i(t)&&t>0}function o(t){return i(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function l(t){return"object"==typeof t&&null!==t}function u(t){return Array.isArray(t)}function c(t){return u(t)&&0==t.length}function d(t){return u(t)&&t.length>0}function f(t){return u(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return u(t)&&t.every(i)}function g(t){return u(t)&&t.every(r)}function y(t){return u(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>u,isEmptyArray:()=>c,isFiniteNumber:()=>i,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>r,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>l,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";function t(t,e){for(let[n,i]of Object.entries(e))t.setAttribute(n,i)}n.r(i),n.d(i,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>N,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>u,bringToFront:()=>m,isSVGGraphicsElement:()=>k,isSVGGraphicsElementsArray:()=>T,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var r,s=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const l=function(t,n,i){if(e.randomUUID&&!n&&!t)return e.randomUUID();var r=(t=t||{}).random||(t.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){i=i||0;for(var s=0;s<16;++s)n[i+s]=r[s];return n}return function(t,e=0){return(a[t[e+0]]+a[t[e+1]]+a[t[e+2]]+a[t[e+3]]+"-"+a[t[e+4]]+a[t[e+5]]+"-"+a[t[e+6]]+a[t[e+7]]+"-"+a[t[e+8]]+a[t[e+9]]+"-"+a[t[e+10]]+a[t[e+11]]+a[t[e+12]]+a[t[e+13]]+a[t[e+14]]+a[t[e+15]]).toLowerCase()}(r)};function u(t){t.id="uuid-"+l()}class c{constructor(t){this.targetSVGDoc=t}get width(){return this.targetSVGDoc.viewBox.baseVal.width}get height(){return this.targetSVGDoc.viewBox.baseVal.height}get minX(){return this.targetSVGDoc.viewBox.baseVal.x}get maxX(){return this.minX+this.width}get minY(){return this.targetSVGDoc.viewBox.baseVal.y}get maxY(){return this.minY+this.height}get horizontalScaling(){return this.targetSVGDoc.width.baseVal.value/this.width}get verticalScaling(){return this.targetSVGDoc.height.baseVal.value/this.height}setScaling(t){this.targetSVGDoc.setAttribute("width",""+t*this.width),this.targetSVGDoc.setAttribute("height",""+t*this.height)}get clientWidth(){return this.targetSVGDoc.getBoundingClientRect().width}get clientHeight(){return this.targetSVGDoc.getBoundingClientRect().height}get horizontalClientScaling(){return this.clientWidth/this.width}get verticalClientScaling(){return this.clientHeight/this.height}get minClientX(){return this.targetSVGDoc.getBoundingClientRect().x}get minClientY(){return this.targetSVGDoc.getBoundingClientRect().y}fromClientX(t){return this.minX+(t-this.minClientX)/this.horizontalClientScaling}fromClientY(t){return this.minY+(t-this.minClientY)/this.verticalClientScaling}fromClientCoordinates(t,e){return[this.fromClientX(t),this.fromClientY(e)]}fromClientPoint(t){return{x:this.fromClientX(t.x),y:this.fromClientY(t.y)}}toClientX(t){return this.minClientX+this.horizontalClientScaling*(t-this.minX)}toClientY(t){return this.minClientY+this.verticalClientScaling*(t-this.minY)}toClientCoordinates(t,e){return[this.toClientX(t),this.toClientY(e)]}toClientPoint(t){return{x:this.toClientX(t.x),y:this.toClientY(t.y)}}}class d{constructor(t){this.targetSVGDoc=t}set(t){let e=this.targetSVGDoc.viewBox.baseVal;this.targetSVGDoc.setAttribute("width",t*e.width+"px"),this.targetSVGDoc.setAttribute("height",t*e.height+"px")}}class f{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.width/e.width}}class p{constructor(t){this.targetSVGDoc=t}get(){let t=this.targetSVGDoc.getBoundingClientRect(),e=this.targetSVGDoc.viewBox.baseVal;return t.height/e.height}}function m(t){let e=t.parentNode;e&&e.appendChild(t)}function g(t){let e=t.parentNode;e&&e.prepend(t)}var y,v=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class w{constructor(t){y.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,y,t)}toString(){return v(this,y,"f").innerHTML}set(t){v(this,y,"f").innerHTML=t}}y=new WeakMap;var b,x=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class N{constructor(t){b.set(this,void 0),function(t,e,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");e.set(t,n)}(this,b,t)}toString(){return x(this,b,"f").outerHTML}set(t){let e=document.createElementNS("http://www.w3.org/2000/svg","svg");if(e.style.height="0px",document.body.append(e),e.innerHTML=t,!e.firstElementChild)throw new Error("Outer XML must encode an SVG element.");if(e.childNodes.length>1)throw new Error("Outer XML cannot encode multiple DOM nodes.");if(e.firstElementChild.tagName.toLowerCase()!=x(this,b,"f").tagName.toLowerCase())throw new Error("Outer XML must specify an SVG element with the same tag name as the target SVG element.");[...x(this,b,"f").attributes].forEach((t=>x(this,b,"f").removeAttribute(t.name))),[...e.firstElementChild.attributes].forEach((t=>x(this,b,"f").setAttribute(t.name,t.value))),x(this,b,"f").innerHTML=e.firstElementChild.innerHTML,e.remove()}}function k(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var S=n(854);function T(t){return(0,S.isArray)(t)&&t.every(k)}})(),i})(),t.exports=e()},825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},881:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f,kv:()=>d});var i=n(601),r=n.n(i),s=n(314),o=n.n(s),a=n(417),h=n.n(a),l=new URL(n(51),n.b),u=o()(r()),c=h()(l);u.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid hsl(240, 6.6%, 70.2%);\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: white;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #2b2b2f;\n\n background-color: #2b2b2f;\n\n background-image: url(${c});\n}\n\n.pMUxgRC_f4NzkoelkDpX:hover {\n transform: scale(1.1);\n transition: transform 0.1s;\n}\n\n.vYZXo8oaWpWVgqUCMYTb:active {\n transform: scale(1);\n transition: transform 0s;\n}\n`,""]);var d="pMUxgRC_f4NzkoelkDpX";const f=u},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,Qq:()=>h,lI:()=>a,r9:()=>l});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.XCtUcg96Mkd2YGqGvTjm {\n position: relative;\n\n align-self: start;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: blue;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n\n cursor: pointer;\n}\n\n.XCtUcg96Mkd2YGqGvTjm:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: underline;\n}\n\n.IgtWfVpmdN_e04k18xHb {\n cursor: default;\n}\n\n.IgtWfVpmdN_e04k18xHb .qTVXpnB_go4Q_8V0QAhx {\n pointer-events: none;\n\n color: #a9a9ff;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",h="qTVXpnB_go4Q_8V0QAhx",l="IgtWfVpmdN_e04k18xHb";const u=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>c,eB:()=>f,ho:()=>l,iE:()=>d,qM:()=>a,vM:()=>u});var i=n(601),r=n.n(i),s=n(314),o=n.n(s)()(r());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 10px 0px 0px 12px;\n\n display: none;\n flex-direction: column;\n}\n\n.dJmYzq3wi8hxLecdDaOF .VFDUY2z_WgJp1fVc8TCw {\n display: flex;\n}\n\n.Z3lHB1W2K4m8JuZOnWs9 {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 400;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 18px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n._YkLdMiLPhNIvuLLypQE {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: black;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",h="VFDUY2z_WgJp1fVc8TCw",l="dJmYzq3wi8hxLecdDaOF",u="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",d="f1LDX7M42DUD9AT6Mh5p",f="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={id:i,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.exports}n.m=t,n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{EditingForm:()=>bh});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>qe,height:()=>Fe,rx:()=>je,ry:()=>De,width:()=>Re,x:()=>We,y:()=>Pe});var e={};n.r(e),n.d(e,{from:()=>Ve,to:()=>Xe});var r={};n.r(r),n.d(r,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>An,clear:()=>Ln,move:()=>On,plot:()=>jn,size:()=>Dn});var o={};n.r(o),n.d(o,{amove:()=>hi,ax:()=>oi,ay:()=>ai,build:()=>li,center:()=>si,cx:()=>ii,cy:()=>ri,length:()=>Kn,move:()=>ni,plain:()=>Jn,x:()=>ti,y:()=>ei});var a={};n.r(a),n.d(a,{dmove:()=>mi,dx:()=>gi,dy:()=>yi,height:()=>vi,move:()=>wi,size:()=>bi,width:()=>xi,x:()=>Ni,y:()=>ki});var h=n(72),l=n.n(h),u=n(825),c=n.n(u),d=n(659),f=n.n(d),p=n(56),m=n.n(p),g=n(540),y=n.n(g),v=n(113),w=n.n(v),b=n(420),x={};x.styleTagTransform=w(),x.setAttributes=m(),x.insert=f().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),l()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var N=n(633),k={};k.styleTagTransform=w(),k.setAttributes=m(),k.insert=f().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=y(),l()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var S=n(584),T={};T.styleTagTransform=w(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=c(),T.insertStyleElement=y(),l()(S.Ay,T),S.Ay&&S.Ay.locals&&S.Ay.locals;var C,_=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class M{constructor(){this.domNode=document.createElement("div"),this.caret=new E,C.set(this,document.createElement("p")),this.domNode.classList.add(S.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),_(this,C,"f").classList.add(S.Qq),this.domNode.append(_(this,C,"f"))}get textContent(){return _(this,C,"f").textContent}set textContent(t){_(this,C,"f").textContent=t}}C=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(S.OW),this.domNode.setAttribute("viewBox","0 0 6 10"),this.domNode.setAttribute("width","6"),this.domNode.setAttribute("height","10"),this.domNode.innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(S.Z7)}pointDown(){this.domNode.classList.add(S.Z7)}}var A=n(887),L={};L.styleTagTransform=w(),L.setAttributes=m(),L.insert=f().bind(null,"head"),L.domAPI=c(),L.insertStyleElement=y(),l()(A.Ay,L),A.Ay&&A.Ay.locals&&A.Ay.locals;var O,j=n(704),D=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class W{constructor(t,e){this.domNode=document.createElement("div"),O.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(A.lI),D(this,O,"f").classList.add(A.Qq),D(this,O,"f").textContent=null!=t?t:"",this.domNode.append(D(this,O,"f")),this.tooltip.owner=this.domNode}get textContent(){return D(this,O,"f").textContent}set textContent(t){D(this,O,"f").textContent=t}disable(){this.domNode.classList.add(A.r9)}enable(){this.domNode.classList.remove(A.r9)}}O=new WeakMap;var P=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=f().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=y(),l()(P.A,I),P.A&&P.A.locals&&P.A.locals;var q,R;class F{constructor(t){q.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(P.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}(this,q,"m",R).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}q=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var B=n(678),z={};z.styleTagTransform=w(),z.setAttributes=m(),z.insert=f().bind(null,"head"),z.domAPI=c(),z.insertStyleElement=y(),l()(B.Ay,z),B.Ay&&B.Ay.locals&&B.Ay.locals;var H,V,X=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},U=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class G{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),H.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(B.ZZ),X(this,H,e,"f"),X(this,V,document.createElement("a"),"f"),U(this,V,"f").textContent=t,U(this,V,"f").target="_blank",U(this,V,"f").rel="noopener noreferrer",U(this,V,"f").style.marginLeft="8px",this.domNode.append(e,U(this,V,"f"))}get infoLink(){return U(this,V,"f").href}set infoLink(t){U(this,V,"f").href=t,t?U(this,V,"f").classList.add(B.o3):U(this,V,"f").classList.remove(B.o3)}}H=new WeakMap,V=new WeakMap;var Y,Q=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class ${constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,Y,new G(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return Q(this,Y,"f").domNode}get infoLink(){return Q(this,Y,"f").infoLink}set infoLink(t){Q(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=f().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),l()(Z.Ay,J),Z.Ay&&Z.Ay.locals&&Z.Ay.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.kv)}}var tt,et=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class nt{constructor(t,e){this.name=t,tt.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,tt,new G(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var it=n(709),rt={};rt.styleTagTransform=w(),rt.setAttributes=m(),rt.insert=f().bind(null,"head"),rt.domAPI=c(),rt.insertStyleElement=y(),l()(it.A,rt),it.A&&it.A.locals&&it.A.locals;class st{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(it.V)}}var ot,at=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class ht{constructor(t,e){this.name=t,ot.set(this,void 0),function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(t,n):r?r.value=n:e.set(t,n)}(this,ot,new G(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return at(this,ot,"f").domNode}get infoLink(){return at(this,ot,"f").infoLink}set infoLink(t){at(this,ot,"f").infoLink=t}}ot=new WeakMap;const lt={},ut=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)ft(Object.getOwnPropertyNames(e)),lt[t]=Object.assign(lt[t]||{},e);else for(const e in t)ct(e,t[e])}function dt(t){return lt[t]||{}}function ft(t){ut.push(...t)}function pt(t,e){let n;const i=t.length,r=[];for(n=0;n<i;n++)r.push(e(t[n]));return r}function mt(t){return t%360*Math.PI/180}function gt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yt(t,e,n,i){return null!=e&&null!=n||(i=i||t.bbox(),null==e?e=i.width/i.height*n:null==n&&(n=i.height/i.width*e)),{width:e,height:n}}function vt(t,e){const n=t.origin;let i=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([i,r]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof i,o="string"==typeof r;if(s||o){const{height:t,width:n,x:a,y:h}=e.bbox();s&&(i=i.includes("left")?a:i.includes("right")?a+n:a+n/2),o&&(r=r.includes("top")?h:r.includes("bottom")?h+t:h+t/2)}return[i,r]}const wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(t,e,n={})=>{const i={...e};for(const t in i)i[t].valueOf()===n[t]&&delete i[t];Object.keys(i).length?t.node.setAttribute("data-svgjs",JSON.stringify(i)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},Nt="http://www.w3.org/2000/svg",kt="http://www.w3.org/2000/xmlns/",St="http://www.w3.org/1999/xlink",Tt={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Ct{}const _t={},Mt="___SYMBOL___ROOT___";function Et(t,e=Nt){return Tt.document.createElementNS(e,t)}function At(t,e=!1){if(t instanceof Ct)return t;if("object"==typeof t)return jt(t);if(null==t)return new _t[Mt];if("string"==typeof t&&"<"!==t.charAt(0))return jt(Tt.document.querySelector(t));const n=e?Tt.document.createElement("div"):Et("svg");return n.innerHTML=t,t=jt(n.firstChild),n.removeChild(n.firstChild),t}function Lt(t,e){return e&&(e instanceof Tt.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Et(t)}function Ot(t){if(!t)return null;if(t.instance instanceof Ct)return t.instance;if("#document-fragment"===t.nodeName)return new _t.Fragment(t);let e=gt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":_t[e]||(e="Dom"),new _t[e](t)}let jt=Ot;function Dt(t,e=t.name,n=!1){return _t[e]=t,n&&(_t[Mt]=t),ft(Object.getOwnPropertyNames(t.prototype)),t}let Wt=1e3;function Pt(t){return"Svgjs"+gt(t)+Wt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Pt(t.nodeName),t):t}function qt(t,e){let n,i;for(i=(t=Array.isArray(t)?t:[t]).length-1;i>=0;i--)for(n in e)t[i].prototype[n]=e[n]}function Rt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=At(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=At(t)).before(this),this},insertAfter:function(t){return(t=At(t)).after(this),this}});const Ft=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Bt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,zt=/rgb\((\d+),(\d+),(\d+)\)/,Ht=/(#[a-z_][a-z0-9\-_]*)/i,Vt=/\)\s*,?\s*/,Xt=/\s/g,Ut=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Gt=/^rgb\(/,Yt=/^(\s+)?$/,Qt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$t=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Zt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t){let e;const n=t.length,i=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&i.push(t[e]);return i}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:i,sin:r,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,i=360*n();return new ne(t,e,i,"lch")}if("sine"===t){const t=i(80*r(2*s*(e=null==e?n():e)/.5+.01)+150),o=i(50*r(2*s*e/.5+4.6)+200),a=i(100*r(2*s*e/.5+2.3)+150);return new ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,i=360*n();return new ne(t,e,i,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,i=360*n();return new ne(t,e,i,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),i=255*n();return new ne(t,e,i)}if("lab"===t){const t=100*n(),e=256*n()-128,i=256*n()-128;return new ne(t,e,i,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ut.test(t)||Gt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-i,1-r,1-s);return 1===o?new ne(0,0,0,1,"cmyk"):new ne((1-i-o)/(1-o),(1-r-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=Math.max(i,r,s),a=Math.min(i,r,s),h=(o+a)/2,l=o===a,u=o-a;return new ne(360*(l?0:o===i?((r-s)/u+(r<s?6:0))/6:o===r?((s-i)/u+2)/6:o===s?((i-r)/u+4)/6:0),100*(l?0:h>.5?u/(2-o-a):u/(o+a)),100*h,"hsl")}init(t=0,e=0,n=0,i=0,r="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)r="string"==typeof i?i:r,i="string"==typeof i?0:i,Object.assign(this,{_a:t,_b:e,_c:n,_d:i,space:r});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=function(t,e){const n=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Gt.test(t)){const e=t.replace(Xt,""),[n,i,r]=zt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}else{if(!Ut.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,i,r]=Bt.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:n,_b:i,_c:r,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:h}=this,l="rgb"===this.space?{r:s,g:o,b:a}:"xyz"===this.space?{x:s,y:o,z:a}:"hsl"===this.space?{h:s,s:o,l:a}:"lab"===this.space?{l:s,a:o,b:a}:"lch"===this.space?{l:s,c:o,h:a}:"cmyk"===this.space?{c:s,m:o,y:a,k:h}:{};Object.assign(this,l)}lab(){const{x:t,y:e,z:n}=this.xyz();return new ne(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),i=Math.sqrt(e**2+n**2);let r=180*Math.atan2(n,e)/Math.PI;return r<0&&(r*=-1,r=360-r),new ne(t,i,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:i,a:r,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;r=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(i+16)/116,a=r/500+o,h=o-s/200,l=16/116,u=.008856,c=7.787;t=.95047*(a**3>u?a**3:(a-l)/c),e=1*(o**3>u?o**3:(o-l)/c),n=1.08883*(h**3>u?h**3:(h-l)/c)}const i=3.2406*t+-1.5372*e+-.4986*n,r=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,h=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new ne(255*h,255*l,255*u)}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e)return n*=255,new ne(n,n,n);const i=n<.5?n*(1+e):n+e-n*e,r=2*n-i,s=255*ee(r,i,t+1/3),o=255*ee(r,i,t),a=255*ee(r,i,t-1/3);return new ne(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:i}=this,r=255*(1-Math.min(1,t*(1-i)+i)),s=255*(1-Math.min(1,e*(1-i)+i)),o=255*(1-Math.min(1,n*(1-i)+i));return new ne(r,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:i,space:r}=this;return[t,e,n,i,r]}toHex(){const[t,e,n]=this._clamped().map(Kt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[i,r,s]=[t,e,n].map((t=>t/255)),o=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,l=(.4124*o+.3576*a+.1805*h)/.95047,u=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=l>.008856?Math.pow(l,1/3):7.787*l+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new ne(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:i,min:r,round:s}=Math;return[t,e,n].map((t=>i(0,r(s(t),255))))}}class ie{constructor(...t){this.init(...t)}clone(){return new ie(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function re(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,i=t.flip&&(e||"y"===t.flip)?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,s=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,a=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i,h=t.shear||0,l=t.rotate||t.theta||0,u=new ie(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=u.x,d=u.y,f=new ie(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new ie(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new ie(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:r,skewY:s,shear:h,theta:l,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:d,px:p,py:m}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const i=t.a*e.a+t.c*e.b,r=t.b*e.a+t.d*e.b,s=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,h=t.f+t.b*e.e+t.d*e.f;return n.a=i,n.b=r,n.c=s,n.d=o,n.e=a,n.f=h,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const i=t||0,r=e||0;return this.translateO(-i,-r).lmultiplyO(n).translateO(i,r)}clone(){return new se(this)}decompose(t=0,e=0){const n=this.a,i=this.b,r=this.c,s=this.d,o=this.e,a=this.f,h=n*s-i*r,l=h>0?1:-1,u=l*Math.sqrt(n*n+i*i),c=Math.atan2(l*i,l*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*r+i*s)/h,g=r*u/(m*n-i)||s*u/(m*i+n);return{scaleX:u,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*u+e*(m*f*u-p*g),translateY:a-e+t*p*u+e*(m*p*u+f*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new se(t);return re(this.a,e.a)&&re(this.b,e.b)&&re(this.c,e.c)&&re(this.d,e.d)&&re(this.e,e.e)&&re(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Me?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,s=this.f,o=t*i-e*n;if(!o)throw new Error("Cannot invert "+this);const a=i/o,h=-e/o,l=-n/o,u=t/o,c=-(a*r+l*s),d=-(h*r+u*s);return this.a=a,this.b=h,this.c=l,this.d=u,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=mt(t);const i=Math.cos(t),r=Math.sin(t),{a:s,b:o,c:a,d:h,e:l,f:u}=this;return this.a=s*i-o*r,this.b=o*i+s*r,this.c=a*i-h*r,this.d=h*i+a*r,this.e=l*i-u*r+n*r-e*i+e,this.f=u*i+l*r-e*r-n*i+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,i=0){3===arguments.length&&(i=n,n=e,e=t);const{a:r,b:s,c:o,d:a,e:h,f:l}=this;return this.a=r*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=l*e-i*e+i,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:i,b:r,c:s,d:o,e:a,f:h}=this;return this.a=i+r*t,this.c=s+o*t,this.e=a+h*t-n*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,i=0){3===arguments.length&&(i=n,n=e,e=t),t=mt(t),e=mt(e);const r=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:l,e:u,f:c}=this;return this.a=o+a*r,this.b=a+o*s,this.c=h+l*r,this.d=l+h*s,this.e=u+c*r-i*r,this.f=c+u*s-n*s,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:i}=new ie(e.ox,e.oy).transform(this),r=(new se).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-i).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,i);if(isFinite(e.px)||isFinite(e.py)){const t=new ie(n,i).transform(r),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;r.translateO(s,o)}return r.translateO(e.tx,e.ty),r}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function oe(){if(!oe.nodes){const t=At().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=Tt.document.body||Tt.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}Dt(se,"Matrix");class he{constructor(...t){this.init(...t)}addOffset(){return this.x+=Tt.window.pageXOffset,this.y+=Tt.window.pageYOffset,new he(this)}init(t){return t="string"==typeof t?t.split(Zt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x+t.width)-e,r=Math.max(this.y+this.height,t.y+t.height)-n;return new he(e,n,i,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof se||(t=new se(t));let e=1/0,n=-1/0,i=1/0,r=-1/0;return[new ie(this.x,this.y),new ie(this.x2,this.y),new ie(this.x,this.y2),new ie(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),i=Math.min(i,s.y),r=Math.max(r,s.y)})),new he(e,i,n-e,r-i)}}function le(t,e,n){let i;try{if(i=e(t.node),ae(i)&&(r=t.node)!==Tt.document&&!(Tt.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Tt.document}).call(Tt.document.documentElement,r))throw new Error("Element not in the dom")}catch(e){i=n(t)}var r;return i}ct({viewbox:{viewbox(t,e,n,i){return null==t?new he(this.attr("viewBox")):this.attr("viewBox",new he(t,e,n,i))},zoom(t,e){let{width:n,height:i}=this.attr(["width","height"]);if((n||i)&&"string"!=typeof n&&"string"!=typeof i||(n=this.node.clientWidth,i=this.node.clientHeight),!n||!i)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),s=n/r.width,o=i/r.height,a=Math.min(s,o);if(null==t)return a;let h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new ie(n/2/s+r.x,i/2/o+r.y);const l=new he(r).transform(new se({scale:h,origin:e}));return this.viewbox(l)}}}),Dt(he,"Box");class ue extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=ue;qt([ue],{each(t,...e){return"function"==typeof t?this.map(((e,n,i)=>t.call(e,e,n,i))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const de=["toArray","constructor","each"];function fe(t,e){return new ce(pt((e||Tt.document).querySelectorAll(t),(function(t){return Ot(t)})))}ue.extend=function(t){t=t.reduce(((t,e)=>(de.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),qt([ue],t)};let pe=0;const me={};function ge(t){let e=t.getEventHolder();return e===Tt.window&&(e=me),e.events||(e.events={}),e.events}function ye(t){return t.getEventTarget()}function ve(t,e,n,i,r){const s=n.bind(i||t),o=At(t),a=ge(o),h=ye(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),e.forEach((function(t){const e=t.split(".")[0],i=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][i]=a[e][i]||{},a[e][i][n._svgjsListenerId]=s,h.addEventListener(e,s,r||!1)}))}function we(t,e,n,i){const r=At(t),s=ge(r),o=ye(r);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,l;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],i||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(l in s[e][a])we(o,[e,a].join("."),l);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&we(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])we(o,[e,h].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===Tt.window&&(e=me),e.events&&(e.events={})}(r)}}))}class be extends Ct{addEventListener(){}dispatch(t,e,n){return function(t,e,n,i){const r=ye(t);return e instanceof Tt.window.Event||(e=new Tt.window.CustomEvent(e,{detail:n,cancelable:!0,...i})),r.dispatchEvent(e),e}(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const e in n)for(const i in n[e])n[e][i](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return we(this,t,e,n),this}on(t,e,n,i){return ve(this,t,e,n,i),this}removeEventListener(){}}function xe(){}Dt(be,"EventTarget");const Ne={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ke extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Zt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Se{constructor(...t){this.init(...t)}convert(t){return new Se(this.value,t)}divide(t){return t=new Se(t),new Se(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(Ft))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Se&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Se(t),new Se(this-t,this.unit||t.unit)}plus(t){return t=new Se(t),new Se(this+t,this.unit||t.unit)}times(t){return t=new Se(t),new Se(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Te=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ce=[];class _e extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=At(t)).removeNamespace&&this.node instanceof Tt.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return At(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Ot(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let i,r;for(i=0,r=n.length;i<r;i++)t.apply(n[i],[i,n]),e&&n[i].each(t,e);return this}element(t,e){return this.put(new _e(Et(t),e))}first(){return Ot(this.node.firstChild)}get(t){return Ot(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=Pt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Ot(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Ot(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Ot(e.node.parentNode));return e}put(t,e){return t=At(t),this.add(t,e),t}putIn(t,e){return At(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=At(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,i=this.attr(e);for(const t in i)"number"==typeof i[t]&&(i[t]=Math.round(i[t]*n)/n);return this.attr(i),this}svg(t,e){return this.xml(t,e,Nt)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=Ot(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const i=Et("wrapper",n),r=Tt.document.createDocumentFragment();i.innerHTML=t;for(let t=i.children.length;t--;)r.appendChild(i.firstElementChild);const s=this.parent();return e?this.replace(r)&&s:this.add(r)}}qt(_e,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Qt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Ne[t]:Qt.test(e)?parseFloat(e):e;"number"==typeof(e=Ce.reduce(((e,n)=>n(t,e,this)),e))?e=new Se(e):Te.has(t)&&ne.isColor(e)?e=new ne(e):e.constructor===Array&&(e=new ke(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return fe(t,this.node)},findOne:function(t){return Ot(this.node.querySelector(t))}}),Dt(_e,"Dom");class Me extends _e{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Se(t).plus(this.x()))}dy(t=0){return this.y(new Se(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=At(t));const n=new ce;let i=this;for(;(i=i.parent())&&i.node!==Tt.document&&"#document-fragment"!==i.nodeName&&(n.push(i),e||i.node!==t.node)&&(!e||!i.matches(t));)if(i.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Ht);return e?At(e[1]):null}root(){const t=this.parent(_t[Mt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=yt(this,t,e);return this.width(new Se(n.width)).height(new Se(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}qt(Me,{bbox:function(){const t=le(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new he(t)},rbox:function(t){const e=le(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new he(e);return t?n.transform(t.screenCTM().inverseO()):n.addOffset()},inside:function(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height},point:function(t,e){return new ie(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),Dt(Me,"Element");const Ee={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof ne||ne.isRgb(e)||e instanceof Me)this.attr(t,e);else for(n=Ee[t].length-1;n>=0;n--)null!=e[Ee[t][n]]&&this.attr(Ee.prefix(t,Ee[t][n]),e[Ee[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,i,r,s){return null==t?new se(this):this.attr("transform",new se(t,e,n,i,r,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:i},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,i){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:i},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Se(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ie(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Vt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(this.node))return this.addTo(t,e);const n=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(i.multiply(n)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:vt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Ae extends Me{flatten(){return this.each((function(){if(this instanceof Ae)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(n,i){return i[i.length-n-1].toParent(t,e)})),this.remove()}}Dt(Ae,"Container");class Le extends Ae{constructor(t,e=t){super(Lt("defs",t),e)}flatten(){return this}ungroup(){return this}}Dt(Le,"Defs");class Oe extends Me{}function je(t){return this.attr("rx",t)}function De(t){return this.attr("ry",t)}function We(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pe(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function qe(t){return this.attr("cy",t)}function Re(t){return null==t?2*this.rx():this.rx(new Se(t).divide(2))}function Fe(t){return null==t?2*this.ry():this.ry(new Se(t).divide(2))}Dt(Oe,"Shape");class Be extends Oe{constructor(t,e=t){super(Lt("ellipse",t),e)}size(t,e){const n=yt(this,t,e);return this.rx(new Se(n.width).divide(2)).ry(new Se(n.height).divide(2))}}qt(Be,t),ct("Container",{ellipse:Rt((function(t=0,e=t){return this.put(new Be).size(t,e).move(0,0)}))}),Dt(Be,"Ellipse");class ze extends _e{constructor(t=Tt.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"==typeof t&&(n=e,e=t,t=null),null==t||"function"==typeof t){const t=new _e(Et("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Dt(ze,"Fragment");const He=ze;function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Se(t),fy:new Se(e)}):this.attr({x1:new Se(t),y1:new Se(e)})}function Xe(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Se(t),cy:new Se(e)}):this.attr({x2:new Se(t),y2:new Se(e)})}class Ue extends Ae{constructor(t,e){super(Lt(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return fe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}qt(Ue,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Rt((function(t,e){return this.put(new Ue(t)).update(e)}))}}),Dt(Ue,"Gradient");class Ge extends Ae{constructor(t,e=t){super(Lt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new he}targets(){return fe("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Rt((function(t,e,n){return this.put(new Ge).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Dt(Ge,"Pattern");class Ye extends Oe{constructor(t,e=t){super(Lt("image",t),e)}load(t,e){if(!t)return this;const n=new Tt.window.Image;return ve(n,"load",(function(t){const i=this.parent(Ge);0===this.width()&&0===this.height()&&this.size(n.width,n.height),i instanceof Ge&&0===i.width()&&0===i.height()&&i.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ve(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,St)}}var Qe;Qe=function(t,e,n){return"fill"!==t&&"stroke"!==t||$t.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ce.push(Qe),ct({Container:{image:Rt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),Dt(Ye,"Image");class $e extends ke{bbox(){let t=-1/0,e=-1/0,n=1/0,i=1/0;return this.forEach((function(r){t=Math.max(r[0],t),e=Math.max(r[1],e),n=Math.min(r[0],n),i=Math.min(r[1],i)})),new he(n,i,t-n,e-i)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Zt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,i=t.length;n<i;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const i=this.bbox();for(n=this.length-1;n>=0;n--)i.width&&(this[n][0]=(this[n][0]-i.x)*t/i.width+i.x),i.height&&(this[n][1]=(this[n][1]-i.y)*e/i.height+i.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));for(let e=this.length;e--;){const[n,i]=this[e];this[e][0]=t.a*n+t.c*i+t.e,this[e][1]=t.b*n+t.d*i+t.f}return this}}const Ze=$e;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends Oe{constructor(t,e=t){super(Lt("line",t),e)}array(){return new $e([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,i){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:i}:new $e(t).toLine(),this.attr(t))}size(t,e){const n=yt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}qt(nn,r),ct({Container:{line:Rt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),Dt(nn,"Line");class rn extends Ae{constructor(t,e=t){super(Lt("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function sn(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Rt((function(t,e,n){return this.put(new rn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,i){let r=["marker"];return"all"!==t&&r.push(t),r=r.join("-"),t=arguments[1]instanceof rn?arguments[1]:this.defs().marker(e,n,i),this.attr(r,t)}}}),Dt(rn,"Marker");const on={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,i){return function(r){return r<0?t>0?e/t*r:n>0?i/n*r:0:r>1?n<1?(1-i)/(1-n)*r+(i-n)/(1-n):t<1?(1-e)/(1-t)*r+(e-t)/(1-t):1:3*r*(1-r)**2*e+3*r**2*(1-r)*i+r**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(i,r=!1)=>{let s=Math.floor(i*t);const o=i*s%1==0;return"start"!==e&&"both"!==e||++s,r&&o&&--s,i>=0&&s<0&&(s=0),i<=1&&s>n&&(s=n),s/n}}};class an{done(){return!1}}class hn extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ln extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,i){return this.stepper(t,e,n,i)}}function un(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,i=Math.log(e/100+1e-10),r=-i/Math.sqrt(n*n+i*i),s=3.9/(r*t);this.d=2*r*s,this.k=s*s}qt(class extends ln{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const r=i.velocity||0,s=-this.d*r-this.k*(t-e),o=t+r*n+s*n*n/2;return i.velocity=r+s*n,i.done=Math.abs(e-o)+Math.abs(r)<.002,i.done?e:o}},{duration:sn("_duration",un),overshoot:sn("_overshoot",un)}),qt(class extends ln{constructor(t=.1,e=.01,n=0,i=1e3){super(),this.p(t).i(e).d(n).windup(i)}step(t,e,n,i){if("string"==typeof t)return t;if(i.done=n===1/0,n===1/0)return e;if(0===n)return t;const r=e-t;let s=(i.integral||0)+r*n;const o=(r-(i.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),i.error=r,i.integral=s,i.done=Math.abs(r)<.001,i.done?e:t+(this.P*r+this.I*s+this.D*o)}},{windup:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},dn={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},fn="mlhvqtcsaz".split("");for(let t=0,e=fn.length;t<e;++t)dn[fn[t]]=function(t){return function(e,n,i){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,i=e.length;t<i;++t)e[t]=e[t]+(t%2?n.y:n.x);return dn[t](e,n,i)}}(fn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&gn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),i=e===n;t.segment=["m"===n?i?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function gn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&yn(t)}function yn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return dn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function vn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends ke{bbox(){return oe().path.setAttribute("d",this.toString()),new he(oe.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,i=this.length-1;i>=0;i--)n=this[i][0],"M"===n||"L"===n||"T"===n?(this[i][1]+=t,this[i][2]+=e):"H"===n?this[i][1]+=t:"V"===n?this[i][1]+=e:"C"===n||"S"===n||"Q"===n?(this[i][1]+=t,this[i][2]+=e,this[i][3]+=t,this[i][4]+=e,"C"===n&&(this[i][5]+=t,this[i][6]+=e)):"A"===n&&(this[i][6]+=t,this[i][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let n=0,i="";const r={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new ie,p:new ie};for(;r.lastToken=i,i=t.charAt(n++);)if(r.inSegment||!mn(r,i))if("."!==i)if(isNaN(parseInt(i)))if(bn.has(i))r.inNumber&&gn(r,!1);else if("-"!==i&&"+"!==i)if("E"!==i.toUpperCase()){if(Jt.test(i)){if(r.inNumber)gn(r,!1);else{if(!pn(r))throw new Error("parser Error");yn(r)}--n}}else r.number+=i,r.hasExponent=!0;else{if(r.inNumber&&!wn(r)){gn(r,!1),--n;continue}r.number+=i,r.inNumber=!0}else{if("0"===r.number||vn(r)){r.inNumber=!0,r.number=i,gn(r,!0);continue}r.inNumber=!0,r.number+=i}else{if(r.pointSeen||r.hasExponent){gn(r,!1),--n;continue}r.inNumber=!0,r.pointSeen=!0,r.number+=i}return r.inNumber&&gn(r,!1),r.inSegment&&pn(r)&&yn(r),r.segments}(t)}size(t,e){const n=this.bbox();let i,r;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y):"H"===r?this[i][1]=(this[i][1]-n.x)*t/n.width+n.x:"V"===r?this[i][1]=(this[i][1]-n.y)*e/n.height+n.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-n.x)*t/n.width+n.x,this[i][2]=(this[i][2]-n.y)*e/n.height+n.y,this[i][3]=(this[i][3]-n.x)*t/n.width+n.x,this[i][4]=(this[i][4]-n.y)*e/n.height+n.y,"C"===r&&(this[i][5]=(this[i][5]-n.x)*t/n.width+n.x,this[i][6]=(this[i][6]-n.y)*e/n.height+n.y)):"A"===r&&(this[i][1]=this[i][1]*t/n.width,this[i][2]=this[i][2]*e/n.height,this[i][6]=(this[i][6]-n.x)*t/n.width+n.x,this[i][7]=(this[i][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,i=t.length;n<i;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}(this)}}const Nn=t=>{const e=typeof t;return"number"===e?Se:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:ke:Ft.test(t)?Se:Sn:Mn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ke:"object"===e?_n:Sn};class kn{constructor(t){this._stepper=t||new hn("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(Nn(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===_n&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Sn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Tn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Tn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Tn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Cn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class _n{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,i=e.length;n<i;++n){if(e[n+1]===t[n+1]){if(e[n+1]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],i=new ne(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...i)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const i=(new t[n+1]).toArray(),r=e[n+2]+3;e.splice(n,r,t[n],t[n+1],t[n+2],...i),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const i=Nn(t[n]),r=new i(t[n]).toArray();e.push([n,i,r.length,...r])}return e.sort(Cn),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const n=e.shift(),i=e.shift(),r=e.shift(),s=e.splice(0,r);t[n]=new i(s)}return t}}const Mn=[Sn,Tn,_n];class En extends Oe{constructor(t,e=t){super(Lt("path",t),e)}array(){return this._array||(this._array=new xn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new xn(t))}size(t,e){const n=yt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function An(){return this._array||(this._array=new $e(this.attr("points")))}function Ln(){return delete this._array,this}function On(t,e){return this.attr("points",this.array().move(t,e))}function jn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $e(t))}function Dn(t,e){const n=yt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}En.prototype.MorphArray=xn,ct({Container:{path:Rt((function(t){return this.put(new En).plot(t||new xn)}))}}),Dt(En,"Path");class Wn extends Oe{constructor(t,e=t){super(Lt("polygon",t),e)}}ct({Container:{polygon:Rt((function(t){return this.put(new Wn).plot(t||new $e)}))}}),qt(Wn,r),qt(Wn,s),Dt(Wn,"Polygon");class Pn extends Oe{constructor(t,e=t){super(Lt("polyline",t),e)}}ct({Container:{polyline:Rt((function(t){return this.put(new Pn).plot(t||new $e)}))}}),qt(Pn,r),qt(Pn,s),Dt(Pn,"Polyline");class In extends Oe{constructor(t,e=t){super(Lt("rect",t),e)}}qt(In,{rx:je,ry:De}),ct({Container:{rect:Rt((function(t,e){return this.put(new In).size(t,e)}))}}),Dt(In,"Rect");class qn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Rn={nextDraw:null,frames:new qn,timeouts:new qn,immediates:new qn,timer:()=>Tt.window.performance||Tt.window.Date,transforms:[],frame(t){const e=Rn.frames.push({run:t});return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),e},timeout(t,e){e=e||0;const n=Rn.timer().now()+e,i=Rn.timeouts.push({run:t,time:n});return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),i},immediate(t){const e=Rn.immediates.push(t);return null===Rn.nextDraw&&(Rn.nextDraw=Tt.window.requestAnimationFrame(Rn._draw)),e},cancelFrame(t){null!=t&&Rn.frames.remove(t)},clearTimeout(t){null!=t&&Rn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Rn.immediates.remove(t)},_draw(t){let e=null;const n=Rn.timeouts.last();for(;(e=Rn.timeouts.shift())&&(t>=e.time?e.run():Rn.timeouts.push(e),e!==n););let i=null;const r=Rn.frames.last();for(;i!==r&&(i=Rn.frames.shift());)i.run(t);let s=null;for(;s=Rn.immediates.shift();)s();Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?Tt.window.requestAnimationFrame(Rn._draw):null}},Fn=Rn,Bn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},zn=function(){const t=Tt.window;return(t.performance||t.Date).now()};class Hn extends be{constructor(t=zn){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(Bn);let i=0;const r=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)i=r;else if("absolute"===n||"start"===n)i=e,e=0;else if("now"===n)i=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(i=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();i=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:i+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Fn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Fn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const i=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=i,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],n=e.runner;this._time-e.start<=0&&n.reset()}let r=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=i;const a=this._time-n.start;a<=0?r=!0:(a<o&&(o=a),s.active()&&(s.step(o).done?!0!==n.persist&&s.duration()-s.time()+this._time+n.persist<this._time&&(s.unschedule(),--t,--e):r=!0))}return r&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Hn,this._timeline):(this._timeline=t,this)}}});class Vn extends be{constructor(t){super(),this.id=Vn.id++,t="function"==typeof(t=null==t?400:t)?new ln(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ln,this._stepper=this._isDeclarative?t:new hn,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let i=1,r=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof an||(e=t.delay??e,n=t.when??n,r=t.swing||r,i=t.times??i,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:r,times:i,wait:s,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const i=Vn.sanitise(t,e,n),r=new Vn(i.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(i).schedule(i.delay,i.when)}clearTransform(){return this.transforms=new se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new hn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"==typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=(this._time-t*e)/this._duration;return Math.min(t+n,this._times)}const n=t%1,i=e*Math.floor(t)+this._duration*n;return this.time(i)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,i=this._wait,r=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(i+n))/(i+n)),r=e&&!o||!e&&o,a=Math.pow(-1,r)*(t%(i+n))/n+r;return Math.max(Math.min(a,1),0)},h=r*(i+n)-i;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),l=s&&h%2==0;return a=h+(l&&!o||o&&l?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,i){return this._queue.push({initialiser:t||xe,runner:e||xe,retarget:n,isTransform:i,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Hn||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const i=this.duration(),r=this._lastTime<=0&&this._time>0,s=this._lastTime<i&&this._time>=i;this._lastTime=this._time,r&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=i,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],i=this._isDeclarative||!n.initialised&&t;t=!n.finished,i&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,i=this._queue.length;n<i;++n){const i=this._queue[n],r=i.runner.call(this,t);i.finished=i.finished||!0===r,e=e&&i.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const i=this.timeline();return i&&i.play(),!0}return!1}}Vn.id=0;class Xn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}qt([Vn,Xn],{mergeWith(t){return new Xn(t.transforms.lmultiply(this.transforms),t.id)}});const Un=(t,e)=>t.lmultiplyO(e),Gn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Gn).reduce(Un,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Qn{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new Xn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e];if(!(t&&n.done&&t.done)||n._timeline&&n._timeline._runnerIds.includes(n.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=n;else{this.remove(n.id);const i=n.mergeWith(t);this.edit(t.id,i),t=i,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}ct({Element:{animate(t,e,n){const i=Vn.sanitise(t,e,n),r=this.timeline();return new Vn(i.duration).loop(i).element(this).timeline(r.play()).schedule(i.delay,i.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Gn).reduce(Un,new se)},_addRunner(t){this._transformationRunners.add(t),Fn.cancelImmediate(this._frameId),this._frameId=Fn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Qn).add(new Xn(new se(this))))}}}),qt(Vn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let i=e;if(this._tryRetarget(t,i))return this;let r=new kn(this._stepper).to(i),s=Object.keys(i);return this.queue((function(){r=r.from(this.element()[t](s))}),(function(e){return this.element()[t](r.at(e).valueOf()),r.done()}),(function(e){const n=Object.keys(e),o=(a=s,n.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),n=new _n(r.from()).valueOf();Object.assign(n,e),r.from(n)}const h=new _n(r.to()).valueOf();Object.assign(h,e),r.to(h),s=n,i=e})),this._rememberMorpher(t,r),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new kn(this._stepper).to(new Se(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,i){e=i,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const i=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!i;const r=new kn(this._stepper).type(n?Tn:se);let s,o,a,h,l;return this.queue((function(){o=o||this.element(),s=s||vt(t,o),l=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(u){e||this.clearTransform();const{x:c,y:d}=new ie(s).transform(o._currentTransform(this));let f=new se({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:l;if(n){f=f.decompose(c,d),p=p.decompose(c,d);const t=f.rotate,e=p.rotate,n=[t-360,t,t+360],i=n.map((t=>Math.abs(t-e))),r=Math.min(...i),s=i.indexOf(r);f.rotate=n[s]}e&&(i||(f.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),r.from(p),r.to(f);const m=r.at(u);return h=m.rotate,a=new se(m),this.addTransform(a),o._addRunner(this),r.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=vt(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Se(e),this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);let i=null;return this.queue((function(){i=this.element()[t](),n.from(i),n.to(i+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(i+new Se(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new kn(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Se(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,i){if(4===arguments.length)return this.plot([t,e,n,i]);if(this._tryRetarget("plot",t))return this;const r=new kn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){r.from(this._element.array())}),(function(t){return this._element.plot(r.at(t)),r.done()})),this._rememberMorpher("plot",r),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,i){return this._queueObject("viewbox",new he(t,e,n,i))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),qt(Vn,{rx:je,ry:De,from:Ve,to:Xe}),Dt(Vn,"Runner");class $n extends Ae{constructor(t,e=t){super(Lt("svg",t),e),this.namespace()}defs(){return this.isRoot()?Ot(this.node.querySelector("defs"))||this.put(new Le):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Tt.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Nt,version:"1.1"}).attr("xmlns:xlink",St,kt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,kt).attr("xmlns:svgjs",null,kt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:Rt((function(){return this.put(new $n)}))}}),Dt($n,"Svg",!0);class Zn extends Ae{constructor(t,e=t){super(Lt("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(Tt.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function ti(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function ei(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function ni(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function ii(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ri(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function si(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function oi(t){return this.attr("x",t)}function ai(t){return this.attr("y",t)}function hi(t,e){return this.ax(t).ay(e)}function li(t){return this._build=!!t,this}ct({Container:{symbol:Rt((function(){return this.put(new Zn)}))}}),Dt(Zn,"Symbol");class ui extends Oe{constructor(t,e=t){super(Lt("text",t),e),this.dom.leading=this.dom.leading??new Se(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Se(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(i){if(bt(this.node))return;const r=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Se(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",i?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Se(t.leading||1.3),this}writeDataToDom(){return xt(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let i=0,r=e.length;i<r;++i)"textPath"===e[i].nodeName||bt(e[i])?0===i&&(n=i+1):(i!==n&&3!==e[i].nodeType&&!0===Ot(e[i]).dom.newLined&&(t+="\n"),t+=e[i].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,n=(t=(t+"").split("\n")).length;e<n;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}qt(ui,o),ct({Container:{text:Rt((function(t=""){return this.put(new ui).text(t)})),plain:Rt((function(t=""){return this.put(new ui).plain(t)}))}}),Dt(ui,"Text");class ci extends Oe{constructor(t,e=t){super(Lt("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof ui))return this;const e=t.index(this),n=Tt.window.getComputedStyle(this.node).getPropertyValue("font-size"),i=t.dom.leading*new Se(n);return this.dy(e?i:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}qt(ci,o),ct({Tspan:{tspan:Rt((function(t=""){const e=new ci;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Dt(ci,"Tspan");class di extends Oe{constructor(t,e=t){super(Lt("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Se(t).divide(2))}}qt(di,{x:We,y:Pe,cx:Ie,cy:qe,width:Re,height:Fe}),ct({Container:{circle:Rt((function(t=0){return this.put(new di).size(t).move(0,0)}))}}),Dt(di,"Circle");class fi extends Ae{constructor(t,e=t){super(Lt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return fe("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Rt((function(){return this.defs().put(new fi)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fi?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Dt(fi,"ClipPath");class pi extends Me{constructor(t,e=t){super(Lt("foreignObject",t),e)}}function mi(t,e){return this.children().forEach((n=>{let i;try{i=n.node instanceof Tt.window.SVGSVGElement?new he(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const r=new se(n),s=r.translate(t,e).transform(r.inverse()),o=new ie(i.x,i.y).transform(s);n.move(o.x,o.y)})),this}function gi(t){return this.dmove(t,0)}function yi(t){return this.dmove(0,t)}function vi(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wi(t=0,e=0,n=this.bbox()){const i=t-n.x,r=e-n.y;return this.dmove(i,r)}function bi(t,e,n=this.bbox()){const i=yt(this,t,e,n),r=i.width/n.width,s=i.height/n.height;return this.children().forEach((t=>{const e=new ie(n).transform(new se(t).inverse());t.scale(r,s,e.x,e.y)})),this}function xi(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Ni(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function ki(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:Rt((function(t,e){return this.put(new pi).size(t,e)}))}}),Dt(pi,"ForeignObject");class Si extends Ae{constructor(t,e=t){super(Lt("g",t),e)}}qt(Si,a),ct({Container:{group:Rt((function(){return this.put(new Si)}))}}),Dt(Si,"G");class Ti extends Ae{constructor(t,e=t){super(Lt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,St)}}qt(Ti,a),ct({Container:{link:Rt((function(t){return this.put(new Ti).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Ti,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),Dt(Ti,"A");class Ci extends Ae{constructor(t,e=t){super(Lt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return fe("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Rt((function(){return this.defs().put(new Ci)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Ci?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Dt(Ci,"Mask");class _i extends Me{constructor(t,e=t){super(Lt("stop",t),e)}update(t){return("number"==typeof t||t instanceof Se)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Se(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new _i).update(t,e,n)}}}),Dt(_i,"Stop");class Mi extends Me{constructor(t,e=t){super(Lt("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Mi).rule(t,e)},fontface(t,e,n){return this.put(new Mi).font(t,e,n)}}),Dt(Mi,"Style");class Ei extends ui{constructor(t,e=t){super(Lt("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:Rt((function(t,e){return t instanceof ui||(t=this.text(t)),t.path(e)}))},Text:{path:Rt((function(t,e=!0){const n=new Ei;let i;if(t instanceof En||(t=this.defs().path(t)),n.attr("href","#"+t,St),e)for(;i=this.node.firstChild;)n.node.appendChild(i);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Rt((function(t){return t instanceof ui||(t=(new ui).addTo(this.parent()).text(t)),t.path(this)})),targets(){return fe("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Ei.prototype.MorphArray=xn,Dt(Ei,"TextPath");class Ai extends Oe{constructor(t,e=t){super(Lt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,St)}}ct({Container:{use:Rt((function(t,e){return this.put(new Ai).use(t,e)}))}}),Dt(Ai,"Use"),qt([$n,Zn,Ye,Ge,rn],dt("viewbox")),qt([nn,Pn,Wn,En],dt("marker")),qt(ui,dt("Text")),qt(En,dt("Path")),qt(Le,dt("Defs")),qt([ui,ci],dt("Tspan")),qt([In,Be,Ue,Vn],dt("radius")),qt(be,dt("EventTarget")),qt(_e,dt("Dom")),qt(Me,dt("Element")),qt(Oe,dt("Shape")),qt([Ae,He],dt("Container")),qt(Ue,dt("Gradient")),qt(Vn,dt("Runner")),ce.extend([...new Set(ut)]),function(t=[]){Mn.push(...[].concat(t))}([Se,ne,he,se,ke,$e,xn,ie]),qt(Mn,{to(t){return(new kn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,i,r){return this.fromArray(t.map((function(t,s){return i.step(t,e[s],n,r[s],r)})))}});var Li,Oi,ji,Di,Wi,Pi,Ii,qi,Ri,Fi,Bi,zi,Hi,Vi,Xi,Ui,Gi,Yi,Qi,$i,Zi,Ji,Ki,tr,er,nr,ir,rr,sr,or,ar,hr,lr,ur,cr,dr,fr,pr,mr,gr,yr,vr,wr,br,xr,Nr,kr,Sr,Tr,Cr,_r,Mr,Er,Ar,Lr,Or,jr,Dr,Wr,Pr,Ir,qr,Rr,Fr,Br,zr,Hr,Vr,Xr,Ur,Gr,Yr,Qr,$r,Zr,Jr,Kr,ts,es,ns,is,rs,ss,os,as,hs,ls,us,cs,ds,fs,ps,ms,gs,ys,vs,ws,bs=n(169),xs=n(726),Ns=n(692),ks=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},Ss=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Ts{constructor(t){Li.add(this),Oi.set(this,void 0),this.domNode=document.createElement("div"),ji.set(this,new Cs),Di.set(this,document.createElement("div")),Wi.set(this,void 0),Pi.set(this,void 0),Ii.set(this,document.createElement("div")),qi.set(this,void 0),Ri.set(this,void 0),Fi.set(this,void 0),Bi.set(this,void 0),zi.set(this,void 0),Hi.set(this,void 0),Vi.set(this,void 0),Xi.set(this,void 0),Ui.set(this,void 0),Gi.set(this,void 0),Yi.set(this,void 0),Qi.set(this,void 0),ks(this,Oi,t,"f"),this.domNode.classList.add(N.lf),Ss(this,ji,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(N.ho))),this.domNode.append(Ss(this,ji,"f").domNode),Ss(this,Di,"f").classList.add(N.Qs),this.domNode.append(Ss(this,Di,"f")),ks(this,Wi,new _s(t),"f"),Ss(this,Di,"f").append(Ss(this,Wi,"f").domNode),ks(this,Pi,new Ms(t),"f"),Ss(this,Di,"f").append(Ss(this,Pi,"f").domNode),Ss(this,Ii,"f").classList.add(N.eB),Ss(this,Di,"f").append(Ss(this,Ii,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?Ss(this,Li,"m",Zi).call(this):Ss(this,Li,"m",Ji).call(this))})),ks(this,qi,new Es(t),"f"),Ss(this,Ii,"f").append(Ss(this,qi,"f").domNode),ks(this,Ri,new As(t),"f"),Ss(this,Ii,"f").append(Ss(this,Ri,"f").domNode),ks(this,Fi,new Ls(t),"f"),Ss(this,Ii,"f").append(Ss(this,Fi,"f").domNode),ks(this,Bi,new Os(t),"f"),Ss(this,Ii,"f").append(Ss(this,Bi,"f").domNode),ks(this,zi,new js(t),"f"),Ss(this,Ii,"f").append(Ss(this,zi,"f").domNode),ks(this,Hi,new Ds(t),"f"),Ss(this,Ii,"f").append(Ss(this,Hi,"f").domNode),ks(this,Vi,new Ws(t),"f"),Ss(this,Ii,"f").append(Ss(this,Vi,"f").domNode),ks(this,Xi,new Ps(t),"f"),Ss(this,Ii,"f").append(Ss(this,Xi,"f").domNode),ks(this,Ui,new Is(t),"f"),Ss(this,Ii,"f").append(Ss(this,Ui,"f").domNode),ks(this,Gi,new Fs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Gi,"f").domNode),ks(this,Yi,new Bs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Yi,"f").domNode),ks(this,Qi,new zs(t),"f"),Ss(this,Ii,"f").append(Ss(this,Qi,"f").domNode)}refresh(){Ss(this,Li,"a",$i).forEach((t=>t.refresh())),[...Ss(this,Oi,"f").selectedBases].length>0?Ss(this,Li,"m",Zi).call(this):Ss(this,Li,"m",Ji).call(this)}}Oi=new WeakMap,ji=new WeakMap,Di=new WeakMap,Wi=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,qi=new WeakMap,Ri=new WeakMap,Fi=new WeakMap,Bi=new WeakMap,zi=new WeakMap,Hi=new WeakMap,Vi=new WeakMap,Xi=new WeakMap,Ui=new WeakMap,Gi=new WeakMap,Yi=new WeakMap,Qi=new WeakMap,Li=new WeakSet,$i=function(){return[Ss(this,Wi,"f"),Ss(this,Pi,"f"),Ss(this,qi,"f"),Ss(this,Ri,"f"),Ss(this,Fi,"f"),Ss(this,Bi,"f"),Ss(this,zi,"f"),Ss(this,Hi,"f"),Ss(this,Vi,"f"),Ss(this,Xi,"f"),Ss(this,Ui,"f"),Ss(this,Gi,"f"),Ss(this,Yi,"f"),Ss(this,Qi,"f")]},Zi=function(){Ss(this,Ii,"f").style.display="block"},Ji=function(){Ss(this,Ii,"f").style.display="none"};class Cs{constructor(){this.domNode=document.createElement("div"),Ki.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),tr.set(this,document.createElement("p")),this.domNode.classList.add(N.wx),Ss(this,Ki,"f").classList.add(N.m9),Ss(this,Ki,"f").setAttribute("viewBox","0 0 6 10"),Ss(this,Ki,"f").setAttribute("width","6"),Ss(this,Ki,"f").setAttribute("height","10"),Ss(this,Ki,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(Ss(this,Ki,"f")),Ss(this,tr,"f").classList.add(N.aW),Ss(this,tr,"f").textContent="Bases",this.domNode.append(Ss(this,tr,"f"))}}Ki=new WeakMap,tr=new WeakMap;class _s{constructor(t){er.set(this,void 0),this.domNode=document.createElement("p"),nr.set(this,document.createElement("span")),ir.set(this,document.createElement("span")),ks(this,er,t,"f"),this.domNode.classList.add(N.IU),Ss(this,nr,"f").style.fontWeight="700",this.domNode.append(Ss(this,nr,"f"),Ss(this,ir,"f")),Ss(this,er,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ss(this,er,"f").selectedBases].length;Ss(this,nr,"f").textContent=`${t}`,Ss(this,ir,"f").textContent=1==t?" base is selected.":" bases are selected."}}er=new WeakMap,nr=new WeakMap,ir=new WeakMap;class Ms{constructor(t){rr.add(this),sr.set(this,void 0),this.domNode=document.createElement("div"),or.set(this,new M),ar.set(this,document.createElement("div")),hr.set(this,{All:new W("All",(()=>Ss(this,rr,"m",cr).call(this))),None:new W("None",(()=>Ss(this,rr,"m",dr).call(this))),A:new W("A",(()=>Ss(this,rr,"m",fr).call(this,"A"))),U:new W("U",(()=>Ss(this,rr,"m",fr).call(this,"U"))),G:new W("G",(()=>Ss(this,rr,"m",fr).call(this,"G"))),C:new W("C",(()=>Ss(this,rr,"m",fr).call(this,"C"))),T:new W("T",(()=>Ss(this,rr,"m",fr).call(this,"T"))),a:new W("a",(()=>Ss(this,rr,"m",fr).call(this,"a"))),u:new W("u",(()=>Ss(this,rr,"m",fr).call(this,"u"))),g:new W("g",(()=>Ss(this,rr,"m",fr).call(this,"g"))),c:new W("c",(()=>Ss(this,rr,"m",fr).call(this,"c"))),t:new W("t",(()=>Ss(this,rr,"m",fr).call(this,"t"))),Outlined:new W("Outlined",(()=>Ss(this,rr,"m",pr).call(this))),Paired:new W("Paired",(()=>Ss(this,rr,"m",mr).call(this))),Unpaired:new W("Unpaired",(()=>Ss(this,rr,"m",gr).call(this)))}),lr.set(this,void 0),ks(this,sr,t,"f"),this.domNode.classList.add(N.vw),Ss(this,or,"f").textContent="Select:",Ss(this,or,"f").domNode.addEventListener("click",(()=>Ss(this,rr,"m",ur).call(this))),this.domNode.append(Ss(this,or,"f").domNode);let e=document.createElement("div");Ns(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");Ns(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map((t=>Ss(this,hr,"f")[t].domNode))),e.append(n),Ns(Ss(this,ar,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(Ss(this,ar,"f")),Ss(this,ar,"f").style.display="none",Ss(this,or,"f").caret.pointRight();let i=document.createElement("div");Ns(i).css({display:"flex",flexDirection:"row",gap:"17px"}),i.append(...["A","U","G","C","T"].map((t=>Ss(this,hr,"f")[t].domNode))),Ss(this,ar,"f").append(i);let r=document.createElement("div");Ns(r).css({display:"flex",flexDirection:"row",gap:"18px"}),r.append(...["a","u","g","c","t"].map((t=>Ss(this,hr,"f")[t].domNode))),Ss(this,ar,"f").append(r),Ss(this,ar,"f").append(Ss(this,hr,"f").Outlined.domNode);let s=document.createElement("div");Ns(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map((t=>Ss(this,hr,"f")[t].domNode))),Ss(this,ar,"f").append(s),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),ks(this,lr,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ss(this,lr,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...Ss(this,sr,"f").drawing.bases],e=new Set([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),i=new Set(Ss(this,sr,"f").selectedBases),r=[...Ss(this,sr,"f").selectedOutlines];0==t.length?(Ss(this,hr,"f").All.disable(),Ss(this,hr,"f").All.tooltip.textContent="There are no bases in the drawing."):i.size==t.length?(Ss(this,hr,"f").All.disable(),Ss(this,hr,"f").All.tooltip.textContent="All bases are already selected."):(Ss(this,hr,"f").All.enable(),Ss(this,hr,"f").All.tooltip.textContent="Select all bases."),0==i.size?(Ss(this,hr,"f").None.disable(),Ss(this,hr,"f").None.tooltip.textContent="No bases are selected."):(Ss(this,hr,"f").None.enable(),Ss(this,hr,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),r=Ss(this,hr,"f")[e];0==n.length?(r.disable(),r.tooltip.textContent=`No bases have the letter "${e}".`):n.every((t=>i.has(t)))?(r.disable(),r.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(r.enable(),r.tooltip.textContent=`Select all bases with the letter "${e}".`)})),0==r.length?(Ss(this,hr,"f").Outlined.disable(),Ss(this,hr,"f").Outlined.tooltip.textContent="No outlines are selected."):r.map((t=>t.owner)).every((t=>i.has(t)))?(Ss(this,hr,"f").Outlined.disable(),Ss(this,hr,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(Ss(this,hr,"f").Outlined.enable(),Ss(this,hr,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(Ss(this,hr,"f").Paired.disable(),Ss(this,hr,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>i.has(t)))?(Ss(this,hr,"f").Paired.disable(),Ss(this,hr,"f").Paired.tooltip.textContent="All paired bases are already selected."):(Ss(this,hr,"f").Paired.enable(),Ss(this,hr,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(Ss(this,hr,"f").Unpaired.disable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>i.has(t)))?(Ss(this,hr,"f").Unpaired.disable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(Ss(this,hr,"f").Unpaired.enable(),Ss(this,hr,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}sr=new WeakMap,or=new WeakMap,ar=new WeakMap,hr=new WeakMap,lr=new WeakMap,rr=new WeakSet,ur=function(){let t="none"!=Ss(this,ar,"f").style.display;Ss(this,ar,"f").style.display=t?"none":"flex",t?Ss(this,or,"f").caret.pointRight():Ss(this,or,"f").caret.pointDown()},cr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases])},dr=function(){Ss(this,sr,"f").removeFromSelected([...Ss(this,sr,"f").drawing.bases])},fr=function(t){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").selectedOutlines].map((t=>t.owner)))},mr=function(){Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},gr=function(){let t=new Set([...Ss(this,sr,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));Ss(this,sr,"f").addToSelected([...Ss(this,sr,"f").drawing.bases].filter((e=>!t.has(e))))};class Es{constructor(t){yr.add(this),vr.set(this,void 0),this.domNode=document.createElement("div"),wr.set(this,document.createElement("p")),br.set(this,new W),xr.set(this,new W),ks(this,vr,t,"f"),this.domNode.classList.add(N.Te),Ss(this,wr,"f").classList.add(N.QB),Ss(this,wr,"f").textContent="Send to:",this.domNode.append(Ss(this,wr,"f")),Ss(this,br,"f").domNode.addEventListener("click",(()=>Ss(this,yr,"m",Nr).call(this))),Ss(this,br,"f").textContent="Front",Ss(this,br,"f").domNode.style.marginLeft="26px",this.domNode.append(Ss(this,br,"f").domNode),Ss(this,xr,"f").domNode.addEventListener("click",(()=>Ss(this,yr,"m",kr).call(this))),Ss(this,xr,"f").textContent="Back",Ss(this,xr,"f").domNode.style.marginLeft="28px",this.domNode.append(Ss(this,xr,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ss(this,yr,"m",Sr).call(this),Ss(this,yr,"m",Tr).call(this)}}vr=new WeakMap,wr=new WeakMap,br=new WeakMap,xr=new WeakMap,yr=new WeakSet,Nr=function(){let t=[...Ss(this,vr,"f").selectedBases];0!=t.length?(Ss(this,vr,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},kr=function(){let t=[...Ss(this,vr,"f").selectedBases];0!=t.length?(Ss(this,vr,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},Sr=function(){0==[...Ss(this,vr,"f").selectedBases].length?(Ss(this,br,"f").disable(),Ss(this,br,"f").tooltip.textContent="No bases are selected."):(Ss(this,br,"f").enable(),Ss(this,br,"f").tooltip.textContent="Bring the selected bases to the front.")},Tr=function(){0==[...Ss(this,vr,"f").selectedBases].length?(Ss(this,xr,"f").disable(),Ss(this,xr,"f").tooltip.textContent="No bases are selected."):(Ss(this,xr,"f").enable(),Ss(this,xr,"f").tooltip.textContent="Send the selected bases to the back.")};class As{constructor(t){Cr.add(this),_r.set(this,void 0),Mr.set(this,new F({onSubmit:()=>Ss(this,Cr,"m",Ar).call(this)})),Er.set(this,void 0),ks(this,_r,t,"f"),ks(this,Er,new $("Text Content",Ss(this,Mr,"f").domNode),"f"),Ss(this,Er,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",Ss(this,_r,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,_r,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,Er,"f").domNode}refresh(){let t=[...Ss(this,_r,"f").selectedBases];try{Ss(this,Mr,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ss(this,Mr,"f").domNode.value=""}}}_r=new WeakMap,Mr=new WeakMap,Er=new WeakMap,Cr=new WeakSet,Ar=function(){var t;let e=null!==(t=Ss(this,Mr,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ss(this,_r,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ss(this,_r,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Ls{constructor(t){Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),ks(this,Lr,t,"f"),ks(this,Or,new Xs(t,"fill"),"f"),ks(this,jr,new $("Fill",Ss(this,Or,"f").domNode),"f"),Ss(this,jr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,jr,"f").domNode}refresh(){Ss(this,Or,"f").refresh()}}Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap;class Os{constructor(t){Dr.add(this),Wr.set(this,void 0),Pr.set(this,new st),Ir.set(this,void 0),qr.set(this,void 0),Rr.set(this,void 0),ks(this,Wr,t,"f"),Ss(this,Pr,"f").domNode.addEventListener("input",(()=>Ss(this,Dr,"m",Fr).call(this))),ks(this,Ir,new ht("Fill Color",Ss(this,Pr,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,Wr,"f").selectedBases.addEventListener("change",(()=>ks(this,qr,void 0,"f"))),Ss(this,Pr,"f").domNode.addEventListener("focus",(()=>ks(this,Rr,Ss(this,Pr,"f").domNode.value,"f"))),Ss(this,Wr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,Wr,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,Ir,"f").domNode}refresh(){let t=[...Ss(this,Wr,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ss(this,Pr,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ss(this,Pr,"f").domNode.value="#000000"}else Ss(this,Pr,"f").domNode.value="#000000"}}Wr=new WeakMap,Pr=new WeakMap,Ir=new WeakMap,qr=new WeakMap,Rr=new WeakMap,Dr=new WeakSet,Fr=function(){if(Ss(this,Pr,"f").domNode.value===Ss(this,Rr,"f"))return;let t=[...Ss(this,Wr,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ss(this,Pr,"f").domNode.value.toLowerCase()}))||((Ss(this,Wr,"f").undoStack.isEmpty()||Ss(this,Wr,"f").undoStack.peek()!==Ss(this,qr,"f"))&&(Ss(this,Wr,"f").pushUndoStack(),ks(this,qr,Ss(this,Wr,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ss(this,Pr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class js{constructor(t){Br.set(this,void 0),zr.set(this,void 0),Hr.set(this,void 0),ks(this,Br,t,"f"),ks(this,zr,new Xs(t,"fill-opacity"),"f"),ks(this,Hr,new $("Fill Opacity",Ss(this,zr,"f").domNode),"f"),Ss(this,Hr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Hr,"f").domNode}refresh(){Ss(this,zr,"f").refresh()}}Br=new WeakMap,zr=new WeakMap,Hr=new WeakMap;class Ds{constructor(t){Vr.set(this,void 0),Xr.set(this,void 0),Ur.set(this,void 0),ks(this,Vr,t,"f"),ks(this,Xr,new Xs(t,"font-family"),"f"),ks(this,Ur,new $("Font Family",Ss(this,Xr,"f").domNode),"f"),Ss(this,Ur,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Ur,"f").domNode}refresh(){Ss(this,Xr,"f").refresh()}}Vr=new WeakMap,Xr=new WeakMap,Ur=new WeakMap;class Ws{constructor(t){Gr.set(this,void 0),Yr.set(this,void 0),Qr.set(this,void 0),ks(this,Gr,t,"f"),ks(this,Yr,new Xs(t,"font-size"),"f"),ks(this,Qr,new $("Font Size",Ss(this,Yr,"f").domNode),"f"),Ss(this,Qr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Qr,"f").domNode}refresh(){Ss(this,Yr,"f").refresh()}}Gr=new WeakMap,Yr=new WeakMap,Qr=new WeakMap;class Ps{constructor(t){$r.set(this,void 0),Zr.set(this,void 0),Jr.set(this,void 0),ks(this,$r,t,"f"),ks(this,Zr,new Xs(t,"font-weight"),"f"),ks(this,Jr,new $("Font Weight",Ss(this,Zr,"f").domNode),"f"),Ss(this,Jr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,Jr,"f").domNode}refresh(){Ss(this,Zr,"f").refresh()}}$r=new WeakMap,Zr=new WeakMap,Jr=new WeakMap;class Is{constructor(t){Kr.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),ks(this,ts,t,"f"),Ss(this,es,"f").domNode.addEventListener("change",(()=>Ss(this,Kr,"m",is).call(this))),ks(this,ns,new nt("Bold",Ss(this,es,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,ns,"f").domNode}refresh(){let t=[...Ss(this,ts,"f").selectedBases];0==t.length?Ss(this,es,"f").domNode.checked=!1:Ss(this,es,"f").domNode.checked=t.every(qs)}}function qs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Rs(t){return!qs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Kr=new WeakSet,is=function(){let t=[...Ss(this,ts,"f").selectedBases];0!=t.length?Ss(this,es,"f").domNode.checked&&t.every(qs)?this.refresh():Ss(this,es,"f").domNode.checked||!t.every(Rs)?(Ss(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ss(this,es,"f").domNode.checked&&Rs(t)?t.setAttribute("font-weight","700"):!Ss(this,es,"f").domNode.checked&&qs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ss(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class Fs{constructor(t){rs.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),ks(this,rs,t,"f"),ks(this,ss,new Xs(t,"font-style"),"f"),ks(this,os,new $("Font Style",Ss(this,ss,"f").domNode),"f"),Ss(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,os,"f").domNode}refresh(){Ss(this,ss,"f").refresh()}}rs=new WeakMap,ss=new WeakMap,os=new WeakMap;class Bs{constructor(t){as.set(this,void 0),hs.set(this,void 0),ls.set(this,void 0),ks(this,as,t,"f"),ks(this,hs,new Xs(t,"text-decoration"),"f"),ks(this,ls,new $("Text Decoration",Ss(this,hs,"f").domNode),"f"),Ss(this,ls,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ss(this,ls,"f").domNode}refresh(){Ss(this,hs,"f").refresh()}}as=new WeakMap,hs=new WeakMap,ls=new WeakMap;class zs{constructor(t){us.add(this),cs.set(this,void 0),ds.set(this,new K),fs.set(this,void 0),ks(this,cs,t,"f"),Ss(this,ds,"f").domNode.addEventListener("change",(()=>Ss(this,us,"m",ps).call(this))),ks(this,fs,new nt("Underlined",Ss(this,ds,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ss(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ss(this,fs,"f").domNode}refresh(){let t=[...Ss(this,cs,"f").selectedBases];0==t.length?Ss(this,ds,"f").domNode.checked=!1:Ss(this,ds,"f").domNode.checked=t.every(Hs)}}function Hs(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Vs(t){return!Hs(t)}cs=new WeakMap,ds=new WeakMap,fs=new WeakMap,us=new WeakSet,ps=function(){let t=[...Ss(this,cs,"f").selectedBases];0!=t.length?Ss(this,ds,"f").domNode.checked&&t.every(Hs)?this.refresh():Ss(this,ds,"f").domNode.checked||!t.every(Vs)?(Ss(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ss(this,ds,"f").domNode.checked&&Vs(t)?t.setAttribute("text-decoration","underline"):!Ss(this,ds,"f").domNode.checked&&Hs(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ss(this,ds,"f").domNode.blur()):this.refresh():this.refresh()};class Xs{constructor(t,e){ms.add(this),gs.set(this,void 0),ys.set(this,void 0),vs.set(this,new F({onSubmit:()=>Ss(this,ms,"m",ws).call(this)})),ks(this,gs,t,"f"),ks(this,ys,e,"f"),Ss(this,gs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ss(this,gs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ss(this,vs,"f").domNode}refresh(){let t=[...Ss(this,gs,"f").selectedBases];try{Ss(this,vs,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ss(this,ys,"f")))&&void 0!==e?e:""})))}catch(t){Ss(this,vs,"f").domNode.value=""}}}gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ms=new WeakSet,ws=function(){let t=Ss(this,vs,"f").domNode.value,e=[...Ss(this,gs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ss(this,ys,"f"))===t))||(Ss(this,gs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ss(this,ys,"f"),t)))))),this.refresh()};var Us=n(924),Gs={};Gs.styleTagTransform=w(),Gs.setAttributes=m(),Gs.insert=f().bind(null,"head"),Gs.domAPI=c(),Gs.insertStyleElement=y(),l()(Us.Ay,Gs),Us.Ay&&Us.Ay.locals&&Us.Ay.locals;var Ys=n(723),Qs={};Qs.styleTagTransform=w(),Qs.setAttributes=m(),Qs.insert=f().bind(null,"head"),Qs.domAPI=c(),Qs.insertStyleElement=y(),l()(Ys.Ay,Qs),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var $s,Zs=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Js{constructor(t,e){this.domNode=document.createElement("div"),$s.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,$s,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,$s,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,$s,"f").textContent}set textContent(t){Zs(this,$s,"f").textContent=t}get onClick(){return Zs(this,$s,"f").onclick}set onClick(t){Zs(this,$s,"f").onclick=t}click(){Zs(this,$s,"f").click()}disable(){Zs(this,$s,"f").classList.add(Ys.r9)}enable(){Zs(this,$s,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,$s,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}$s=new WeakMap;var Ks,to,eo,no,io,ro,so,oo,ao,ho,lo,uo,co,fo,po,mo,go,yo,vo,wo,bo,xo,No,ko,So,To,Co,_o,Mo,Eo,Ao,Lo,Oo,jo,Do,Wo,Po,Io,qo,Ro,Fo,Bo,zo,Ho,Vo,Xo,Uo,Go,Yo,Qo,$o,Zo,Jo,Ko,ta,ea,na,ia,ra,sa,oa,aa,ha,la,ua,ca,da,fa,pa,ma,ga,ya,va,wa,ba,xa,Na,ka,Sa,Ta,Ca,_a,Ma,Ea,Aa,La,Oa,ja,Da,Wa,Pa,Ia,qa,Ra,Fa,Ba,za,Ha,Va,Xa=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},Ua=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class Ga{constructor(t){Ks.add(this),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new M),no.set(this,document.createElement("div")),io.set(this,void 0),ro.set(this,document.createElement("div")),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),uo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),Xa(this,to,t,"f"),this.domNode.classList.add(Us.qM),Ua(this,eo,"f").textContent="Outlines",Ua(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Ua(this,eo,"f").domNode),Ua(this,no,"f").classList.add(Us.Qs),this.domNode.append(Ua(this,no,"f")),Xa(this,io,new Ya(t),"f"),Ua(this,no,"f").append(Ua(this,io,"f").domNode),Xa(this,so,new Qa(t),"f"),Ua(this,no,"f").append(Ua(this,so,"f").domNode),Xa(this,oo,new $a(t),"f"),Ua(this,no,"f").append(Ua(this,oo,"f").domNode),Ua(this,ro,"f").classList.add(Us.eB),Ua(this,no,"f").append(Ua(this,ro,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Ua(this,Ks,"m",wo).call(this):Ua(this,Ks,"m",bo).call(this))})),Xa(this,ao,new Ja(t),"f"),Ua(this,ro,"f").append(Ua(this,ao,"f").domNode),Xa(this,ho,new Ka(t),"f"),Ua(this,ro,"f").append(Ua(this,ho,"f").domNode),Xa(this,lo,new th(t),"f"),Ua(this,ro,"f").append(Ua(this,lo,"f").domNode),Xa(this,uo,new eh(t),"f"),Ua(this,ro,"f").append(Ua(this,uo,"f").domNode),Xa(this,co,new nh(t),"f"),Ua(this,ro,"f").append(Ua(this,co,"f").domNode),Xa(this,fo,new ih(t),"f"),Ua(this,ro,"f").append(Ua(this,fo,"f").domNode),Xa(this,po,new rh(t),"f"),Ua(this,ro,"f").append(Ua(this,po,"f").domNode),Xa(this,mo,new sh(t),"f"),Ua(this,ro,"f").append(Ua(this,mo,"f").domNode),Xa(this,go,new oh(t),"f"),Ua(this,ro,"f").append(Ua(this,go,"f").domNode),Xa(this,yo,new ah(t),"f"),Ua(this,ro,"f").append(Ua(this,yo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Us.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Us.ho),Ua(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Us.ho),Ua(this,eo,"f").caret.pointDown())}refresh(){Ua(this,Ks,"a",vo).forEach((t=>t.refresh())),[...Ua(this,to,"f").selectedOutlines].length>0?Ua(this,Ks,"m",wo).call(this):Ua(this,Ks,"m",bo).call(this)}}to=new WeakMap,eo=new WeakMap,no=new WeakMap,io=new WeakMap,ro=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,lo=new WeakMap,uo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,Ks=new WeakSet,vo=function(){return[Ua(this,io,"f"),Ua(this,so,"f"),Ua(this,oo,"f"),Ua(this,ao,"f"),Ua(this,ho,"f"),Ua(this,lo,"f"),Ua(this,uo,"f"),Ua(this,co,"f"),Ua(this,fo,"f"),Ua(this,po,"f"),Ua(this,mo,"f"),Ua(this,go,"f"),Ua(this,yo,"f")]},wo=function(){Ua(this,ro,"f").style.display="flex"},bo=function(){Ua(this,ro,"f").style.display="none"};class Ya{constructor(t){xo.set(this,void 0),this.domNode=document.createElement("p"),No.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Xa(this,xo,t,"f"),this.domNode.classList.add(Us.vM),Ua(this,No,"f").style.fontWeight="700",this.domNode.append(Ua(this,No,"f"),Ua(this,ko,"f")),Ua(this,xo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ua(this,xo,"f").selectedOutlines].length;Ua(this,No,"f").textContent=`${t}`,Ua(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}xo=new WeakMap,No=new WeakMap,ko=new WeakMap;class Qa{constructor(t){So.add(this),To.set(this,void 0),this.domNode=document.createElement("div"),Co.set(this,document.createElement("p")),_o.set(this,new W),Mo.set(this,new W),Eo.set(this,new W),Ao.set(this,void 0),Xa(this,To,t,"f"),this.domNode.classList.add(Us.VX),Ua(this,Co,"f").classList.add(Us.iE),Ua(this,Co,"f").textContent="Select:",this.domNode.append(Ua(this,Co,"f")),Ua(this,_o,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",Lo).call(this))),Ua(this,_o,"f").textContent="All",Ua(this,_o,"f").domNode.style.marginLeft="20px",this.domNode.append(Ua(this,_o,"f").domNode),Ua(this,Mo,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",Oo).call(this))),Ua(this,Mo,"f").textContent="Outlining",Ua(this,Mo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ua(this,Mo,"f").domNode),Ua(this,Eo,"f").domNode.addEventListener("click",(()=>Ua(this,So,"m",jo).call(this))),Ua(this,Eo,"f").textContent="None",Ua(this,Eo,"f").domNode.style.marginLeft="17px",this.domNode.append(Ua(this,Eo,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Xa(this,Ao,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ua(this,Ao,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Ua(this,So,"m",Do).call(this),Ua(this,So,"m",Wo).call(this),Ua(this,So,"m",Po).call(this)}}To=new WeakMap,Co=new WeakMap,_o=new WeakMap,Mo=new WeakMap,Eo=new WeakMap,Ao=new WeakMap,So=new WeakSet,Lo=function(){let t=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").addToSelected(t)},Oo=function(){let t=new Set(Ua(this,To,"f").selectedBases),e=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").addToSelected(e.filter((e=>t.has(e.owner))))},jo=function(){let t=[...Ua(this,To,"f").drawing.outlines];Ua(this,To,"f").removeFromSelected(t)},Do=function(){let t=[...Ua(this,To,"f").drawing.outlines],e=[...Ua(this,To,"f").selectedOutlines];0==t.length?(Ua(this,_o,"f").disable(),Ua(this,_o,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Ua(this,_o,"f").disable(),Ua(this,_o,"f").tooltip.textContent="All outlines are already selected."):(Ua(this,_o,"f").enable(),Ua(this,_o,"f").tooltip.textContent="Select all outlines.")},Wo=function(){let t=[...Ua(this,To,"f").drawing.outlines],e=new Set(Ua(this,To,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),i=new Set(Ua(this,To,"f").selectedOutlines);0==e.size?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="No bases are selected."):0==n.length?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>i.has(t)))?(Ua(this,Mo,"f").disable(),Ua(this,Mo,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Ua(this,Mo,"f").enable(),Ua(this,Mo,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Po=function(){0==[...Ua(this,To,"f").selectedOutlines].length?(Ua(this,Eo,"f").disable(),Ua(this,Eo,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Eo,"f").enable(),Ua(this,Eo,"f").tooltip.textContent="Deselect all outlines.")};class $a{constructor(t){Io.add(this),qo.set(this,void 0),this.domNode=document.createElement("div"),Ro.set(this,document.createElement("div")),Fo.set(this,new Js("Add",(()=>Ua(this,Io,"m",Go).call(this)))),Bo.set(this,new K),zo.set(this,new nt("Only add missing outlines",Ua(this,Bo,"f").domNode)),Ho.set(this,void 0),Vo.set(this,void 0),Xa(this,qo,t,"f"),this.domNode.style.marginTop="25px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",Ua(this,Ro,"f").style.display="flex",Ua(this,Ro,"f").style.flexDirection="row",Ua(this,Ro,"f").style.gap="15px",this.domNode.append(Ua(this,Ro,"f")),Xa(this,Ho,new Za(t),"f"),Ua(this,Ro,"f").append(Ua(this,Fo,"f").domNode,Ua(this,Ho,"f").domNode),Ua(this,Bo,"f").domNode.checked=!0,Ua(this,zo,"f").domNode.style.marginTop="11px",Ua(this,zo,"f").domNode.style.alignSelf="start",this.domNode.append(Ua(this,zo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Xa(this,Vo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ua(this,Vo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ua(this,Bo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){Ua(this,Io,"m",Uo).call(this),Ua(this,Ho,"f").refresh()}}qo=new WeakMap,Ro=new WeakMap,Fo=new WeakMap,Bo=new WeakMap,zo=new WeakMap,Ho=new WeakMap,Vo=new WeakMap,Io=new WeakSet,Xo=function(){return Ua(this,Bo,"f").domNode.checked},Uo=function(){let t=[...Ua(this,qo,"f").selectedBases],e=[...Ua(this,qo,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),i=t.filter((t=>!n.has(t)));0==t.length?(Ua(this,Fo,"f").disable(),Ua(this,Fo,"f").tooltip.textContent="No bases are selected."):Ua(this,Io,"a",Xo)&&0==i.length?(Ua(this,Fo,"f").disable(),Ua(this,Fo,"f").tooltip.textContent="The selected bases are already outlined."):(Ua(this,Fo,"f").enable(),Ua(this,Fo,"f").tooltip.textContent="Outline the selected bases.")},Go=function(){let t=[...Ua(this,qo,"f").selectedBases];if(0==t.length)return;let e=[...Ua(this,qo,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),i=t.filter((t=>!n.has(t))),r=Ua(this,Io,"a",Xo)?i:t;if(0==r.length)return;Ua(this,qo,"f").pushUndoStack();let s=r.map((t=>Ua(this,qo,"f").drawing.outline(t)));Ua(this,qo,"f").addToSelected(s),this.refresh()};class Za{constructor(t){Yo.set(this,void 0),Qo.set(this,new Js("Remove",(()=>this.press()))),Xa(this,Yo,t,"f"),Ua(this,Yo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Ua(this,Qo,"f").domNode}press(){let t=[...Ua(this,Yo,"f").selectedOutlines];0!=t.length?(Ua(this,Yo,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Ua(this,Yo,"f").selectedOutlines].length?(Ua(this,Qo,"f").disable(),Ua(this,Qo,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Qo,"f").enable(),Ua(this,Qo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Yo=new WeakMap,Qo=new WeakMap;class Ja{constructor(t){$o.add(this),Zo.set(this,void 0),this.domNode=document.createElement("div"),Jo.set(this,document.createElement("p")),Ko.set(this,new W),ta.set(this,new W),Xa(this,Zo,t,"f"),this.domNode.classList.add(Us.Te),Ua(this,Jo,"f").classList.add(Us.QB),Ua(this,Jo,"f").textContent="Send to:",this.domNode.append(Ua(this,Jo,"f")),Ua(this,Ko,"f").domNode.addEventListener("click",(()=>Ua(this,$o,"m",ea).call(this))),Ua(this,Ko,"f").textContent="Front",Ua(this,Ko,"f").domNode.style.marginLeft="24px",this.domNode.append(Ua(this,Ko,"f").domNode),Ua(this,ta,"f").domNode.addEventListener("click",(()=>Ua(this,$o,"m",na).call(this))),Ua(this,ta,"f").textContent="Back",Ua(this,ta,"f").domNode.style.marginLeft="28px",this.domNode.append(Ua(this,ta,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Ua(this,$o,"m",ia).call(this),Ua(this,$o,"m",ra).call(this)}}Zo=new WeakMap,Jo=new WeakMap,Ko=new WeakMap,ta=new WeakMap,$o=new WeakSet,ea=function(){let t=[...Ua(this,Zo,"f").selectedOutlines];0!=t.length?(Ua(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},na=function(){let t=[...Ua(this,Zo,"f").selectedOutlines];0!=t.length?(Ua(this,Zo,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ia=function(){0==[...Ua(this,Zo,"f").selectedOutlines].length?(Ua(this,Ko,"f").disable(),Ua(this,Ko,"f").tooltip.textContent="No outlines are selected."):(Ua(this,Ko,"f").enable(),Ua(this,Ko,"f").tooltip.textContent="Bring the selected outlines to the front.")},ra=function(){0==[...Ua(this,Zo,"f").selectedOutlines].length?(Ua(this,ta,"f").disable(),Ua(this,ta,"f").tooltip.textContent="No outlines are selected."):(Ua(this,ta,"f").enable(),Ua(this,ta,"f").tooltip.textContent="Send selected outlines to the back.")};class Ka{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),Xa(this,sa,t,"f"),Xa(this,oa,new hh(t,"r"),"f"),Xa(this,aa,new $("Radius",Ua(this,oa,"f").domNode),"f"),Ua(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Ns(this.domNode).css({marginTop:"22px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,aa,"f").domNode}refresh(){Ua(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class th{constructor(t){ha.set(this,void 0),la.set(this,void 0),ua.set(this,void 0),Xa(this,ha,t,"f"),Xa(this,la,new hh(t,"fill"),"f"),Xa(this,ua,new $("Fill",Ua(this,la,"f").domNode),"f"),Ua(this,ua,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ua,"f").domNode}refresh(){Ua(this,la,"f").refresh()}}ha=new WeakMap,la=new WeakMap,ua=new WeakMap;class eh{constructor(t){ca.add(this),da.set(this,void 0),fa.set(this,new st),pa.set(this,void 0),ma.set(this,void 0),ga.set(this,void 0),Xa(this,da,t,"f"),Ua(this,fa,"f").domNode.addEventListener("input",(()=>Ua(this,ca,"m",ya).call(this))),Xa(this,pa,new ht("Fill Color",Ua(this,fa,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ua(this,da,"f").selectedOutlines.addEventListener("change",(()=>Xa(this,ma,void 0,"f"))),Ua(this,fa,"f").domNode.addEventListener("focus",(()=>Xa(this,ga,Ua(this,fa,"f").domNode.value,"f"))),Ua(this,da,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,da,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ua(this,pa,"f").domNode}refresh(){let t=[...Ua(this,da,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Ua(this,fa,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ua(this,fa,"f").domNode.value="#000000"}else Ua(this,fa,"f").domNode.value="#000000"}}da=new WeakMap,fa=new WeakMap,pa=new WeakMap,ma=new WeakMap,ga=new WeakMap,ca=new WeakSet,ya=function(){if(Ua(this,fa,"f").domNode.value===Ua(this,ga,"f"))return;let t=[...Ua(this,da,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ua(this,fa,"f").domNode.value.toLowerCase()}))||((Ua(this,da,"f").undoStack.isEmpty()||Ua(this,da,"f").undoStack.peek()!==Ua(this,ma,"f"))&&(Ua(this,da,"f").pushUndoStack(),Xa(this,ma,Ua(this,da,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Ua(this,fa,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class nh{constructor(t){va.set(this,void 0),wa.set(this,void 0),ba.set(this,void 0),Xa(this,va,t,"f"),Xa(this,wa,new hh(t,"fill-opacity"),"f"),Xa(this,ba,new $("Fill Opacity",Ua(this,wa,"f").domNode),"f"),Ua(this,ba,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ba,"f").domNode}refresh(){Ua(this,wa,"f").refresh()}}va=new WeakMap,wa=new WeakMap,ba=new WeakMap;class ih{constructor(t){xa.set(this,void 0),Na.set(this,void 0),ka.set(this,void 0),Xa(this,xa,t,"f"),Xa(this,Na,new hh(t,"stroke"),"f"),Xa(this,ka,new $("Stroke",Ua(this,Na,"f").domNode),"f"),Ua(this,ka,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ka,"f").domNode}refresh(){Ua(this,Na,"f").refresh()}}xa=new WeakMap,Na=new WeakMap,ka=new WeakMap;class rh{constructor(t){Sa.add(this),Ta.set(this,void 0),Ca.set(this,new st),_a.set(this,void 0),Ma.set(this,void 0),Ea.set(this,void 0),Xa(this,Ta,t,"f"),Ua(this,Ca,"f").domNode.addEventListener("input",(()=>Ua(this,Sa,"m",Aa).call(this))),Xa(this,_a,new ht("Stroke Color",Ua(this,Ca,"f").domNode),"f"),Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ua(this,Ta,"f").selectedOutlines.addEventListener("change",(()=>Xa(this,Ma,void 0,"f"))),Ua(this,Ca,"f").domNode.addEventListener("focus",(()=>Xa(this,Ea,Ua(this,Ca,"f").domNode.value,"f"))),Ua(this,Ta,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,Ta,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Ua(this,_a,"f").domNode}refresh(){let t=[...Ua(this,Ta,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Ua(this,Ca,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ua(this,Ca,"f").domNode.value="#000000"}else Ua(this,Ca,"f").domNode.value="#000000"}}Ta=new WeakMap,Ca=new WeakMap,_a=new WeakMap,Ma=new WeakMap,Ea=new WeakMap,Sa=new WeakSet,Aa=function(){if(Ua(this,Ca,"f").domNode.value===Ua(this,Ea,"f"))return;let t=[...Ua(this,Ta,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Ua(this,Ca,"f").domNode.value.toLowerCase()}))||((Ua(this,Ta,"f").undoStack.isEmpty()||Ua(this,Ta,"f").undoStack.peek()!==Ua(this,Ma,"f"))&&(Ua(this,Ta,"f").pushUndoStack(),Xa(this,Ma,Ua(this,Ta,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Ua(this,Ca,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class sh{constructor(t){La.set(this,void 0),Oa.set(this,void 0),ja.set(this,void 0),Xa(this,La,t,"f"),Xa(this,Oa,new hh(t,"stroke-opacity"),"f"),Xa(this,ja,new $("Stroke Opacity",Ua(this,Oa,"f").domNode),"f"),Ua(this,ja,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Ns(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,ja,"f").domNode}refresh(){Ua(this,Oa,"f").refresh()}}La=new WeakMap,Oa=new WeakMap,ja=new WeakMap;class oh{constructor(t){Da.set(this,void 0),Wa.set(this,void 0),Pa.set(this,void 0),Xa(this,Da,t,"f"),Xa(this,Wa,new hh(t,"stroke-width"),"f"),Xa(this,Pa,new $("Stroke Width",Ua(this,Wa,"f").domNode),"f"),Ua(this,Pa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,Pa,"f").domNode}refresh(){Ua(this,Wa,"f").refresh()}}Da=new WeakMap,Wa=new WeakMap,Pa=new WeakMap;class ah{constructor(t){Ia.set(this,void 0),qa.set(this,void 0),Ra.set(this,void 0),Xa(this,Ia,t,"f"),Xa(this,qa,new hh(t,"stroke-dasharray"),"f"),Xa(this,Ra,new $("Stroke Dash-Array",Ua(this,qa,"f").domNode),"f"),Ua(this,Ra,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Ns(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ua(this,Ra,"f").domNode}refresh(){Ua(this,qa,"f").refresh()}}Ia=new WeakMap,qa=new WeakMap,Ra=new WeakMap;class hh{constructor(t,e){Fa.add(this),Ba.set(this,void 0),za.set(this,void 0),Ha.set(this,new F({onSubmit:()=>Ua(this,Fa,"m",Va).call(this)})),Xa(this,Ba,t,"f"),Xa(this,za,e,"f"),Ua(this,Ba,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ua(this,Ba,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ua(this,Ha,"f").domNode}refresh(){let t=[...Ua(this,Ba,"f").selectedOutlines];try{Ua(this,Ha,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Ua(this,za,"f")))&&void 0!==e?e:""})))}catch(t){Ua(this,Ha,"f").domNode.value=""}}}Ba=new WeakMap,za=new WeakMap,Ha=new WeakMap,Fa=new WeakSet,Va=function(){let t=Ua(this,Ha,"f").domNode.value,e=[...Ua(this,Ba,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Ua(this,za,"f"))===t))||(Ua(this,Ba,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Ua(this,za,"f"),t)))),this.refresh()};var lh=n(290),uh={};uh.styleTagTransform=w(),uh.setAttributes=m(),uh.insert=f().bind(null,"head"),uh.domAPI=c(),uh.insertStyleElement=y(),l()(lh.A,uh),lh.A&&lh.A.locals&&lh.A.locals;var ch,dh,fh,ph,mh,gh,yh=n(139),vh=function(t,e,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(t,n):r?r.value=n:e.set(t,n),n},wh=function(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)};class bh{constructor(t){ch.add(this),dh.set(this,void 0),this.domNode=document.createElement("div"),fh.set(this,void 0),ph.set(this,void 0),mh.set(this,void 0),vh(this,dh,t,"f"),this.domNode.classList.add(b.KQ);let e=document.createElement("p");e.classList.add(b.wx),e.textContent="Edit",this.domNode.append(e);let n=document.createElement("div");n.classList.add(b.UJ),this.domNode.append(n),vh(this,fh,new Ts(t),"f"),n.append(wh(this,fh,"f").domNode),vh(this,ph,new Ga(t),"f"),n.append(wh(this,ph,"f").domNode);let i=function(){let t=document.createElement("p");return t.classList.add(lh._),t.textContent="Close",t}();i.addEventListener("click",(()=>this.close())),this.domNode.append(i),vh(this,mh,new yh.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){wh(this,ch,"a",gh).forEach((t=>t.refresh()))}reposition(){wh(this,mh,"f").untranslate()}}dh=new WeakMap,fh=new WeakMap,ph=new WeakMap,mh=new WeakMap,ch=new WeakSet,gh=function(){return[wh(this,fh,"f"),wh(this,ph,"f")]}})(),i})()));