@rnacanvas/forms.edit 8.1.3 → 8.2.0

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.
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,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,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 r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},659:t=>{var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),h=n(659),u=n.n(h),l=n(56),c=n.n(l),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=u().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,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{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 r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(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,i=n-1;return r([e[n],e[i]])}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 u(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 l(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){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};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(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{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)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},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 r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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:()=>l,KQ:()=>a,UJ:()=>u,wx:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: #f4f5ff;\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: 35px;\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",u="blLx0TnwxHwlX8qvUigb";const l=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:()=>u,Qq:()=>h,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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",u="lVFnQ83G0WswDpb_v1xo",l="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:()=>m,IU:()=>f,Qs:()=>d,aW:()=>c,ho:()=>l,lf:()=>a,m9:()=>u,wx:()=>h,x3:()=>p});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: flex;\n flex-direction: column;\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.GGzbmTCCUyvg3GGQc1zr {\n margin-top: 16px;\n\n visibility: collapse;\n}\n\n.mOH6VML7hViujtEoNaOA .GGzbmTCCUyvg3GGQc1zr {\n visibility: visible;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",u="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="GGzbmTCCUyvg3GGQc1zr";const m=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,ZZ:()=>a,o3:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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 u=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(r,i){"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)},u=s.push,l=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=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);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,_=function(t,e){return new _.fn.init(t,e)};function T(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 M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}_.fn=_.prototype={jquery:k,constructor:_,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=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.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(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.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:u,sort:s.sort,splice:s.splice},_.extend=_.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,h=arguments.length,u=!1;for("boolean"==typeof o&&(u=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)r=t[e],"__proto__"!==e&&o!==r&&(u&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,o[e]=_.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},_.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,r=0;if(T(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=_.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?_.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.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,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(T(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return h(o)},guid:1,support:g}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=s[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var C=s.pop,E=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");_.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}_.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=u;!function(){var t,e,n,i,o,h,u,c,d,p,m=P,y=_.expando,v=0,w=0,b=tt(),x=tt(),N=tt(),k=tt(),S=function(t,e){return t===e&&(o=!0),0},T="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+"*"),z=new RegExp(L+"|>"),H=new RegExp(I),B=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("^(?:"+T+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,U=/^(?:#([\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&&M(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,r){var i,s,o,a,u,l,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(!r&&(ht(e),e=e||h,c)){if(11!==v&&(u=U.exec(t)))if(i=u[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(k[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(z.test(t)||F.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=_.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);f=l.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,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}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 rt(t){return function(e){return M(e,"input")&&e.type===t}}function it(t){return function(e){return(M(e,"input")||M(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,r){for(var i,s=t([],n.length,e),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ht(t){var n,r=t?t.ownerDocument||t:W;return r!=h&&9===r.nodeType&&r.documentElement?(u=(h=r).documentElement,c=!_.isXMLDoc(h),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&W!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return u.appendChild(t).id=_.expando,!h.getElementsByName||!h.getElementsByName(_.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,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)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;u.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|"+T+")"),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"),u.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:i?l.call(i,t)-l.call(i,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),_.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=h&&ht(t);var r=e.attrHandle[n.toLowerCase()],i=r&&f.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,S),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.call(t,n[r],1)}return i=null,t},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(a.apply(this)))},e=_.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&&H.test(n)&&(e=lt(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 M(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(r){var i=K.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,h){var u,l,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?M(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=(u=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&u[1])&&u[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,d,b];break}}else if(w&&(b=d=(u=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?M(c,g):1===c.nodeType)||!++b||(w&&((l=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=yt(t.replace(O,"$1"));return r[y]?et((function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,i,s){return e[0]=t,r(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||_.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.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=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},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 M(t,"input")&&!!t.checked||M(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 X.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return M(t,"input")&&"button"===t.type||M(t,"button")},text:function(t){var e;return M(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 r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:ot((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ut(){}function lt(t,n){var r,i,s,o,a,h,u,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,h=[],u=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),h.push(s=[])),r=!1,(i=F.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||u[o]&&!(i=u[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):x(t,h).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function dt(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,h){var u,l,c=[v,a];if(h){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&M(e,i))e=e[r]||e;else{if((u=l[s])&&u[0]===v&&u[1]===a)return c[2]=u[2];if(l[s]=c,c[2]=t(e,n,h))return!0}return!1}}function ft(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,h=t.length,u=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),u&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et((function(s,o,a,h){var u,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,h);if(n?n(w,f=i||(s?t:y||r)?[]:o,a,h):f=w,r)for(u=pt(f,g),r(u,[],a,h),c=u.length;c--;)(d=u[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(i||t){if(i){for(u=[],c=f.length;c--;)(d=f[c])&&u.push(w[c]=d);i(null,f=[],u,h)}for(c=f.length;c--;)(d=f[c])&&(u=i?l.call(s,d):p[c])>-1&&(s[u]=!(o[u]=d))}}else f=pt(f===o?f.splice(y,f.length):f),i?i(null,o,f,h):m.apply(o,f)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],u=a?1:0,c=dt((function(t){return t===r}),h,!0),d=dt((function(t){return l.call(r,t)>-1}),h,!0),f=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):d(t,e,i));return r=null,s}];u<o;u++)if(i=e.relative[t[u].type])f=[dt(ft(f),i)];else{if((i=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(s=++u;s<o&&!e.relative[t[s].type];s++);return mt(u>1&&ft(f),u>1&&ct(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(O,"$1"),i,u<s&&gt(t.slice(u,s)),s<o&&gt(t=t.slice(s)),s<o&&ct(t))}f.push(i)}return ft(f)}function yt(t,r){var i,s=[],o=[],a=N[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=N(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,u,l,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,T=k.length;for(d&&(n=a==h||a||d);w!==T&&null!=(f=k[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==h||(ht(f),u=!c);g=t[p++];)if(g(f,a||h,u)){m.call(l,f);break}d&&(v=S)}i&&((f=!g&&f)&&y--,o&&b.push(f))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,u);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=C.call(l));x=pt(x)}m.apply(l,x),d&&!o&&x.length>0&&y+r.length>1&&_.uniqueSort(l)}return d&&(v=S,n=N),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,h,u,l="function"==typeof t&&t,d=!i&&lt(t=l.selector||t);if(r=r||[],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 r;l&&(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((u=e.find[h])&&(i=u(a.matches[0].replace(Q,$),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,d))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=y.split("").sort(S).join("")===y,ht(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),_.find=K,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ht,K.tokenize=lt,K.escape=_.escapeSelector,K.getText=_.text,K.isXML=_.isXMLDoc,K.selectors=_.expr,K.support=_.support,K.uniqueSort=_.uniqueSort}();var I=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;r.push(t)}return r},q=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=_.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,n){return y(e)?_.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return l.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?_.find.matchesSelector(r,t)?[r]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<r;e++)if(_.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)_.find(t,i[e],n);return r>1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&R.test(t)?_(t):t||[],!1).length}});var H,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),F.test(r[1])&&_.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,H=_(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function X(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&_(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?_.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(_(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(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 X(t,"nextSibling")},prev:function(t){return X(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:(M(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,r){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&(G[t]||_.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}}));var U=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function Q(t){throw t}function $(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(U)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,r,i,s=[],o=[],a=-1,h=function(){for(i=i||t.once,r=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,i&&(s=n?[]:"")},u={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){_.each(n,(function(n,r){y(r)?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==N(r)&&e(r)}))}(arguments),n&&!e&&h()),this},remove:function(){return _.each(arguments,(function(t,e){for(var n;(n=_.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?_.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(n){_.each(e,(function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,h=arguments,u=function(){var r,u;if(!(t<s)){if((r=n.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(u)?i?u.call(r,o(s,e,Y,i),o(s,e,Q,i)):(s++,u.call(r,o(s,e,Y,i),o(s,e,Q,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,h=[r]),(i||e.resolveWith)(a,h))}},l=i?u:function(){try{u()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==Q&&(a=void 0,h=[r]),e.rejectWith(a,h))}};t?l():(_.Deferred.getErrorHook?l.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(l.error=_.Deferred.getStackHook()),r.setTimeout(l))}}return _.Deferred((function(r){e[0][3].add(o(0,r,y(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:Y)),e[2][3].add(o(0,r,y(n)?n:Q))})).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},s={};return _.each(e,(function(t,r){var o=r[2],a=r[5];i[r[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(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith})),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=_.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&($(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)$(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){r.setTimeout((function(){throw t}))};var J=_.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),_.ready()}_.fn.ready=function(t){return J.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||J.resolveWith(w,[_]))}}),_.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(_.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,h=t.length,u=null==n;if("object"===N(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(_(t),n)})),e))for(;a<h;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):h?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=_.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 r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(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,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(U)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||_.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var at=new ot,ht=new ot,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}ht.set(t,e,n)}else n=void 0;return n}_.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)}}),_.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ht.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}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)}))}}),_.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),r=n.length,i=n.shift(),s=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){_.dequeue(t,e)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:_.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?_.queue(this[0],t):void 0===e?this:this.each((function(){var n=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=_.Deferred(),s=this,o=this.length,a=function(){--r||i.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&&(r++,n.empty.add(a));return a(),i.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 _.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return _.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"===_.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return _.css(t,e,"")},h=a(),u=n&&n[3]||(_.cssNumber[e]?"":"px"),l=t.nodeType&&(_.cssNumber[e]||"px"!==u&&+h)&&ft.exec(_.css(t,e));if(l&&l[3]!==u){for(h/=2,u=u||l[3],l=+h||1;o--;)_.style(t,e,l+u),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),l/=s;l*=2,_.style(t,e,l+u),n=n||[]}return n&&(l=+l||+h||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var bt={};function xt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=_.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function Nt(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return 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)?_(this).show():_(this).hide()}))}});var kt,St,_t=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mt=/^$|^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 Ct={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&&M(t,e)?_.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,g.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,r,i){for(var s,o,a,h,u,l,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===N(s))_.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Tt.exec(s)||["",""])[1].toLowerCase(),h=Ct[a]||Ct._default,o.innerHTML=h[1]+_.htmlPrefilter(s)+h[2],l=h[0];l--;)o=o.lastChild;_.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&_.inArray(s,r)>-1)i&&i.push(s);else if(u=gt(s),o=Et(c.appendChild(s),"script"),u&&At(o),n)for(l=0;s=o[l++];)Mt.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Wt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return _().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=_.guid++)),t.each((function(){_.event.add(this,e,i,r,n)}))}function It(t,e,n){n?(at.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,_.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&_.event.add(t,e,Dt)}_.event={global:{},add:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&_.find.matchesSelector(mt,i),n.guid||(n.guid=_.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(U)||[""]).length;u--;)f=m=(a=jt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=_.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=_.event.special[f]||{},l=_.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=h[f])||((d=h[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),_.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(U)||[""]).length;u--;)if(f=m=(a=jt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=_.event.special[f]||{},d=h[f=(r?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)l=d[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(s,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(t,l));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||_.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)_.event.remove(t,f+e[u],n,r,!0);_.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),h=_.event.fix(t),u=(at.get(this,"events")||Object.create(null))[h.type]||[],l=_.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,h)){for(o=_.event.handlers.call(this,h,u),e=0;(i=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(r=((_.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(h.result=r)&&(h.preventDefault(),h.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,r,i,s,o,a=[],h=e.delegateCount,u=t.target;if(h&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?_(i,this).index(u)>-1:_.find(i,this,null,[u]).length),o[i]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,h<e.length&&a.push({elem:u,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(_.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[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return _t.test(e.type)&&e.click&&M(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return _t.test(e.type)&&e.click&&M(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return _t.test(e.type)&&e.click&&M(e,"input")&&at.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.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&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.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()}},_.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},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=_.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else _.event.simulate(e,t.target,_.event.fix(t))}_.event.special[t]={setup:function(){var r;if(It(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||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},_.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||_.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),_.fn.extend({on:function(t,e,n,r){return Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,_(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){_.event.remove(this,t,n,e)}))}});var qt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)_.event.add(e,i,a[i][n]);ht.hasData(t)&&(s=ht.access(t),o=_.extend({},s),ht.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&_t.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Xt(t,e,n,r){e=h(e);var i,s,o,a,u,l,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(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Xt(s,e,n,r)}));if(d&&(s=(i=Ot(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=_.map(Et(i,"script"),Ht)).length;c<d;c++)u=i,c!==f&&(u=_.clone(u,!0,!0),a&&_.merge(o,Et(u,"script"))),n.call(t[c],u,c);if(a)for(l=o[o.length-1].ownerDocument,_.map(o,Bt),c=0;c<a;c++)u=o[c],Mt.test(u.type||"")&&!at.access(u,"globalEval")&&_.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):x(u.textContent.replace(Ft,""),u,l))}return t}function Ut(t,e,n){for(var r,i=e?_.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||_.cleanData(Et(r)),r.parentNode&&(n&&gt(r)&&At(Et(r,"script")),r.parentNode.removeChild(r));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(o=Et(a),r=0,i=(s=Et(t)).length;r<i;r++)Gt(s[r],o[r]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),r=0,i=s.length;r<i;r++)Vt(s[r],o[r]);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,r,i=_.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Ut(this,t,!0)},remove:function(t){return Ut(this,t)},text:function(t){return tt(this,(function(t){return void 0===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 Xt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Xt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Xt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Xt(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&&(_.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 _.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!Ct[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(_.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 Xt(this,arguments,(function(e){var n=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var n,r=[],i=_(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),_(i[o])[e](n),u.apply(r,n.get());return this.pushStack(r)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Qt=/^--/,$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Zt=function(t,e,n){var r,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=s[i];return r},Jt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var r,i,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=_.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=h.width,i=h.minWidth,s=h.maxWidth,h.minWidth=h.maxWidth=h.width=o,o=n.width,h.width=r,h.minWidth=i,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(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(u).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,h=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(u),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,h,u=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,_.extend(g,{boxSizingReliable:function(){return t(),i},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,i;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),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return _.cssProps[t]||re[t]||(t in ne?t:re[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 r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ue(t,e,n,r,i,s){var o="width"===e?1:0,a=0,h=0,u=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=_.css(t,n+pt[o],!0,i)),r?("content"===n&&(h-=_.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(h-=_.css(t,"border"+pt[o]+"Width",!0,i))):(h+=_.css(t,"padding"+pt[o],!0,i),"padding"!==n?h+=_.css(t,"border"+pt[o]+"Width",!0,i):a+=_.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+u}function le(t,e,n){var r=$t(t),i=(!g.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&M(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===_.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===_.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ue(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}_.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,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),h=Qt.test(e),u=t.style;if(h||(e=ie(a)),o=_.cssHooks[e]||_.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e];"string"==(s=typeof n)&&(i=ft.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=i&&i[3]||(_.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(h?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return Qt.test(e)||(e=ie(a)),(o=_.cssHooks[e]||_.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Zt(t,oe,(function(){return le(t,e,r)}))},set:function(t,n,r){var i,s=$t(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===_.css(t,"boxSizing",!1,s),h=r?ue(t,e,r,a,s):0;return a&&o&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ue(t,e,"border",!1,s)-.5)),h&&(i=ft.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),he(0,n,h)}}})),_.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"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=he)})),_.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=$t(t),i=e.length;o<i;o++)s[e[o]]=_.css(t,e[o],!1,r);return s}return void 0!==n?_.style(t,e,n):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(_.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=_.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=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:_.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)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=ce.prototype.init,_.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,_.fx.interval),_.fx.tick())}function ye(){return r.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function be(t,e,n){var r,i,s=0,o=be.prefilters.length,a=_.Deferred().always((function(){delete h.elem})),h=function(){if(i)return!1;for(var e=de||ye(),n=Math.max(0,u.startTime+u.duration-e),r=1-(n/u.duration||0),s=0,o=u.tweens.length;s<o;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&o?n:(o||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=_.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),l=u.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=_.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,u.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(u,t,l,u.opts))return y(r.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return _.map(l,we,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(h,{elem:t,anim:u,queue:u.opts.queue})),u}_.Animation=_.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(U);for(var n,r=0,i=t.length;r<i;r++)n=t[r],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,h,u,l,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=_._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--,_.queue(t,"fx").length||o.empty.fire()}))}))),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||_.style(t,r)}if((h=!_.isEmptyObject(e))||!_.isEmptyObject(f))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=at.get(t,"display")),"none"===(l=_.css(t,"display"))&&(u?l=u:(Nt([t],!0),u=t.style.display||u,l=_.css(t,"display"),Nt([t]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===_.css(t,"float")&&(h||(d.done((function(){p.display=u})),null==u&&(l=p.display,u="none"===l?"":l)),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:u}),s&&(g.hidden=!m),m&&Nt([t],!0),d.done((function(){for(r in m||Nt([t]),at.remove(t,"fxshow"),f)_.style(t,r,f[r])}))),h=we(m?g[r]:0,r,d),r in g||(g[r]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),_.speed=function(t,e,n){var r=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=_.isEmptyObject(t),s=_.speed(e,n,r),o=function(){var e=be(this,_.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=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,i=null!=t&&t+"queueHooks",s=_.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=_.timers,o=r?r.length:0;for(n.finish=!0,_.queue(this,t,[]),i&&i.stop&&i.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++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var n=_.fn[e];_.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),_.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),_.timers=[],_.fx.tick=function(){var t,e=0,n=_.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||_.fx.stop(),de=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){fe||(fe=!0,ge())},_.fx.stop=function(){fe=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,e){return t=_.fx&&_.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},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=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return tt(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?_.prop(t,e,n):(1===s&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=_.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&M(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(U);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ne[e]||_.find.attr;Ne[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=Ne[o],Ne[o]=i,i=null!=n(t,e,r)?o:null,Ne[o]=s),i}}));var ke=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function _e(t){return(t.match(U)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(U)||[]}_.fn.extend({prop:function(t,e){return tt(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&_.isXMLDoc(t)||(e=_.propFix[e]||e,i=_.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.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||(_.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)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){_(this).addClass(t.call(this,e,Te(this)))})):(e=Me(t)).length?this.each((function(){if(r=Te(this),n=1===this.nodeType&&" "+_e(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=_e(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){_(this).removeClass(t.call(this,e,Te(this)))})):arguments.length?(e=Me(t)).length?this.each((function(){if(r=Te(this),n=1===this.nodeType&&" "+_e(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=_e(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,Te(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Me(t),this.each((function(){if(a)for(s=_(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Te(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+_e(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;_.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ce,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:_e(_.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:i.length;for(r=s<0?h:o?s:0;r<h;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(e=_(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=_.makeArray(e),o=i.length;o--;)((r=i[o]).selected=_.inArray(_.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},g.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=r.location,Ae={guid:Date.now()},Le=/\?/;_.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,n,i){var s,o,a,h,u,l,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+_.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[_.expando]?t:new _.Event(m,"object"==typeof t&&t)).isTrigger=i?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]:_.makeArray(e,[t]),c=_.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!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||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?h:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=u&&o[u])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||u&&y(n[m])&&!v(n)&&((a=n[u])&&(n[u]=null),_.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),_.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var r=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(r,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.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,r){var i;if(Array.isArray(e))_.each(e,(function(e,i){n||De.test(t)?r(t,i):qe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==N(e))r(t,e);else for(i in e)qe(t+"["+i+"]",e[i],n,r)}_.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){i(this.name,this.value)}));else for(n in t)qe(n,t[n],e,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Ie.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!_t.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.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=/#.*$/,ze=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},Xe={},Ue="*/".concat("*"),Ye=w.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(U)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},s=t===Xe;function o(a){var h;return i[a]=!0,_.each(t[a]||[],(function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||i[u]?s?!(h=u):void 0:(e.dataTypes.unshift(u),o(u),!1)})),h}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&_.extend(!0,t,r),t}Ye.href=Ee.href,_.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:{"*":Ue,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":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,_.ajaxSettings),e):Ze(_.ajaxSettings,t)},ajaxPrefilter:Qe(Ge),ajaxTransport:Qe(Xe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,h,u,l,c,d,f=_.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?_(p):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),v=f.statusCode||{},b={},x={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!o)for(o={};e=He.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 u?s:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)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(U)||[""],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=_.param(f.data,f.traditional)),$e(Ge,f,e,k),u)return k;for(c in(l=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Be.test(f.type),i=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(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Le.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(ze,"$1"),d=(Le.test(i)?"&":"?")+"_="+Ae.guid+++d),f.url=i+d),f.ifModified&&(_.lastModified[i]&&k.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&k.setRequestHeader("If-None-Match",_.etag[i])),(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]?", "+Ue+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||u))return k.abort();if(N="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=$e(Xe,f,e,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(a=r.setTimeout((function(){k.abort("timeout")}),f.timeout));try{u=!1,n.send(b,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,o,h){var c,d,w,b,x,N=e;u||(u=!0,a&&r.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 r,i,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){h.unshift(i);break}if(h[0]in n)s=h[0];else{for(i in n){if(!h[0]||t.converters[i+" "+h[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(f,k,o)),!c&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,h,u={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=l.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=u[h+" "+s]||u["* "+s]))for(i in u)if((a=i.split(" "))[1]===s&&(o=u[h+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[i]:!0!==u[i]&&(s=a[0],l.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"))&&(_.lastModified[i]=x),(x=k.getResponseHeader("etag"))&&(_.etag[i]=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,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?d:w]),y.fireWith(p,[k,N]),l&&(m.trigger("ajaxComplete",[k,f]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:r},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=_(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){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=_.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,_.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[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&&r.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()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.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 _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=_("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||_.expando+"_"+Ae.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(t,e,n){var i,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 i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||_.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===s?_(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),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),_.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=F.exec(t))?[e.createElement(i[1])]:(i=Ot([t],e,s),s&&s.length&&_(s).remove(),_.merge([],i.childNodes)));var r,i,s},_.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=_e(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&_.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?_("<div>").append(_.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,n){var r,i,s,o,a,h,u=_.css(t,"position"),l=_(t),c={};"static"===u&&(t.style.position="relative"),a=l.offset(),s=_.css(t,"top"),h=_.css(t,"left"),("absolute"===u||"fixed"===u)&&(s+h).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(h)||0),y(e)&&(e=e.call(t,n,_.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.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,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),i.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-_.css(r,"marginTop",!0),left:e.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||mt}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;_.fn[t]=function(r){return tt(this,(function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?_(t).position()[e]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){_.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,(function(e,n,i){var s;return v(e)?0===r.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===i?_.css(e,n,a):_.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,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,r){return this.on(e,t,n,r)},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)}}),_.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){_.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;_.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||_.guid++,i},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=M,_.isFunction=y,_.isWindow=v,_.camelCase=it,_.type=N,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return _}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return _.noConflict=function(t){return r.$===_&&(r.$=on),t&&r.jQuery===_&&(r.jQuery=sn),_},void 0===i&&(r.jQuery=r.$=_),_}))},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,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},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 r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>f,average:()=>r,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(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,i=n-1;return r([e[n],e[i]])}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 u(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 l(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){i(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(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map((t=>e.matching(t))),i=(0,t.min)(r.map((t=>t.left))),s=(0,t.min)(r.map((t=>t.top))),o=(0,t.max)(r.map((t=>t.right)))-i,a=(0,t.max)(r.map((t=>t.bottom)))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}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,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>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)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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:()=>l,Qq:()=>h,YL:()=>a,zX:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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",u="Z0ghuBmvyXYH9uep6VTd";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>E});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),h=n(56),u=n.n(h),l=n(540),c=n.n(l),d=n(113),f=n.n(d),p=n(865),m={};m.styleTagTransform=f(),m.setAttributes=u(),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,M=n(645),C=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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,(()=>{})),C(this,y,"f").classList.add(p.YL),C(this,v,"f").classList.add(p.Qq),C(this,v,"f").textContent=t,C(this,y,"f").append(C(this,v,"f")),C(this,w,"f").classList.add(p.zX),C(this,y,"f").append(C(this,w,"f"))}get textContent(){return C(this,v,"f").textContent}set textContent(t){let e=!C(this,g,"m",T).call(this);C(this,g,"m",_).call(this),C(this,v,"f").textContent=t,e&&C(this,g,"m",S).call(this)}get owner(){return C(this,x,"f")}set owner(t){C(this,x,"f")&&(C(this,x,"f").removeEventListener("mouseover",C(this,N,"f")),C(this,x,"f").removeEventListener("mouseout",C(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",(()=>C(this,g,"m",S).call(this))),t.addEventListener("mouseout",(()=>C(this,g,"m",_).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(C(this,y,"f").style.left="0px",C(this,y,"f").style.top="0px",document.body.append(C(this,y,"f")),!C(this,x,"f"))return;let t=C(this,y,"f").getBoundingClientRect().width,e=C(this,v,"f").getBoundingClientRect().height+C(this,w,"f").getBoundingClientRect().height/2,n=M.Box.matching(C(this,x,"f").getBoundingClientRect()).padded(C(this,b,"f"));C(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",C(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},_=function(){C(this,y,"f").remove()},T=function(){return!document.body.contains(C(this,y,"f"))}})(),r})(),t.exports=e()},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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:()=>l,Wu:()=>h,kL:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: 12px;\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",u="BAlKKbk1BfHF_fPz1gpc";const l=o},726:function(t){var e;e=()=>(()=>{var t={854:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>N,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>k,isSVGGraphicsElementsArray:()=>_,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="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 i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[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()}(i)};function l(t){t.id="uuid-"+u()}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,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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){return(0,S.isArray)(t)&&t.every(k)}})(),r})(),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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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 r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),h=n.n(a),u=new URL(n(51),n.b),l=o()(i()),c=h()(u);l.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=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>h,lI:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: 12px;\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",u="IgtWfVpmdN_e04k18xHb";const l=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>d,ho:()=>c,iE:()=>f,qM:()=>a,vM:()=>u,x3:()=>l});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 22px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 10px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\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._2mtl2XqC4G2BvuqSDdR {\n margin-top: 17px;\n\n display: flex;\n flex-direction: column;\n\n visibility: collapse;\n}\n\n.dJmYzq3wi8hxLecdDaOF ._2mtl2XqC4G2BvuqSDdR {\n visibility: visible;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\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.niaBwqy1zBIMYC42Y7LP {\n margin-top: 21px;\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",u="Z3lHB1W2K4m8JuZOnWs9",l="_2mtl2XqC4G2BvuqSDdR",c="dJmYzq3wi8hxLecdDaOF",d="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Ba});var t={};n.r(t),n.d(t,{cx:()=>_e,cy:()=>Te,height:()=>Ce,rx:()=>xe,ry:()=>Ne,width:()=>Me,x:()=>ke,y:()=>Se});var e={};n.r(e),n.d(e,{from:()=>Oe,to:()=>je});var i={};n.r(i),n.d(i,{MorphArray:()=>Re,height:()=>Be,width:()=>He,x:()=>Fe,y:()=>ze});var s={};n.r(s),n.d(s,{array:()=>vn,clear:()=>wn,move:()=>bn,plot:()=>xn,size:()=>Nn});var o={};n.r(o),n.d(o,{amove:()=>$n,ax:()=>Yn,ay:()=>Qn,build:()=>Zn,center:()=>Un,cx:()=>Gn,cy:()=>Xn,length:()=>zn,move:()=>Vn,plain:()=>Fn,x:()=>Hn,y:()=>Bn});var a={};n.r(a),n.d(a,{dmove:()=>rr,dx:()=>ir,dy:()=>sr,height:()=>or,move:()=>ar,size:()=>hr,width:()=>ur,x:()=>lr,y:()=>cr});var h=n(72),u=n.n(h),l=n(825),c=n.n(l),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(),u()(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(),u()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var S=n(419),_={};_.styleTagTransform=w(),_.setAttributes=m(),_.insert=f().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=y(),u()(S.A,_),S.A&&S.A.locals&&S.A.locals;var T,M;class C{constructor(t){T.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(S.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,T,"m",M).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}T=new WeakSet,M=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var E=n(678),A={};A.styleTagTransform=w(),A.setAttributes=m(),A.insert=f().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),u()(E.Ay,A),E.Ay&&E.Ay.locals&&E.Ay.locals;var L,O,j=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},D=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class W{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),L.set(this,void 0),O.set(this,void 0),this.domNode.classList.add(E.ZZ),j(this,L,e,"f"),j(this,O,document.createElement("a"),"f"),D(this,O,"f").textContent=t,D(this,O,"f").target="_blank",D(this,O,"f").rel="noopener noreferrer",D(this,O,"f").style.marginLeft="8px",this.domNode.append(e,D(this,O,"f"))}get infoLink(){return D(this,O,"f").href}set infoLink(t){D(this,O,"f").href=t,t?D(this,O,"f").classList.add(E.o3):D(this,O,"f").classList.remove(E.o3)}}L=new WeakMap,O=new WeakMap;var P,I=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class q{constructor(t,e){this.name=t,P.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,P,new W(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return I(this,P,"f").domNode}get infoLink(){return I(this,P,"f").infoLink}set infoLink(t){I(this,P,"f").infoLink=t}}P=new WeakMap;var R=n(881),F={};F.styleTagTransform=w(),F.setAttributes=m(),F.insert=f().bind(null,"head"),F.domAPI=c(),F.insertStyleElement=y(),u()(R.Ay,F),R.Ay&&R.Ay.locals&&R.Ay.locals;class z{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(R.kv)}}var H,B=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class V{constructor(t,e){this.name=t,H.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,H,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return B(this,H,"f").domNode}get infoLink(){return B(this,H,"f").infoLink}set infoLink(t){B(this,H,"f").infoLink=t}}H=new WeakMap;var G=n(709),X={};X.styleTagTransform=w(),X.setAttributes=m(),X.insert=f().bind(null,"head"),X.domAPI=c(),X.insertStyleElement=y(),u()(G.A,X),G.A&&G.A.locals&&G.A.locals;class U{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(G.V)}}var Y,Q=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ${constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,Y,new W(t,e),"f"),this.domNode.style.cursor="pointer"}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;const Z={},J=[];function K(t,e){if(Array.isArray(t))for(const n of t)K(n,e);else if("object"!=typeof t)et(Object.getOwnPropertyNames(e)),Z[t]=Object.assign(Z[t]||{},e);else for(const e in t)K(e,t[e])}function tt(t){return Z[t]||{}}function et(t){J.push(...t)}function nt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function rt(t){return t%360*Math.PI/180}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function st(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function ot(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const at=new Set(["desc","metadata","title"]),ht=t=>at.has(t.nodeName),ut=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},lt="http://www.w3.org/2000/svg",ct="http://www.w3.org/2000/xmlns/",dt="http://www.w3.org/1999/xlink",ft={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class pt{}const mt={},gt="___SYMBOL___ROOT___";function yt(t,e=lt){return ft.document.createElementNS(e,t)}function vt(t,e=!1){if(t instanceof pt)return t;if("object"==typeof t)return xt(t);if(null==t)return new mt[gt];if("string"==typeof t&&"<"!==t.charAt(0))return xt(ft.document.querySelector(t));const n=e?ft.document.createElement("div"):yt("svg");return n.innerHTML=t,t=xt(n.firstChild),n.removeChild(n.firstChild),t}function wt(t,e){return e&&(e instanceof ft.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:yt(t)}function bt(t){if(!t)return null;if(t.instance instanceof pt)return t.instance;if("#document-fragment"===t.nodeName)return new mt.Fragment(t);let e=it(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":mt[e]||(e="Dom"),new mt[e](t)}let xt=bt;function Nt(t,e=t.name,n=!1){return mt[e]=t,n&&(mt[gt]=t),et(Object.getOwnPropertyNames(t.prototype)),t}let kt=1e3;function St(t){return"Svgjs"+it(t)+kt++}function _t(t){for(let e=t.children.length-1;e>=0;e--)_t(t.children[e]);return t.id?(t.id=St(t.nodeName),t):t}function Tt(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function Mt(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)}}K("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=vt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=vt(t)).before(this),this},insertAfter:function(t){return(t=vt(t)).after(this),this}});const Ct=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Et=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,At=/rgb\((\d+),(\d+),(\d+)\)/,Lt=/(#[a-z_][a-z0-9\-_]*)/i,Ot=/\)\s*,?\s*/,jt=/\s/g,Dt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Wt=/^rgb\(/,Pt=/^(\s+)?$/,It=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Rt=/[\s,]+/,Ft=/[MLHVCSQTAZ]/i;function zt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function Ht(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function Bt(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}K("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Rt)},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)}}),K("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]||Pt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Pt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),K("Dom",{data:function(t,e,n){if(null==t)return this.data(nt(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(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}}),K("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 Vt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Vt||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:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new Vt(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new Vt(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new Vt(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new Vt(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new Vt(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new Vt(t,e,r,"lab")}if("grey"===t){const t=255*n();return new Vt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Dt.test(t)||Wt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-r,1-i,1-s);return 1===o?new Vt(0,0,0,1,"cmyk"):new Vt((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.max(r,i,s),a=Math.min(r,i,s),h=(o+a)/2,u=o===a,l=o-a;return new Vt(360*(u?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});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=Ht(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Ht(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Ht(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Ht(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Ht(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Ht(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(Wt.test(t)){const e=t.replace(jt,""),[n,r,i]=At.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Dt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Et.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:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:h}=this,u="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,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new Vt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),r=Math.sqrt(e**2+n**2);let i=180*Math.atan2(n,e)/Math.PI;return i<0&&(i*=-1,i=360-i),new Vt(t,r,i,"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:r,a:i,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;i=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(r+16)/116,a=i/500+o,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new Vt(255*h,255*u,255*l)}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 Vt(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*Bt(i,r,t+1/3),o=255*Bt(i,r,t),a=255*Bt(i,r,t-1/3);return new Vt(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,i=255*(1-Math.min(1,t*(1-r)+r)),s=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,n*(1-r)+r));return new Vt(i,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:i}=this;return[t,e,n,r,i]}toHex(){const[t,e,n]=this._clamped().map(zt);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(),[r,i,s]=[t,e,n].map((t=>t/255)),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=u>.008856?Math.pow(u,1/3):7.787*u+16/116,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new Vt(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:i,round:s}=Math;return[t,e,n].map((t=>r(0,i(s(t),255))))}}class Gt{constructor(...t){this.init(...t)}clone(){return new Gt(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){Ut.isMatrixLike(t)||(t=new Ut(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 Xt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class Ut{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,r=t.flip&&(e||"y"===t.flip)?-1:1,i=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]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,h=t.shear||0,u=t.rotate||t.theta||0,l=new Gt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new Gt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new Gt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new Gt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,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 r=t.a*e.a+t.c*e.b,i=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=r,n.b=i,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 r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Ut(this)}decompose(t=0,e=0){const n=this.a,r=this.b,i=this.c,s=this.d,o=this.e,a=this.f,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*l+e*(m*f*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+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 Ut(t);return Xt(this.a,e.a)&&Xt(this.b,e.b)&&Xt(this.c,e.c)&&Xt(this.d,e.d)&&Xt(this.e,e.e)&&Xt(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=Ut.fromArray([1,0,0,1,0,0]);return t=t instanceof ge?t.matrixify():"string"==typeof t?Ut.fromArray(t.split(Rt).map(parseFloat)):Array.isArray(t)?Ut.fromArray(t):"object"==typeof t&&Ut.isMatrixLike(t)?t:"object"==typeof t?(new Ut).transform(t):6===arguments.length?Ut.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,r=this.d,i=this.e,s=this.f,o=t*r-e*n;if(!o)throw new Error("Cannot invert "+this);const a=r/o,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),d=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof Ut?t:new Ut(t);return Ut.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof Ut?t:new Ut(t);return Ut.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=rt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:h}=this;return this.a=r+i*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,r=0){3===arguments.length&&(r=n,n=e,e=t),t=rt(t),e=rt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*s,this.e=l+c*i-r*i,this.f=c+l*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(Ut.isMatrixLike(t))return new Ut(t).multiplyO(this);const e=Ut.formatTransforms(t),{x:n,y:r}=new Gt(e.ox,e.oy).transform(this),i=(new Ut).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new Gt(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}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 Yt(){if(!Yt.nodes){const t=vt().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;Yt.nodes={svg:t,path:e}}if(!Yt.nodes.svg.node.parentNode){const t=ft.document.body||ft.document.documentElement;Yt.nodes.svg.addTo(t)}return Yt.nodes}function Qt(t){return!(t.width||t.height||t.x||t.y)}Nt(Ut,"Matrix");class $t{constructor(...t){this.init(...t)}addOffset(){return this.x+=ft.window.pageXOffset,this.y+=ft.window.pageYOffset,new $t(this)}init(t){return t="string"==typeof t?t.split(Rt).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 Qt(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new $t(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Ut||(t=new Ut(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new Gt(this.x,this.y),new Gt(this.x2,this.y),new Gt(this.x,this.y2),new Gt(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new $t(e,r,n-e,i-r)}}function Zt(t,e,n){let r;try{if(r=e(t.node),Qt(r)&&(i=t.node)!==ft.document&&!(ft.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===ft.document}).call(ft.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}K({viewbox:{viewbox(t,e,n,r){return null==t?new $t(this.attr("viewBox")):this.attr("viewBox",new $t(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.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 Gt(n/2/s+i.x,r/2/o+i.y);const u=new $t(i).transform(new Ut({scale:h,origin:e}));return this.viewbox(u)}}}),Nt($t,"Box");class Jt extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const Kt=Jt;Tt([Jt],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const te=["toArray","constructor","each"];function ee(t,e){return new Kt(nt((e||ft.document).querySelectorAll(t),(function(t){return bt(t)})))}Jt.extend=function(t){t=t.reduce(((t,e)=>(te.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Tt([Jt],t)};let ne=0;const re={};function ie(t){let e=t.getEventHolder();return e===ft.window&&(e=re),e.events||(e.events={}),e.events}function se(t){return t.getEventTarget()}function oe(t,e,n,r,i){const s=n.bind(r||t),o=vt(t),a=ie(o),h=se(o);e=Array.isArray(e)?e:e.split(Rt),n._svgjsListenerId||(n._svgjsListenerId=++ne),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,h.addEventListener(e,s,i||!1)}))}function ae(t,e,n,r){const i=vt(t),s=ie(i),o=se(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Rt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(u in s[e][a])ae(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&ae(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])ae(o,[e,h].join("."));delete s[e]}}else{for(t in s)ae(o,t);!function(t){let e=t.getEventHolder();e===ft.window&&(e=re),e.events&&(e.events={})}(i)}}))}class he extends pt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=se(t);return e instanceof ft.window.Event||(e=new ft.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.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 r in n[e])n[e][r](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 ae(this,t,e,n),this}on(t,e,n,r){return oe(this,t,e,n,r),this}removeEventListener(){}}function ue(){}Nt(he,"EventTarget");const le={"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 ce 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(Rt).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 de{constructor(...t){this.init(...t)}convert(t){return new de(this.value,t)}divide(t){return t=new de(t),new de(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(Ct))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof de&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new de(t),new de(this-t,this.unit||t.unit)}plus(t){return t=new de(t),new de(this+t,this.unit||t.unit)}times(t){return t=new de(t),new de(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 fe=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),pe=[];class me extends he{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=vt(t)).removeNamespace&&this.node instanceof ft.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 vt(t).put(this,e)}children(){return new Kt(nt(this.node.children,(function(t){return bt(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=_t(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new me(yt(t),e))}first(){return bt(this.node.firstChild)}get(t){return bt(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=St(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return bt(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=bt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=bt(e.node.parentNode));return e}put(t,e){return t=vt(t),this.add(t,e),t}putIn(t,e){return vt(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=vt(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,r=this.attr(e);for(const t in r)"number"==typeof r[t]&&(r[t]=Math.round(r[t]*n)/n);return this.attr(r),this}svg(t,e){return this.xml(t,e,lt)}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=bt(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 r=yt("wrapper",n),i=ft.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Tt(me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=It.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))?le[t]:It.test(e)?parseFloat(e):e;"number"==typeof(e=pe.reduce(((e,n)=>n(t,e,this)),e))?e=new de(e):fe.has(t)&&Vt.isColor(e)?e=new Vt(e):e.constructor===Array&&(e=new ce(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 ee(t,this.node)},findOne:function(t){return bt(this.node.querySelector(t))}}),Nt(me,"Dom");class ge extends me{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 de(t).plus(this.x()))}dy(t=0){return this.y(new de(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=vt(t));const n=new Kt;let r=this;for(;(r=r.parent())&&r.node!==ft.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Lt);return e?vt(e[1]):null}root(){const t=this.parent(mt[gt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=st(this,t,e);return this.width(new de(n.width)).height(new de(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return ut(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Tt(ge,{bbox:function(){const t=Zt(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(Yt().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 $t(t)},rbox:function(t){const e=Zt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new $t(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 Gt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Ut(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 Ut(e)}return new Ut(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Ut}}}),Nt(ge,"Element");const ye={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 Vt||Vt.isRgb(e)||e instanceof ge)this.attr(t,e);else for(n=ye[t].length-1;n>=0;n--)null!=e[ye[t][n]]&&this.attr(ye.prefix(t,ye[t][n]),e[ye[t][n]]);return this},K(["Element","Runner"],e)})),K(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new Ut(this):this.attr("transform",new Ut(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!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)}}),K("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new de(t)):this.rx(t).ry(e)}}),K("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Gt(this.node.getPointAtLength(t))}}),K(["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)}}),K("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}),{})),K("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Ot).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Rt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(Ut.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new Ut)},toParent:function(t,e){if(this===t)return this;if(ht(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.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 Ut(this).decompose();return null==t?e:e[t]}Ut.isMatrixLike(t)||(t={...t,origin:ot(t,this)});const n=new Ut(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class ve extends ge{flatten(){return this.each((function(){if(this instanceof ve)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,r){return r[r.length-n-1].toParent(t,e)})),this.remove()}}Nt(ve,"Container");class we extends ve{constructor(t,e=t){super(wt("defs",t),e)}flatten(){return this}ungroup(){return this}}Nt(we,"Defs");class be extends ge{}function xe(t){return this.attr("rx",t)}function Ne(t){return this.attr("ry",t)}function ke(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Se(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function _e(t){return this.attr("cx",t)}function Te(t){return this.attr("cy",t)}function Me(t){return null==t?2*this.rx():this.rx(new de(t).divide(2))}function Ce(t){return null==t?2*this.ry():this.ry(new de(t).divide(2))}Nt(be,"Shape");class Ee extends be{constructor(t,e=t){super(wt("ellipse",t),e)}size(t,e){const n=st(this,t,e);return this.rx(new de(n.width).divide(2)).ry(new de(n.height).divide(2))}}Tt(Ee,t),K("Container",{ellipse:Mt((function(t=0,e=t){return this.put(new Ee).size(t,e).move(0,0)}))}),Nt(Ee,"Ellipse");class Ae extends me{constructor(t=ft.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 me(yt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Nt(Ae,"Fragment");const Le=Ae;function Oe(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new de(t),fy:new de(e)}):this.attr({x1:new de(t),y1:new de(e)})}function je(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new de(t),cy:new de(e)}):this.attr({x2:new de(t),y2:new de(e)})}class De extends ve{constructor(t,e){super(wt(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 $t}targets(){return ee("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()+")"}}Tt(De,e),K({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Mt((function(t,e){return this.put(new De(t)).update(e)}))}}),Nt(De,"Gradient");class We extends ve{constructor(t,e=t){super(wt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new $t}targets(){return ee("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()+")"}}K({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Mt((function(t,e,n){return this.put(new We).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Nt(We,"Pattern");class Pe extends be{constructor(t,e=t){super(wt("image",t),e)}load(t,e){if(!t)return this;const n=new ft.window.Image;return oe(n,"load",(function(t){const r=this.parent(We);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof We&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),oe(n,"load error",(function(){ae(n)})),this.attr("href",n.src=t,dt)}}var Ie;Ie=function(t,e,n){return"fill"!==t&&"stroke"!==t||qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Pe&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},pe.push(Ie),K({Container:{image:Mt((function(t,e){return this.put(new Pe).size(0,0).load(t,e)}))}}),Nt(Pe,"Image");class qe extends ce{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new $t(n,r,t-n,e-r)}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(Rt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.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){Ut.isMatrixLike(t)||(t=new Ut(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Re=qe;function Fe(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function ze(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function He(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function Be(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class Ve extends be{constructor(t,e=t){super(wt("line",t),e)}array(){return new qe([[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,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new qe(t).toLine(),this.attr(t))}size(t,e){const n=st(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Tt(Ve,i),K({Container:{line:Mt((function(...t){return Ve.prototype.plot.apply(this.put(new Ve),null!=t[0]?t:[0,0,0,0])}))}}),Nt(Ve,"Line");class Ge extends ve{constructor(t,e=t){super(wt("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 Xe(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}K({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Mt((function(t,e,n){return this.put(new Ge).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof Ge?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Nt(Ge,"Marker");const Ue={"-":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,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class Ye{done(){return!1}}class Qe extends Ye{constructor(t=">"){super(),this.ease=Ue[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class $e extends Ye{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function Ze(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,r=Math.log(e/100+1e-10),i=-r/Math.sqrt(n*n+r*r),s=3.9/(i*t);this.d=2*i*s,this.k=s*s}Tt(class extends $e{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const i=r.velocity||0,s=-this.d*i-this.k*(t-e),o=t+i*n+s*n*n/2;return r.velocity=i+s*n,r.done=Math.abs(e-o)+Math.abs(i)<.002,r.done?e:o}},{duration:Xe("_duration",Ze),overshoot:Xe("_overshoot",Ze)}),Tt(class extends $e{constructor(t=.1,e=.01,n=0,r=1e3){super(),this.p(t).i(e).d(n).windup(r)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;const i=e-t;let s=(r.integral||0)+i*n;const o=(i-(r.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),r.error=i,r.integral=s,r.done=Math.abs(i)<.001,r.done?e:t+(this.P*i+this.I*s+this.D*o)}},{windup:Xe("_windup"),p:Xe("P"),i:Xe("I"),d:Xe("D")});const Je={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Ke={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]]}},tn="mlhvqtcsaz".split("");for(let t=0,e=tn.length;t<e;++t)Ke[tn[t]]=function(t){return function(e,n,r){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,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return Ke[t](e,n,r)}}(tn[t].toUpperCase());function en(t){return t.segment.length&&t.segment.length-1===Je[t.segment[0].toUpperCase()]}function nn(t,e){t.inNumber&&rn(t,!1);const n=Ft.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function rn(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,en(t)&&sn(t)}function sn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Ke[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function on(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 an(t){return"E"===t.lastToken.toUpperCase()}const hn=new Set([" ",",","\t","\n","\r","\f"]);class un extends ce{bbox(){return Yt().path.setAttribute("d",this.toString()),new $t(Yt.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][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,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Gt,p:new Gt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!nn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(hn.has(r))i.inNumber&&rn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Ft.test(r)){if(i.inNumber)rn(i,!1);else{if(!en(i))throw new Error("parser Error");sn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!an(i)){rn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||on(i)){i.inNumber=!0,i.number=r,rn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){rn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&rn(i,!1),i.inSegment&&en(i)&&sn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;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 ln=t=>{const e=typeof t;return"number"===e?de:"string"===e?Vt.isColor(t)?Vt:Rt.test(t)?Ft.test(t)?un:ce:Ct.test(t)?de:dn:gn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ce:"object"===e?mn:dn};class cn{constructor(t){this._stepper=t||new Qe("-"),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(ln(t));let e=new this._type(t);return this._type===Vt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===mn&&(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 dn{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 fn{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,fn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}fn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const pn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===Vt&&t[n+7]!==e[n+7]){const e=t[n+7],r=new Vt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),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 r=ln(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(pn),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(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const gn=[dn,fn,mn];class yn extends be{constructor(t,e=t){super(wt("path",t),e)}array(){return this._array||(this._array=new un(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 un(t))}size(t,e){const n=st(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 vn(){return this._array||(this._array=new qe(this.attr("points")))}function wn(){return delete this._array,this}function bn(t,e){return this.attr("points",this.array().move(t,e))}function xn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new qe(t))}function Nn(t,e){const n=st(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}yn.prototype.MorphArray=un,K({Container:{path:Mt((function(t){return this.put(new yn).plot(t||new un)}))}}),Nt(yn,"Path");class kn extends be{constructor(t,e=t){super(wt("polygon",t),e)}}K({Container:{polygon:Mt((function(t){return this.put(new kn).plot(t||new qe)}))}}),Tt(kn,i),Tt(kn,s),Nt(kn,"Polygon");class Sn extends be{constructor(t,e=t){super(wt("polyline",t),e)}}K({Container:{polyline:Mt((function(t){return this.put(new Sn).plot(t||new qe)}))}}),Tt(Sn,i),Tt(Sn,s),Nt(Sn,"Polyline");class _n extends be{constructor(t,e=t){super(wt("rect",t),e)}}Tt(_n,{rx:xe,ry:Ne}),K({Container:{rect:Mt((function(t,e){return this.put(new _n).size(t,e)}))}}),Nt(_n,"Rect");class Tn{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 Mn={nextDraw:null,frames:new Tn,timeouts:new Tn,immediates:new Tn,timer:()=>ft.window.performance||ft.window.Date,transforms:[],frame(t){const e=Mn.frames.push({run:t});return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),e},timeout(t,e){e=e||0;const n=Mn.timer().now()+e,r=Mn.timeouts.push({run:t,time:n});return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),r},immediate(t){const e=Mn.immediates.push(t);return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),e},cancelFrame(t){null!=t&&Mn.frames.remove(t)},clearTimeout(t){null!=t&&Mn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Mn.immediates.remove(t)},_draw(t){let e=null;const n=Mn.timeouts.last();for(;(e=Mn.timeouts.shift())&&(t>=e.time?e.run():Mn.timeouts.push(e),e!==n););let r=null;const i=Mn.frames.last();for(;r!==i&&(r=Mn.frames.shift());)r.run(t);let s=null;for(;s=Mn.immediates.shift();)s();Mn.nextDraw=Mn.timeouts.first()||Mn.frames.first()?ft.window.requestAnimationFrame(Mn._draw):null}},Cn=Mn,En=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},An=function(){const t=ft.window;return(t.performance||t.Date).now()};class Ln extends he{constructor(t=An){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(En);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+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 Cn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Cn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,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 i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!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):i=!0))}return i&&!(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)}}K({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ln,this._timeline):(this._timeline=t,this)}}});class On extends he{constructor(t){super(),this.id=On.id++,t="function"==typeof(t=null==t?400:t)?new $e(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof $e,this._stepper=this._isDeclarative?t:new Qe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Ut,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 r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof Ye||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,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 r=On.sanitise(t,e,n),i=new On(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Ut,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 Qe(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,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},h=i*(r+n)-r;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()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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,r){return this._queue.push({initialiser:t||ue,runner:e||ue,retarget:n,isTransform:r,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 Ln||(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 r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new Ut,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],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&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,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.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 r=this.timeline();return r&&r.play(),!0}return!1}}On.id=0;class jn{constructor(t=new Ut,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Tt([On,jn],{mergeWith(t){return new jn(t.transforms.lmultiply(this.transforms),t.id)}});const Dn=(t,e)=>t.lmultiplyO(e),Wn=t=>t.transforms;function Pn(){const t=this._transformationRunners.runners.map(Wn).reduce(Dn,new Ut);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class In{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 jn).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 r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}K({Element:{animate(t,e,n){const r=On.sanitise(t,e,n),i=this.timeline();return new On(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.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(Wn).reduce(Dn,new Ut)},_addRunner(t){this._transformationRunners.add(t),Cn.cancelImmediate(this._frameId),this._frameId=Cn.immediate(Pn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new In).add(new jn(new Ut(this))))}}}),Tt(On,{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 r=e;if(this._tryRetarget(t,r))return this;let i=new cn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.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 mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new mn(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new cn(this._stepper).to(new de(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,r){e=r,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 r=Ut.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new cn(this._stepper).type(n?fn:Ut);let s,o,a,h,u;return this.queue((function(){o=o||this.element(),s=s||ot(t,o),u=new Ut(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:d}=new Gt(s).transform(o._currentTransform(this));let f=new Ut({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:u;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],r=n.map((t=>Math.abs(t-e))),i=Math.min(...r),s=r.indexOf(i);f.rotate=n[s]}e&&(r||(f.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),i.from(p),i.to(f);const m=i.at(l);return h=m.rotate,a=new Ut(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=ot(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",i),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 de(e),this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new de(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new cn(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 de(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,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new cn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new $t(t,e,n,r))},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)}}),Tt(On,{rx:xe,ry:Ne,from:Oe,to:je}),Nt(On,"Runner");class qn extends ve{constructor(t,e=t){super(wt("svg",t),e),this.namespace()}defs(){return this.isRoot()?bt(this.node.querySelector("defs"))||this.put(new we):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof ft.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:lt,version:"1.1"}).attr("xmlns:xlink",dt,ct):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,ct).attr("xmlns:svgjs",null,ct)}root(){return this.isRoot()?this:super.root()}}K({Container:{nested:Mt((function(){return this.put(new qn)}))}}),Nt(qn,"Svg",!0);class Rn extends ve{constructor(t,e=t){super(wt("symbol",t),e)}}function Fn(t){return!1===this._build&&this.clear(),this.node.appendChild(ft.document.createTextNode(t)),this}function zn(){return this.node.getComputedTextLength()}function Hn(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Bn(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function Vn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function Gn(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function Xn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function Un(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function Yn(t){return this.attr("x",t)}function Qn(t){return this.attr("y",t)}function $n(t,e){return this.ax(t).ay(e)}function Zn(t){return this._build=!!t,this}K({Container:{symbol:Mt((function(){return this.put(new Rn)}))}}),Nt(Rn,"Symbol");class Jn extends be{constructor(t,e=t){super(wt("text",t),e),this.dom.leading=this.dom.leading??new de(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new de(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(r){if(ht(this.node))return;const i=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new de(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new de(t.leading||1.3),this}writeDataToDom(){return ut(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||ht(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===bt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].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()}}Tt(Jn,o),K({Container:{text:Mt((function(t=""){return this.put(new Jn).text(t)})),plain:Mt((function(t=""){return this.put(new Jn).plain(t)}))}}),Nt(Jn,"Text");class Kn extends be{constructor(t,e=t){super(wt("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 Jn))return this;const e=t.index(this),n=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new de(n);return this.dy(e?r: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)}}Tt(Kn,o),K({Tspan:{tspan:Mt((function(t=""){const e=new Kn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Nt(Kn,"Tspan");class tr extends be{constructor(t,e=t){super(wt("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 de(t).divide(2))}}Tt(tr,{x:ke,y:Se,cx:_e,cy:Te,width:Me,height:Ce}),K({Container:{circle:Mt((function(t=0){return this.put(new tr).size(t).move(0,0)}))}}),Nt(tr,"Circle");class er extends ve{constructor(t,e=t){super(wt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ee("svg [clip-path*="+this.id()+"]")}}K({Container:{clip:Mt((function(){return this.defs().put(new er)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof er?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Nt(er,"ClipPath");class nr extends ge{constructor(t,e=t){super(wt("foreignObject",t),e)}}function rr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof ft.window.SVGSVGElement?new $t(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new Ut(n),s=i.translate(t,e).transform(i.inverse()),o=new Gt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function ir(t){return this.dmove(t,0)}function sr(t){return this.dmove(0,t)}function or(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function ar(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function hr(t,e,n=this.bbox()){const r=st(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new Gt(n).transform(new Ut(t).inverse());t.scale(i,s,e.x,e.y)})),this}function ur(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function lr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function cr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}K({Container:{foreignObject:Mt((function(t,e){return this.put(new nr).size(t,e)}))}}),Nt(nr,"ForeignObject");class dr extends ve{constructor(t,e=t){super(wt("g",t),e)}}Tt(dr,a),K({Container:{group:Mt((function(){return this.put(new dr)}))}}),Nt(dr,"G");class fr extends ve{constructor(t,e=t){super(wt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,dt)}}Tt(fr,a),K({Container:{link:Mt((function(t){return this.put(new fr).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 fr,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}}}),Nt(fr,"A");class pr extends ve{constructor(t,e=t){super(wt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ee("svg [mask*="+this.id()+"]")}}K({Container:{mask:Mt((function(){return this.defs().put(new pr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof pr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Nt(pr,"Mask");class mr extends ge{constructor(t,e=t){super(wt("stop",t),e)}update(t){return("number"==typeof t||t instanceof de)&&(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 de(t.offset)),this}}K({Gradient:{stop:function(t,e,n){return this.put(new mr).update(t,e,n)}}}),Nt(mr,"Stop");class gr extends ge{constructor(t,e=t){super(wt("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))}}K("Dom",{style(t,e){return this.put(new gr).rule(t,e)},fontface(t,e,n){return this.put(new gr).font(t,e,n)}}),Nt(gr,"Style");class yr extends Jn{constructor(t,e=t){super(wt("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")}}K({Container:{textPath:Mt((function(t,e){return t instanceof Jn||(t=this.text(t)),t.path(e)}))},Text:{path:Mt((function(t,e=!0){const n=new yr;let r;if(t instanceof yn||(t=this.defs().path(t)),n.attr("href","#"+t,dt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Mt((function(t){return t instanceof Jn||(t=(new Jn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ee("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),yr.prototype.MorphArray=un,Nt(yr,"TextPath");class vr extends be{constructor(t,e=t){super(wt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,dt)}}K({Container:{use:Mt((function(t,e){return this.put(new vr).use(t,e)}))}}),Nt(vr,"Use"),Tt([qn,Rn,Pe,We,Ge],tt("viewbox")),Tt([Ve,Sn,kn,yn],tt("marker")),Tt(Jn,tt("Text")),Tt(yn,tt("Path")),Tt(we,tt("Defs")),Tt([Jn,Kn],tt("Tspan")),Tt([_n,Ee,De,On],tt("radius")),Tt(he,tt("EventTarget")),Tt(me,tt("Dom")),Tt(ge,tt("Element")),Tt(be,tt("Shape")),Tt([ve,Le],tt("Container")),Tt(De,tt("Gradient")),Tt(On,tt("Runner")),Kt.extend([...new Set(J)]),function(t=[]){gn.push(...[].concat(t))}([de,Vt,$t,Ut,ce,qe,un,Gt]),Tt(gn,{to(t){return(new cn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var wr,br,xr,Nr,kr,Sr,_r,Tr,Mr,Cr,Er,Ar,Lr,Or,jr,Dr,Wr,Pr,Ir,qr,Rr,Fr,zr,Hr,Br,Vr,Gr,Xr,Ur,Yr,Qr,$r,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,hi,ui,li,ci,di,fi,pi,mi,gi,yi,vi,wi,bi,xi,Ni,ki,Si,_i,Ti,Mi,Ci,Ei,Ai,Li,Oi,ji,Di,Wi=n(169),Pi=n(692),Ii=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},qi=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class Ri{constructor(t){wr.add(this),this.domNode=document.createElement("div"),br.set(this,new Fi),xr.set(this,document.createElement("div")),Nr.set(this,void 0),kr.set(this,document.createElement("div")),Sr.set(this,void 0),_r.set(this,void 0),Tr.set(this,void 0),Mr.set(this,void 0),Cr.set(this,void 0),Er.set(this,void 0),Ar.set(this,void 0),Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),Dr.set(this,void 0),this.domNode.classList.add(N.lf),Ii(this,br,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(N.ho))),this.domNode.append(Ii(this,br,"f").domNode),Ii(this,xr,"f").classList.add(N.Qs),this.domNode.append(Ii(this,xr,"f")),qi(this,Nr,new zi(t),"f"),Ii(this,xr,"f").append(Ii(this,Nr,"f").domNode),Ii(this,kr,"f").classList.add(N.x3),Ii(this,xr,"f").append(Ii(this,kr,"f")),qi(this,Sr,new Hi(t),"f"),Ii(this,kr,"f").append(Ii(this,Sr,"f").domNode),qi(this,_r,new Bi(t),"f"),Ii(this,kr,"f").append(Ii(this,_r,"f").domNode),qi(this,Tr,new Vi(t),"f"),Ii(this,kr,"f").append(Ii(this,Tr,"f").domNode),qi(this,Mr,new Gi(t),"f"),Ii(this,kr,"f").append(Ii(this,Mr,"f").domNode),qi(this,Cr,new Xi(t),"f"),Ii(this,kr,"f").append(Ii(this,Cr,"f").domNode),qi(this,Er,new Ui(t),"f"),Ii(this,kr,"f").append(Ii(this,Er,"f").domNode),qi(this,Ar,new Yi(t),"f"),Ii(this,kr,"f").append(Ii(this,Ar,"f").domNode),qi(this,Lr,new Qi(t),"f"),Ii(this,kr,"f").append(Ii(this,Lr,"f").domNode),qi(this,Or,new Ji(t),"f"),Ii(this,kr,"f").append(Ii(this,Or,"f").domNode),qi(this,jr,new Ki(t),"f"),Ii(this,kr,"f").append(Ii(this,jr,"f").domNode),qi(this,Dr,new ts(t),"f"),Ii(this,kr,"f").append(Ii(this,Dr,"f").domNode)}refresh(){Ii(this,wr,"a",Wr).forEach((t=>t.refresh()))}}br=new WeakMap,xr=new WeakMap,Nr=new WeakMap,kr=new WeakMap,Sr=new WeakMap,_r=new WeakMap,Tr=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Ar=new WeakMap,Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,wr=new WeakSet,Wr=function(){return[Ii(this,Nr,"f"),Ii(this,Sr,"f"),Ii(this,_r,"f"),Ii(this,Tr,"f"),Ii(this,Mr,"f"),Ii(this,Cr,"f"),Ii(this,Er,"f"),Ii(this,Ar,"f"),Ii(this,Lr,"f"),Ii(this,Or,"f"),Ii(this,jr,"f"),Ii(this,Dr,"f")]};class Fi{constructor(){this.domNode=document.createElement("div"),Pr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),Ir.set(this,document.createElement("p")),this.domNode.classList.add(N.wx),Ii(this,Pr,"f").classList.add(N.m9),Ii(this,Pr,"f").setAttribute("viewBox","0 0 6 10"),Ii(this,Pr,"f").setAttribute("width","6"),Ii(this,Pr,"f").setAttribute("height","10"),Ii(this,Pr,"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(Ii(this,Pr,"f")),Ii(this,Ir,"f").classList.add(N.aW),Ii(this,Ir,"f").textContent="Bases",this.domNode.append(Ii(this,Ir,"f"))}}Pr=new WeakMap,Ir=new WeakMap;class zi{constructor(t){qr.set(this,void 0),this.domNode=document.createElement("p"),Rr.set(this,document.createElement("span")),Fr.set(this,document.createElement("span")),qi(this,qr,t,"f"),this.domNode.classList.add(N.IU),Ii(this,Rr,"f").style.fontWeight="700",this.domNode.append(Ii(this,Rr,"f"),Ii(this,Fr,"f")),Ii(this,qr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ii(this,qr,"f").selectedBases].length;Ii(this,Rr,"f").textContent=`${t}`,Ii(this,Fr,"f").textContent=1==t?" base is selected.":" bases are selected."}}qr=new WeakMap,Rr=new WeakMap,Fr=new WeakMap;class Hi{constructor(t){zr.add(this),Hr.set(this,void 0),Br.set(this,new C({onSubmit:()=>Ii(this,zr,"m",Gr).call(this)})),Vr.set(this,void 0),qi(this,Hr,t,"f"),qi(this,Vr,new q("Text Content",Ii(this,Br,"f").domNode),"f"),Ii(this,Vr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",Pi(this.domNode).css({alignSelf:"start"}),Ii(this,Hr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,Hr,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ii(this,Vr,"f").domNode}refresh(){let t=[...Ii(this,Hr,"f").selectedBases];try{Ii(this,Br,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ii(this,Br,"f").domNode.value=""}}}Hr=new WeakMap,Br=new WeakMap,Vr=new WeakMap,zr=new WeakSet,Gr=function(){var t;let e=null!==(t=Ii(this,Br,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ii(this,Hr,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ii(this,Hr,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Bi{constructor(t){Xr.set(this,void 0),Ur.set(this,void 0),Yr.set(this,void 0),qi(this,Xr,t,"f"),qi(this,Ur,new rs(t,"fill"),"f"),qi(this,Yr,new q("Fill",Ii(this,Ur,"f").domNode),"f"),Ii(this,Yr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,Yr,"f").domNode}refresh(){Ii(this,Ur,"f").refresh()}}Xr=new WeakMap,Ur=new WeakMap,Yr=new WeakMap;class Vi{constructor(t){Qr.add(this),$r.set(this,void 0),Zr.set(this,new U),Jr.set(this,void 0),Kr.set(this,void 0),ti.set(this,void 0),qi(this,$r,t,"f"),Ii(this,Zr,"f").domNode.addEventListener("input",(()=>Ii(this,Qr,"m",ei).call(this))),qi(this,Jr,new $("Fill Color",Ii(this,Zr,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,$r,"f").selectedBases.addEventListener("change",(()=>qi(this,Kr,void 0,"f"))),Ii(this,Zr,"f").domNode.addEventListener("focus",(()=>qi(this,ti,Ii(this,Zr,"f").domNode.value,"f"))),Ii(this,$r,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,$r,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,Jr,"f").domNode}refresh(){let t=[...Ii(this,$r,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Vt(t)));Ii(this,Zr,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ii(this,Zr,"f").domNode.value="#000000"}else Ii(this,Zr,"f").domNode.value="#000000"}}$r=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Kr=new WeakMap,ti=new WeakMap,Qr=new WeakSet,ei=function(){if(Ii(this,Zr,"f").domNode.value===Ii(this,ti,"f"))return;let t=[...Ii(this,$r,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ii(this,Zr,"f").domNode.value.toLowerCase()}))||((Ii(this,$r,"f").undoStack.isEmpty()||Ii(this,$r,"f").undoStack.peek()!==Ii(this,Kr,"f"))&&(Ii(this,$r,"f").pushUndoStack(),qi(this,Kr,Ii(this,$r,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ii(this,Zr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Gi{constructor(t){ni.set(this,void 0),ri.set(this,void 0),ii.set(this,void 0),qi(this,ni,t,"f"),qi(this,ri,new rs(t,"fill-opacity"),"f"),qi(this,ii,new q("Fill Opacity",Ii(this,ri,"f").domNode),"f"),Ii(this,ii,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,ii,"f").domNode}refresh(){Ii(this,ri,"f").refresh()}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Xi{constructor(t){si.set(this,void 0),oi.set(this,void 0),ai.set(this,void 0),qi(this,si,t,"f"),qi(this,oi,new rs(t,"font-family"),"f"),qi(this,ai,new q("Font Family",Ii(this,oi,"f").domNode),"f"),Ii(this,ai,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,ai,"f").domNode}refresh(){Ii(this,oi,"f").refresh()}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap;class Ui{constructor(t){hi.set(this,void 0),ui.set(this,void 0),li.set(this,void 0),qi(this,hi,t,"f"),qi(this,ui,new rs(t,"font-size"),"f"),qi(this,li,new q("Font Size",Ii(this,ui,"f").domNode),"f"),Ii(this,li,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,li,"f").domNode}refresh(){Ii(this,ui,"f").refresh()}}hi=new WeakMap,ui=new WeakMap,li=new WeakMap;class Yi{constructor(t){ci.set(this,void 0),di.set(this,void 0),fi.set(this,void 0),qi(this,ci,t,"f"),qi(this,di,new rs(t,"font-weight"),"f"),qi(this,fi,new q("Font Weight",Ii(this,di,"f").domNode),"f"),Ii(this,fi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,fi,"f").domNode}refresh(){Ii(this,di,"f").refresh()}}ci=new WeakMap,di=new WeakMap,fi=new WeakMap;class Qi{constructor(t){pi.add(this),mi.set(this,void 0),gi.set(this,new z),yi.set(this,void 0),qi(this,mi,t,"f"),Ii(this,gi,"f").domNode.addEventListener("change",(()=>Ii(this,pi,"m",vi).call(this))),qi(this,yi,new V("Bold",Ii(this,gi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,mi,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,yi,"f").domNode}refresh(){let t=[...Ii(this,mi,"f").selectedBases];0==t.length?Ii(this,gi,"f").domNode.checked=!1:Ii(this,gi,"f").domNode.checked=t.every($i)}}function $i(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 Zi(t){return!$i(t)}mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,pi=new WeakSet,vi=function(){let t=[...Ii(this,mi,"f").selectedBases];0!=t.length?Ii(this,gi,"f").domNode.checked&&t.every($i)?this.refresh():Ii(this,gi,"f").domNode.checked||!t.every(Zi)?(Ii(this,mi,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ii(this,gi,"f").domNode.checked&&Zi(t)?t.setAttribute("font-weight","700"):!Ii(this,gi,"f").domNode.checked&&$i(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ii(this,gi,"f").domNode.blur()):this.refresh():this.refresh()};class Ji{constructor(t){wi.set(this,void 0),bi.set(this,void 0),xi.set(this,void 0),qi(this,wi,t,"f"),qi(this,bi,new rs(t,"font-style"),"f"),qi(this,xi,new q("Font Style",Ii(this,bi,"f").domNode),"f"),Ii(this,xi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,xi,"f").domNode}refresh(){Ii(this,bi,"f").refresh()}}wi=new WeakMap,bi=new WeakMap,xi=new WeakMap;class Ki{constructor(t){Ni.set(this,void 0),ki.set(this,void 0),Si.set(this,void 0),qi(this,Ni,t,"f"),qi(this,ki,new rs(t,"text-decoration"),"f"),qi(this,Si,new q("Text Decoration",Ii(this,ki,"f").domNode),"f"),Ii(this,Si,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,Si,"f").domNode}refresh(){Ii(this,ki,"f").refresh()}}Ni=new WeakMap,ki=new WeakMap,Si=new WeakMap;class ts{constructor(t){_i.add(this),Ti.set(this,void 0),Mi.set(this,new z),Ci.set(this,void 0),qi(this,Ti,t,"f"),Ii(this,Mi,"f").domNode.addEventListener("change",(()=>Ii(this,_i,"m",Ei).call(this))),qi(this,Ci,new V("Underlined",Ii(this,Mi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,Ti,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,Ti,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,Ci,"f").domNode}refresh(){let t=[...Ii(this,Ti,"f").selectedBases];0==t.length?Ii(this,Mi,"f").domNode.checked=!1:Ii(this,Mi,"f").domNode.checked=t.every(es)}}function es(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function ns(t){return!es(t)}Ti=new WeakMap,Mi=new WeakMap,Ci=new WeakMap,_i=new WeakSet,Ei=function(){let t=[...Ii(this,Ti,"f").selectedBases];0!=t.length?Ii(this,Mi,"f").domNode.checked&&t.every(es)?this.refresh():Ii(this,Mi,"f").domNode.checked||!t.every(ns)?(Ii(this,Ti,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ii(this,Mi,"f").domNode.checked&&ns(t)?t.setAttribute("text-decoration","underline"):!Ii(this,Mi,"f").domNode.checked&&es(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ii(this,Mi,"f").domNode.blur()):this.refresh():this.refresh()};class rs{constructor(t,e){Ai.add(this),Li.set(this,void 0),Oi.set(this,void 0),ji.set(this,new C({onSubmit:()=>Ii(this,Ai,"m",Di).call(this)})),qi(this,Li,t,"f"),qi(this,Oi,e,"f"),Ii(this,Li,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,Li,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ii(this,ji,"f").domNode}refresh(){let t=[...Ii(this,Li,"f").selectedBases];try{Ii(this,ji,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ii(this,Oi,"f")))&&void 0!==e?e:""})))}catch(t){Ii(this,ji,"f").domNode.value=""}}}Li=new WeakMap,Oi=new WeakMap,ji=new WeakMap,Ai=new WeakSet,Di=function(){let t=Ii(this,ji,"f").domNode.value,e=[...Ii(this,Li,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ii(this,Oi,"f"))===t))||(Ii(this,Li,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ii(this,Oi,"f"),t)))))),this.refresh()};var is=n(924),ss={};ss.styleTagTransform=w(),ss.setAttributes=m(),ss.insert=f().bind(null,"head"),ss.domAPI=c(),ss.insertStyleElement=y(),u()(is.Ay,ss),is.Ay&&is.Ay.locals&&is.Ay.locals;var os=n(584),as={};as.styleTagTransform=w(),as.setAttributes=m(),as.insert=f().bind(null,"head"),as.domAPI=c(),as.insertStyleElement=y(),u()(os.Ay,as),os.Ay&&os.Ay.locals&&os.Ay.locals;var hs,us=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ls{constructor(){this.domNode=document.createElement("div"),this.caret=new cs,hs.set(this,document.createElement("p")),this.domNode.classList.add(os.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),us(this,hs,"f").classList.add(os.Qq),this.domNode.append(us(this,hs,"f"))}get textContent(){return us(this,hs,"f").textContent}set textContent(t){us(this,hs,"f").textContent=t}}hs=new WeakMap;class cs{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(os.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(os.Z7)}pointDown(){this.domNode.classList.add(os.Z7)}}var ds=n(887),fs={};fs.styleTagTransform=w(),fs.setAttributes=m(),fs.insert=f().bind(null,"head"),fs.domAPI=c(),fs.insertStyleElement=y(),u()(ds.Ay,fs),ds.Ay&&ds.Ay.locals&&ds.Ay.locals;var ps,ms=n(704),gs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ys{constructor(){this.domNode=document.createElement("div"),ps.set(this,document.createElement("p")),this.tooltip=new ms.Tooltip(""),this.domNode.classList.add(ds.lI),gs(this,ps,"f").classList.add(ds.Qq),this.domNode.append(gs(this,ps,"f")),this.tooltip.owner=this.domNode}get textContent(){return gs(this,ps,"f").textContent}set textContent(t){gs(this,ps,"f").textContent=t}disable(){this.domNode.classList.add(ds.r9)}enable(){this.domNode.classList.remove(ds.r9)}}ps=new WeakMap;var vs=n(723),ws={};ws.styleTagTransform=w(),ws.setAttributes=m(),ws.insert=f().bind(null,"head"),ws.domAPI=c(),ws.insertStyleElement=y(),u()(vs.Ay,ws),vs.Ay&&vs.Ay.locals&&vs.Ay.locals;var bs,xs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ns{constructor(t,e){this.domNode=document.createElement("div"),bs.set(this,document.createElement("p")),this.tooltip=new ms.Tooltip(""),this.domNode.classList.add(vs.kL),xs(this,bs,"f").classList.add(vs.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(xs(this,bs,"f")),this.tooltip.owner=this.domNode}get textContent(){return xs(this,bs,"f").textContent}set textContent(t){xs(this,bs,"f").textContent=t}get onClick(){return xs(this,bs,"f").onclick}set onClick(t){xs(this,bs,"f").onclick=t}click(){xs(this,bs,"f").click()}disable(){xs(this,bs,"f").classList.add(vs.r9)}enable(){xs(this,bs,"f").classList.remove(vs.r9)}isDisabled(){return xs(this,bs,"f").classList.contains(vs.r9)}isEnabled(){return!this.isDisabled()}}bs=new WeakMap;var ks,Ss,_s,Ts,Ms,Cs,Es,As,Ls,Os,js,Ds,Ws,Ps,Is,qs,Rs,Fs,zs,Hs,Bs,Vs,Gs,Xs,Us,Ys,Qs,$s,Zs,Js,Ks,to,eo,no,ro,io,so,oo,ao,ho,uo,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,No,ko,So,_o,To,Mo,Co,Eo,Ao,Lo,Oo,jo,Do,Wo,Po,Io,qo,Ro,Fo,zo,Ho,Bo,Vo,Go,Xo,Uo,Yo,Qo,$o,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ha,ua,la,ca,da,fa=n(726),pa=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},ma=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ga{constructor(t){ks.add(this),Ss.set(this,void 0),this.domNode=document.createElement("div"),_s.set(this,new ls),Ts.set(this,document.createElement("div")),Ms.set(this,void 0),Cs.set(this,document.createElement("div")),Es.set(this,void 0),As.set(this,void 0),Ls.set(this,void 0),Os.set(this,void 0),js.set(this,void 0),Ds.set(this,void 0),Ws.set(this,void 0),Ps.set(this,void 0),Is.set(this,void 0),qs.set(this,void 0),Rs.set(this,void 0),Fs.set(this,void 0),pa(this,Ss,t,"f"),this.domNode.classList.add(is.qM),ma(this,_s,"f").textContent="Outlines",ma(this,_s,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(ma(this,_s,"f").domNode),ma(this,Ts,"f").classList.add(is.Qs),this.domNode.append(ma(this,Ts,"f")),pa(this,Ms,new ya(t),"f"),ma(this,Ts,"f").append(ma(this,Ms,"f").domNode),ma(this,Cs,"f").classList.add(is.x3),ma(this,Ts,"f").append(ma(this,Cs,"f")),pa(this,Es,new va(t),"f"),ma(this,Cs,"f").append(ma(this,Es,"f").domNode),pa(this,As,new wa(t),"f"),ma(this,Cs,"f").append(ma(this,As,"f").domNode),pa(this,Ls,new xa(t),"f"),ma(this,Cs,"f").append(ma(this,Ls,"f").domNode),pa(this,Os,new Na(t),"f"),ma(this,Cs,"f").append(ma(this,Os,"f").domNode),pa(this,js,new ka(t),"f"),ma(this,Cs,"f").append(ma(this,js,"f").domNode),pa(this,Ds,new Sa(t),"f"),ma(this,Cs,"f").append(ma(this,Ds,"f").domNode),pa(this,Ws,new _a(t),"f"),ma(this,Cs,"f").append(ma(this,Ws,"f").domNode),pa(this,Ps,new Ta(t),"f"),ma(this,Cs,"f").append(ma(this,Ps,"f").domNode),pa(this,Is,new Ma(t),"f"),ma(this,Cs,"f").append(ma(this,Is,"f").domNode),pa(this,qs,new Ca(t),"f"),ma(this,Cs,"f").append(ma(this,qs,"f").domNode),pa(this,Rs,new Ea(t),"f"),ma(this,Cs,"f").append(ma(this,Rs,"f").domNode),pa(this,Fs,new Aa(t),"f"),ma(this,Cs,"f").append(ma(this,Fs,"f").domNode)}isOpen(){return this.domNode.classList.contains(is.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(is.ho),ma(this,_s,"f").caret.pointRight()):(this.domNode.classList.add(is.ho),ma(this,_s,"f").caret.pointDown())}refresh(){ma(this,ks,"a",zs).forEach((t=>t.refresh()))}}Ss=new WeakMap,_s=new WeakMap,Ts=new WeakMap,Ms=new WeakMap,Cs=new WeakMap,Es=new WeakMap,As=new WeakMap,Ls=new WeakMap,Os=new WeakMap,js=new WeakMap,Ds=new WeakMap,Ws=new WeakMap,Ps=new WeakMap,Is=new WeakMap,qs=new WeakMap,Rs=new WeakMap,Fs=new WeakMap,ks=new WeakSet,zs=function(){return[ma(this,Ms,"f"),ma(this,Es,"f"),ma(this,As,"f"),ma(this,Ls,"f"),ma(this,Os,"f"),ma(this,js,"f"),ma(this,Ds,"f"),ma(this,Ws,"f"),ma(this,Ps,"f"),ma(this,Is,"f"),ma(this,qs,"f"),ma(this,Rs,"f"),ma(this,Fs,"f")]};class ya{constructor(t){Hs.set(this,void 0),this.domNode=document.createElement("p"),Bs.set(this,document.createElement("span")),Vs.set(this,document.createElement("span")),pa(this,Hs,t,"f"),this.domNode.classList.add(is.vM),ma(this,Bs,"f").style.fontWeight="700",this.domNode.append(ma(this,Bs,"f"),ma(this,Vs,"f")),ma(this,Hs,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...ma(this,Hs,"f").selectedOutlines].length;ma(this,Bs,"f").textContent=`${t}`,ma(this,Vs,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}Hs=new WeakMap,Bs=new WeakMap,Vs=new WeakMap;class va{constructor(t){Gs.add(this),Xs.set(this,void 0),this.domNode=document.createElement("div"),Us.set(this,document.createElement("p")),Ys.set(this,new ys),Qs.set(this,new ys),$s.set(this,new ys),Zs.set(this,void 0),pa(this,Xs,t,"f"),this.domNode.classList.add(is.VX),ma(this,Us,"f").classList.add(is.iE),ma(this,Us,"f").textContent="Select:",this.domNode.append(ma(this,Us,"f")),ma(this,Ys,"f").domNode.addEventListener("click",(()=>ma(this,Gs,"m",Js).call(this))),ma(this,Ys,"f").textContent="All",ma(this,Ys,"f").domNode.style.marginLeft="20px",this.domNode.append(ma(this,Ys,"f").domNode),ma(this,Qs,"f").domNode.addEventListener("click",(()=>ma(this,Gs,"m",Ks).call(this))),ma(this,Qs,"f").textContent="Outlining",ma(this,Qs,"f").domNode.style.marginLeft="17px",this.domNode.append(ma(this,Qs,"f").domNode),ma(this,$s,"f").domNode.addEventListener("click",(()=>ma(this,Gs,"m",to).call(this))),ma(this,$s,"f").textContent="None",ma(this,$s,"f").domNode.style.marginLeft="17px",this.domNode.append(ma(this,$s,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),pa(this,Zs,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ma(this,Zs,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){ma(this,Gs,"m",eo).call(this),ma(this,Gs,"m",no).call(this),ma(this,Gs,"m",ro).call(this)}}Xs=new WeakMap,Us=new WeakMap,Ys=new WeakMap,Qs=new WeakMap,$s=new WeakMap,Zs=new WeakMap,Gs=new WeakSet,Js=function(){let t=[...ma(this,Xs,"f").drawing.outlines];ma(this,Xs,"f").addToSelected(t)},Ks=function(){let t=new Set(ma(this,Xs,"f").selectedBases),e=[...ma(this,Xs,"f").drawing.outlines];ma(this,Xs,"f").addToSelected(e.filter((e=>t.has(e.owner))))},to=function(){let t=[...ma(this,Xs,"f").drawing.outlines];ma(this,Xs,"f").removeFromSelected(t)},eo=function(){let t=[...ma(this,Xs,"f").drawing.outlines],e=[...ma(this,Xs,"f").selectedOutlines];0==t.length?(ma(this,Ys,"f").disable(),ma(this,Ys,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(ma(this,Ys,"f").disable(),ma(this,Ys,"f").tooltip.textContent="All outlines are already selected."):(ma(this,Ys,"f").enable(),ma(this,Ys,"f").tooltip.textContent="Select all outlines.")},no=function(){let t=[...ma(this,Xs,"f").drawing.outlines],e=new Set(ma(this,Xs,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(ma(this,Xs,"f").selectedOutlines);0==e.size?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="No bases are selected."):0==n.length?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>r.has(t)))?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(ma(this,Qs,"f").enable(),ma(this,Qs,"f").tooltip.textContent="Select outlines outlining the selected bases.")},ro=function(){0==[...ma(this,Xs,"f").selectedOutlines].length?(ma(this,$s,"f").disable(),ma(this,$s,"f").tooltip.textContent="No outlines are selected."):(ma(this,$s,"f").enable(),ma(this,$s,"f").tooltip.textContent="Deselect all outlines.")};class wa{constructor(t){io.add(this),so.set(this,void 0),this.domNode=document.createElement("div"),oo.set(this,document.createElement("div")),ao.set(this,new Ns("Add",(()=>ma(this,io,"m",mo).call(this)))),ho.set(this,new z),uo.set(this,new V("Only add missing outlines",ma(this,ho,"f").domNode)),lo.set(this,void 0),co.set(this,void 0),pa(this,so,t,"f"),this.domNode.style.marginTop="19px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",ma(this,oo,"f").style.display="flex",ma(this,oo,"f").style.flexDirection="row",ma(this,oo,"f").style.gap="14px",this.domNode.append(ma(this,oo,"f")),pa(this,lo,new ba(t),"f"),ma(this,oo,"f").append(ma(this,ao,"f").domNode,ma(this,lo,"f").domNode),ma(this,ho,"f").domNode.checked=!0,ma(this,uo,"f").domNode.style.marginTop="12px",ma(this,uo,"f").domNode.style.alignSelf="start",this.domNode.append(ma(this,uo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),pa(this,co,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ma(this,co,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),ma(this,ho,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){ma(this,io,"m",po).call(this),ma(this,lo,"f").refresh()}}so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,uo=new WeakMap,lo=new WeakMap,co=new WeakMap,io=new WeakSet,fo=function(){return ma(this,ho,"f").domNode.checked},po=function(){let t=[...ma(this,so,"f").selectedBases],e=[...ma(this,so,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(ma(this,ao,"f").disable(),ma(this,ao,"f").tooltip.textContent="No bases are selected."):ma(this,io,"a",fo)&&0==r.length?(ma(this,ao,"f").disable(),ma(this,ao,"f").tooltip.textContent="The selected bases are already outlined."):(ma(this,ao,"f").enable(),ma(this,ao,"f").tooltip.textContent="Outline the selected bases.")},mo=function(){let t=[...ma(this,so,"f").selectedBases];if(0==t.length)return;let e=[...ma(this,so,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=ma(this,io,"a",fo)?r:t;if(0==i.length)return;ma(this,so,"f").pushUndoStack();let s=i.map((t=>ma(this,so,"f").drawing.outline(t)));ma(this,so,"f").addToSelected(s),this.refresh()};class ba{constructor(t){go.set(this,void 0),yo.set(this,new Ns("Remove",(()=>this.press()))),pa(this,go,t,"f"),ma(this,go,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return ma(this,yo,"f").domNode}press(){let t=[...ma(this,go,"f").selectedOutlines];0!=t.length?(ma(this,go,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...ma(this,go,"f").selectedOutlines].length?(ma(this,yo,"f").disable(),ma(this,yo,"f").tooltip.textContent="No outlines are selected."):(ma(this,yo,"f").enable(),ma(this,yo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}go=new WeakMap,yo=new WeakMap;class xa{constructor(t){vo.add(this),wo.set(this,void 0),this.domNode=document.createElement("div"),bo.set(this,document.createElement("p")),xo.set(this,new ys),No.set(this,new ys),pa(this,wo,t,"f"),this.domNode.classList.add(is.Te),ma(this,bo,"f").classList.add(is.QB),ma(this,bo,"f").textContent="Send to:",this.domNode.append(ma(this,bo,"f")),ma(this,xo,"f").domNode.addEventListener("click",(()=>ma(this,vo,"m",ko).call(this))),ma(this,xo,"f").textContent="Front",ma(this,xo,"f").domNode.style.marginLeft="21px",this.domNode.append(ma(this,xo,"f").domNode),ma(this,No,"f").domNode.addEventListener("click",(()=>ma(this,vo,"m",So).call(this))),ma(this,No,"f").textContent="Back",ma(this,No,"f").domNode.style.marginLeft="26px",this.domNode.append(ma(this,No,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){ma(this,vo,"m",_o).call(this),ma(this,vo,"m",To).call(this)}}wo=new WeakMap,bo=new WeakMap,xo=new WeakMap,No=new WeakMap,vo=new WeakSet,ko=function(){let t=[...ma(this,wo,"f").selectedOutlines];0!=t.length?(ma(this,wo,"f").pushUndoStack(),t.forEach((t=>(0,fa.bringToFront)(t.domNode))),this.refresh()):this.refresh()},So=function(){let t=[...ma(this,wo,"f").selectedOutlines];0!=t.length?(ma(this,wo,"f").pushUndoStack(),t.forEach((t=>(0,fa.sendToBack)(t.domNode))),this.refresh()):this.refresh()},_o=function(){0==[...ma(this,wo,"f").selectedOutlines].length?(ma(this,xo,"f").disable(),ma(this,xo,"f").tooltip.textContent="No outlines are selected."):(ma(this,xo,"f").enable(),ma(this,xo,"f").tooltip.textContent="Bring the selected outlines to the front.")},To=function(){0==[...ma(this,wo,"f").selectedOutlines].length?(ma(this,No,"f").disable(),ma(this,No,"f").tooltip.textContent="No outlines are selected."):(ma(this,No,"f").enable(),ma(this,No,"f").tooltip.textContent="Send selected outlines to the back.")};class Na{constructor(t){Mo.set(this,void 0),Co.set(this,void 0),Eo.set(this,void 0),pa(this,Mo,t,"f"),pa(this,Co,new La(t,"r"),"f"),pa(this,Eo,new q("Radius",ma(this,Co,"f").domNode),"f"),ma(this,Eo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Pi(this.domNode).css({marginTop:"20px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Eo,"f").domNode}refresh(){ma(this,Co,"f").refresh()}}Mo=new WeakMap,Co=new WeakMap,Eo=new WeakMap;class ka{constructor(t){Ao.set(this,void 0),Lo.set(this,void 0),Oo.set(this,void 0),pa(this,Ao,t,"f"),pa(this,Lo,new La(t,"fill"),"f"),pa(this,Oo,new q("Fill",ma(this,Lo,"f").domNode),"f"),ma(this,Oo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Oo,"f").domNode}refresh(){ma(this,Lo,"f").refresh()}}Ao=new WeakMap,Lo=new WeakMap,Oo=new WeakMap;class Sa{constructor(t){jo.add(this),Do.set(this,void 0),Wo.set(this,new U),Po.set(this,void 0),Io.set(this,void 0),qo.set(this,void 0),pa(this,Do,t,"f"),ma(this,Wo,"f").domNode.addEventListener("input",(()=>ma(this,jo,"m",Ro).call(this))),pa(this,Po,new $("Fill Color",ma(this,Wo,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ma(this,Do,"f").selectedOutlines.addEventListener("change",(()=>pa(this,Io,void 0,"f"))),ma(this,Wo,"f").domNode.addEventListener("focus",(()=>pa(this,qo,ma(this,Wo,"f").domNode.value,"f"))),ma(this,Do,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,Do,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return ma(this,Po,"f").domNode}refresh(){let t=[...ma(this,Do,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Vt(t)));ma(this,Wo,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ma(this,Wo,"f").domNode.value="#000000"}else ma(this,Wo,"f").domNode.value="#000000"}}Do=new WeakMap,Wo=new WeakMap,Po=new WeakMap,Io=new WeakMap,qo=new WeakMap,jo=new WeakSet,Ro=function(){if(ma(this,Wo,"f").domNode.value===ma(this,qo,"f"))return;let t=[...ma(this,Do,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===ma(this,Wo,"f").domNode.value.toLowerCase()}))||((ma(this,Do,"f").undoStack.isEmpty()||ma(this,Do,"f").undoStack.peek()!==ma(this,Io,"f"))&&(ma(this,Do,"f").pushUndoStack(),pa(this,Io,ma(this,Do,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",ma(this,Wo,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class _a{constructor(t){Fo.set(this,void 0),zo.set(this,void 0),Ho.set(this,void 0),pa(this,Fo,t,"f"),pa(this,zo,new La(t,"fill-opacity"),"f"),pa(this,Ho,new q("Fill Opacity",ma(this,zo,"f").domNode),"f"),ma(this,Ho,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Ho,"f").domNode}refresh(){ma(this,zo,"f").refresh()}}Fo=new WeakMap,zo=new WeakMap,Ho=new WeakMap;class Ta{constructor(t){Bo.set(this,void 0),Vo.set(this,void 0),Go.set(this,void 0),pa(this,Bo,t,"f"),pa(this,Vo,new La(t,"stroke"),"f"),pa(this,Go,new q("Stroke",ma(this,Vo,"f").domNode),"f"),ma(this,Go,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Go,"f").domNode}refresh(){ma(this,Vo,"f").refresh()}}Bo=new WeakMap,Vo=new WeakMap,Go=new WeakMap;class Ma{constructor(t){Xo.add(this),Uo.set(this,void 0),Yo.set(this,new U),Qo.set(this,void 0),$o.set(this,void 0),Zo.set(this,void 0),pa(this,Uo,t,"f"),ma(this,Yo,"f").domNode.addEventListener("input",(()=>ma(this,Xo,"m",Jo).call(this))),pa(this,Qo,new $("Stroke Color",ma(this,Yo,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ma(this,Uo,"f").selectedOutlines.addEventListener("change",(()=>pa(this,$o,void 0,"f"))),ma(this,Yo,"f").domNode.addEventListener("focus",(()=>pa(this,Zo,ma(this,Yo,"f").domNode.value,"f"))),ma(this,Uo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,Uo,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return ma(this,Qo,"f").domNode}refresh(){let t=[...ma(this,Uo,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new Vt(t)));ma(this,Yo,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ma(this,Yo,"f").domNode.value="#000000"}else ma(this,Yo,"f").domNode.value="#000000"}}Uo=new WeakMap,Yo=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Zo=new WeakMap,Xo=new WeakSet,Jo=function(){if(ma(this,Yo,"f").domNode.value===ma(this,Zo,"f"))return;let t=[...ma(this,Uo,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===ma(this,Yo,"f").domNode.value.toLowerCase()}))||((ma(this,Uo,"f").undoStack.isEmpty()||ma(this,Uo,"f").undoStack.peek()!==ma(this,$o,"f"))&&(ma(this,Uo,"f").pushUndoStack(),pa(this,$o,ma(this,Uo,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",ma(this,Yo,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Ca{constructor(t){Ko.set(this,void 0),ta.set(this,void 0),ea.set(this,void 0),pa(this,Ko,t,"f"),pa(this,ta,new La(t,"stroke-opacity"),"f"),pa(this,ea,new q("Stroke Opacity",ma(this,ta,"f").domNode),"f"),ma(this,ea,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,ea,"f").domNode}refresh(){ma(this,ta,"f").refresh()}}Ko=new WeakMap,ta=new WeakMap,ea=new WeakMap;class Ea{constructor(t){na.set(this,void 0),ra.set(this,void 0),ia.set(this,void 0),pa(this,na,t,"f"),pa(this,ra,new La(t,"stroke-width"),"f"),pa(this,ia,new q("Stroke Width",ma(this,ra,"f").domNode),"f"),ma(this,ia,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,ia,"f").domNode}refresh(){ma(this,ra,"f").refresh()}}na=new WeakMap,ra=new WeakMap,ia=new WeakMap;class Aa{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),pa(this,sa,t,"f"),pa(this,oa,new La(t,"stroke-dasharray"),"f"),pa(this,aa,new q("Stroke Dash-Array",ma(this,oa,"f").domNode),"f"),ma(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,aa,"f").domNode}refresh(){ma(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class La{constructor(t,e){ha.add(this),ua.set(this,void 0),la.set(this,void 0),ca.set(this,new C({onSubmit:()=>ma(this,ha,"m",da).call(this)})),pa(this,ua,t,"f"),pa(this,la,e,"f"),ma(this,ua,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,ua,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ma(this,ca,"f").domNode}refresh(){let t=[...ma(this,ua,"f").selectedOutlines];try{ma(this,ca,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(ma(this,la,"f")))&&void 0!==e?e:""})))}catch(t){ma(this,ca,"f").domNode.value=""}}}ua=new WeakMap,la=new WeakMap,ca=new WeakMap,ha=new WeakSet,da=function(){let t=ma(this,ca,"f").domNode.value,e=[...ma(this,ua,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(ma(this,la,"f"))===t))||(ma(this,ua,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(ma(this,la,"f"),t)))),this.refresh()};var Oa=n(290),ja={};ja.styleTagTransform=w(),ja.setAttributes=m(),ja.insert=f().bind(null,"head"),ja.domAPI=c(),ja.insertStyleElement=y(),u()(Oa.A,ja),Oa.A&&Oa.A.locals&&Oa.A.locals;var Da,Wa,Pa,Ia,qa,Ra,Fa=n(139),za=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},Ha=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ba{constructor(t){Da.add(this),Wa.set(this,void 0),this.domNode=document.createElement("div"),Pa.set(this,void 0),Ia.set(this,void 0),qa.set(this,void 0),za(this,Wa,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),za(this,Pa,new Ri(t),"f"),n.append(Ha(this,Pa,"f").domNode),za(this,Ia,new ga(t),"f"),n.append(Ha(this,Ia,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Oa._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),za(this,qa,new Fa.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){Ha(this,Da,"a",Ra).forEach((t=>t.refresh()))}reposition(){Ha(this,qa,"f").untranslate()}}Wa=new WeakMap,Pa=new WeakMap,Ia=new WeakMap,qa=new WeakMap,Da=new WeakSet,Ra=function(){return[Ha(this,Pa,"f"),Ha(this,Ia,"f")]}})(),r})()));
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,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,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 r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=h}}},659:t=>{var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};n.r(r),n.d(r,{DragTranslater:()=>v});var i=n(72),s=n.n(i),o=n(825),a=n.n(o),h=n(659),u=n.n(h),l=n(56),c=n.n(l),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=u().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,r=this.targetForm.style.translate;this.targetForm.style.translate="0px 0px";let i=this.targetForm.getBoundingClientRect(),s=i.x,o=i.y;return this.targetForm.style.translate=r,{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 r})(),t.exports=e()},169:function(t){t.exports=(()=>{var t={986:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>d,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>f,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>p,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(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,i=n-1;return r([e[n],e[i]])}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 u(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 l(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){i(t),t.reverse()}function p(t){var e=o(t);return e.reverse(),e}return e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};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(r),n.d(r,{consensusValue:()=>t,mostCommonValue:()=>s});var e=n(986);class i{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)],r=n.map((e=>i.of(e).in(t).length)),s=(0,e.max)(r),o=n.findIndex((e=>i.of(e).in(t).length==s));if(o<0)throw new Error("Unable to find the most common value.");return n[o]}})(),r})()},290:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,_:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},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 r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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:()=>l,KQ:()=>a,UJ:()=>u,wx:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: #f4f5ff;\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: 35px;\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",u="blLx0TnwxHwlX8qvUigb";const l=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:()=>u,Qq:()=>h,Z7:()=>l,kY:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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",u="lVFnQ83G0WswDpb_v1xo",l="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:()=>m,IU:()=>f,Qs:()=>d,aW:()=>c,eB:()=>p,ho:()=>l,lf:()=>a,m9:()=>u,wx:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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.REx8U43f426EyuXTroHH {\n margin-top: 16px;\n\n display: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",h="sE2YASqaiPZdV9dz58A7",u="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",d="TCp4dzyF9qmbX3ejDOkL",f="WOjw8GKoS54KQAOlumMa",p="REx8U43f426EyuXTroHH";const m=o},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},678:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>u,ZZ:()=>a,o3:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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 u=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(r,i){"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)},u=s.push,l=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=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var r,i,s=(n=n||w).createElement("script");if(s.text=t,e)for(r in b)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&s.setAttribute(r,i);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,_=function(t,e){return new _.fn.init(t,e)};function T(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 M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}_.fn=_.prototype={jquery:k,constructor:_,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=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.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(_.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(_.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:u,sort:s.sort,splice:s.splice},_.extend=_.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,h=arguments.length,u=!1;for("boolean"==typeof o&&(u=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)r=t[e],"__proto__"!==e&&o!==r&&(u&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,o[e]=_.extend(u,s,r)):void 0!==r&&(o[e]=r));return o},_.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,r=0;if(T(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},text:function(t){var e,n="",r=0,i=t.nodeType;if(!i)for(;e=t[r++];)n+=_.text(e);return 1===i||11===i?t.textContent:9===i?t.documentElement.textContent:3===i||4===i?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(T(Object(t))?_.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:l.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,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,s=t.length,o=!n;i<s;i++)!e(t[i],i)!==o&&r.push(t[i]);return r},map:function(t,e,n){var r,i,s=0,o=[];if(T(t))for(r=t.length;s<r;s++)null!=(i=e(t[s],s,n))&&o.push(i);else for(s in t)null!=(i=e(t[s],s,n))&&o.push(i);return h(o)},guid:1,support:g}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=s[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var C=s.pop,E=s.sort,A=s.splice,L="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");_.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}_.escapeSelector=function(t){return(t+"").replace(j,D)};var W=w,P=u;!function(){var t,e,n,i,o,h,u,c,d,p,m=P,y=_.expando,v=0,w=0,b=tt(),x=tt(),N=tt(),k=tt(),S=function(t,e){return t===e&&(o=!0),0},T="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+"*"),H=new RegExp(L+"|>"),z=new RegExp(I),B=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("^(?:"+T+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,U=/^(?:#([\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&&M(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,r){var i,s,o,a,u,l,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(!r&&(ht(e),e=e||h,c)){if(11!==v&&(u=U.exec(t)))if(i=u[1]){if(9===v){if(!(o=e.getElementById(i)))return n;if(o.id===i)return m.call(n,o),n}else if(p&&(o=p.getElementById(i))&&K.contains(e,o)&&o.id===i)return m.call(n,o),n}else{if(u[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(k[t+" "]||d&&d.test(t))){if(f=t,p=e,1===v&&(H.test(t)||F.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=_.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);f=l.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,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}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 rt(t){return function(e){return M(e,"input")&&e.type===t}}function it(t){return function(e){return(M(e,"input")||M(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,r){for(var i,s=t([],n.length,e),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ht(t){var n,r=t?t.ownerDocument||t:W;return r!=h&&9===r.nodeType&&r.documentElement?(u=(h=r).documentElement,c=!_.isXMLDoc(h),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&W!=h&&(n=h.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return u.appendChild(t).id=_.expando,!h.getElementsByName||!h.getElementsByName(_.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,r,i,s=e.getElementById(t);if(s){if((n=s.getAttributeNode("id"))&&n.value===t)return[s];for(i=e.getElementsByName(t),r=0;s=i[r++];)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;u.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|"+T+")"),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"),u.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:i?l.call(i,t)-l.call(i,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),_.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=h&&ht(t);var r=e.attrHandle[n.toLowerCase()],i=r&&f.call(e.attrHandle,n.toLowerCase())?r(t,n,!c):void 0;return void 0!==i?i:t.getAttribute(n)},K.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},_.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,S),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)A.call(t,n[r],1)}return i=null,t},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(a.apply(this)))},e=_.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=lt(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 M(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(r){var i=K.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,h){var u,l,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?M(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=(u=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&u[1])&&u[2],c=d&&m.childNodes[d];c=++d&&c&&c[p]||(b=d=0)||f.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,d,b];break}}else if(w&&(b=d=(u=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&u[1]),!1===b)for(;(c=++d&&c&&c[p]||(b=d=0)||f.pop())&&(!(a?M(c,g):1===c.nodeType)||!++b||(w&&((l=c[y]||(c[y]={}))[t]=[v,b]),c!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||K.error("unsupported pseudo: "+t);return i[y]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,s=i(t,n),o=s.length;o--;)t[r=l.call(t,s[o])]=!(e[r]=s[o])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=yt(t.replace(O,"$1"));return r[y]?et((function(t,e,n,i){for(var s,o=r(t,null,i,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,i,s){return e[0]=t,r(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||_.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.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=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},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 M(t,"input")&&!!t.checked||M(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 G.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){return M(t,"input")&&"button"===t.type||M(t,"button")},text:function(t){var e;return M(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 r;for(r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:ot((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=rt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=it(t);function ut(){}function lt(t,n){var r,i,s,o,a,h,u,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,h=[],u=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),h.push(s=[])),r=!1,(i=F.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||u[o]&&!(i=u[o](i))||(r=i.shift(),s.push({value:r,type:o,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?K.error(t):x(t,h).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function dt(t,e,n){var r=e.dir,i=e.next,s=i||r,o=n&&"parentNode"===s,a=w++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||o)return t(e,n,i);return!1}:function(e,n,h){var u,l,c=[v,a];if(h){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,h))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&M(e,i))e=e[r]||e;else{if((u=l[s])&&u[0]===v&&u[1]===a)return c[2]=u[2];if(l[s]=c,c[2]=t(e,n,h))return!0}return!1}}function ft(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var s,o=[],a=0,h=t.length,u=null!=e;a<h;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),u&&e.push(a)));return o}function mt(t,e,n,r,i,s){return r&&!r[y]&&(r=mt(r)),i&&!i[y]&&(i=mt(i,s)),et((function(s,o,a,h){var u,c,d,f,p=[],g=[],y=o.length,v=s||function(t,e,n){for(var r=0,i=e.length;r<i;r++)K(t,e[r],n);return n}(e||"*",a.nodeType?[a]:a,[]),w=!t||!s&&e?v:pt(v,p,t,a,h);if(n?n(w,f=i||(s?t:y||r)?[]:o,a,h):f=w,r)for(u=pt(f,g),r(u,[],a,h),c=u.length;c--;)(d=u[c])&&(f[g[c]]=!(w[g[c]]=d));if(s){if(i||t){if(i){for(u=[],c=f.length;c--;)(d=f[c])&&u.push(w[c]=d);i(null,f=[],u,h)}for(c=f.length;c--;)(d=f[c])&&(u=i?l.call(s,d):p[c])>-1&&(s[u]=!(o[u]=d))}}else f=pt(f===o?f.splice(y,f.length):f),i?i(null,o,f,h):m.apply(o,f)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],u=a?1:0,c=dt((function(t){return t===r}),h,!0),d=dt((function(t){return l.call(r,t)>-1}),h,!0),f=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):d(t,e,i));return r=null,s}];u<o;u++)if(i=e.relative[t[u].type])f=[dt(ft(f),i)];else{if((i=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(s=++u;s<o&&!e.relative[t[s].type];s++);return mt(u>1&&ft(f),u>1&&ct(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(O,"$1"),i,u<s&&gt(t.slice(u,s)),s<o&&gt(t=t.slice(s)),s<o&&ct(t))}f.push(i)}return ft(f)}function yt(t,r){var i,s=[],o=[],a=N[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=N(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,u,l,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,T=k.length;for(d&&(n=a==h||a||d);w!==T&&null!=(f=k[w]);w++){if(s&&f){for(p=0,a||f.ownerDocument==h||(ht(f),u=!c);g=t[p++];)if(g(f,a||h,u)){m.call(l,f);break}d&&(v=S)}i&&((f=!g&&f)&&y--,o&&b.push(f))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,u);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=C.call(l));x=pt(x)}m.apply(l,x),d&&!o&&x.length>0&&y+r.length>1&&_.uniqueSort(l)}return d&&(v=S,n=N),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,h,u,l="function"==typeof t&&t,d=!i&&lt(t=l.selector||t);if(r=r||[],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 r;l&&(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((u=e.find[h])&&(i=u(a.matches[0].replace(Q,$),Y.test(o[0].type)&&at(n.parentNode)||n))){if(o.splice(s,1),!(t=i.length&&ct(o)))return m.apply(r,i),r;break}}return(l||yt(t,d))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,g.sortStable=y.split("").sort(S).join("")===y,ht(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),_.find=K,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ht,K.tokenize=lt,K.escape=_.escapeSelector,K.getText=_.text,K.isXML=_.isXMLDoc,K.selectors=_.expr,K.support=_.support,K.uniqueSort=_.uniqueSort}();var I=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&_(t).is(n))break;r.push(t)}return r},q=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=_.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,n){return y(e)?_.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?_.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?_.grep(t,(function(t){return l.call(e,t)>-1!==n})):_.filter(e,t,n)}_.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?_.find.matchesSelector(r,t)?[r]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<r;e++)if(_.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)_.find(t,i[e],n);return r>1?_.uniqueSort(n):n},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&R.test(t)?_(t):t||[],!1).length}});var z,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||z,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),F.test(r[1])&&_.isPlainObject(e))for(r in e)y(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=w.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,z=_(w);var V=/^(?:parents|prev(?:Until|All))/,X={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&_(t);if(!R.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?_.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(_(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(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 G(t,"nextSibling")},prev:function(t){return G(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:(M(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(n,r){var i=_.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&(X[t]||_.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}}));var U=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function Q(t){throw t}function $(t,e,n,r){var i;try{t&&y(i=t.promise)?i.call(t).done(e).fail(n):t&&y(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match(U)||[],(function(t,n){e[n]=!0})),e}(t):_.extend({},t);var e,n,r,i,s=[],o=[],a=-1,h=function(){for(i=i||t.once,r=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,i&&(s=n?[]:"")},u={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){_.each(n,(function(n,r){y(r)?t.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==N(r)&&e(r)}))}(arguments),n&&!e&&h()),this},remove:function(){return _.each(arguments,(function(t,e){for(var n;(n=_.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?_.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||e||(s=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],o.push(n),e||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},_.extend({Deferred:function(t){var e=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(n){_.each(e,(function(e,r){var i=y(t[r[4]])&&t[r[4]];s[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var s=0;function o(t,e,n,i){return function(){var a=this,h=arguments,u=function(){var r,u;if(!(t<s)){if((r=n.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(u)?i?u.call(r,o(s,e,Y,i),o(s,e,Q,i)):(s++,u.call(r,o(s,e,Y,i),o(s,e,Q,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,h=[r]),(i||e.resolveWith)(a,h))}},l=i?u:function(){try{u()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==Q&&(a=void 0,h=[r]),e.rejectWith(a,h))}};t?l():(_.Deferred.getErrorHook?l.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(l.error=_.Deferred.getStackHook()),r.setTimeout(l))}}return _.Deferred((function(r){e[0][3].add(o(0,r,y(i)?i:Y,r.notifyWith)),e[1][3].add(o(0,r,y(t)?t:Y)),e[2][3].add(o(0,r,y(n)?n:Q))})).promise()},promise:function(t){return null!=t?_.extend(t,i):i}},s={};return _.each(e,(function(t,r){var o=r[2],a=r[5];i[r[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(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=o.fireWith})),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),s=_.Deferred(),o=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||s.resolveWith(r,i)}};if(e<=1&&($(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)$(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Z.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},_.readyException=function(t){r.setTimeout((function(){throw t}))};var J=_.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),_.ready()}_.fn.ready=function(t){return J.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||J.resolveWith(w,[_]))}}),_.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(_.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,h=t.length,u=null==n;if("object"===N(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,y(r)||(o=!0),u&&(o?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(_(t),n)})),e))for(;a<h;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:u?e.call(t):h?e(t[0],n):s},et=/^-ms-/,nt=/-([a-z])/g;function rt(t,e){return e.toUpperCase()}function it(t){return t.replace(et,"ms-").replace(nt,rt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=_.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 r,i=this.cache(t);if("string"==typeof e)i[it(e)]=n;else for(r in e)i[it(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][it(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,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(it):(e=it(e))in r?[e]:e.match(U)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||_.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var at=new ot,ht=new ot,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,lt=/[A-Z]/g;function ct(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(lt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}ht.set(t,e,n)}else n=void 0;return n}_.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)}}),_.fn.extend({data:function(t,e){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(i=ht.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=it(r.slice(5)),ct(s,r,i[r]));at.set(s,"hasDataAttrs",!0)}return i}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)}))}}),_.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=_.queue(t,e),r=n.length,i=n.shift(),s=_._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){_.dequeue(t,e)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:_.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),_.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?_.queue(this[0],t):void 0===e?this:this.each((function(){var n=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=_.Deferred(),s=this,o=this.length,a=function(){--r||i.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&&(r++,n.empty.add(a));return a(),i.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 _.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return _.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"===_.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return _.css(t,e,"")},h=a(),u=n&&n[3]||(_.cssNumber[e]?"":"px"),l=t.nodeType&&(_.cssNumber[e]||"px"!==u&&+h)&&ft.exec(_.css(t,e));if(l&&l[3]!==u){for(h/=2,u=u||l[3],l=+h||1;o--;)_.style(t,e,l+u),(1-s)*(1-(s=a()/h||.5))<=0&&(o=0),l/=s;l*=2,_.style(t,e,l+u),n=n||[]}return n&&(l=+l||+h||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=l,r.end=i)),i}var bt={};function xt(t){var e,n=t.ownerDocument,r=t.nodeName,i=bt[r];return i||(e=n.body.appendChild(n.createElement(r)),i=_.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function Nt(t,e){for(var n,r,i=[],s=0,o=t.length;s<o;s++)(r=t[s]).style&&(n=r.style.display,e?("none"===n&&(i[s]=at.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&vt(r)&&(i[s]=xt(r))):"none"!==n&&(i[s]="none",at.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(t[s].style.display=i[s]);return 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)?_(this).show():_(this).hide()}))}});var kt,St,_t=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mt=/^$|^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 Ct={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&&M(t,e)?_.merge([t],n):n}function At(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td,g.option||(Ct.optgroup=Ct.option=[1,"<select multiple='multiple'>","</select>"]);var Lt=/<|&#?\w+;/;function Ot(t,e,n,r,i){for(var s,o,a,h,u,l,c=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===N(s))_.merge(d,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Tt.exec(s)||["",""])[1].toLowerCase(),h=Ct[a]||Ct._default,o.innerHTML=h[1]+_.htmlPrefilter(s)+h[2],l=h[0];l--;)o=o.lastChild;_.merge(d,o.childNodes),(o=c.firstChild).textContent=""}else d.push(e.createTextNode(s));for(c.textContent="",f=0;s=d[f++];)if(r&&_.inArray(s,r)>-1)i&&i.push(s);else if(u=gt(s),o=Et(c.appendChild(s),"script"),u&&At(o),n)for(l=0;s=o[l++];)Mt.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Wt(){return!1}function Pt(t,e,n,r,i,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,a,n,r,e[a],s);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Wt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return _().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=_.guid++)),t.each((function(){_.event.add(this,e,i,r,n)}))}function It(t,e,n){n?(at.set(t,e,!1),_.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(_.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,_.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&_.event.add(t,e,Dt)}_.event={global:{},add:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&_.find.matchesSelector(mt,i),n.guid||(n.guid=_.guid++),(h=g.events)||(h=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(U)||[""]).length;u--;)f=m=(a=jt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(c=_.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=_.event.special[f]||{},l=_.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},s),(d=h[f])||((d=h[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(f,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),_.event.global[f]=!0)},remove:function(t,e,n,r,i){var s,o,a,h,u,l,c,d,f,p,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(u=(e=(e||"").match(U)||[""]).length;u--;)if(f=m=(a=jt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(c=_.event.special[f]||{},d=h[f=(r?c.delegateType:c.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)l=d[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(s,1),l.selector&&d.delegateCount--,c.remove&&c.remove.call(t,l));o&&!d.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||_.removeEvent(t,f,g.handle),delete h[f])}else for(f in h)_.event.remove(t,f+e[u],n,r,!0);_.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),h=_.event.fix(t),u=(at.get(this,"events")||Object.create(null))[h.type]||[],l=_.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,h)){for(o=_.event.handlers.call(this,h,u),e=0;(i=o[e++])&&!h.isPropagationStopped();)for(h.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==s.namespace&&!h.rnamespace.test(s.namespace)||(h.handleObj=s,h.data=s.data,void 0!==(r=((_.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(h.result=r)&&(h.preventDefault(),h.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,h),h.result}},handlers:function(t,e){var n,r,i,s,o,a=[],h=e.delegateCount,u=t.target;if(h&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(s=[],o={},n=0;n<h;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?_(i,this).index(u)>-1:_.find(i,this,null,[u]).length),o[i]&&s.push(r);s.length&&a.push({elem:u,handlers:s})}return u=this,h<e.length&&a.push({elem:u,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(_.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[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return _t.test(e.type)&&e.click&&M(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return _t.test(e.type)&&e.click&&M(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return _t.test(e.type)&&e.click&&M(e,"input")&&at.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.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&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.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()}},_.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},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=_.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else _.event.simulate(e,t.target,_.event.fix(t))}_.event.special[t]={setup:function(){var r;if(It(this,t,!0),!w.documentMode)return!1;(r=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(r||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},_.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e);s||(w.documentMode?this.addEventListener(e,n):r.addEventListener(t,n,!0)),at.set(i,e,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=w.documentMode?this:r,s=at.get(i,e)-1;s?at.set(i,e,s):(w.documentMode?this.removeEventListener(e,n):r.removeEventListener(t,n,!0),at.remove(i,e))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||_.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),_.fn.extend({on:function(t,e,n,r){return Pt(this,t,e,n,r)},one:function(t,e,n,r){return Pt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,_(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Wt),this.each((function(){_.event.remove(this,t,n,e)}))}});var qt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function zt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Vt(t,e){var n,r,i,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)_.event.add(e,i,a[i][n]);ht.hasData(t)&&(s=ht.access(t),o=_.extend({},s),ht.set(e,o))}}function Xt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&_t.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Gt(t,e,n,r){e=h(e);var i,s,o,a,u,l,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(i){var s=t.eq(i);m&&(e[0]=p.call(this,i,s.html())),Gt(s,e,n,r)}));if(d&&(s=(i=Ot(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=_.map(Et(i,"script"),zt)).length;c<d;c++)u=i,c!==f&&(u=_.clone(u,!0,!0),a&&_.merge(o,Et(u,"script"))),n.call(t[c],u,c);if(a)for(l=o[o.length-1].ownerDocument,_.map(o,Bt),c=0;c<a;c++)u=o[c],Mt.test(u.type||"")&&!at.access(u,"globalEval")&&_.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):x(u.textContent.replace(Ft,""),u,l))}return t}function Ut(t,e,n){for(var r,i=e?_.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||_.cleanData(Et(r)),r.parentNode&&(n&&gt(r)&&At(Et(r,"script")),r.parentNode.removeChild(r));return t}_.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(o=Et(a),r=0,i=(s=Et(t)).length;r<i;r++)Xt(s[r],o[r]);if(e)if(n)for(s=s||Et(t),o=o||Et(a),r=0,i=s.length;r<i;r++)Vt(s[r],o[r]);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,r,i=_.event.special,s=0;void 0!==(n=t[s]);s++)if(st(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ht.expando]&&(n[ht.expando]=void 0)}}}),_.fn.extend({detach:function(t){return Ut(this,t,!0)},remove:function(t){return Ut(this,t)},text:function(t){return tt(this,(function(t){return void 0===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 Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ht(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(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&&(_.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 _.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!qt.test(t)&&!Ct[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(_.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 Gt(this,arguments,(function(e){var n=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var n,r=[],i=_(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),_(i[o])[e](n),u.apply(r,n.get());return this.pushStack(r)}}));var Yt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Qt=/^--/,$t=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)},Zt=function(t,e,n){var r,i,s={};for(i in e)s[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=s[i];return r},Jt=new RegExp(pt.join("|"),"i");function Kt(t,e,n){var r,i,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=_.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=h.width,i=h.minWidth,s=h.maxWidth,h.minWidth=h.maxWidth=h.width=o,o=n.width,h.width=r,h.minWidth=i,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(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(u).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,h=12===e(t.marginLeft),l.style.right="60%",o=36===e(t.right),i=36===e(t.width),l.style.position="absolute",s=12===e(l.offsetWidth/3),mt.removeChild(u),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,h,u=w.createElement("div"),l=w.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===l.style.backgroundClip,_.extend(g,{boxSizingReliable:function(){return t(),i},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,i;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),i=r.getComputedStyle(e),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=w.createElement("div").style,re={};function ie(t){return _.cssProps[t]||re[t]||(t in ne?t:re[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 r=ft.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ue(t,e,n,r,i,s){var o="width"===e?1:0,a=0,h=0,u=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(u+=_.css(t,n+pt[o],!0,i)),r?("content"===n&&(h-=_.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(h-=_.css(t,"border"+pt[o]+"Width",!0,i))):(h+=_.css(t,"padding"+pt[o],!0,i),"padding"!==n?h+=_.css(t,"border"+pt[o]+"Width",!0,i):a+=_.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-h-a-.5))||0),h+u}function le(t,e,n){var r=$t(t),i=(!g.boxSizingReliable()||n)&&"border-box"===_.css(t,"boxSizing",!1,r),s=i,o=Kt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&M(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===_.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===_.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+ue(t,e,n||(i?"border":"content"),s,r,o)+"px"}function ce(t,e,n,r,i){return new ce.prototype.init(t,e,n,r,i)}_.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,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,s,o,a=it(e),h=Qt.test(e),u=t.style;if(h||(e=ie(a)),o=_.cssHooks[e]||_.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e];"string"==(s=typeof n)&&(i=ft.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||h||(n+=i&&i[3]||(_.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(h?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return Qt.test(e)||(e=ie(a)),(o=_.cssHooks[e]||_.cssHooks[a])&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=Kt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?le(t,e,r):Zt(t,oe,(function(){return le(t,e,r)}))},set:function(t,n,r){var i,s=$t(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===_.css(t,"boxSizing",!1,s),h=r?ue(t,e,r,a,s):0;return a&&o&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-ue(t,e,"border",!1,s)-.5)),h&&(i=ft.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=_.css(t,e)),he(0,n,h)}}})),_.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"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=s[r]||s[r-2]||s[0];return i}},"margin"!==t&&(_.cssHooks[t+e].set=he)})),_.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,s={},o=0;if(Array.isArray(e)){for(r=$t(t),i=e.length;o<i;o++)s[e[o]]=_.css(t,e[o],!1,r);return s}return void 0!==n?_.style(t,e,n):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(_.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=_.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=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||!_.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:_.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)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=ce.prototype.init,_.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){fe&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,_.fx.interval),_.fx.tick())}function ye(){return r.setTimeout((function(){de=void 0})),de=Date.now()}function ve(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function we(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,e,t))return r}function be(t,e,n){var r,i,s=0,o=be.prefilters.length,a=_.Deferred().always((function(){delete h.elem})),h=function(){if(i)return!1;for(var e=de||ye(),n=Math.max(0,u.startTime+u.duration-e),r=1-(n/u.duration||0),s=0,o=u.tweens.length;s<o;s++)u.tweens[s].run(r);return a.notifyWith(t,[u,r,n]),r<1&&o?n:(o||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:e,originalOptions:n,startTime:de||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=_.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(r),r},stop:function(e){var n=0,r=e?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),l=u.props;for(function(t,e){var n,r,i,s,o;for(n in t)if(i=e[r=it(n)],s=t[n],Array.isArray(s)&&(i=s[1],s=t[n]=s[0]),n!==r&&(t[r]=s,delete t[n]),(o=_.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete t[r],s)n in t||(t[n]=s[n],e[n]=i);else e[r]=i}(l,u.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(u,t,l,u.opts))return y(r.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return _.map(l,we,u),y(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(h,{elem:t,anim:u,queue:u.opts.queue})),u}_.Animation=_.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(U);for(var n,r=0,i=t.length;r<i;r++)n=t[r],be.tweeners[n]=be.tweeners[n]||[],be.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,s,o,a,h,u,l,c="width"in e||"height"in e,d=this,f={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=_._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--,_.queue(t,"fx").length||o.empty.fire()}))}))),e)if(i=e[r],pe.test(i)){if(delete e[r],s=s||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}f[r]=g&&g[r]||_.style(t,r)}if((h=!_.isEmptyObject(e))||!_.isEmptyObject(f))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=at.get(t,"display")),"none"===(l=_.css(t,"display"))&&(u?l=u:(Nt([t],!0),u=t.style.display||u,l=_.css(t,"display"),Nt([t]))),("inline"===l||"inline-block"===l&&null!=u)&&"none"===_.css(t,"float")&&(h||(d.done((function(){p.display=u})),null==u&&(l=p.display,u="none"===l?"":l)),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:u}),s&&(g.hidden=!m),m&&Nt([t],!0),d.done((function(){for(r in m||Nt([t]),at.remove(t,"fxshow"),f)_.style(t,r,f[r])}))),h=we(m?g[r]:0,r,d),r in g||(g[r]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),_.speed=function(t,e,n){var r=t&&"object"==typeof t?_.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(t,e,n,r){return this.filter(vt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=_.isEmptyObject(t),s=_.speed(e,n,r),o=function(){var e=be(this,_.extend({},t),s);(i||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,n){var r=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,i=null!=t&&t+"queueHooks",s=_.timers,o=at.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&me.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=t&&s[i].queue!==t||(s[i].anim.stop(n),e=!1,s.splice(i,1));!e&&n||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=at.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],s=_.timers,o=r?r.length:0;for(n.finish=!0,_.queue(this,t,[]),i&&i.stop&&i.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++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var n=_.fn[e];_.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),_.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),_.timers=[],_.fx.tick=function(){var t,e=0,n=_.timers;for(de=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||_.fx.stop(),de=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){fe||(fe=!0,ge())},_.fx.stop=function(){fe=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(t,e){return t=_.fx&&_.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}}))},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=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return tt(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?_.prop(t,e,n):(1===s&&_.isXMLDoc(t)||(i=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void _.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=_.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&M(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(U);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?_.removeAttr(t,n):t.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ne[e]||_.find.attr;Ne[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=Ne[o],Ne[o]=i,i=null!=n(t,e,r)?o:null,Ne[o]=s),i}}));var ke=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function _e(t){return(t.match(U)||[]).join(" ")}function Te(t){return t.getAttribute&&t.getAttribute("class")||""}function Me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(U)||[]}_.fn.extend({prop:function(t,e){return tt(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&_.isXMLDoc(t)||(e=_.propFix[e]||e,i=_.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.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||(_.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)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){_(this).addClass(t.call(this,e,Te(this)))})):(e=Me(t)).length?this.each((function(){if(r=Te(this),n=1===this.nodeType&&" "+_e(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=_e(n),r!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){_(this).removeClass(t.call(this,e,Te(this)))})):arguments.length?(e=Me(t)).length?this.each((function(){if(r=Te(this),n=1===this.nodeType&&" "+_e(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=_e(n),r!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,s,o=typeof t,a="string"===o||Array.isArray(t);return y(t)?this.each((function(n){_(this).toggleClass(t.call(this,n,Te(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Me(t),this.each((function(){if(a)for(s=_(this),i=0;i<n.length;i++)r=n[i],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==t&&"boolean"!==o||((r=Te(this))&&at.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+_e(Te(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ce=/\r/g;_.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=y(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,_(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ce,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:_e(_.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],h=o?s+1:i.length;for(r=s<0?h:o?s:0;r<h;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(e=_(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=_.makeArray(e),o=i.length;o--;)((r=i[o]).selected=_.inArray(_.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},g.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=r.location,Ae={guid:Date.now()},Le=/\?/;_.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(t,e,n,i){var s,o,a,h,u,l,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+_.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[_.expando]?t:new _.Event(m,"object"==typeof t&&t)).isTrigger=i?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]:_.makeArray(e,[t]),c=_.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!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||r)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?h:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=u&&o[u])&&l.apply&&st(o)&&(t.result=l.apply(o,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),e)||!st(n)||u&&y(n[m])&&!v(n)&&((a=n[u])&&(n[u]=null),_.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,je),n[m](),t.isPropagationStopped()&&d.removeEventListener(m,je),_.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var r=_.extend(new _.Event,n,{type:t,isSimulated:!0});_.event.trigger(r,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return _.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,r){var i;if(Array.isArray(e))_.each(e,(function(e,i){n||De.test(t)?r(t,i):qe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==N(e))r(t,e);else for(i in e)qe(t+"["+i+"]",e[i],n,r)}_.param=function(t,e){var n,r=[],i=function(t,e){var n=y(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){i(this.name,this.value)}));else for(n in t)qe(n,t[n],e,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&Ie.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!_t.test(t))})).map((function(t,e){var n=_(this).val();return null==n?null:Array.isArray(n)?_.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=/#.*$/,He=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ve=/^\/\//,Xe={},Ge={},Ue="*/".concat("*"),Ye=w.createElement("a");function Qe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(U)||[];if(y(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},s=t===Ge;function o(a){var h;return i[a]=!0,_.each(t[a]||[],(function(t,a){var u=a(e,n,r);return"string"!=typeof u||s||i[u]?s?!(h=u):void 0:(e.dataTypes.unshift(u),o(u),!1)})),h}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&_.extend(!0,t,r),t}Ye.href=Ee.href,_.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:{"*":Ue,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":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,_.ajaxSettings),e):Ze(_.ajaxSettings,t)},ajaxPrefilter:Qe(Xe),ajaxTransport:Qe(Ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,h,u,l,c,d,f=_.ajaxSetup({},e),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?_(p):_.event,g=_.Deferred(),y=_.Callbacks("once memory"),v=f.statusCode||{},b={},x={},N="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){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 u?s:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)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(U)||[""],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=_.param(f.data,f.traditional)),$e(Xe,f,e,k),u)return k;for(c in(l=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Be.test(f.type),i=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(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Le.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(He,"$1"),d=(Le.test(i)?"&":"?")+"_="+Ae.guid+++d),f.url=i+d),f.ifModified&&(_.lastModified[i]&&k.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&k.setRequestHeader("If-None-Match",_.etag[i])),(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]?", "+Ue+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||u))return k.abort();if(N="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=$e(Ge,f,e,k)){if(k.readyState=1,l&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(a=r.setTimeout((function(){k.abort("timeout")}),f.timeout));try{u=!1,n.send(b,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,o,h){var c,d,w,b,x,N=e;u||(u=!0,a&&r.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 r,i,s,o,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){h.unshift(i);break}if(h[0]in n)s=h[0];else{for(i in n){if(!h[0]||t.converters[i+" "+h[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==h[0]&&h.unshift(s),n[s]}(f,k,o)),!c&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,h,u={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)u[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!h&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=s,s=l.shift())if("*"===s)s=h;else if("*"!==h&&h!==s){if(!(o=u[h+" "+s]||u["* "+s]))for(i in u)if((a=i.split(" "))[1]===s&&(o=u[h+" "+a[0]]||u["* "+a[0]])){!0===o?o=u[i]:!0!==u[i]&&(s=a[0],l.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"))&&(_.lastModified[i]=x),(x=k.getResponseHeader("etag"))&&(_.etag[i]=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,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?d:w]),y.fireWith(p,[k,N]),l&&(m.trigger("ajaxComplete",[k,f]),--_.active||_.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return _.get(t,e,n,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:t,type:e,dataType:i,data:n,success:r},_.isPlainObject(t)&&t))}})),_.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),_._evalUrl=function(t,e,n){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){_.globalEval(t,e,n)}})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=_(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){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){_(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=_.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,_.ajaxTransport((function(t){var e,n;if(g.cors||Ke&&!t.crossDomain)return{send:function(i,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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[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&&r.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()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.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 _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=_("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),w.head.appendChild(e[0])},abort:function(){n&&n()}}}));var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||_.expando+"_"+Ae.guid++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(t,e,n){var i,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 i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||_.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=r[i],r[i]=function(){o=arguments},n.always((function(){void 0===s?_(r).removeProp(i):r[i]=s,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),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),_.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((r=(e=w.implementation.createHTMLDocument("")).createElement("base")).href=w.location.href,e.head.appendChild(r)):e=w),s=!n&&[],(i=F.exec(t))?[e.createElement(i[1])]:(i=Ot([t],e,s),s&&s.length&&_(s).remove(),_.merge([],i.childNodes)));var r,i,s},_.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=_e(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&_.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?_("<div>").append(_.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,n){var r,i,s,o,a,h,u=_.css(t,"position"),l=_(t),c={};"static"===u&&(t.style.position="relative"),a=l.offset(),s=_.css(t,"top"),h=_.css(t,"left"),("absolute"===u||"fixed"===u)&&(s+h).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(h)||0),y(e)&&(e=e.call(t,n,_.extend({},a))),null!=e.top&&(c.top=e.top-a.top+o),null!=e.left&&(c.left=e.left-a.left+i),"using"in e?e.using.call(t,c):l.css(c)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.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,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),i.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-_.css(r,"marginTop",!0),left:e.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||mt}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;_.fn[t]=function(r){return tt(this,(function(t,r,i){var s;if(v(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[e]:t[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):t[r]=i}),t,r,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?_(t).position()[e]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){_.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return tt(this,(function(e,n,i){var s;return v(e)?0===r.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===i?_.css(e,n,a):_.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,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,r){return this.on(e,t,n,r)},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)}}),_.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){_.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;_.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return r=a.call(arguments,2),i=function(){return t.apply(e||this,r.concat(a.call(arguments)))},i.guid=t.guid=t.guid||_.guid++,i},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=M,_.isFunction=y,_.isWindow=v,_.camelCase=it,_.type=N,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},_.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return _}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return _.noConflict=function(t){return r.$===_&&(r.$=on),t&&r.jQuery===_&&(r.jQuery=sn),_},void 0===i&&(r.jQuery=r.$=_),_}))},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,r=0;r<e.length;r++)if(e[r].identifier===t){n=r;break}return n}function r(t,r){for(var s={},o=[],a=0;a<t.length;a++){var h=t[a],u=r.base?h[0]+r.base:h[0],l=s[u]||0,c="".concat(u," ").concat(l);s[u]=l+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=i(f,r);r.byIndex=a,e.splice(a,0,{identifier:c,updater:p,references:1})}o.push(c)}return o}function i(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,i){var s=r(t=t||[],i=i||{});return function(t){t=t||[];for(var o=0;o<s.length;o++){var a=n(s[o]);e[a].references--}for(var h=r(t,i),u=0;u<s.length;u++){var l=n(s[u]);0===e[l].references&&(e[l].updater(),e.splice(l,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="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var a=0;a<this.length;a++){var h=this[a][0];null!=h&&(o[h]=!0)}for(var u=0;u<t.length;u++){var l=[].concat(t[u]);r&&o[l[0]]||(void 0!==s&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=s),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),e.push(l))}},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 r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)/t.length}function i(t){t.sort((function(t,e){return t-e}))}t.r(e),t.d(e,{areWithin:()=>f,average:()=>r,clamp:()=>d,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>u,mean:()=>r,median:()=>a,min:()=>h,normalizeAngle:()=>v,radians:()=>y,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>p,sortedNumbers:()=>o,sortedNumbersAscending:()=>o,sortedNumbersDescending:()=>m,sum:()=>n});var s=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function o(t){var e=s([],t,!0);return i(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,i=n-1;return r([e[n],e[i]])}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 u(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 l(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){i(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(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{Box:()=>e});var t=n(986);class e{static bounding(n){let r=n.map((t=>e.matching(t))),i=(0,t.min)(r.map((t=>t.left))),s=(0,t.min)(r.map((t=>t.top))),o=(0,t.max)(r.map((t=>t.right)))-i,a=(0,t.max)(r.map((t=>t.bottom)))-s;return new e(i,s,o,a)}static matching(t){let{x:n,y:r,width:i,height:s}=t;return new e(n,r,i,s)}constructor(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}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,r=Math.pow(Math.pow(e,2)+Math.pow(n,2),.5),i=this.centerX+r*Math.cos(t),s=this.centerY+r*Math.sin(t),o=r;return Math.abs(this.centerX-i)>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)}}}})(),r})(),t.exports=e()},659:t=>{"use strict";var e={};t.exports=function(t,n){var r=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(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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:()=>l,Qq:()=>h,YL:()=>a,zX:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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",u="Z0ghuBmvyXYH9uep6VTd";const l=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{Tooltip:()=>E});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),h=n(56),u=n.n(h),l=n(540),c=n.n(l),d=n(113),f=n.n(d),p=n(865),m={};m.styleTagTransform=f(),m.setAttributes=u(),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,M=n(645),C=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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,(()=>{})),C(this,y,"f").classList.add(p.YL),C(this,v,"f").classList.add(p.Qq),C(this,v,"f").textContent=t,C(this,y,"f").append(C(this,v,"f")),C(this,w,"f").classList.add(p.zX),C(this,y,"f").append(C(this,w,"f"))}get textContent(){return C(this,v,"f").textContent}set textContent(t){let e=!C(this,g,"m",T).call(this);C(this,g,"m",_).call(this),C(this,v,"f").textContent=t,e&&C(this,g,"m",S).call(this)}get owner(){return C(this,x,"f")}set owner(t){C(this,x,"f")&&(C(this,x,"f").removeEventListener("mouseover",C(this,N,"f")),C(this,x,"f").removeEventListener("mouseout",C(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",(()=>C(this,g,"m",S).call(this))),t.addEventListener("mouseout",(()=>C(this,g,"m",_).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(C(this,y,"f").style.left="0px",C(this,y,"f").style.top="0px",document.body.append(C(this,y,"f")),!C(this,x,"f"))return;let t=C(this,y,"f").getBoundingClientRect().width,e=C(this,v,"f").getBoundingClientRect().height+C(this,w,"f").getBoundingClientRect().height/2,n=M.Box.matching(C(this,x,"f").getBoundingClientRect()).padded(C(this,b,"f"));C(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",C(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},_=function(){C(this,y,"f").remove()},T=function(){return!document.body.contains(C(this,y,"f"))}})(),r})(),t.exports=e()},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,V:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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:()=>l,Wu:()=>h,kL:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: 12px;\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",u="BAlKKbk1BfHF_fPz1gpc";const l=o},726:function(t){var e;e=()=>(()=>{var t={854:function(t){t.exports=(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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 r(t){return n(t)&&Number.isFinite(t)}function i(t){return n(t)&&!Number.isFinite(t)}function s(t){return r(t)&&t>0}function o(t){return r(t)&&t>=0}function a(t){return"string"==typeof t}function h(t){return null==t}function u(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function d(t){return l(t)&&t.length>0}function f(t){return l(t)&&t.every(n)}function p(t){return f(t)&&t.length>0}function m(t){return l(t)&&t.every(r)}function g(t){return l(t)&&t.every(i)}function y(t){return l(t)&&t.every(a)}function v(t){return y(t)&&t.length>0}return t.r(e),t.d(e,{isArray:()=>l,isEmptyArray:()=>c,isFiniteNumber:()=>r,isFiniteNumbersArray:()=>m,isNonEmptyArray:()=>d,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>u,isNullish:()=>h,isNumber:()=>n,isNumbersArray:()=>f,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={exports:{}};return t[r].call(s.exports,s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";function t(t,e){for(let[n,r]of Object.entries(e))t.setAttribute(n,r)}n.r(r),n.d(r,{CoordinateSystem:()=>c,HorizontalClientScaling:()=>f,InnerXML:()=>w,OuterXML:()=>N,Scaling:()=>d,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>k,isSVGGraphicsElementsArray:()=>_,sendToBack:()=>g,setAttributes:()=>t});const e={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var i,s=new Uint8Array(16);function o(){if(!i&&!(i="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 i(s)}for(var a=[],h=0;h<256;++h)a.push((h+256).toString(16).slice(1));const u=function(t,n,r){if(e.randomUUID&&!n&&!t)return e.randomUUID();var i=(t=t||{}).random||(t.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,n){r=r||0;for(var s=0;s<16;++s)n[r+s]=i[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()}(i)};function l(t){t.id="uuid-"+u()}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,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.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){return(0,S.isArray)(t)&&t.every(k)}})(),r})(),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 r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),e.styleTagTransform(r,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 r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),h=n.n(a),u=new URL(n(51),n.b),l=o()(i()),c=h()(u);l.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=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>h,lI:()=>a,r9:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());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: 12px;\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",u="IgtWfVpmdN_e04k18xHb";const l=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>h,Te:()=>p,VX:()=>d,eB:()=>c,ho:()=>u,iE:()=>f,qM:()=>a,vM:()=>l});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.O0vrEVyGT_aFy6tF68Na {\n margin-top: 22px;\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.wq_gmBRSZasSLYaUmdWp {\n margin-top: 17px;\n\n display: none;\n flex-direction: column;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\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.niaBwqy1zBIMYC42Y7LP {\n margin-top: 21px;\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",u="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="wq_gmBRSZasSLYaUmdWp",d="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,exports:{}};return t[r].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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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 r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>Ba});var t={};n.r(t),n.d(t,{cx:()=>_e,cy:()=>Te,height:()=>Ce,rx:()=>xe,ry:()=>Ne,width:()=>Me,x:()=>ke,y:()=>Se});var e={};n.r(e),n.d(e,{from:()=>Oe,to:()=>je});var i={};n.r(i),n.d(i,{MorphArray:()=>Re,height:()=>Be,width:()=>ze,x:()=>Fe,y:()=>He});var s={};n.r(s),n.d(s,{array:()=>vn,clear:()=>wn,move:()=>bn,plot:()=>xn,size:()=>Nn});var o={};n.r(o),n.d(o,{amove:()=>$n,ax:()=>Yn,ay:()=>Qn,build:()=>Zn,center:()=>Un,cx:()=>Xn,cy:()=>Gn,length:()=>Hn,move:()=>Vn,plain:()=>Fn,x:()=>zn,y:()=>Bn});var a={};n.r(a),n.d(a,{dmove:()=>rr,dx:()=>ir,dy:()=>sr,height:()=>or,move:()=>ar,size:()=>hr,width:()=>ur,x:()=>lr,y:()=>cr});var h=n(72),u=n.n(h),l=n(825),c=n.n(l),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(),u()(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(),u()(N.Ay,k),N.Ay&&N.Ay.locals&&N.Ay.locals;var S=n(419),_={};_.styleTagTransform=w(),_.setAttributes=m(),_.insert=f().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=y(),u()(S.A,_),S.A&&S.A.locals&&S.A.locals;var T,M;class C{constructor(t){T.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(S.P),this.domNode.addEventListener("blur",(()=>function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}(this,T,"m",M).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}T=new WeakSet,M=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var E=n(678),A={};A.styleTagTransform=w(),A.setAttributes=m(),A.insert=f().bind(null,"head"),A.domAPI=c(),A.insertStyleElement=y(),u()(E.Ay,A),E.Ay&&E.Ay.locals&&E.Ay.locals;var L,O,j=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},D=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class W{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),L.set(this,void 0),O.set(this,void 0),this.domNode.classList.add(E.ZZ),j(this,L,e,"f"),j(this,O,document.createElement("a"),"f"),D(this,O,"f").textContent=t,D(this,O,"f").target="_blank",D(this,O,"f").rel="noopener noreferrer",D(this,O,"f").style.marginLeft="8px",this.domNode.append(e,D(this,O,"f"))}get infoLink(){return D(this,O,"f").href}set infoLink(t){D(this,O,"f").href=t,t?D(this,O,"f").classList.add(E.o3):D(this,O,"f").classList.remove(E.o3)}}L=new WeakMap,O=new WeakMap;var P,I=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class q{constructor(t,e){this.name=t,P.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,P,new W(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return I(this,P,"f").domNode}get infoLink(){return I(this,P,"f").infoLink}set infoLink(t){I(this,P,"f").infoLink=t}}P=new WeakMap;var R=n(881),F={};F.styleTagTransform=w(),F.setAttributes=m(),F.insert=f().bind(null,"head"),F.domAPI=c(),F.insertStyleElement=y(),u()(R.Ay,F),R.Ay&&R.Ay.locals&&R.Ay.locals;class H{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(R.kv)}}var z,B=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class V{constructor(t,e){this.name=t,z.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,z,new W(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return B(this,z,"f").domNode}get infoLink(){return B(this,z,"f").infoLink}set infoLink(t){B(this,z,"f").infoLink=t}}z=new WeakMap;var X=n(709),G={};G.styleTagTransform=w(),G.setAttributes=m(),G.insert=f().bind(null,"head"),G.domAPI=c(),G.insertStyleElement=y(),u()(X.A,G),X.A&&X.A.locals&&X.A.locals;class U{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(X.V)}}var Y,Q=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ${constructor(t,e){this.name=t,Y.set(this,void 0),function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(t,n):i?i.value=n:e.set(t,n)}(this,Y,new W(t,e),"f"),this.domNode.style.cursor="pointer"}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;const Z={},J=[];function K(t,e){if(Array.isArray(t))for(const n of t)K(n,e);else if("object"!=typeof t)et(Object.getOwnPropertyNames(e)),Z[t]=Object.assign(Z[t]||{},e);else for(const e in t)K(e,t[e])}function tt(t){return Z[t]||{}}function et(t){J.push(...t)}function nt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function rt(t){return t%360*Math.PI/180}function it(t){return t.charAt(0).toUpperCase()+t.slice(1)}function st(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function ot(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"==typeof n?[n.x,n.y]:[n,n]);const s="string"==typeof r,o="string"==typeof i;if(s||o){const{height:t,width:n,x:a,y:h}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?h:i.includes("bottom")?h+t:h+t/2)}return[r,i]}const at=new Set(["desc","metadata","title"]),ht=t=>at.has(t.nodeName),ut=(t,e,n={})=>{const r={...e};for(const t in r)r[t].valueOf()===n[t]&&delete r[t];Object.keys(r).length?t.node.setAttribute("data-svgjs",JSON.stringify(r)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},lt="http://www.w3.org/2000/svg",ct="http://www.w3.org/2000/xmlns/",dt="http://www.w3.org/1999/xlink",ft={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class pt{}const mt={},gt="___SYMBOL___ROOT___";function yt(t,e=lt){return ft.document.createElementNS(e,t)}function vt(t,e=!1){if(t instanceof pt)return t;if("object"==typeof t)return xt(t);if(null==t)return new mt[gt];if("string"==typeof t&&"<"!==t.charAt(0))return xt(ft.document.querySelector(t));const n=e?ft.document.createElement("div"):yt("svg");return n.innerHTML=t,t=xt(n.firstChild),n.removeChild(n.firstChild),t}function wt(t,e){return e&&(e instanceof ft.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:yt(t)}function bt(t){if(!t)return null;if(t.instance instanceof pt)return t.instance;if("#document-fragment"===t.nodeName)return new mt.Fragment(t);let e=it(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":mt[e]||(e="Dom"),new mt[e](t)}let xt=bt;function Nt(t,e=t.name,n=!1){return mt[e]=t,n&&(mt[gt]=t),et(Object.getOwnPropertyNames(t.prototype)),t}let kt=1e3;function St(t){return"Svgjs"+it(t)+kt++}function _t(t){for(let e=t.children.length-1;e>=0;e--)_t(t.children[e]);return t.id?(t.id=St(t.nodeName),t):t}function Tt(t,e){let n,r;for(r=(t=Array.isArray(t)?t:[t]).length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function Mt(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)}}K("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=vt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=vt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=vt(t)).before(this),this},insertAfter:function(t){return(t=vt(t)).after(this),this}});const Ct=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Et=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,At=/rgb\((\d+),(\d+),(\d+)\)/,Lt=/(#[a-z_][a-z0-9\-_]*)/i,Ot=/\)\s*,?\s*/,jt=/\s/g,Dt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Wt=/^rgb\(/,Pt=/^(\s+)?$/,It=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Rt=/[\s,]+/,Ft=/[MLHVCSQTAZ]/i;function Ht(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function zt(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function Bt(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}K("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Rt)},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)}}),K("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]||Pt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Pt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),K("Dom",{data:function(t,e,n){if(null==t)return this.data(nt(function(t){let e;const n=t.length,r=[];for(e=0;e<n;e++)0===t[e].nodeName.indexOf("data-")&&r.push(t[e]);return r}(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}}),K("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 Vt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Vt||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:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new Vt(t,e,r,"lch")}if("sine"===t){const t=r(80*i(2*s*(e=null==e?n():e)/.5+.01)+150),o=r(50*i(2*s*e/.5+4.6)+200),a=r(100*i(2*s*e/.5+2.3)+150);return new Vt(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new Vt(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new Vt(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new Vt(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new Vt(t,e,r,"lab")}if("grey"===t){const t=255*n();return new Vt(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Dt.test(t)||Wt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.min(1-r,1-i,1-s);return 1===o?new Vt(0,0,0,1,"cmyk"):new Vt((1-r-o)/(1-o),(1-i-o)/(1-o),(1-s-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,s]=[t,e,n].map((t=>t/255)),o=Math.max(r,i,s),a=Math.min(r,i,s),h=(o+a)/2,u=o===a,l=o-a;return new Vt(360*(u?0:o===r?((i-s)/l+(i<s?6:0))/6:o===i?((s-r)/l+2)/6:o===s?((r-i)/l+4)/6:0),100*(u?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"hsl")}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)i="string"==typeof r?r:i,r="string"==typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});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=zt(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:zt(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:zt(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:zt(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:zt(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:zt(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(Wt.test(t)){const e=t.replace(jt,""),[n,r,i]=At.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Dt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Et.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:r,_c:i,_d:0,space:"rgb"})}}const{_a:s,_b:o,_c:a,_d:h}=this,u="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,u)}lab(){const{x:t,y:e,z:n}=this.xyz();return new Vt(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),r=Math.sqrt(e**2+n**2);let i=180*Math.atan2(n,e)/Math.PI;return i<0&&(i*=-1,i=360-i),new Vt(t,r,i,"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:r,a:i,b:s}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;i=t*Math.cos(n*e),s=t*Math.sin(n*e)}const o=(r+16)/116,a=i/500+o,h=o-s/200,u=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-u)/c),e=1*(o**3>l?o**3:(o-u)/c),n=1.08883*(h**3>l?h**3:(h-u)/c)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,s=.0557*t+-.204*e+1.057*n,o=Math.pow,a=.0031308,h=r>a?1.055*o(r,1/2.4)-.055:12.92*r,u=i>a?1.055*o(i,1/2.4)-.055:12.92*i,l=s>a?1.055*o(s,1/2.4)-.055:12.92*s;return new Vt(255*h,255*u,255*l)}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 Vt(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*Bt(i,r,t+1/3),o=255*Bt(i,r,t),a=255*Bt(i,r,t-1/3);return new Vt(s,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,i=255*(1-Math.min(1,t*(1-r)+r)),s=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,n*(1-r)+r));return new Vt(i,s,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:i}=this;return[t,e,n,r,i]}toHex(){const[t,e,n]=this._clamped().map(Ht);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(),[r,i,s]=[t,e,n].map((t=>t/255)),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,a=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,h=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,u=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,d=u>.008856?Math.pow(u,1/3):7.787*u+16/116,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new Vt(d,f,p,"xyz")}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:i,round:s}=Math;return[t,e,n].map((t=>r(0,i(s(t),255))))}}class Xt{constructor(...t){this.init(...t)}clone(){return new Xt(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){Ut.isMatrixLike(t)||(t=new Ut(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 Gt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class Ut{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,r=t.flip&&(e||"y"===t.flip)?-1:1,i=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]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,h=t.shear||0,u=t.rotate||t.theta||0,l=new Xt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,d=l.y,f=new Xt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=f.x,m=f.y,g=new Xt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new Xt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:h,theta:u,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 r=t.a*e.a+t.c*e.b,i=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=r,n.b=i,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 r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Ut(this)}decompose(t=0,e=0){const n=this.a,r=this.b,i=this.c,s=this.d,o=this.e,a=this.f,h=n*s-r*i,u=h>0?1:-1,l=u*Math.sqrt(n*n+r*r),c=Math.atan2(u*r,u*n),d=180/Math.PI*c,f=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/h,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:d,translateX:o-t+t*f*l+e*(m*f*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+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 Ut(t);return Gt(this.a,e.a)&&Gt(this.b,e.b)&&Gt(this.c,e.c)&&Gt(this.d,e.d)&&Gt(this.e,e.e)&&Gt(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=Ut.fromArray([1,0,0,1,0,0]);return t=t instanceof ge?t.matrixify():"string"==typeof t?Ut.fromArray(t.split(Rt).map(parseFloat)):Array.isArray(t)?Ut.fromArray(t):"object"==typeof t&&Ut.isMatrixLike(t)?t:"object"==typeof t?(new Ut).transform(t):6===arguments.length?Ut.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,r=this.d,i=this.e,s=this.f,o=t*r-e*n;if(!o)throw new Error("Cannot invert "+this);const a=r/o,h=-e/o,u=-n/o,l=t/o,c=-(a*i+u*s),d=-(h*i+l*s);return this.a=a,this.b=h,this.c=u,this.d=l,this.e=c,this.f=d,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof Ut?t:new Ut(t);return Ut.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof Ut?t:new Ut(t);return Ut.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=rt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:h,e:u,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-h*i,this.d=h*r+a*i,this.e=u*r-l*i+n*i-e*r+e,this.f=l*r+u*i-e*i-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:s,c:o,d:a,e:h,f:u}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=h*t-n*t+n,this.f=u*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:s,d:o,e:a,f:h}=this;return this.a=r+i*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,r=0){3===arguments.length&&(r=n,n=e,e=t),t=rt(t),e=rt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:h,d:u,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=h+u*i,this.d=u+h*s,this.e=l+c*i-r*i,this.f=c+l*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(Ut.isMatrixLike(t))return new Ut(t).multiplyO(this);const e=Ut.formatTransforms(t),{x:n,y:r}=new Xt(e.ox,e.oy).transform(this),i=(new Ut).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-n,-r).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(n,r);if(isFinite(e.px)||isFinite(e.py)){const t=new Xt(n,r).transform(i),s=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;i.translateO(s,o)}return i.translateO(e.tx,e.ty),i}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 Yt(){if(!Yt.nodes){const t=vt().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;Yt.nodes={svg:t,path:e}}if(!Yt.nodes.svg.node.parentNode){const t=ft.document.body||ft.document.documentElement;Yt.nodes.svg.addTo(t)}return Yt.nodes}function Qt(t){return!(t.width||t.height||t.x||t.y)}Nt(Ut,"Matrix");class $t{constructor(...t){this.init(...t)}addOffset(){return this.x+=ft.window.pageXOffset,this.y+=ft.window.pageYOffset,new $t(this)}init(t){return t="string"==typeof t?t.split(Rt).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 Qt(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new $t(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Ut||(t=new Ut(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new Xt(this.x,this.y),new Xt(this.x2,this.y),new Xt(this.x,this.y2),new Xt(this.x2,this.y2)].forEach((function(s){s=s.transform(t),e=Math.min(e,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)})),new $t(e,r,n-e,i-r)}}function Zt(t,e,n){let r;try{if(r=e(t.node),Qt(r)&&(i=t.node)!==ft.document&&!(ft.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===ft.document}).call(ft.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}K({viewbox:{viewbox(t,e,n,r){return null==t?new $t(this.attr("viewBox")):this.attr("viewBox",new $t(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!=typeof n&&"string"!=typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),s=n/i.width,o=r/i.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 Xt(n/2/s+i.x,r/2/o+i.y);const u=new $t(i).transform(new Ut({scale:h,origin:e}));return this.viewbox(u)}}}),Nt($t,"Box");class Jt extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const Kt=Jt;Tt([Jt],{each(t,...e){return"function"==typeof t?this.map(((e,n,r)=>t.call(e,e,n,r))):this.map((n=>n[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const te=["toArray","constructor","each"];function ee(t,e){return new Kt(nt((e||ft.document).querySelectorAll(t),(function(t){return bt(t)})))}Jt.extend=function(t){t=t.reduce(((t,e)=>(te.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Tt([Jt],t)};let ne=0;const re={};function ie(t){let e=t.getEventHolder();return e===ft.window&&(e=re),e.events||(e.events={}),e.events}function se(t){return t.getEventTarget()}function oe(t,e,n,r,i){const s=n.bind(r||t),o=vt(t),a=ie(o),h=se(o);e=Array.isArray(e)?e:e.split(Rt),n._svgjsListenerId||(n._svgjsListenerId=++ne),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][r]=a[e][r]||{},a[e][r][n._svgjsListenerId]=s,h.addEventListener(e,s,i||!1)}))}function ae(t,e,n,r){const i=vt(t),s=ie(i),o=se(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Rt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,u;if(n)s[e]&&s[e][a||"*"]&&(o.removeEventListener(e,s[e][a||"*"][n],r||!1),delete s[e][a||"*"][n]);else if(e&&a){if(s[e]&&s[e][a]){for(u in s[e][a])ae(o,[e,a].join("."),u);delete s[e][a]}}else if(a)for(t in s)for(h in s[t])a===h&&ae(o,[t,a].join("."));else if(e){if(s[e]){for(h in s[e])ae(o,[e,h].join("."));delete s[e]}}else{for(t in s)ae(o,t);!function(t){let e=t.getEventHolder();e===ft.window&&(e=re),e.events&&(e.events={})}(i)}}))}class he extends pt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=se(t);return e instanceof ft.window.Event||(e=new ft.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.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 r in n[e])n[e][r](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 ae(this,t,e,n),this}on(t,e,n,r){return oe(this,t,e,n,r),this}removeEventListener(){}}function ue(){}Nt(he,"EventTarget");const le={"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 ce 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(Rt).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 de{constructor(...t){this.init(...t)}convert(t){return new de(this.value,t)}divide(t){return t=new de(t),new de(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(Ct))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof de&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new de(t),new de(this-t,this.unit||t.unit)}plus(t){return t=new de(t),new de(this+t,this.unit||t.unit)}times(t){return t=new de(t),new de(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 fe=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),pe=[];class me extends he{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=vt(t)).removeNamespace&&this.node instanceof ft.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 vt(t).put(this,e)}children(){return new Kt(nt(this.node.children,(function(t){return bt(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=_t(n)),new this.constructor(n)}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new me(yt(t),e))}first(){return bt(this.node.firstChild)}get(t){return bt(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=St(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return bt(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=bt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=bt(e.node.parentNode));return e}put(t,e){return t=vt(t),this.add(t,e),t}putIn(t,e){return vt(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=vt(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,r=this.attr(e);for(const t in r)"number"==typeof r[t]&&(r[t]=Math.round(r[t]*n)/n);return this.attr(r),this}svg(t,e){return this.xml(t,e,lt)}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=bt(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 r=yt("wrapper",n),i=ft.document.createDocumentFragment();r.innerHTML=t;for(let t=r.children.length;t--;)i.appendChild(r.firstElementChild);const s=this.parent();return e?this.replace(i)&&s:this.add(i)}}Tt(me,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=It.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))?le[t]:It.test(e)?parseFloat(e):e;"number"==typeof(e=pe.reduce(((e,n)=>n(t,e,this)),e))?e=new de(e):fe.has(t)&&Vt.isColor(e)?e=new Vt(e):e.constructor===Array&&(e=new ce(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 ee(t,this.node)},findOne:function(t){return bt(this.node.querySelector(t))}}),Nt(me,"Dom");class ge extends me{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 de(t).plus(this.x()))}dy(t=0){return this.y(new de(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=vt(t));const n=new Kt;let r=this;for(;(r=r.parent())&&r.node!==ft.document&&"#document-fragment"!==r.nodeName&&(n.push(r),e||r.node!==t.node)&&(!e||!r.matches(t));)if(r.node===this.root().node)return null;return n}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Lt);return e?vt(e[1]):null}root(){const t=this.parent(mt[gt]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=st(this,t,e);return this.width(new de(n.width)).height(new de(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return ut(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Tt(ge,{bbox:function(){const t=Zt(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(Yt().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 $t(t)},rbox:function(t){const e=Zt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new $t(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 Xt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new Ut(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 Ut(e)}return new Ut(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new Ut}}}),Nt(ge,"Element");const ye={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 Vt||Vt.isRgb(e)||e instanceof ge)this.attr(t,e);else for(n=ye[t].length-1;n>=0;n--)null!=e[ye[t][n]]&&this.attr(ye.prefix(t,ye[t][n]),e[ye[t][n]]);return this},K(["Element","Runner"],e)})),K(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new Ut(this):this.attr("transform",new Ut(t,e,n,r,i,s))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!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)}}),K("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new de(t)):this.rx(t).ry(e)}}),K("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Xt(this.node.getPointAtLength(t))}}),K(["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)}}),K("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}),{})),K("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Ot).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Rt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(Ut.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new Ut)},toParent:function(t,e){if(this===t)return this;if(ht(this.node))return this.addTo(t,e);const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.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 Ut(this).decompose();return null==t?e:e[t]}Ut.isMatrixLike(t)||(t={...t,origin:ot(t,this)});const n=new Ut(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class ve extends ge{flatten(){return this.each((function(){if(this instanceof ve)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,r){return r[r.length-n-1].toParent(t,e)})),this.remove()}}Nt(ve,"Container");class we extends ve{constructor(t,e=t){super(wt("defs",t),e)}flatten(){return this}ungroup(){return this}}Nt(we,"Defs");class be extends ge{}function xe(t){return this.attr("rx",t)}function Ne(t){return this.attr("ry",t)}function ke(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Se(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function _e(t){return this.attr("cx",t)}function Te(t){return this.attr("cy",t)}function Me(t){return null==t?2*this.rx():this.rx(new de(t).divide(2))}function Ce(t){return null==t?2*this.ry():this.ry(new de(t).divide(2))}Nt(be,"Shape");class Ee extends be{constructor(t,e=t){super(wt("ellipse",t),e)}size(t,e){const n=st(this,t,e);return this.rx(new de(n.width).divide(2)).ry(new de(n.height).divide(2))}}Tt(Ee,t),K("Container",{ellipse:Mt((function(t=0,e=t){return this.put(new Ee).size(t,e).move(0,0)}))}),Nt(Ee,"Ellipse");class Ae extends me{constructor(t=ft.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 me(yt("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Nt(Ae,"Fragment");const Le=Ae;function Oe(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new de(t),fy:new de(e)}):this.attr({x1:new de(t),y1:new de(e)})}function je(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new de(t),cy:new de(e)}):this.attr({x2:new de(t),y2:new de(e)})}class De extends ve{constructor(t,e){super(wt(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 $t}targets(){return ee("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()+")"}}Tt(De,e),K({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Mt((function(t,e){return this.put(new De(t)).update(e)}))}}),Nt(De,"Gradient");class We extends ve{constructor(t,e=t){super(wt("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new $t}targets(){return ee("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()+")"}}K({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Mt((function(t,e,n){return this.put(new We).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Nt(We,"Pattern");class Pe extends be{constructor(t,e=t){super(wt("image",t),e)}load(t,e){if(!t)return this;const n=new ft.window.Image;return oe(n,"load",(function(t){const r=this.parent(We);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof We&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),oe(n,"load error",(function(){ae(n)})),this.attr("href",n.src=t,dt)}}var Ie;Ie=function(t,e,n){return"fill"!==t&&"stroke"!==t||qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Pe&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},pe.push(Ie),K({Container:{image:Mt((function(t,e){return this.put(new Pe).size(0,0).load(t,e)}))}}),Nt(Pe,"Image");class qe extends ce{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new $t(n,r,t-n,e-r)}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(Rt).map(parseFloat)).length%2!=0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.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){Ut.isMatrixLike(t)||(t=new Ut(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const Re=qe;function Fe(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function He(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function ze(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function Be(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class Ve extends be{constructor(t,e=t){super(wt("line",t),e)}array(){return new qe([[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,r){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:n,y2:r}:new qe(t).toLine(),this.attr(t))}size(t,e){const n=st(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Tt(Ve,i),K({Container:{line:Mt((function(...t){return Ve.prototype.plot.apply(this.put(new Ve),null!=t[0]?t:[0,0,0,0])}))}}),Nt(Ve,"Line");class Xe extends ve{constructor(t,e=t){super(wt("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 Ge(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}K({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Mt((function(t,e,n){return this.put(new Xe).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof Xe?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Nt(Xe,"Marker");const Ue={"-":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,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let s=Math.floor(r*t);const o=r*s%1==0;return"start"!==e&&"both"!==e||++s,i&&o&&--s,r>=0&&s<0&&(s=0),r<=1&&s>n&&(s=n),s/n}}};class Ye{done(){return!1}}class Qe extends Ye{constructor(t=">"){super(),this.ease=Ue[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class $e extends Ye{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function Ze(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=Math.PI,r=Math.log(e/100+1e-10),i=-r/Math.sqrt(n*n+r*r),s=3.9/(i*t);this.d=2*i*s,this.k=s*s}Tt(class extends $e{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const i=r.velocity||0,s=-this.d*i-this.k*(t-e),o=t+i*n+s*n*n/2;return r.velocity=i+s*n,r.done=Math.abs(e-o)+Math.abs(i)<.002,r.done?e:o}},{duration:Ge("_duration",Ze),overshoot:Ge("_overshoot",Ze)}),Tt(class extends $e{constructor(t=.1,e=.01,n=0,r=1e3){super(),this.p(t).i(e).d(n).windup(r)}step(t,e,n,r){if("string"==typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;const i=e-t;let s=(r.integral||0)+i*n;const o=(i-(r.error||0))/n,a=this._windup;return!1!==a&&(s=Math.max(-a,Math.min(s,a))),r.error=i,r.integral=s,r.done=Math.abs(i)<.001,r.done?e:t+(this.P*i+this.I*s+this.D*o)}},{windup:Ge("_windup"),p:Ge("P"),i:Ge("I"),d:Ge("D")});const Je={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Ke={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]]}},tn="mlhvqtcsaz".split("");for(let t=0,e=tn.length;t<e;++t)Ke[tn[t]]=function(t){return function(e,n,r){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,r=e.length;t<r;++t)e[t]=e[t]+(t%2?n.y:n.x);return Ke[t](e,n,r)}}(tn[t].toUpperCase());function en(t){return t.segment.length&&t.segment.length-1===Je[t.segment[0].toUpperCase()]}function nn(t,e){t.inNumber&&rn(t,!1);const n=Ft.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function rn(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,en(t)&&sn(t)}function sn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Ke[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function on(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 an(t){return"E"===t.lastToken.toUpperCase()}const hn=new Set([" ",",","\t","\n","\r","\f"]);class un extends ce{bbox(){return Yt().path.setAttribute("d",this.toString()),new $t(Yt.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,r=this.length-1;r>=0;r--)n=this[r][0],"M"===n||"L"===n||"T"===n?(this[r][1]+=t,this[r][2]+=e):"H"===n?this[r][1]+=t:"V"===n?this[r][1]+=e:"C"===n||"S"===n||"Q"===n?(this[r][1]+=t,this[r][2]+=e,this[r][3]+=t,this[r][4]+=e,"C"===n&&(this[r][5]+=t,this[r][6]+=e)):"A"===n&&(this[r][6]+=t,this[r][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,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Xt,p:new Xt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!nn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(hn.has(r))i.inNumber&&rn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Ft.test(r)){if(i.inNumber)rn(i,!1);else{if(!en(i))throw new Error("parser Error");sn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!an(i)){rn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||on(i)){i.inNumber=!0,i.number=r,rn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){rn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&rn(i,!1),i.inSegment&&en(i)&&sn(i),i.segments}(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return function(t){let e="";for(let n=0,r=t.length;n<r;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 ln=t=>{const e=typeof t;return"number"===e?de:"string"===e?Vt.isColor(t)?Vt:Rt.test(t)?Ft.test(t)?un:ce:Ct.test(t)?de:dn:gn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?ce:"object"===e?mn:dn};class cn{constructor(t){this._stepper=t||new Qe("-"),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(ln(t));let e=new this._type(t);return this._type===Vt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===mn&&(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 dn{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 fn{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,fn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}fn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const pn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class mn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===Vt&&t[n+7]!==e[n+7]){const e=t[n+7],r=new Vt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),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 r=ln(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(pn),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(),r=e.shift(),i=e.shift(),s=e.splice(0,i);t[n]=new r(s)}return t}}const gn=[dn,fn,mn];class yn extends be{constructor(t,e=t){super(wt("path",t),e)}array(){return this._array||(this._array=new un(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 un(t))}size(t,e){const n=st(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 vn(){return this._array||(this._array=new qe(this.attr("points")))}function wn(){return delete this._array,this}function bn(t,e){return this.attr("points",this.array().move(t,e))}function xn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new qe(t))}function Nn(t,e){const n=st(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}yn.prototype.MorphArray=un,K({Container:{path:Mt((function(t){return this.put(new yn).plot(t||new un)}))}}),Nt(yn,"Path");class kn extends be{constructor(t,e=t){super(wt("polygon",t),e)}}K({Container:{polygon:Mt((function(t){return this.put(new kn).plot(t||new qe)}))}}),Tt(kn,i),Tt(kn,s),Nt(kn,"Polygon");class Sn extends be{constructor(t,e=t){super(wt("polyline",t),e)}}K({Container:{polyline:Mt((function(t){return this.put(new Sn).plot(t||new qe)}))}}),Tt(Sn,i),Tt(Sn,s),Nt(Sn,"Polyline");class _n extends be{constructor(t,e=t){super(wt("rect",t),e)}}Tt(_n,{rx:xe,ry:Ne}),K({Container:{rect:Mt((function(t,e){return this.put(new _n).size(t,e)}))}}),Nt(_n,"Rect");class Tn{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 Mn={nextDraw:null,frames:new Tn,timeouts:new Tn,immediates:new Tn,timer:()=>ft.window.performance||ft.window.Date,transforms:[],frame(t){const e=Mn.frames.push({run:t});return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),e},timeout(t,e){e=e||0;const n=Mn.timer().now()+e,r=Mn.timeouts.push({run:t,time:n});return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),r},immediate(t){const e=Mn.immediates.push(t);return null===Mn.nextDraw&&(Mn.nextDraw=ft.window.requestAnimationFrame(Mn._draw)),e},cancelFrame(t){null!=t&&Mn.frames.remove(t)},clearTimeout(t){null!=t&&Mn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Mn.immediates.remove(t)},_draw(t){let e=null;const n=Mn.timeouts.last();for(;(e=Mn.timeouts.shift())&&(t>=e.time?e.run():Mn.timeouts.push(e),e!==n););let r=null;const i=Mn.frames.last();for(;r!==i&&(r=Mn.frames.shift());)r.run(t);let s=null;for(;s=Mn.immediates.shift();)s();Mn.nextDraw=Mn.timeouts.first()||Mn.frames.first()?ft.window.requestAnimationFrame(Mn._draw):null}},Cn=Mn,En=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},An=function(){const t=ft.window;return(t.performance||t.Date).now()};class Ln extends he{constructor(t=An){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(En);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();r=t?t.start:this._time}}t.unschedule(),t.timeline(this);const s=t.persist(),o={persist:null===s?this._persist:s,start:r+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 Cn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Cn.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,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 i=!1;for(let t=0,e=this._runners.length;t<e;t++){const n=this._runners[t],s=n.runner;let o=r;const a=this._time-n.start;a<=0?i=!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):i=!0))}return i&&!(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)}}K({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ln,this._timeline):(this._timeline=t,this)}}});class On extends he{constructor(t){super(),this.id=On.id++,t="function"==typeof(t=null==t?400:t)?new $e(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof $e,this._stepper=this._isDeclarative?t:new Qe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Ut,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 r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof Ye||(e=t.delay??e,n=t.when??n,i=t.swing||i,r=t.times??r,s=t.wait??s,t=t.duration??400),{duration:t,delay:e,swing:i,times:r,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 r=On.sanitise(t,e,n),i=new On(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Ut,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 Qe(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,r=e*Math.floor(t)+this._duration*n;return this.time(r)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,s=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=s*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,a=Math.pow(-1,i)*(t%(r+n))/n+i;return Math.max(Math.min(a,1),0)},h=i*(r+n)-r;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()),u=s&&h%2==0;return a=h+(u&&!o||o&&u?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,r){return this._queue.push({initialiser:t||ue,runner:e||ue,retarget:n,isTransform:r,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 Ln||(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 r=this.duration(),i=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!s&&this._time>=r,this._reseted=!1;let a=!1;return(n||o)&&(this._initialise(n),this.transforms=new Ut,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],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&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,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.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 r=this.timeline();return r&&r.play(),!0}return!1}}On.id=0;class jn{constructor(t=new Ut,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Tt([On,jn],{mergeWith(t){return new jn(t.transforms.lmultiply(this.transforms),t.id)}});const Dn=(t,e)=>t.lmultiplyO(e),Wn=t=>t.transforms;function Pn(){const t=this._transformationRunners.runners.map(Wn).reduce(Dn,new Ut);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class In{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 jn).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 r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}K({Element:{animate(t,e,n){const r=On.sanitise(t,e,n),i=this.timeline();return new On(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.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(Wn).reduce(Dn,new Ut)},_addRunner(t){this._transformationRunners.add(t),Cn.cancelImmediate(this._frameId),this._frameId=Cn.immediate(Pn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new In).add(new jn(new Ut(this))))}}}),Tt(On,{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 r=e;if(this._tryRetarget(t,r))return this;let i=new cn(this._stepper).to(r),s=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](s))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.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 mn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const h=new mn(i.to()).valueOf();Object.assign(h,e),i.to(h),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new cn(this._stepper).to(new de(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,r){e=r,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 r=Ut.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new cn(this._stepper).type(n?fn:Ut);let s,o,a,h,u;return this.queue((function(){o=o||this.element(),s=s||ot(t,o),u=new Ut(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:d}=new Xt(s).transform(o._currentTransform(this));let f=new Ut({...t,origin:[c,d]}),p=this._isDeclarative&&a?a:u;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],r=n.map((t=>Math.abs(t-e))),i=Math.min(...r),s=r.indexOf(i);f.rotate=n[s]}e&&(r||(f.rotate=t.rotate||0),this._isDeclarative&&h&&(p.rotate=h)),i.from(p),i.to(f);const m=i.at(l);return h=m.rotate,a=new Ut(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=ot(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",i),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 de(e),this._tryRetarget(t,e))return this;const n=new cn(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new de(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new cn(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 de(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,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new cn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new $t(t,e,n,r))},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)}}),Tt(On,{rx:xe,ry:Ne,from:Oe,to:je}),Nt(On,"Runner");class qn extends ve{constructor(t,e=t){super(wt("svg",t),e),this.namespace()}defs(){return this.isRoot()?bt(this.node.querySelector("defs"))||this.put(new we):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof ft.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:lt,version:"1.1"}).attr("xmlns:xlink",dt,ct):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,ct).attr("xmlns:svgjs",null,ct)}root(){return this.isRoot()?this:super.root()}}K({Container:{nested:Mt((function(){return this.put(new qn)}))}}),Nt(qn,"Svg",!0);class Rn extends ve{constructor(t,e=t){super(wt("symbol",t),e)}}function Fn(t){return!1===this._build&&this.clear(),this.node.appendChild(ft.document.createTextNode(t)),this}function Hn(){return this.node.getComputedTextLength()}function zn(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Bn(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function Vn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function Xn(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function Gn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function Un(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function Yn(t){return this.attr("x",t)}function Qn(t){return this.attr("y",t)}function $n(t,e){return this.ax(t).ay(e)}function Zn(t){return this._build=!!t,this}K({Container:{symbol:Mt((function(){return this.put(new Rn)}))}}),Nt(Rn,"Symbol");class Jn extends be{constructor(t,e=t){super(wt("text",t),e),this.dom.leading=this.dom.leading??new de(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new de(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(r){if(ht(this.node))return;const i=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new de(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=s:(this.attr("dy",r?s+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new de(t.leading||1.3),this}writeDataToDom(){return ut(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||ht(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===bt(e[r]).dom.newLined&&(t+="\n"),t+=e[r].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()}}Tt(Jn,o),K({Container:{text:Mt((function(t=""){return this.put(new Jn).text(t)})),plain:Mt((function(t=""){return this.put(new Jn).plain(t)}))}}),Nt(Jn,"Text");class Kn extends be{constructor(t,e=t){super(wt("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 Jn))return this;const e=t.index(this),n=ft.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new de(n);return this.dy(e?r: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)}}Tt(Kn,o),K({Tspan:{tspan:Mt((function(t=""){const e=new Kn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Nt(Kn,"Tspan");class tr extends be{constructor(t,e=t){super(wt("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 de(t).divide(2))}}Tt(tr,{x:ke,y:Se,cx:_e,cy:Te,width:Me,height:Ce}),K({Container:{circle:Mt((function(t=0){return this.put(new tr).size(t).move(0,0)}))}}),Nt(tr,"Circle");class er extends ve{constructor(t,e=t){super(wt("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ee("svg [clip-path*="+this.id()+"]")}}K({Container:{clip:Mt((function(){return this.defs().put(new er)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof er?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Nt(er,"ClipPath");class nr extends ge{constructor(t,e=t){super(wt("foreignObject",t),e)}}function rr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof ft.window.SVGSVGElement?new $t(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new Ut(n),s=i.translate(t,e).transform(i.inverse()),o=new Xt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function ir(t){return this.dmove(t,0)}function sr(t){return this.dmove(0,t)}function or(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function ar(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function hr(t,e,n=this.bbox()){const r=st(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new Xt(n).transform(new Ut(t).inverse());t.scale(i,s,e.x,e.y)})),this}function ur(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function lr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function cr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}K({Container:{foreignObject:Mt((function(t,e){return this.put(new nr).size(t,e)}))}}),Nt(nr,"ForeignObject");class dr extends ve{constructor(t,e=t){super(wt("g",t),e)}}Tt(dr,a),K({Container:{group:Mt((function(){return this.put(new dr)}))}}),Nt(dr,"G");class fr extends ve{constructor(t,e=t){super(wt("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,dt)}}Tt(fr,a),K({Container:{link:Mt((function(t){return this.put(new fr).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 fr,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}}}),Nt(fr,"A");class pr extends ve{constructor(t,e=t){super(wt("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ee("svg [mask*="+this.id()+"]")}}K({Container:{mask:Mt((function(){return this.defs().put(new pr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof pr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Nt(pr,"Mask");class mr extends ge{constructor(t,e=t){super(wt("stop",t),e)}update(t){return("number"==typeof t||t instanceof de)&&(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 de(t.offset)),this}}K({Gradient:{stop:function(t,e,n){return this.put(new mr).update(t,e,n)}}}),Nt(mr,"Stop");class gr extends ge{constructor(t,e=t){super(wt("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))}}K("Dom",{style(t,e){return this.put(new gr).rule(t,e)},fontface(t,e,n){return this.put(new gr).font(t,e,n)}}),Nt(gr,"Style");class yr extends Jn{constructor(t,e=t){super(wt("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")}}K({Container:{textPath:Mt((function(t,e){return t instanceof Jn||(t=this.text(t)),t.path(e)}))},Text:{path:Mt((function(t,e=!0){const n=new yr;let r;if(t instanceof yn||(t=this.defs().path(t)),n.attr("href","#"+t,dt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Mt((function(t){return t instanceof Jn||(t=(new Jn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ee("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),yr.prototype.MorphArray=un,Nt(yr,"TextPath");class vr extends be{constructor(t,e=t){super(wt("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,dt)}}K({Container:{use:Mt((function(t,e){return this.put(new vr).use(t,e)}))}}),Nt(vr,"Use"),Tt([qn,Rn,Pe,We,Xe],tt("viewbox")),Tt([Ve,Sn,kn,yn],tt("marker")),Tt(Jn,tt("Text")),Tt(yn,tt("Path")),Tt(we,tt("Defs")),Tt([Jn,Kn],tt("Tspan")),Tt([_n,Ee,De,On],tt("radius")),Tt(he,tt("EventTarget")),Tt(me,tt("Dom")),Tt(ge,tt("Element")),Tt(be,tt("Shape")),Tt([ve,Le],tt("Container")),Tt(De,tt("Gradient")),Tt(On,tt("Runner")),Kt.extend([...new Set(J)]),function(t=[]){gn.push(...[].concat(t))}([de,Vt,$t,Ut,ce,qe,un,Xt]),Tt(gn,{to(t){return(new cn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){return this.fromArray(t.map((function(t,s){return r.step(t,e[s],n,i[s],i)})))}});var wr,br,xr,Nr,kr,Sr,_r,Tr,Mr,Cr,Er,Ar,Lr,Or,jr,Dr,Wr,Pr,Ir,qr,Rr,Fr,Hr,zr,Br,Vr,Xr,Gr,Ur,Yr,Qr,$r,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,hi,ui,li,ci,di,fi,pi,mi,gi,yi,vi,wi,bi,xi,Ni,ki,Si,_i,Ti,Mi,Ci,Ei,Ai,Li,Oi,ji,Di,Wi=n(169),Pi=n(692),Ii=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},qi=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n};class Ri{constructor(t){wr.add(this),this.domNode=document.createElement("div"),br.set(this,new Fi),xr.set(this,document.createElement("div")),Nr.set(this,void 0),kr.set(this,document.createElement("div")),Sr.set(this,void 0),_r.set(this,void 0),Tr.set(this,void 0),Mr.set(this,void 0),Cr.set(this,void 0),Er.set(this,void 0),Ar.set(this,void 0),Lr.set(this,void 0),Or.set(this,void 0),jr.set(this,void 0),Dr.set(this,void 0),this.domNode.classList.add(N.lf),Ii(this,br,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(N.ho))),this.domNode.append(Ii(this,br,"f").domNode),Ii(this,xr,"f").classList.add(N.Qs),this.domNode.append(Ii(this,xr,"f")),qi(this,Nr,new Hi(t),"f"),Ii(this,xr,"f").append(Ii(this,Nr,"f").domNode),Ii(this,kr,"f").classList.add(N.eB),Ii(this,xr,"f").append(Ii(this,kr,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(Ii(this,kr,"f").style.display=[...t.selectedBases].length>0?"block":"none")})),qi(this,Sr,new zi(t),"f"),Ii(this,kr,"f").append(Ii(this,Sr,"f").domNode),qi(this,_r,new Bi(t),"f"),Ii(this,kr,"f").append(Ii(this,_r,"f").domNode),qi(this,Tr,new Vi(t),"f"),Ii(this,kr,"f").append(Ii(this,Tr,"f").domNode),qi(this,Mr,new Xi(t),"f"),Ii(this,kr,"f").append(Ii(this,Mr,"f").domNode),qi(this,Cr,new Gi(t),"f"),Ii(this,kr,"f").append(Ii(this,Cr,"f").domNode),qi(this,Er,new Ui(t),"f"),Ii(this,kr,"f").append(Ii(this,Er,"f").domNode),qi(this,Ar,new Yi(t),"f"),Ii(this,kr,"f").append(Ii(this,Ar,"f").domNode),qi(this,Lr,new Qi(t),"f"),Ii(this,kr,"f").append(Ii(this,Lr,"f").domNode),qi(this,Or,new Ji(t),"f"),Ii(this,kr,"f").append(Ii(this,Or,"f").domNode),qi(this,jr,new Ki(t),"f"),Ii(this,kr,"f").append(Ii(this,jr,"f").domNode),qi(this,Dr,new ts(t),"f"),Ii(this,kr,"f").append(Ii(this,Dr,"f").domNode)}refresh(){Ii(this,wr,"a",Wr).forEach((t=>t.refresh()))}}br=new WeakMap,xr=new WeakMap,Nr=new WeakMap,kr=new WeakMap,Sr=new WeakMap,_r=new WeakMap,Tr=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Ar=new WeakMap,Lr=new WeakMap,Or=new WeakMap,jr=new WeakMap,Dr=new WeakMap,wr=new WeakSet,Wr=function(){return[Ii(this,Nr,"f"),Ii(this,Sr,"f"),Ii(this,_r,"f"),Ii(this,Tr,"f"),Ii(this,Mr,"f"),Ii(this,Cr,"f"),Ii(this,Er,"f"),Ii(this,Ar,"f"),Ii(this,Lr,"f"),Ii(this,Or,"f"),Ii(this,jr,"f"),Ii(this,Dr,"f")]};class Fi{constructor(){this.domNode=document.createElement("div"),Pr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),Ir.set(this,document.createElement("p")),this.domNode.classList.add(N.wx),Ii(this,Pr,"f").classList.add(N.m9),Ii(this,Pr,"f").setAttribute("viewBox","0 0 6 10"),Ii(this,Pr,"f").setAttribute("width","6"),Ii(this,Pr,"f").setAttribute("height","10"),Ii(this,Pr,"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(Ii(this,Pr,"f")),Ii(this,Ir,"f").classList.add(N.aW),Ii(this,Ir,"f").textContent="Bases",this.domNode.append(Ii(this,Ir,"f"))}}Pr=new WeakMap,Ir=new WeakMap;class Hi{constructor(t){qr.set(this,void 0),this.domNode=document.createElement("p"),Rr.set(this,document.createElement("span")),Fr.set(this,document.createElement("span")),qi(this,qr,t,"f"),this.domNode.classList.add(N.IU),Ii(this,Rr,"f").style.fontWeight="700",this.domNode.append(Ii(this,Rr,"f"),Ii(this,Fr,"f")),Ii(this,qr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Ii(this,qr,"f").selectedBases].length;Ii(this,Rr,"f").textContent=`${t}`,Ii(this,Fr,"f").textContent=1==t?" base is selected.":" bases are selected."}}qr=new WeakMap,Rr=new WeakMap,Fr=new WeakMap;class zi{constructor(t){Hr.add(this),zr.set(this,void 0),Br.set(this,new C({onSubmit:()=>Ii(this,Hr,"m",Xr).call(this)})),Vr.set(this,void 0),qi(this,zr,t,"f"),qi(this,Vr,new q("Text Content",Ii(this,Br,"f").domNode),"f"),Ii(this,Vr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",Pi(this.domNode).css({alignSelf:"start"}),Ii(this,zr,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,zr,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return Ii(this,Vr,"f").domNode}refresh(){let t=[...Ii(this,zr,"f").selectedBases];try{Ii(this,Br,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){Ii(this,Br,"f").domNode.value=""}}}zr=new WeakMap,Br=new WeakMap,Vr=new WeakMap,Hr=new WeakSet,Xr=function(){var t;let e=null!==(t=Ii(this,Br,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...Ii(this,zr,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(Ii(this,zr,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Bi{constructor(t){Gr.set(this,void 0),Ur.set(this,void 0),Yr.set(this,void 0),qi(this,Gr,t,"f"),qi(this,Ur,new rs(t,"fill"),"f"),qi(this,Yr,new q("Fill",Ii(this,Ur,"f").domNode),"f"),Ii(this,Yr,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,Yr,"f").domNode}refresh(){Ii(this,Ur,"f").refresh()}}Gr=new WeakMap,Ur=new WeakMap,Yr=new WeakMap;class Vi{constructor(t){Qr.add(this),$r.set(this,void 0),Zr.set(this,new U),Jr.set(this,void 0),Kr.set(this,void 0),ti.set(this,void 0),qi(this,$r,t,"f"),Ii(this,Zr,"f").domNode.addEventListener("input",(()=>Ii(this,Qr,"m",ei).call(this))),qi(this,Jr,new $("Fill Color",Ii(this,Zr,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,$r,"f").selectedBases.addEventListener("change",(()=>qi(this,Kr,void 0,"f"))),Ii(this,Zr,"f").domNode.addEventListener("focus",(()=>qi(this,ti,Ii(this,Zr,"f").domNode.value,"f"))),Ii(this,$r,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,$r,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,Jr,"f").domNode}refresh(){let t=[...Ii(this,$r,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Vt(t)));Ii(this,Zr,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Ii(this,Zr,"f").domNode.value="#000000"}else Ii(this,Zr,"f").domNode.value="#000000"}}$r=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Kr=new WeakMap,ti=new WeakMap,Qr=new WeakSet,ei=function(){if(Ii(this,Zr,"f").domNode.value===Ii(this,ti,"f"))return;let t=[...Ii(this,$r,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Ii(this,Zr,"f").domNode.value.toLowerCase()}))||((Ii(this,$r,"f").undoStack.isEmpty()||Ii(this,$r,"f").undoStack.peek()!==Ii(this,Kr,"f"))&&(Ii(this,$r,"f").pushUndoStack(),qi(this,Kr,Ii(this,$r,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",Ii(this,Zr,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Xi{constructor(t){ni.set(this,void 0),ri.set(this,void 0),ii.set(this,void 0),qi(this,ni,t,"f"),qi(this,ri,new rs(t,"fill-opacity"),"f"),qi(this,ii,new q("Fill Opacity",Ii(this,ri,"f").domNode),"f"),Ii(this,ii,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,ii,"f").domNode}refresh(){Ii(this,ri,"f").refresh()}}ni=new WeakMap,ri=new WeakMap,ii=new WeakMap;class Gi{constructor(t){si.set(this,void 0),oi.set(this,void 0),ai.set(this,void 0),qi(this,si,t,"f"),qi(this,oi,new rs(t,"font-family"),"f"),qi(this,ai,new q("Font Family",Ii(this,oi,"f").domNode),"f"),Ii(this,ai,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,ai,"f").domNode}refresh(){Ii(this,oi,"f").refresh()}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap;class Ui{constructor(t){hi.set(this,void 0),ui.set(this,void 0),li.set(this,void 0),qi(this,hi,t,"f"),qi(this,ui,new rs(t,"font-size"),"f"),qi(this,li,new q("Font Size",Ii(this,ui,"f").domNode),"f"),Ii(this,li,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,li,"f").domNode}refresh(){Ii(this,ui,"f").refresh()}}hi=new WeakMap,ui=new WeakMap,li=new WeakMap;class Yi{constructor(t){ci.set(this,void 0),di.set(this,void 0),fi.set(this,void 0),qi(this,ci,t,"f"),qi(this,di,new rs(t,"font-weight"),"f"),qi(this,fi,new q("Font Weight",Ii(this,di,"f").domNode),"f"),Ii(this,fi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,fi,"f").domNode}refresh(){Ii(this,di,"f").refresh()}}ci=new WeakMap,di=new WeakMap,fi=new WeakMap;class Qi{constructor(t){pi.add(this),mi.set(this,void 0),gi.set(this,new H),yi.set(this,void 0),qi(this,mi,t,"f"),Ii(this,gi,"f").domNode.addEventListener("change",(()=>Ii(this,pi,"m",vi).call(this))),qi(this,yi,new V("Bold",Ii(this,gi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,mi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,mi,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,yi,"f").domNode}refresh(){let t=[...Ii(this,mi,"f").selectedBases];0==t.length?Ii(this,gi,"f").domNode.checked=!1:Ii(this,gi,"f").domNode.checked=t.every($i)}}function $i(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 Zi(t){return!$i(t)}mi=new WeakMap,gi=new WeakMap,yi=new WeakMap,pi=new WeakSet,vi=function(){let t=[...Ii(this,mi,"f").selectedBases];0!=t.length?Ii(this,gi,"f").domNode.checked&&t.every($i)?this.refresh():Ii(this,gi,"f").domNode.checked||!t.every(Zi)?(Ii(this,mi,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ii(this,gi,"f").domNode.checked&&Zi(t)?t.setAttribute("font-weight","700"):!Ii(this,gi,"f").domNode.checked&&$i(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),Ii(this,gi,"f").domNode.blur()):this.refresh():this.refresh()};class Ji{constructor(t){wi.set(this,void 0),bi.set(this,void 0),xi.set(this,void 0),qi(this,wi,t,"f"),qi(this,bi,new rs(t,"font-style"),"f"),qi(this,xi,new q("Font Style",Ii(this,bi,"f").domNode),"f"),Ii(this,xi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,xi,"f").domNode}refresh(){Ii(this,bi,"f").refresh()}}wi=new WeakMap,bi=new WeakMap,xi=new WeakMap;class Ki{constructor(t){Ni.set(this,void 0),ki.set(this,void 0),Si.set(this,void 0),qi(this,Ni,t,"f"),qi(this,ki,new rs(t,"text-decoration"),"f"),qi(this,Si,new q("Text Decoration",Ii(this,ki,"f").domNode),"f"),Ii(this,Si,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Ii(this,Si,"f").domNode}refresh(){Ii(this,ki,"f").refresh()}}Ni=new WeakMap,ki=new WeakMap,Si=new WeakMap;class ts{constructor(t){_i.add(this),Ti.set(this,void 0),Mi.set(this,new H),Ci.set(this,void 0),qi(this,Ti,t,"f"),Ii(this,Mi,"f").domNode.addEventListener("change",(()=>Ii(this,_i,"m",Ei).call(this))),qi(this,Ci,new V("Underlined",Ii(this,Mi,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Ii(this,Ti,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,Ti,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return Ii(this,Ci,"f").domNode}refresh(){let t=[...Ii(this,Ti,"f").selectedBases];0==t.length?Ii(this,Mi,"f").domNode.checked=!1:Ii(this,Mi,"f").domNode.checked=t.every(es)}}function es(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function ns(t){return!es(t)}Ti=new WeakMap,Mi=new WeakMap,Ci=new WeakMap,_i=new WeakSet,Ei=function(){let t=[...Ii(this,Ti,"f").selectedBases];0!=t.length?Ii(this,Mi,"f").domNode.checked&&t.every(es)?this.refresh():Ii(this,Mi,"f").domNode.checked||!t.every(ns)?(Ii(this,Ti,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{Ii(this,Mi,"f").domNode.checked&&ns(t)?t.setAttribute("text-decoration","underline"):!Ii(this,Mi,"f").domNode.checked&&es(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),Ii(this,Mi,"f").domNode.blur()):this.refresh():this.refresh()};class rs{constructor(t,e){Ai.add(this),Li.set(this,void 0),Oi.set(this,void 0),ji.set(this,new C({onSubmit:()=>Ii(this,Ai,"m",Di).call(this)})),qi(this,Li,t,"f"),qi(this,Oi,e,"f"),Ii(this,Li,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Ii(this,Li,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Ii(this,ji,"f").domNode}refresh(){let t=[...Ii(this,Li,"f").selectedBases];try{Ii(this,ji,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(Ii(this,Oi,"f")))&&void 0!==e?e:""})))}catch(t){Ii(this,ji,"f").domNode.value=""}}}Li=new WeakMap,Oi=new WeakMap,ji=new WeakMap,Ai=new WeakSet,Di=function(){let t=Ii(this,ji,"f").domNode.value,e=[...Ii(this,Li,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(Ii(this,Oi,"f"))===t))||(Ii(this,Li,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(Ii(this,Oi,"f"),t)))))),this.refresh()};var is=n(924),ss={};ss.styleTagTransform=w(),ss.setAttributes=m(),ss.insert=f().bind(null,"head"),ss.domAPI=c(),ss.insertStyleElement=y(),u()(is.Ay,ss),is.Ay&&is.Ay.locals&&is.Ay.locals;var os=n(584),as={};as.styleTagTransform=w(),as.setAttributes=m(),as.insert=f().bind(null,"head"),as.domAPI=c(),as.insertStyleElement=y(),u()(os.Ay,as),os.Ay&&os.Ay.locals&&os.Ay.locals;var hs,us=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ls{constructor(){this.domNode=document.createElement("div"),this.caret=new cs,hs.set(this,document.createElement("p")),this.domNode.classList.add(os.kY),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),us(this,hs,"f").classList.add(os.Qq),this.domNode.append(us(this,hs,"f"))}get textContent(){return us(this,hs,"f").textContent}set textContent(t){us(this,hs,"f").textContent=t}}hs=new WeakMap;class cs{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(os.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(os.Z7)}pointDown(){this.domNode.classList.add(os.Z7)}}var ds=n(887),fs={};fs.styleTagTransform=w(),fs.setAttributes=m(),fs.insert=f().bind(null,"head"),fs.domAPI=c(),fs.insertStyleElement=y(),u()(ds.Ay,fs),ds.Ay&&ds.Ay.locals&&ds.Ay.locals;var ps,ms=n(704),gs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ys{constructor(){this.domNode=document.createElement("div"),ps.set(this,document.createElement("p")),this.tooltip=new ms.Tooltip(""),this.domNode.classList.add(ds.lI),gs(this,ps,"f").classList.add(ds.Qq),this.domNode.append(gs(this,ps,"f")),this.tooltip.owner=this.domNode}get textContent(){return gs(this,ps,"f").textContent}set textContent(t){gs(this,ps,"f").textContent=t}disable(){this.domNode.classList.add(ds.r9)}enable(){this.domNode.classList.remove(ds.r9)}}ps=new WeakMap;var vs=n(723),ws={};ws.styleTagTransform=w(),ws.setAttributes=m(),ws.insert=f().bind(null,"head"),ws.domAPI=c(),ws.insertStyleElement=y(),u()(vs.Ay,ws),vs.Ay&&vs.Ay.locals&&vs.Ay.locals;var bs,xs=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ns{constructor(t,e){this.domNode=document.createElement("div"),bs.set(this,document.createElement("p")),this.tooltip=new ms.Tooltip(""),this.domNode.classList.add(vs.kL),xs(this,bs,"f").classList.add(vs.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(xs(this,bs,"f")),this.tooltip.owner=this.domNode}get textContent(){return xs(this,bs,"f").textContent}set textContent(t){xs(this,bs,"f").textContent=t}get onClick(){return xs(this,bs,"f").onclick}set onClick(t){xs(this,bs,"f").onclick=t}click(){xs(this,bs,"f").click()}disable(){xs(this,bs,"f").classList.add(vs.r9)}enable(){xs(this,bs,"f").classList.remove(vs.r9)}isDisabled(){return xs(this,bs,"f").classList.contains(vs.r9)}isEnabled(){return!this.isDisabled()}}bs=new WeakMap;var ks,Ss,_s,Ts,Ms,Cs,Es,As,Ls,Os,js,Ds,Ws,Ps,Is,qs,Rs,Fs,Hs,zs,Bs,Vs,Xs,Gs,Us,Ys,Qs,$s,Zs,Js,Ks,to,eo,no,ro,io,so,oo,ao,ho,uo,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,No,ko,So,_o,To,Mo,Co,Eo,Ao,Lo,Oo,jo,Do,Wo,Po,Io,qo,Ro,Fo,Ho,zo,Bo,Vo,Xo,Go,Uo,Yo,Qo,$o,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ha,ua,la,ca,da,fa=n(726),pa=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},ma=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class ga{constructor(t){ks.add(this),Ss.set(this,void 0),this.domNode=document.createElement("div"),_s.set(this,new ls),Ts.set(this,document.createElement("div")),Ms.set(this,void 0),Cs.set(this,document.createElement("div")),Es.set(this,void 0),As.set(this,void 0),Ls.set(this,void 0),Os.set(this,void 0),js.set(this,void 0),Ds.set(this,void 0),Ws.set(this,void 0),Ps.set(this,void 0),Is.set(this,void 0),qs.set(this,void 0),Rs.set(this,void 0),Fs.set(this,void 0),pa(this,Ss,t,"f"),this.domNode.classList.add(is.qM),ma(this,_s,"f").textContent="Outlines",ma(this,_s,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(ma(this,_s,"f").domNode),ma(this,Ts,"f").classList.add(is.Qs),this.domNode.append(ma(this,Ts,"f")),pa(this,Ms,new ya(t),"f"),ma(this,Ts,"f").append(ma(this,Ms,"f").domNode),ma(this,Cs,"f").classList.add(is.eB),ma(this,Ts,"f").append(ma(this,Cs,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(ma(this,Cs,"f").style.display=[...t.selectedOutlines].length>0?"flex":"none")})),pa(this,Es,new va(t),"f"),ma(this,Cs,"f").append(ma(this,Es,"f").domNode),pa(this,As,new wa(t),"f"),ma(this,Cs,"f").append(ma(this,As,"f").domNode),pa(this,Ls,new xa(t),"f"),ma(this,Cs,"f").append(ma(this,Ls,"f").domNode),pa(this,Os,new Na(t),"f"),ma(this,Cs,"f").append(ma(this,Os,"f").domNode),pa(this,js,new ka(t),"f"),ma(this,Cs,"f").append(ma(this,js,"f").domNode),pa(this,Ds,new Sa(t),"f"),ma(this,Cs,"f").append(ma(this,Ds,"f").domNode),pa(this,Ws,new _a(t),"f"),ma(this,Cs,"f").append(ma(this,Ws,"f").domNode),pa(this,Ps,new Ta(t),"f"),ma(this,Cs,"f").append(ma(this,Ps,"f").domNode),pa(this,Is,new Ma(t),"f"),ma(this,Cs,"f").append(ma(this,Is,"f").domNode),pa(this,qs,new Ca(t),"f"),ma(this,Cs,"f").append(ma(this,qs,"f").domNode),pa(this,Rs,new Ea(t),"f"),ma(this,Cs,"f").append(ma(this,Rs,"f").domNode),pa(this,Fs,new Aa(t),"f"),ma(this,Cs,"f").append(ma(this,Fs,"f").domNode)}isOpen(){return this.domNode.classList.contains(is.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(is.ho),ma(this,_s,"f").caret.pointRight()):(this.domNode.classList.add(is.ho),ma(this,_s,"f").caret.pointDown())}refresh(){ma(this,ks,"a",Hs).forEach((t=>t.refresh()))}}Ss=new WeakMap,_s=new WeakMap,Ts=new WeakMap,Ms=new WeakMap,Cs=new WeakMap,Es=new WeakMap,As=new WeakMap,Ls=new WeakMap,Os=new WeakMap,js=new WeakMap,Ds=new WeakMap,Ws=new WeakMap,Ps=new WeakMap,Is=new WeakMap,qs=new WeakMap,Rs=new WeakMap,Fs=new WeakMap,ks=new WeakSet,Hs=function(){return[ma(this,Ms,"f"),ma(this,Es,"f"),ma(this,As,"f"),ma(this,Ls,"f"),ma(this,Os,"f"),ma(this,js,"f"),ma(this,Ds,"f"),ma(this,Ws,"f"),ma(this,Ps,"f"),ma(this,Is,"f"),ma(this,qs,"f"),ma(this,Rs,"f"),ma(this,Fs,"f")]};class ya{constructor(t){zs.set(this,void 0),this.domNode=document.createElement("p"),Bs.set(this,document.createElement("span")),Vs.set(this,document.createElement("span")),pa(this,zs,t,"f"),this.domNode.classList.add(is.vM),ma(this,Bs,"f").style.fontWeight="700",this.domNode.append(ma(this,Bs,"f"),ma(this,Vs,"f")),ma(this,zs,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...ma(this,zs,"f").selectedOutlines].length;ma(this,Bs,"f").textContent=`${t}`,ma(this,Vs,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}zs=new WeakMap,Bs=new WeakMap,Vs=new WeakMap;class va{constructor(t){Xs.add(this),Gs.set(this,void 0),this.domNode=document.createElement("div"),Us.set(this,document.createElement("p")),Ys.set(this,new ys),Qs.set(this,new ys),$s.set(this,new ys),Zs.set(this,void 0),pa(this,Gs,t,"f"),this.domNode.classList.add(is.VX),ma(this,Us,"f").classList.add(is.iE),ma(this,Us,"f").textContent="Select:",this.domNode.append(ma(this,Us,"f")),ma(this,Ys,"f").domNode.addEventListener("click",(()=>ma(this,Xs,"m",Js).call(this))),ma(this,Ys,"f").textContent="All",ma(this,Ys,"f").domNode.style.marginLeft="20px",this.domNode.append(ma(this,Ys,"f").domNode),ma(this,Qs,"f").domNode.addEventListener("click",(()=>ma(this,Xs,"m",Ks).call(this))),ma(this,Qs,"f").textContent="Outlining",ma(this,Qs,"f").domNode.style.marginLeft="17px",this.domNode.append(ma(this,Qs,"f").domNode),ma(this,$s,"f").domNode.addEventListener("click",(()=>ma(this,Xs,"m",to).call(this))),ma(this,$s,"f").textContent="None",ma(this,$s,"f").domNode.style.marginLeft="17px",this.domNode.append(ma(this,$s,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),pa(this,Zs,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ma(this,Zs,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){ma(this,Xs,"m",eo).call(this),ma(this,Xs,"m",no).call(this),ma(this,Xs,"m",ro).call(this)}}Gs=new WeakMap,Us=new WeakMap,Ys=new WeakMap,Qs=new WeakMap,$s=new WeakMap,Zs=new WeakMap,Xs=new WeakSet,Js=function(){let t=[...ma(this,Gs,"f").drawing.outlines];ma(this,Gs,"f").addToSelected(t)},Ks=function(){let t=new Set(ma(this,Gs,"f").selectedBases),e=[...ma(this,Gs,"f").drawing.outlines];ma(this,Gs,"f").addToSelected(e.filter((e=>t.has(e.owner))))},to=function(){let t=[...ma(this,Gs,"f").drawing.outlines];ma(this,Gs,"f").removeFromSelected(t)},eo=function(){let t=[...ma(this,Gs,"f").drawing.outlines],e=[...ma(this,Gs,"f").selectedOutlines];0==t.length?(ma(this,Ys,"f").disable(),ma(this,Ys,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(ma(this,Ys,"f").disable(),ma(this,Ys,"f").tooltip.textContent="All outlines are already selected."):(ma(this,Ys,"f").enable(),ma(this,Ys,"f").tooltip.textContent="Select all outlines.")},no=function(){let t=[...ma(this,Gs,"f").drawing.outlines],e=new Set(ma(this,Gs,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(ma(this,Gs,"f").selectedOutlines);0==e.size?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="No bases are selected."):0==n.length?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>r.has(t)))?(ma(this,Qs,"f").disable(),ma(this,Qs,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(ma(this,Qs,"f").enable(),ma(this,Qs,"f").tooltip.textContent="Select outlines outlining the selected bases.")},ro=function(){0==[...ma(this,Gs,"f").selectedOutlines].length?(ma(this,$s,"f").disable(),ma(this,$s,"f").tooltip.textContent="No outlines are selected."):(ma(this,$s,"f").enable(),ma(this,$s,"f").tooltip.textContent="Deselect all outlines.")};class wa{constructor(t){io.add(this),so.set(this,void 0),this.domNode=document.createElement("div"),oo.set(this,document.createElement("div")),ao.set(this,new Ns("Add",(()=>ma(this,io,"m",mo).call(this)))),ho.set(this,new H),uo.set(this,new V("Only add missing outlines",ma(this,ho,"f").domNode)),lo.set(this,void 0),co.set(this,void 0),pa(this,so,t,"f"),this.domNode.style.marginTop="19px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",ma(this,oo,"f").style.display="flex",ma(this,oo,"f").style.flexDirection="row",ma(this,oo,"f").style.gap="14px",this.domNode.append(ma(this,oo,"f")),pa(this,lo,new ba(t),"f"),ma(this,oo,"f").append(ma(this,ao,"f").domNode,ma(this,lo,"f").domNode),ma(this,ho,"f").domNode.checked=!0,ma(this,uo,"f").domNode.style.marginTop="12px",ma(this,uo,"f").domNode.style.alignSelf="start",this.domNode.append(ma(this,uo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),pa(this,co,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ma(this,co,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),ma(this,ho,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){ma(this,io,"m",po).call(this),ma(this,lo,"f").refresh()}}so=new WeakMap,oo=new WeakMap,ao=new WeakMap,ho=new WeakMap,uo=new WeakMap,lo=new WeakMap,co=new WeakMap,io=new WeakSet,fo=function(){return ma(this,ho,"f").domNode.checked},po=function(){let t=[...ma(this,so,"f").selectedBases],e=[...ma(this,so,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(ma(this,ao,"f").disable(),ma(this,ao,"f").tooltip.textContent="No bases are selected."):ma(this,io,"a",fo)&&0==r.length?(ma(this,ao,"f").disable(),ma(this,ao,"f").tooltip.textContent="The selected bases are already outlined."):(ma(this,ao,"f").enable(),ma(this,ao,"f").tooltip.textContent="Outline the selected bases.")},mo=function(){let t=[...ma(this,so,"f").selectedBases];if(0==t.length)return;let e=[...ma(this,so,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=ma(this,io,"a",fo)?r:t;if(0==i.length)return;ma(this,so,"f").pushUndoStack();let s=i.map((t=>ma(this,so,"f").drawing.outline(t)));ma(this,so,"f").addToSelected(s),this.refresh()};class ba{constructor(t){go.set(this,void 0),yo.set(this,new Ns("Remove",(()=>this.press()))),pa(this,go,t,"f"),ma(this,go,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return ma(this,yo,"f").domNode}press(){let t=[...ma(this,go,"f").selectedOutlines];0!=t.length?(ma(this,go,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...ma(this,go,"f").selectedOutlines].length?(ma(this,yo,"f").disable(),ma(this,yo,"f").tooltip.textContent="No outlines are selected."):(ma(this,yo,"f").enable(),ma(this,yo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}go=new WeakMap,yo=new WeakMap;class xa{constructor(t){vo.add(this),wo.set(this,void 0),this.domNode=document.createElement("div"),bo.set(this,document.createElement("p")),xo.set(this,new ys),No.set(this,new ys),pa(this,wo,t,"f"),this.domNode.classList.add(is.Te),ma(this,bo,"f").classList.add(is.QB),ma(this,bo,"f").textContent="Send to:",this.domNode.append(ma(this,bo,"f")),ma(this,xo,"f").domNode.addEventListener("click",(()=>ma(this,vo,"m",ko).call(this))),ma(this,xo,"f").textContent="Front",ma(this,xo,"f").domNode.style.marginLeft="21px",this.domNode.append(ma(this,xo,"f").domNode),ma(this,No,"f").domNode.addEventListener("click",(()=>ma(this,vo,"m",So).call(this))),ma(this,No,"f").textContent="Back",ma(this,No,"f").domNode.style.marginLeft="26px",this.domNode.append(ma(this,No,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){ma(this,vo,"m",_o).call(this),ma(this,vo,"m",To).call(this)}}wo=new WeakMap,bo=new WeakMap,xo=new WeakMap,No=new WeakMap,vo=new WeakSet,ko=function(){let t=[...ma(this,wo,"f").selectedOutlines];0!=t.length?(ma(this,wo,"f").pushUndoStack(),t.forEach((t=>(0,fa.bringToFront)(t.domNode))),this.refresh()):this.refresh()},So=function(){let t=[...ma(this,wo,"f").selectedOutlines];0!=t.length?(ma(this,wo,"f").pushUndoStack(),t.forEach((t=>(0,fa.sendToBack)(t.domNode))),this.refresh()):this.refresh()},_o=function(){0==[...ma(this,wo,"f").selectedOutlines].length?(ma(this,xo,"f").disable(),ma(this,xo,"f").tooltip.textContent="No outlines are selected."):(ma(this,xo,"f").enable(),ma(this,xo,"f").tooltip.textContent="Bring the selected outlines to the front.")},To=function(){0==[...ma(this,wo,"f").selectedOutlines].length?(ma(this,No,"f").disable(),ma(this,No,"f").tooltip.textContent="No outlines are selected."):(ma(this,No,"f").enable(),ma(this,No,"f").tooltip.textContent="Send selected outlines to the back.")};class Na{constructor(t){Mo.set(this,void 0),Co.set(this,void 0),Eo.set(this,void 0),pa(this,Mo,t,"f"),pa(this,Co,new La(t,"r"),"f"),pa(this,Eo,new q("Radius",ma(this,Co,"f").domNode),"f"),ma(this,Eo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",Pi(this.domNode).css({marginTop:"20px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Eo,"f").domNode}refresh(){ma(this,Co,"f").refresh()}}Mo=new WeakMap,Co=new WeakMap,Eo=new WeakMap;class ka{constructor(t){Ao.set(this,void 0),Lo.set(this,void 0),Oo.set(this,void 0),pa(this,Ao,t,"f"),pa(this,Lo,new La(t,"fill"),"f"),pa(this,Oo,new q("Fill",ma(this,Lo,"f").domNode),"f"),ma(this,Oo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Oo,"f").domNode}refresh(){ma(this,Lo,"f").refresh()}}Ao=new WeakMap,Lo=new WeakMap,Oo=new WeakMap;class Sa{constructor(t){jo.add(this),Do.set(this,void 0),Wo.set(this,new U),Po.set(this,void 0),Io.set(this,void 0),qo.set(this,void 0),pa(this,Do,t,"f"),ma(this,Wo,"f").domNode.addEventListener("input",(()=>ma(this,jo,"m",Ro).call(this))),pa(this,Po,new $("Fill Color",ma(this,Wo,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ma(this,Do,"f").selectedOutlines.addEventListener("change",(()=>pa(this,Io,void 0,"f"))),ma(this,Wo,"f").domNode.addEventListener("focus",(()=>pa(this,qo,ma(this,Wo,"f").domNode.value,"f"))),ma(this,Do,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,Do,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return ma(this,Po,"f").domNode}refresh(){let t=[...ma(this,Do,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new Vt(t)));ma(this,Wo,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ma(this,Wo,"f").domNode.value="#000000"}else ma(this,Wo,"f").domNode.value="#000000"}}Do=new WeakMap,Wo=new WeakMap,Po=new WeakMap,Io=new WeakMap,qo=new WeakMap,jo=new WeakSet,Ro=function(){if(ma(this,Wo,"f").domNode.value===ma(this,qo,"f"))return;let t=[...ma(this,Do,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===ma(this,Wo,"f").domNode.value.toLowerCase()}))||((ma(this,Do,"f").undoStack.isEmpty()||ma(this,Do,"f").undoStack.peek()!==ma(this,Io,"f"))&&(ma(this,Do,"f").pushUndoStack(),pa(this,Io,ma(this,Do,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",ma(this,Wo,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class _a{constructor(t){Fo.set(this,void 0),Ho.set(this,void 0),zo.set(this,void 0),pa(this,Fo,t,"f"),pa(this,Ho,new La(t,"fill-opacity"),"f"),pa(this,zo,new q("Fill Opacity",ma(this,Ho,"f").domNode),"f"),ma(this,zo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,zo,"f").domNode}refresh(){ma(this,Ho,"f").refresh()}}Fo=new WeakMap,Ho=new WeakMap,zo=new WeakMap;class Ta{constructor(t){Bo.set(this,void 0),Vo.set(this,void 0),Xo.set(this,void 0),pa(this,Bo,t,"f"),pa(this,Vo,new La(t,"stroke"),"f"),pa(this,Xo,new q("Stroke",ma(this,Vo,"f").domNode),"f"),ma(this,Xo,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,Xo,"f").domNode}refresh(){ma(this,Vo,"f").refresh()}}Bo=new WeakMap,Vo=new WeakMap,Xo=new WeakMap;class Ma{constructor(t){Go.add(this),Uo.set(this,void 0),Yo.set(this,new U),Qo.set(this,void 0),$o.set(this,void 0),Zo.set(this,void 0),pa(this,Uo,t,"f"),ma(this,Yo,"f").domNode.addEventListener("input",(()=>ma(this,Go,"m",Jo).call(this))),pa(this,Qo,new $("Stroke Color",ma(this,Yo,"f").domNode),"f"),Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ma(this,Uo,"f").selectedOutlines.addEventListener("change",(()=>pa(this,$o,void 0,"f"))),ma(this,Yo,"f").domNode.addEventListener("focus",(()=>pa(this,Zo,ma(this,Yo,"f").domNode.value,"f"))),ma(this,Uo,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,Uo,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return ma(this,Qo,"f").domNode}refresh(){let t=[...ma(this,Uo,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new Vt(t)));ma(this,Yo,"f").domNode.value=(0,Wi.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ma(this,Yo,"f").domNode.value="#000000"}else ma(this,Yo,"f").domNode.value="#000000"}}Uo=new WeakMap,Yo=new WeakMap,Qo=new WeakMap,$o=new WeakMap,Zo=new WeakMap,Go=new WeakSet,Jo=function(){if(ma(this,Yo,"f").domNode.value===ma(this,Zo,"f"))return;let t=[...ma(this,Uo,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===ma(this,Yo,"f").domNode.value.toLowerCase()}))||((ma(this,Uo,"f").undoStack.isEmpty()||ma(this,Uo,"f").undoStack.peek()!==ma(this,$o,"f"))&&(ma(this,Uo,"f").pushUndoStack(),pa(this,$o,ma(this,Uo,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",ma(this,Yo,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class Ca{constructor(t){Ko.set(this,void 0),ta.set(this,void 0),ea.set(this,void 0),pa(this,Ko,t,"f"),pa(this,ta,new La(t,"stroke-opacity"),"f"),pa(this,ea,new q("Stroke Opacity",ma(this,ta,"f").domNode),"f"),ma(this,ea,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",Pi(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,ea,"f").domNode}refresh(){ma(this,ta,"f").refresh()}}Ko=new WeakMap,ta=new WeakMap,ea=new WeakMap;class Ea{constructor(t){na.set(this,void 0),ra.set(this,void 0),ia.set(this,void 0),pa(this,na,t,"f"),pa(this,ra,new La(t,"stroke-width"),"f"),pa(this,ia,new q("Stroke Width",ma(this,ra,"f").domNode),"f"),ma(this,ia,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,ia,"f").domNode}refresh(){ma(this,ra,"f").refresh()}}na=new WeakMap,ra=new WeakMap,ia=new WeakMap;class Aa{constructor(t){sa.set(this,void 0),oa.set(this,void 0),aa.set(this,void 0),pa(this,sa,t,"f"),pa(this,oa,new La(t,"stroke-dasharray"),"f"),pa(this,aa,new q("Stroke Dash-Array",ma(this,oa,"f").domNode),"f"),ma(this,aa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",Pi(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ma(this,aa,"f").domNode}refresh(){ma(this,oa,"f").refresh()}}sa=new WeakMap,oa=new WeakMap,aa=new WeakMap;class La{constructor(t,e){ha.add(this),ua.set(this,void 0),la.set(this,void 0),ca.set(this,new C({onSubmit:()=>ma(this,ha,"m",da).call(this)})),pa(this,ua,t,"f"),pa(this,la,e,"f"),ma(this,ua,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ma(this,ua,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ma(this,ca,"f").domNode}refresh(){let t=[...ma(this,ua,"f").selectedOutlines];try{ma(this,ca,"f").domNode.value=(0,Wi.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(ma(this,la,"f")))&&void 0!==e?e:""})))}catch(t){ma(this,ca,"f").domNode.value=""}}}ua=new WeakMap,la=new WeakMap,ca=new WeakMap,ha=new WeakSet,da=function(){let t=ma(this,ca,"f").domNode.value,e=[...ma(this,ua,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(ma(this,la,"f"))===t))||(ma(this,ua,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(ma(this,la,"f"),t)))),this.refresh()};var Oa=n(290),ja={};ja.styleTagTransform=w(),ja.setAttributes=m(),ja.insert=f().bind(null,"head"),ja.domAPI=c(),ja.insertStyleElement=y(),u()(Oa.A,ja),Oa.A&&Oa.A.locals&&Oa.A.locals;var Da,Wa,Pa,Ia,qa,Ra,Fa=n(139),Ha=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},za=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)};class Ba{constructor(t){Da.add(this),Wa.set(this,void 0),this.domNode=document.createElement("div"),Pa.set(this,void 0),Ia.set(this,void 0),qa.set(this,void 0),Ha(this,Wa,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),Ha(this,Pa,new Ri(t),"f"),n.append(za(this,Pa,"f").domNode),Ha(this,Ia,new ga(t),"f"),n.append(za(this,Ia,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add(Oa._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),Ha(this,qa,new Fa.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){za(this,Da,"a",Ra).forEach((t=>t.refresh()))}reposition(){za(this,qa,"f").untranslate()}}Wa=new WeakMap,Pa=new WeakMap,Ia=new WeakMap,qa=new WeakMap,Da=new WeakSet,Ra=function(){return[za(this,Pa,"f"),za(this,Ia,"f")]}})(),r})()));